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