IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 23, 2005, 3:24:00 PM (20 years ago)
Author:
desonia
Message:

added --enable-optimize and --enable-profiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/configure.ac

    r5760 r5842  
    88AM_MAINTAINER_MODE
    99
    10 dnl otherise AC_PROG_CC will default CFLAGS to "-g -02"
    11 if test -z ${CFLAGS} ; then
    12   CFLAGS="-g -O0"
    13 fi
     10dnl handle debug building
     11AC_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
     19dnl handle profiler building
     20AC_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
    1426AC_SUBST([CFLAGS])
    1527
     
    4961
    5062SRCPATH='${top_srcdir}/src'
    51 SRCDIRS="astrom config detrend imcombine imsubtract objects"
     63SRCDIRS="astrom camera config detrend imcombine imsubtract objects photom"
    5264# escape two escapes at this level so \\ gets passed to the shell and \ to perl
    5365SRCINC=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|-I\\\\${SRCPATH=}/\1|g"`
    5466SRCINC="-I${SRCPATH=} ${SRCINC=}"
    5567SRCSUBLIBS=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|\1/libpsmodule\1.la|g"`
    56 AC_SUBST(SRCSUBLIBS,${SRCSUBLIBS=})
    57 AC_SUBST(SRCINC,${SRCINC=})
     68AC_SUBST([SRCSUBLIBS],${SRCSUBLIBS=})
     69AC_SUBST([SRCINC],${SRCINC=})
    5870AC_SUBST([SRCDIRS],${SRCDIRS=})
    5971
     
    6981
    7082if test -z ${PSLIB_CONFIG} ; then
    71   PKG_CHECK_MODULES([PSLIB], [pslib >= 0.9.0])
     83  PKG_CHECK_MODULES([PSLIB], [pslib >= 0.10.0])
    7284else
    7385  AC_CHECK_FILE($PSLIB_CONFIG,[],
     
    92104  src/Makefile
    93105  src/astrom/Makefile
     106  src/camera/Makefile
    94107  src/config/Makefile
    95108  src/detrend/Makefile
     
    97110  src/imsubtract/Makefile
    98111  src/objects/Makefile
     112  src/photom/Makefile
    99113  test/Makefile
    100114  test/astrom/Makefile
     115  test/camera/Makefile
    101116  test/config/Makefile
    102117  test/detrend/Makefile
     
    104119  test/imsubtract/Makefile
    105120  test/objects/Makefile
     121  test/photom/Makefile
    106122  Doxyfile
    107123  psmodule-config
Note: See TracChangeset for help on using the changeset viewer.