]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.0.43
[lilypond.git] / 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-printing        set debug printing"
16 ac_help="$ac_help
17   disable-checking       set runtime checks"
18 ac_help="$ac_help
19   disable-debug          set debug info"
20 ac_help="$ac_help
21   enable-optimise       use maximal speed optimisations"
22 ac_help="$ac_help
23   enable-profiling      compile with gprof support"
24 ac_help="$ac_help
25   texprefix=DIR  set the tex-directory to put the lilypond subdir in."
26
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 # Maximum number of lines to put in a shell here document.
65 ac_max_here_lines=12
66
67 ac_prev=
68 for ac_option
69 do
70
71   # If the previous option needs an argument, assign it.
72   if test -n "$ac_prev"; then
73     eval "$ac_prev=\$ac_option"
74     ac_prev=
75     continue
76   fi
77
78   case "$ac_option" in
79   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80   *) ac_optarg= ;;
81   esac
82
83   # Accept the important Cygnus configure options, so we can diagnose typos.
84
85   case "$ac_option" in
86
87   -bindir | --bindir | --bindi | --bind | --bin | --bi)
88     ac_prev=bindir ;;
89   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
90     bindir="$ac_optarg" ;;
91
92   -build | --build | --buil | --bui | --bu)
93     ac_prev=build ;;
94   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95     build="$ac_optarg" ;;
96
97   -cache-file | --cache-file | --cache-fil | --cache-fi \
98   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99     ac_prev=cache_file ;;
100   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
101   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
102     cache_file="$ac_optarg" ;;
103
104   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105     ac_prev=datadir ;;
106   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107   | --da=*)
108     datadir="$ac_optarg" ;;
109
110   -disable-* | --disable-*)
111     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
112     # Reject names that are not valid shell variable names.
113     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
114       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     eval "enable_${ac_feature}=no" ;;
118
119   -enable-* | --enable-*)
120     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
121     # Reject names that are not valid shell variable names.
122     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
123       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124     fi
125     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126     case "$ac_option" in
127       *=*) ;;
128       *) ac_optarg=yes ;;
129     esac
130     eval "enable_${ac_feature}='$ac_optarg'" ;;
131
132   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
133   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
134   | --exec | --exe | --ex)
135     ac_prev=exec_prefix ;;
136   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
137   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
138   | --exec=* | --exe=* | --ex=*)
139     exec_prefix="$ac_optarg" ;;
140
141   -gas | --gas | --ga | --g)
142     # Obsolete; use --with-gas.
143     with_gas=yes ;;
144
145   -help | --help | --hel | --he)
146     # Omit some internal or obsolete options to make the list less imposing.
147     # This message is too long to be a string in the A/UX 3.1 sh.
148     cat << EOF
149 Usage: configure [options] [host]
150 Options: [defaults in brackets after descriptions]
151 Configuration:
152   --cache-file=FILE       cache test results in FILE
153   --help                  print this message
154   --no-create             do not create output files
155   --quiet, --silent       do not print \`checking...' messages
156   --version               print the version of autoconf that created configure
157 Directory and file names:
158   --prefix=PREFIX         install architecture-independent files in PREFIX
159                           [$ac_default_prefix]
160   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
161                           [same as prefix]
162   --bindir=DIR            user executables in DIR [EPREFIX/bin]
163   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
164   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
165   --datadir=DIR           read-only architecture-independent data in DIR
166                           [PREFIX/share]
167   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
168   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
169                           [PREFIX/com]
170   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
171   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
172   --includedir=DIR        C header files in DIR [PREFIX/include]
173   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
174   --infodir=DIR           info documentation in DIR [PREFIX/info]
175   --mandir=DIR            man documentation in DIR [PREFIX/man]
176   --srcdir=DIR            find the sources in DIR [configure dir or ..]
177   --program-prefix=PREFIX prepend PREFIX to installed program names
178   --program-suffix=SUFFIX append SUFFIX to installed program names
179   --program-transform-name=PROGRAM
180                           run sed PROGRAM on installed program names
181 EOF
182     cat << EOF
183 Host type:
184   --build=BUILD           configure for building on BUILD [BUILD=HOST]
185   --host=HOST             configure for HOST [guessed]
186   --target=TARGET         configure for TARGET [TARGET=HOST]
187 Features and packages:
188   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
189   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
190   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
191   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
192   --x-includes=DIR        X include files are in DIR
193   --x-libraries=DIR       X library files are in DIR
194 EOF
195     if test -n "$ac_help"; then
196       echo "--enable and --with options recognized:$ac_help"
197     fi
198     exit 0 ;;
199
200   -host | --host | --hos | --ho)
201     ac_prev=host ;;
202   -host=* | --host=* | --hos=* | --ho=*)
203     host="$ac_optarg" ;;
204
205   -includedir | --includedir | --includedi | --included | --include \
206   | --includ | --inclu | --incl | --inc)
207     ac_prev=includedir ;;
208   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
209   | --includ=* | --inclu=* | --incl=* | --inc=*)
210     includedir="$ac_optarg" ;;
211
212   -infodir | --infodir | --infodi | --infod | --info | --inf)
213     ac_prev=infodir ;;
214   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
215     infodir="$ac_optarg" ;;
216
217   -libdir | --libdir | --libdi | --libd)
218     ac_prev=libdir ;;
219   -libdir=* | --libdir=* | --libdi=* | --libd=*)
220     libdir="$ac_optarg" ;;
221
222   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
223   | --libexe | --libex | --libe)
224     ac_prev=libexecdir ;;
225   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
226   | --libexe=* | --libex=* | --libe=*)
227     libexecdir="$ac_optarg" ;;
228
229   -localstatedir | --localstatedir | --localstatedi | --localstated \
230   | --localstate | --localstat | --localsta | --localst \
231   | --locals | --local | --loca | --loc | --lo)
232     ac_prev=localstatedir ;;
233   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
234   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
235   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
236     localstatedir="$ac_optarg" ;;
237
238   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239     ac_prev=mandir ;;
240   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
241     mandir="$ac_optarg" ;;
242
243   -nfp | --nfp | --nf)
244     # Obsolete; use --without-fp.
245     with_fp=no ;;
246
247   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
248   | --no-cr | --no-c)
249     no_create=yes ;;
250
251   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
252   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253     no_recursion=yes ;;
254
255   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
256   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
257   | --oldin | --oldi | --old | --ol | --o)
258     ac_prev=oldincludedir ;;
259   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
260   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
261   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
262     oldincludedir="$ac_optarg" ;;
263
264   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265     ac_prev=prefix ;;
266   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
267     prefix="$ac_optarg" ;;
268
269   -program-prefix | --program-prefix | --program-prefi | --program-pref \
270   | --program-pre | --program-pr | --program-p)
271     ac_prev=program_prefix ;;
272   -program-prefix=* | --program-prefix=* | --program-prefi=* \
273   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
274     program_prefix="$ac_optarg" ;;
275
276   -program-suffix | --program-suffix | --program-suffi | --program-suff \
277   | --program-suf | --program-su | --program-s)
278     ac_prev=program_suffix ;;
279   -program-suffix=* | --program-suffix=* | --program-suffi=* \
280   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
281     program_suffix="$ac_optarg" ;;
282
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     ac_prev=program_transform_name ;;
291   -program-transform-name=* | --program-transform-name=* \
292   | --program-transform-nam=* | --program-transform-na=* \
293   | --program-transform-n=* | --program-transform-=* \
294   | --program-transform=* | --program-transfor=* \
295   | --program-transfo=* | --program-transf=* \
296   | --program-trans=* | --program-tran=* \
297   | --progr-tra=* | --program-tr=* | --program-t=*)
298     program_transform_name="$ac_optarg" ;;
299
300   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
301   | -silent | --silent | --silen | --sile | --sil)
302     silent=yes ;;
303
304   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305     ac_prev=sbindir ;;
306   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307   | --sbi=* | --sb=*)
308     sbindir="$ac_optarg" ;;
309
310   -sharedstatedir | --sharedstatedir | --sharedstatedi \
311   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312   | --sharedst | --shareds | --shared | --share | --shar \
313   | --sha | --sh)
314     ac_prev=sharedstatedir ;;
315   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
316   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
317   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318   | --sha=* | --sh=*)
319     sharedstatedir="$ac_optarg" ;;
320
321   -site | --site | --sit)
322     ac_prev=site ;;
323   -site=* | --site=* | --sit=*)
324     site="$ac_optarg" ;;
325
326   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327     ac_prev=srcdir ;;
328   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
329     srcdir="$ac_optarg" ;;
330
331   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
332   | --syscon | --sysco | --sysc | --sys | --sy)
333     ac_prev=sysconfdir ;;
334   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
335   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
336     sysconfdir="$ac_optarg" ;;
337
338   -target | --target | --targe | --targ | --tar | --ta | --t)
339     ac_prev=target ;;
340   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
341     target="$ac_optarg" ;;
342
343   -v | -verbose | --verbose | --verbos | --verbo | --verb)
344     verbose=yes ;;
345
346   -version | --version | --versio | --versi | --vers)
347     echo "configure generated by autoconf version 2.12"
348     exit 0 ;;
349
350   -with-* | --with-*)
351     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
352     # Reject names that are not valid shell variable names.
353     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
354       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355     fi
356     ac_package=`echo $ac_package| sed 's/-/_/g'`
357     case "$ac_option" in
358       *=*) ;;
359       *) ac_optarg=yes ;;
360     esac
361     eval "with_${ac_package}='$ac_optarg'" ;;
362
363   -without-* | --without-*)
364     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
365     # Reject names that are not valid shell variable names.
366     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
367       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368     fi
369     ac_package=`echo $ac_package| sed 's/-/_/g'`
370     eval "with_${ac_package}=no" ;;
371
372   --x)
373     # Obsolete; use --with-x.
374     with_x=yes ;;
375
376   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
377   | --x-incl | --x-inc | --x-in | --x-i)
378     ac_prev=x_includes ;;
379   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
380   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
381     x_includes="$ac_optarg" ;;
382
383   -x-libraries | --x-libraries | --x-librarie | --x-librari \
384   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
385     ac_prev=x_libraries ;;
386   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
387   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
388     x_libraries="$ac_optarg" ;;
389
390   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391     ;;
392
393   *)
394     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
395       echo "configure: warning: $ac_option: invalid host type" 1>&2
396     fi
397     if test "x$nonopt" != xNONE; then
398       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399     fi
400     nonopt="$ac_option"
401     ;;
402
403   esac
404 done
405
406 if test -n "$ac_prev"; then
407   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 fi
409
410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411
412 # File descriptor usage:
413 # 0 standard input
414 # 1 file creation
415 # 2 errors and warnings
416 # 3 some systems may open it to /dev/tty
417 # 4 used on the Kubota Titan
418 # 6 checking for... messages and results
419 # 5 compiler messages saved in config.log
420 if test "$silent" = yes; then
421   exec 6>/dev/null
422 else
423   exec 6>&1
424 fi
425 exec 5>./config.log
426
427 echo "\
428 This file contains any messages produced by compilers while
429 running configure, to aid debugging if configure makes a mistake.
430 " 1>&5
431
432 # Strip out --no-create and --no-recursion so they do not pile up.
433 # Also quote any args containing shell metacharacters.
434 ac_configure_args=
435 for ac_arg
436 do
437   case "$ac_arg" in
438   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
439   | --no-cr | --no-c) ;;
440   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
441   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
442   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
443   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
444   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
445   esac
446 done
447
448 # NLS nuisances.
449 # Only set these to C if already set.  These must not be set unconditionally
450 # because not all systems understand e.g. LANG=C (notably SCO).
451 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
452 # Non-C LC_CTYPE values break the ctype check.
453 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
454 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
455 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
456 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
457
458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
459 rm -rf conftest* confdefs.h
460 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 echo > confdefs.h
462
463 # A filename unique to this package, relative to the directory that
464 # configure is in, which we can look for to find out if srcdir is correct.
465 ac_unique_file=flower/choleski.cc
466
467 # Find the source files, if location was not specified.
468 if test -z "$srcdir"; then
469   ac_srcdir_defaulted=yes
470   # Try the directory containing this script, then its parent.
471   ac_prog=$0
472   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474   srcdir=$ac_confdir
475   if test ! -r $srcdir/$ac_unique_file; then
476     srcdir=..
477   fi
478 else
479   ac_srcdir_defaulted=no
480 fi
481 if test ! -r $srcdir/$ac_unique_file; then
482   if test "$ac_srcdir_defaulted" = yes; then
483     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484   else
485     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486   fi
487 fi
488 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489
490 # Prefer explicitly selected file to automatically selected ones.
491 if test -z "$CONFIG_SITE"; then
492   if test "x$prefix" != xNONE; then
493     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494   else
495     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496   fi
497 fi
498 for ac_site_file in $CONFIG_SITE; do
499   if test -r "$ac_site_file"; then
500     echo "loading site script $ac_site_file"
501     . "$ac_site_file"
502   fi
503 done
504
505 if test -r "$cache_file"; then
506   echo "loading cache $cache_file"
507   . $cache_file
508 else
509   echo "creating cache $cache_file"
510   > $cache_file
511 fi
512
513 ac_ext=c
514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515 ac_cpp='$CPP $CPPFLAGS'
516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518 cross_compiling=$ac_cv_prog_cc_cross
519
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523     ac_n= ac_c='
524 ' ac_t='        '
525   else
526     ac_n=-n ac_c= ac_t=
527   fi
528 else
529   ac_n= ac_c='\c' ac_t=
530 fi
531
532
533
534
535 ac_ext=C
536 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
537 ac_cpp='$CXXCPP $CPPFLAGS'
538 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
539 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
540 cross_compiling=$ac_cv_prog_cxx_cross
541
542
543 # Check whether --enable-printing or --disable-printing was given.
544 if test "${enable_printing+set}" = set; then
545   enableval="$enable_printing"
546   :
547 else
548   DEFINES="$DEFINES -DNPRINT=1"
549 fi
550
551 # Check whether --enable-checking or --disable-checking was given.
552 if test "${enable_checking+set}" = set; then
553   enableval="$enable_checking"
554   DEFINES="$DEFINES -DNDEBUG=1"
555 fi
556
557 # Check whether --enable-debug or --disable-debug was given.
558 if test "${enable_debug+set}" = set; then
559   enableval="$enable_debug"
560   :
561 else
562   DEFINES="$DEFINES -g"
563 fi
564
565 # Check whether --enable-optimise or --disable-optimise was given.
566 if test "${enable_optimise+set}" = set; then
567   enableval="$enable_optimise"
568   DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
569 fi
570
571 # Check whether --enable-profiling or --disable-profiling was given.
572 if test "${enable_profiling+set}" = set; then
573   enableval="$enable_profiling"
574   DEFINES="$DEFINES -pg"
575 fi
576
577 # Check whether --enable-texprefix or --disable-texprefix was given.
578 if test "${enable_texprefix+set}" = set; then
579   enableval="$enable_texprefix"
580   TEXPREFIX=$enableval
581 else
582   TEXPREFIX=auto 
583 fi
584
585
586 AUTOHEADER="This file was automatically generated by configure"
587 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
588 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
589 do
590 # Extract the first word of "$ac_prog", so it can be a program name with args.
591 set dummy $ac_prog; ac_word=$2
592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
593 echo "configure:594: checking for $ac_word" >&5
594 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
595   echo $ac_n "(cached) $ac_c" 1>&6
596 else
597   if test -n "$CXX"; then
598   ac_cv_prog_CXX="$CXX" # Let the user override the test.
599 else
600   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
601   for ac_dir in $PATH; do
602     test -z "$ac_dir" && ac_dir=.
603     if test -f $ac_dir/$ac_word; then
604       ac_cv_prog_CXX="$ac_prog"
605       break
606     fi
607   done
608   IFS="$ac_save_ifs"
609 fi
610 fi
611 CXX="$ac_cv_prog_CXX"
612 if test -n "$CXX"; then
613   echo "$ac_t""$CXX" 1>&6
614 else
615   echo "$ac_t""no" 1>&6
616 fi
617
618 test -n "$CXX" && break
619 done
620 test -n "$CXX" || CXX="gcc"
621
622
623 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
624 echo "configure:625: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
625
626 ac_ext=C
627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
628 ac_cpp='$CXXCPP $CPPFLAGS'
629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
630 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
631 cross_compiling=$ac_cv_prog_cxx_cross
632
633 cat > conftest.$ac_ext <<EOF
634 #line 635 "configure"
635 #include "confdefs.h"
636 main(){return(0);}
637 EOF
638 if { (eval echo configure:639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
639   ac_cv_prog_cxx_works=yes
640   # If we can't run a trivial program, we are probably using a cross compiler.
641   if (./conftest; exit) 2>/dev/null; then
642     ac_cv_prog_cxx_cross=no
643   else
644     ac_cv_prog_cxx_cross=yes
645   fi
646 else
647   echo "configure: failed program was:" >&5
648   cat conftest.$ac_ext >&5
649   ac_cv_prog_cxx_works=no
650 fi
651 rm -fr conftest*
652
653 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
654 if test $ac_cv_prog_cxx_works = no; then
655   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
656 fi
657 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
658 echo "configure:659: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
659 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
660 cross_compiling=$ac_cv_prog_cxx_cross
661
662 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
663 echo "configure:664: checking whether we are using GNU C++" >&5
664 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
665   echo $ac_n "(cached) $ac_c" 1>&6
666 else
667   cat > conftest.C <<EOF
668 #ifdef __GNUC__
669   yes;
670 #endif
671 EOF
672 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
673   ac_cv_prog_gxx=yes
674 else
675   ac_cv_prog_gxx=no
676 fi
677 fi
678
679 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
680
681 if test $ac_cv_prog_gxx = yes; then
682   GXX=yes
683   ac_test_CXXFLAGS="${CXXFLAGS+set}"
684   ac_save_CXXFLAGS="$CXXFLAGS"
685   CXXFLAGS=
686   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
687 echo "configure:688: checking whether ${CXX-g++} accepts -g" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
689   echo $ac_n "(cached) $ac_c" 1>&6
690 else
691   echo 'void f(){}' > conftest.cc
692 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
693   ac_cv_prog_cxx_g=yes
694 else
695   ac_cv_prog_cxx_g=no
696 fi
697 rm -f conftest*
698
699 fi
700
701 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
702   if test "$ac_test_CXXFLAGS" = set; then
703     CXXFLAGS="$ac_save_CXXFLAGS"
704   elif test $ac_cv_prog_cxx_g = yes; then
705     CXXFLAGS="-g -O2"
706   else
707     CXXFLAGS="-O2"
708   fi
709 else
710   GXX=
711   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
712 fi
713
714 # Extract the first word of "ranlib", so it can be a program name with args.
715 set dummy ranlib; ac_word=$2
716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
717 echo "configure:718: checking for $ac_word" >&5
718 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
719   echo $ac_n "(cached) $ac_c" 1>&6
720 else
721   if test -n "$RANLIB"; then
722   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
723 else
724   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
725   for ac_dir in $PATH; do
726     test -z "$ac_dir" && ac_dir=.
727     if test -f $ac_dir/$ac_word; then
728       ac_cv_prog_RANLIB="ranlib"
729       break
730     fi
731   done
732   IFS="$ac_save_ifs"
733   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
734 fi
735 fi
736 RANLIB="$ac_cv_prog_RANLIB"
737 if test -n "$RANLIB"; then
738   echo "$ac_t""$RANLIB" 1>&6
739 else
740   echo "$ac_t""no" 1>&6
741 fi
742
743 ac_aux_dir=
744 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
745   if test -f $ac_dir/install-sh; then
746     ac_aux_dir=$ac_dir
747     ac_install_sh="$ac_aux_dir/install-sh -c"
748     break
749   elif test -f $ac_dir/install.sh; then
750     ac_aux_dir=$ac_dir
751     ac_install_sh="$ac_aux_dir/install.sh -c"
752     break
753   fi
754 done
755 if test -z "$ac_aux_dir"; then
756   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
757 fi
758 ac_config_guess=$ac_aux_dir/config.guess
759 ac_config_sub=$ac_aux_dir/config.sub
760 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
761
762 # Find a good install program.  We prefer a C program (faster),
763 # so one script is as good as another.  But avoid the broken or
764 # incompatible versions:
765 # SysV /etc/install, /usr/sbin/install
766 # SunOS /usr/etc/install
767 # IRIX /sbin/install
768 # AIX /bin/install
769 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
770 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
771 # ./install, which can be erroneously created by make from ./install.sh.
772 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
773 echo "configure:774: checking for a BSD compatible install" >&5
774 if test -z "$INSTALL"; then
775 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
776   echo $ac_n "(cached) $ac_c" 1>&6
777 else
778     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
779   for ac_dir in $PATH; do
780     # Account for people who put trailing slashes in PATH elements.
781     case "$ac_dir/" in
782     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
783     *)
784       # OSF1 and SCO ODT 3.0 have their own names for install.
785       for ac_prog in ginstall installbsd scoinst install; do
786         if test -f $ac_dir/$ac_prog; then
787           if test $ac_prog = install &&
788             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
789             # AIX install.  It has an incompatible calling convention.
790             # OSF/1 installbsd also uses dspmsg, but is usable.
791             :
792           else
793             ac_cv_path_install="$ac_dir/$ac_prog -c"
794             break 2
795           fi
796         fi
797       done
798       ;;
799     esac
800   done
801   IFS="$ac_save_IFS"
802
803 fi
804   if test "${ac_cv_path_install+set}" = set; then
805     INSTALL="$ac_cv_path_install"
806   else
807     # As a last resort, use the slow shell script.  We don't cache a
808     # path for INSTALL within a source directory, because that will
809     # break other packages using the cache if that directory is
810     # removed, or if the path is relative.
811     INSTALL="$ac_install_sh"
812   fi
813 fi
814 echo "$ac_t""$INSTALL" 1>&6
815
816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
817 # It thinks the first close brace ends the variable substitution.
818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
819
820 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
821
822 for ac_prog in find
823 do
824 # Extract the first word of "$ac_prog", so it can be a program name with args.
825 set dummy $ac_prog; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
829   echo $ac_n "(cached) $ac_c" 1>&6
830 else
831   if test -n "$FIND"; then
832   ac_cv_prog_FIND="$FIND" # Let the user override the test.
833 else
834   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
835   for ac_dir in $PATH; do
836     test -z "$ac_dir" && ac_dir=.
837     if test -f $ac_dir/$ac_word; then
838       ac_cv_prog_FIND="$ac_prog"
839       break
840     fi
841   done
842   IFS="$ac_save_ifs"
843 fi
844 fi
845 FIND="$ac_cv_prog_FIND"
846 if test -n "$FIND"; then
847   echo "$ac_t""$FIND" 1>&6
848 else
849   echo "$ac_t""no" 1>&6
850 fi
851
852 test -n "$FIND" && break
853 done
854 test -n "$FIND" || FIND="error"
855
856
857 if test FIND = error; then
858    echo "configure: warning: Couldn't find \`find'.  Please use --enable-texprefix" 1>&2
859 else 
860     
861
862
863
864
865
866
867
868
869 for ac_prog in bison
870 do
871 # Extract the first word of "$ac_prog", so it can be a program name with args.
872 set dummy $ac_prog; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
876   echo $ac_n "(cached) $ac_c" 1>&6
877 else
878   if test -n "$BISON"; then
879   ac_cv_prog_BISON="$BISON" # Let the user override the test.
880 else
881   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
882   for ac_dir in $PATH; do
883     test -z "$ac_dir" && ac_dir=.
884     if test -f $ac_dir/$ac_word; then
885       ac_cv_prog_BISON="$ac_prog"
886       break
887     fi
888   done
889   IFS="$ac_save_ifs"
890 fi
891 fi
892 BISON="$ac_cv_prog_BISON"
893 if test -n "$BISON"; then
894   echo "$ac_t""$BISON" 1>&6
895 else
896   echo "$ac_t""no" 1>&6
897 fi
898
899 test -n "$BISON" && break
900 done
901 test -n "$BISON" || BISON="error"
902
903 for ac_prog in flex
904 do
905 # Extract the first word of "$ac_prog", so it can be a program name with args.
906 set dummy $ac_prog; ac_word=$2
907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
908 echo "configure:909: checking for $ac_word" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
910   echo $ac_n "(cached) $ac_c" 1>&6
911 else
912   if test -n "$FLEX"; then
913   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
914 else
915   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
916   for ac_dir in $PATH; do
917     test -z "$ac_dir" && ac_dir=.
918     if test -f $ac_dir/$ac_word; then
919       ac_cv_prog_FLEX="$ac_prog"
920       break
921     fi
922   done
923   IFS="$ac_save_ifs"
924 fi
925 fi
926 FLEX="$ac_cv_prog_FLEX"
927 if test -n "$FLEX"; then
928   echo "$ac_t""$FLEX" 1>&6
929 else
930   echo "$ac_t""no" 1>&6
931 fi
932
933 test -n "$FLEX" && break
934 done
935 test -n "$FLEX" || FLEX="error"
936
937 for ac_prog in make
938 do
939 # Extract the first word of "$ac_prog", so it can be a program name with args.
940 set dummy $ac_prog; ac_word=$2
941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
942 echo "configure:943: checking for $ac_word" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
944   echo $ac_n "(cached) $ac_c" 1>&6
945 else
946   if test -n "$MAKE"; then
947   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
948 else
949   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
950   for ac_dir in $PATH; do
951     test -z "$ac_dir" && ac_dir=.
952     if test -f $ac_dir/$ac_word; then
953       ac_cv_prog_MAKE="$ac_prog"
954       break
955     fi
956   done
957   IFS="$ac_save_ifs"
958 fi
959 fi
960 MAKE="$ac_cv_prog_MAKE"
961 if test -n "$MAKE"; then
962   echo "$ac_t""$MAKE" 1>&6
963 else
964   echo "$ac_t""no" 1>&6
965 fi
966
967 test -n "$MAKE" && break
968 done
969 test -n "$MAKE" || MAKE="error"
970
971 for ac_prog in pod2man
972 do
973 # Extract the first word of "$ac_prog", so it can be a program name with args.
974 set dummy $ac_prog; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
978   echo $ac_n "(cached) $ac_c" 1>&6
979 else
980   if test -n "$PODMAN"; then
981   ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
982 else
983   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
984   for ac_dir in $PATH; do
985     test -z "$ac_dir" && ac_dir=.
986     if test -f $ac_dir/$ac_word; then
987       ac_cv_prog_PODMAN="$ac_prog"
988       break
989     fi
990   done
991   IFS="$ac_save_ifs"
992 fi
993 fi
994 PODMAN="$ac_cv_prog_PODMAN"
995 if test -n "$PODMAN"; then
996   echo "$ac_t""$PODMAN" 1>&6
997 else
998   echo "$ac_t""no" 1>&6
999 fi
1000
1001 test -n "$PODMAN" && break
1002 done
1003 test -n "$PODMAN" || PODMAN="error"
1004
1005
1006 if test $TEXPREFIX = auto ; then
1007     
1008
1009     # do something sensible if root hasn't specced dir yet attempts install
1010
1011     echo $ac_n "checking TeX installation directory""... $ac_c" 1>&6
1012 echo "configure:1013: checking TeX installation directory" >&5
1013
1014     ac_tmp_prefix=$prefix
1015     test "x$ac_tmp_prefix" = xNONE && ac_tmp_prefix=$ac_default_prefix
1016
1017     for texdir in $ac_tmp_prefix $ac_tmp_prefix/lib; do
1018         if test -d $texdir/texmf; then
1019             TEXTOP=$texdir/texmf
1020             break
1021         else    
1022         if test -d $texdir/tex; then 
1023             TEXTOP=$texdir/tex
1024             break
1025         fi
1026         fi
1027     done
1028     TEXPREFIX=$ac_tmp_prefix/lib/texmf/tex
1029     if test x = "x$TEXTOP"; then
1030         echo "configure: warning: Cannot determine a tex-directory. Please use --enable-texprefix" 1>&2
1031     else
1032         TEXPREFIX=`$FIND $TEXTOP -type d -a -name tex -print |sort|head -1`
1033     fi
1034     fi
1035
1036     echo "$ac_t""$TEXPREFIX" 1>&6
1037
1038 fi
1039
1040 if test $MAKE = "error" 
1041 then
1042         { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
1043 else
1044         $MAKE -v| grep -q GNU
1045         if test "$?" = 1
1046         then
1047                 echo "configure: warning: Please install *GNU* make" 1>&2
1048         fi
1049 fi
1050
1051
1052 if test $BISON = "error" 
1053 then
1054         echo "configure: warning: can't find bison. Please install Bison (1.24 or better)" 1>&2
1055 fi
1056
1057 if test $PODMAN = "error" 
1058 then
1059         echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
1060 fi
1061
1062 if test $FLEX = "error" 
1063 then
1064         echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1065 fi
1066
1067 if $CXX --version | grep -q '2\.7'
1068 then
1069         true
1070 else
1071         echo "configure: warning: can't find g++ 2.7" 1>&2
1072 fi
1073
1074 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1075 echo "configure:1076: checking how to run the C++ preprocessor" >&5
1076 if test -z "$CXXCPP"; then
1077 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1078   echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080   ac_ext=C
1081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1082 ac_cpp='$CXXCPP $CPPFLAGS'
1083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1084 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1085 cross_compiling=$ac_cv_prog_cxx_cross
1086   CXXCPP="${CXX-g++} -E"
1087   cat > conftest.$ac_ext <<EOF
1088 #line 1089 "configure"
1089 #include "confdefs.h"
1090 #include <stdlib.h>
1091 EOF
1092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1093 { (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1094 ac_err=`grep -v '^ *+' conftest.out`
1095 if test -z "$ac_err"; then
1096   :
1097 else
1098   echo "$ac_err" >&5
1099   echo "configure: failed program was:" >&5
1100   cat conftest.$ac_ext >&5
1101   rm -rf conftest*
1102   CXXCPP=/lib/cpp
1103 fi
1104 rm -f conftest*
1105   ac_cv_prog_CXXCPP="$CXXCPP"
1106 fi
1107 fi
1108 CXXCPP="$ac_cv_prog_CXXCPP"
1109 echo "$ac_t""$CXXCPP" 1>&6
1110
1111 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1112 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1113 echo "configure:1114: checking for FlexLexer.h" >&5
1114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1115   echo $ac_n "(cached) $ac_c" 1>&6
1116 else
1117   cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 #include <FlexLexer.h>
1121 EOF
1122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1123 { (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1124 ac_err=`grep -v '^ *+' conftest.out`
1125 if test -z "$ac_err"; then
1126   rm -rf conftest*
1127   eval "ac_cv_header_$ac_safe=yes"
1128 else
1129   echo "$ac_err" >&5
1130   echo "configure: failed program was:" >&5
1131   cat conftest.$ac_ext >&5
1132   rm -rf conftest*
1133   eval "ac_cv_header_$ac_safe=no"
1134 fi
1135 rm -f conftest*
1136 fi
1137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1138   echo "$ac_t""yes" 1>&6
1139   true
1140 else
1141   echo "$ac_t""no" 1>&6
1142 { echo "configure: error: can't find flex header. Please install Flex headers correctly" 1>&2; exit 1; }
1143 fi
1144
1145 subdirs="flower"
1146
1147 trap '' 1 2 15
1148 cat > confcache <<\EOF
1149 # This file is a shell script that caches the results of configure
1150 # tests run on this system so they can be shared between configure
1151 # scripts and configure runs.  It is not useful on other systems.
1152 # If it contains results you don't want to keep, you may remove or edit it.
1153 #
1154 # By default, configure uses ./config.cache as the cache file,
1155 # creating it if it does not exist already.  You can give configure
1156 # the --cache-file=FILE option to use a different cache file; that is
1157 # what configure does when it calls configure scripts in
1158 # subdirectories, so they share the cache.
1159 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1160 # config.status only pays attention to the cache file if you give it the
1161 # --recheck option to rerun configure.
1162 #
1163 EOF
1164 # The following way of writing the cache mishandles newlines in values,
1165 # but we know of no workaround that is simple, portable, and efficient.
1166 # So, don't put newlines in cache variables' values.
1167 # Ultrix sh set writes to stderr and can't be redirected directly,
1168 # and sets the high bit in the cache file unless we assign to the vars.
1169 (set) 2>&1 |
1170   case `(ac_space=' '; set) 2>&1` in
1171   *ac_space=\ *)
1172     # `set' does not quote correctly, so add quotes (double-quote substitution
1173     # turns \\\\ into \\, and sed turns \\ into \).
1174     sed -n \
1175       -e "s/'/'\\\\''/g" \
1176       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1177     ;;
1178   *)
1179     # `set' quotes correctly as required by POSIX, so do not add quotes.
1180     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1181     ;;
1182   esac >> confcache
1183 if cmp -s $cache_file confcache; then
1184   :
1185 else
1186   if test -w $cache_file; then
1187     echo "updating cache $cache_file"
1188     cat confcache > $cache_file
1189   else
1190     echo "not updating unwritable cache $cache_file"
1191   fi
1192 fi
1193 rm -f confcache
1194
1195 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1196
1197 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1198 # Let make expand exec_prefix.
1199 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1200
1201 # Any assignment to VPATH causes Sun make to only execute
1202 # the first set of double-colon rules, so remove it if not needed.
1203 # If there is a colon in the path, we need to keep it.
1204 if test "x$srcdir" = x.; then
1205   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1206 fi
1207
1208 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1209
1210 # Transform confdefs.h into DEFS.
1211 # Protect against shell expansion while executing Makefile rules.
1212 # Protect against Makefile macro expansion.
1213 cat > conftest.defs <<\EOF
1214 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1215 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1216 s%\[%\\&%g
1217 s%\]%\\&%g
1218 s%\$%$$%g
1219 EOF
1220 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1221 rm -f conftest.defs
1222
1223
1224 # Without the "./", some shells look in PATH for config.status.
1225 : ${CONFIG_STATUS=./config.status}
1226
1227 echo creating $CONFIG_STATUS
1228 rm -f $CONFIG_STATUS
1229 cat > $CONFIG_STATUS <<EOF
1230 #! /bin/sh
1231 # Generated automatically by configure.
1232 # Run this file to recreate the current configuration.
1233 # This directory was configured as follows,
1234 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1235 #
1236 # $0 $ac_configure_args
1237 #
1238 # Compiler output produced by configure, useful for debugging
1239 # configure, is in ./config.log if it exists.
1240
1241 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1242 for ac_option
1243 do
1244   case "\$ac_option" in
1245   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1246     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1247     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1248   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1249     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1250     exit 0 ;;
1251   -help | --help | --hel | --he | --h)
1252     echo "\$ac_cs_usage"; exit 0 ;;
1253   *) echo "\$ac_cs_usage"; exit 1 ;;
1254   esac
1255 done
1256
1257 ac_given_srcdir=$srcdir
1258 ac_given_INSTALL="$INSTALL"
1259
1260 trap 'rm -fr `echo "make/out/Configure_variables.make:make/Configure_variables.make.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1261 EOF
1262 cat >> $CONFIG_STATUS <<EOF
1263
1264 # Protect against being on the right side of a sed subst in config.status.
1265 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1266  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1267 $ac_vpsub
1268 $extrasub
1269 s%@CFLAGS@%$CFLAGS%g
1270 s%@CPPFLAGS@%$CPPFLAGS%g
1271 s%@CXXFLAGS@%$CXXFLAGS%g
1272 s%@DEFS@%$DEFS%g
1273 s%@LDFLAGS@%$LDFLAGS%g
1274 s%@LIBS@%$LIBS%g
1275 s%@exec_prefix@%$exec_prefix%g
1276 s%@prefix@%$prefix%g
1277 s%@program_transform_name@%$program_transform_name%g
1278 s%@bindir@%$bindir%g
1279 s%@sbindir@%$sbindir%g
1280 s%@libexecdir@%$libexecdir%g
1281 s%@datadir@%$datadir%g
1282 s%@sysconfdir@%$sysconfdir%g
1283 s%@sharedstatedir@%$sharedstatedir%g
1284 s%@localstatedir@%$localstatedir%g
1285 s%@libdir@%$libdir%g
1286 s%@includedir@%$includedir%g
1287 s%@oldincludedir@%$oldincludedir%g
1288 s%@infodir@%$infodir%g
1289 s%@mandir@%$mandir%g
1290 s%@CXX@%$CXX%g
1291 s%@RANLIB@%$RANLIB%g
1292 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1293 s%@INSTALL_DATA@%$INSTALL_DATA%g
1294 s%@FIND@%$FIND%g
1295 s%@DEFINES@%$DEFINES%g
1296 s%@COMPILEINFO@%$COMPILEINFO%g
1297 s%@AUTOHEADER@%$AUTOHEADER%g
1298 s%@BISON@%$BISON%g
1299 s%@FLEX@%$FLEX%g
1300 s%@TEXPREFIX@%$TEXPREFIX%g
1301 s%@MAKE@%$MAKE%g
1302 s%@PODMAN@%$PODMAN%g
1303 s%@CXXCPP@%$CXXCPP%g
1304 s%@subdirs@%$subdirs%g
1305
1306 CEOF
1307 EOF
1308
1309 cat >> $CONFIG_STATUS <<\EOF
1310
1311 # Split the substitutions into bite-sized pieces for seds with
1312 # small command number limits, like on Digital OSF/1 and HP-UX.
1313 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1314 ac_file=1 # Number of current file.
1315 ac_beg=1 # First line for current file.
1316 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1317 ac_more_lines=:
1318 ac_sed_cmds=""
1319 while $ac_more_lines; do
1320   if test $ac_beg -gt 1; then
1321     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1322   else
1323     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1324   fi
1325   if test ! -s conftest.s$ac_file; then
1326     ac_more_lines=false
1327     rm -f conftest.s$ac_file
1328   else
1329     if test -z "$ac_sed_cmds"; then
1330       ac_sed_cmds="sed -f conftest.s$ac_file"
1331     else
1332       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1333     fi
1334     ac_file=`expr $ac_file + 1`
1335     ac_beg=$ac_end
1336     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1337   fi
1338 done
1339 if test -z "$ac_sed_cmds"; then
1340   ac_sed_cmds=cat
1341 fi
1342 EOF
1343
1344 cat >> $CONFIG_STATUS <<EOF
1345
1346 CONFIG_FILES=\${CONFIG_FILES-"make/out/Configure_variables.make:make/Configure_variables.make.in"}
1347 EOF
1348 cat >> $CONFIG_STATUS <<\EOF
1349 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1350   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1351   case "$ac_file" in
1352   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1353        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1354   *) ac_file_in="${ac_file}.in" ;;
1355   esac
1356
1357   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1358
1359   # Remove last slash and all that follows it.  Not all systems have dirname.
1360   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1361   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1362     # The file is in a subdirectory.
1363     test ! -d "$ac_dir" && mkdir "$ac_dir"
1364     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1365     # A "../" for each directory in $ac_dir_suffix.
1366     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1367   else
1368     ac_dir_suffix= ac_dots=
1369   fi
1370
1371   case "$ac_given_srcdir" in
1372   .)  srcdir=.
1373       if test -z "$ac_dots"; then top_srcdir=.
1374       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1375   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1376   *) # Relative path.
1377     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1378     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1379   esac
1380
1381   case "$ac_given_INSTALL" in
1382   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1383   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1384   esac
1385
1386   echo creating "$ac_file"
1387   rm -f "$ac_file"
1388   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1389   case "$ac_file" in
1390   *Makefile*) ac_comsub="1i\\
1391 # $configure_input" ;;
1392   *) ac_comsub= ;;
1393   esac
1394
1395   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1396   sed -e "$ac_comsub
1397 s%@configure_input@%$configure_input%g
1398 s%@srcdir@%$srcdir%g
1399 s%@top_srcdir@%$top_srcdir%g
1400 s%@INSTALL@%$INSTALL%g
1401 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1402 fi; done
1403 rm -f conftest.s*
1404
1405 EOF
1406 cat >> $CONFIG_STATUS <<EOF
1407
1408 EOF
1409 cat >> $CONFIG_STATUS <<\EOF
1410
1411 exit 0
1412 EOF
1413 chmod +x $CONFIG_STATUS
1414 rm -fr confdefs* $ac_clean_files
1415 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1416
1417 if test "$no_recursion" != yes; then
1418
1419   # Remove --cache-file and --srcdir arguments so they do not pile up.
1420   ac_sub_configure_args=
1421   ac_prev=
1422   for ac_arg in $ac_configure_args; do
1423     if test -n "$ac_prev"; then
1424       ac_prev=
1425       continue
1426     fi
1427     case "$ac_arg" in
1428     -cache-file | --cache-file | --cache-fil | --cache-fi \
1429     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1430       ac_prev=cache_file ;;
1431     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1432     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1433       ;;
1434     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1435       ac_prev=srcdir ;;
1436     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1437       ;;
1438     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1439     esac
1440   done
1441
1442   for ac_config_dir in flower; do
1443
1444     # Do not complain, so a configure script can configure whichever
1445     # parts of a large source tree are present.
1446     if test ! -d $srcdir/$ac_config_dir; then
1447       continue
1448     fi
1449
1450     echo configuring in $ac_config_dir
1451
1452     case "$srcdir" in
1453     .) ;;
1454     *)
1455       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1456       else
1457         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1458       fi
1459       ;;
1460     esac
1461
1462     ac_popdir=`pwd`
1463     cd $ac_config_dir
1464
1465       # A "../" for each directory in /$ac_config_dir.
1466       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1467
1468     case "$srcdir" in
1469     .) # No --srcdir option.  We are building in place.
1470       ac_sub_srcdir=$srcdir ;;
1471     /*) # Absolute path.
1472       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1473     *) # Relative path.
1474       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1475     esac
1476
1477     # Check for guested configure; otherwise get Cygnus style configure.
1478     if test -f $ac_sub_srcdir/configure; then
1479       ac_sub_configure=$ac_sub_srcdir/configure
1480     elif test -f $ac_sub_srcdir/configure.in; then
1481       ac_sub_configure=$ac_configure
1482     else
1483       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1484       ac_sub_configure=
1485     fi
1486
1487     # The recursion is here.
1488     if test -n "$ac_sub_configure"; then
1489
1490       # Make the cache file name correct relative to the subdirectory.
1491       case "$cache_file" in
1492       /*) ac_sub_cache_file=$cache_file ;;
1493       *) # Relative path.
1494         ac_sub_cache_file="$ac_dots$cache_file" ;;
1495       esac
1496   case "$ac_given_INSTALL" in
1497         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1498         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1499         esac
1500
1501       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1502       # The eval makes quoting arguments work.
1503       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1504       then :
1505       else
1506         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1507       fi
1508     fi
1509
1510     cd $ac_popdir
1511   done
1512 fi
1513
1514
1515
1516
1517 eval "DIR_DATADIR=$datadir"
1518 DIR_DATADIR="$DIR_DATADIR/lilypond"
1519 echo $ac_n "checking ""... $ac_c" 1>&6
1520 echo "configure:1521: checking " >&5
1521
1522 cat << EOF > lib/out/config.hh
1523
1524 /* automatically generated by configure */
1525 /* include this file only once! */
1526
1527 #define  DIR_DATADIR "$DIR_DATADIR"
1528
1529 EOF
1530
1531 CXX="$ac_cv_prog_CXX" bin/make_version >> lib/out/config.hh
1532
1533 touch make/out/Site.make
1534
1535 # ugr
1536 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1537 )
1538 # rgu
1539 sed 's/TOPLEVEL_//g' <  .version >  lily/.version
1540 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1541 )
1542  (cd flower;
1543 )
1544 cat << END
1545
1546 Finished configuring. For making everything, do:
1547
1548         make all
1549
1550 If you only want help on the make targets, do a
1551
1552         make help
1553
1554 END