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