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