IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11505


Ignore:
Timestamp:
Jan 31, 2007, 3:15:36 PM (19 years ago)
Author:
jhoblitt
Message:

switch to using IPP_STDOPTS
move setting of CFLAGS lang option values until after all probes have run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/configure.ac

    r11395 r11505  
    1111AM_MAINTAINER_MODE
    1212
    13 dnl otherise AC_PROG_CC will default CFLAGS to "-g -02"
    14 if test -z ${CFLAGS} ; then
    15   CFLAGS=""
    16 fi
    17 AC_SUBST([CFLAGS])
     13IPP_STDOPTS
    1814
    1915AC_LANG(C)
     
    2925
    3026AC_PREFIX_DEFAULT([`pwd`])
    31 
    32 dnl cflags --------------------------------------------------------------------
    33 dnl FIXME document why -std=gnu99 is being set
    34 
    35 AC_MSG_CHECKING([C99 flag])
    36 if test "$GCC" = "yes" ; then
    37   AM_CFLAGS="-std=gnu99"
    38   AC_MSG_RESULT([-std=gnu99])
    39 else
    40   AM_CFLAGS="-std=c99"
    41   AC_MSG_RESULT([-std=c99])
    42 fi
    43 AM_CFLAGS="${AM_CFLAGS=} -Wall -Werror"
    44 AC_SUBST([AM_CFLAGS])
    4527
    4628dnl ------------------- PERL options ---------------------
     
    6446AC_SUBST(SRCINC,${SRCINC=})
    6547AC_SUBST([SRCDIRS],${SRCDIRS=})
    66 
    67 dnl handle optimized building
    68 AC_ARG_ENABLE(optimize,
    69   [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],
    70   [AC_MSG_RESULT(compile optimization enabled)
    71    CFLAGS="${CFLAGS=} -pipe -O2 -g"
    72    PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DPS_NO_TRACE"],
    73   [AC_MSG_RESULT([compile optimization disabled])
    74     if test x"${CFLAGS}" == x; then
    75       CFLAGS="-pipe -O0 -g"
    76     fi
    77   ]
    78 )
    79 
    80 dnl handle profiler building
    81 AC_ARG_ENABLE(profile,
    82   [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)],
    83   [AC_MSG_RESULT(compile optimization enabled)
    84    CFLAGS="${CFLAGS=} -pg -g"
    85    LDFLAGS="${LDFLAGS=} -pg"]
    86 )
    87 
    88 dnl handle path coverage checking
    89 AC_ARG_ENABLE(coverage,
    90   [AS_HELP_STRING(--enable-coverage,enable path coverage checking)],
    91   [AC_MSG_RESULT(path coverage enabled)
    92    CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"]
    93 )
    94 
    95 dnl CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"]
    9648
    9749dnl doxygen -------------------------------------------------------------------
     
    344296echo "PSMODULE_LIBS: $PSMODULES_LIBS"
    345297
    346 dnl ---------------------------------------------------------------------------
     298dnl ------- enable -Werror after all of the probes have run ---------
     299CFLAGS="${CFLAGS} -Wall -Werror"
     300dnl enable POSIX/XSI and C99 compliance
     301CFLAGS="${CFLAGS=} -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L -std=c99"
     302
     303dnl ---------------- export variables --------------------
     304
    347305
    348306AC_SUBST([PSMODULES_CFLAGS])
Note: See TracChangeset for help on using the changeset viewer.