IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2007, 5:46:12 PM (19 years ago)
Author:
jhoblitt
Message:

call IPP_STDOPTS only after configure steps have ran

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/configure.ac

    r10947 r11533  
    88AM_CONFIG_HEADER([src/config.h])
    99AM_MAINTAINER_MODE
    10 
    11 dnl otherwise AC_PROG_CC will default CFLAGS to "-g -02"
    12 if test -z ${CFLAGS} ; then
    13   CFLAGS=""
    14 fi
    15 AC_SUBST([CFLAGS])
    1610
    1711AC_LANG(C)
     
    2014AC_PROG_INSTALL
    2115AC_PROG_LIBTOOL
    22 
    23 dnl enable largefile supports
    2416AC_SYS_LARGEFILE
    25 
    26 dnl handle debug building
    27 AC_ARG_ENABLE(optimize,
    28   [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],
    29   [AC_MSG_RESULT(compile optimization enabled)
    30    CFLAGS="${CFLAGS=} -O2 -g"],
    31   [AC_MSG_RESULT([compile optimization disabled])
    32     if test x"${CFLAGS}" == x; then
    33       CFLAGS="-O0 -g"
    34     fi
    35   ]
    36 )
    37 
    38 dnl handle profiler building
    39 AC_ARG_ENABLE(profile,
    40   [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)],
    41   [AC_MSG_RESULT(compile optimization enabled)
    42    CFLAGS="${CFLAGS=} -pg -g"
    43    LDFLAGS="${LDFLAGS=} -pg"]
    44 )
    45 
    46 dnl turn off trace messages
    47 AC_ARG_ENABLE(trace,
    48   [AS_HELP_STRING(--disable-trace,disable psTrace functionality)],
    49   [AC_MSG_RESULT(psTrace disabled)
    50    PSWARP_CFLAGS="${PSWARP_CFLAGS=} -DPS_NO_TRACE"]
    51 )
    5217
    5318dnl ------------------------------------------------------------
     
    220185
    221186dnl Set CFLAGS for build
     187IPP_STDOPTS
    222188CFLAGS="${CFLAGS} -Wall -Werror -std=c99"
    223189echo "PSWARP_CFLAGS: $PSWARP_CFLAGS"
Note: See TracChangeset for help on using the changeset viewer.