1 --- djvulibre-3.5.11/config/acinclude.m4.orig 2003-03-22 22:18:00.000000000 +0100
2 +++ djvulibre-3.5.11/config/acinclude.m4 2003-05-13 19:15:32.000000000 +0200
4 [ac_debug=$enableval],[ac_debug=no])
7 - saved_CXXFLAGS="$CXXFLAGS"
8 - saved_CFLAGS="$CFLAGS"
11 - for opt in $saved_CXXFLAGS ; do
13 - -g*) test $ac_debug != no && OPTS="$OPTS $opt" ;;
15 - *) CXXFLAGS="$CXXFLAGS $opt" ;;
18 - for opt in $saved_CFLAGS ; do
21 - *) CFLAGS="$CFLAGS $opt" ;;
24 - if test x$ac_debug = xno ; then
26 - AC_CHECK_CXX_OPT([-Wall],[OPTS="$OPTS -Wall"])
27 - AC_CHECK_CXX_OPT([-O3],[OPTS="$OPTS -O3"],
28 - [ AC_CHECK_CXX_OPT([-O2], [OPTS="$OPTS -O2"] ) ] )
29 - dnl This triggers compiler bugs with gcc-3.2.2
30 - dnl AC_CHECK_CXX_OPT([-funroll-loops], [OPTS="$OPTS -funroll-loops"])
31 - cpu=`uname -m 2>/dev/null`
32 - test -z "$cpu" && cpu=${host_cpu}
33 - case "${host_cpu}" in
35 - opt="-mcpu=${host_cpu}"
36 - AC_CHECK_CXX_OPT([$opt], [OPTS="$OPTS $opt"])
40 - AC_CHECK_CXX_OPT([-Wall],[OPTS="$OPTS -Wall"])
43 x[0-9]) OPTS="$OPTS -DDEBUGLVL=$ac_debug" ;;
44 xr*) OPTS="$OPTS -DRUNTIME_DEBUG_ONLY" ;;