]> git.donarmstrong.com Git - lilypond.git/blob - flower/configure
release: 0.0.47
[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 ac_ext=C
526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CXXCPP $CPPFLAGS'
528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cxx_cross
531
532
533 optimise_b=yes
534 shared_b=yes
535 LIB_SUFFIX=.a
536
537 # Check whether --enable-shared or --disable-shared was given.
538 if test "${enable_shared+set}" = set; then
539   enableval="$enable_shared"
540   shared_b=$enableval
541 fi
542
543     
544 # Check whether --enable-optimise or --disable-optimise was given.
545 if test "${enable_optimise+set}" = set; then
546   enableval="$enable_optimise"
547   optimise_b=$enableval
548 fi
549
550
551 if test $shared_b = yes; then
552         MODULE_CXXFLAGS="$MODULE_CXXFLAGS -fPIC"
553         MODULE_LDFLAGS="-shared -Wl,-soname,libflower.so "
554         LIB_SUFFIX=.so
555 fi
556
557 if test $optimise_b = yes; then
558     MODULE_CXXFLAGS="$MODULE_CXXFLAGS -O2 -DSTRING_UTILS_INLINED"
559 fi
560
561
562
563
564
565 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
566 do
567 # Extract the first word of "$ac_prog", so it can be a program name with args.
568 set dummy $ac_prog; ac_word=$2
569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
570 echo "configure:571: checking for $ac_word" >&5
571 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
572   echo $ac_n "(cached) $ac_c" 1>&6
573 else
574   if test -n "$CXX"; then
575   ac_cv_prog_CXX="$CXX" # Let the user override the test.
576 else
577   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
578   for ac_dir in $PATH; do
579     test -z "$ac_dir" && ac_dir=.
580     if test -f $ac_dir/$ac_word; then
581       ac_cv_prog_CXX="$ac_prog"
582       break
583     fi
584   done
585   IFS="$ac_save_ifs"
586 fi
587 fi
588 CXX="$ac_cv_prog_CXX"
589 if test -n "$CXX"; then
590   echo "$ac_t""$CXX" 1>&6
591 else
592   echo "$ac_t""no" 1>&6
593 fi
594
595 test -n "$CXX" && break
596 done
597 test -n "$CXX" || CXX="gcc"
598
599
600 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
601 echo "configure:602: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
602
603 ac_ext=C
604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
605 ac_cpp='$CXXCPP $CPPFLAGS'
606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
607 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
608 cross_compiling=$ac_cv_prog_cxx_cross
609
610 cat > conftest.$ac_ext <<EOF
611 #line 612 "configure"
612 #include "confdefs.h"
613 main(){return(0);}
614 EOF
615 if { (eval echo configure:616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
616   ac_cv_prog_cxx_works=yes
617   # If we can't run a trivial program, we are probably using a cross compiler.
618   if (./conftest; exit) 2>/dev/null; then
619     ac_cv_prog_cxx_cross=no
620   else
621     ac_cv_prog_cxx_cross=yes
622   fi
623 else
624   echo "configure: failed program was:" >&5
625   cat conftest.$ac_ext >&5
626   ac_cv_prog_cxx_works=no
627 fi
628 rm -fr conftest*
629
630 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
631 if test $ac_cv_prog_cxx_works = no; then
632   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
633 fi
634 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
635 echo "configure:636: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
636 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
637 cross_compiling=$ac_cv_prog_cxx_cross
638
639 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
640 echo "configure:641: checking whether we are using GNU C++" >&5
641 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
642   echo $ac_n "(cached) $ac_c" 1>&6
643 else
644   cat > conftest.C <<EOF
645 #ifdef __GNUC__
646   yes;
647 #endif
648 EOF
649 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
650   ac_cv_prog_gxx=yes
651 else
652   ac_cv_prog_gxx=no
653 fi
654 fi
655
656 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
657
658 if test $ac_cv_prog_gxx = yes; then
659   GXX=yes
660   ac_test_CXXFLAGS="${CXXFLAGS+set}"
661   ac_save_CXXFLAGS="$CXXFLAGS"
662   CXXFLAGS=
663   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
664 echo "configure:665: checking whether ${CXX-g++} accepts -g" >&5
665 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
666   echo $ac_n "(cached) $ac_c" 1>&6
667 else
668   echo 'void f(){}' > conftest.cc
669 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
670   ac_cv_prog_cxx_g=yes
671 else
672   ac_cv_prog_cxx_g=no
673 fi
674 rm -f conftest*
675
676 fi
677
678 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
679   if test "$ac_test_CXXFLAGS" = set; then
680     CXXFLAGS="$ac_save_CXXFLAGS"
681   elif test $ac_cv_prog_cxx_g = yes; then
682     CXXFLAGS="-g -O2"
683   else
684     CXXFLAGS="-O2"
685   fi
686 else
687   GXX=
688   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
689 fi
690
691 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
692 echo "configure:693: checking for 8-bit clean memcmp" >&5
693 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
694   echo $ac_n "(cached) $ac_c" 1>&6
695 else
696   if test "$cross_compiling" = yes; then
697   ac_cv_func_memcmp_clean=no
698 else
699   cat > conftest.$ac_ext <<EOF
700 #line 701 "configure"
701 #include "confdefs.h"
702 #ifdef __cplusplus
703 extern "C" void exit(int);
704 #endif
705
706 main()
707 {
708   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
709   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
710 }
711
712 EOF
713 if { (eval echo configure:714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
714 then
715   ac_cv_func_memcmp_clean=yes
716 else
717   echo "configure: failed program was:" >&5
718   cat conftest.$ac_ext >&5
719   rm -fr conftest*
720   ac_cv_func_memcmp_clean=no
721 fi
722 rm -fr conftest*
723 fi
724
725 fi
726
727 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
728 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
729
730 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
731 echo "configure:732: checking for vprintf" >&5
732 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
733   echo $ac_n "(cached) $ac_c" 1>&6
734 else
735   cat > conftest.$ac_ext <<EOF
736 #line 737 "configure"
737 #include "confdefs.h"
738 /* System header to define __stub macros and hopefully few prototypes,
739     which can conflict with char vprintf(); below.  */
740 #include <assert.h>
741 /* Override any gcc2 internal prototype to avoid an error.  */
742 #ifdef __cplusplus
743 extern "C"
744 #endif
745 /* We use char because int might match the return type of a gcc2
746     builtin and then its argument prototype would still apply.  */
747 char vprintf();
748
749 int main() {
750
751 /* The GNU C library defines this for functions which it implements
752     to always fail with ENOSYS.  Some functions are actually named
753     something starting with __ and the normal name is an alias.  */
754 #if defined (__stub_vprintf) || defined (__stub___vprintf)
755 choke me
756 #else
757 vprintf();
758 #endif
759
760 ; return 0; }
761 EOF
762 if { (eval echo configure:763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
763   rm -rf conftest*
764   eval "ac_cv_func_vprintf=yes"
765 else
766   echo "configure: failed program was:" >&5
767   cat conftest.$ac_ext >&5
768   rm -rf conftest*
769   eval "ac_cv_func_vprintf=no"
770 fi
771 rm -f conftest*
772 fi
773
774 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
775   echo "$ac_t""yes" 1>&6
776   cat >> confdefs.h <<\EOF
777 #define HAVE_VPRINTF 1
778 EOF
779
780 else
781   echo "$ac_t""no" 1>&6
782 fi
783
784 if test "$ac_cv_func_vprintf" != yes; then
785 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
786 echo "configure:787: checking for _doprnt" >&5
787 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
788   echo $ac_n "(cached) $ac_c" 1>&6
789 else
790   cat > conftest.$ac_ext <<EOF
791 #line 792 "configure"
792 #include "confdefs.h"
793 /* System header to define __stub macros and hopefully few prototypes,
794     which can conflict with char _doprnt(); below.  */
795 #include <assert.h>
796 /* Override any gcc2 internal prototype to avoid an error.  */
797 #ifdef __cplusplus
798 extern "C"
799 #endif
800 /* We use char because int might match the return type of a gcc2
801     builtin and then its argument prototype would still apply.  */
802 char _doprnt();
803
804 int main() {
805
806 /* The GNU C library defines this for functions which it implements
807     to always fail with ENOSYS.  Some functions are actually named
808     something starting with __ and the normal name is an alias.  */
809 #if defined (__stub__doprnt) || defined (__stub____doprnt)
810 choke me
811 #else
812 _doprnt();
813 #endif
814
815 ; return 0; }
816 EOF
817 if { (eval echo configure:818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
818   rm -rf conftest*
819   eval "ac_cv_func__doprnt=yes"
820 else
821   echo "configure: failed program was:" >&5
822   cat conftest.$ac_ext >&5
823   rm -rf conftest*
824   eval "ac_cv_func__doprnt=no"
825 fi
826 rm -f conftest*
827 fi
828
829 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
830   echo "$ac_t""yes" 1>&6
831   cat >> confdefs.h <<\EOF
832 #define HAVE_DOPRNT 1
833 EOF
834
835 else
836   echo "$ac_t""no" 1>&6
837 fi
838
839 fi
840
841 for ac_func in memmem snprintf 
842 do
843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
844 echo "configure:845: checking for $ac_func" >&5
845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
846   echo $ac_n "(cached) $ac_c" 1>&6
847 else
848   cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
851 /* System header to define __stub macros and hopefully few prototypes,
852     which can conflict with char $ac_func(); below.  */
853 #include <assert.h>
854 /* Override any gcc2 internal prototype to avoid an error.  */
855 #ifdef __cplusplus
856 extern "C"
857 #endif
858 /* We use char because int might match the return type of a gcc2
859     builtin and then its argument prototype would still apply.  */
860 char $ac_func();
861
862 int main() {
863
864 /* The GNU C library defines this for functions which it implements
865     to always fail with ENOSYS.  Some functions are actually named
866     something starting with __ and the normal name is an alias.  */
867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
868 choke me
869 #else
870 $ac_func();
871 #endif
872
873 ; return 0; }
874 EOF
875 if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
876   rm -rf conftest*
877   eval "ac_cv_func_$ac_func=yes"
878 else
879   echo "configure: failed program was:" >&5
880   cat conftest.$ac_ext >&5
881   rm -rf conftest*
882   eval "ac_cv_func_$ac_func=no"
883 fi
884 rm -f conftest*
885 fi
886
887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
888   echo "$ac_t""yes" 1>&6
889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
890   cat >> confdefs.h <<EOF
891 #define $ac_tr_func 1
892 EOF
893  
894 else
895   echo "$ac_t""no" 1>&6
896 fi
897 done
898
899
900
901 CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
902
903 trap '' 1 2 15
904 cat > confcache <<\EOF
905 # This file is a shell script that caches the results of configure
906 # tests run on this system so they can be shared between configure
907 # scripts and configure runs.  It is not useful on other systems.
908 # If it contains results you don't want to keep, you may remove or edit it.
909 #
910 # By default, configure uses ./config.cache as the cache file,
911 # creating it if it does not exist already.  You can give configure
912 # the --cache-file=FILE option to use a different cache file; that is
913 # what configure does when it calls configure scripts in
914 # subdirectories, so they share the cache.
915 # Giving --cache-file=/dev/null disables caching, for debugging configure.
916 # config.status only pays attention to the cache file if you give it the
917 # --recheck option to rerun configure.
918 #
919 EOF
920 # The following way of writing the cache mishandles newlines in values,
921 # but we know of no workaround that is simple, portable, and efficient.
922 # So, don't put newlines in cache variables' values.
923 # Ultrix sh set writes to stderr and can't be redirected directly,
924 # and sets the high bit in the cache file unless we assign to the vars.
925 (set) 2>&1 |
926   case `(ac_space=' '; set) 2>&1` in
927   *ac_space=\ *)
928     # `set' does not quote correctly, so add quotes (double-quote substitution
929     # turns \\\\ into \\, and sed turns \\ into \).
930     sed -n \
931       -e "s/'/'\\\\''/g" \
932       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
933     ;;
934   *)
935     # `set' quotes correctly as required by POSIX, so do not add quotes.
936     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
937     ;;
938   esac >> confcache
939 if cmp -s $cache_file confcache; then
940   :
941 else
942   if test -w $cache_file; then
943     echo "updating cache $cache_file"
944     cat confcache > $cache_file
945   else
946     echo "not updating unwritable cache $cache_file"
947   fi
948 fi
949 rm -f confcache
950
951 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
952
953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
954 # Let make expand exec_prefix.
955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
956
957 # Any assignment to VPATH causes Sun make to only execute
958 # the first set of double-colon rules, so remove it if not needed.
959 # If there is a colon in the path, we need to keep it.
960 if test "x$srcdir" = x.; then
961   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
962 fi
963
964 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
965
966 DEFS=-DHAVE_CONFIG_H
967
968 # Without the "./", some shells look in PATH for config.status.
969 : ${CONFIG_STATUS=./config.status}
970
971 echo creating $CONFIG_STATUS
972 rm -f $CONFIG_STATUS
973 cat > $CONFIG_STATUS <<EOF
974 #! /bin/sh
975 # Generated automatically by configure.
976 # Run this file to recreate the current configuration.
977 # This directory was configured as follows,
978 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
979 #
980 # $0 $ac_configure_args
981 #
982 # Compiler output produced by configure, useful for debugging
983 # configure, is in ./config.log if it exists.
984
985 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
986 for ac_option
987 do
988   case "\$ac_option" in
989   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
990     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
991     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
992   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
993     echo "$CONFIG_STATUS generated by autoconf version 2.12"
994     exit 0 ;;
995   -help | --help | --hel | --he | --h)
996     echo "\$ac_cs_usage"; exit 0 ;;
997   *) echo "\$ac_cs_usage"; exit 1 ;;
998   esac
999 done
1000
1001 ac_given_srcdir=$srcdir
1002
1003 trap 'rm -fr `echo "out/Flower-flags.make:Flower-flags.make.in out/config.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1004 EOF
1005 cat >> $CONFIG_STATUS <<EOF
1006
1007 # Protect against being on the right side of a sed subst in config.status.
1008 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1009  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1010 $ac_vpsub
1011 $extrasub
1012 s%@CFLAGS@%$CFLAGS%g
1013 s%@CPPFLAGS@%$CPPFLAGS%g
1014 s%@CXXFLAGS@%$CXXFLAGS%g
1015 s%@DEFS@%$DEFS%g
1016 s%@LDFLAGS@%$LDFLAGS%g
1017 s%@LIBS@%$LIBS%g
1018 s%@exec_prefix@%$exec_prefix%g
1019 s%@prefix@%$prefix%g
1020 s%@program_transform_name@%$program_transform_name%g
1021 s%@bindir@%$bindir%g
1022 s%@sbindir@%$sbindir%g
1023 s%@libexecdir@%$libexecdir%g
1024 s%@datadir@%$datadir%g
1025 s%@sysconfdir@%$sysconfdir%g
1026 s%@sharedstatedir@%$sharedstatedir%g
1027 s%@localstatedir@%$localstatedir%g
1028 s%@libdir@%$libdir%g
1029 s%@includedir@%$includedir%g
1030 s%@oldincludedir@%$oldincludedir%g
1031 s%@infodir@%$infodir%g
1032 s%@mandir@%$mandir%g
1033 s%@MODULE_CXXFLAGS@%$MODULE_CXXFLAGS%g
1034 s%@MODULE_LDFLAGS@%$MODULE_LDFLAGS%g
1035 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
1036 s%@CXX@%$CXX%g
1037 s%@LIBOBJS@%$LIBOBJS%g
1038
1039 CEOF
1040 EOF
1041
1042 cat >> $CONFIG_STATUS <<\EOF
1043
1044 # Split the substitutions into bite-sized pieces for seds with
1045 # small command number limits, like on Digital OSF/1 and HP-UX.
1046 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1047 ac_file=1 # Number of current file.
1048 ac_beg=1 # First line for current file.
1049 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1050 ac_more_lines=:
1051 ac_sed_cmds=""
1052 while $ac_more_lines; do
1053   if test $ac_beg -gt 1; then
1054     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1055   else
1056     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1057   fi
1058   if test ! -s conftest.s$ac_file; then
1059     ac_more_lines=false
1060     rm -f conftest.s$ac_file
1061   else
1062     if test -z "$ac_sed_cmds"; then
1063       ac_sed_cmds="sed -f conftest.s$ac_file"
1064     else
1065       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1066     fi
1067     ac_file=`expr $ac_file + 1`
1068     ac_beg=$ac_end
1069     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1070   fi
1071 done
1072 if test -z "$ac_sed_cmds"; then
1073   ac_sed_cmds=cat
1074 fi
1075 EOF
1076
1077 cat >> $CONFIG_STATUS <<EOF
1078
1079 CONFIG_FILES=\${CONFIG_FILES-"out/Flower-flags.make:Flower-flags.make.in"}
1080 EOF
1081 cat >> $CONFIG_STATUS <<\EOF
1082 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1083   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1084   case "$ac_file" in
1085   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1086        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1087   *) ac_file_in="${ac_file}.in" ;;
1088   esac
1089
1090   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1091
1092   # Remove last slash and all that follows it.  Not all systems have dirname.
1093   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1094   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1095     # The file is in a subdirectory.
1096     test ! -d "$ac_dir" && mkdir "$ac_dir"
1097     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1098     # A "../" for each directory in $ac_dir_suffix.
1099     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1100   else
1101     ac_dir_suffix= ac_dots=
1102   fi
1103
1104   case "$ac_given_srcdir" in
1105   .)  srcdir=.
1106       if test -z "$ac_dots"; then top_srcdir=.
1107       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1108   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1109   *) # Relative path.
1110     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1111     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1112   esac
1113
1114
1115   echo creating "$ac_file"
1116   rm -f "$ac_file"
1117   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1118   case "$ac_file" in
1119   *Makefile*) ac_comsub="1i\\
1120 # $configure_input" ;;
1121   *) ac_comsub= ;;
1122   esac
1123
1124   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1125   sed -e "$ac_comsub
1126 s%@configure_input@%$configure_input%g
1127 s%@srcdir@%$srcdir%g
1128 s%@top_srcdir@%$top_srcdir%g
1129 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1130 fi; done
1131 rm -f conftest.s*
1132
1133 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1134 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1135 #
1136 # ac_d sets the value in "#define NAME VALUE" lines.
1137 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1138 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1139 ac_dC='\3'
1140 ac_dD='%g'
1141 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1142 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1143 ac_uB='\([      ]\)%\1#\2define\3'
1144 ac_uC=' '
1145 ac_uD='\4%g'
1146 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1147 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1148 ac_eB='$%\1#\2define\3'
1149 ac_eC=' '
1150 ac_eD='%g'
1151
1152 if test "${CONFIG_HEADERS+set}" != set; then
1153 EOF
1154 cat >> $CONFIG_STATUS <<EOF
1155   CONFIG_HEADERS="out/config.hh:config.hh.in"
1156 EOF
1157 cat >> $CONFIG_STATUS <<\EOF
1158 fi
1159 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1160   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1161   case "$ac_file" in
1162   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1163        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1164   *) ac_file_in="${ac_file}.in" ;;
1165   esac
1166
1167   echo creating $ac_file
1168
1169   rm -f conftest.frag conftest.in conftest.out
1170   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1171   cat $ac_file_inputs > conftest.in
1172
1173 EOF
1174
1175 # Transform confdefs.h into a sed script conftest.vals that substitutes
1176 # the proper values into config.h.in to produce config.h.  And first:
1177 # Protect against being on the right side of a sed subst in config.status.
1178 # Protect against being in an unquoted here document in config.status.
1179 rm -f conftest.vals
1180 cat > conftest.hdr <<\EOF
1181 s/[\\&%]/\\&/g
1182 s%[\\$`]%\\&%g
1183 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1184 s%ac_d%ac_u%gp
1185 s%ac_u%ac_e%gp
1186 EOF
1187 sed -n -f conftest.hdr confdefs.h > conftest.vals
1188 rm -f conftest.hdr
1189
1190 # This sed command replaces #undef with comments.  This is necessary, for
1191 # example, in the case of _POSIX_SOURCE, which is predefined and required
1192 # on some systems where configure will not decide to define it.
1193 cat >> conftest.vals <<\EOF
1194 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1195 EOF
1196
1197 # Break up conftest.vals because some shells have a limit on
1198 # the size of here documents, and old seds have small limits too.
1199
1200 rm -f conftest.tail
1201 while :
1202 do
1203   ac_lines=`grep -c . conftest.vals`
1204   # grep -c gives empty output for an empty file on some AIX systems.
1205   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1206   # Write a limited-size here document to conftest.frag.
1207   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1208   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1209   echo 'CEOF
1210   sed -f conftest.frag conftest.in > conftest.out
1211   rm -f conftest.in
1212   mv conftest.out conftest.in
1213 ' >> $CONFIG_STATUS
1214   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1215   rm -f conftest.vals
1216   mv conftest.tail conftest.vals
1217 done
1218 rm -f conftest.vals
1219
1220 cat >> $CONFIG_STATUS <<\EOF
1221   rm -f conftest.frag conftest.h
1222   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1223   cat conftest.in >> conftest.h
1224   rm -f conftest.in
1225   if cmp -s $ac_file conftest.h 2>/dev/null; then
1226     echo "$ac_file is unchanged"
1227     rm -f conftest.h
1228   else
1229     # Remove last slash and all that follows it.  Not all systems have dirname.
1230       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1231       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1232       # The file is in a subdirectory.
1233       test ! -d "$ac_dir" && mkdir "$ac_dir"
1234     fi
1235     rm -f $ac_file
1236     mv conftest.h $ac_file
1237   fi
1238 fi; done
1239
1240 EOF
1241 cat >> $CONFIG_STATUS <<EOF
1242
1243 EOF
1244 cat >> $CONFIG_STATUS <<\EOF
1245
1246 exit 0
1247 EOF
1248 chmod +x $CONFIG_STATUS
1249 rm -fr confdefs* $ac_clean_files
1250 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1251