Changeset 8841
- Timestamp:
- Sep 19, 2006, 2:18:12 PM (20 years ago)
- Location:
- trunk/psLib
- Files:
-
- 27 edited
-
configure.ac (modified) (8 diffs)
-
src/pslib_strict.h (modified) (2 diffs)
-
test/astro/Makefile.am (modified) (1 diff)
-
test/db/Makefile.am (modified) (1 diff)
-
test/fft/Makefile.am (modified) (1 diff)
-
test/fits/Makefile.am (modified) (1 diff)
-
test/imageops/Makefile.am (modified) (1 diff)
-
test/jpeg/Makefile.am (modified) (1 diff)
-
test/math/Makefile.am (modified) (1 diff)
-
test/mathtypes/Makefile.am (modified) (1 diff)
-
test/mathtypes/tap_psVector.c (modified) (1 diff)
-
test/pstap/src/Makefile.am (modified) (1 diff)
-
test/sys/Makefile.am (modified) (1 diff)
-
test/sys/tap_psStringSubstitute.c (modified) (1 diff)
-
test/tap/configure.in (modified) (1 diff)
-
test/tap/src/Makefile.am (modified) (1 diff)
-
test/types/Makefile.am (modified) (2 diffs)
-
test/types/tap_psListIterator.c (modified) (1 diff)
-
test/types/tap_psMetadataConfigRead.c (modified) (1 diff)
-
test/types/tap_psMetadataItemParse.c (modified) (1 diff)
-
test/types/tap_psMetadataIterator.c (modified) (1 diff)
-
test/types/tap_psMetadata_copying.c (modified) (1 diff)
-
test/types/tap_psMetadata_creating.c (modified) (1 diff)
-
test/types/tap_psMetadata_manip.c (modified) (1 diff)
-
test/types/tap_psMetadata_polynomials.c (modified) (1 diff)
-
test/types/tap_psMetadata_printing.c (modified) (1 diff)
-
test/xml/Makefile.am (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r8789 r8841 29 29 30 30 SRCPATH='${top_srcdir}/src' 31 SRCDIRS="sys astro db fft fits imageops jpeg math mathtypes types xml"31 SRCDIRS="sys astro db fft fits imageops jpeg math mathtypes types" dnl xml 32 32 # escape two escapes at this level so \\ gets passed to the shell and \ to perl 33 33 SRCINC=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|-I\\\\${SRCPATH=}/\1|g"` … … 39 39 AC_PROG_MAKE_SET 40 40 41 dnl handle debugbuilding41 dnl handle optimized building 42 42 AC_ARG_ENABLE(optimize, 43 43 [AS_HELP_STRING(--enable-optimize,enable compiler optimization)], 44 44 [AC_MSG_RESULT(compile optimization enabled) 45 CFLAGS="${CFLAGS=} -O2"], 45 CFLAGS="${CFLAGS=} -O2" 46 PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DPS_NO_TRACE"], 46 47 [AC_MSG_RESULT([compile optimization disabled]) 47 48 CFLAGS="${CFLAGS=} -O0 -g"] … … 69 70 PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DPS_NO_TRACE"] 70 71 ) 72 73 dnl build tests at the same time as the source code 74 AC_ARG_ENABLE(tests, 75 [AS_HELP_STRING(--enable-tests,build tests at same time as source)], 76 [AC_MSG_RESULT(test building enabled) 77 tests=true], 78 [tests=false]) 79 AM_CONDITIONAL(BUILD_TESTS, test x$tests = xtrue) 71 80 72 81 AC_LANG(C) … … 303 312 304 313 dnl ------------------- XML2 options --------------------- 305 AC_ARG_WITH(xml2-config,306 [AS_HELP_STRING(--with-xml2-config=FILE,Specify location of xml2-config.)],307 [XML_CONFIG=$withval],308 [XML_CONFIG=`which xml2-config`])309 AC_CHECK_FILE($XML_CONFIG,[],310 [AC_MSG_ERROR([GNOME XML C parser is required. Obtain it at http://www.xmlsoft.org or use --with-xml2-config to specify location.])])311 312 AC_MSG_CHECKING([xml2 version])313 XML_VERSION=`xml2-config --version`314 XML_VERSION_major=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+).*|\1|'`315 XML_VERSION_minor=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+)\.(\d+).*|\2|'`316 dnl First test the minimum version of 2.6317 if test $XML_VERSION_major -lt 2 || ( test $XML_VERSION_major -eq 2 && test $XML_VERSION_minor -lt 6 )318 then319 AC_MSG_ERROR([requires libxml2 2.6.0 or greater, found $XML_VERSION. Install newer version or use --with-xml2-config to specify another location.])320 else321 AC_MSG_RESULT([$XML_VERSION... yes])322 fi323 324 AC_MSG_CHECKING([xml2 cflags])325 XML_CFLAGS="`${XML_CONFIG} --cflags`"326 AC_MSG_RESULT([${XML_CFLAGS}])327 328 AC_MSG_CHECKING([xml2 ldflags])329 XML_LDFLAGS="`${XML_CONFIG} --libs`"330 AC_MSG_RESULT([${XML_LDFLAGS}])331 332 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${XML_CFLAGS}"333 PSLIB_LIBS="${PSLIB_LIBS=} ${XML_LDFLAGS}"334 335 AC_SUBST([XML_CFLAGS])314 dnl AC_ARG_WITH(xml2-config, 315 dnl [AS_HELP_STRING(--with-xml2-config=FILE,Specify location of xml2-config.)], 316 dnl [XML_CONFIG=$withval], 317 dnl [XML_CONFIG=`which xml2-config`]) 318 dnl AC_CHECK_FILE($XML_CONFIG,[], 319 dnl [AC_MSG_ERROR([GNOME XML C parser is required. Obtain it at http://www.xmlsoft.org or use --with-xml2-config to specify location.])]) 320 dnl 321 dnl AC_MSG_CHECKING([xml2 version]) 322 dnl XML_VERSION=`xml2-config --version` 323 dnl XML_VERSION_major=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+).*|\1|'` 324 dnl XML_VERSION_minor=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+)\.(\d+).*|\2|'` 325 dnl dnl First test the minimum version of 2.6 326 dnl if test $XML_VERSION_major -lt 2 || ( test $XML_VERSION_major -eq 2 && test $XML_VERSION_minor -lt 6 ) 327 dnl then 328 dnl AC_MSG_ERROR([requires libxml2 2.6.0 or greater, found $XML_VERSION. Install newer version or use --with-xml2-config to specify another location.]) 329 dnl else 330 dnl AC_MSG_RESULT([$XML_VERSION... yes]) 331 dnl fi 332 dnl 333 dnl AC_MSG_CHECKING([xml2 cflags]) 334 dnl XML_CFLAGS="`${XML_CONFIG} --cflags`" 335 dnl AC_MSG_RESULT([${XML_CFLAGS}]) 336 dnl 337 dnl AC_MSG_CHECKING([xml2 ldflags]) 338 dnl XML_LDFLAGS="`${XML_CONFIG} --libs`" 339 dnl AC_MSG_RESULT([${XML_LDFLAGS}]) 340 dnl 341 dnl PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${XML_CFLAGS}" 342 dnl PSLIB_LIBS="${PSLIB_LIBS=} ${XML_LDFLAGS}" 343 dnl 344 dnl AC_SUBST([XML_CFLAGS]) 336 345 337 346 dnl ------------------- SWIG options --------------------- … … 376 385 AC_CHECK_PROG(doxygen,[doxygen],[true],[false]) 377 386 AM_CONDITIONAL(DOXYGEN, test x$doxygen = xtrue) 387 378 388 379 389 dnl ------- restore CFLAGS / LDFLAGS (tests done) -------- … … 402 412 src/mathtypes/Makefile 403 413 src/types/Makefile 404 src/xml/Makefile405 414 test/Makefile 406 415 test/sys/Makefile … … 414 423 test/mathtypes/Makefile 415 424 test/types/Makefile 416 test/xml/Makefile417 425 test/FullUnitTest 418 426 test/pstap/Makefile … … 424 432 Doxyfile 425 433 ]) 434 dnl src/xml/Makefile 435 dnl test/xml/Makefile 436 426 437 427 438 #if test "$SWIG_REQ" == "yes" -
trunk/psLib/src/pslib_strict.h
r7767 r8841 9 9 * @author Eric Van Alst, MHPCC 10 10 * 11 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-0 6-30 02:44:42$11 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-09-20 00:18:11 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 41 41 #include "psFitsTable.h" 42 42 43 #include "psXML.h"43 //#include "psXML.h" 44 44 45 45 #include "psImageConvolve.h" -
trunk/psLib/test/astro/Makefile.am
r8718 r8841 13 13 test.ser7.dat 14 14 15 check_PROGRAMS = 15 TEST_PROGS = 16 17 if BUILD_TESTS 18 bin_PROGRAMS = $(TEST_PROGS) 19 else 20 check_PROGRAMS = $(TEST_PROGS) 21 endif 22 TESTS = $(TEST_PROGS) 16 23 17 24 CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out -
trunk/psLib/test/db/Makefile.am
r8718 r8841 5 5 $(PSLIB_LIBS) 6 6 7 check_PROGRAMS = 7 TEST_PROGS = 8 9 if BUILD_TESTS 10 bin_PROGRAMS = $(TEST_PROGS) 11 else 12 check_PROGRAMS = $(TEST_PROGS) 13 endif 14 TESTS = $(TEST_PROGS) 8 15 9 16 CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out -
trunk/psLib/test/fft/Makefile.am
r8718 r8841 5 5 $(PSLIB_LIBS) 6 6 7 check_PROGRAMS = 7 TEST_PROGS = 8 9 if BUILD_TESTS 10 bin_PROGRAMS = $(TEST_PROGS) 11 else 12 check_PROGRAMS = $(TEST_PROGS) 13 endif 14 TESTS = $(TEST_PROGS) 8 15 9 16 CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out -
trunk/psLib/test/fits/Makefile.am
r8718 r8841 5 5 $(PSLIB_LIBS) 6 6 7 check_PROGRAMS = 7 TEST_PROGS = 8 9 if BUILD_TESTS 10 bin_PROGRAMS = $(TEST_PROGS) 11 else 12 check_PROGRAMS = $(TEST_PROGS) 13 endif 14 TESTS = $(TEST_PROGS) 8 15 9 16 CLEANFILES = $(check_DATA) temp/* multi.fits table.fits tmpImages/* core core.* *~ \ -
trunk/psLib/test/imageops/Makefile.am
r8718 r8841 5 5 $(PSLIB_LIBS) 6 6 7 check_PROGRAMS = 7 TEST_PROGS = 8 9 if BUILD_TESTS 10 bin_PROGRAMS = $(TEST_PROGS) 11 else 12 check_PROGRAMS = $(TEST_PROGS) 13 endif 14 TESTS = $(TEST_PROGS) 8 15 9 16 CLEANFILES = $(check_DATA) temp/* fOut.fits sOut.fits fBiOut.fits sBiOut.fits \ -
trunk/psLib/test/jpeg/Makefile.am
r8718 r8841 5 5 $(PSLIB_LIBS) 6 6 7 check_PROGRAMS = 7 TEST_PROGS = 8 9 if BUILD_TESTS 10 bin_PROGRAMS = $(TEST_PROGS) 11 else 12 check_PROGRAMS = $(TEST_PROGS) 13 endif 14 TESTS = $(TEST_PROGS) 8 15 9 16 CLEANFILES = $(check_DATA) core core.* *~ *.bb *.bbg *.da gmon.out -
trunk/psLib/test/math/Makefile.am
r8718 r8841 5 5 $(PSLIB_LIBS) 6 6 7 check_PROGRAMS = 7 TEST_PROGS = 8 9 if BUILD_TESTS 10 bin_PROGRAMS = $(TEST_PROGS) 11 else 12 check_PROGRAMS = $(TEST_PROGS) 13 endif 14 TESTS = $(TEST_PROGS) 8 15 9 16 CLEANFILES = $(check_DATA) temp/* seed_msglog1.txt core core.* *~ *.bb *.bbg *.da gmon.out -
trunk/psLib/test/mathtypes/Makefile.am
r8731 r8841 10 10 $(PSLIB_LIBS) 11 11 12 check_PROGRAMS = \12 TEST_PROGS = \ 13 13 tap_psVector 14 15 if BUILD_TESTS 16 bin_PROGRAMS = $(TEST_PROGS) 17 else 18 check_PROGRAMS = $(TEST_PROGS) 19 endif 20 TESTS = $(TEST_PROGS) 14 21 15 22 CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out -
trunk/psLib/test/mathtypes/tap_psVector.c
r8791 r8841 1 1 #include <stdio.h> 2 #include <string.h> 2 3 #include <pslib.h> 3 4 -
trunk/psLib/test/pstap/src/Makefile.am
r8731 r8841 5 5 $(PSLIB_LIBS) 6 6 7 TEST_LTLIBS = libpstap.la 8 libpstap_la_SOURCES = pstap.c 7 9 noinst_HEADERS = pstap.h 8 check_LTLIBRARIES = libpstap.la9 10 10 libpstap_la_SOURCES = pstap.c 11 if BUILD_TESTS 12 lib_LTLIBRARIES = $(TEST_LTLIBS) 13 else 14 check_LTLIBRARIES = $(TEST_LTLIBS) 15 endif 16 -
trunk/psLib/test/sys/Makefile.am
r8731 r8841 10 10 $(PSLIB_LIBS) 11 11 12 TEST_PROGS = \ 13 tap_psStringSubstitute 12 14 13 check_PROGRAMS = \ 14 tap_psStringSubstitute 15 if BUILD_TESTS 16 bin_PROGRAMS = $(TEST_PROGS) 17 else 18 check_PROGRAMS = $(TEST_PROGS) 19 endif 20 TESTS = $(TEST_PROGS) 15 21 16 22 CLEANFILES = $(check_DATA) temp/* log.txt log2.txt test.fits tst_psTrace02_OUT \ -
trunk/psLib/test/sys/tap_psStringSubstitute.c
r8791 r8841 1 1 #include <stdio.h> 2 #include <string.h> 2 3 #include <pslib.h> 3 4 -
trunk/psLib/test/tap/configure.in
r7862 r8841 17 17 ;; 18 18 esac 19 20 dnl build tests at the same time as the source code 21 AC_ARG_ENABLE(tests, 22 [AS_HELP_STRING(--enable-tests,build tests at same time as source)], 23 [AC_MSG_RESULT(test building enabled) 24 tests=true], 25 [tests=false]) 26 AM_CONDITIONAL(BUILD_TESTS, test x$tests = xtrue) 19 27 20 28 # Checks for header files -
trunk/psLib/test/tap/src/Makefile.am
r8731 r8841 1 check_LTLIBRARIES = libtap.la1 TEST_LTLIBS = libtap.la 2 2 libtap_la_SOURCES = tap.c tap.h 3 include_HEADERS = tap.h 4 5 if BUILD_TESTS 6 lib_LTLIBRARIES = $(TEST_LTLIBS) 7 else 8 check_LTLIBRARIES = $(TEST_LTLIBS) 9 endif 3 10 4 11 man_MANS = tap.3 5 12 EXTRA_DIST = $(man_MANS) 6 13 7 include_HEADERS = tap.h -
trunk/psLib/test/types/Makefile.am
r8814 r8841 11 11 AM_CFLAGS = -DXML_CONFIG_FILE="\"$(top_srcdir)/etc/pslib/psTime.xml\"" 12 12 13 check_PROGRAMS = \13 TEST_PROGS = \ 14 14 tap_psMetadataIterator \ 15 15 tap_psListIterator \ … … 25 25 tap_psArray_all \ 26 26 tap_psArguments_all 27 28 if BUILD_TESTS 29 bin_PROGRAMS = $(TEST_PROGS) 30 else 31 check_PROGRAMS = $(TEST_PROGS) 32 endif 33 TESTS = $(TEST_PROGS) 27 34 28 35 check_DATA = \ -
trunk/psLib/test/types/tap_psListIterator.c
r8786 r8841 1 1 #include <stdio.h> 2 #include <string.h> 2 3 #include <pslib.h> 3 4 -
trunk/psLib/test/types/tap_psMetadataConfigRead.c
r8775 r8841 1 1 #include <stdio.h> 2 #include <string.h> 2 3 #include <pslib.h> 3 4 -
trunk/psLib/test/types/tap_psMetadataItemParse.c
r8731 r8841 1 1 #include <pslib.h> 2 #include <string.h> 2 3 3 4 #include "tap.h" -
trunk/psLib/test/types/tap_psMetadataIterator.c
r8731 r8841 1 1 #include <stdio.h> 2 #include <string.h> 2 3 #include <pslib.h> 3 4 -
trunk/psLib/test/types/tap_psMetadata_copying.c
r8731 r8841 12 12 13 13 #include <pslib.h> 14 #include <string.h> 14 15 15 16 #include "tap.h" -
trunk/psLib/test/types/tap_psMetadata_creating.c
r8786 r8841 14 14 15 15 #include <pslib.h> 16 #include <string.h> 16 17 17 18 #include "tap.h" -
trunk/psLib/test/types/tap_psMetadata_manip.c
r8731 r8841 12 12 13 13 #include <pslib.h> 14 #include <string.h> 14 15 15 16 #include "tap.h" -
trunk/psLib/test/types/tap_psMetadata_polynomials.c
r8786 r8841 12 12 13 13 #include <pslib.h> 14 #include <string.h> 14 15 15 16 #include "tap.h" -
trunk/psLib/test/types/tap_psMetadata_printing.c
r8731 r8841 11 11 */ 12 12 13 #include <stdio.h> 14 #include <string.h> 13 15 #include <fcntl.h> 14 16 #include <pslib.h> -
trunk/psLib/test/xml/Makefile.am
r8718 r8841 5 5 $(PSLIB_LIBS) 6 6 7 check_PROGRAMS = 7 TEST_PROGS = 8 9 if BUILD_TESTS 10 bin_PROGRAMS = $(TEST_PROGS) 11 else 12 check_PROGRAMS = $(TEST_PROGS) 13 endif 14 TESTS = $(TEST_PROGS) 8 15 9 16 EXTRA_DIST = psTime.xml psTime2.xml psTime3.xml psTime4.xml
Note:
See TracChangeset
for help on using the changeset viewer.
