]> git.donarmstrong.com Git - lilypond.git/blob - flower/configure
release: 0.1.50
[lilypond.git] / flower / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
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.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-shared         build shared libraries [default=no]
16   --enable-shared=PKGS    only build shared libraries if the current package
17                           appears as an element in the PKGS list"
18 ac_help="$ac_help
19   --enable-static         build static libraries [default=yes]
20   --enable-static=PKGS    only build shared libraries if the current package
21                           appears as an element in the PKGS list"
22 ac_help="$ac_help
23   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
24
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
28 build=NONE
29 cache_file=./config.cache
30 exec_prefix=NONE
31 host=NONE
32 no_create=
33 nonopt=NONE
34 no_recursion=
35 prefix=NONE
36 program_prefix=NONE
37 program_suffix=NONE
38 program_transform_name=s,x,x,
39 silent=
40 site=
41 srcdir=
42 target=NONE
43 verbose=
44 x_includes=NONE
45 x_libraries=NONE
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
58
59 # Initialize some other variables.
60 subdirs=
61 MFLAGS= MAKEFLAGS=
62 # Maximum number of lines to put in a shell here document.
63 ac_max_here_lines=12
64
65 ac_prev=
66 for ac_option
67 do
68
69   # If the previous option needs an argument, assign it.
70   if test -n "$ac_prev"; then
71     eval "$ac_prev=\$ac_option"
72     ac_prev=
73     continue
74   fi
75
76   case "$ac_option" in
77   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78   *) ac_optarg= ;;
79   esac
80
81   # Accept the important Cygnus configure options, so we can diagnose typos.
82
83   case "$ac_option" in
84
85   -bindir | --bindir | --bindi | --bind | --bin | --bi)
86     ac_prev=bindir ;;
87   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88     bindir="$ac_optarg" ;;
89
90   -build | --build | --buil | --bui | --bu)
91     ac_prev=build ;;
92   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93     build="$ac_optarg" ;;
94
95   -cache-file | --cache-file | --cache-fil | --cache-fi \
96   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97     ac_prev=cache_file ;;
98   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100     cache_file="$ac_optarg" ;;
101
102   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103     ac_prev=datadir ;;
104   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105   | --da=*)
106     datadir="$ac_optarg" ;;
107
108   -disable-* | --disable-*)
109     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110     # Reject names that are not valid shell variable names.
111     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113     fi
114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115     eval "enable_${ac_feature}=no" ;;
116
117   -enable-* | --enable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     case "$ac_option" in
125       *=*) ;;
126       *) ac_optarg=yes ;;
127     esac
128     eval "enable_${ac_feature}='$ac_optarg'" ;;
129
130   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132   | --exec | --exe | --ex)
133     ac_prev=exec_prefix ;;
134   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136   | --exec=* | --exe=* | --ex=*)
137     exec_prefix="$ac_optarg" ;;
138
139   -gas | --gas | --ga | --g)
140     # Obsolete; use --with-gas.
141     with_gas=yes ;;
142
143   -help | --help | --hel | --he)
144     # Omit some internal or obsolete options to make the list less imposing.
145     # This message is too long to be a string in the A/UX 3.1 sh.
146     cat << EOF
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
149 Configuration:
150   --cache-file=FILE       cache test results in FILE
151   --help                  print this message
152   --no-create             do not create output files
153   --quiet, --silent       do not print \`checking...' messages
154   --version               print the version of autoconf that created configure
155 Directory and file names:
156   --prefix=PREFIX         install architecture-independent files in PREFIX
157                           [$ac_default_prefix]
158   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
159                           [same as prefix]
160   --bindir=DIR            user executables in DIR [EPREFIX/bin]
161   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
162   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
163   --datadir=DIR           read-only architecture-independent data in DIR
164                           [PREFIX/share]
165   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
166   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
167                           [PREFIX/com]
168   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
169   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
170   --includedir=DIR        C header files in DIR [PREFIX/include]
171   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
172   --infodir=DIR           info documentation in DIR [PREFIX/info]
173   --mandir=DIR            man documentation in DIR [PREFIX/man]
174   --srcdir=DIR            find the sources in DIR [configure dir or ..]
175   --program-prefix=PREFIX prepend PREFIX to installed program names
176   --program-suffix=SUFFIX append SUFFIX to installed program names
177   --program-transform-name=PROGRAM
178                           run sed PROGRAM on installed program names
179 EOF
180     cat << EOF
181 Host type:
182   --build=BUILD           configure for building on BUILD [BUILD=HOST]
183   --host=HOST             configure for HOST [guessed]
184   --target=TARGET         configure for TARGET [TARGET=HOST]
185 Features and packages:
186   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
187   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
188   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
189   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
190   --x-includes=DIR        X include files are in DIR
191   --x-libraries=DIR       X library files are in DIR
192 EOF
193     if test -n "$ac_help"; then
194       echo "--enable and --with options recognized:$ac_help"
195     fi
196     exit 0 ;;
197
198   -host | --host | --hos | --ho)
199     ac_prev=host ;;
200   -host=* | --host=* | --hos=* | --ho=*)
201     host="$ac_optarg" ;;
202
203   -includedir | --includedir | --includedi | --included | --include \
204   | --includ | --inclu | --incl | --inc)
205     ac_prev=includedir ;;
206   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207   | --includ=* | --inclu=* | --incl=* | --inc=*)
208     includedir="$ac_optarg" ;;
209
210   -infodir | --infodir | --infodi | --infod | --info | --inf)
211     ac_prev=infodir ;;
212   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213     infodir="$ac_optarg" ;;
214
215   -libdir | --libdir | --libdi | --libd)
216     ac_prev=libdir ;;
217   -libdir=* | --libdir=* | --libdi=* | --libd=*)
218     libdir="$ac_optarg" ;;
219
220   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221   | --libexe | --libex | --libe)
222     ac_prev=libexecdir ;;
223   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224   | --libexe=* | --libex=* | --libe=*)
225     libexecdir="$ac_optarg" ;;
226
227   -localstatedir | --localstatedir | --localstatedi | --localstated \
228   | --localstate | --localstat | --localsta | --localst \
229   | --locals | --local | --loca | --loc | --lo)
230     ac_prev=localstatedir ;;
231   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234     localstatedir="$ac_optarg" ;;
235
236   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237     ac_prev=mandir ;;
238   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239     mandir="$ac_optarg" ;;
240
241   -nfp | --nfp | --nf)
242     # Obsolete; use --without-fp.
243     with_fp=no ;;
244
245   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246   | --no-cr | --no-c)
247     no_create=yes ;;
248
249   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251     no_recursion=yes ;;
252
253   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255   | --oldin | --oldi | --old | --ol | --o)
256     ac_prev=oldincludedir ;;
257   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260     oldincludedir="$ac_optarg" ;;
261
262   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263     ac_prev=prefix ;;
264   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265     prefix="$ac_optarg" ;;
266
267   -program-prefix | --program-prefix | --program-prefi | --program-pref \
268   | --program-pre | --program-pr | --program-p)
269     ac_prev=program_prefix ;;
270   -program-prefix=* | --program-prefix=* | --program-prefi=* \
271   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272     program_prefix="$ac_optarg" ;;
273
274   -program-suffix | --program-suffix | --program-suffi | --program-suff \
275   | --program-suf | --program-su | --program-s)
276     ac_prev=program_suffix ;;
277   -program-suffix=* | --program-suffix=* | --program-suffi=* \
278   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279     program_suffix="$ac_optarg" ;;
280
281   -program-transform-name | --program-transform-name \
282   | --program-transform-nam | --program-transform-na \
283   | --program-transform-n | --program-transform- \
284   | --program-transform | --program-transfor \
285   | --program-transfo | --program-transf \
286   | --program-trans | --program-tran \
287   | --progr-tra | --program-tr | --program-t)
288     ac_prev=program_transform_name ;;
289   -program-transform-name=* | --program-transform-name=* \
290   | --program-transform-nam=* | --program-transform-na=* \
291   | --program-transform-n=* | --program-transform-=* \
292   | --program-transform=* | --program-transfor=* \
293   | --program-transfo=* | --program-transf=* \
294   | --program-trans=* | --program-tran=* \
295   | --progr-tra=* | --program-tr=* | --program-t=*)
296     program_transform_name="$ac_optarg" ;;
297
298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299   | -silent | --silent | --silen | --sile | --sil)
300     silent=yes ;;
301
302   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303     ac_prev=sbindir ;;
304   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305   | --sbi=* | --sb=*)
306     sbindir="$ac_optarg" ;;
307
308   -sharedstatedir | --sharedstatedir | --sharedstatedi \
309   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310   | --sharedst | --shareds | --shared | --share | --shar \
311   | --sha | --sh)
312     ac_prev=sharedstatedir ;;
313   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316   | --sha=* | --sh=*)
317     sharedstatedir="$ac_optarg" ;;
318
319   -site | --site | --sit)
320     ac_prev=site ;;
321   -site=* | --site=* | --sit=*)
322     site="$ac_optarg" ;;
323
324   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325     ac_prev=srcdir ;;
326   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327     srcdir="$ac_optarg" ;;
328
329   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330   | --syscon | --sysco | --sysc | --sys | --sy)
331     ac_prev=sysconfdir ;;
332   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334     sysconfdir="$ac_optarg" ;;
335
336   -target | --target | --targe | --targ | --tar | --ta | --t)
337     ac_prev=target ;;
338   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339     target="$ac_optarg" ;;
340
341   -v | -verbose | --verbose | --verbos | --verbo | --verb)
342     verbose=yes ;;
343
344   -version | --version | --versio | --versi | --vers)
345     echo "configure generated by autoconf version 2.12"
346     exit 0 ;;
347
348   -with-* | --with-*)
349     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350     # Reject names that are not valid shell variable names.
351     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353     fi
354     ac_package=`echo $ac_package| sed 's/-/_/g'`
355     case "$ac_option" in
356       *=*) ;;
357       *) ac_optarg=yes ;;
358     esac
359     eval "with_${ac_package}='$ac_optarg'" ;;
360
361   -without-* | --without-*)
362     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     eval "with_${ac_package}=no" ;;
369
370   --x)
371     # Obsolete; use --with-x.
372     with_x=yes ;;
373
374   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375   | --x-incl | --x-inc | --x-in | --x-i)
376     ac_prev=x_includes ;;
377   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379     x_includes="$ac_optarg" ;;
380
381   -x-libraries | --x-libraries | --x-librarie | --x-librari \
382   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383     ac_prev=x_libraries ;;
384   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386     x_libraries="$ac_optarg" ;;
387
388   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389     ;;
390
391   *)
392     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393       echo "configure: warning: $ac_option: invalid host type" 1>&2
394     fi
395     if test "x$nonopt" != xNONE; then
396       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397     fi
398     nonopt="$ac_option"
399     ;;
400
401   esac
402 done
403
404 if test -n "$ac_prev"; then
405   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 fi
407
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409
410 # File descriptor usage:
411 # 0 standard input
412 # 1 file creation
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
419   exec 6>/dev/null
420 else
421   exec 6>&1
422 fi
423 exec 5>./config.log
424
425 echo "\
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
428 " 1>&5
429
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
432 ac_configure_args=
433 for ac_arg
434 do
435   case "$ac_arg" in
436   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437   | --no-cr | --no-c) ;;
438   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443   esac
444 done
445
446 # NLS nuisances.
447 # Only set these to C if already set.  These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
455
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 echo > confdefs.h
460
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=choleski.cc
464
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467   ac_srcdir_defaulted=yes
468   # Try the directory containing this script, then its parent.
469   ac_prog=$0
470   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472   srcdir=$ac_confdir
473   if test ! -r $srcdir/$ac_unique_file; then
474     srcdir=..
475   fi
476 else
477   ac_srcdir_defaulted=no
478 fi
479 if test ! -r $srcdir/$ac_unique_file; then
480   if test "$ac_srcdir_defaulted" = yes; then
481     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482   else
483     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484   fi
485 fi
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490   if test "x$prefix" != xNONE; then
491     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492   else
493     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494   fi
495 fi
496 for ac_site_file in $CONFIG_SITE; do
497   if test -r "$ac_site_file"; then
498     echo "loading site script $ac_site_file"
499     . "$ac_site_file"
500   fi
501 done
502
503 if test -r "$cache_file"; then
504   echo "loading cache $cache_file"
505   . $cache_file
506 else
507   echo "creating cache $cache_file"
508   > $cache_file
509 fi
510
511 ac_ext=c
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
517
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521     ac_n= ac_c='
522 ' ac_t='        '
523   else
524     ac_n=-n ac_c= ac_t=
525   fi
526 else
527   ac_n= ac_c='\c' ac_t=
528 fi
529
530
531
532 . $srcdir/VERSION
533 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
534 if test x$MY_PATCH_LEVEL != x; then
535         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
536 fi
537 ac_aux_dir=
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539   if test -f $ac_dir/install-sh; then
540     ac_aux_dir=$ac_dir
541     ac_install_sh="$ac_aux_dir/install-sh -c"
542     break
543   elif 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   fi
548 done
549 if test -z "$ac_aux_dir"; then
550   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 fi
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555
556 # Find a good install program.  We prefer a C program (faster),
557 # so one script is as good as another.  But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
561 # IRIX /sbin/install
562 # AIX /bin/install
563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565 # ./install, which can be erroneously created by make from ./install.sh.
566 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567 echo "configure:568: checking for a BSD compatible install" >&5
568 if test -z "$INSTALL"; then
569 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570   echo $ac_n "(cached) $ac_c" 1>&6
571 else
572     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
573   for ac_dir in $PATH; do
574     # Account for people who put trailing slashes in PATH elements.
575     case "$ac_dir/" in
576     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
577     *)
578       # OSF1 and SCO ODT 3.0 have their own names for install.
579       for ac_prog in ginstall installbsd scoinst install; do
580         if test -f $ac_dir/$ac_prog; then
581           if test $ac_prog = install &&
582             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
583             # AIX install.  It has an incompatible calling convention.
584             # OSF/1 installbsd also uses dspmsg, but is usable.
585             :
586           else
587             ac_cv_path_install="$ac_dir/$ac_prog -c"
588             break 2
589           fi
590         fi
591       done
592       ;;
593     esac
594   done
595   IFS="$ac_save_IFS"
596
597 fi
598   if test "${ac_cv_path_install+set}" = set; then
599     INSTALL="$ac_cv_path_install"
600   else
601     # As a last resort, use the slow shell script.  We don't cache a
602     # path for INSTALL within a source directory, because that will
603     # break other packages using the cache if that directory is
604     # removed, or if the path is relative.
605     INSTALL="$ac_install_sh"
606   fi
607 fi
608 echo "$ac_t""$INSTALL" 1>&6
609
610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
611 # It thinks the first close brace ends the variable substitution.
612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
613
614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
615
616
617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
618
619 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620 echo "configure:621: checking whether build environment is sane" >&5
621 # Just in case
622 sleep 1
623 echo timestamp > conftestfile
624 # Do `set' in a subshell so we don't clobber the current shell's
625 # arguments.  Must try -L first in case configure is actually a
626 # symlink; some systems play weird games with the mod time of symlinks
627 # (eg FreeBSD returns the mod time of the symlink's containing
628 # directory).
629 if (
630    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631    if test "$*" = "X"; then
632       # -L didn't work.
633       set X `ls -t $srcdir/configure conftestfile`
634    fi
635    if test "$*" != "X $srcdir/configure conftestfile" \
636       && test "$*" != "X conftestfile $srcdir/configure"; then
637
638       # If neither matched, then we have a broken ls.  This can happen
639       # if, for instance, CONFIG_SHELL is bash and it inherits a
640       # broken ls alias from the environment.  This has actually
641       # happened.  Such a system could not be considered "sane".
642       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
643 alias in your environment" 1>&2; exit 1; }
644    fi
645
646    test "$2" = conftestfile
647    )
648 then
649    # Ok.
650    :
651 else
652    { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
654 fi
655 rm -f conftest*
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658   program_transform_name=
659 else
660   # Double any \ or $.  echo might interpret backslashes.
661   cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
663 EOF_SED
664   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665   rm -f conftestsed
666 fi
667 test "$program_prefix" != NONE &&
668   program_transform_name="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE &&
671   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
676 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680   echo $ac_n "(cached) $ac_c" 1>&6
681 else
682   cat > conftestmake <<\EOF
683 all:
684         @echo 'ac_maketemp="${MAKE}"'
685 EOF
686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688 if test -n "$ac_maketemp"; then
689   eval ac_cv_prog_make_${ac_make}_set=yes
690 else
691   eval ac_cv_prog_make_${ac_make}_set=no
692 fi
693 rm -f conftestmake
694 fi
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696   echo "$ac_t""yes" 1>&6
697   SET_MAKE=
698 else
699   echo "$ac_t""no" 1>&6
700   SET_MAKE="MAKE=${MAKE-make}"
701 fi
702
703
704 PACKAGE=flower
705
706 VERSION=$FULL_VERSION
707
708 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
710 fi
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
713 EOF
714
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
717 EOF
718
719
720
721 missing_dir=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf.  Sigh.
727 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
728    ACLOCAL=aclocal
729    echo "$ac_t""found" 1>&6
730 else
731    ACLOCAL="$missing_dir/missing aclocal"
732    echo "$ac_t""missing" 1>&6
733 fi
734
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf.  Sigh.
740 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
741    AUTOCONF=autoconf
742    echo "$ac_t""found" 1>&6
743 else
744    AUTOCONF="$missing_dir/missing autoconf"
745    echo "$ac_t""missing" 1>&6
746 fi
747
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf.  Sigh.
753 if (automake --version) < /dev/null > /dev/null 2>&1; then
754    AUTOMAKE=automake
755    echo "$ac_t""found" 1>&6
756 else
757    AUTOMAKE="$missing_dir/missing automake"
758    echo "$ac_t""missing" 1>&6
759 fi
760
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf.  Sigh.
766 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767    AUTOHEADER=autoheader
768    echo "$ac_t""found" 1>&6
769 else
770    AUTOHEADER="$missing_dir/missing autoheader"
771    echo "$ac_t""missing" 1>&6
772 fi
773
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf.  Sigh.
779 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
780    MAKEINFO=makeinfo
781    echo "$ac_t""found" 1>&6
782 else
783    MAKEINFO="$missing_dir/missing makeinfo"
784    echo "$ac_t""missing" 1>&6
785 fi
786
787
788
789 # Extract the first word of "gcc", so it can be a program name with args.
790 set dummy gcc; ac_word=$2
791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792 echo "configure:793: checking for $ac_word" >&5
793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
794   echo $ac_n "(cached) $ac_c" 1>&6
795 else
796   if test -n "$CC"; then
797   ac_cv_prog_CC="$CC" # Let the user override the test.
798 else
799   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
800   for ac_dir in $PATH; do
801     test -z "$ac_dir" && ac_dir=.
802     if test -f $ac_dir/$ac_word; then
803       ac_cv_prog_CC="gcc"
804       break
805     fi
806   done
807   IFS="$ac_save_ifs"
808 fi
809 fi
810 CC="$ac_cv_prog_CC"
811 if test -n "$CC"; then
812   echo "$ac_t""$CC" 1>&6
813 else
814   echo "$ac_t""no" 1>&6
815 fi
816
817 if test -z "$CC"; then
818   # Extract the first word of "cc", so it can be a program name with args.
819 set dummy cc; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823   echo $ac_n "(cached) $ac_c" 1>&6
824 else
825   if test -n "$CC"; then
826   ac_cv_prog_CC="$CC" # Let the user override the test.
827 else
828   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
829   ac_prog_rejected=no
830   for ac_dir in $PATH; do
831     test -z "$ac_dir" && ac_dir=.
832     if test -f $ac_dir/$ac_word; then
833       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
834         ac_prog_rejected=yes
835         continue
836       fi
837       ac_cv_prog_CC="cc"
838       break
839     fi
840   done
841   IFS="$ac_save_ifs"
842 if test $ac_prog_rejected = yes; then
843   # We found a bogon in the path, so make sure we never use it.
844   set dummy $ac_cv_prog_CC
845   shift
846   if test $# -gt 0; then
847     # We chose a different compiler from the bogus one.
848     # However, it has the same basename, so the bogon will be chosen
849     # first if we set CC to just the basename; use the full file name.
850     shift
851     set dummy "$ac_dir/$ac_word" "$@"
852     shift
853     ac_cv_prog_CC="$@"
854   fi
855 fi
856 fi
857 fi
858 CC="$ac_cv_prog_CC"
859 if test -n "$CC"; then
860   echo "$ac_t""$CC" 1>&6
861 else
862   echo "$ac_t""no" 1>&6
863 fi
864
865   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
866 fi
867
868 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
869 echo "configure:870: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
870
871 ac_ext=c
872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
873 ac_cpp='$CPP $CPPFLAGS'
874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
875 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
876 cross_compiling=$ac_cv_prog_cc_cross
877
878 cat > conftest.$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
881 main(){return(0);}
882 EOF
883 if { (eval echo configure:884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
884   ac_cv_prog_cc_works=yes
885   # If we can't run a trivial program, we are probably using a cross compiler.
886   if (./conftest; exit) 2>/dev/null; then
887     ac_cv_prog_cc_cross=no
888   else
889     ac_cv_prog_cc_cross=yes
890   fi
891 else
892   echo "configure: failed program was:" >&5
893   cat conftest.$ac_ext >&5
894   ac_cv_prog_cc_works=no
895 fi
896 rm -fr conftest*
897
898 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
899 if test $ac_cv_prog_cc_works = no; then
900   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 fi
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
904 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
905 cross_compiling=$ac_cv_prog_cc_cross
906
907 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
908 echo "configure:909: checking whether we are using GNU C" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
910   echo $ac_n "(cached) $ac_c" 1>&6
911 else
912   cat > conftest.c <<EOF
913 #ifdef __GNUC__
914   yes;
915 #endif
916 EOF
917 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
918   ac_cv_prog_gcc=yes
919 else
920   ac_cv_prog_gcc=no
921 fi
922 fi
923
924 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925
926 if test $ac_cv_prog_gcc = yes; then
927   GCC=yes
928   ac_test_CFLAGS="${CFLAGS+set}"
929   ac_save_CFLAGS="$CFLAGS"
930   CFLAGS=
931   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
932 echo "configure:933: checking whether ${CC-cc} accepts -g" >&5
933 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
934   echo $ac_n "(cached) $ac_c" 1>&6
935 else
936   echo 'void f(){}' > conftest.c
937 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
938   ac_cv_prog_cc_g=yes
939 else
940   ac_cv_prog_cc_g=no
941 fi
942 rm -f conftest*
943
944 fi
945
946 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
947   if test "$ac_test_CFLAGS" = set; then
948     CFLAGS="$ac_save_CFLAGS"
949   elif test $ac_cv_prog_cc_g = yes; then
950     CFLAGS="-g -O2"
951   else
952     CFLAGS="-O2"
953   fi
954 else
955   GCC=
956   test "${CFLAGS+set}" = set || CFLAGS="-g"
957 fi
958
959 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
960 do
961 # Extract the first word of "$ac_prog", so it can be a program name with args.
962 set dummy $ac_prog; ac_word=$2
963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964 echo "configure:965: checking for $ac_word" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
966   echo $ac_n "(cached) $ac_c" 1>&6
967 else
968   if test -n "$CXX"; then
969   ac_cv_prog_CXX="$CXX" # Let the user override the test.
970 else
971   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
972   for ac_dir in $PATH; do
973     test -z "$ac_dir" && ac_dir=.
974     if test -f $ac_dir/$ac_word; then
975       ac_cv_prog_CXX="$ac_prog"
976       break
977     fi
978   done
979   IFS="$ac_save_ifs"
980 fi
981 fi
982 CXX="$ac_cv_prog_CXX"
983 if test -n "$CXX"; then
984   echo "$ac_t""$CXX" 1>&6
985 else
986   echo "$ac_t""no" 1>&6
987 fi
988
989 test -n "$CXX" && break
990 done
991 test -n "$CXX" || CXX="gcc"
992
993
994 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
995 echo "configure:996: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
996
997 ac_ext=C
998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
999 ac_cpp='$CXXCPP $CPPFLAGS'
1000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1001 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1002 cross_compiling=$ac_cv_prog_cxx_cross
1003
1004 cat > conftest.$ac_ext <<EOF
1005 #line 1006 "configure"
1006 #include "confdefs.h"
1007 main(){return(0);}
1008 EOF
1009 if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1010   ac_cv_prog_cxx_works=yes
1011   # If we can't run a trivial program, we are probably using a cross compiler.
1012   if (./conftest; exit) 2>/dev/null; then
1013     ac_cv_prog_cxx_cross=no
1014   else
1015     ac_cv_prog_cxx_cross=yes
1016   fi
1017 else
1018   echo "configure: failed program was:" >&5
1019   cat conftest.$ac_ext >&5
1020   ac_cv_prog_cxx_works=no
1021 fi
1022 rm -fr conftest*
1023 ac_ext=c
1024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1025 ac_cpp='$CPP $CPPFLAGS'
1026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1027 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1028 cross_compiling=$ac_cv_prog_cc_cross
1029
1030 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1031 if test $ac_cv_prog_cxx_works = no; then
1032   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1033 fi
1034 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1036 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1037 cross_compiling=$ac_cv_prog_cxx_cross
1038
1039 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1040 echo "configure:1041: checking whether we are using GNU C++" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1042   echo $ac_n "(cached) $ac_c" 1>&6
1043 else
1044   cat > conftest.C <<EOF
1045 #ifdef __GNUC__
1046   yes;
1047 #endif
1048 EOF
1049 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1050   ac_cv_prog_gxx=yes
1051 else
1052   ac_cv_prog_gxx=no
1053 fi
1054 fi
1055
1056 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1057
1058 if test $ac_cv_prog_gxx = yes; then
1059   GXX=yes
1060   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1061   ac_save_CXXFLAGS="$CXXFLAGS"
1062   CXXFLAGS=
1063   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1064 echo "configure:1065: checking whether ${CXX-g++} accepts -g" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1066   echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068   echo 'void f(){}' > conftest.cc
1069 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1070   ac_cv_prog_cxx_g=yes
1071 else
1072   ac_cv_prog_cxx_g=no
1073 fi
1074 rm -f conftest*
1075
1076 fi
1077
1078 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1079   if test "$ac_test_CXXFLAGS" = set; then
1080     CXXFLAGS="$ac_save_CXXFLAGS"
1081   elif test $ac_cv_prog_cxx_g = yes; then
1082     CXXFLAGS="-g -O2"
1083   else
1084     CXXFLAGS="-O2"
1085   fi
1086 else
1087   GXX=
1088   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1089 fi
1090
1091
1092 # turn off shared libraries by default (may be enabled using --enable-shared)
1093 # Check whether --enable-shared or --disable-shared was given.
1094 if test "${enable_shared+set}" = set; then
1095   enableval="$enable_shared"
1096   p=${PACKAGE-default}
1097 case "$enableval" in
1098 yes) enable_shared=yes ;;
1099 no) enable_shared=no ;;
1100 *)
1101   enable_shared=no
1102   # Look at the argument we got.  We use all the common list separators.
1103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1104   for pkg in $enableval; do
1105     if test "X$pkg" = "X$p"; then
1106       enable_shared=yes
1107     fi
1108   done
1109   IFS="$ac_save_ifs"
1110   ;;
1111 esac
1112 else
1113   enable_shared=no
1114 fi
1115
1116 # Check whether --enable-static or --disable-static was given.
1117 if test "${enable_static+set}" = set; then
1118   enableval="$enable_static"
1119   p=${PACKAGE-default}
1120 case "$enableval" in
1121 yes) enable_static=yes ;;
1122 no) enable_static=no ;;
1123 *)
1124   enable_static=no
1125   # Look at the argument we got.  We use all the common list separators.
1126   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1127   for pkg in $enableval; do
1128     if test "X$pkg" = "X$p"; then
1129       enable_static=yes
1130     fi
1131   done
1132   IFS="$ac_save_ifs"
1133   ;;
1134 esac
1135 else
1136   enable_static=yes
1137 fi
1138
1139
1140 # Make sure we can run config.sub.
1141 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1142 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1143 fi
1144
1145 echo $ac_n "checking host system type""... $ac_c" 1>&6
1146 echo "configure:1147: checking host system type" >&5
1147
1148 host_alias=$host
1149 case "$host_alias" in
1150 NONE)
1151   case $nonopt in
1152   NONE)
1153     if host_alias=`$ac_config_guess`; then :
1154     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1155     fi ;;
1156   *) host_alias=$nonopt ;;
1157   esac ;;
1158 esac
1159
1160 host=`$ac_config_sub $host_alias`
1161 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1162 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1163 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1164 echo "$ac_t""$host" 1>&6
1165
1166 # Extract the first word of "ranlib", so it can be a program name with args.
1167 set dummy ranlib; ac_word=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171   echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173   if test -n "$RANLIB"; then
1174   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1175 else
1176   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1177   for ac_dir in $PATH; do
1178     test -z "$ac_dir" && ac_dir=.
1179     if test -f $ac_dir/$ac_word; then
1180       ac_cv_prog_RANLIB="ranlib"
1181       break
1182     fi
1183   done
1184   IFS="$ac_save_ifs"
1185   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1186 fi
1187 fi
1188 RANLIB="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190   echo "$ac_t""$RANLIB" 1>&6
1191 else
1192   echo "$ac_t""no" 1>&6
1193 fi
1194
1195 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1196 if test "${with_gnu_ld+set}" = set; then
1197   withval="$with_gnu_ld"
1198   test "$withval" = no || with_gnu_ld=yes
1199 else
1200   with_gnu_ld=no
1201 fi
1202
1203
1204 ac_prog=ld
1205 if test "$ac_cv_prog_gcc" = yes; then
1206   # Check if gcc -print-prog-name=ld gives a path.
1207   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1208 echo "configure:1209: checking for ld used by GCC" >&5
1209   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1210   case "$ac_prog" in
1211   # Accept absolute paths.
1212   /* | A-Za-z:\\*)
1213     test -z "$LD" && LD="$ac_prog"
1214     ;;
1215   "")
1216     # If it fails, then pretend we aren't using GCC.
1217     ac_prog=ld
1218     ;;
1219   *)
1220     # If it is relative, then search for the first ld in PATH.
1221     with_gnu_ld=unknown
1222     ;;
1223   esac
1224 elif test "$with_gnu_ld" = yes; then
1225   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1226 echo "configure:1227: checking for GNU ld" >&5
1227 else
1228   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1229 echo "configure:1230: checking for non-GNU ld" >&5
1230 fi
1231 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1232   echo $ac_n "(cached) $ac_c" 1>&6
1233 else
1234   if test -z "$LD"; then
1235   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1236   for ac_dir in $PATH; do
1237     test -z "$ac_dir" && ac_dir=.
1238     if test -f "$ac_dir/$ac_prog"; then
1239       ac_cv_path_LD="$ac_dir/$ac_prog"
1240       # Check to see if the program is GNU ld.  I'd rather use --version,
1241       # but apparently some GNU ld's only accept -v.
1242       # Break only if it was the GNU/non-GNU ld that we prefer.
1243       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1244         test "$with_gnu_ld" != no && break
1245       else
1246         test "$with_gnu_ld" != yes && break
1247       fi
1248     fi
1249   done
1250   IFS="$ac_save_ifs"
1251 else
1252   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1253 fi
1254 fi
1255
1256 LD="$ac_cv_path_LD"
1257 if test -n "$LD"; then
1258   echo "$ac_t""$LD" 1>&6
1259 else
1260   echo "$ac_t""no" 1>&6
1261 fi
1262 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1263
1264 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1265 echo "configure:1266: checking if the linker ($LD) is GNU ld" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1267   echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1270 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1271   ac_cv_prog_gnu_ld=yes
1272 else
1273   ac_cv_prog_gnu_ld=no
1274 fi
1275 fi
1276
1277 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1278
1279
1280 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1281 echo "configure:1282: checking for BSD-compatible nm" >&5
1282 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1283   echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285   case "$NM" in
1286 /* | A-Za-z:\\*)
1287   ac_cv_path_NM="$NM" # Let the user override the test with a path.
1288   ;;
1289 *)
1290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1291   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1292     test -z "$ac_dir" && ac_dir=.
1293     if test -f $ac_dir/nm; then
1294       # Check to see if the nm accepts a BSD-compat flag.
1295       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1296       #   nm: unknown option "B" ignored
1297       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1298         ac_cv_path_NM="$ac_dir/nm -B"
1299       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1300         ac_cv_path_NM="$ac_dir/nm -p"
1301       else
1302         ac_cv_path_NM="$ac_dir/nm"
1303       fi
1304       break
1305     fi
1306   done
1307   IFS="$ac_save_ifs"
1308   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1309   ;;
1310 esac
1311 fi
1312
1313 NM="$ac_cv_path_NM"
1314 echo "$ac_t""$NM" 1>&6
1315
1316
1317 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether ln -s works" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1320   echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322   rm -f conftestdata
1323 if ln -s X conftestdata 2>/dev/null
1324 then
1325   rm -f conftestdata
1326   ac_cv_prog_LN_S="ln -s"
1327 else
1328   ac_cv_prog_LN_S=ln
1329 fi
1330 fi
1331 LN_S="$ac_cv_prog_LN_S"
1332 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1333   echo "$ac_t""yes" 1>&6
1334 else
1335   echo "$ac_t""no" 1>&6
1336 fi
1337
1338 # Always use our own libtool.
1339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1340
1341 # Check for any special flags to pass to ltconfig.
1342 libtool_flags=
1343 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1344 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1345 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1346 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1347 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1348
1349 # Some flags need to be propagated to the compiler or linker for good
1350 # libtool support.
1351 case "$host" in
1352 *-*-irix6*)
1353   # Find out which ABI we are using.
1354   echo '#line 1355 "configure"' > conftest.$ac_ext
1355   if { (eval echo configure:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1356     case "`/usr/bin/file conftest.o`" in
1357     *32-bit*)
1358       LD="${LD-ld} -32"
1359       ;;
1360     *N32*)
1361       LD="${LD-ld} -n32"
1362       ;;
1363     *64-bit*)
1364       LD="${LD-ld} -64"
1365       ;;
1366     esac
1367   fi
1368   rm -rf conftest*
1369   ;;
1370
1371 *-*-sco3.2v5*)
1372   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1373   CFLAGS="$CFLAGS -belf"
1374   ;;
1375 esac
1376
1377 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1378 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1379 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1380 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1381 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1382 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1383
1384
1385
1386 missing_dir=`cd $ac_aux_dir && pwd`
1387
1388 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1389 echo "configure:1390: checking for working aclocal" >&5
1390 # Run test in a subshell; some versions of sh will print an error if
1391 # an executable is not found, even if stderr is redirected.
1392 # Redirect stdin to placate older versions of autoconf.  Sigh.
1393 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1394    ACLOCAL=aclocal
1395    echo "$ac_t""found" 1>&6
1396 else
1397    ACLOCAL="$missing_dir/missing aclocal"
1398    echo "$ac_t""missing" 1>&6
1399 fi
1400
1401 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1402 echo "configure:1403: checking for working autoconf" >&5
1403 # Run test in a subshell; some versions of sh will print an error if
1404 # an executable is not found, even if stderr is redirected.
1405 # Redirect stdin to placate older versions of autoconf.  Sigh.
1406 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1407    AUTOCONF=autoconf
1408    echo "$ac_t""found" 1>&6
1409 else
1410    AUTOCONF="$missing_dir/missing autoconf"
1411    echo "$ac_t""missing" 1>&6
1412 fi
1413
1414 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1415 echo "configure:1416: checking for working automake" >&5
1416 # Run test in a subshell; some versions of sh will print an error if
1417 # an executable is not found, even if stderr is redirected.
1418 # Redirect stdin to placate older versions of autoconf.  Sigh.
1419 if (automake --version) < /dev/null > /dev/null 2>&1; then
1420    AUTOMAKE=automake
1421    echo "$ac_t""found" 1>&6
1422 else
1423    AUTOMAKE="$missing_dir/missing automake"
1424    echo "$ac_t""missing" 1>&6
1425 fi
1426
1427 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1428 echo "configure:1429: checking for working autoheader" >&5
1429 # Run test in a subshell; some versions of sh will print an error if
1430 # an executable is not found, even if stderr is redirected.
1431 # Redirect stdin to placate older versions of autoconf.  Sigh.
1432 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1433    AUTOHEADER=autoheader
1434    echo "$ac_t""found" 1>&6
1435 else
1436    AUTOHEADER="$missing_dir/missing autoheader"
1437    echo "$ac_t""missing" 1>&6
1438 fi
1439
1440 # AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
1441 # Extract the first word of "perl", so it can be a program name with args.
1442 set dummy perl; ac_word=$2
1443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1444 echo "configure:1445: checking for $ac_word" >&5
1445 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1446   echo $ac_n "(cached) $ac_c" 1>&6
1447 else
1448   case "$PERL" in
1449   /*)
1450   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1451   ;;
1452   *)
1453   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1454   for ac_dir in $PATH; do
1455     test -z "$ac_dir" && ac_dir=.
1456     if test -f $ac_dir/$ac_word; then
1457       ac_cv_path_PERL="$ac_dir/$ac_word"
1458       break
1459     fi
1460   done
1461   IFS="$ac_save_ifs"
1462   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
1463   ;;
1464 esac
1465 fi
1466 PERL="$ac_cv_path_PERL"
1467 if test -n "$PERL"; then
1468   echo "$ac_t""$PERL" 1>&6
1469 else
1470   echo "$ac_t""no" 1>&6
1471 fi
1472
1473
1474
1475 ac_ext=C
1476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1477 ac_cpp='$CXXCPP $CPPFLAGS'
1478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1479 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1480 cross_compiling=$ac_cv_prog_cxx_cross
1481
1482
1483 # optimise_b=yes
1484 # shared_b=no
1485 LIB_SUFFIX=.a
1486 MODULE_CXXFLAGS="$MODULE_CXXFLAGS -D_REENTRANT"
1487
1488 if test $optimise_b = yes; then
1489     MODULE_CXXFLAGS="$MODULE_CXXFLAGS -O2 -DSTRING_UTILS_INLINED"
1490 fi
1491
1492
1493
1494
1495
1496 # AC_SUBST(FULL_VERSION)
1497 # AC_SUBST(MAJOR_VERSION)
1498 # AC_SUBST(MINOR_VERSION)
1499 # AC_SUBST(PATCH_LEVEL)
1500 # AC_SUBST(MY_PATCH_LEVEL)
1501
1502 # libtool.info ...
1503 # **Never** try to set library version numbers so that they correspond
1504 # to the release number of your package.  This is an abuse that only
1505 # fosters misunderstanding of the purpose of library versions.
1506
1507 REVISION=$PATCH_LEVEL
1508 # CURRENT=$MINOR_VERSION
1509 CURRENT=$(expr $MINOR_VERSION + 1)
1510 # AGE=$(expr $MAJOR_VERSION + 1)
1511 AGE=$MAJOR_VERSION
1512
1513
1514
1515
1516
1517 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1518 echo "configure:1519: checking for 8-bit clean memcmp" >&5
1519 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1520   echo $ac_n "(cached) $ac_c" 1>&6
1521 else
1522   if test "$cross_compiling" = yes; then
1523   ac_cv_func_memcmp_clean=no
1524 else
1525   cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 #ifdef __cplusplus
1529 extern "C" void exit(int);
1530 #endif
1531
1532 main()
1533 {
1534   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1535   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1536 }
1537
1538 EOF
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1540 then
1541   ac_cv_func_memcmp_clean=yes
1542 else
1543   echo "configure: failed program was:" >&5
1544   cat conftest.$ac_ext >&5
1545   rm -fr conftest*
1546   ac_cv_func_memcmp_clean=no
1547 fi
1548 rm -fr conftest*
1549 fi
1550
1551 fi
1552
1553 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1554 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
1555
1556 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1557 echo "configure:1558: checking for vprintf" >&5
1558 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1559   echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561   cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 /* System header to define __stub macros and hopefully few prototypes,
1565     which can conflict with char vprintf(); below.  */
1566 #include <assert.h>
1567 /* Override any gcc2 internal prototype to avoid an error.  */
1568 #ifdef __cplusplus
1569 extern "C"
1570 #endif
1571 /* We use char because int might match the return type of a gcc2
1572     builtin and then its argument prototype would still apply.  */
1573 char vprintf();
1574
1575 int main() {
1576
1577 /* The GNU C library defines this for functions which it implements
1578     to always fail with ENOSYS.  Some functions are actually named
1579     something starting with __ and the normal name is an alias.  */
1580 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1581 choke me
1582 #else
1583 vprintf();
1584 #endif
1585
1586 ; return 0; }
1587 EOF
1588 if { (eval echo configure:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1589   rm -rf conftest*
1590   eval "ac_cv_func_vprintf=yes"
1591 else
1592   echo "configure: failed program was:" >&5
1593   cat conftest.$ac_ext >&5
1594   rm -rf conftest*
1595   eval "ac_cv_func_vprintf=no"
1596 fi
1597 rm -f conftest*
1598 fi
1599
1600 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1601   echo "$ac_t""yes" 1>&6
1602   cat >> confdefs.h <<\EOF
1603 #define HAVE_VPRINTF 1
1604 EOF
1605
1606 else
1607   echo "$ac_t""no" 1>&6
1608 fi
1609
1610 if test "$ac_cv_func_vprintf" != yes; then
1611 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1612 echo "configure:1613: checking for _doprnt" >&5
1613 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1614   echo $ac_n "(cached) $ac_c" 1>&6
1615 else
1616   cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 /* System header to define __stub macros and hopefully few prototypes,
1620     which can conflict with char _doprnt(); below.  */
1621 #include <assert.h>
1622 /* Override any gcc2 internal prototype to avoid an error.  */
1623 #ifdef __cplusplus
1624 extern "C"
1625 #endif
1626 /* We use char because int might match the return type of a gcc2
1627     builtin and then its argument prototype would still apply.  */
1628 char _doprnt();
1629
1630 int main() {
1631
1632 /* The GNU C library defines this for functions which it implements
1633     to always fail with ENOSYS.  Some functions are actually named
1634     something starting with __ and the normal name is an alias.  */
1635 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1636 choke me
1637 #else
1638 _doprnt();
1639 #endif
1640
1641 ; return 0; }
1642 EOF
1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1644   rm -rf conftest*
1645   eval "ac_cv_func__doprnt=yes"
1646 else
1647   echo "configure: failed program was:" >&5
1648   cat conftest.$ac_ext >&5
1649   rm -rf conftest*
1650   eval "ac_cv_func__doprnt=no"
1651 fi
1652 rm -f conftest*
1653 fi
1654
1655 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1656   echo "$ac_t""yes" 1>&6
1657   cat >> confdefs.h <<\EOF
1658 #define HAVE_DOPRNT 1
1659 EOF
1660
1661 else
1662   echo "$ac_t""no" 1>&6
1663 fi
1664
1665 fi
1666
1667 for ac_func in memmem snprintf 
1668 do
1669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_func" >&5
1671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1672   echo $ac_n "(cached) $ac_c" 1>&6
1673 else
1674   cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 /* System header to define __stub macros and hopefully few prototypes,
1678     which can conflict with char $ac_func(); below.  */
1679 #include <assert.h>
1680 /* Override any gcc2 internal prototype to avoid an error.  */
1681 #ifdef __cplusplus
1682 extern "C"
1683 #endif
1684 /* We use char because int might match the return type of a gcc2
1685     builtin and then its argument prototype would still apply.  */
1686 char $ac_func();
1687
1688 int main() {
1689
1690 /* The GNU C library defines this for functions which it implements
1691     to always fail with ENOSYS.  Some functions are actually named
1692     something starting with __ and the normal name is an alias.  */
1693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1694 choke me
1695 #else
1696 $ac_func();
1697 #endif
1698
1699 ; return 0; }
1700 EOF
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1702   rm -rf conftest*
1703   eval "ac_cv_func_$ac_func=yes"
1704 else
1705   echo "configure: failed program was:" >&5
1706   cat conftest.$ac_ext >&5
1707   rm -rf conftest*
1708   eval "ac_cv_func_$ac_func=no"
1709 fi
1710 rm -f conftest*
1711 fi
1712
1713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1714   echo "$ac_t""yes" 1>&6
1715     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1716   cat >> confdefs.h <<EOF
1717 #define $ac_tr_func 1
1718 EOF
1719  
1720 else
1721   echo "$ac_t""no" 1>&6
1722 fi
1723 done
1724
1725
1726 cat >> confdefs.h <<EOF
1727 #define MODULE_VERSION "${FULL_VERSION}"
1728 EOF
1729
1730
1731 touch stamp-h.in
1732
1733
1734
1735 trap '' 1 2 15
1736 cat > confcache <<\EOF
1737 # This file is a shell script that caches the results of configure
1738 # tests run on this system so they can be shared between configure
1739 # scripts and configure runs.  It is not useful on other systems.
1740 # If it contains results you don't want to keep, you may remove or edit it.
1741 #
1742 # By default, configure uses ./config.cache as the cache file,
1743 # creating it if it does not exist already.  You can give configure
1744 # the --cache-file=FILE option to use a different cache file; that is
1745 # what configure does when it calls configure scripts in
1746 # subdirectories, so they share the cache.
1747 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1748 # config.status only pays attention to the cache file if you give it the
1749 # --recheck option to rerun configure.
1750 #
1751 EOF
1752 # The following way of writing the cache mishandles newlines in values,
1753 # but we know of no workaround that is simple, portable, and efficient.
1754 # So, don't put newlines in cache variables' values.
1755 # Ultrix sh set writes to stderr and can't be redirected directly,
1756 # and sets the high bit in the cache file unless we assign to the vars.
1757 (set) 2>&1 |
1758   case `(ac_space=' '; set) 2>&1` in
1759   *ac_space=\ *)
1760     # `set' does not quote correctly, so add quotes (double-quote substitution
1761     # turns \\\\ into \\, and sed turns \\ into \).
1762     sed -n \
1763       -e "s/'/'\\\\''/g" \
1764       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1765     ;;
1766   *)
1767     # `set' quotes correctly as required by POSIX, so do not add quotes.
1768     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1769     ;;
1770   esac >> confcache
1771 if cmp -s $cache_file confcache; then
1772   :
1773 else
1774   if test -w $cache_file; then
1775     echo "updating cache $cache_file"
1776     cat confcache > $cache_file
1777   else
1778     echo "not updating unwritable cache $cache_file"
1779   fi
1780 fi
1781 rm -f confcache
1782
1783 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1784
1785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1786 # Let make expand exec_prefix.
1787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1788
1789 # Any assignment to VPATH causes Sun make to only execute
1790 # the first set of double-colon rules, so remove it if not needed.
1791 # If there is a colon in the path, we need to keep it.
1792 if test "x$srcdir" = x.; then
1793   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1794 fi
1795
1796 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1797
1798 DEFS=-DHAVE_CONFIG_H
1799
1800 # Without the "./", some shells look in PATH for config.status.
1801 : ${CONFIG_STATUS=./config.status}
1802
1803 echo creating $CONFIG_STATUS
1804 rm -f $CONFIG_STATUS
1805 cat > $CONFIG_STATUS <<EOF
1806 #! /bin/sh
1807 # Generated automatically by configure.
1808 # Run this file to recreate the current configuration.
1809 # This directory was configured as follows,
1810 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1811 #
1812 # $0 $ac_configure_args
1813 #
1814 # Compiler output produced by configure, useful for debugging
1815 # configure, is in ./config.log if it exists.
1816
1817 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1818 for ac_option
1819 do
1820   case "\$ac_option" in
1821   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1822     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1823     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1824   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1825     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1826     exit 0 ;;
1827   -help | --help | --hel | --he | --h)
1828     echo "\$ac_cs_usage"; exit 0 ;;
1829   *) echo "\$ac_cs_usage"; exit 1 ;;
1830   esac
1831 done
1832
1833 ac_given_srcdir=$srcdir
1834 ac_given_INSTALL="$INSTALL"
1835
1836 trap 'rm -fr `echo "Makefile include/Makefile test/Makefile config.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1837 EOF
1838 cat >> $CONFIG_STATUS <<EOF
1839
1840 # Protect against being on the right side of a sed subst in config.status.
1841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1842  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1843 $ac_vpsub
1844 $extrasub
1845 s%@CFLAGS@%$CFLAGS%g
1846 s%@CPPFLAGS@%$CPPFLAGS%g
1847 s%@CXXFLAGS@%$CXXFLAGS%g
1848 s%@DEFS@%$DEFS%g
1849 s%@LDFLAGS@%$LDFLAGS%g
1850 s%@LIBS@%$LIBS%g
1851 s%@exec_prefix@%$exec_prefix%g
1852 s%@prefix@%$prefix%g
1853 s%@program_transform_name@%$program_transform_name%g
1854 s%@bindir@%$bindir%g
1855 s%@sbindir@%$sbindir%g
1856 s%@libexecdir@%$libexecdir%g
1857 s%@datadir@%$datadir%g
1858 s%@sysconfdir@%$sysconfdir%g
1859 s%@sharedstatedir@%$sharedstatedir%g
1860 s%@localstatedir@%$localstatedir%g
1861 s%@libdir@%$libdir%g
1862 s%@includedir@%$includedir%g
1863 s%@oldincludedir@%$oldincludedir%g
1864 s%@infodir@%$infodir%g
1865 s%@mandir@%$mandir%g
1866 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1867 s%@INSTALL_DATA@%$INSTALL_DATA%g
1868 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1869 s%@PACKAGE@%$PACKAGE%g
1870 s%@VERSION@%$VERSION%g
1871 s%@ACLOCAL@%$ACLOCAL%g
1872 s%@AUTOCONF@%$AUTOCONF%g
1873 s%@AUTOMAKE@%$AUTOMAKE%g
1874 s%@AUTOHEADER@%$AUTOHEADER%g
1875 s%@MAKEINFO@%$MAKEINFO%g
1876 s%@SET_MAKE@%$SET_MAKE%g
1877 s%@CC@%$CC%g
1878 s%@CXX@%$CXX%g
1879 s%@host@%$host%g
1880 s%@host_alias@%$host_alias%g
1881 s%@host_cpu@%$host_cpu%g
1882 s%@host_vendor@%$host_vendor%g
1883 s%@host_os@%$host_os%g
1884 s%@RANLIB@%$RANLIB%g
1885 s%@LD@%$LD%g
1886 s%@NM@%$NM%g
1887 s%@LN_S@%$LN_S%g
1888 s%@LIBTOOL@%$LIBTOOL%g
1889 s%@PERL@%$PERL%g
1890 s%@MODULE_CXXFLAGS@%$MODULE_CXXFLAGS%g
1891 s%@MODULE_LDFLAGS@%$MODULE_LDFLAGS%g
1892 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
1893 s%@CURRENT@%$CURRENT%g
1894 s%@REVISION@%$REVISION%g
1895 s%@AGE@%$AGE%g
1896 s%@LIBOBJS@%$LIBOBJS%g
1897
1898 CEOF
1899 EOF
1900
1901 cat >> $CONFIG_STATUS <<\EOF
1902
1903 # Split the substitutions into bite-sized pieces for seds with
1904 # small command number limits, like on Digital OSF/1 and HP-UX.
1905 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1906 ac_file=1 # Number of current file.
1907 ac_beg=1 # First line for current file.
1908 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1909 ac_more_lines=:
1910 ac_sed_cmds=""
1911 while $ac_more_lines; do
1912   if test $ac_beg -gt 1; then
1913     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1914   else
1915     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1916   fi
1917   if test ! -s conftest.s$ac_file; then
1918     ac_more_lines=false
1919     rm -f conftest.s$ac_file
1920   else
1921     if test -z "$ac_sed_cmds"; then
1922       ac_sed_cmds="sed -f conftest.s$ac_file"
1923     else
1924       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1925     fi
1926     ac_file=`expr $ac_file + 1`
1927     ac_beg=$ac_end
1928     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1929   fi
1930 done
1931 if test -z "$ac_sed_cmds"; then
1932   ac_sed_cmds=cat
1933 fi
1934 EOF
1935
1936 cat >> $CONFIG_STATUS <<EOF
1937
1938 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile test/Makefile"}
1939 EOF
1940 cat >> $CONFIG_STATUS <<\EOF
1941 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1942   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1943   case "$ac_file" in
1944   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1945        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1946   *) ac_file_in="${ac_file}.in" ;;
1947   esac
1948
1949   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1950
1951   # Remove last slash and all that follows it.  Not all systems have dirname.
1952   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1953   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1954     # The file is in a subdirectory.
1955     test ! -d "$ac_dir" && mkdir "$ac_dir"
1956     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1957     # A "../" for each directory in $ac_dir_suffix.
1958     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1959   else
1960     ac_dir_suffix= ac_dots=
1961   fi
1962
1963   case "$ac_given_srcdir" in
1964   .)  srcdir=.
1965       if test -z "$ac_dots"; then top_srcdir=.
1966       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1967   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1968   *) # Relative path.
1969     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1970     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1971   esac
1972
1973   case "$ac_given_INSTALL" in
1974   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1975   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1976   esac
1977
1978   echo creating "$ac_file"
1979   rm -f "$ac_file"
1980   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1981   case "$ac_file" in
1982   *Makefile*) ac_comsub="1i\\
1983 # $configure_input" ;;
1984   *) ac_comsub= ;;
1985   esac
1986
1987   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1988   sed -e "$ac_comsub
1989 s%@configure_input@%$configure_input%g
1990 s%@srcdir@%$srcdir%g
1991 s%@top_srcdir@%$top_srcdir%g
1992 s%@INSTALL@%$INSTALL%g
1993 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1994 fi; done
1995 rm -f conftest.s*
1996
1997 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1998 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1999 #
2000 # ac_d sets the value in "#define NAME VALUE" lines.
2001 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2002 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2003 ac_dC='\3'
2004 ac_dD='%g'
2005 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2006 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2007 ac_uB='\([      ]\)%\1#\2define\3'
2008 ac_uC=' '
2009 ac_uD='\4%g'
2010 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2011 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2012 ac_eB='$%\1#\2define\3'
2013 ac_eC=' '
2014 ac_eD='%g'
2015
2016 if test "${CONFIG_HEADERS+set}" != set; then
2017 EOF
2018 cat >> $CONFIG_STATUS <<EOF
2019   CONFIG_HEADERS="config.hh:config.hh.in"
2020 EOF
2021 cat >> $CONFIG_STATUS <<\EOF
2022 fi
2023 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2024   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2025   case "$ac_file" in
2026   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2027        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2028   *) ac_file_in="${ac_file}.in" ;;
2029   esac
2030
2031   echo creating $ac_file
2032
2033   rm -f conftest.frag conftest.in conftest.out
2034   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2035   cat $ac_file_inputs > conftest.in
2036
2037 EOF
2038
2039 # Transform confdefs.h into a sed script conftest.vals that substitutes
2040 # the proper values into config.h.in to produce config.h.  And first:
2041 # Protect against being on the right side of a sed subst in config.status.
2042 # Protect against being in an unquoted here document in config.status.
2043 rm -f conftest.vals
2044 cat > conftest.hdr <<\EOF
2045 s/[\\&%]/\\&/g
2046 s%[\\$`]%\\&%g
2047 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2048 s%ac_d%ac_u%gp
2049 s%ac_u%ac_e%gp
2050 EOF
2051 sed -n -f conftest.hdr confdefs.h > conftest.vals
2052 rm -f conftest.hdr
2053
2054 # This sed command replaces #undef with comments.  This is necessary, for
2055 # example, in the case of _POSIX_SOURCE, which is predefined and required
2056 # on some systems where configure will not decide to define it.
2057 cat >> conftest.vals <<\EOF
2058 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2059 EOF
2060
2061 # Break up conftest.vals because some shells have a limit on
2062 # the size of here documents, and old seds have small limits too.
2063
2064 rm -f conftest.tail
2065 while :
2066 do
2067   ac_lines=`grep -c . conftest.vals`
2068   # grep -c gives empty output for an empty file on some AIX systems.
2069   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2070   # Write a limited-size here document to conftest.frag.
2071   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2072   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2073   echo 'CEOF
2074   sed -f conftest.frag conftest.in > conftest.out
2075   rm -f conftest.in
2076   mv conftest.out conftest.in
2077 ' >> $CONFIG_STATUS
2078   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2079   rm -f conftest.vals
2080   mv conftest.tail conftest.vals
2081 done
2082 rm -f conftest.vals
2083
2084 cat >> $CONFIG_STATUS <<\EOF
2085   rm -f conftest.frag conftest.h
2086   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2087   cat conftest.in >> conftest.h
2088   rm -f conftest.in
2089   if cmp -s $ac_file conftest.h 2>/dev/null; then
2090     echo "$ac_file is unchanged"
2091     rm -f conftest.h
2092   else
2093     # Remove last slash and all that follows it.  Not all systems have dirname.
2094       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2095       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2096       # The file is in a subdirectory.
2097       test ! -d "$ac_dir" && mkdir "$ac_dir"
2098     fi
2099     rm -f $ac_file
2100     mv conftest.h $ac_file
2101   fi
2102 fi; done
2103
2104 EOF
2105 cat >> $CONFIG_STATUS <<EOF
2106
2107
2108 EOF
2109 cat >> $CONFIG_STATUS <<\EOF
2110 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2111
2112 exit 0
2113 EOF
2114 chmod +x $CONFIG_STATUS
2115 rm -fr confdefs* $ac_clean_files
2116 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2117
2118