comparison configure @ 101:ce8191c38f44 noffle

[svn] * configure, configure.in: Changed the --enable-debug option of configure. It now accepts the parameters 'no', 'min' and 'yes', i.e. no compiler- warnings, minimum compiler-warnings and maximum compiler-warnings. Default is 'min'. Stable releases should have 'no' as default, IHMO. * NEWS: Update.
author uh1763
date Mon, 29 May 2000 17:35:01 +0100
parents 688bd51704e0
children 8eb2975c8c1a
comparison
equal deleted inserted replaced
100:af51bf245bc3 101:ce8191c38f44
12 ac_default_prefix=/usr/local 12 ac_default_prefix=/usr/local
13 # Any additions from configure.in: 13 # Any additions from configure.in:
14 ac_help="$ac_help 14 ac_help="$ac_help
15 15
16 NOFFLE options: 16 NOFFLE options:
17 --enable-debug turn on debugging (default=yes)" 17 --enable-debug=[no/min/yes] turn on debugging [default=min]"
18 ac_help="$ac_help 18 ac_help="$ac_help
19 --with-docdir=PATH specify where to put the documentation 19 --with-docdir=PATH specify where to put the documentation
20 " 20 "
21 21
22 # Initialize some variables set by options. 22 # Initialize some variables set by options.
2530 # Check whether --enable-debug or --disable-debug was given. 2530 # Check whether --enable-debug or --disable-debug was given.
2531 if test "${enable_debug+set}" = set; then 2531 if test "${enable_debug+set}" = set; then
2532 enableval="$enable_debug" 2532 enableval="$enable_debug"
2533 : 2533 :
2534 else 2534 else
2535 enable_debug=yes 2535 enable_debug=min
2536 fi 2536 fi
2537 2537
2538 2538
2539 if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes" 2539 if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes"; then
2540 then
2541 CFLAGS="$CFLAGS \ 2540 CFLAGS="$CFLAGS \
2542 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ 2541 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \
2543 -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \ 2542 -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \
2544 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ 2543 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \
2545 -Wmissing-declarations -Wnested-externs -Winline \ 2544 -Wmissing-declarations -Wnested-externs -Winline \
2546 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" 2545 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG"
2546 else
2547
2548
2549 if test "x$enable_debug" != "xno" && test "x$GCC" = "xyes"; then
2550 CFLAGS="$CFLAGS \
2551 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow \
2552 -Wcast-qual -Wcast-align -Wwrite-strings \
2553 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \
2554 -Wmissing-declarations -Wnested-externs -Winline \
2555 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG"
2556 fi
2547 fi 2557 fi
2548 2558
2549 2559
2550 # [ This is adapted from mutt. ] 2560 # [ This is adapted from mutt. ]
2551 # Check whether --with-docdir or --without-docdir was given. 2561 # Check whether --with-docdir or --without-docdir was given.
2552 if test "${with_docdir+set}" = set; then 2562 if test "${with_docdir+set}" = set; then
2553 withval="$with_docdir" 2563 withval="$with_docdir"
2554 noffle_cv_docdir=$withval 2564 noffle_cv_docdir=$withval
2555 else 2565 else
2556 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6 2566 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
2557 echo "configure:2558: checking where to put the documentation" >&5 2567 echo "configure:2568: checking where to put the documentation" >&5
2558 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then 2568 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6 2569 echo $ac_n "(cached) $ac_c" 1>&6
2560 else 2570 else
2561 if test x$prefix = xNONE; then 2571 if test x$prefix = xNONE; then
2562 noffle_cv_prefix=$ac_default_prefix 2572 noffle_cv_prefix=$ac_default_prefix