Code

Initial revision
[rrdtool.git] / configure
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/rrdtool-1.0.33 
15 ac_help="$ac_help
16   --with-tcllib=DIR       location of the tclConfig.sh"
17 ac_help="$ac_help
18   --with-perl-options=[OPTIONS]  options to pass on command-line when
19                           generating Makefile from Makefile.PL"
20 ac_help="$ac_help
21   --enable-shared[=PKGS]  build shared libraries [default=no]"
22 ac_help="$ac_help
23   --enable-static[=PKGS]  build static libraries [default=yes]"
24 ac_help="$ac_help
25   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
26 ac_help="$ac_help
27   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
28 ac_help="$ac_help
29   --disable-libtool-lock  avoid locking (might break parallel builds)"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
34 build=NONE
35 cache_file=./config.cache
36 exec_prefix=NONE
37 host=NONE
38 no_create=
39 nonopt=NONE
40 no_recursion=
41 prefix=NONE
42 program_prefix=NONE
43 program_suffix=NONE
44 program_transform_name=s,x,x,
45 silent=
46 site=
47 srcdir=
48 target=NONE
49 verbose=
50 x_includes=NONE
51 x_libraries=NONE
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
66 subdirs=
67 MFLAGS= MAKEFLAGS=
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
70 ac_max_here_lines=12
72 ac_prev=
73 for ac_option
74 do
76   # If the previous option needs an argument, assign it.
77   if test -n "$ac_prev"; then
78     eval "$ac_prev=\$ac_option"
79     ac_prev=
80     continue
81   fi
83   case "$ac_option" in
84   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85   *) ac_optarg= ;;
86   esac
88   # Accept the important Cygnus configure options, so we can diagnose typos.
90   case "$ac_option" in
92   -bindir | --bindir | --bindi | --bind | --bin | --bi)
93     ac_prev=bindir ;;
94   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95     bindir="$ac_optarg" ;;
97   -build | --build | --buil | --bui | --bu)
98     ac_prev=build ;;
99   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100     build="$ac_optarg" ;;
102   -cache-file | --cache-file | --cache-fil | --cache-fi \
103   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104     ac_prev=cache_file ;;
105   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107     cache_file="$ac_optarg" ;;
109   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110     ac_prev=datadir ;;
111   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112   | --da=*)
113     datadir="$ac_optarg" ;;
115   -disable-* | --disable-*)
116     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117     # Reject names that are not valid shell variable names.
118     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120     fi
121     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122     eval "enable_${ac_feature}=no" ;;
124   -enable-* | --enable-*)
125     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126     # Reject names that are not valid shell variable names.
127     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129     fi
130     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131     case "$ac_option" in
132       *=*) ;;
133       *) ac_optarg=yes ;;
134     esac
135     eval "enable_${ac_feature}='$ac_optarg'" ;;
137   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139   | --exec | --exe | --ex)
140     ac_prev=exec_prefix ;;
141   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143   | --exec=* | --exe=* | --ex=*)
144     exec_prefix="$ac_optarg" ;;
146   -gas | --gas | --ga | --g)
147     # Obsolete; use --with-gas.
148     with_gas=yes ;;
150   -help | --help | --hel | --he)
151     # Omit some internal or obsolete options to make the list less imposing.
152     # This message is too long to be a string in the A/UX 3.1 sh.
153     cat << EOF
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
156 Configuration:
157   --cache-file=FILE       cache test results in FILE
158   --help                  print this message
159   --no-create             do not create output files
160   --quiet, --silent       do not print \`checking...' messages
161   --version               print the version of autoconf that created configure
162 Directory and file names:
163   --prefix=PREFIX         install architecture-independent files in PREFIX
164                           [$ac_default_prefix]
165   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
166                           [same as prefix]
167   --bindir=DIR            user executables in DIR [EPREFIX/bin]
168   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
169   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
170   --datadir=DIR           read-only architecture-independent data in DIR
171                           [PREFIX/share]
172   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
173   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
174                           [PREFIX/com]
175   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
176   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
177   --includedir=DIR        C header files in DIR [PREFIX/include]
178   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
179   --infodir=DIR           info documentation in DIR [PREFIX/info]
180   --mandir=DIR            man documentation in DIR [PREFIX/man]
181   --srcdir=DIR            find the sources in DIR [configure dir or ..]
182   --program-prefix=PREFIX prepend PREFIX to installed program names
183   --program-suffix=SUFFIX append SUFFIX to installed program names
184   --program-transform-name=PROGRAM
185                           run sed PROGRAM on installed program names
186 EOF
187     cat << EOF
188 Host type:
189   --build=BUILD           configure for building on BUILD [BUILD=HOST]
190   --host=HOST             configure for HOST [guessed]
191   --target=TARGET         configure for TARGET [TARGET=HOST]
192 Features and packages:
193   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
194   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
195   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
196   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
197   --x-includes=DIR        X include files are in DIR
198   --x-libraries=DIR       X library files are in DIR
199 EOF
200     if test -n "$ac_help"; then
201       echo "--enable and --with options recognized:$ac_help"
202     fi
203     exit 0 ;;
205   -host | --host | --hos | --ho)
206     ac_prev=host ;;
207   -host=* | --host=* | --hos=* | --ho=*)
208     host="$ac_optarg" ;;
210   -includedir | --includedir | --includedi | --included | --include \
211   | --includ | --inclu | --incl | --inc)
212     ac_prev=includedir ;;
213   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214   | --includ=* | --inclu=* | --incl=* | --inc=*)
215     includedir="$ac_optarg" ;;
217   -infodir | --infodir | --infodi | --infod | --info | --inf)
218     ac_prev=infodir ;;
219   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220     infodir="$ac_optarg" ;;
222   -libdir | --libdir | --libdi | --libd)
223     ac_prev=libdir ;;
224   -libdir=* | --libdir=* | --libdi=* | --libd=*)
225     libdir="$ac_optarg" ;;
227   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228   | --libexe | --libex | --libe)
229     ac_prev=libexecdir ;;
230   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231   | --libexe=* | --libex=* | --libe=*)
232     libexecdir="$ac_optarg" ;;
234   -localstatedir | --localstatedir | --localstatedi | --localstated \
235   | --localstate | --localstat | --localsta | --localst \
236   | --locals | --local | --loca | --loc | --lo)
237     ac_prev=localstatedir ;;
238   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241     localstatedir="$ac_optarg" ;;
243   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244     ac_prev=mandir ;;
245   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246     mandir="$ac_optarg" ;;
248   -nfp | --nfp | --nf)
249     # Obsolete; use --without-fp.
250     with_fp=no ;;
252   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253   | --no-cr | --no-c)
254     no_create=yes ;;
256   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258     no_recursion=yes ;;
260   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262   | --oldin | --oldi | --old | --ol | --o)
263     ac_prev=oldincludedir ;;
264   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267     oldincludedir="$ac_optarg" ;;
269   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270     ac_prev=prefix ;;
271   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272     prefix="$ac_optarg" ;;
274   -program-prefix | --program-prefix | --program-prefi | --program-pref \
275   | --program-pre | --program-pr | --program-p)
276     ac_prev=program_prefix ;;
277   -program-prefix=* | --program-prefix=* | --program-prefi=* \
278   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279     program_prefix="$ac_optarg" ;;
281   -program-suffix | --program-suffix | --program-suffi | --program-suff \
282   | --program-suf | --program-su | --program-s)
283     ac_prev=program_suffix ;;
284   -program-suffix=* | --program-suffix=* | --program-suffi=* \
285   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286     program_suffix="$ac_optarg" ;;
288   -program-transform-name | --program-transform-name \
289   | --program-transform-nam | --program-transform-na \
290   | --program-transform-n | --program-transform- \
291   | --program-transform | --program-transfor \
292   | --program-transfo | --program-transf \
293   | --program-trans | --program-tran \
294   | --progr-tra | --program-tr | --program-t)
295     ac_prev=program_transform_name ;;
296   -program-transform-name=* | --program-transform-name=* \
297   | --program-transform-nam=* | --program-transform-na=* \
298   | --program-transform-n=* | --program-transform-=* \
299   | --program-transform=* | --program-transfor=* \
300   | --program-transfo=* | --program-transf=* \
301   | --program-trans=* | --program-tran=* \
302   | --progr-tra=* | --program-tr=* | --program-t=*)
303     program_transform_name="$ac_optarg" ;;
305   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306   | -silent | --silent | --silen | --sile | --sil)
307     silent=yes ;;
309   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310     ac_prev=sbindir ;;
311   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312   | --sbi=* | --sb=*)
313     sbindir="$ac_optarg" ;;
315   -sharedstatedir | --sharedstatedir | --sharedstatedi \
316   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317   | --sharedst | --shareds | --shared | --share | --shar \
318   | --sha | --sh)
319     ac_prev=sharedstatedir ;;
320   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323   | --sha=* | --sh=*)
324     sharedstatedir="$ac_optarg" ;;
326   -site | --site | --sit)
327     ac_prev=site ;;
328   -site=* | --site=* | --sit=*)
329     site="$ac_optarg" ;;
331   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332     ac_prev=srcdir ;;
333   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334     srcdir="$ac_optarg" ;;
336   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337   | --syscon | --sysco | --sysc | --sys | --sy)
338     ac_prev=sysconfdir ;;
339   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341     sysconfdir="$ac_optarg" ;;
343   -target | --target | --targe | --targ | --tar | --ta | --t)
344     ac_prev=target ;;
345   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346     target="$ac_optarg" ;;
348   -v | -verbose | --verbose | --verbos | --verbo | --verb)
349     verbose=yes ;;
351   -version | --version | --versio | --versi | --vers)
352     echo "configure generated by autoconf version 2.13"
353     exit 0 ;;
355   -with-* | --with-*)
356     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357     # Reject names that are not valid shell variable names.
358     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360     fi
361     ac_package=`echo $ac_package| sed 's/-/_/g'`
362     case "$ac_option" in
363       *=*) ;;
364       *) ac_optarg=yes ;;
365     esac
366     eval "with_${ac_package}='$ac_optarg'" ;;
368   -without-* | --without-*)
369     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370     # Reject names that are not valid shell variable names.
371     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373     fi
374     ac_package=`echo $ac_package| sed 's/-/_/g'`
375     eval "with_${ac_package}=no" ;;
377   --x)
378     # Obsolete; use --with-x.
379     with_x=yes ;;
381   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382   | --x-incl | --x-inc | --x-in | --x-i)
383     ac_prev=x_includes ;;
384   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386     x_includes="$ac_optarg" ;;
388   -x-libraries | --x-libraries | --x-librarie | --x-librari \
389   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390     ac_prev=x_libraries ;;
391   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393     x_libraries="$ac_optarg" ;;
395   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396     ;;
398   *)
399     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400       echo "configure: warning: $ac_option: invalid host type" 1>&2
401     fi
402     if test "x$nonopt" != xNONE; then
403       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404     fi
405     nonopt="$ac_option"
406     ;;
408   esac
409 done
411 if test -n "$ac_prev"; then
412   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 fi
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
418 # 0 standard input
419 # 1 file creation
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
426   exec 6>/dev/null
427 else
428   exec 6>&1
429 fi
430 exec 5>./config.log
432 echo "\
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
435 " 1>&5
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
439 ac_configure_args=
440 for ac_arg
441 do
442   case "$ac_arg" in
443   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444   | --no-cr | --no-c) ;;
445   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450   esac
451 done
453 # NLS nuisances.
454 # Only set these to C if already set.  These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 echo > confdefs.h
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=src/rrd_tool.c
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474   ac_srcdir_defaulted=yes
475   # Try the directory containing this script, then its parent.
476   ac_prog=$0
477   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479   srcdir=$ac_confdir
480   if test ! -r $srcdir/$ac_unique_file; then
481     srcdir=..
482   fi
483 else
484   ac_srcdir_defaulted=no
485 fi
486 if test ! -r $srcdir/$ac_unique_file; then
487   if test "$ac_srcdir_defaulted" = yes; then
488     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489   else
490     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491   fi
492 fi
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497   if test "x$prefix" != xNONE; then
498     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499   else
500     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501   fi
502 fi
503 for ac_site_file in $CONFIG_SITE; do
504   if test -r "$ac_site_file"; then
505     echo "loading site script $ac_site_file"
506     . "$ac_site_file"
507   fi
508 done
510 if test -r "$cache_file"; then
511   echo "loading cache $cache_file"
512   . $cache_file
513 else
514   echo "creating cache $cache_file"
515   > $cache_file
516 fi
518 ac_ext=c
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
525 ac_exeext=
526 ac_objext=o
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530     ac_n= ac_c='
531 ' ac_t='        '
532   else
533     ac_n=-n ac_c= ac_t=
534   fi
535 else
536   ac_n= ac_c='\c' ac_t=
537 fi
541 ac_aux_dir=
542 for ac_dir in config $srcdir/config; do
543   if test -f $ac_dir/install-sh; then
544     ac_aux_dir=$ac_dir
545     ac_install_sh="$ac_aux_dir/install-sh -c"
546     break
547   elif test -f $ac_dir/install.sh; then
548     ac_aux_dir=$ac_dir
549     ac_install_sh="$ac_aux_dir/install.sh -c"
550     break
551   fi
552 done
553 if test -z "$ac_aux_dir"; then
554   { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
555 fi
556 ac_config_guess=$ac_aux_dir/config.guess
557 ac_config_sub=$ac_aux_dir/config.sub
558 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562 # Do some error checking and defaulting for the host and target type.
563 # The inputs are:
564 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
566 # The rules are:
567 # 1. You are not allowed to specify --host, --target, and nonopt at the
568 #    same time.
569 # 2. Host defaults to nonopt.
570 # 3. If nonopt is not specified, then host defaults to the current host,
571 #    as determined by config.guess.
572 # 4. Target and build default to nonopt.
573 # 5. If nonopt is not specified, then target and build default to host.
575 # The aliases save the names the user supplied, while $host etc.
576 # will get canonicalized.
577 case $host---$target---$nonopt in
578 NONE---*---* | *---NONE---* | *---*---NONE) ;;
579 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
580 esac
583 # Make sure we can run config.sub.
584 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
585 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
586 fi
588 echo $ac_n "checking host system type""... $ac_c" 1>&6
589 echo "configure:590: checking host system type" >&5
591 host_alias=$host
592 case "$host_alias" in
593 NONE)
594   case $nonopt in
595   NONE)
596     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
597     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
598     fi ;;
599   *) host_alias=$nonopt ;;
600   esac ;;
601 esac
603 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
604 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607 echo "$ac_t""$host" 1>&6
609 echo $ac_n "checking target system type""... $ac_c" 1>&6
610 echo "configure:611: checking target system type" >&5
612 target_alias=$target
613 case "$target_alias" in
614 NONE)
615   case $nonopt in
616   NONE) target_alias=$host_alias ;;
617   *) target_alias=$nonopt ;;
618   esac ;;
619 esac
621 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
622 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$target" 1>&6
627 echo $ac_n "checking build system type""... $ac_c" 1>&6
628 echo "configure:629: checking build system type" >&5
630 build_alias=$build
631 case "$build_alias" in
632 NONE)
633   case $nonopt in
634   NONE) build_alias=$host_alias ;;
635   *) build_alias=$nonopt ;;
636   esac ;;
637 esac
639 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
640 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$build" 1>&6
645 test "$host_alias" != "$target_alias" &&
646   test "$program_prefix$program_suffix$program_transform_name" = \
647     NONENONEs,x,x, &&
648   program_prefix=${target_alias}-
651 # Find a good install program.  We prefer a C program (faster),
652 # so one script is as good as another.  But avoid the broken or
653 # incompatible versions:
654 # SysV /etc/install, /usr/sbin/install
655 # SunOS /usr/etc/install
656 # IRIX /sbin/install
657 # AIX /bin/install
658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
661 # ./install, which can be erroneously created by make from ./install.sh.
662 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
663 echo "configure:664: checking for a BSD compatible install" >&5
664 if test -z "$INSTALL"; then
665 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
666   echo $ac_n "(cached) $ac_c" 1>&6
667 else
668     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
669   for ac_dir in $PATH; do
670     # Account for people who put trailing slashes in PATH elements.
671     case "$ac_dir/" in
672     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
673     *)
674       # OSF1 and SCO ODT 3.0 have their own names for install.
675       # Don't use installbsd from OSF since it installs stuff as root
676       # by default.
677       for ac_prog in ginstall scoinst install; do
678         if test -f $ac_dir/$ac_prog; then
679           if test $ac_prog = install &&
680             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
681             # AIX install.  It has an incompatible calling convention.
682             :
683           else
684             ac_cv_path_install="$ac_dir/$ac_prog -c"
685             break 2
686           fi
687         fi
688       done
689       ;;
690     esac
691   done
692   IFS="$ac_save_IFS"
694 fi
695   if test "${ac_cv_path_install+set}" = set; then
696     INSTALL="$ac_cv_path_install"
697   else
698     # As a last resort, use the slow shell script.  We don't cache a
699     # path for INSTALL within a source directory, because that will
700     # break other packages using the cache if that directory is
701     # removed, or if the path is relative.
702     INSTALL="$ac_install_sh"
703   fi
704 fi
705 echo "$ac_t""$INSTALL" 1>&6
707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
708 # It thinks the first close brace ends the variable substitution.
709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
715 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
716 echo "configure:717: checking whether build environment is sane" >&5
717 # Just in case
718 sleep 1
719 echo timestamp > conftestfile
720 # Do `set' in a subshell so we don't clobber the current shell's
721 # arguments.  Must try -L first in case configure is actually a
722 # symlink; some systems play weird games with the mod time of symlinks
723 # (eg FreeBSD returns the mod time of the symlink's containing
724 # directory).
725 if (
726    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
727    if test "$*" = "X"; then
728       # -L didn't work.
729       set X `ls -t $srcdir/configure conftestfile`
730    fi
731    if test "$*" != "X $srcdir/configure conftestfile" \
732       && test "$*" != "X conftestfile $srcdir/configure"; then
734       # If neither matched, then we have a broken ls.  This can happen
735       # if, for instance, CONFIG_SHELL is bash and it inherits a
736       # broken ls alias from the environment.  This has actually
737       # happened.  Such a system could not be considered "sane".
738       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
739 alias in your environment" 1>&2; exit 1; }
740    fi
742    test "$2" = conftestfile
743    )
744 then
745    # Ok.
746    :
747 else
748    { echo "configure: error: newly created file is older than distributed files!
749 Check your system clock" 1>&2; exit 1; }
750 fi
751 rm -f conftest*
752 echo "$ac_t""yes" 1>&6
753 if test "$program_transform_name" = s,x,x,; then
754   program_transform_name=
755 else
756   # Double any \ or $.  echo might interpret backslashes.
757   cat <<\EOF_SED > conftestsed
758 s,\\,\\\\,g; s,\$,$$,g
759 EOF_SED
760   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
761   rm -f conftestsed
762 fi
763 test "$program_prefix" != NONE &&
764   program_transform_name="s,^,${program_prefix},; $program_transform_name"
765 # Use a double $ so make ignores it.
766 test "$program_suffix" != NONE &&
767   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
769 # sed with no file args requires a program.
770 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
772 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
773 echo "configure:774: checking whether ${MAKE-make} sets \${MAKE}" >&5
774 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
775 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
776   echo $ac_n "(cached) $ac_c" 1>&6
777 else
778   cat > conftestmake <<\EOF
779 all:
780         @echo 'ac_maketemp="${MAKE}"'
781 EOF
782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
783 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
784 if test -n "$ac_maketemp"; then
785   eval ac_cv_prog_make_${ac_make}_set=yes
786 else
787   eval ac_cv_prog_make_${ac_make}_set=no
788 fi
789 rm -f conftestmake
790 fi
791 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
792   echo "$ac_t""yes" 1>&6
793   SET_MAKE=
794 else
795   echo "$ac_t""no" 1>&6
796   SET_MAKE="MAKE=${MAKE-make}"
797 fi
800 PACKAGE=rrdtool
802 VERSION=1.0.33
804 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
805   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
806 fi
807 cat >> confdefs.h <<EOF
808 #define PACKAGE "$PACKAGE"
809 EOF
811 cat >> confdefs.h <<EOF
812 #define VERSION "$VERSION"
813 EOF
817 missing_dir=`cd $ac_aux_dir && pwd`
818 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
819 echo "configure:820: checking for working aclocal" >&5
820 # Run test in a subshell; some versions of sh will print an error if
821 # an executable is not found, even if stderr is redirected.
822 # Redirect stdin to placate older versions of autoconf.  Sigh.
823 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
824    ACLOCAL=aclocal
825    echo "$ac_t""found" 1>&6
826 else
827    ACLOCAL="$missing_dir/missing aclocal"
828    echo "$ac_t""missing" 1>&6
829 fi
831 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
832 echo "configure:833: checking for working autoconf" >&5
833 # Run test in a subshell; some versions of sh will print an error if
834 # an executable is not found, even if stderr is redirected.
835 # Redirect stdin to placate older versions of autoconf.  Sigh.
836 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
837    AUTOCONF=autoconf
838    echo "$ac_t""found" 1>&6
839 else
840    AUTOCONF="$missing_dir/missing autoconf"
841    echo "$ac_t""missing" 1>&6
842 fi
844 echo $ac_n "checking for working automake""... $ac_c" 1>&6
845 echo "configure:846: checking for working automake" >&5
846 # Run test in a subshell; some versions of sh will print an error if
847 # an executable is not found, even if stderr is redirected.
848 # Redirect stdin to placate older versions of autoconf.  Sigh.
849 if (automake --version) < /dev/null > /dev/null 2>&1; then
850    AUTOMAKE=automake
851    echo "$ac_t""found" 1>&6
852 else
853    AUTOMAKE="$missing_dir/missing automake"
854    echo "$ac_t""missing" 1>&6
855 fi
857 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
858 echo "configure:859: checking for working autoheader" >&5
859 # Run test in a subshell; some versions of sh will print an error if
860 # an executable is not found, even if stderr is redirected.
861 # Redirect stdin to placate older versions of autoconf.  Sigh.
862 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
863    AUTOHEADER=autoheader
864    echo "$ac_t""found" 1>&6
865 else
866    AUTOHEADER="$missing_dir/missing autoheader"
867    echo "$ac_t""missing" 1>&6
868 fi
870 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
871 echo "configure:872: checking for working makeinfo" >&5
872 # Run test in a subshell; some versions of sh will print an error if
873 # an executable is not found, even if stderr is redirected.
874 # Redirect stdin to placate older versions of autoconf.  Sigh.
875 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
876    MAKEINFO=makeinfo
877    echo "$ac_t""found" 1>&6
878 else
879    MAKEINFO="$missing_dir/missing makeinfo"
880    echo "$ac_t""missing" 1>&6
881 fi
894 CGI_LIB_DIR=libraries/cgilib-0.4
895 GD_LIB_DIR=libraries/gd1.3
896 PNG_LIB_DIR=libraries/libpng-1.0.9
897 ZLIB_LIB_DIR=libraries/zlib-1.1.3
905 # Extract the first word of "perl", so it can be a program name with args.
906 set dummy perl; ac_word=$2
907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
908 echo "configure:909: checking for $ac_word" >&5
909 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
910   echo $ac_n "(cached) $ac_c" 1>&6
911 else
912   case "$PERL" in
913   /*)
914   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
915   ;;
916   ?:/*)                  
917   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
918   ;;
919   *)
920   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
921   ac_dummy="$PATH"
922   for ac_dir in $ac_dummy; do 
923     test -z "$ac_dir" && ac_dir=.
924     if test -f $ac_dir/$ac_word; then
925       ac_cv_path_PERL="$ac_dir/$ac_word"
926       break
927     fi
928   done
929   IFS="$ac_save_ifs"
930   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
931   ;;
932 esac
933 fi
934 PERL="$ac_cv_path_PERL"
935 if test -n "$PERL"; then
936   echo "$ac_t""$PERL" 1>&6
937 else
938   echo "$ac_t""no" 1>&6
939 fi
941 if test "x$PERL" = "xno"; then
942         COMP_PERL=
943 else
944         COMP_PERL="perl_piped perl_shared"
945         echo $ac_n "checking for shared library extension""... $ac_c" 1>&6
946 echo "configure:947: checking for shared library extension" >&5
947         SO_EXT=`$PERL -e 'use Config; if (defined $Config{so} and $Config{so} ne 'a') {print "$Config{so}\n"} else {print "so\n"};'`
948         echo "$ac_t""$SO_EXT" 1>&6
949 fi
953 withval=""
954 # Check whether --with-tcllib or --without-tcllib was given.
955 if test "${with_tcllib+set}" = set; then
956   withval="$with_tcllib"
957   :
958 fi
960 found=0
961 echo $ac_n "checking for tclConfig.sh in $withval""... $ac_c" 1>&6
962 echo "configure:963: checking for tclConfig.sh in $withval" >&5
963 if test -f "$withval/tclConfig.sh" ; then
964         tcl_config=$withval/tclConfig.sh
965         found=1
966         echo "$ac_t""yes" 1>&6
967         break
968 else
969         echo "$ac_t""no" 1>&6
970 fi
972 if test $found -eq 0 ; then
973         echo "configure: warning: tclConfig.sh not found - Tcl interface won't be built" 1>&2
974 else
975         . $tcl_config
976 fi
978 # Options to pass when configuring perl module
979 # Check whether --with-perl-options or --without-perl-options was given.
980 if test "${with_perl_options+set}" = set; then
981   withval="$with_perl_options"
982   PERL_MAKE_OPTIONS=$withval
983 fi
989 if test x$found = x1 ; then
990   COMP_TCL_TRUE=
991   COMP_TCL_FALSE='#'
992 else
993   COMP_TCL_TRUE='#'
994   COMP_TCL_FALSE=
995 fi
1004 # Extract the first word of "gcc", so it can be a program name with args.
1005 set dummy gcc; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1009   echo $ac_n "(cached) $ac_c" 1>&6
1010 else
1011   if test -n "$CC"; then
1012   ac_cv_prog_CC="$CC" # Let the user override the test.
1013 else
1014   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1015   ac_dummy="$PATH"
1016   for ac_dir in $ac_dummy; do
1017     test -z "$ac_dir" && ac_dir=.
1018     if test -f $ac_dir/$ac_word; then
1019       ac_cv_prog_CC="gcc"
1020       break
1021     fi
1022   done
1023   IFS="$ac_save_ifs"
1024 fi
1025 fi
1026 CC="$ac_cv_prog_CC"
1027 if test -n "$CC"; then
1028   echo "$ac_t""$CC" 1>&6
1029 else
1030   echo "$ac_t""no" 1>&6
1031 fi
1033 if test -z "$CC"; then
1034   # Extract the first word of "cc", so it can be a program name with args.
1035 set dummy cc; ac_word=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039   echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041   if test -n "$CC"; then
1042   ac_cv_prog_CC="$CC" # Let the user override the test.
1043 else
1044   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1045   ac_prog_rejected=no
1046   ac_dummy="$PATH"
1047   for ac_dir in $ac_dummy; do
1048     test -z "$ac_dir" && ac_dir=.
1049     if test -f $ac_dir/$ac_word; then
1050       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1051         ac_prog_rejected=yes
1052         continue
1053       fi
1054       ac_cv_prog_CC="cc"
1055       break
1056     fi
1057   done
1058   IFS="$ac_save_ifs"
1059 if test $ac_prog_rejected = yes; then
1060   # We found a bogon in the path, so make sure we never use it.
1061   set dummy $ac_cv_prog_CC
1062   shift
1063   if test $# -gt 0; then
1064     # We chose a different compiler from the bogus one.
1065     # However, it has the same basename, so the bogon will be chosen
1066     # first if we set CC to just the basename; use the full file name.
1067     shift
1068     set dummy "$ac_dir/$ac_word" "$@"
1069     shift
1070     ac_cv_prog_CC="$@"
1071   fi
1072 fi
1073 fi
1074 fi
1075 CC="$ac_cv_prog_CC"
1076 if test -n "$CC"; then
1077   echo "$ac_t""$CC" 1>&6
1078 else
1079   echo "$ac_t""no" 1>&6
1080 fi
1082   if test -z "$CC"; then
1083     case "`uname -s`" in
1084     *win32* | *WIN32*)
1085       # Extract the first word of "cl", so it can be a program name with args.
1086 set dummy cl; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090   echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092   if test -n "$CC"; then
1093   ac_cv_prog_CC="$CC" # Let the user override the test.
1094 else
1095   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1096   ac_dummy="$PATH"
1097   for ac_dir in $ac_dummy; do
1098     test -z "$ac_dir" && ac_dir=.
1099     if test -f $ac_dir/$ac_word; then
1100       ac_cv_prog_CC="cl"
1101       break
1102     fi
1103   done
1104   IFS="$ac_save_ifs"
1105 fi
1106 fi
1107 CC="$ac_cv_prog_CC"
1108 if test -n "$CC"; then
1109   echo "$ac_t""$CC" 1>&6
1110 else
1111   echo "$ac_t""no" 1>&6
1112 fi
1113  ;;
1114     esac
1115   fi
1116   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1117 fi
1119 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1122 ac_ext=c
1123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1124 ac_cpp='$CPP $CPPFLAGS'
1125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1127 cross_compiling=$ac_cv_prog_cc_cross
1129 cat > conftest.$ac_ext << EOF
1131 #line 1132 "configure"
1132 #include "confdefs.h"
1134 main(){return(0);}
1135 EOF
1136 if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1137   ac_cv_prog_cc_works=yes
1138   # If we can't run a trivial program, we are probably using a cross compiler.
1139   if (./conftest; exit) 2>/dev/null; then
1140     ac_cv_prog_cc_cross=no
1141   else
1142     ac_cv_prog_cc_cross=yes
1143   fi
1144 else
1145   echo "configure: failed program was:" >&5
1146   cat conftest.$ac_ext >&5
1147   ac_cv_prog_cc_works=no
1148 fi
1149 rm -fr conftest*
1150 ac_ext=c
1151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1152 ac_cpp='$CPP $CPPFLAGS'
1153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1155 cross_compiling=$ac_cv_prog_cc_cross
1157 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1158 if test $ac_cv_prog_cc_works = no; then
1159   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1160 fi
1161 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1163 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1164 cross_compiling=$ac_cv_prog_cc_cross
1166 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1167 echo "configure:1168: checking whether we are using GNU C" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1169   echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171   cat > conftest.c <<EOF
1172 #ifdef __GNUC__
1173   yes;
1174 #endif
1175 EOF
1176 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1177   ac_cv_prog_gcc=yes
1178 else
1179   ac_cv_prog_gcc=no
1180 fi
1181 fi
1183 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1185 if test $ac_cv_prog_gcc = yes; then
1186   GCC=yes
1187 else
1188   GCC=
1189 fi
1191 ac_test_CFLAGS="${CFLAGS+set}"
1192 ac_save_CFLAGS="$CFLAGS"
1193 CFLAGS=
1194 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether ${CC-cc} accepts -g" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1197   echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199   echo 'void f(){}' > conftest.c
1200 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1201   ac_cv_prog_cc_g=yes
1202 else
1203   ac_cv_prog_cc_g=no
1204 fi
1205 rm -f conftest*
1207 fi
1209 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1210 if test "$ac_test_CFLAGS" = set; then
1211   CFLAGS="$ac_save_CFLAGS"
1212 elif test $ac_cv_prog_cc_g = yes; then
1213   if test "$GCC" = yes; then
1214     CFLAGS="-g -O2"
1215   else
1216     CFLAGS="-g"
1217   fi
1218 else
1219   if test "$GCC" = yes; then
1220     CFLAGS="-O2"
1221   else
1222     CFLAGS=
1223   fi
1224 fi
1226 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1227 echo "configure:1228: checking how to run the C preprocessor" >&5
1228 # On Suns, sometimes $CPP names a directory.
1229 if test -n "$CPP" && test -d "$CPP"; then
1230   CPP=
1231 fi
1232 if test -z "$CPP"; then
1233 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1234   echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236     # This must be in double quotes, not single quotes, because CPP may get
1237   # substituted into the Makefile and "${CC-cc}" will confuse make.
1238   CPP="${CC-cc} -E"
1239   # On the NeXT, cc -E runs the code through the compiler's parser,
1240   # not just through cpp.
1241   cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1244 #include <assert.h>
1245 Syntax Error
1246 EOF
1247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1248 { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1250 if test -z "$ac_err"; then
1251   :
1252 else
1253   echo "$ac_err" >&5
1254   echo "configure: failed program was:" >&5
1255   cat conftest.$ac_ext >&5
1256   rm -rf conftest*
1257   CPP="${CC-cc} -E -traditional-cpp"
1258   cat > conftest.$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1261 #include <assert.h>
1262 Syntax Error
1263 EOF
1264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1265 { (eval echo configure:1266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1267 if test -z "$ac_err"; then
1268   :
1269 else
1270   echo "$ac_err" >&5
1271   echo "configure: failed program was:" >&5
1272   cat conftest.$ac_ext >&5
1273   rm -rf conftest*
1274   CPP="${CC-cc} -nologo -E"
1275   cat > conftest.$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1278 #include <assert.h>
1279 Syntax Error
1280 EOF
1281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1282 { (eval echo configure:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1284 if test -z "$ac_err"; then
1285   :
1286 else
1287   echo "$ac_err" >&5
1288   echo "configure: failed program was:" >&5
1289   cat conftest.$ac_ext >&5
1290   rm -rf conftest*
1291   CPP=/lib/cpp
1292 fi
1293 rm -f conftest*
1294 fi
1295 rm -f conftest*
1296 fi
1297 rm -f conftest*
1298   ac_cv_prog_CPP="$CPP"
1299 fi
1300   CPP="$ac_cv_prog_CPP"
1301 else
1302   ac_cv_prog_CPP="$CPP"
1303 fi
1304 echo "$ac_t""$CPP" 1>&6
1307 # Check whether --enable-shared or --disable-shared was given.
1308 if test "${enable_shared+set}" = set; then
1309   enableval="$enable_shared"
1310   p=${PACKAGE-default}
1311 case "$enableval" in
1312 yes) enable_shared=yes ;;
1313 no) enable_shared=no ;;
1314 *)
1315   enable_shared=no
1316   # Look at the argument we got.  We use all the common list separators.
1317   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1318   for pkg in $enableval; do
1319     if test "X$pkg" = "X$p"; then
1320       enable_shared=yes
1321     fi
1322   done
1323   IFS="$ac_save_ifs"
1324   ;;
1325 esac
1326 else
1327   enable_shared=no
1328 fi
1331 # Check whether --enable-static or --disable-static was given.
1332 if test "${enable_static+set}" = set; then
1333   enableval="$enable_static"
1334   p=${PACKAGE-default}
1335 case "$enableval" in
1336 yes) enable_static=yes ;;
1337 no) enable_static=no ;;
1338 *)
1339   enable_static=no
1340   # Look at the argument we got.  We use all the common list separators.
1341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1342   for pkg in $enableval; do
1343     if test "X$pkg" = "X$p"; then
1344       enable_static=yes
1345     fi
1346   done
1347   IFS="$ac_save_ifs"
1348   ;;
1349 esac
1350 else
1351   enable_static=yes
1352 fi
1354 # Check whether --enable-fast-install or --disable-fast-install was given.
1355 if test "${enable_fast_install+set}" = set; then
1356   enableval="$enable_fast_install"
1357   p=${PACKAGE-default}
1358 case "$enableval" in
1359 yes) enable_fast_install=yes ;;
1360 no) enable_fast_install=no ;;
1361 *)
1362   enable_fast_install=no
1363   # Look at the argument we got.  We use all the common list separators.
1364   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1365   for pkg in $enableval; do
1366     if test "X$pkg" = "X$p"; then
1367       enable_fast_install=yes
1368     fi
1369   done
1370   IFS="$ac_save_ifs"
1371   ;;
1372 esac
1373 else
1374   enable_fast_install=yes
1375 fi
1377 # Extract the first word of "ranlib", so it can be a program name with args.
1378 set dummy ranlib; ac_word=$2
1379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1380 echo "configure:1381: checking for $ac_word" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1382   echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384   if test -n "$RANLIB"; then
1385   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1386 else
1387   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1388   ac_dummy="$PATH"
1389   for ac_dir in $ac_dummy; do
1390     test -z "$ac_dir" && ac_dir=.
1391     if test -f $ac_dir/$ac_word; then
1392       ac_cv_prog_RANLIB="ranlib"
1393       break
1394     fi
1395   done
1396   IFS="$ac_save_ifs"
1397   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1398 fi
1399 fi
1400 RANLIB="$ac_cv_prog_RANLIB"
1401 if test -n "$RANLIB"; then
1402   echo "$ac_t""$RANLIB" 1>&6
1403 else
1404   echo "$ac_t""no" 1>&6
1405 fi
1407 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1408 if test "${with_gnu_ld+set}" = set; then
1409   withval="$with_gnu_ld"
1410   test "$withval" = no || with_gnu_ld=yes
1411 else
1412   with_gnu_ld=no
1413 fi
1415 ac_prog=ld
1416 if test "$ac_cv_prog_gcc" = yes; then
1417   # Check if gcc -print-prog-name=ld gives a path.
1418   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1419 echo "configure:1420: checking for ld used by GCC" >&5
1420   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1421   case "$ac_prog" in
1422     # Accept absolute paths.
1423     [\\/]* | [A-Za-z]:[\\/]*)
1424       re_direlt='/[^/][^/]*/\.\./'
1425       # Canonicalize the path of ld
1426       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1427       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1428         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1429       done
1430       test -z "$LD" && LD="$ac_prog"
1431       ;;
1432   "")
1433     # If it fails, then pretend we aren't using GCC.
1434     ac_prog=ld
1435     ;;
1436   *)
1437     # If it is relative, then search for the first ld in PATH.
1438     with_gnu_ld=unknown
1439     ;;
1440   esac
1441 elif test "$with_gnu_ld" = yes; then
1442   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1443 echo "configure:1444: checking for GNU ld" >&5
1444 else
1445   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1446 echo "configure:1447: checking for non-GNU ld" >&5
1447 fi
1448 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1449   echo $ac_n "(cached) $ac_c" 1>&6
1450 else
1451   if test -z "$LD"; then
1452   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1453   for ac_dir in $PATH; do
1454     test -z "$ac_dir" && ac_dir=.
1455     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1456       ac_cv_path_LD="$ac_dir/$ac_prog"
1457       # Check to see if the program is GNU ld.  I'd rather use --version,
1458       # but apparently some GNU ld's only accept -v.
1459       # Break only if it was the GNU/non-GNU ld that we prefer.
1460       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1461         test "$with_gnu_ld" != no && break
1462       else
1463         test "$with_gnu_ld" != yes && break
1464       fi
1465     fi
1466   done
1467   IFS="$ac_save_ifs"
1468 else
1469   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1470 fi
1471 fi
1473 LD="$ac_cv_path_LD"
1474 if test -n "$LD"; then
1475   echo "$ac_t""$LD" 1>&6
1476 else
1477   echo "$ac_t""no" 1>&6
1478 fi
1479 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1480 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1481 echo "configure:1482: checking if the linker ($LD) is GNU ld" >&5
1482 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1483   echo $ac_n "(cached) $ac_c" 1>&6
1484 else
1485   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1486 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1487   ac_cv_prog_gnu_ld=yes
1488 else
1489   ac_cv_prog_gnu_ld=no
1490 fi
1491 fi
1493 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1496 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1497 echo "configure:1498: checking for BSD-compatible nm" >&5
1498 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1499   echo $ac_n "(cached) $ac_c" 1>&6
1500 else
1501   if test -n "$NM"; then
1502   # Let the user override the test.
1503   ac_cv_path_NM="$NM"
1504 else
1505   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1506   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1507     test -z "$ac_dir" && ac_dir=.
1508     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1509       # Check to see if the nm accepts a BSD-compat flag.
1510       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1511       #   nm: unknown option "B" ignored
1512       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1513         ac_cv_path_NM="$ac_dir/nm -B"
1514         break
1515       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1516         ac_cv_path_NM="$ac_dir/nm -p"
1517         break
1518       else
1519         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1520         continue # so that we can try to find one that supports BSD flags
1521       fi
1522     fi
1523   done
1524   IFS="$ac_save_ifs"
1525   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1526 fi
1527 fi
1529 NM="$ac_cv_path_NM"
1530 echo "$ac_t""$NM" 1>&6
1532 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1533 echo "configure:1534: checking whether ln -s works" >&5
1534 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1535   echo $ac_n "(cached) $ac_c" 1>&6
1536 else
1537   rm -f conftestdata
1538 if ln -s X conftestdata 2>/dev/null
1539 then
1540   rm -f conftestdata
1541   ac_cv_prog_LN_S="ln -s"
1542 else
1543   ac_cv_prog_LN_S=ln
1544 fi
1545 fi
1546 LN_S="$ac_cv_prog_LN_S"
1547 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1548   echo "$ac_t""yes" 1>&6
1549 else
1550   echo "$ac_t""no" 1>&6
1551 fi
1554 case "$target" in
1555 NONE) lt_target="$host" ;;
1556 *) lt_target="$target" ;;
1557 esac
1559 # Check for any special flags to pass to ltconfig.
1560 libtool_flags="--cache-file=$cache_file"
1561 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1562 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1563 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1564 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1565 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1569 if test "${enable_libtool_lock+set}" = set; then
1570   enableval="$enable_libtool_lock"
1571   :
1572 fi
1574 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1575 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1577 # Some flags need to be propagated to the compiler or linker for good
1578 # libtool support.
1579 case "$lt_target" in
1580 *-*-irix6*)
1581   # Find out which ABI we are using.
1582   echo '#line 1583 "configure"' > conftest.$ac_ext
1583   if { (eval echo configure:1584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1584     case "`/usr/bin/file conftest.o`" in
1585     *32-bit*)
1586       LD="${LD-ld} -32"
1587       ;;
1588     *N32*)
1589       LD="${LD-ld} -n32"
1590       ;;
1591     *64-bit*)
1592       LD="${LD-ld} -64"
1593       ;;
1594     esac
1595   fi
1596   rm -rf conftest*
1597   ;;
1599 *-*-sco3.2v5*)
1600   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1601   SAVE_CFLAGS="$CFLAGS"
1602   CFLAGS="$CFLAGS -belf"
1603   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1604 echo "configure:1605: checking whether the C compiler needs -belf" >&5
1605 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1606   echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608   cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1612 int main() {
1614 ; return 0; }
1615 EOF
1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1617   rm -rf conftest*
1618   lt_cv_cc_needs_belf=yes
1619 else
1620   echo "configure: failed program was:" >&5
1621   cat conftest.$ac_ext >&5
1622   rm -rf conftest*
1623   lt_cv_cc_needs_belf=no
1624 fi
1625 rm -f conftest*
1626 fi
1628 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1629   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1630     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1631     CFLAGS="$SAVE_CFLAGS"
1632   fi
1633   ;;
1636 esac
1639 # Save cache, so that ltconfig can load it
1640 cat > confcache <<\EOF
1641 # This file is a shell script that caches the results of configure
1642 # tests run on this system so they can be shared between configure
1643 # scripts and configure runs.  It is not useful on other systems.
1644 # If it contains results you don't want to keep, you may remove or edit it.
1646 # By default, configure uses ./config.cache as the cache file,
1647 # creating it if it does not exist already.  You can give configure
1648 # the --cache-file=FILE option to use a different cache file; that is
1649 # what configure does when it calls configure scripts in
1650 # subdirectories, so they share the cache.
1651 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1652 # config.status only pays attention to the cache file if you give it the
1653 # --recheck option to rerun configure.
1655 EOF
1656 # The following way of writing the cache mishandles newlines in values,
1657 # but we know of no workaround that is simple, portable, and efficient.
1658 # So, don't put newlines in cache variables' values.
1659 # Ultrix sh set writes to stderr and can't be redirected directly,
1660 # and sets the high bit in the cache file unless we assign to the vars.
1661 (set) 2>&1 |
1662   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1663   *ac_space=\ *)
1664     # `set' does not quote correctly, so add quotes (double-quote substitution
1665     # turns \\\\ into \\, and sed turns \\ into \).
1666     sed -n \
1667       -e "s/'/'\\\\''/g" \
1668       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1669     ;;
1670   *)
1671     # `set' quotes correctly as required by POSIX, so do not add quotes.
1672     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1673     ;;
1674   esac >> confcache
1675 if cmp -s $cache_file confcache; then
1676   :
1677 else
1678   if test -w $cache_file; then
1679     echo "updating cache $cache_file"
1680     cat confcache > $cache_file
1681   else
1682     echo "not updating unwritable cache $cache_file"
1683   fi
1684 fi
1685 rm -f confcache
1688 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1689 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1690 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1691 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1692 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1693 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1694 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1695 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1697 # Reload cache, that may have been modified by ltconfig
1698 if test -r "$cache_file"; then
1699   echo "loading cache $cache_file"
1700   . $cache_file
1701 else
1702   echo "creating cache $cache_file"
1703   > $cache_file
1704 fi
1707 # This can be used to rebuild libtool when needed
1708 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1710 # Always use our own libtool.
1711 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1713 # Redirect the config.log output again, so that the ltconfig log is not
1714 # clobbered by the next message.
1715 exec 5>>./config.log
1718 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1719 echo "configure:1720: checking for ANSI C header files" >&5
1720 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1721   echo $ac_n "(cached) $ac_c" 1>&6
1722 else
1723   cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include <stdlib.h>
1727 #include <stdarg.h>
1728 #include <string.h>
1729 #include <float.h>
1730 EOF
1731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1732 { (eval echo configure:1733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1734 if test -z "$ac_err"; then
1735   rm -rf conftest*
1736   ac_cv_header_stdc=yes
1737 else
1738   echo "$ac_err" >&5
1739   echo "configure: failed program was:" >&5
1740   cat conftest.$ac_ext >&5
1741   rm -rf conftest*
1742   ac_cv_header_stdc=no
1743 fi
1744 rm -f conftest*
1746 if test $ac_cv_header_stdc = yes; then
1747   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 #include <string.h>
1752 EOF
1753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1754   egrep "memchr" >/dev/null 2>&1; then
1755   :
1756 else
1757   rm -rf conftest*
1758   ac_cv_header_stdc=no
1759 fi
1760 rm -f conftest*
1762 fi
1764 if test $ac_cv_header_stdc = yes; then
1765   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 #include <stdlib.h>
1770 EOF
1771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1772   egrep "free" >/dev/null 2>&1; then
1773   :
1774 else
1775   rm -rf conftest*
1776   ac_cv_header_stdc=no
1777 fi
1778 rm -f conftest*
1780 fi
1782 if test $ac_cv_header_stdc = yes; then
1783   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1784 if test "$cross_compiling" = yes; then
1785   :
1786 else
1787   cat > conftest.$ac_ext <<EOF
1788 #line 1789 "configure"
1789 #include "confdefs.h"
1790 #include <ctype.h>
1791 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1792 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1794 int main () { int i; for (i = 0; i < 256; i++)
1795 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1796 exit (0); }
1798 EOF
1799 if { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1800 then
1801   :
1802 else
1803   echo "configure: failed program was:" >&5
1804   cat conftest.$ac_ext >&5
1805   rm -fr conftest*
1806   ac_cv_header_stdc=no
1807 fi
1808 rm -fr conftest*
1809 fi
1811 fi
1812 fi
1814 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1815 if test $ac_cv_header_stdc = yes; then
1816   cat >> confdefs.h <<\EOF
1817 #define STDC_HEADERS 1
1818 EOF
1820 fi
1822 for ac_hdr in fcntl.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/time.h sys/times.h sys/param.h sys/resource.h float.h
1823 do
1824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_hdr" >&5
1827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1828   echo $ac_n "(cached) $ac_c" 1>&6
1829 else
1830   cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1833 #include <$ac_hdr>
1834 EOF
1835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1836 { (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1838 if test -z "$ac_err"; then
1839   rm -rf conftest*
1840   eval "ac_cv_header_$ac_safe=yes"
1841 else
1842   echo "$ac_err" >&5
1843   echo "configure: failed program was:" >&5
1844   cat conftest.$ac_ext >&5
1845   rm -rf conftest*
1846   eval "ac_cv_header_$ac_safe=no"
1847 fi
1848 rm -f conftest*
1849 fi
1850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1851   echo "$ac_t""yes" 1>&6
1852     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1853   cat >> confdefs.h <<EOF
1854 #define $ac_tr_hdr 1
1855 EOF
1856  
1857 else
1858   echo "$ac_t""no" 1>&6
1859 fi
1860 done
1863 echo $ac_n "checking for working const""... $ac_c" 1>&6
1864 echo "configure:1865: checking for working const" >&5
1865 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1866   echo $ac_n "(cached) $ac_c" 1>&6
1867 else
1868   cat > conftest.$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1872 int main() {
1874 /* Ultrix mips cc rejects this.  */
1875 typedef int charset[2]; const charset x;
1876 /* SunOS 4.1.1 cc rejects this.  */
1877 char const *const *ccp;
1878 char **p;
1879 /* NEC SVR4.0.2 mips cc rejects this.  */
1880 struct point {int x, y;};
1881 static struct point const zero = {0,0};
1882 /* AIX XL C 1.02.0.0 rejects this.
1883    It does not let you subtract one const X* pointer from another in an arm
1884    of an if-expression whose if-part is not a constant expression */
1885 const char *g = "string";
1886 ccp = &g + (g ? g-g : 0);
1887 /* HPUX 7.0 cc rejects these. */
1888 ++ccp;
1889 p = (char**) ccp;
1890 ccp = (char const *const *) p;
1891 { /* SCO 3.2v4 cc rejects this.  */
1892   char *t;
1893   char const *s = 0 ? (char *) 0 : (char const *) 0;
1895   *t++ = 0;
1897 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1898   int x[] = {25, 17};
1899   const int *foo = &x[0];
1900   ++foo;
1902 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1903   typedef const int *iptr;
1904   iptr p = 0;
1905   ++p;
1907 { /* AIX XL C 1.02.0.0 rejects this saying
1908      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1909   struct s { int j; const int *ap[3]; };
1910   struct s *b; b->j = 5;
1912 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1913   const int foo = 10;
1916 ; return 0; }
1917 EOF
1918 if { (eval echo configure:1919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1919   rm -rf conftest*
1920   ac_cv_c_const=yes
1921 else
1922   echo "configure: failed program was:" >&5
1923   cat conftest.$ac_ext >&5
1924   rm -rf conftest*
1925   ac_cv_c_const=no
1926 fi
1927 rm -f conftest*
1928 fi
1930 echo "$ac_t""$ac_cv_c_const" 1>&6
1931 if test $ac_cv_c_const = no; then
1932   cat >> confdefs.h <<\EOF
1933 #define const 
1934 EOF
1936 fi
1938 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1939 echo "configure:1940: checking whether time.h and sys/time.h may both be included" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1941   echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943   cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <sys/types.h>
1947 #include <sys/time.h>
1948 #include <time.h>
1949 int main() {
1950 struct tm *tp;
1951 ; return 0; }
1952 EOF
1953 if { (eval echo configure:1954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1954   rm -rf conftest*
1955   ac_cv_header_time=yes
1956 else
1957   echo "configure: failed program was:" >&5
1958   cat conftest.$ac_ext >&5
1959   rm -rf conftest*
1960   ac_cv_header_time=no
1961 fi
1962 rm -f conftest*
1963 fi
1965 echo "$ac_t""$ac_cv_header_time" 1>&6
1966 if test $ac_cv_header_time = yes; then
1967   cat >> confdefs.h <<\EOF
1968 #define TIME_WITH_SYS_TIME 1
1969 EOF
1971 fi
1973 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether struct tm is in sys/time.h or time.h" >&5
1975 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1976   echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978   cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 #include <sys/types.h>
1982 #include <time.h>
1983 int main() {
1984 struct tm *tp; tp->tm_sec;
1985 ; return 0; }
1986 EOF
1987 if { (eval echo configure:1988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1988   rm -rf conftest*
1989   ac_cv_struct_tm=time.h
1990 else
1991   echo "configure: failed program was:" >&5
1992   cat conftest.$ac_ext >&5
1993   rm -rf conftest*
1994   ac_cv_struct_tm=sys/time.h
1995 fi
1996 rm -f conftest*
1997 fi
1999 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2000 if test $ac_cv_struct_tm = sys/time.h; then
2001   cat >> confdefs.h <<\EOF
2002 #define TM_IN_SYS_TIME 1
2003 EOF
2005 fi
2008 echo $ac_n "checking for acos""... $ac_c" 1>&6
2009 echo "configure:2010: checking for acos" >&5
2010 if eval "test \"`echo '$''{'ac_cv_func_acos'+set}'`\" = set"; then
2011   echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013   cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016 /* System header to define __stub macros and hopefully few prototypes,
2017     which can conflict with char acos(); below.  */
2018 #include <assert.h>
2019 /* Override any gcc2 internal prototype to avoid an error.  */
2020 /* We use char because int might match the return type of a gcc2
2021     builtin and then its argument prototype would still apply.  */
2022 char acos();
2024 int main() {
2026 /* The GNU C library defines this for functions which it implements
2027     to always fail with ENOSYS.  Some functions are actually named
2028     something starting with __ and the normal name is an alias.  */
2029 #if defined (__stub_acos) || defined (__stub___acos)
2030 choke me
2031 #else
2032 acos();
2033 #endif
2035 ; return 0; }
2036 EOF
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2038   rm -rf conftest*
2039   eval "ac_cv_func_acos=yes"
2040 else
2041   echo "configure: failed program was:" >&5
2042   cat conftest.$ac_ext >&5
2043   rm -rf conftest*
2044   eval "ac_cv_func_acos=no"
2045 fi
2046 rm -f conftest*
2047 fi
2049 if eval "test \"`echo '$ac_cv_func_'acos`\" = yes"; then
2050   echo "$ac_t""yes" 1>&6
2051   :
2052 else
2053   echo "$ac_t""no" 1>&6
2054 echo $ac_n "checking for acos in -lm""... $ac_c" 1>&6
2055 echo "configure:2056: checking for acos in -lm" >&5
2056 ac_lib_var=`echo m'_'acos | sed 'y%./+-%__p_%'`
2057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2058   echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060   ac_save_LIBS="$LIBS"
2061 LIBS="-lm  $LIBS"
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 /* Override any gcc2 internal prototype to avoid an error.  */
2066 /* We use char because int might match the return type of a gcc2
2067     builtin and then its argument prototype would still apply.  */
2068 char acos();
2070 int main() {
2071 acos()
2072 ; return 0; }
2073 EOF
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2075   rm -rf conftest*
2076   eval "ac_cv_lib_$ac_lib_var=yes"
2077 else
2078   echo "configure: failed program was:" >&5
2079   cat conftest.$ac_ext >&5
2080   rm -rf conftest*
2081   eval "ac_cv_lib_$ac_lib_var=no"
2082 fi
2083 rm -f conftest*
2084 LIBS="$ac_save_LIBS"
2086 fi
2087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2088   echo "$ac_t""yes" 1>&6
2089     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
2090     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2091   cat >> confdefs.h <<EOF
2092 #define $ac_tr_lib 1
2093 EOF
2095   LIBS="-lm $LIBS"
2097 else
2098   echo "$ac_t""no" 1>&6
2099 fi
2101 fi
2104 for ac_prog in gnroff nroff
2105 do
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy $ac_prog; ac_word=$2
2108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2109 echo "configure:2110: checking for $ac_word" >&5
2110 if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then
2111   echo $ac_n "(cached) $ac_c" 1>&6
2112 else
2113   case "$NROFF" in
2114   /*)
2115   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
2116   ;;
2117   ?:/*)                  
2118   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path.
2119   ;;
2120   *)
2121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2122   ac_dummy="$PATH"
2123   for ac_dir in $ac_dummy; do 
2124     test -z "$ac_dir" && ac_dir=.
2125     if test -f $ac_dir/$ac_word; then
2126       ac_cv_path_NROFF="$ac_dir/$ac_word"
2127       break
2128     fi
2129   done
2130   IFS="$ac_save_ifs"
2131   ;;
2132 esac
2133 fi
2134 NROFF="$ac_cv_path_NROFF"
2135 if test -n "$NROFF"; then
2136   echo "$ac_t""$NROFF" 1>&6
2137 else
2138   echo "$ac_t""no" 1>&6
2139 fi
2141 test -n "$NROFF" && break
2142 done
2144 for ac_prog in groff troff
2145 do
2146 # Extract the first word of "$ac_prog", so it can be a program name with args.
2147 set dummy $ac_prog; ac_word=$2
2148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_word" >&5
2150 if eval "test \"`echo '$''{'ac_cv_path_TROFF'+set}'`\" = set"; then
2151   echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153   case "$TROFF" in
2154   /*)
2155   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
2156   ;;
2157   ?:/*)                  
2158   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a dos path.
2159   ;;
2160   *)
2161   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2162   ac_dummy="$PATH"
2163   for ac_dir in $ac_dummy; do 
2164     test -z "$ac_dir" && ac_dir=.
2165     if test -f $ac_dir/$ac_word; then
2166       ac_cv_path_TROFF="$ac_dir/$ac_word"
2167       break
2168     fi
2169   done
2170   IFS="$ac_save_ifs"
2171   ;;
2172 esac
2173 fi
2174 TROFF="$ac_cv_path_TROFF"
2175 if test -n "$TROFF"; then
2176   echo "$ac_t""$TROFF" 1>&6
2177 else
2178   echo "$ac_t""no" 1>&6
2179 fi
2181 test -n "$TROFF" && break
2182 done
2185 if test "x$GCC" = "xyes"; then
2186   oCFLAGS=$CFLAGS
2187   CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline"
2188   echo $ac_n "checking if we can use GCC-specific compiler options""... $ac_c" 1>&6
2189 echo "configure:2190: checking if we can use GCC-specific compiler options" >&5
2190 if eval "test \"`echo '$''{'rd_cv_gcc_opt'+set}'`\" = set"; then
2191   echo $ac_n "(cached) $ac_c" 1>&6
2192 else
2193   cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2197 int main() {
2198 return 0 
2199 ; return 0; }
2200 EOF
2201 if { (eval echo configure:2202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2202   rm -rf conftest*
2203   rd_cv_gcc_opt=yes
2204 else
2205   echo "configure: failed program was:" >&5
2206   cat conftest.$ac_ext >&5
2207   rm -rf conftest*
2208   rd_cv_gcc_opt=no 
2209 fi
2210 rm -f conftest*
2211                
2212         
2213 fi
2215 echo "$ac_t""$rd_cv_gcc_opt" 1>&6
2216   if test $rd_cv_gcc_opt = no; then
2217          CFLAGS=$oCFLAGS
2218   fi
2219 fi
2221 CFLAGS="$CFLAGS "`grep pic_flag= libtool | sed -e 's/.*pic_flag=//' -e 's/"//g'`
2223 case $target_os in
2224 *hpux*)
2225         CLFAGS=`echo $CFLAGS|sed -e 's/-fPIC/-fpic/g'`
2226 ;;
2227 esac
2229 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2230 echo "configure:2231: checking for strftime" >&5
2231 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2232   echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234   cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* System header to define __stub macros and hopefully few prototypes,
2238     which can conflict with char strftime(); below.  */
2239 #include <assert.h>
2240 /* Override any gcc2 internal prototype to avoid an error.  */
2241 /* We use char because int might match the return type of a gcc2
2242     builtin and then its argument prototype would still apply.  */
2243 char strftime();
2245 int main() {
2247 /* The GNU C library defines this for functions which it implements
2248     to always fail with ENOSYS.  Some functions are actually named
2249     something starting with __ and the normal name is an alias.  */
2250 #if defined (__stub_strftime) || defined (__stub___strftime)
2251 choke me
2252 #else
2253 strftime();
2254 #endif
2256 ; return 0; }
2257 EOF
2258 if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2259   rm -rf conftest*
2260   eval "ac_cv_func_strftime=yes"
2261 else
2262   echo "configure: failed program was:" >&5
2263   cat conftest.$ac_ext >&5
2264   rm -rf conftest*
2265   eval "ac_cv_func_strftime=no"
2266 fi
2267 rm -f conftest*
2268 fi
2270 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2271   echo "$ac_t""yes" 1>&6
2272   cat >> confdefs.h <<\EOF
2273 #define HAVE_STRFTIME 1
2274 EOF
2276 else
2277   echo "$ac_t""no" 1>&6
2278 # strftime is in -lintl on SCO UNIX.
2279 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2280 echo "configure:2281: checking for strftime in -lintl" >&5
2281 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2283   echo $ac_n "(cached) $ac_c" 1>&6
2284 else
2285   ac_save_LIBS="$LIBS"
2286 LIBS="-lintl  $LIBS"
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 /* Override any gcc2 internal prototype to avoid an error.  */
2291 /* We use char because int might match the return type of a gcc2
2292     builtin and then its argument prototype would still apply.  */
2293 char strftime();
2295 int main() {
2296 strftime()
2297 ; return 0; }
2298 EOF
2299 if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2300   rm -rf conftest*
2301   eval "ac_cv_lib_$ac_lib_var=yes"
2302 else
2303   echo "configure: failed program was:" >&5
2304   cat conftest.$ac_ext >&5
2305   rm -rf conftest*
2306   eval "ac_cv_lib_$ac_lib_var=no"
2307 fi
2308 rm -f conftest*
2309 LIBS="$ac_save_LIBS"
2311 fi
2312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2313   echo "$ac_t""yes" 1>&6
2314   cat >> confdefs.h <<\EOF
2315 #define HAVE_STRFTIME 1
2316 EOF
2318 LIBS="-lintl $LIBS"
2319 else
2320   echo "$ac_t""no" 1>&6
2321 fi
2323 fi
2325 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2326 echo "configure:2327: checking for vprintf" >&5
2327 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2328   echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330   cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 /* System header to define __stub macros and hopefully few prototypes,
2334     which can conflict with char vprintf(); below.  */
2335 #include <assert.h>
2336 /* Override any gcc2 internal prototype to avoid an error.  */
2337 /* We use char because int might match the return type of a gcc2
2338     builtin and then its argument prototype would still apply.  */
2339 char vprintf();
2341 int main() {
2343 /* The GNU C library defines this for functions which it implements
2344     to always fail with ENOSYS.  Some functions are actually named
2345     something starting with __ and the normal name is an alias.  */
2346 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2347 choke me
2348 #else
2349 vprintf();
2350 #endif
2352 ; return 0; }
2353 EOF
2354 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2355   rm -rf conftest*
2356   eval "ac_cv_func_vprintf=yes"
2357 else
2358   echo "configure: failed program was:" >&5
2359   cat conftest.$ac_ext >&5
2360   rm -rf conftest*
2361   eval "ac_cv_func_vprintf=no"
2362 fi
2363 rm -f conftest*
2364 fi
2366 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2367   echo "$ac_t""yes" 1>&6
2368   cat >> confdefs.h <<\EOF
2369 #define HAVE_VPRINTF 1
2370 EOF
2372 else
2373   echo "$ac_t""no" 1>&6
2374 fi
2376 if test "$ac_cv_func_vprintf" != yes; then
2377 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2378 echo "configure:2379: checking for _doprnt" >&5
2379 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2380   echo $ac_n "(cached) $ac_c" 1>&6
2381 else
2382   cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 /* System header to define __stub macros and hopefully few prototypes,
2386     which can conflict with char _doprnt(); below.  */
2387 #include <assert.h>
2388 /* Override any gcc2 internal prototype to avoid an error.  */
2389 /* We use char because int might match the return type of a gcc2
2390     builtin and then its argument prototype would still apply.  */
2391 char _doprnt();
2393 int main() {
2395 /* The GNU C library defines this for functions which it implements
2396     to always fail with ENOSYS.  Some functions are actually named
2397     something starting with __ and the normal name is an alias.  */
2398 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2399 choke me
2400 #else
2401 _doprnt();
2402 #endif
2404 ; return 0; }
2405 EOF
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2407   rm -rf conftest*
2408   eval "ac_cv_func__doprnt=yes"
2409 else
2410   echo "configure: failed program was:" >&5
2411   cat conftest.$ac_ext >&5
2412   rm -rf conftest*
2413   eval "ac_cv_func__doprnt=no"
2414 fi
2415 rm -f conftest*
2416 fi
2418 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2419   echo "$ac_t""yes" 1>&6
2420   cat >> confdefs.h <<\EOF
2421 #define HAVE_DOPRNT 1
2422 EOF
2424 else
2425   echo "$ac_t""no" 1>&6
2426 fi
2428 fi
2432 for ac_func in strerror snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
2433 do
2434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_func" >&5
2436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2437   echo $ac_n "(cached) $ac_c" 1>&6
2438 else
2439   cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 /* System header to define __stub macros and hopefully few prototypes,
2443     which can conflict with char $ac_func(); below.  */
2444 #include <assert.h>
2445 /* Override any gcc2 internal prototype to avoid an error.  */
2446 /* We use char because int might match the return type of a gcc2
2447     builtin and then its argument prototype would still apply.  */
2448 char $ac_func();
2450 int main() {
2452 /* The GNU C library defines this for functions which it implements
2453     to always fail with ENOSYS.  Some functions are actually named
2454     something starting with __ and the normal name is an alias.  */
2455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2456 choke me
2457 #else
2458 $ac_func();
2459 #endif
2461 ; return 0; }
2462 EOF
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464   rm -rf conftest*
2465   eval "ac_cv_func_$ac_func=yes"
2466 else
2467   echo "configure: failed program was:" >&5
2468   cat conftest.$ac_ext >&5
2469   rm -rf conftest*
2470   eval "ac_cv_func_$ac_func=no"
2471 fi
2472 rm -f conftest*
2473 fi
2475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2476   echo "$ac_t""yes" 1>&6
2477     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2478   cat >> confdefs.h <<EOF
2479 #define $ac_tr_func 1
2480 EOF
2481  
2482 else
2483   echo "$ac_t""no" 1>&6
2484 fi
2485 done
2488 for ac_func in fpclassify
2489 do
2490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2491 echo "configure:2492: checking for $ac_func" >&5
2492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2493   echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495   cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 /* System header to define __stub macros and hopefully few prototypes,
2499     which can conflict with char $ac_func(); below.  */
2500 #include <assert.h>
2501 /* Override any gcc2 internal prototype to avoid an error.  */
2502 /* We use char because int might match the return type of a gcc2
2503     builtin and then its argument prototype would still apply.  */
2504 char $ac_func();
2506 int main() {
2508 /* The GNU C library defines this for functions which it implements
2509     to always fail with ENOSYS.  Some functions are actually named
2510     something starting with __ and the normal name is an alias.  */
2511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2512 choke me
2513 #else
2514 $ac_func();
2515 #endif
2517 ; return 0; }
2518 EOF
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2520   rm -rf conftest*
2521   eval "ac_cv_func_$ac_func=yes"
2522 else
2523   echo "configure: failed program was:" >&5
2524   cat conftest.$ac_ext >&5
2525   rm -rf conftest*
2526   eval "ac_cv_func_$ac_func=no"
2527 fi
2528 rm -f conftest*
2529 fi
2531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2532   echo "$ac_t""yes" 1>&6
2533     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2534   cat >> confdefs.h <<EOF
2535 #define $ac_tr_func 1
2536 EOF
2537  
2538 else
2539   echo "$ac_t""no" 1>&6
2540 echo $ac_n "checking for fpclassify with <math.h>""... $ac_c" 1>&6
2541 echo "configure:2542: checking for fpclassify with <math.h>" >&5
2542     cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 #include <math.h>
2546 int main() {
2547 float f = 0.0; fpclassify(f)
2548 ; return 0; }
2549 EOF
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2551   rm -rf conftest*
2552   echo "$ac_t""yes" 1>&6
2553       cat >> confdefs.h <<\EOF
2554 #define HAVE_FPCLASSIFY 1
2555 EOF
2557 else
2558   echo "configure: failed program was:" >&5
2559   cat conftest.$ac_ext >&5
2560   rm -rf conftest*
2561   echo "$ac_t""no" 1>&6
2562 fi
2563 rm -f conftest*
2564 fi
2565 done
2567 for ac_func in finite
2568 do
2569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2570 echo "configure:2571: checking for $ac_func" >&5
2571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2572   echo $ac_n "(cached) $ac_c" 1>&6
2573 else
2574   cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 /* System header to define __stub macros and hopefully few prototypes,
2578     which can conflict with char $ac_func(); below.  */
2579 #include <assert.h>
2580 /* Override any gcc2 internal prototype to avoid an error.  */
2581 /* We use char because int might match the return type of a gcc2
2582     builtin and then its argument prototype would still apply.  */
2583 char $ac_func();
2585 int main() {
2587 /* The GNU C library defines this for functions which it implements
2588     to always fail with ENOSYS.  Some functions are actually named
2589     something starting with __ and the normal name is an alias.  */
2590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2591 choke me
2592 #else
2593 $ac_func();
2594 #endif
2596 ; return 0; }
2597 EOF
2598 if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599   rm -rf conftest*
2600   eval "ac_cv_func_$ac_func=yes"
2601 else
2602   echo "configure: failed program was:" >&5
2603   cat conftest.$ac_ext >&5
2604   rm -rf conftest*
2605   eval "ac_cv_func_$ac_func=no"
2606 fi
2607 rm -f conftest*
2608 fi
2610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2611   echo "$ac_t""yes" 1>&6
2612     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2613   cat >> confdefs.h <<EOF
2614 #define $ac_tr_func 1
2615 EOF
2616  
2617 else
2618   echo "$ac_t""no" 1>&6
2619 for ac_func in isfinite
2620 do
2621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2622 echo "configure:2623: checking for $ac_func" >&5
2623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2624   echo $ac_n "(cached) $ac_c" 1>&6
2625 else
2626   cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2629 /* System header to define __stub macros and hopefully few prototypes,
2630     which can conflict with char $ac_func(); below.  */
2631 #include <assert.h>
2632 /* Override any gcc2 internal prototype to avoid an error.  */
2633 /* We use char because int might match the return type of a gcc2
2634     builtin and then its argument prototype would still apply.  */
2635 char $ac_func();
2637 int main() {
2639 /* The GNU C library defines this for functions which it implements
2640     to always fail with ENOSYS.  Some functions are actually named
2641     something starting with __ and the normal name is an alias.  */
2642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2643 choke me
2644 #else
2645 $ac_func();
2646 #endif
2648 ; return 0; }
2649 EOF
2650 if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2651   rm -rf conftest*
2652   eval "ac_cv_func_$ac_func=yes"
2653 else
2654   echo "configure: failed program was:" >&5
2655   cat conftest.$ac_ext >&5
2656   rm -rf conftest*
2657   eval "ac_cv_func_$ac_func=no"
2658 fi
2659 rm -f conftest*
2660 fi
2662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2663   echo "$ac_t""yes" 1>&6
2664     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2665   cat >> confdefs.h <<EOF
2666 #define $ac_tr_func 1
2667 EOF
2668  
2669 else
2670   echo "$ac_t""no" 1>&6
2671 echo $ac_n "checking for isfinite with <math.h>""... $ac_c" 1>&6
2672 echo "configure:2673: checking for isfinite with <math.h>" >&5
2673     cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <math.h>
2677 int main() {
2678 float f = 0.0; isfinite(f)
2679 ; return 0; }
2680 EOF
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2682   rm -rf conftest*
2683   echo "$ac_t""yes" 1>&6
2684       cat >> confdefs.h <<\EOF
2685 #define HAVE_ISFINITE 1
2686 EOF
2688 else
2689   echo "configure: failed program was:" >&5
2690   cat conftest.$ac_ext >&5
2691   rm -rf conftest*
2692   echo "$ac_t""no" 1>&6
2693 fi
2694 rm -f conftest*
2695 fi
2696 done
2698 fi
2699 done
2701 for ac_func in isinf
2702 do
2703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2704 echo "configure:2705: checking for $ac_func" >&5
2705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2706   echo $ac_n "(cached) $ac_c" 1>&6
2707 else
2708   cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 /* System header to define __stub macros and hopefully few prototypes,
2712     which can conflict with char $ac_func(); below.  */
2713 #include <assert.h>
2714 /* Override any gcc2 internal prototype to avoid an error.  */
2715 /* We use char because int might match the return type of a gcc2
2716     builtin and then its argument prototype would still apply.  */
2717 char $ac_func();
2719 int main() {
2721 /* The GNU C library defines this for functions which it implements
2722     to always fail with ENOSYS.  Some functions are actually named
2723     something starting with __ and the normal name is an alias.  */
2724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2725 choke me
2726 #else
2727 $ac_func();
2728 #endif
2730 ; return 0; }
2731 EOF
2732 if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2733   rm -rf conftest*
2734   eval "ac_cv_func_$ac_func=yes"
2735 else
2736   echo "configure: failed program was:" >&5
2737   cat conftest.$ac_ext >&5
2738   rm -rf conftest*
2739   eval "ac_cv_func_$ac_func=no"
2740 fi
2741 rm -f conftest*
2742 fi
2744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2745   echo "$ac_t""yes" 1>&6
2746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2747   cat >> confdefs.h <<EOF
2748 #define $ac_tr_func 1
2749 EOF
2750  
2751 else
2752   echo "$ac_t""no" 1>&6
2753 echo $ac_n "checking for isinf with <math.h>""... $ac_c" 1>&6
2754 echo "configure:2755: checking for isinf with <math.h>" >&5
2755     cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <math.h>
2759 int main() {
2760 float f = 0.0; isinf(f)
2761 ; return 0; }
2762 EOF
2763 if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2764   rm -rf conftest*
2765   echo "$ac_t""yes" 1>&6
2766       cat >> confdefs.h <<\EOF
2767 #define HAVE_ISINF 1
2768 EOF
2770 else
2771   echo "configure: failed program was:" >&5
2772   cat conftest.$ac_ext >&5
2773   rm -rf conftest*
2774   echo "$ac_t""no" 1>&6
2775 fi
2776 rm -f conftest*
2777 fi
2778 done
2782 echo $ac_n "checking if realloc can deal with NULL""... $ac_c" 1>&6
2783 echo "configure:2784: checking if realloc can deal with NULL" >&5
2784 if eval "test \"`echo '$''{'rd_cv_null_realloc'+set}'`\" = set"; then
2785   echo $ac_n "(cached) $ac_c" 1>&6
2786 else
2787   if test "$cross_compiling" = yes; then
2788   :
2789 else
2790   cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 #include <stdlib.h>
2794               int main(void){
2795               char *x = NULL;
2796               x = realloc (x,10);
2797               if (x==NULL) return 1;
2798               return 0;
2799              }
2800 EOF
2801 if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2802 then
2803   rd_cv_null_realloc=yes
2804 else
2805   echo "configure: failed program was:" >&5
2806   cat conftest.$ac_ext >&5
2807   rm -fr conftest*
2808   rd_cv_null_realloc=nope
2809 fi
2810 rm -fr conftest*
2811 fi
2813 fi
2815 echo "$ac_t""$rd_cv_null_realloc" 1>&6
2817 if test x"$rd_cv_null_realloc" = xnope; then
2818 cat >> confdefs.h <<\EOF
2819 #define NO_NULL_REALLOC 1
2820 EOF
2822 fi
2827 _cflags=${CFLAGS}
2828 echo $ac_n "checking if IEEE math works out of the box""... $ac_c" 1>&6
2829 echo "configure:2830: checking if IEEE math works out of the box" >&5
2830 if eval "test \"`echo '$''{'rd_cv_ieee_works'+set}'`\" = set"; then
2831   echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833   if test "$cross_compiling" = yes; then
2834   :
2835 else
2836   cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2841 #if HAVE_MATH_H
2842 #  include <math.h>
2843 #endif
2845 #if HAVE_FLOAT_H
2846 #  include <float.h>  
2847 #endif
2849 #if HAVE_IEEEFP_H
2850 #  include <ieeefp.h>
2851 #endif
2853 #if HAVE_FP_CLASS_H
2854 #  include <fp_class.h>
2855 #endif
2857 /* Solaris */
2858 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
2859 #  define HAVE_ISINF 1
2860 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
2861 #endif
2863 /* Digital UNIX */
2864 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
2865 #  define HAVE_ISINF 1
2866 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
2867 #endif 
2869 /* AIX */
2870 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
2871 #  define HAVE_ISINF 1
2872 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
2873 #endif
2875 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
2876 #  define HAVE_ISINF 1
2877 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
2878 #endif
2880 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
2881 #  define HAVE_ISINF 1
2882 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
2883 #endif
2885 #include <stdio.h>
2886 int main(void){
2887     double nan,inf,c,zero;
2888     ;
2889     /* some math to see if we get a floating point exception */
2890     zero=sin(0.0); /* don't let the compiler optimize us away */
2891     nan=0.0/zero; /* especially here */
2892     inf=1.0/zero; /* and here. I want to know if it can do the magic */
2893                   /* at run time without sig fpe */
2894     c = inf + nan;
2895     c = inf / nan;
2896     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
2897     if (nan == nan) {printf ("nan == nan ... "); return 1;}
2898     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
2899     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
2900     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
2901     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
2902     return 0;
2903  }
2904 EOF
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2906 then
2907   rd_cv_ieee_works=yes
2908 else
2909   echo "configure: failed program was:" >&5
2910   cat conftest.$ac_ext >&5
2911   rm -fr conftest*
2912   rd_cv_ieee_works=no
2913 fi
2914 rm -fr conftest*
2915 fi
2917 fi
2919 if test x${rd_cv_ieee_works} = "xyes"; then
2920  echo "$ac_t""yes" 1>&6
2921  
2922 else
2923  echo "$ac_t""no" 1>&6
2924  CFLAGS="$_cflags -ieee"
2925   echo $ac_n "checking if IEEE math works with the -ieee switch""... $ac_c" 1>&6
2926 echo "configure:2927: checking if IEEE math works with the -ieee switch" >&5
2927 if eval "test \"`echo '$''{'rd_cv_ieee_switch'+set}'`\" = set"; then
2928   echo $ac_n "(cached) $ac_c" 1>&6
2929 else
2930   if test "$cross_compiling" = yes; then
2931   :
2932 else
2933   cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2938 #if HAVE_MATH_H
2939 #  include <math.h>
2940 #endif
2942 #if HAVE_FLOAT_H
2943 #  include <float.h>  
2944 #endif
2946 #if HAVE_IEEEFP_H
2947 #  include <ieeefp.h>
2948 #endif
2950 #if HAVE_FP_CLASS_H
2951 #  include <fp_class.h>
2952 #endif
2954 /* Solaris */
2955 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
2956 #  define HAVE_ISINF 1
2957 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
2958 #endif
2960 /* Digital UNIX */
2961 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
2962 #  define HAVE_ISINF 1
2963 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
2964 #endif 
2966 /* AIX */
2967 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
2968 #  define HAVE_ISINF 1
2969 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
2970 #endif
2972 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
2973 #  define HAVE_ISINF 1
2974 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
2975 #endif
2977 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
2978 #  define HAVE_ISINF 1
2979 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
2980 #endif
2982 #include <stdio.h>
2983 int main(void){
2984     double nan,inf,c,zero;
2985     ;
2986     /* some math to see if we get a floating point exception */
2987     zero=sin(0.0); /* don't let the compiler optimize us away */
2988     nan=0.0/zero; /* especially here */
2989     inf=1.0/zero; /* and here. I want to know if it can do the magic */
2990                   /* at run time without sig fpe */
2991     c = inf + nan;
2992     c = inf / nan;
2993     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
2994     if (nan == nan) {printf ("nan == nan ... "); return 1;}
2995     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
2996     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
2997     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
2998     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
2999     return 0;
3000  }
3001 EOF
3002 if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3003 then
3004   rd_cv_ieee_switch=yes
3005 else
3006   echo "configure: failed program was:" >&5
3007   cat conftest.$ac_ext >&5
3008   rm -fr conftest*
3009   rd_cv_ieee_switch=no
3010 fi
3011 rm -fr conftest*
3012 fi
3014 fi
3016 if test x${rd_cv_ieee_switch} = "xyes"; then
3017  echo "$ac_t""yes" 1>&6
3018  
3019 else
3020  echo "$ac_t""no" 1>&6
3021  CFLAGS="$_cflags -qfloat=nofold"
3022     echo $ac_n "checking if IEEE math works with the -qfloat=nofold switch""... $ac_c" 1>&6
3023 echo "configure:3024: checking if IEEE math works with the -qfloat=nofold switch" >&5
3024 if eval "test \"`echo '$''{'rd_cv_ieee_nofold'+set}'`\" = set"; then
3025   echo $ac_n "(cached) $ac_c" 1>&6
3026 else
3027   if test "$cross_compiling" = yes; then
3028   :
3029 else
3030   cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3035 #if HAVE_MATH_H
3036 #  include <math.h>
3037 #endif
3039 #if HAVE_FLOAT_H
3040 #  include <float.h>  
3041 #endif
3043 #if HAVE_IEEEFP_H
3044 #  include <ieeefp.h>
3045 #endif
3047 #if HAVE_FP_CLASS_H
3048 #  include <fp_class.h>
3049 #endif
3051 /* Solaris */
3052 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
3053 #  define HAVE_ISINF 1
3054 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
3055 #endif
3057 /* Digital UNIX */
3058 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
3059 #  define HAVE_ISINF 1
3060 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
3061 #endif 
3063 /* AIX */
3064 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
3065 #  define HAVE_ISINF 1
3066 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
3067 #endif
3069 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
3070 #  define HAVE_ISINF 1
3071 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
3072 #endif
3074 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
3075 #  define HAVE_ISINF 1
3076 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
3077 #endif
3079 #include <stdio.h>
3080 int main(void){
3081     double nan,inf,c,zero;
3082     ;
3083     /* some math to see if we get a floating point exception */
3084     zero=sin(0.0); /* don't let the compiler optimize us away */
3085     nan=0.0/zero; /* especially here */
3086     inf=1.0/zero; /* and here. I want to know if it can do the magic */
3087                   /* at run time without sig fpe */
3088     c = inf + nan;
3089     c = inf / nan;
3090     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
3091     if (nan == nan) {printf ("nan == nan ... "); return 1;}
3092     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
3093     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
3094     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
3095     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
3096     return 0;
3097  }
3098 EOF
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3100 then
3101   rd_cv_ieee_nofold=yes
3102 else
3103   echo "configure: failed program was:" >&5
3104   cat conftest.$ac_ext >&5
3105   rm -fr conftest*
3106   rd_cv_ieee_nofold=no
3107 fi
3108 rm -fr conftest*
3109 fi
3111 fi
3113 if test x${rd_cv_ieee_nofold} = "xyes"; then
3114  echo "$ac_t""yes" 1>&6
3115  
3116 else
3117  echo "$ac_t""no" 1>&6
3118  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
3119       echo $ac_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide""... $ac_c" 1>&6
3120 echo "configure:3121: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
3121 if eval "test \"`echo '$''{'rd_cv_ieee_flttrap'+set}'`\" = set"; then
3122   echo $ac_n "(cached) $ac_c" 1>&6
3123 else
3124   if test "$cross_compiling" = yes; then
3125   :
3126 else
3127   cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3132 #if HAVE_MATH_H
3133 #  include <math.h>
3134 #endif
3136 #if HAVE_FLOAT_H
3137 #  include <float.h>  
3138 #endif
3140 #if HAVE_IEEEFP_H
3141 #  include <ieeefp.h>
3142 #endif
3144 #if HAVE_FP_CLASS_H
3145 #  include <fp_class.h>
3146 #endif
3148 /* Solaris */
3149 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
3150 #  define HAVE_ISINF 1
3151 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
3152 #endif
3154 /* Digital UNIX */
3155 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
3156 #  define HAVE_ISINF 1
3157 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
3158 #endif 
3160 /* AIX */
3161 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
3162 #  define HAVE_ISINF 1
3163 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
3164 #endif
3166 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
3167 #  define HAVE_ISINF 1
3168 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
3169 #endif
3171 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
3172 #  define HAVE_ISINF 1
3173 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
3174 #endif
3176 #include <stdio.h>
3177 int main(void){
3178     double nan,inf,c,zero;
3179     ;
3180     /* some math to see if we get a floating point exception */
3181     zero=sin(0.0); /* don't let the compiler optimize us away */
3182     nan=0.0/zero; /* especially here */
3183     inf=1.0/zero; /* and here. I want to know if it can do the magic */
3184                   /* at run time without sig fpe */
3185     c = inf + nan;
3186     c = inf / nan;
3187     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
3188     if (nan == nan) {printf ("nan == nan ... "); return 1;}
3189     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
3190     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
3191     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
3192     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
3193     return 0;
3194  }
3195 EOF
3196 if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3197 then
3198   rd_cv_ieee_flttrap=yes
3199 else
3200   echo "configure: failed program was:" >&5
3201   cat conftest.$ac_ext >&5
3202   rm -fr conftest*
3203   rd_cv_ieee_flttrap=no
3204 fi
3205 rm -fr conftest*
3206 fi
3208 fi
3210 if test x${rd_cv_ieee_flttrap} = "xyes"; then
3211  echo "$ac_t""yes" 1>&6
3212  
3213 else
3214  echo "$ac_t""no" 1>&6
3215  CFLAGS="$_cflags -mieee"
3216        echo $ac_n "checking if IEEE math works with the -mieee switch""... $ac_c" 1>&6
3217 echo "configure:3218: checking if IEEE math works with the -mieee switch" >&5
3218 if eval "test \"`echo '$''{'rd_cv_ieee_mswitch'+set}'`\" = set"; then
3219   echo $ac_n "(cached) $ac_c" 1>&6
3220 else
3221   if test "$cross_compiling" = yes; then
3222   :
3223 else
3224   cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3229 #if HAVE_MATH_H
3230 #  include <math.h>
3231 #endif
3233 #if HAVE_FLOAT_H
3234 #  include <float.h>  
3235 #endif
3237 #if HAVE_IEEEFP_H
3238 #  include <ieeefp.h>
3239 #endif
3241 #if HAVE_FP_CLASS_H
3242 #  include <fp_class.h>
3243 #endif
3245 /* Solaris */
3246 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
3247 #  define HAVE_ISINF 1
3248 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
3249 #endif
3251 /* Digital UNIX */
3252 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
3253 #  define HAVE_ISINF 1
3254 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
3255 #endif 
3257 /* AIX */
3258 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
3259 #  define HAVE_ISINF 1
3260 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
3261 #endif
3263 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
3264 #  define HAVE_ISINF 1
3265 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
3266 #endif
3268 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
3269 #  define HAVE_ISINF 1
3270 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
3271 #endif
3273 #include <stdio.h>
3274 int main(void){
3275     double nan,inf,c,zero;
3276     ;
3277     /* some math to see if we get a floating point exception */
3278     zero=sin(0.0); /* don't let the compiler optimize us away */
3279     nan=0.0/zero; /* especially here */
3280     inf=1.0/zero; /* and here. I want to know if it can do the magic */
3281                   /* at run time without sig fpe */
3282     c = inf + nan;
3283     c = inf / nan;
3284     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
3285     if (nan == nan) {printf ("nan == nan ... "); return 1;}
3286     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
3287     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
3288     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
3289     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
3290     return 0;
3291  }
3292 EOF
3293 if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3294 then
3295   rd_cv_ieee_mswitch=yes
3296 else
3297   echo "configure: failed program was:" >&5
3298   cat conftest.$ac_ext >&5
3299   rm -fr conftest*
3300   rd_cv_ieee_mswitch=no
3301 fi
3302 rm -fr conftest*
3303 fi
3305 fi
3307 if test x${rd_cv_ieee_mswitch} = "xyes"; then
3308  echo "$ac_t""yes" 1>&6
3309  
3310 else
3311  echo "$ac_t""no" 1>&6
3312  CFLAGS="$_cflags -q float=rndsngl"
3313          echo $ac_n "checking if IEEE math works with the -q float=rndsngl switch""... $ac_c" 1>&6
3314 echo "configure:3315: checking if IEEE math works with the -q float=rndsngl switch" >&5
3315 if eval "test \"`echo '$''{'rd_cv_ieee_qswitch'+set}'`\" = set"; then
3316   echo $ac_n "(cached) $ac_c" 1>&6
3317 else
3318   if test "$cross_compiling" = yes; then
3319   :
3320 else
3321   cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3326 #if HAVE_MATH_H
3327 #  include <math.h>
3328 #endif
3330 #if HAVE_FLOAT_H
3331 #  include <float.h>  
3332 #endif
3334 #if HAVE_IEEEFP_H
3335 #  include <ieeefp.h>
3336 #endif
3338 #if HAVE_FP_CLASS_H
3339 #  include <fp_class.h>
3340 #endif
3342 /* Solaris */
3343 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
3344 #  define HAVE_ISINF 1
3345 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
3346 #endif
3348 /* Digital UNIX */
3349 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
3350 #  define HAVE_ISINF 1
3351 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
3352 #endif 
3354 /* AIX */
3355 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
3356 #  define HAVE_ISINF 1
3357 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
3358 #endif
3360 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
3361 #  define HAVE_ISINF 1
3362 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
3363 #endif
3365 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
3366 #  define HAVE_ISINF 1
3367 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
3368 #endif
3370 #include <stdio.h>
3371 int main(void){
3372     double nan,inf,c,zero;
3373     ;
3374     /* some math to see if we get a floating point exception */
3375     zero=sin(0.0); /* don't let the compiler optimize us away */
3376     nan=0.0/zero; /* especially here */
3377     inf=1.0/zero; /* and here. I want to know if it can do the magic */
3378                   /* at run time without sig fpe */
3379     c = inf + nan;
3380     c = inf / nan;
3381     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
3382     if (nan == nan) {printf ("nan == nan ... "); return 1;}
3383     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
3384     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
3385     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
3386     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
3387     return 0;
3388  }
3389 EOF
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3391 then
3392   rd_cv_ieee_qswitch=yes
3393 else
3394   echo "configure: failed program was:" >&5
3395   cat conftest.$ac_ext >&5
3396   rm -fr conftest*
3397   rd_cv_ieee_qswitch=no
3398 fi
3399 rm -fr conftest*
3400 fi
3402 fi
3404 if test x${rd_cv_ieee_qswitch} = "xyes"; then
3405  echo "$ac_t""yes" 1>&6
3406  
3407 else
3408  echo "$ac_t""no" 1>&6
3409  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
3410            echo $ac_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch""... $ac_c" 1>&6
3411 echo "configure:3412: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
3412 if eval "test \"`echo '$''{'rd_cv_ieee_ieeecmpswitch'+set}'`\" = set"; then
3413   echo $ac_n "(cached) $ac_c" 1>&6
3414 else
3415   if test "$cross_compiling" = yes; then
3416   :
3417 else
3418   cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3423 #if HAVE_MATH_H
3424 #  include <math.h>
3425 #endif
3427 #if HAVE_FLOAT_H
3428 #  include <float.h>  
3429 #endif
3431 #if HAVE_IEEEFP_H
3432 #  include <ieeefp.h>
3433 #endif
3435 #if HAVE_FP_CLASS_H
3436 #  include <fp_class.h>
3437 #endif
3439 /* Solaris */
3440 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
3441 #  define HAVE_ISINF 1
3442 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
3443 #endif
3445 /* Digital UNIX */
3446 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
3447 #  define HAVE_ISINF 1
3448 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
3449 #endif 
3451 /* AIX */
3452 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
3453 #  define HAVE_ISINF 1
3454 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
3455 #endif
3457 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
3458 #  define HAVE_ISINF 1
3459 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
3460 #endif
3462 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
3463 #  define HAVE_ISINF 1
3464 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
3465 #endif
3467 #include <stdio.h>
3468 int main(void){
3469     double nan,inf,c,zero;
3470     ;
3471     /* some math to see if we get a floating point exception */
3472     zero=sin(0.0); /* don't let the compiler optimize us away */
3473     nan=0.0/zero; /* especially here */
3474     inf=1.0/zero; /* and here. I want to know if it can do the magic */
3475                   /* at run time without sig fpe */
3476     c = inf + nan;
3477     c = inf / nan;
3478     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
3479     if (nan == nan) {printf ("nan == nan ... "); return 1;}
3480     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
3481     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
3482     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
3483     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
3484     return 0;
3485  }
3486 EOF
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3488 then
3489   rd_cv_ieee_ieeecmpswitch=yes
3490 else
3491   echo "configure: failed program was:" >&5
3492   cat conftest.$ac_ext >&5
3493   rm -fr conftest*
3494   rd_cv_ieee_ieeecmpswitch=no
3495 fi
3496 rm -fr conftest*
3497 fi
3499 fi
3501 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
3502  echo "$ac_t""yes" 1>&6
3503  
3504 else
3505  echo "$ac_t""no" 1>&6
3506  CFLAGS=$_cflags
3507              echo $ac_n "checking if IEEE math works with fpsetmask(0)""... $ac_c" 1>&6
3508 echo "configure:3509: checking if IEEE math works with fpsetmask(0)" >&5
3509 if eval "test \"`echo '$''{'rd_cv_ieee_mask'+set}'`\" = set"; then
3510   echo $ac_n "(cached) $ac_c" 1>&6
3511 else
3512   if test "$cross_compiling" = yes; then
3513   :
3514 else
3515   cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 #include <floatingpoint.h>
3520 #if HAVE_MATH_H
3521 #  include <math.h>
3522 #endif
3524 #if HAVE_FLOAT_H
3525 #  include <float.h>  
3526 #endif
3528 #if HAVE_IEEEFP_H
3529 #  include <ieeefp.h>
3530 #endif
3532 #if HAVE_FP_CLASS_H
3533 #  include <fp_class.h>
3534 #endif
3536 /* Solaris */
3537 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
3538 #  define HAVE_ISINF 1
3539 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
3540 #endif
3542 /* Digital UNIX */
3543 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
3544 #  define HAVE_ISINF 1
3545 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
3546 #endif 
3548 /* AIX */
3549 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
3550 #  define HAVE_ISINF 1
3551 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
3552 #endif
3554 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
3555 #  define HAVE_ISINF 1
3556 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
3557 #endif
3559 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
3560 #  define HAVE_ISINF 1
3561 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
3562 #endif
3564 #include <stdio.h>
3565 int main(void){
3566     double nan,inf,c,zero;
3567     fpsetmask(0);
3568     /* some math to see if we get a floating point exception */
3569     zero=sin(0.0); /* don't let the compiler optimize us away */
3570     nan=0.0/zero; /* especially here */
3571     inf=1.0/zero; /* and here. I want to know if it can do the magic */
3572                   /* at run time without sig fpe */
3573     c = inf + nan;
3574     c = inf / nan;
3575     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
3576     if (nan == nan) {printf ("nan == nan ... "); return 1;}
3577     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
3578     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
3579     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
3580     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
3581     return 0;
3582  }
3583 EOF
3584 if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3585 then
3586   rd_cv_ieee_mask=yes
3587 else
3588   echo "configure: failed program was:" >&5
3589   cat conftest.$ac_ext >&5
3590   rm -fr conftest*
3591   rd_cv_ieee_mask=no
3592 fi
3593 rm -fr conftest*
3594 fi
3596 fi
3598 if test x${rd_cv_ieee_mask} = "xyes"; then
3599  echo "$ac_t""yes" 1>&6
3600  cat >> confdefs.h <<\EOF
3601 #define MUST_DISABLE_FPMASK 1
3602 EOF
3604                PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
3605 else
3606  echo "$ac_t""no" 1>&6
3607  echo $ac_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)""... $ac_c" 1>&6
3608 echo "configure:3609: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
3609 if eval "test \"`echo '$''{'rd_cv_ieee_sigfpe'+set}'`\" = set"; then
3610   echo $ac_n "(cached) $ac_c" 1>&6
3611 else
3612   if test "$cross_compiling" = yes; then
3613   :
3614 else
3615   cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 #include <signal.h>
3620 #if HAVE_MATH_H
3621 #  include <math.h>
3622 #endif
3624 #if HAVE_FLOAT_H
3625 #  include <float.h>  
3626 #endif
3628 #if HAVE_IEEEFP_H
3629 #  include <ieeefp.h>
3630 #endif
3632 #if HAVE_FP_CLASS_H
3633 #  include <fp_class.h>
3634 #endif
3636 /* Solaris */
3637 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
3638 #  define HAVE_ISINF 1
3639 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
3640 #endif
3642 /* Digital UNIX */
3643 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
3644 #  define HAVE_ISINF 1
3645 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
3646 #endif 
3648 /* AIX */
3649 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
3650 #  define HAVE_ISINF 1
3651 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
3652 #endif
3654 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
3655 #  define HAVE_ISINF 1
3656 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
3657 #endif
3659 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
3660 #  define HAVE_ISINF 1
3661 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
3662 #endif
3664 #include <stdio.h>
3665 int main(void){
3666     double nan,inf,c,zero;
3667     signal(SIGFPE,SIG_IGN);
3668     /* some math to see if we get a floating point exception */
3669     zero=sin(0.0); /* don't let the compiler optimize us away */
3670     nan=0.0/zero; /* especially here */
3671     inf=1.0/zero; /* and here. I want to know if it can do the magic */
3672                   /* at run time without sig fpe */
3673     c = inf + nan;
3674     c = inf / nan;
3675     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
3676     if (nan == nan) {printf ("nan == nan ... "); return 1;}
3677     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
3678     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
3679     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
3680     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
3681     return 0;
3682  }
3683 EOF
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3685 then
3686   rd_cv_ieee_sigfpe=yes
3687 else
3688   echo "configure: failed program was:" >&5
3689   cat conftest.$ac_ext >&5
3690   rm -fr conftest*
3691   rd_cv_ieee_sigfpe=no
3692 fi
3693 rm -fr conftest*
3694 fi
3696 fi
3698 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
3699  echo "$ac_t""yes" 1>&6
3700  cat >> confdefs.h <<\EOF
3701 #define MUST_DISABLE_SIGFPE 1
3702 EOF
3704                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
3705 else
3706  echo "$ac_t""no" 1>&6
3707  { echo "configure: error: 
3708 Your Compiler does not do propper IEEE math ... Please find out how to
3709 make IEEE math work with your compiler and let me know (oetiker@ee.ethz.ch).
3710 Check config.log to see what went wrong ...
3711 " 1>&2; exit 1; }
3712 fi
3715 fi
3718 fi
3721 fi
3724 fi
3727 fi
3730 fi
3733 fi
3736 fi
3741 trap '' 1 2 15
3742 cat > confcache <<\EOF
3743 # This file is a shell script that caches the results of configure
3744 # tests run on this system so they can be shared between configure
3745 # scripts and configure runs.  It is not useful on other systems.
3746 # If it contains results you don't want to keep, you may remove or edit it.
3748 # By default, configure uses ./config.cache as the cache file,
3749 # creating it if it does not exist already.  You can give configure
3750 # the --cache-file=FILE option to use a different cache file; that is
3751 # what configure does when it calls configure scripts in
3752 # subdirectories, so they share the cache.
3753 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3754 # config.status only pays attention to the cache file if you give it the
3755 # --recheck option to rerun configure.
3757 EOF
3758 # The following way of writing the cache mishandles newlines in values,
3759 # but we know of no workaround that is simple, portable, and efficient.
3760 # So, don't put newlines in cache variables' values.
3761 # Ultrix sh set writes to stderr and can't be redirected directly,
3762 # and sets the high bit in the cache file unless we assign to the vars.
3763 (set) 2>&1 |
3764   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3765   *ac_space=\ *)
3766     # `set' does not quote correctly, so add quotes (double-quote substitution
3767     # turns \\\\ into \\, and sed turns \\ into \).
3768     sed -n \
3769       -e "s/'/'\\\\''/g" \
3770       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3771     ;;
3772   *)
3773     # `set' quotes correctly as required by POSIX, so do not add quotes.
3774     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3775     ;;
3776   esac >> confcache
3777 if cmp -s $cache_file confcache; then
3778   :
3779 else
3780   if test -w $cache_file; then
3781     echo "updating cache $cache_file"
3782     cat confcache > $cache_file
3783   else
3784     echo "not updating unwritable cache $cache_file"
3785   fi
3786 fi
3787 rm -f confcache
3789 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3792 # Let make expand exec_prefix.
3793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3795 # Any assignment to VPATH causes Sun make to only execute
3796 # the first set of double-colon rules, so remove it if not needed.
3797 # If there is a colon in the path, we need to keep it.
3798 if test "x$srcdir" = x.; then
3799   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3800 fi
3802 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3804 DEFS=-DHAVE_CONFIG_H
3806 # Without the "./", some shells look in PATH for config.status.
3807 : ${CONFIG_STATUS=./config.status}
3809 echo creating $CONFIG_STATUS
3810 rm -f $CONFIG_STATUS
3811 cat > $CONFIG_STATUS <<EOF
3812 #! /bin/sh
3813 # Generated automatically by configure.
3814 # Run this file to recreate the current configuration.
3815 # This directory was configured as follows,
3816 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3818 # $0 $ac_configure_args
3820 # Compiler output produced by configure, useful for debugging
3821 # configure, is in ./config.log if it exists.
3823 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3824 for ac_option
3825 do
3826   case "\$ac_option" in
3827   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3828     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3829     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3830   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3831     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3832     exit 0 ;;
3833   -help | --help | --hel | --he | --h)
3834     echo "\$ac_cs_usage"; exit 0 ;;
3835   *) echo "\$ac_cs_usage"; exit 1 ;;
3836   esac
3837 done
3839 ac_given_srcdir=$srcdir
3840 ac_given_INSTALL="$INSTALL"
3842 trap 'rm -fr `echo "examples/shared-demo.pl                     \
3843           examples/piped-demo.pl                        \
3844           examples/stripes.pl                           \
3845           examples/bigtops.pl                           \
3846           examples/minmax.pl                            \
3847           examples/cgi-demo.cgi                         \
3848           examples/Makefile                             \
3849           doc/Makefile                                  \
3850           libraries/Makefile                            \
3851           libraries/cgilib-0.4/Makefile                 \
3852           libraries/gd1.3/Makefile                      \
3853           libraries/libpng-1.0.9/Makefile               \
3854           libraries/zlib-1.1.3/Makefile                 \
3855           src/Makefile                                  \
3856           bindings/Makefile                             \
3857           bindings/tcl/Makefile                         \
3858           Makefile config/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3859 EOF
3860 cat >> $CONFIG_STATUS <<EOF
3862 # Protect against being on the right side of a sed subst in config.status.
3863 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3864  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3865 $ac_vpsub
3866 $extrasub
3867 s%@SHELL@%$SHELL%g
3868 s%@CFLAGS@%$CFLAGS%g
3869 s%@CPPFLAGS@%$CPPFLAGS%g
3870 s%@CXXFLAGS@%$CXXFLAGS%g
3871 s%@FFLAGS@%$FFLAGS%g
3872 s%@DEFS@%$DEFS%g
3873 s%@LDFLAGS@%$LDFLAGS%g
3874 s%@LIBS@%$LIBS%g
3875 s%@exec_prefix@%$exec_prefix%g
3876 s%@prefix@%$prefix%g
3877 s%@program_transform_name@%$program_transform_name%g
3878 s%@bindir@%$bindir%g
3879 s%@sbindir@%$sbindir%g
3880 s%@libexecdir@%$libexecdir%g
3881 s%@datadir@%$datadir%g
3882 s%@sysconfdir@%$sysconfdir%g
3883 s%@sharedstatedir@%$sharedstatedir%g
3884 s%@localstatedir@%$localstatedir%g
3885 s%@libdir@%$libdir%g
3886 s%@includedir@%$includedir%g
3887 s%@oldincludedir@%$oldincludedir%g
3888 s%@infodir@%$infodir%g
3889 s%@mandir@%$mandir%g
3890 s%@host@%$host%g
3891 s%@host_alias@%$host_alias%g
3892 s%@host_cpu@%$host_cpu%g
3893 s%@host_vendor@%$host_vendor%g
3894 s%@host_os@%$host_os%g
3895 s%@target@%$target%g
3896 s%@target_alias@%$target_alias%g
3897 s%@target_cpu@%$target_cpu%g
3898 s%@target_vendor@%$target_vendor%g
3899 s%@target_os@%$target_os%g
3900 s%@build@%$build%g
3901 s%@build_alias@%$build_alias%g
3902 s%@build_cpu@%$build_cpu%g
3903 s%@build_vendor@%$build_vendor%g
3904 s%@build_os@%$build_os%g
3905 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3906 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3907 s%@INSTALL_DATA@%$INSTALL_DATA%g
3908 s%@PACKAGE@%$PACKAGE%g
3909 s%@VERSION@%$VERSION%g
3910 s%@ACLOCAL@%$ACLOCAL%g
3911 s%@AUTOCONF@%$AUTOCONF%g
3912 s%@AUTOMAKE@%$AUTOMAKE%g
3913 s%@AUTOHEADER@%$AUTOHEADER%g
3914 s%@MAKEINFO@%$MAKEINFO%g
3915 s%@SET_MAKE@%$SET_MAKE%g
3916 s%@CGI_LIB_DIR@%$CGI_LIB_DIR%g
3917 s%@GD_LIB_DIR@%$GD_LIB_DIR%g
3918 s%@PNG_LIB_DIR@%$PNG_LIB_DIR%g
3919 s%@ZLIB_LIB_DIR@%$ZLIB_LIB_DIR%g
3920 s%@PERLFLAGS@%$PERLFLAGS%g
3921 s%@PERL@%$PERL%g
3922 s%@COMP_PERL@%$COMP_PERL%g
3923 s%@SO_EXT@%$SO_EXT%g
3924 s%@PERL_MAKE_OPTIONS@%$PERL_MAKE_OPTIONS%g
3925 s%@COMP_TCL_TRUE@%$COMP_TCL_TRUE%g
3926 s%@COMP_TCL_FALSE@%$COMP_TCL_FALSE%g
3927 s%@TCL_PREFIX@%$TCL_PREFIX%g
3928 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
3929 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
3930 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
3931 s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g
3932 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
3933 s%@CC@%$CC%g
3934 s%@CPP@%$CPP%g
3935 s%@RANLIB@%$RANLIB%g
3936 s%@LN_S@%$LN_S%g
3937 s%@LIBTOOL@%$LIBTOOL%g
3938 s%@NROFF@%$NROFF%g
3939 s%@TROFF@%$TROFF%g
3941 CEOF
3942 EOF
3944 cat >> $CONFIG_STATUS <<\EOF
3946 # Split the substitutions into bite-sized pieces for seds with
3947 # small command number limits, like on Digital OSF/1 and HP-UX.
3948 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3949 ac_file=1 # Number of current file.
3950 ac_beg=1 # First line for current file.
3951 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3952 ac_more_lines=:
3953 ac_sed_cmds=""
3954 while $ac_more_lines; do
3955   if test $ac_beg -gt 1; then
3956     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3957   else
3958     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3959   fi
3960   if test ! -s conftest.s$ac_file; then
3961     ac_more_lines=false
3962     rm -f conftest.s$ac_file
3963   else
3964     if test -z "$ac_sed_cmds"; then
3965       ac_sed_cmds="sed -f conftest.s$ac_file"
3966     else
3967       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3968     fi
3969     ac_file=`expr $ac_file + 1`
3970     ac_beg=$ac_end
3971     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3972   fi
3973 done
3974 if test -z "$ac_sed_cmds"; then
3975   ac_sed_cmds=cat
3976 fi
3977 EOF
3979 cat >> $CONFIG_STATUS <<EOF
3981 CONFIG_FILES=\${CONFIG_FILES-"examples/shared-demo.pl                   \
3982           examples/piped-demo.pl                        \
3983           examples/stripes.pl                           \
3984           examples/bigtops.pl                           \
3985           examples/minmax.pl                            \
3986           examples/cgi-demo.cgi                         \
3987           examples/Makefile                             \
3988           doc/Makefile                                  \
3989           libraries/Makefile                            \
3990           libraries/cgilib-0.4/Makefile                 \
3991           libraries/gd1.3/Makefile                      \
3992           libraries/libpng-1.0.9/Makefile               \
3993           libraries/zlib-1.1.3/Makefile                 \
3994           src/Makefile                                  \
3995           bindings/Makefile                             \
3996           bindings/tcl/Makefile                         \
3997           Makefile"}
3998 EOF
3999 cat >> $CONFIG_STATUS <<\EOF
4000 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4001   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4002   case "$ac_file" in
4003   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4004        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4005   *) ac_file_in="${ac_file}.in" ;;
4006   esac
4008   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4010   # Remove last slash and all that follows it.  Not all systems have dirname.
4011   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4012   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4013     # The file is in a subdirectory.
4014     test ! -d "$ac_dir" && mkdir "$ac_dir"
4015     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4016     # A "../" for each directory in $ac_dir_suffix.
4017     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4018   else
4019     ac_dir_suffix= ac_dots=
4020   fi
4022   case "$ac_given_srcdir" in
4023   .)  srcdir=.
4024       if test -z "$ac_dots"; then top_srcdir=.
4025       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4026   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4027   *) # Relative path.
4028     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4029     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4030   esac
4032   case "$ac_given_INSTALL" in
4033   [/$]*) INSTALL="$ac_given_INSTALL" ;;
4034   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4035   esac
4037   echo creating "$ac_file"
4038   rm -f "$ac_file"
4039   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4040   case "$ac_file" in
4041   *Makefile*) ac_comsub="1i\\
4042 # $configure_input" ;;
4043   *) ac_comsub= ;;
4044   esac
4046   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4047   sed -e "$ac_comsub
4048 s%@configure_input@%$configure_input%g
4049 s%@srcdir@%$srcdir%g
4050 s%@top_srcdir@%$top_srcdir%g
4051 s%@INSTALL@%$INSTALL%g
4052 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4053 fi; done
4054 rm -f conftest.s*
4056 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4057 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4059 # ac_d sets the value in "#define NAME VALUE" lines.
4060 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4061 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4062 ac_dC='\3'
4063 ac_dD='%g'
4064 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4065 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4066 ac_uB='\([      ]\)%\1#\2define\3'
4067 ac_uC=' '
4068 ac_uD='\4%g'
4069 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4070 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4071 ac_eB='$%\1#\2define\3'
4072 ac_eC=' '
4073 ac_eD='%g'
4075 if test "${CONFIG_HEADERS+set}" != set; then
4076 EOF
4077 cat >> $CONFIG_STATUS <<EOF
4078   CONFIG_HEADERS="config/config.h"
4079 EOF
4080 cat >> $CONFIG_STATUS <<\EOF
4081 fi
4082 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4083   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4084   case "$ac_file" in
4085   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4086        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4087   *) ac_file_in="${ac_file}.in" ;;
4088   esac
4090   echo creating $ac_file
4092   rm -f conftest.frag conftest.in conftest.out
4093   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4094   cat $ac_file_inputs > conftest.in
4096 EOF
4098 # Transform confdefs.h into a sed script conftest.vals that substitutes
4099 # the proper values into config.h.in to produce config.h.  And first:
4100 # Protect against being on the right side of a sed subst in config.status.
4101 # Protect against being in an unquoted here document in config.status.
4102 rm -f conftest.vals
4103 cat > conftest.hdr <<\EOF
4104 s/[\\&%]/\\&/g
4105 s%[\\$`]%\\&%g
4106 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4107 s%ac_d%ac_u%gp
4108 s%ac_u%ac_e%gp
4109 EOF
4110 sed -n -f conftest.hdr confdefs.h > conftest.vals
4111 rm -f conftest.hdr
4113 # This sed command replaces #undef with comments.  This is necessary, for
4114 # example, in the case of _POSIX_SOURCE, which is predefined and required
4115 # on some systems where configure will not decide to define it.
4116 cat >> conftest.vals <<\EOF
4117 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4118 EOF
4120 # Break up conftest.vals because some shells have a limit on
4121 # the size of here documents, and old seds have small limits too.
4123 rm -f conftest.tail
4124 while :
4125 do
4126   ac_lines=`grep -c . conftest.vals`
4127   # grep -c gives empty output for an empty file on some AIX systems.
4128   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4129   # Write a limited-size here document to conftest.frag.
4130   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4131   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4132   echo 'CEOF
4133   sed -f conftest.frag conftest.in > conftest.out
4134   rm -f conftest.in
4135   mv conftest.out conftest.in
4136 ' >> $CONFIG_STATUS
4137   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4138   rm -f conftest.vals
4139   mv conftest.tail conftest.vals
4140 done
4141 rm -f conftest.vals
4143 cat >> $CONFIG_STATUS <<\EOF
4144   rm -f conftest.frag conftest.h
4145   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4146   cat conftest.in >> conftest.h
4147   rm -f conftest.in
4148   if cmp -s $ac_file conftest.h 2>/dev/null; then
4149     echo "$ac_file is unchanged"
4150     rm -f conftest.h
4151   else
4152     # Remove last slash and all that follows it.  Not all systems have dirname.
4153       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4154       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4155       # The file is in a subdirectory.
4156       test ! -d "$ac_dir" && mkdir "$ac_dir"
4157     fi
4158     rm -f $ac_file
4159     mv conftest.h $ac_file
4160   fi
4161 fi; done
4163 EOF
4164 cat >> $CONFIG_STATUS <<EOF
4167 EOF
4168 cat >> $CONFIG_STATUS <<\EOF
4169 test -z "$CONFIG_HEADERS" || echo timestamp > config/stamp-h
4171           chmod +x examples/*.cgi examples/*.pl
4172 exit 0
4173 EOF
4174 chmod +x $CONFIG_STATUS
4175 rm -fr confdefs* $ac_clean_files
4176 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4179 echo $ac_n "checking in""... $ac_c" 1>&6
4180 echo "configure:4181: checking in" >&5
4181 echo "$ac_t""and out again" 1>&6
4183 echo $ac_n "ordering CD from http://ee-staff.ethz.ch/~oetiker/wish $ac_c" 1>&6
4184 sleep 1
4185 echo $ac_n ".$ac_c" 1>&6
4186 sleep 1
4187 echo $ac_n ".$ac_c" 1>&6
4188 sleep 1
4189 echo $ac_n ".$ac_c" 1>&6
4190 sleep 1
4191 echo $ac_n ".$ac_c" 1>&6
4192 sleep 1
4193 echo "$ac_t"" just kidding ;-)" 1>&6
4194 echo
4195 echo "----------------------------------------------------------------"
4196 echo "Config is DONE!"
4197 echo
4198 echo "Type 'make' to compile the software and use 'make install' to "
4199 echo "install everything to: $prefix."
4200 echo
4201 echo "If you want to install the perl"
4202 echo "modules in site-perl, try 'make site-perl-install'."
4203 echo 
4204 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
4205 echo "make me happy. Go to http://ee-staff.ethz.ch/~oetiker/wish and"
4206 echo "place an order."
4207 echo 
4208 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
4209 echo "----------------------------------------------------------------"