]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.0.47
[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 printing_b=no
543 checking_b=yes
544 debug_b=yes
545 optimise_b=no
546 profile_b=no
547     
548 # Check whether --enable-printing or --disable-printing was given.
549 if test "${enable_printing+set}" = set; then
550   enableval="$enable_printing"
551   printing_b=$enableval
552 fi
553
554
555         
556 # Check whether --enable-checking or --disable-checking was given.
557 if test "${enable_checking+set}" = set; then
558   enableval="$enable_checking"
559   checking_b=$enableval 
560 fi
561
562
563
564
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567   enableval="$enable_debug"
568   debug_b=$enableval
569 fi
570
571
572 # Check whether --enable-optimise or --disable-optimise was given.
573 if test "${enable_optimise+set}" = set; then
574   enableval="$enable_optimise"
575   optimise_b=$enableval
576 fi
577
578     
579    
580 # Check whether --enable-profiling or --disable-profiling was given.
581 if test "${enable_profiling+set}" = set; then
582   enableval="$enable_profiling"
583   profile_b=$enableval
584 fi
585
586     
587 # Check whether --enable-texprefix or --disable-texprefix was given.
588 if test "${enable_texprefix+set}" = set; then
589   enableval="$enable_texprefix"
590   TEXPREFIX=$enableval
591 else
592   TEXPREFIX=auto 
593 fi
594
595    
596 if test $profile_b = yes; then
597     EXTRA_LIBES="-pg"
598     DEFINES="$DEFINES -pg"
599 fi
600     
601 if test $printing_b = no; then
602     DEFINES="$DEFINES -DNPRINT=1"
603 fi
604     
605 if test $debug_b = yes; then    
606     DEFINES="$DEFINES -g"
607 fi
608 if test $checking_b = no; then
609     DEFINES="$DEFINES -DNDEBUG=1"
610 fi
611
612 if test $optimise_b = yes; then
613     DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
614 fi
615 AUTOHEADER="This file was automatically generated by configure"
616 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
617 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
618 do
619 # Extract the first word of "$ac_prog", so it can be a program name with args.
620 set dummy $ac_prog; ac_word=$2
621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622 echo "configure:623: checking for $ac_word" >&5
623 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
624   echo $ac_n "(cached) $ac_c" 1>&6
625 else
626   if test -n "$CXX"; then
627   ac_cv_prog_CXX="$CXX" # Let the user override the test.
628 else
629   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
630   for ac_dir in $PATH; do
631     test -z "$ac_dir" && ac_dir=.
632     if test -f $ac_dir/$ac_word; then
633       ac_cv_prog_CXX="$ac_prog"
634       break
635     fi
636   done
637   IFS="$ac_save_ifs"
638 fi
639 fi
640 CXX="$ac_cv_prog_CXX"
641 if test -n "$CXX"; then
642   echo "$ac_t""$CXX" 1>&6
643 else
644   echo "$ac_t""no" 1>&6
645 fi
646
647 test -n "$CXX" && break
648 done
649 test -n "$CXX" || CXX="gcc"
650
651
652 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
653 echo "configure:654: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
654
655 ac_ext=C
656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
657 ac_cpp='$CXXCPP $CPPFLAGS'
658 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
659 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
660 cross_compiling=$ac_cv_prog_cxx_cross
661
662 cat > conftest.$ac_ext <<EOF
663 #line 664 "configure"
664 #include "confdefs.h"
665 main(){return(0);}
666 EOF
667 if { (eval echo configure:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
668   ac_cv_prog_cxx_works=yes
669   # If we can't run a trivial program, we are probably using a cross compiler.
670   if (./conftest; exit) 2>/dev/null; then
671     ac_cv_prog_cxx_cross=no
672   else
673     ac_cv_prog_cxx_cross=yes
674   fi
675 else
676   echo "configure: failed program was:" >&5
677   cat conftest.$ac_ext >&5
678   ac_cv_prog_cxx_works=no
679 fi
680 rm -fr conftest*
681
682 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
683 if test $ac_cv_prog_cxx_works = no; then
684   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
685 fi
686 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
688 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
689 cross_compiling=$ac_cv_prog_cxx_cross
690
691 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
692 echo "configure:693: checking whether we are using GNU C++" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
694   echo $ac_n "(cached) $ac_c" 1>&6
695 else
696   cat > conftest.C <<EOF
697 #ifdef __GNUC__
698   yes;
699 #endif
700 EOF
701 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
702   ac_cv_prog_gxx=yes
703 else
704   ac_cv_prog_gxx=no
705 fi
706 fi
707
708 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
709
710 if test $ac_cv_prog_gxx = yes; then
711   GXX=yes
712   ac_test_CXXFLAGS="${CXXFLAGS+set}"
713   ac_save_CXXFLAGS="$CXXFLAGS"
714   CXXFLAGS=
715   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
716 echo "configure:717: checking whether ${CXX-g++} accepts -g" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
718   echo $ac_n "(cached) $ac_c" 1>&6
719 else
720   echo 'void f(){}' > conftest.cc
721 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
722   ac_cv_prog_cxx_g=yes
723 else
724   ac_cv_prog_cxx_g=no
725 fi
726 rm -f conftest*
727
728 fi
729
730 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
731   if test "$ac_test_CXXFLAGS" = set; then
732     CXXFLAGS="$ac_save_CXXFLAGS"
733   elif test $ac_cv_prog_cxx_g = yes; then
734     CXXFLAGS="-g -O2"
735   else
736     CXXFLAGS="-O2"
737   fi
738 else
739   GXX=
740   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
741 fi
742
743 # Extract the first word of "ranlib", so it can be a program name with args.
744 set dummy ranlib; ac_word=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
748   echo $ac_n "(cached) $ac_c" 1>&6
749 else
750   if test -n "$RANLIB"; then
751   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
752 else
753   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
754   for ac_dir in $PATH; do
755     test -z "$ac_dir" && ac_dir=.
756     if test -f $ac_dir/$ac_word; then
757       ac_cv_prog_RANLIB="ranlib"
758       break
759     fi
760   done
761   IFS="$ac_save_ifs"
762   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
763 fi
764 fi
765 RANLIB="$ac_cv_prog_RANLIB"
766 if test -n "$RANLIB"; then
767   echo "$ac_t""$RANLIB" 1>&6
768 else
769   echo "$ac_t""no" 1>&6
770 fi
771
772 ac_aux_dir=
773 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
774   if test -f $ac_dir/install-sh; then
775     ac_aux_dir=$ac_dir
776     ac_install_sh="$ac_aux_dir/install-sh -c"
777     break
778   elif test -f $ac_dir/install.sh; then
779     ac_aux_dir=$ac_dir
780     ac_install_sh="$ac_aux_dir/install.sh -c"
781     break
782   fi
783 done
784 if test -z "$ac_aux_dir"; then
785   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
786 fi
787 ac_config_guess=$ac_aux_dir/config.guess
788 ac_config_sub=$ac_aux_dir/config.sub
789 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
790
791 # Find a good install program.  We prefer a C program (faster),
792 # so one script is as good as another.  But avoid the broken or
793 # incompatible versions:
794 # SysV /etc/install, /usr/sbin/install
795 # SunOS /usr/etc/install
796 # IRIX /sbin/install
797 # AIX /bin/install
798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
800 # ./install, which can be erroneously created by make from ./install.sh.
801 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
802 echo "configure:803: checking for a BSD compatible install" >&5
803 if test -z "$INSTALL"; then
804 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
805   echo $ac_n "(cached) $ac_c" 1>&6
806 else
807     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
808   for ac_dir in $PATH; do
809     # Account for people who put trailing slashes in PATH elements.
810     case "$ac_dir/" in
811     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
812     *)
813       # OSF1 and SCO ODT 3.0 have their own names for install.
814       for ac_prog in ginstall installbsd scoinst install; do
815         if test -f $ac_dir/$ac_prog; then
816           if test $ac_prog = install &&
817             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
818             # AIX install.  It has an incompatible calling convention.
819             # OSF/1 installbsd also uses dspmsg, but is usable.
820             :
821           else
822             ac_cv_path_install="$ac_dir/$ac_prog -c"
823             break 2
824           fi
825         fi
826       done
827       ;;
828     esac
829   done
830   IFS="$ac_save_IFS"
831
832 fi
833   if test "${ac_cv_path_install+set}" = set; then
834     INSTALL="$ac_cv_path_install"
835   else
836     # As a last resort, use the slow shell script.  We don't cache a
837     # path for INSTALL within a source directory, because that will
838     # break other packages using the cache if that directory is
839     # removed, or if the path is relative.
840     INSTALL="$ac_install_sh"
841   fi
842 fi
843 echo "$ac_t""$INSTALL" 1>&6
844
845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
846 # It thinks the first close brace ends the variable substitution.
847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
848
849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
850
851 for ac_prog in find
852 do
853 # Extract the first word of "$ac_prog", so it can be a program name with args.
854 set dummy $ac_prog; ac_word=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
858   echo $ac_n "(cached) $ac_c" 1>&6
859 else
860   if test -n "$FIND"; then
861   ac_cv_prog_FIND="$FIND" # Let the user override the test.
862 else
863   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
864   for ac_dir in $PATH; do
865     test -z "$ac_dir" && ac_dir=.
866     if test -f $ac_dir/$ac_word; then
867       ac_cv_prog_FIND="$ac_prog"
868       break
869     fi
870   done
871   IFS="$ac_save_ifs"
872 fi
873 fi
874 FIND="$ac_cv_prog_FIND"
875 if test -n "$FIND"; then
876   echo "$ac_t""$FIND" 1>&6
877 else
878   echo "$ac_t""no" 1>&6
879 fi
880
881 test -n "$FIND" && break
882 done
883 test -n "$FIND" || FIND="error"
884
885
886 if test FIND = error; then
887    echo "configure: warning: Couldn't find \`find'.  Please use --enable-texprefix" 1>&2
888 else 
889     
890
891
892
893
894
895
896
897
898
899 for ac_prog in bison
900 do
901 # Extract the first word of "$ac_prog", so it can be a program name with args.
902 set dummy $ac_prog; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
906   echo $ac_n "(cached) $ac_c" 1>&6
907 else
908   if test -n "$BISON"; then
909   ac_cv_prog_BISON="$BISON" # Let the user override the test.
910 else
911   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
912   for ac_dir in $PATH; do
913     test -z "$ac_dir" && ac_dir=.
914     if test -f $ac_dir/$ac_word; then
915       ac_cv_prog_BISON="$ac_prog"
916       break
917     fi
918   done
919   IFS="$ac_save_ifs"
920 fi
921 fi
922 BISON="$ac_cv_prog_BISON"
923 if test -n "$BISON"; then
924   echo "$ac_t""$BISON" 1>&6
925 else
926   echo "$ac_t""no" 1>&6
927 fi
928
929 test -n "$BISON" && break
930 done
931 test -n "$BISON" || BISON="error"
932
933 for ac_prog in flex
934 do
935 # Extract the first word of "$ac_prog", so it can be a program name with args.
936 set dummy $ac_prog; ac_word=$2
937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
938 echo "configure:939: checking for $ac_word" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
940   echo $ac_n "(cached) $ac_c" 1>&6
941 else
942   if test -n "$FLEX"; then
943   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
944 else
945   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
946   for ac_dir in $PATH; do
947     test -z "$ac_dir" && ac_dir=.
948     if test -f $ac_dir/$ac_word; then
949       ac_cv_prog_FLEX="$ac_prog"
950       break
951     fi
952   done
953   IFS="$ac_save_ifs"
954 fi
955 fi
956 FLEX="$ac_cv_prog_FLEX"
957 if test -n "$FLEX"; then
958   echo "$ac_t""$FLEX" 1>&6
959 else
960   echo "$ac_t""no" 1>&6
961 fi
962
963 test -n "$FLEX" && break
964 done
965 test -n "$FLEX" || FLEX="error"
966
967 for ac_prog in make
968 do
969 # Extract the first word of "$ac_prog", so it can be a program name with args.
970 set dummy $ac_prog; ac_word=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
974   echo $ac_n "(cached) $ac_c" 1>&6
975 else
976   if test -n "$MAKE"; then
977   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
978 else
979   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
980   for ac_dir in $PATH; do
981     test -z "$ac_dir" && ac_dir=.
982     if test -f $ac_dir/$ac_word; then
983       ac_cv_prog_MAKE="$ac_prog"
984       break
985     fi
986   done
987   IFS="$ac_save_ifs"
988 fi
989 fi
990 MAKE="$ac_cv_prog_MAKE"
991 if test -n "$MAKE"; then
992   echo "$ac_t""$MAKE" 1>&6
993 else
994   echo "$ac_t""no" 1>&6
995 fi
996
997 test -n "$MAKE" && break
998 done
999 test -n "$MAKE" || MAKE="error"
1000
1001 for ac_prog in pod2man
1002 do
1003 # Extract the first word of "$ac_prog", so it can be a program name with args.
1004 set dummy $ac_prog; ac_word=$2
1005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006 echo "configure:1007: checking for $ac_word" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
1008   echo $ac_n "(cached) $ac_c" 1>&6
1009 else
1010   if test -n "$PODMAN"; then
1011   ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
1012 else
1013   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1014   for ac_dir in $PATH; do
1015     test -z "$ac_dir" && ac_dir=.
1016     if test -f $ac_dir/$ac_word; then
1017       ac_cv_prog_PODMAN="$ac_prog"
1018       break
1019     fi
1020   done
1021   IFS="$ac_save_ifs"
1022 fi
1023 fi
1024 PODMAN="$ac_cv_prog_PODMAN"
1025 if test -n "$PODMAN"; then
1026   echo "$ac_t""$PODMAN" 1>&6
1027 else
1028   echo "$ac_t""no" 1>&6
1029 fi
1030
1031 test -n "$PODMAN" && break
1032 done
1033 test -n "$PODMAN" || PODMAN="error"
1034
1035
1036 if test $TEXPREFIX = auto ; then
1037     
1038
1039     # do something sensible if root hasn't specced dir yet attempts install
1040
1041     echo $ac_n "checking TeX installation directory""... $ac_c" 1>&6
1042 echo "configure:1043: checking TeX installation directory" >&5
1043
1044     ac_tmp_prefix=$prefix
1045     test "x$ac_tmp_prefix" = xNONE && ac_tmp_prefix=$ac_default_prefix
1046
1047     for texdir in $ac_tmp_prefix $ac_tmp_prefix/lib; do
1048         if test -d $texdir/texmf; then
1049             TEXTOP=$texdir/texmf
1050             break
1051         else    
1052         if test -d $texdir/tex; then 
1053             TEXTOP=$texdir/tex
1054             break
1055         fi
1056         fi
1057     done
1058     TEXPREFIX=$ac_tmp_prefix/lib/texmf/tex
1059     if test x = "x$TEXTOP"; then
1060         echo "configure: warning: Cannot determine a tex-directory. Please use --enable-texprefix" 1>&2
1061     else
1062         TEXPREFIX=`$FIND $TEXTOP -type d -a -name tex -print |sort|head -1`
1063     fi
1064     fi
1065
1066     echo "$ac_t""$TEXPREFIX" 1>&6
1067
1068 fi
1069
1070 if test $MAKE = "error" 
1071 then
1072         { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
1073 else
1074         $MAKE -v| grep GNU >& /dev/null
1075         if test "$?" = 1
1076         then
1077                 echo "configure: warning: Please install *GNU* make" 1>&2
1078         fi
1079 fi
1080
1081
1082 if test $BISON = "error" 
1083 then
1084         echo "configure: warning: can't find bison. Please install Bison (1.24 or better)" 1>&2
1085 fi
1086
1087 if test $PODMAN = "error" 
1088 then
1089         echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
1090 fi
1091
1092 if test $FLEX = "error" 
1093 then
1094         echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1095 fi
1096
1097 if $CXX --version | grep '2\.7' >& /dev/null
1098 then
1099         true
1100 else
1101         echo "configure: warning: can't find g++ 2.7" 1>&2
1102 fi
1103
1104 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1105 echo "configure:1106: checking how to run the C++ preprocessor" >&5
1106 if test -z "$CXXCPP"; then
1107 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1108   echo $ac_n "(cached) $ac_c" 1>&6
1109 else
1110   ac_ext=C
1111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112 ac_cpp='$CXXCPP $CPPFLAGS'
1113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115 cross_compiling=$ac_cv_prog_cxx_cross
1116   CXXCPP="${CXX-g++} -E"
1117   cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 #include <stdlib.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   :
1127 else
1128   echo "$ac_err" >&5
1129   echo "configure: failed program was:" >&5
1130   cat conftest.$ac_ext >&5
1131   rm -rf conftest*
1132   CXXCPP=/lib/cpp
1133 fi
1134 rm -f conftest*
1135   ac_cv_prog_CXXCPP="$CXXCPP"
1136 fi
1137 fi
1138 CXXCPP="$ac_cv_prog_CXXCPP"
1139 echo "$ac_t""$CXXCPP" 1>&6
1140
1141 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1142 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1143 echo "configure:1144: checking for FlexLexer.h" >&5
1144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1145   echo $ac_n "(cached) $ac_c" 1>&6
1146 else
1147   cat > conftest.$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1150 #include <FlexLexer.h>
1151 EOF
1152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153 { (eval echo configure:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1154 ac_err=`grep -v '^ *+' conftest.out`
1155 if test -z "$ac_err"; then
1156   rm -rf conftest*
1157   eval "ac_cv_header_$ac_safe=yes"
1158 else
1159   echo "$ac_err" >&5
1160   echo "configure: failed program was:" >&5
1161   cat conftest.$ac_ext >&5
1162   rm -rf conftest*
1163   eval "ac_cv_header_$ac_safe=no"
1164 fi
1165 rm -f conftest*
1166 fi
1167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1168   echo "$ac_t""yes" 1>&6
1169   true
1170 else
1171   echo "$ac_t""no" 1>&6
1172 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1173 fi
1174
1175 subdirs="flower"
1176
1177 trap '' 1 2 15
1178 cat > confcache <<\EOF
1179 # This file is a shell script that caches the results of configure
1180 # tests run on this system so they can be shared between configure
1181 # scripts and configure runs.  It is not useful on other systems.
1182 # If it contains results you don't want to keep, you may remove or edit it.
1183 #
1184 # By default, configure uses ./config.cache as the cache file,
1185 # creating it if it does not exist already.  You can give configure
1186 # the --cache-file=FILE option to use a different cache file; that is
1187 # what configure does when it calls configure scripts in
1188 # subdirectories, so they share the cache.
1189 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1190 # config.status only pays attention to the cache file if you give it the
1191 # --recheck option to rerun configure.
1192 #
1193 EOF
1194 # The following way of writing the cache mishandles newlines in values,
1195 # but we know of no workaround that is simple, portable, and efficient.
1196 # So, don't put newlines in cache variables' values.
1197 # Ultrix sh set writes to stderr and can't be redirected directly,
1198 # and sets the high bit in the cache file unless we assign to the vars.
1199 (set) 2>&1 |
1200   case `(ac_space=' '; set) 2>&1` in
1201   *ac_space=\ *)
1202     # `set' does not quote correctly, so add quotes (double-quote substitution
1203     # turns \\\\ into \\, and sed turns \\ into \).
1204     sed -n \
1205       -e "s/'/'\\\\''/g" \
1206       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1207     ;;
1208   *)
1209     # `set' quotes correctly as required by POSIX, so do not add quotes.
1210     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1211     ;;
1212   esac >> confcache
1213 if cmp -s $cache_file confcache; then
1214   :
1215 else
1216   if test -w $cache_file; then
1217     echo "updating cache $cache_file"
1218     cat confcache > $cache_file
1219   else
1220     echo "not updating unwritable cache $cache_file"
1221   fi
1222 fi
1223 rm -f confcache
1224
1225 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1226
1227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1228 # Let make expand exec_prefix.
1229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1230
1231 # Any assignment to VPATH causes Sun make to only execute
1232 # the first set of double-colon rules, so remove it if not needed.
1233 # If there is a colon in the path, we need to keep it.
1234 if test "x$srcdir" = x.; then
1235   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1236 fi
1237
1238 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1239
1240 # Transform confdefs.h into DEFS.
1241 # Protect against shell expansion while executing Makefile rules.
1242 # Protect against Makefile macro expansion.
1243 cat > conftest.defs <<\EOF
1244 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1245 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1246 s%\[%\\&%g
1247 s%\]%\\&%g
1248 s%\$%$$%g
1249 EOF
1250 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1251 rm -f conftest.defs
1252
1253
1254 # Without the "./", some shells look in PATH for config.status.
1255 : ${CONFIG_STATUS=./config.status}
1256
1257 echo creating $CONFIG_STATUS
1258 rm -f $CONFIG_STATUS
1259 cat > $CONFIG_STATUS <<EOF
1260 #! /bin/sh
1261 # Generated automatically by configure.
1262 # Run this file to recreate the current configuration.
1263 # This directory was configured as follows,
1264 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1265 #
1266 # $0 $ac_configure_args
1267 #
1268 # Compiler output produced by configure, useful for debugging
1269 # configure, is in ./config.log if it exists.
1270
1271 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1272 for ac_option
1273 do
1274   case "\$ac_option" in
1275   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1276     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1277     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1278   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1279     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1280     exit 0 ;;
1281   -help | --help | --hel | --he | --h)
1282     echo "\$ac_cs_usage"; exit 0 ;;
1283   *) echo "\$ac_cs_usage"; exit 1 ;;
1284   esac
1285 done
1286
1287 ac_given_srcdir=$srcdir
1288 ac_given_INSTALL="$INSTALL"
1289
1290 trap 'rm -fr `echo "make/out/Configure_variables.make:make/Configure_variables.make.in
1291     Makefile:make/Toplevel.make.in
1292     " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1293 EOF
1294 cat >> $CONFIG_STATUS <<EOF
1295
1296 # Protect against being on the right side of a sed subst in config.status.
1297 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1298  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1299 $ac_vpsub
1300 $extrasub
1301 s%@CFLAGS@%$CFLAGS%g
1302 s%@CPPFLAGS@%$CPPFLAGS%g
1303 s%@CXXFLAGS@%$CXXFLAGS%g
1304 s%@DEFS@%$DEFS%g
1305 s%@LDFLAGS@%$LDFLAGS%g
1306 s%@LIBS@%$LIBS%g
1307 s%@exec_prefix@%$exec_prefix%g
1308 s%@prefix@%$prefix%g
1309 s%@program_transform_name@%$program_transform_name%g
1310 s%@bindir@%$bindir%g
1311 s%@sbindir@%$sbindir%g
1312 s%@libexecdir@%$libexecdir%g
1313 s%@datadir@%$datadir%g
1314 s%@sysconfdir@%$sysconfdir%g
1315 s%@sharedstatedir@%$sharedstatedir%g
1316 s%@localstatedir@%$localstatedir%g
1317 s%@libdir@%$libdir%g
1318 s%@includedir@%$includedir%g
1319 s%@oldincludedir@%$oldincludedir%g
1320 s%@infodir@%$infodir%g
1321 s%@mandir@%$mandir%g
1322 s%@CXX@%$CXX%g
1323 s%@RANLIB@%$RANLIB%g
1324 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1325 s%@INSTALL_DATA@%$INSTALL_DATA%g
1326 s%@FIND@%$FIND%g
1327 s%@DEFINES@%$DEFINES%g
1328 s%@COMPILEINFO@%$COMPILEINFO%g
1329 s%@AUTOHEADER@%$AUTOHEADER%g
1330 s%@BISON@%$BISON%g
1331 s%@FLEX@%$FLEX%g
1332 s%@TEXPREFIX@%$TEXPREFIX%g
1333 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
1334 s%@MAKE@%$MAKE%g
1335 s%@PODMAN@%$PODMAN%g
1336 s%@CXXCPP@%$CXXCPP%g
1337 s%@subdirs@%$subdirs%g
1338
1339 CEOF
1340 EOF
1341
1342 cat >> $CONFIG_STATUS <<\EOF
1343
1344 # Split the substitutions into bite-sized pieces for seds with
1345 # small command number limits, like on Digital OSF/1 and HP-UX.
1346 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1347 ac_file=1 # Number of current file.
1348 ac_beg=1 # First line for current file.
1349 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1350 ac_more_lines=:
1351 ac_sed_cmds=""
1352 while $ac_more_lines; do
1353   if test $ac_beg -gt 1; then
1354     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1355   else
1356     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1357   fi
1358   if test ! -s conftest.s$ac_file; then
1359     ac_more_lines=false
1360     rm -f conftest.s$ac_file
1361   else
1362     if test -z "$ac_sed_cmds"; then
1363       ac_sed_cmds="sed -f conftest.s$ac_file"
1364     else
1365       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1366     fi
1367     ac_file=`expr $ac_file + 1`
1368     ac_beg=$ac_end
1369     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1370   fi
1371 done
1372 if test -z "$ac_sed_cmds"; then
1373   ac_sed_cmds=cat
1374 fi
1375 EOF
1376
1377 cat >> $CONFIG_STATUS <<EOF
1378
1379 CONFIG_FILES=\${CONFIG_FILES-"make/out/Configure_variables.make:make/Configure_variables.make.in
1380     Makefile:make/Toplevel.make.in
1381     "}
1382 EOF
1383 cat >> $CONFIG_STATUS <<\EOF
1384 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1385   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1386   case "$ac_file" in
1387   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1388        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1389   *) ac_file_in="${ac_file}.in" ;;
1390   esac
1391
1392   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1393
1394   # Remove last slash and all that follows it.  Not all systems have dirname.
1395   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1396   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1397     # The file is in a subdirectory.
1398     test ! -d "$ac_dir" && mkdir "$ac_dir"
1399     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1400     # A "../" for each directory in $ac_dir_suffix.
1401     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1402   else
1403     ac_dir_suffix= ac_dots=
1404   fi
1405
1406   case "$ac_given_srcdir" in
1407   .)  srcdir=.
1408       if test -z "$ac_dots"; then top_srcdir=.
1409       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1410   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1411   *) # Relative path.
1412     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1413     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1414   esac
1415
1416   case "$ac_given_INSTALL" in
1417   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1418   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1419   esac
1420
1421   echo creating "$ac_file"
1422   rm -f "$ac_file"
1423   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1424   case "$ac_file" in
1425   *Makefile*) ac_comsub="1i\\
1426 # $configure_input" ;;
1427   *) ac_comsub= ;;
1428   esac
1429
1430   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1431   sed -e "$ac_comsub
1432 s%@configure_input@%$configure_input%g
1433 s%@srcdir@%$srcdir%g
1434 s%@top_srcdir@%$top_srcdir%g
1435 s%@INSTALL@%$INSTALL%g
1436 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1437 fi; done
1438 rm -f conftest.s*
1439
1440 EOF
1441 cat >> $CONFIG_STATUS <<EOF
1442
1443 EOF
1444 cat >> $CONFIG_STATUS <<\EOF
1445
1446 exit 0
1447 EOF
1448 chmod +x $CONFIG_STATUS
1449 rm -fr confdefs* $ac_clean_files
1450 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1451
1452 if test "$no_recursion" != yes; then
1453
1454   # Remove --cache-file and --srcdir arguments so they do not pile up.
1455   ac_sub_configure_args=
1456   ac_prev=
1457   for ac_arg in $ac_configure_args; do
1458     if test -n "$ac_prev"; then
1459       ac_prev=
1460       continue
1461     fi
1462     case "$ac_arg" in
1463     -cache-file | --cache-file | --cache-fil | --cache-fi \
1464     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1465       ac_prev=cache_file ;;
1466     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1467     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1468       ;;
1469     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1470       ac_prev=srcdir ;;
1471     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1472       ;;
1473     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1474     esac
1475   done
1476
1477   for ac_config_dir in flower; do
1478
1479     # Do not complain, so a configure script can configure whichever
1480     # parts of a large source tree are present.
1481     if test ! -d $srcdir/$ac_config_dir; then
1482       continue
1483     fi
1484
1485     echo configuring in $ac_config_dir
1486
1487     case "$srcdir" in
1488     .) ;;
1489     *)
1490       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1491       else
1492         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1493       fi
1494       ;;
1495     esac
1496
1497     ac_popdir=`pwd`
1498     cd $ac_config_dir
1499
1500       # A "../" for each directory in /$ac_config_dir.
1501       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1502
1503     case "$srcdir" in
1504     .) # No --srcdir option.  We are building in place.
1505       ac_sub_srcdir=$srcdir ;;
1506     /*) # Absolute path.
1507       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1508     *) # Relative path.
1509       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1510     esac
1511
1512     # Check for guested configure; otherwise get Cygnus style configure.
1513     if test -f $ac_sub_srcdir/configure; then
1514       ac_sub_configure=$ac_sub_srcdir/configure
1515     elif test -f $ac_sub_srcdir/configure.in; then
1516       ac_sub_configure=$ac_configure
1517     else
1518       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1519       ac_sub_configure=
1520     fi
1521
1522     # The recursion is here.
1523     if test -n "$ac_sub_configure"; then
1524
1525       # Make the cache file name correct relative to the subdirectory.
1526       case "$cache_file" in
1527       /*) ac_sub_cache_file=$cache_file ;;
1528       *) # Relative path.
1529         ac_sub_cache_file="$ac_dots$cache_file" ;;
1530       esac
1531   case "$ac_given_INSTALL" in
1532         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1533         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1534         esac
1535
1536       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1537       # The eval makes quoting arguments work.
1538       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1539       then :
1540       else
1541         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1542       fi
1543     fi
1544
1545     cd $ac_popdir
1546   done
1547 fi
1548
1549
1550
1551
1552 eval "DIR_DATADIR=$datadir"
1553 DIR_DATADIR="$DIR_DATADIR/lilypond"
1554 echo $ac_n "checking ""... $ac_c" 1>&6
1555 echo "configure:1556: checking " >&5
1556
1557 cat << EOF > lib/out/config.hh
1558
1559 /* automatically generated by configure */
1560 /* include this file only once! */
1561
1562 #define  DIR_DATADIR "$DIR_DATADIR"
1563
1564 EOF
1565
1566 CXX="$ac_cv_prog_CXX" bin/make_version >> lib/out/config.hh
1567
1568 touch make/out/Site.make
1569
1570 # ugr
1571 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1572 )
1573 # rgu
1574 sed 's/TOPLEVEL_//g' <  .version >  lily/.version
1575 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1576 )
1577
1578 cat << END
1579 Finished configuring. For making everything, do:
1580
1581         make all
1582
1583 If you only want help on the make targets, do a
1584
1585         make help
1586
1587 END