Changeset 6872 for trunk/psModules/configure.ac
- Timestamp:
- Apr 17, 2006, 8:01:05 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/configure.ac (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/configure.ac
r6298 r6872 8 8 AM_MAINTAINER_MODE 9 9 10 dnl handle debug building 11 AC_ARG_ENABLE(optimize, 12 [AS_HELP_STRING(--enable-optimize,enable compiler optimization)], 13 [AC_MSG_RESULT(compile optimization enabled) 14 CFLAGS="${CFLAGS=} -O2"], 15 [AC_MSG_RESULT([compile optimization disabled]) 16 CFLAGS="${CFLAGS=} -O0 -g"] 17 ) 18 19 dnl handle profiler building 20 AC_ARG_ENABLE(profile, 21 [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)], 22 [AC_MSG_RESULT(compile optimization enabled) 23 CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"] 24 ) 25 10 dnl otherise AC_PROG_CC will default CFLAGS to "-g -02" 11 if test -z ${CFLAGS} ; then 12 CFLAGS="" 13 fi 26 14 AC_SUBST([CFLAGS]) 27 15 … … 29 17 AC_PROG_CC 30 18 dnl FIXME document why GNU_SOURCE is being set 31 dnlAC_GNU_SOURCE19 AC_GNU_SOURCE 32 20 AC_PROG_INSTALL 33 21 AM_PROG_LIBTOOL 34 AC_SYS_LARGEFILE35 22 36 23 AC_PREFIX_DEFAULT([`pwd`]) … … 62 49 63 50 SRCPATH='${top_srcdir}/src' 64 SRCDIRS="astrom c amera config detrend imcombine imsubtract objects photom"51 SRCDIRS="astrom config detrend imcombine imsubtract objects pslib" 65 52 # escape two escapes at this level so \\ gets passed to the shell and \ to perl 66 53 SRCINC=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|-I\\\\${SRCPATH=}/\1|g"` 67 54 SRCINC="-I${SRCPATH=} ${SRCINC=}" 68 55 SRCSUBLIBS=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|\1/libpsmodule\1.la|g"` 69 AC_SUBST( [SRCSUBLIBS],${SRCSUBLIBS=})70 AC_SUBST( [SRCINC],${SRCINC=})56 AC_SUBST(SRCSUBLIBS,${SRCSUBLIBS=}) 57 AC_SUBST(SRCINC,${SRCINC=}) 71 58 AC_SUBST([SRCDIRS],${SRCDIRS=}) 59 60 dnl handle debug building 61 AC_ARG_ENABLE(optimize, 62 [AS_HELP_STRING(--enable-optimize,enable compiler optimization)], 63 [AC_MSG_RESULT(compile optimization enabled) 64 CFLAGS="${CFLAGS=} -O2"], 65 [AC_MSG_RESULT([compile optimization disabled]) 66 CFLAGS="${CFLAGS=} -O0 -g"] 67 ) 68 69 dnl handle profiler building 70 AC_ARG_ENABLE(profile, 71 [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)], 72 [AC_MSG_RESULT(compile optimization enabled) 73 CFLAGS="${CFLAGS=} -pg"] 74 ) 75 76 dnl CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"] 72 77 73 78 dnl doxygen ------------------------------------------------------------------- … … 75 80 AC_CHECK_PROG([doxygen], [doxygen], [true], [false]) 76 81 AM_CONDITIONAL(DOXYGEN, test x$doxygen = xtrue) 82 83 dnl libjpeg ------------------------------------------------------------------- 84 85 AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[],[AC_MSG_ERROR([jpeg library not found.])]) 77 86 78 87 dnl pslib --------------------------------------------------------------------- … … 82 91 83 92 if test -z ${PSLIB_CONFIG} ; then 84 PKG_CHECK_MODULES([PSLIB], [pslib >= 0. 10.0])93 PKG_CHECK_MODULES([PSLIB], [pslib >= 0.9.0]) 85 94 else 86 95 AC_CHECK_FILE($PSLIB_CONFIG,[], … … 105 114 src/Makefile 106 115 src/astrom/Makefile 107 src/camera/Makefile108 116 src/config/Makefile 109 117 src/detrend/Makefile … … 111 119 src/imsubtract/Makefile 112 120 src/objects/Makefile 113 src/p hotom/Makefile121 src/pslib/Makefile 114 122 test/Makefile 115 123 test/astrom/Makefile 116 test/camera/Makefile117 124 test/config/Makefile 118 125 test/detrend/Makefile … … 120 127 test/imsubtract/Makefile 121 128 test/objects/Makefile 122 test/p hotom/Makefile129 test/pslib/Makefile 123 130 Doxyfile 124 131 psmodule-config
Note:
See TracChangeset
for help on using the changeset viewer.
