]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 1.2.1
[lilypond.git] / configure
1 #! /bin/sh
2
3 ac_help="$ac_help
4   --with-gtkmm-prefix=PREFIX
5                           Prefix where GTK-- is installed (optional)"
6 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
7 if test "${with_gtkmm_prefix+set}" = set; then
8   withval="$with_gtkmm_prefix"
9   gtkmm_config_prefix="$withval"
10 else
11   gtkmm_config_prefix=""
12 fi
13
14 ac_help="$ac_help
15   --with-gtkmm-exec-prefix=PREFIX
16                           Exec prefix where GTK-- is installed (optional)"
17 # Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given.
18 if test "${with_gtkmm_exec_prefix+set}" = set; then
19   withval="$with_gtkmm_exec_prefix"
20   gtkmm_config_exec_prefix="$withval"
21 else
22   gtkmm_config_exec_prefix=""
23 fi
24
25 ac_help="$ac_help
26   --disable-gtkmmtest     Do not try to compile and run a test GTK-- program"
27 # Check whether --enable-gtkmmtest or --disable-gtkmmtest was given.
28 if test "${enable_gtkmmtest+set}" = set; then
29   enableval="$enable_gtkmmtest"
30   :
31 else
32   enable_gtkmmtest=yes
33 fi
34
35
36   if test x$gtkmm_config_exec_prefix != x ; then
37      gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
38      if test x${GTKMM_CONFIG+set} != xset ; then
39         GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
40      fi
41   fi
42   if test x$gtkmm_config_prefix != x ; then
43      gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
44      if test x${GTKMM_CONFIG+set} != xset ; then
45         GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
46      fi
47   fi
48
49
50
51
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt   98-08-21  (adapted from Jan Nieuwenhuizen's code)
54
55
56
57
58
59
60 # Guess values for system-dependent variables and create Makefiles.
61 # Generated automatically using autoconf version 2.13 
62 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
63 #
64 # This configure script is free software; the Free Software Foundation
65 # gives unlimited permission to copy, distribute and modify it.
66
67 # Defaults:
68 ac_help=
69 ac_default_prefix=/usr/local
70 # Any additions from configure.in:
71 ac_help="$ac_help
72   enable-config=FILE      put configure settings in config-FILE.make"
73 ac_help="$ac_help
74   enable-checking         set runtime checks (assert calls). Default: on"
75 ac_help="$ac_help
76   enable-optimise         use maximal speed optimisations. Default: off"
77 ac_help="$ac_help
78   enable-profiling        compile with gprof support. Default: off"
79 ac_help="$ac_help
80   enable-debugging        set debug info. Default: on"
81 ac_help="$ac_help
82   enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
83 ac_help="$ac_help
84   enable-printing         turn on debug printing. Default: off"
85 ac_help="$ac_help
86   with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale "
87 ac_help="$ac_help
88   with-lang=LANG          use LANG as language to emit messages"
89 ac_help="$ac_help
90   enable-tex-tfmdir=DIR   set the tex-directory where cmr10.tfm lives (default: use kpsewhich)"
91
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
95 build=NONE
96 cache_file=./config.cache
97 exec_prefix=NONE
98 host=NONE
99 no_create=
100 nonopt=NONE
101 no_recursion=
102 prefix=NONE
103 program_prefix=NONE
104 program_suffix=NONE
105 program_transform_name=s,x,x,
106 silent=
107 site=
108 srcdir=
109 target=NONE
110 verbose=
111 x_includes=NONE
112 x_libraries=NONE
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
125
126 # Initialize some other variables.
127 subdirs=
128 MFLAGS= MAKEFLAGS=
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
131 ac_max_here_lines=12
132
133 ac_prev=
134 for ac_option
135 do
136
137   # If the previous option needs an argument, assign it.
138   if test -n "$ac_prev"; then
139     eval "$ac_prev=\$ac_option"
140     ac_prev=
141     continue
142   fi
143
144   case "$ac_option" in
145   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146   *) ac_optarg= ;;
147   esac
148
149   # Accept the important Cygnus configure options, so we can diagnose typos.
150
151   case "$ac_option" in
152
153   -bindir | --bindir | --bindi | --bind | --bin | --bi)
154     ac_prev=bindir ;;
155   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156     bindir="$ac_optarg" ;;
157
158   -build | --build | --buil | --bui | --bu)
159     ac_prev=build ;;
160   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161     build="$ac_optarg" ;;
162
163   -cache-file | --cache-file | --cache-fil | --cache-fi \
164   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165     ac_prev=cache_file ;;
166   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168     cache_file="$ac_optarg" ;;
169
170   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171     ac_prev=datadir ;;
172   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173   | --da=*)
174     datadir="$ac_optarg" ;;
175
176   -disable-* | --disable-*)
177     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178     # Reject names that are not valid shell variable names.
179     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181     fi
182     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183     eval "enable_${ac_feature}=no" ;;
184
185   -enable-* | --enable-*)
186     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187     # Reject names that are not valid shell variable names.
188     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190     fi
191     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192     case "$ac_option" in
193       *=*) ;;
194       *) ac_optarg=yes ;;
195     esac
196     eval "enable_${ac_feature}='$ac_optarg'" ;;
197
198   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200   | --exec | --exe | --ex)
201     ac_prev=exec_prefix ;;
202   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204   | --exec=* | --exe=* | --ex=*)
205     exec_prefix="$ac_optarg" ;;
206
207   -gas | --gas | --ga | --g)
208     # Obsolete; use --with-gas.
209     with_gas=yes ;;
210
211   -help | --help | --hel | --he)
212     # Omit some internal or obsolete options to make the list less imposing.
213     # This message is too long to be a string in the A/UX 3.1 sh.
214     cat << EOF
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
217 Configuration:
218   --cache-file=FILE       cache test results in FILE
219   --help                  print this message
220   --no-create             do not create output files
221   --quiet, --silent       do not print \`checking...' messages
222   --version               print the version of autoconf that created configure
223 Directory and file names:
224   --prefix=PREFIX         install architecture-independent files in PREFIX
225                           [$ac_default_prefix]
226   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
227                           [same as prefix]
228   --bindir=DIR            user executables in DIR [EPREFIX/bin]
229   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
230   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
231   --datadir=DIR           read-only architecture-independent data in DIR
232                           [PREFIX/share]
233   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
234   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
235                           [PREFIX/com]
236   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
237   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
238   --includedir=DIR        C header files in DIR [PREFIX/include]
239   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
240   --infodir=DIR           info documentation in DIR [PREFIX/info]
241   --mandir=DIR            man documentation in DIR [PREFIX/man]
242   --srcdir=DIR            find the sources in DIR [configure dir or ..]
243   --program-prefix=PREFIX prepend PREFIX to installed program names
244   --program-suffix=SUFFIX append SUFFIX to installed program names
245   --program-transform-name=PROGRAM
246                           run sed PROGRAM on installed program names
247 EOF
248     cat << EOF
249 Host type:
250   --build=BUILD           configure for building on BUILD [BUILD=HOST]
251   --host=HOST             configure for HOST [guessed]
252   --target=TARGET         configure for TARGET [TARGET=HOST]
253 Features and packages:
254   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
255   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
256   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
257   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
258   --x-includes=DIR        X include files are in DIR
259   --x-libraries=DIR       X library files are in DIR
260 EOF
261     if test -n "$ac_help"; then
262       echo "--enable and --with options recognized:$ac_help"
263     fi
264     exit 0 ;;
265
266   -host | --host | --hos | --ho)
267     ac_prev=host ;;
268   -host=* | --host=* | --hos=* | --ho=*)
269     host="$ac_optarg" ;;
270
271   -includedir | --includedir | --includedi | --included | --include \
272   | --includ | --inclu | --incl | --inc)
273     ac_prev=includedir ;;
274   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275   | --includ=* | --inclu=* | --incl=* | --inc=*)
276     includedir="$ac_optarg" ;;
277
278   -infodir | --infodir | --infodi | --infod | --info | --inf)
279     ac_prev=infodir ;;
280   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281     infodir="$ac_optarg" ;;
282
283   -libdir | --libdir | --libdi | --libd)
284     ac_prev=libdir ;;
285   -libdir=* | --libdir=* | --libdi=* | --libd=*)
286     libdir="$ac_optarg" ;;
287
288   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289   | --libexe | --libex | --libe)
290     ac_prev=libexecdir ;;
291   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292   | --libexe=* | --libex=* | --libe=*)
293     libexecdir="$ac_optarg" ;;
294
295   -localstatedir | --localstatedir | --localstatedi | --localstated \
296   | --localstate | --localstat | --localsta | --localst \
297   | --locals | --local | --loca | --loc | --lo)
298     ac_prev=localstatedir ;;
299   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302     localstatedir="$ac_optarg" ;;
303
304   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305     ac_prev=mandir ;;
306   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307     mandir="$ac_optarg" ;;
308
309   -nfp | --nfp | --nf)
310     # Obsolete; use --without-fp.
311     with_fp=no ;;
312
313   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314   | --no-cr | --no-c)
315     no_create=yes ;;
316
317   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319     no_recursion=yes ;;
320
321   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323   | --oldin | --oldi | --old | --ol | --o)
324     ac_prev=oldincludedir ;;
325   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328     oldincludedir="$ac_optarg" ;;
329
330   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331     ac_prev=prefix ;;
332   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333     prefix="$ac_optarg" ;;
334
335   -program-prefix | --program-prefix | --program-prefi | --program-pref \
336   | --program-pre | --program-pr | --program-p)
337     ac_prev=program_prefix ;;
338   -program-prefix=* | --program-prefix=* | --program-prefi=* \
339   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340     program_prefix="$ac_optarg" ;;
341
342   -program-suffix | --program-suffix | --program-suffi | --program-suff \
343   | --program-suf | --program-su | --program-s)
344     ac_prev=program_suffix ;;
345   -program-suffix=* | --program-suffix=* | --program-suffi=* \
346   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347     program_suffix="$ac_optarg" ;;
348
349   -program-transform-name | --program-transform-name \
350   | --program-transform-nam | --program-transform-na \
351   | --program-transform-n | --program-transform- \
352   | --program-transform | --program-transfor \
353   | --program-transfo | --program-transf \
354   | --program-trans | --program-tran \
355   | --progr-tra | --program-tr | --program-t)
356     ac_prev=program_transform_name ;;
357   -program-transform-name=* | --program-transform-name=* \
358   | --program-transform-nam=* | --program-transform-na=* \
359   | --program-transform-n=* | --program-transform-=* \
360   | --program-transform=* | --program-transfor=* \
361   | --program-transfo=* | --program-transf=* \
362   | --program-trans=* | --program-tran=* \
363   | --progr-tra=* | --program-tr=* | --program-t=*)
364     program_transform_name="$ac_optarg" ;;
365
366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367   | -silent | --silent | --silen | --sile | --sil)
368     silent=yes ;;
369
370   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371     ac_prev=sbindir ;;
372   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373   | --sbi=* | --sb=*)
374     sbindir="$ac_optarg" ;;
375
376   -sharedstatedir | --sharedstatedir | --sharedstatedi \
377   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378   | --sharedst | --shareds | --shared | --share | --shar \
379   | --sha | --sh)
380     ac_prev=sharedstatedir ;;
381   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384   | --sha=* | --sh=*)
385     sharedstatedir="$ac_optarg" ;;
386
387   -site | --site | --sit)
388     ac_prev=site ;;
389   -site=* | --site=* | --sit=*)
390     site="$ac_optarg" ;;
391
392   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393     ac_prev=srcdir ;;
394   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395     srcdir="$ac_optarg" ;;
396
397   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398   | --syscon | --sysco | --sysc | --sys | --sy)
399     ac_prev=sysconfdir ;;
400   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402     sysconfdir="$ac_optarg" ;;
403
404   -target | --target | --targe | --targ | --tar | --ta | --t)
405     ac_prev=target ;;
406   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407     target="$ac_optarg" ;;
408
409   -v | -verbose | --verbose | --verbos | --verbo | --verb)
410     verbose=yes ;;
411
412   -version | --version | --versio | --versi | --vers)
413     echo "configure generated by autoconf version 2.13"
414     exit 0 ;;
415
416   -with-* | --with-*)
417     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418     # Reject names that are not valid shell variable names.
419     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     fi
422     ac_package=`echo $ac_package| sed 's/-/_/g'`
423     case "$ac_option" in
424       *=*) ;;
425       *) ac_optarg=yes ;;
426     esac
427     eval "with_${ac_package}='$ac_optarg'" ;;
428
429   -without-* | --without-*)
430     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431     # Reject names that are not valid shell variable names.
432     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434     fi
435     ac_package=`echo $ac_package| sed 's/-/_/g'`
436     eval "with_${ac_package}=no" ;;
437
438   --x)
439     # Obsolete; use --with-x.
440     with_x=yes ;;
441
442   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443   | --x-incl | --x-inc | --x-in | --x-i)
444     ac_prev=x_includes ;;
445   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447     x_includes="$ac_optarg" ;;
448
449   -x-libraries | --x-libraries | --x-librarie | --x-librari \
450   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451     ac_prev=x_libraries ;;
452   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454     x_libraries="$ac_optarg" ;;
455
456   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457     ;;
458
459   *)
460     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461       echo "configure: warning: $ac_option: invalid host type" 1>&2
462     fi
463     if test "x$nonopt" != xNONE; then
464       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
465     fi
466     nonopt="$ac_option"
467     ;;
468
469   esac
470 done
471
472 if test -n "$ac_prev"; then
473   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 fi
475
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477
478 # File descriptor usage:
479 # 0 standard input
480 # 1 file creation
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
487   exec 6>/dev/null
488 else
489   exec 6>&1
490 fi
491 exec 5>./config.log
492
493 echo "\
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
496 " 1>&5
497
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
500 ac_configure_args=
501 for ac_arg
502 do
503   case "$ac_arg" in
504   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505   | --no-cr | --no-c) ;;
506   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511   esac
512 done
513
514 # NLS nuisances.
515 # Only set these to C if already set.  These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
523
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 echo > confdefs.h
528
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=make/lilypond.lsm.in
532
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535   ac_srcdir_defaulted=yes
536   # Try the directory containing this script, then its parent.
537   ac_prog=$0
538   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540   srcdir=$ac_confdir
541   if test ! -r $srcdir/$ac_unique_file; then
542     srcdir=..
543   fi
544 else
545   ac_srcdir_defaulted=no
546 fi
547 if test ! -r $srcdir/$ac_unique_file; then
548   if test "$ac_srcdir_defaulted" = yes; then
549     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550   else
551     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552   fi
553 fi
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558   if test "x$prefix" != xNONE; then
559     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560   else
561     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562   fi
563 fi
564 for ac_site_file in $CONFIG_SITE; do
565   if test -r "$ac_site_file"; then
566     echo "loading site script $ac_site_file"
567     . "$ac_site_file"
568   fi
569 done
570
571 if test -r "$cache_file"; then
572   echo "loading cache $cache_file"
573   . $cache_file
574 else
575   echo "creating cache $cache_file"
576   > $cache_file
577 fi
578
579 ac_ext=c
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
585
586 ac_exeext=
587 ac_objext=o
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591     ac_n= ac_c='
592 ' ac_t='        '
593   else
594     ac_n=-n ac_c= ac_t=
595   fi
596 else
597   ac_n= ac_c='\c' ac_t=
598 fi
599
600
601
602
603 # Bootstrap StepMake configure
604
605
606     . $srcdir/VERSION
607     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
608     if test x$MY_PATCH_LEVEL != x; then
609         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
610     fi
611
612     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
613         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
614     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
615     
616     # No versioning on directory names of sub-packages 
617     # urg, urg
618     stepmake=${datadir}/stepmake
619     presome=${prefix}
620     if test "$prefix" = "NONE"; then
621             presome=${ac_default_prefix}
622     fi
623     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
624
625     echo $ac_n "checking Package""... $ac_c" 1>&6
626 echo "configure:627: checking Package" >&5
627     if test "x$PACKAGE" = "xSTEPMAKE"; then
628         echo "$ac_t""Stepmake package!" 1>&6
629         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
630         (cd stepmake; rm -f bin; ln -s ../bin .)
631         ac_aux_dir=
632 for ac_dir in bin $srcdir/bin; do
633   if test -f $ac_dir/install-sh; then
634     ac_aux_dir=$ac_dir
635     ac_install_sh="$ac_aux_dir/install-sh -c"
636     break
637   elif test -f $ac_dir/install.sh; then
638     ac_aux_dir=$ac_dir
639     ac_install_sh="$ac_aux_dir/install.sh -c"
640     break
641   fi
642 done
643 if test -z "$ac_aux_dir"; then
644   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
645 fi
646 ac_config_guess=$ac_aux_dir/config.guess
647 ac_config_sub=$ac_aux_dir/config.sub
648 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
649
650         stepmake=stepmake
651     else
652         echo "$ac_t""$PACKAGE" 1>&6
653         echo $ac_n "checking for stepmake""... $ac_c" 1>&6
654 echo "configure:655: checking for stepmake" >&5
655         # Check for installed stepmake
656         if test -d $stepmake; then
657             echo "$ac_t""$stepmake" 1>&6
658         else
659             stepmake='$(depth)'/stepmake
660             echo "$ac_t""./stepmake  ($datadir/stepmake not found)" 1>&6
661         fi
662         ac_aux_dir=
663 for ac_dir in \
664           $HOME/usr/local/share/stepmake/bin\
665           $HOME/usr/local/lib/stepmake/bin\
666           $HOME/usr/share/stepmake/bin\
667           $HOME/usr/lib/stepmake/bin\
668           /usr/local/share/stepmake/bin\
669           /usr/local/lib/stepmake/bin\
670           /usr/share/stepmake/bin\
671           /usr/lib/stepmake/bin\
672           stepmake/bin\
673          $srcdir/\
674           $HOME/usr/local/share/stepmake/bin\
675           $HOME/usr/local/lib/stepmake/bin\
676           $HOME/usr/share/stepmake/bin\
677           $HOME/usr/lib/stepmake/bin\
678           /usr/local/share/stepmake/bin\
679           /usr/local/lib/stepmake/bin\
680           /usr/share/stepmake/bin\
681           /usr/lib/stepmake/bin\
682           stepmake/bin\
683         ; do
684   if test -f $ac_dir/install-sh; then
685     ac_aux_dir=$ac_dir
686     ac_install_sh="$ac_aux_dir/install-sh -c"
687     break
688   elif test -f $ac_dir/install.sh; then
689     ac_aux_dir=$ac_dir
690     ac_install_sh="$ac_aux_dir/install.sh -c"
691     break
692   fi
693 done
694 if test -z "$ac_aux_dir"; then
695   { echo "configure: error: can not find install-sh or install.sh in \
696           $HOME/usr/local/share/stepmake/bin\
697           $HOME/usr/local/lib/stepmake/bin\
698           $HOME/usr/share/stepmake/bin\
699           $HOME/usr/lib/stepmake/bin\
700           /usr/local/share/stepmake/bin\
701           /usr/local/lib/stepmake/bin\
702           /usr/share/stepmake/bin\
703           /usr/lib/stepmake/bin\
704           stepmake/bin\
705          $srcdir/\
706           $HOME/usr/local/share/stepmake/bin\
707           $HOME/usr/local/lib/stepmake/bin\
708           $HOME/usr/share/stepmake/bin\
709           $HOME/usr/lib/stepmake/bin\
710           /usr/local/share/stepmake/bin\
711           /usr/local/lib/stepmake/bin\
712           /usr/share/stepmake/bin\
713           /usr/lib/stepmake/bin\
714           stepmake/bin\
715         " 1>&2; exit 1; }
716 fi
717 ac_config_guess=$ac_aux_dir/config.guess
718 ac_config_sub=$ac_aux_dir/config.sub
719 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
720
721     fi
722
723     
724     
725     
726     
727     cat >> confdefs.h <<EOF
728 #define PACKAGE "${PACKAGE_NAME}"
729 EOF
730
731     cat >> confdefs.h <<EOF
732 #define TOPLEVEL_VERSION "${FULL_VERSION}"
733 EOF
734
735
736     if test "$package_depth" = "" ; then
737         package_depth="."
738     else
739         package_depth="../$package_depth"
740     fi
741     export package_depth
742     
743
744     AUTOGENERATE="This file was automatically generated by configure"
745     
746     absolute_builddir="`pwd`"
747     
748
749     STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
750     if test "x$STATE_VECTOR" != "x"; then
751         STATE_VECTOR="\$(depth)/$STATE_VECTOR"
752     fi
753     
754
755     CONFIGSUFFIX=
756     # Check whether --enable-config or --disable-config was given.
757 if test "${enable_config+set}" = set; then
758   enableval="$enable_config"
759   CONFIGSUFFIX=$enableval
760 fi
761
762
763     if test "$CONFIGSUFFIX" != "" ; then
764         CONFIGFILE=config-$CONFIGSUFFIX
765     else
766         CONFIGFILE=config
767     fi
768     
769      
770     
771 # Make sure we can run config.sub.
772 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
773 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
774 fi
775
776 echo $ac_n "checking host system type""... $ac_c" 1>&6
777 echo "configure:778: checking host system type" >&5
778
779 host_alias=$host
780 case "$host_alias" in
781 NONE)
782   case $nonopt in
783   NONE)
784     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
785     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
786     fi ;;
787   *) host_alias=$nonopt ;;
788   esac ;;
789 esac
790
791 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
792 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
793 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
794 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
795 echo "$ac_t""$host" 1>&6
796
797     for ac_prog in gmake make
798 do
799 # Extract the first word of "$ac_prog", so it can be a program name with args.
800 set dummy $ac_prog; ac_word=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
804   echo $ac_n "(cached) $ac_c" 1>&6
805 else
806   if test -n "$MAKE"; then
807   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
808 else
809   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
810   ac_dummy="$PATH"
811   for ac_dir in $ac_dummy; do
812     test -z "$ac_dir" && ac_dir=.
813     if test -f $ac_dir/$ac_word; then
814       ac_cv_prog_MAKE="$ac_prog"
815       break
816     fi
817   done
818   IFS="$ac_save_ifs"
819 fi
820 fi
821 MAKE="$ac_cv_prog_MAKE"
822 if test -n "$MAKE"; then
823   echo "$ac_t""$MAKE" 1>&6
824 else
825   echo "$ac_t""no" 1>&6
826 fi
827
828 test -n "$MAKE" && break
829 done
830 test -n "$MAKE" || MAKE="error"
831
832     for ac_prog in find
833 do
834 # Extract the first word of "$ac_prog", so it can be a program name with args.
835 set dummy $ac_prog; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
839   echo $ac_n "(cached) $ac_c" 1>&6
840 else
841   if test -n "$FIND"; then
842   ac_cv_prog_FIND="$FIND" # Let the user override the test.
843 else
844   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
845   ac_dummy="$PATH"
846   for ac_dir in $ac_dummy; do
847     test -z "$ac_dir" && ac_dir=.
848     if test -f $ac_dir/$ac_word; then
849       ac_cv_prog_FIND="$ac_prog"
850       break
851     fi
852   done
853   IFS="$ac_save_ifs"
854 fi
855 fi
856 FIND="$ac_cv_prog_FIND"
857 if test -n "$FIND"; then
858   echo "$ac_t""$FIND" 1>&6
859 else
860   echo "$ac_t""no" 1>&6
861 fi
862
863 test -n "$FIND" && break
864 done
865 test -n "$FIND" || FIND="error"
866
867
868
869     for ac_prog in tar
870 do
871 # Extract the first word of "$ac_prog", so it can be a program name with args.
872 set dummy $ac_prog; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
876   echo $ac_n "(cached) $ac_c" 1>&6
877 else
878   if test -n "$TAR"; then
879   ac_cv_prog_TAR="$TAR" # Let the user override the test.
880 else
881   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
882   ac_dummy="$PATH"
883   for ac_dir in $ac_dummy; do
884     test -z "$ac_dir" && ac_dir=.
885     if test -f $ac_dir/$ac_word; then
886       ac_cv_prog_TAR="$ac_prog"
887       break
888     fi
889   done
890   IFS="$ac_save_ifs"
891 fi
892 fi
893 TAR="$ac_cv_prog_TAR"
894 if test -n "$TAR"; then
895   echo "$ac_t""$TAR" 1>&6
896 else
897   echo "$ac_t""no" 1>&6
898 fi
899
900 test -n "$TAR" && break
901 done
902 test -n "$TAR" || TAR="error"
903
904
905     if test "x`uname`" = "xHP-UX"; then
906         # Extract the first word of "bash", so it can be a program name with args.
907 set dummy bash; ac_word=$2
908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
909 echo "configure:910: checking for $ac_word" >&5
910 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
911   echo $ac_n "(cached) $ac_c" 1>&6
912 else
913   case "$BASH" in
914   /*)
915   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
916   ;;
917   ?:/*)                  
918   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
919   ;;
920   *)
921   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
922   ac_dummy="$PATH"
923   for ac_dir in $ac_dummy; do 
924     test -z "$ac_dir" && ac_dir=.
925     if test -f $ac_dir/$ac_word; then
926       ac_cv_path_BASH="$ac_dir/$ac_word"
927       break
928     fi
929   done
930   IFS="$ac_save_ifs"
931   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
932   ;;
933 esac
934 fi
935 BASH="$ac_cv_path_BASH"
936 if test -n "$BASH"; then
937   echo "$ac_t""$BASH" 1>&6
938 else
939   echo "$ac_t""no" 1>&6
940 fi
941
942         
943     echo "configure: warning: avoiding buggy /bin/sh" 1>&2
944     warn_b=yes
945
946         # Extract the first word of "bash", so it can be a program name with args.
947 set dummy bash; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
951   echo $ac_n "(cached) $ac_c" 1>&6
952 else
953   case "$SHELL" in
954   /*)
955   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
956   ;;
957   ?:/*)                  
958   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
959   ;;
960   *)
961   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
962   ac_dummy="$PATH"
963   for ac_dir in $ac_dummy; do 
964     test -z "$ac_dir" && ac_dir=.
965     if test -f $ac_dir/$ac_word; then
966       ac_cv_path_SHELL="$ac_dir/$ac_word"
967       break
968     fi
969   done
970   IFS="$ac_save_ifs"
971   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
972   ;;
973 esac
974 fi
975 SHELL="$ac_cv_path_SHELL"
976 if test -n "$SHELL"; then
977   echo "$ac_t""$SHELL" 1>&6
978 else
979   echo "$ac_t""no" 1>&6
980 fi
981
982     else
983         # Extract the first word of "bash", so it can be a program name with args.
984 set dummy bash; 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_path_BASH'+set}'`\" = set"; then
988   echo $ac_n "(cached) $ac_c" 1>&6
989 else
990   case "$BASH" in
991   /*)
992   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
993   ;;
994   ?:/*)                  
995   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
996   ;;
997   *)
998   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
999   ac_dummy="$PATH"
1000   for ac_dir in $ac_dummy; do 
1001     test -z "$ac_dir" && ac_dir=.
1002     if test -f $ac_dir/$ac_word; then
1003       ac_cv_path_BASH="$ac_dir/$ac_word"
1004       break
1005     fi
1006   done
1007   IFS="$ac_save_ifs"
1008   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1009   ;;
1010 esac
1011 fi
1012 BASH="$ac_cv_path_BASH"
1013 if test -n "$BASH"; then
1014   echo "$ac_t""$BASH" 1>&6
1015 else
1016   echo "$ac_t""no" 1>&6
1017 fi
1018
1019         SHELL=/bin/sh
1020         
1021     fi
1022
1023
1024     # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1025 set dummy ${PYTHON:-python}; ac_word=$2
1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027 echo "configure:1028: checking for $ac_word" >&5
1028 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1029   echo $ac_n "(cached) $ac_c" 1>&6
1030 else
1031   case "$PYTHON" in
1032   /*)
1033   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1034   ;;
1035   ?:/*)                  
1036   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1037   ;;
1038   *)
1039   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1040   ac_dummy="$PATH"
1041   for ac_dir in $ac_dummy; do 
1042     test -z "$ac_dir" && ac_dir=.
1043     if test -f $ac_dir/$ac_word; then
1044       ac_cv_path_PYTHON="$ac_dir/$ac_word"
1045       break
1046     fi
1047   done
1048   IFS="$ac_save_ifs"
1049   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1050   ;;
1051 esac
1052 fi
1053 PYTHON="$ac_cv_path_PYTHON"
1054 if test -n "$PYTHON"; then
1055   echo "$ac_t""$PYTHON" 1>&6
1056 else
1057   echo "$ac_t""no" 1>&6
1058 fi
1059
1060     
1061
1062     if test $MAKE != "error" ; then
1063         $MAKE -v 2> /dev/null | grep GNU > /dev/null
1064         if test "$?" = 1
1065         then
1066                 
1067     echo "configure: warning: Please install *GNU* make" 1>&2
1068     warn_b=yes
1069  
1070         fi
1071     fi 
1072
1073     
1074         result="`echo \"$PYTHON\" | grep echo`"
1075         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1076                 
1077     echo "configure: warning: can\'t find python. You should install Python" 1>&2
1078     warn_b=yes
1079
1080         fi
1081
1082
1083     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1084         LN=cp # hard link does not work under cygnus-nt
1085         LN_S='cp -r' # symbolic link does not work for native nt
1086         ZIP="zip -r -9" #
1087         DOTEXE=.exe
1088         # urg
1089         # DIRSEP='\\'
1090         # PATHSEP=';'
1091         #
1092         # cygwin fixes all these things.  
1093         # it seems these were used because of dos-style TEXINPUTS and
1094         # MFINPUTS needed for miktex.
1095         # but this breaks parsing of all other cygwin/unix style paths.
1096         #
1097         # if your (mik)tex breaks, make a:
1098         #    /usr/local/bin/tex:
1099         #    #!/bin/sh
1100         #    TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex 
1101         #
1102         # and
1103         #
1104         #    /usr/local/bin/mf:
1105         #    #!/bin/sh
1106         #    MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf 
1107         #
1108         # this way, you may have buildscripts/out/lilypond-profile 
1109         # 'automatically' sourced from /usr/etc/profile.d/ too.
1110         #
1111         DIRSEP='/'
1112         PATHSEP=':'
1113         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1114     else
1115         DIRSEP='/'
1116         PATHSEP=':'
1117         LN=ln
1118         LN_S='ln -s'
1119         ZIP="zip -r -9"
1120         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1121     fi
1122     
1123     
1124     
1125     
1126     
1127     cat >> confdefs.h <<EOF
1128 #define DIRSEP '${DIRSEP}'
1129 EOF
1130
1131     cat >> confdefs.h <<EOF
1132 #define PATHSEP '${PATHSEP}'
1133 EOF
1134
1135     
1136     
1137   
1138    
1139     
1140     if test "$datadir" = "\${prefix}/share"; then
1141             datadir='${prefix}/share/'$package
1142     fi
1143     DIR_DATADIR=${datadir}
1144     presome=${prefix}
1145     if test "$prefix" = "NONE"; then
1146             presome=${ac_default_prefix}
1147     fi
1148     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1149     
1150     
1151     cat >> confdefs.h <<EOF
1152 #define DIR_DATADIR "${DIR_DATADIR}"
1153 EOF
1154
1155
1156
1157
1158 # For all packages except the StepMake package itself
1159 subdirs="stepmake"
1160
1161
1162 # Uncomment the configuration options your package needs.
1163
1164     # -O is necessary to get inlining
1165     OPTIMIZE=""
1166     CXXFLAGS=${CXXFLAGS:-""}
1167     CFLAGS=${CFLAGS:-""}
1168     checking_b=yes
1169     optimise_b=no
1170     profile_b=no
1171     debug_b=yes
1172
1173     # Check whether --enable-checking or --disable-checking was given.
1174 if test "${enable_checking+set}" = set; then
1175   enableval="$enable_checking"
1176   checking_b=$enableval 
1177 fi
1178
1179
1180     # actually, the default is: tja='-O' to get inlining...
1181     # off=''  --jcn
1182
1183     #actually, that sucks.
1184     #  tja looks like a typo.  Default is optimisation off. --hwn
1185     
1186     # Check whether --enable-optimise or --disable-optimise was given.
1187 if test "${enable_optimise+set}" = set; then
1188   enableval="$enable_optimise"
1189   optimise_b=$enableval
1190 fi
1191
1192     
1193     # Check whether --enable-profiling or --disable-profiling was given.
1194 if test "${enable_profiling+set}" = set; then
1195   enableval="$enable_profiling"
1196   profile_b=$enableval
1197 fi
1198
1199     
1200     # Check whether --enable-debugging or --disable-debugging was given.
1201 if test "${enable_debugging+set}" = set; then
1202   enableval="$enable_debugging"
1203   debug_b=$enableval
1204 fi
1205
1206
1207     # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1208 if test "${enable_mingw_prefix+set}" = set; then
1209   enableval="$enable_mingw_prefix"
1210   MINGWPREFIX=$enableval
1211 else
1212   MINGWPREFIX=no
1213 fi
1214
1215
1216     if test "$printing_b" = no; then
1217         # ugh
1218         cat >> confdefs.h <<\EOF
1219 #define NPRINT 1
1220 EOF
1221
1222         DEFINES="$DEFINES -DNPRINT"
1223     fi
1224         
1225     if test "$checking_b" = no; then
1226         # ugh
1227         cat >> confdefs.h <<\EOF
1228 #define NDEBUG 1
1229 EOF
1230
1231         DEFINES="$DEFINES -DNDEBUG"
1232     fi
1233
1234     if test "$optimise_b" = yes; then
1235         OPTIMIZE="-O2 -finline-functions"
1236     fi
1237
1238     if test "$optimise_b" = no; then
1239         OPTIMIZE=""
1240     fi
1241
1242     if test $profile_b = yes; then
1243         EXTRA_LIBES="-pg"
1244         OPTIMIZE="$OPTIMIZE -pg"
1245     fi
1246
1247     if test $debug_b = yes; then        
1248         OPTIMIZE="$OPTIMIZE -g"
1249     fi
1250
1251     # however, C++ support in mingw32 v 0.1.4 is still flaky
1252     if test x$MINGWPREFIX != xno; then 
1253         ICFLAGS="-I$MINGWPREFIX/include"
1254         ILDFLAGS="-$MINGWPREFIX/lib"
1255     fi
1256
1257     # Extract the first word of "gcc", so it can be a program name with args.
1258 set dummy gcc; ac_word=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1262   echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264   if test -n "$CC"; then
1265   ac_cv_prog_CC="$CC" # Let the user override the test.
1266 else
1267   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1268   ac_dummy="$PATH"
1269   for ac_dir in $ac_dummy; do
1270     test -z "$ac_dir" && ac_dir=.
1271     if test -f $ac_dir/$ac_word; then
1272       ac_cv_prog_CC="gcc"
1273       break
1274     fi
1275   done
1276   IFS="$ac_save_ifs"
1277 fi
1278 fi
1279 CC="$ac_cv_prog_CC"
1280 if test -n "$CC"; then
1281   echo "$ac_t""$CC" 1>&6
1282 else
1283   echo "$ac_t""no" 1>&6
1284 fi
1285
1286 if test -z "$CC"; then
1287   # Extract the first word of "cc", so it can be a program name with args.
1288 set dummy cc; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1292   echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294   if test -n "$CC"; then
1295   ac_cv_prog_CC="$CC" # Let the user override the test.
1296 else
1297   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1298   ac_prog_rejected=no
1299   ac_dummy="$PATH"
1300   for ac_dir in $ac_dummy; do
1301     test -z "$ac_dir" && ac_dir=.
1302     if test -f $ac_dir/$ac_word; then
1303       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1304         ac_prog_rejected=yes
1305         continue
1306       fi
1307       ac_cv_prog_CC="cc"
1308       break
1309     fi
1310   done
1311   IFS="$ac_save_ifs"
1312 if test $ac_prog_rejected = yes; then
1313   # We found a bogon in the path, so make sure we never use it.
1314   set dummy $ac_cv_prog_CC
1315   shift
1316   if test $# -gt 0; then
1317     # We chose a different compiler from the bogus one.
1318     # However, it has the same basename, so the bogon will be chosen
1319     # first if we set CC to just the basename; use the full file name.
1320     shift
1321     set dummy "$ac_dir/$ac_word" "$@"
1322     shift
1323     ac_cv_prog_CC="$@"
1324   fi
1325 fi
1326 fi
1327 fi
1328 CC="$ac_cv_prog_CC"
1329 if test -n "$CC"; then
1330   echo "$ac_t""$CC" 1>&6
1331 else
1332   echo "$ac_t""no" 1>&6
1333 fi
1334
1335   if test -z "$CC"; then
1336     case "`uname -s`" in
1337     *win32* | *WIN32*)
1338       # Extract the first word of "cl", so it can be a program name with args.
1339 set dummy cl; ac_word=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1343   echo $ac_n "(cached) $ac_c" 1>&6
1344 else
1345   if test -n "$CC"; then
1346   ac_cv_prog_CC="$CC" # Let the user override the test.
1347 else
1348   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1349   ac_dummy="$PATH"
1350   for ac_dir in $ac_dummy; do
1351     test -z "$ac_dir" && ac_dir=.
1352     if test -f $ac_dir/$ac_word; then
1353       ac_cv_prog_CC="cl"
1354       break
1355     fi
1356   done
1357   IFS="$ac_save_ifs"
1358 fi
1359 fi
1360 CC="$ac_cv_prog_CC"
1361 if test -n "$CC"; then
1362   echo "$ac_t""$CC" 1>&6
1363 else
1364   echo "$ac_t""no" 1>&6
1365 fi
1366  ;;
1367     esac
1368   fi
1369   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1370 fi
1371
1372 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1373 echo "configure:1374: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1374
1375 ac_ext=c
1376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1380 cross_compiling=$ac_cv_prog_cc_cross
1381
1382 cat > conftest.$ac_ext << EOF
1383
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386
1387 main(){return(0);}
1388 EOF
1389 if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1390   ac_cv_prog_cc_works=yes
1391   # If we can't run a trivial program, we are probably using a cross compiler.
1392   if (./conftest; exit) 2>/dev/null; then
1393     ac_cv_prog_cc_cross=no
1394   else
1395     ac_cv_prog_cc_cross=yes
1396   fi
1397 else
1398   echo "configure: failed program was:" >&5
1399   cat conftest.$ac_ext >&5
1400   ac_cv_prog_cc_works=no
1401 fi
1402 rm -fr conftest*
1403 ac_ext=c
1404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1405 ac_cpp='$CPP $CPPFLAGS'
1406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1408 cross_compiling=$ac_cv_prog_cc_cross
1409
1410 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1411 if test $ac_cv_prog_cc_works = no; then
1412   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1413 fi
1414 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1415 echo "configure:1416: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1416 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1417 cross_compiling=$ac_cv_prog_cc_cross
1418
1419 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether we are using GNU C" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1422   echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424   cat > conftest.c <<EOF
1425 #ifdef __GNUC__
1426   yes;
1427 #endif
1428 EOF
1429 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1430   ac_cv_prog_gcc=yes
1431 else
1432   ac_cv_prog_gcc=no
1433 fi
1434 fi
1435
1436 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1437
1438 if test $ac_cv_prog_gcc = yes; then
1439   GCC=yes
1440 else
1441   GCC=
1442 fi
1443
1444 ac_test_CFLAGS="${CFLAGS+set}"
1445 ac_save_CFLAGS="$CFLAGS"
1446 CFLAGS=
1447 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1448 echo "configure:1449: checking whether ${CC-cc} accepts -g" >&5
1449 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1450   echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452   echo 'void f(){}' > conftest.c
1453 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1454   ac_cv_prog_cc_g=yes
1455 else
1456   ac_cv_prog_cc_g=no
1457 fi
1458 rm -f conftest*
1459
1460 fi
1461
1462 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1463 if test "$ac_test_CFLAGS" = set; then
1464   CFLAGS="$ac_save_CFLAGS"
1465 elif test $ac_cv_prog_cc_g = yes; then
1466   if test "$GCC" = yes; then
1467     CFLAGS="-g -O2"
1468   else
1469     CFLAGS="-g"
1470   fi
1471 else
1472   if test "$GCC" = yes; then
1473     CFLAGS="-O2"
1474   else
1475     CFLAGS=
1476   fi
1477 fi
1478
1479     LD='$(CC)'
1480     
1481
1482     CFLAGS="$CFLAGS $OPTIMIZE"
1483     CPPFLAGS=${CPPFLAGS:-""}
1484     
1485     
1486     
1487     
1488     
1489     
1490     
1491
1492 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1493
1494 printing_b=no
1495 # Check whether --enable-printing or --disable-printing was given.
1496 if test "${enable_printing+set}" = set; then
1497   enableval="$enable_printing"
1498   printing_b=$enableval
1499 fi
1500
1501     
1502 if test "$optimise_b" = yes; then
1503     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1504     cat >> confdefs.h <<\EOF
1505 #define STRINGS_UTILS_INLINED 1
1506 EOF
1507
1508 fi
1509
1510 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1511 echo "configure:1512: checking how to run the C++ preprocessor" >&5
1512 if test -z "$CXXCPP"; then
1513 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1514   echo $ac_n "(cached) $ac_c" 1>&6
1515 else
1516   ac_ext=C
1517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1518 ac_cpp='$CXXCPP $CPPFLAGS'
1519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1521 cross_compiling=$ac_cv_prog_cxx_cross
1522   CXXCPP="${CXX-g++} -E"
1523   cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 #include <stdlib.h>
1527 EOF
1528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1529 { (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1531 if test -z "$ac_err"; then
1532   :
1533 else
1534   echo "$ac_err" >&5
1535   echo "configure: failed program was:" >&5
1536   cat conftest.$ac_ext >&5
1537   rm -rf conftest*
1538   CXXCPP=/lib/cpp
1539 fi
1540 rm -f conftest*
1541   ac_cv_prog_CXXCPP="$CXXCPP"
1542 ac_ext=C
1543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1544 ac_cpp='$CXXCPP $CPPFLAGS'
1545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1547 cross_compiling=$ac_cv_prog_cxx_cross
1548 fi
1549 fi
1550 CXXCPP="$ac_cv_prog_CXXCPP"
1551 echo "$ac_t""$CXXCPP" 1>&6
1552
1553
1554     ac_ext=C
1555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1556 ac_cpp='$CXXCPP $CPPFLAGS'
1557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1559 cross_compiling=$ac_cv_prog_cxx_cross
1560
1561     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1562 do
1563 # Extract the first word of "$ac_prog", so it can be a program name with args.
1564 set dummy $ac_prog; ac_word=$2
1565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1566 echo "configure:1567: checking for $ac_word" >&5
1567 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1568   echo $ac_n "(cached) $ac_c" 1>&6
1569 else
1570   if test -n "$CXX"; then
1571   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1572 else
1573   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1574   ac_dummy="$PATH"
1575   for ac_dir in $ac_dummy; do
1576     test -z "$ac_dir" && ac_dir=.
1577     if test -f $ac_dir/$ac_word; then
1578       ac_cv_prog_CXX="$ac_prog"
1579       break
1580     fi
1581   done
1582   IFS="$ac_save_ifs"
1583 fi
1584 fi
1585 CXX="$ac_cv_prog_CXX"
1586 if test -n "$CXX"; then
1587   echo "$ac_t""$CXX" 1>&6
1588 else
1589   echo "$ac_t""no" 1>&6
1590 fi
1591
1592 test -n "$CXX" && break
1593 done
1594 test -n "$CXX" || CXX="gcc"
1595
1596
1597 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1598 echo "configure:1599: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1599
1600 ac_ext=C
1601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1602 ac_cpp='$CXXCPP $CPPFLAGS'
1603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1605 cross_compiling=$ac_cv_prog_cxx_cross
1606
1607 cat > conftest.$ac_ext << EOF
1608
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611
1612 int main(){return(0);}
1613 EOF
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1615   ac_cv_prog_cxx_works=yes
1616   # If we can't run a trivial program, we are probably using a cross compiler.
1617   if (./conftest; exit) 2>/dev/null; then
1618     ac_cv_prog_cxx_cross=no
1619   else
1620     ac_cv_prog_cxx_cross=yes
1621   fi
1622 else
1623   echo "configure: failed program was:" >&5
1624   cat conftest.$ac_ext >&5
1625   ac_cv_prog_cxx_works=no
1626 fi
1627 rm -fr conftest*
1628 ac_ext=C
1629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1630 ac_cpp='$CXXCPP $CPPFLAGS'
1631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1633 cross_compiling=$ac_cv_prog_cxx_cross
1634
1635 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1636 if test $ac_cv_prog_cxx_works = no; then
1637   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1638 fi
1639 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1640 echo "configure:1641: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1641 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1642 cross_compiling=$ac_cv_prog_cxx_cross
1643
1644 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1645 echo "configure:1646: checking whether we are using GNU C++" >&5
1646 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1647   echo $ac_n "(cached) $ac_c" 1>&6
1648 else
1649   cat > conftest.C <<EOF
1650 #ifdef __GNUC__
1651   yes;
1652 #endif
1653 EOF
1654 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1655   ac_cv_prog_gxx=yes
1656 else
1657   ac_cv_prog_gxx=no
1658 fi
1659 fi
1660
1661 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1662
1663 if test $ac_cv_prog_gxx = yes; then
1664   GXX=yes
1665 else
1666   GXX=
1667 fi
1668
1669 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1670 ac_save_CXXFLAGS="$CXXFLAGS"
1671 CXXFLAGS=
1672 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether ${CXX-g++} accepts -g" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1675   echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677   echo 'void f(){}' > conftest.cc
1678 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1679   ac_cv_prog_cxx_g=yes
1680 else
1681   ac_cv_prog_cxx_g=no
1682 fi
1683 rm -f conftest*
1684
1685 fi
1686
1687 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1688 if test "$ac_test_CXXFLAGS" = set; then
1689   CXXFLAGS="$ac_save_CXXFLAGS"
1690 elif test $ac_cv_prog_cxx_g = yes; then
1691   if test "$GXX" = yes; then
1692     CXXFLAGS="-g -O2"
1693   else
1694     CXXFLAGS="-g"
1695   fi
1696 else
1697   if test "$GXX" = yes; then
1698     CXXFLAGS="-O2"
1699   else
1700     CXXFLAGS=
1701   fi
1702 fi
1703
1704
1705     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1706 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1707 echo "configure:1708: checking for FlexLexer.h" >&5
1708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1709   echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711   cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include <FlexLexer.h>
1715 EOF
1716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1719 if test -z "$ac_err"; then
1720   rm -rf conftest*
1721   eval "ac_cv_header_$ac_safe=yes"
1722 else
1723   echo "$ac_err" >&5
1724   echo "configure: failed program was:" >&5
1725   cat conftest.$ac_ext >&5
1726   rm -rf conftest*
1727   eval "ac_cv_header_$ac_safe=no"
1728 fi
1729 rm -f conftest*
1730 fi
1731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1732   echo "$ac_t""yes" 1>&6
1733   true
1734 else
1735   echo "$ac_t""no" 1>&6
1736
1737     echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1738     warn_b=yes
1739
1740 fi
1741
1742
1743     CPPFLAGS="$CPPFLAGS $DEFINES"
1744     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1745     LDFLAGS=$EXTRA_LIBES
1746
1747     
1748     
1749     LD='$(CXX)'
1750     
1751
1752
1753     # ugh autoconf
1754     # urg, egcs: how to check for egcs >= 1.1?
1755         if $CXX --version | grep '2\.8' > /dev/null ||
1756         $CXX --version | grep 'egcs' > /dev/null
1757         then
1758             true
1759     else
1760             
1761     echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2
1762     warn_b=yes
1763
1764     fi
1765
1766
1767     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether explicit instantiation is needed" >&5
1769 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1770   echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772   cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775
1776     template <class T> struct foo { static int baz; };
1777     template <class T> int foo<T>::baz = 1;
1778     
1779 int main() {
1780  return foo<int>::baz; 
1781 ; return 0; }
1782 EOF
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784   rm -rf conftest*
1785   lily_cv_need_explicit_instantiation=no
1786 else
1787   echo "configure: failed program was:" >&5
1788   cat conftest.$ac_ext >&5
1789   rm -rf conftest*
1790   lily_cv_need_explicit_instantiation=yes
1791 fi
1792 rm -f conftest*
1793 fi
1794
1795 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1796     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1797         cat >> confdefs.h <<\EOF
1798 #define NEED_EXPLICIT_INSTANTIATION 1
1799 EOF
1800
1801     fi
1802
1803
1804     # ugh, automake: we want (and check for) bison
1805     for ac_prog in 'bison -y' byacc
1806 do
1807 # Extract the first word of "$ac_prog", so it can be a program name with args.
1808 set dummy $ac_prog; ac_word=$2
1809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_word" >&5
1811 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1812   echo $ac_n "(cached) $ac_c" 1>&6
1813 else
1814   if test -n "$YACC"; then
1815   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1816 else
1817   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1818   ac_dummy="$PATH"
1819   for ac_dir in $ac_dummy; do
1820     test -z "$ac_dir" && ac_dir=.
1821     if test -f $ac_dir/$ac_word; then
1822       ac_cv_prog_YACC="$ac_prog"
1823       break
1824     fi
1825   done
1826   IFS="$ac_save_ifs"
1827 fi
1828 fi
1829 YACC="$ac_cv_prog_YACC"
1830 if test -n "$YACC"; then
1831   echo "$ac_t""$YACC" 1>&6
1832 else
1833   echo "$ac_t""no" 1>&6
1834 fi
1835
1836 test -n "$YACC" && break
1837 done
1838 test -n "$YACC" || YACC="yacc"
1839
1840     # ugh, automake: we want (and check for) flex
1841     # AC_PROG_LEX
1842     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1843
1844     # AC_DECL_YYTEXT
1845     # ugh, ugh
1846     ac_cv_prog_lex_root=lex.yy
1847
1848     for ac_prog in bison
1849 do
1850 # Extract the first word of "$ac_prog", so it can be a program name with args.
1851 set dummy $ac_prog; ac_word=$2
1852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_word" >&5
1854 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1855   echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857   if test -n "$BISON"; then
1858   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1859 else
1860   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1861   ac_dummy="$PATH"
1862   for ac_dir in $ac_dummy; do
1863     test -z "$ac_dir" && ac_dir=.
1864     if test -f $ac_dir/$ac_word; then
1865       ac_cv_prog_BISON="$ac_prog"
1866       break
1867     fi
1868   done
1869   IFS="$ac_save_ifs"
1870 fi
1871 fi
1872 BISON="$ac_cv_prog_BISON"
1873 if test -n "$BISON"; then
1874   echo "$ac_t""$BISON" 1>&6
1875 else
1876   echo "$ac_t""no" 1>&6
1877 fi
1878
1879 test -n "$BISON" && break
1880 done
1881 test -n "$BISON" || BISON="error"
1882
1883     for ac_prog in flex
1884 do
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $ac_word" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1890   echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892   if test -n "$FLEX"; then
1893   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1894 else
1895   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1896   ac_dummy="$PATH"
1897   for ac_dir in $ac_dummy; do
1898     test -z "$ac_dir" && ac_dir=.
1899     if test -f $ac_dir/$ac_word; then
1900       ac_cv_prog_FLEX="$ac_prog"
1901       break
1902     fi
1903   done
1904   IFS="$ac_save_ifs"
1905 fi
1906 fi
1907 FLEX="$ac_cv_prog_FLEX"
1908 if test -n "$FLEX"; then
1909   echo "$ac_t""$FLEX" 1>&6
1910 else
1911   echo "$ac_t""no" 1>&6
1912 fi
1913
1914 test -n "$FLEX" && break
1915 done
1916 test -n "$FLEX" || FLEX="error"
1917
1918     
1919         result="`echo \"$BISON\" | grep echo`"
1920         if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1921                 
1922     echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1923     warn_b=yes
1924
1925         fi
1926
1927     
1928         result="`echo \"$FLEX\" | grep echo`"
1929         if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1930                 
1931     echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1932     warn_b=yes
1933
1934         fi
1935
1936
1937     if test $BISON != "error"; then
1938         bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
1939         if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
1940             
1941     echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1942     warn_b=yes
1943
1944         fi      
1945     fi
1946
1947     
1948     
1949
1950
1951     for ac_prog in ar
1952 do
1953 # Extract the first word of "$ac_prog", so it can be a program name with args.
1954 set dummy $ac_prog; ac_word=$2
1955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_word" >&5
1957 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1958   echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960   if test -n "$AR"; then
1961   ac_cv_prog_AR="$AR" # Let the user override the test.
1962 else
1963   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1964   ac_dummy="$PATH"
1965   for ac_dir in $ac_dummy; do
1966     test -z "$ac_dir" && ac_dir=.
1967     if test -f $ac_dir/$ac_word; then
1968       ac_cv_prog_AR="$ac_prog"
1969       break
1970     fi
1971   done
1972   IFS="$ac_save_ifs"
1973 fi
1974 fi
1975 AR="$ac_cv_prog_AR"
1976 if test -n "$AR"; then
1977   echo "$ac_t""$AR" 1>&6
1978 else
1979   echo "$ac_t""no" 1>&6
1980 fi
1981
1982 test -n "$AR" && break
1983 done
1984 test -n "$AR" || AR="error"
1985
1986     # Extract the first word of "ranlib", so it can be a program name with args.
1987 set dummy ranlib; ac_word=$2
1988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_word" >&5
1990 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1991   echo $ac_n "(cached) $ac_c" 1>&6
1992 else
1993   if test -n "$RANLIB"; then
1994   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1995 else
1996   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1997   ac_dummy="$PATH"
1998   for ac_dir in $ac_dummy; do
1999     test -z "$ac_dir" && ac_dir=.
2000     if test -f $ac_dir/$ac_word; then
2001       ac_cv_prog_RANLIB="ranlib"
2002       break
2003     fi
2004   done
2005   IFS="$ac_save_ifs"
2006   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2007 fi
2008 fi
2009 RANLIB="$ac_cv_prog_RANLIB"
2010 if test -n "$RANLIB"; then
2011   echo "$ac_t""$RANLIB" 1>&6
2012 else
2013   echo "$ac_t""no" 1>&6
2014 fi
2015
2016
2017     
2018     
2019
2020 # AC_STEPMAKE_LIBTOOL
2021
2022     lang=English
2023     ALL_LINGUAS="en nl"
2024
2025     # with/enable ??
2026     # Check whether --with-localedir or --without-localedir was given.
2027 if test "${with_localedir+set}" = set; then
2028   withval="$with_localedir"
2029   localedir=$with_localedir
2030 else
2031   localedir='${prefix}/share/locale'
2032 fi
2033
2034
2035     # Check whether --with-lang or --without-lang was given.
2036 if test "${with_lang+set}" = set; then
2037   withval="$with_lang"
2038   language=$with_lang
2039 else
2040   language=English
2041 fi
2042
2043
2044     echo $ac_n "checking language""... $ac_c" 1>&6
2045 echo "configure:2046: checking language" >&5    
2046     case "$language" in
2047       En* | en* | Am* | am* | US* | us*)
2048             lang=English;;
2049       NL | nl | Du* | du* | Ned* | ned*)
2050             lang=Dutch;;
2051       "")
2052             lang=English;;
2053       *)
2054             lang=unknown;;
2055     esac
2056     echo "$ac_t""$lang" 1>&6
2057
2058     if test "$lang" = "unknown" ; then
2059         
2060     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2061     warn_b=yes
2062
2063     fi
2064
2065
2066
2067     DIR_LOCALEDIR=${localedir}
2068     presome=${prefix}
2069     if test "$prefix" = "NONE"; then
2070             presome=${ac_default_prefix}
2071     fi
2072     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2073     
2074     
2075     cat >> confdefs.h <<EOF
2076 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2077 EOF
2078
2079
2080     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2081 echo "configure:2082: checking for gettext in -lintl" >&5
2082 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2084   echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086   ac_save_LIBS="$LIBS"
2087 LIBS="-lintl  $LIBS"
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* Override any gcc2 internal prototype to avoid an error.  */
2092 #ifdef __cplusplus
2093 extern "C"
2094 #endif
2095 /* We use char because int might match the return type of a gcc2
2096     builtin and then its argument prototype would still apply.  */
2097 char gettext();
2098
2099 int main() {
2100 gettext()
2101 ; return 0; }
2102 EOF
2103 if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2104   rm -rf conftest*
2105   eval "ac_cv_lib_$ac_lib_var=yes"
2106 else
2107   echo "configure: failed program was:" >&5
2108   cat conftest.$ac_ext >&5
2109   rm -rf conftest*
2110   eval "ac_cv_lib_$ac_lib_var=no"
2111 fi
2112 rm -f conftest*
2113 LIBS="$ac_save_LIBS"
2114
2115 fi
2116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2117   echo "$ac_t""yes" 1>&6
2118     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2119     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2120   cat >> confdefs.h <<EOF
2121 #define $ac_tr_lib 1
2122 EOF
2123
2124   LIBS="-lintl $LIBS"
2125
2126 else
2127   echo "$ac_t""no" 1>&6
2128 fi
2129
2130     for ac_func in gettext
2131 do
2132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_func" >&5
2134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2135   echo $ac_n "(cached) $ac_c" 1>&6
2136 else
2137   cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 /* System header to define __stub macros and hopefully few prototypes,
2141     which can conflict with char $ac_func(); below.  */
2142 #include <assert.h>
2143 /* Override any gcc2 internal prototype to avoid an error.  */
2144 #ifdef __cplusplus
2145 extern "C"
2146 #endif
2147 /* We use char because int might match the return type of a gcc2
2148     builtin and then its argument prototype would still apply.  */
2149 char $ac_func();
2150
2151 int main() {
2152
2153 /* The GNU C library defines this for functions which it implements
2154     to always fail with ENOSYS.  Some functions are actually named
2155     something starting with __ and the normal name is an alias.  */
2156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2157 choke me
2158 #else
2159 $ac_func();
2160 #endif
2161
2162 ; return 0; }
2163 EOF
2164 if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2165   rm -rf conftest*
2166   eval "ac_cv_func_$ac_func=yes"
2167 else
2168   echo "configure: failed program was:" >&5
2169   cat conftest.$ac_ext >&5
2170   rm -rf conftest*
2171   eval "ac_cv_func_$ac_func=no"
2172 fi
2173 rm -f conftest*
2174 fi
2175
2176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2177   echo "$ac_t""yes" 1>&6
2178     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2179   cat >> confdefs.h <<EOF
2180 #define $ac_tr_func 1
2181 EOF
2182  
2183 else
2184   echo "$ac_t""no" 1>&6
2185 fi
2186 done
2187
2188
2189
2190     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2191     for ac_prog in msgfmt
2192 do
2193 # Extract the first word of "$ac_prog", so it can be a program name with args.
2194 set dummy $ac_prog; ac_word=$2
2195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2196 echo "configure:2197: checking for $ac_word" >&5
2197 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2198   echo $ac_n "(cached) $ac_c" 1>&6
2199 else
2200   if test -n "$MSGFMT"; then
2201   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2202 else
2203   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2204   ac_dummy="$PATH"
2205   for ac_dir in $ac_dummy; do
2206     test -z "$ac_dir" && ac_dir=.
2207     if test -f $ac_dir/$ac_word; then
2208       ac_cv_prog_MSGFMT="$ac_prog"
2209       break
2210     fi
2211   done
2212   IFS="$ac_save_ifs"
2213 fi
2214 fi
2215 MSGFMT="$ac_cv_prog_MSGFMT"
2216 if test -n "$MSGFMT"; then
2217   echo "$ac_t""$MSGFMT" 1>&6
2218 else
2219   echo "$ac_t""no" 1>&6
2220 fi
2221
2222 test -n "$MSGFMT" && break
2223 done
2224 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2225
2226     echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2227 echo "configure:2228: checking whether msgfmt accepts -o" >&5
2228     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2229     if test "$msgfmt_output" = ""; then
2230         echo "$ac_t""yes" 1>&6
2231     else
2232         # urg
2233         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2234         echo "$ac_t""no" 1>&6
2235         
2236     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2237     warn_b=yes
2238
2239     fi
2240     if test ! -n "$MSGFMT"; then
2241         
2242     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2243     warn_b=yes
2244
2245     fi
2246
2247
2248     # urg, never know what names these teTeX guys will think up
2249
2250     for ac_prog in mf
2251 do
2252 # Extract the first word of "$ac_prog", so it can be a program name with args.
2253 set dummy $ac_prog; ac_word=$2
2254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_word" >&5
2256 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2257   echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259   if test -n "$METAFONT"; then
2260   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2261 else
2262   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2263   ac_dummy="$PATH"
2264   for ac_dir in $ac_dummy; do
2265     test -z "$ac_dir" && ac_dir=.
2266     if test -f $ac_dir/$ac_word; then
2267       ac_cv_prog_METAFONT="$ac_prog"
2268       break
2269     fi
2270   done
2271   IFS="$ac_save_ifs"
2272 fi
2273 fi
2274 METAFONT="$ac_cv_prog_METAFONT"
2275 if test -n "$METAFONT"; then
2276   echo "$ac_t""$METAFONT" 1>&6
2277 else
2278   echo "$ac_t""no" 1>&6
2279 fi
2280
2281 test -n "$METAFONT" && break
2282 done
2283 test -n "$METAFONT" || METAFONT="no"
2284
2285     if test "x$METAFONT" = "xno"; then
2286         for ac_prog in mfont
2287 do
2288 # Extract the first word of "$ac_prog", so it can be a program name with args.
2289 set dummy $ac_prog; ac_word=$2
2290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2291 echo "configure:2292: checking for $ac_word" >&5
2292 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2293   echo $ac_n "(cached) $ac_c" 1>&6
2294 else
2295   if test -n "$MFONT"; then
2296   ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2297 else
2298   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2299   ac_dummy="$PATH"
2300   for ac_dir in $ac_dummy; do
2301     test -z "$ac_dir" && ac_dir=.
2302     if test -f $ac_dir/$ac_word; then
2303       ac_cv_prog_MFONT="$ac_prog"
2304       break
2305     fi
2306   done
2307   IFS="$ac_save_ifs"
2308 fi
2309 fi
2310 MFONT="$ac_cv_prog_MFONT"
2311 if test -n "$MFONT"; then
2312   echo "$ac_t""$MFONT" 1>&6
2313 else
2314   echo "$ac_t""no" 1>&6
2315 fi
2316
2317 test -n "$MFONT" && break
2318 done
2319 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2320
2321         METAFONT=$MFONT
2322     fi
2323
2324     for ac_prog in mp
2325 do
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2331   echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333   if test -n "$METAPOST"; then
2334   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2335 else
2336   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2337   ac_dummy="$PATH"
2338   for ac_dir in $ac_dummy; do
2339     test -z "$ac_dir" && ac_dir=.
2340     if test -f $ac_dir/$ac_word; then
2341       ac_cv_prog_METAPOST="$ac_prog"
2342       break
2343     fi
2344   done
2345   IFS="$ac_save_ifs"
2346 fi
2347 fi
2348 METAPOST="$ac_cv_prog_METAPOST"
2349 if test -n "$METAPOST"; then
2350   echo "$ac_t""$METAPOST" 1>&6
2351 else
2352   echo "$ac_t""no" 1>&6
2353 fi
2354
2355 test -n "$METAPOST" && break
2356 done
2357 test -n "$METAPOST" || METAPOST="no"
2358
2359     if test "x$METAPOST" = "xno"; then
2360         for ac_prog in mpost
2361 do
2362 # Extract the first word of "$ac_prog", so it can be a program name with args.
2363 set dummy $ac_prog; ac_word=$2
2364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2365 echo "configure:2366: checking for $ac_word" >&5
2366 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2367   echo $ac_n "(cached) $ac_c" 1>&6
2368 else
2369   if test -n "$MPOST"; then
2370   ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2371 else
2372   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2373   ac_dummy="$PATH"
2374   for ac_dir in $ac_dummy; do
2375     test -z "$ac_dir" && ac_dir=.
2376     if test -f $ac_dir/$ac_word; then
2377       ac_cv_prog_MPOST="$ac_prog"
2378       break
2379     fi
2380   done
2381   IFS="$ac_save_ifs"
2382 fi
2383 fi
2384 MPOST="$ac_cv_prog_MPOST"
2385 if test -n "$MPOST"; then
2386   echo "$ac_t""$MPOST" 1>&6
2387 else
2388   echo "$ac_t""no" 1>&6
2389 fi
2390
2391 test -n "$MPOST" && break
2392 done
2393 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2394
2395
2396         METAPOST=$MPOST
2397     fi
2398
2399     for ac_prog in inimf
2400 do
2401 # Extract the first word of "$ac_prog", so it can be a program name with args.
2402 set dummy $ac_prog; ac_word=$2
2403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_word" >&5
2405 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2406   echo $ac_n "(cached) $ac_c" 1>&6
2407 else
2408   if test -n "$INIMETAFONT"; then
2409   ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2410 else
2411   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2412   ac_dummy="$PATH"
2413   for ac_dir in $ac_dummy; do
2414     test -z "$ac_dir" && ac_dir=.
2415     if test -f $ac_dir/$ac_word; then
2416       ac_cv_prog_INIMETAFONT="$ac_prog"
2417       break
2418     fi
2419   done
2420   IFS="$ac_save_ifs"
2421 fi
2422 fi
2423 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2424 if test -n "$INIMETAFONT"; then
2425   echo "$ac_t""$INIMETAFONT" 1>&6
2426 else
2427   echo "$ac_t""no" 1>&6
2428 fi
2429
2430 test -n "$INIMETAFONT" && break
2431 done
2432 test -n "$INIMETAFONT" || INIMETAFONT="no"
2433
2434     if test "x$INIMETAFONT" = "xno"; then
2435         for ac_prog in inimfont
2436 do
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2442   echo $ac_n "(cached) $ac_c" 1>&6
2443 else
2444   if test -n "$INIMFONT"; then
2445   ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2446 else
2447   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2448   ac_dummy="$PATH"
2449   for ac_dir in $ac_dummy; do
2450     test -z "$ac_dir" && ac_dir=.
2451     if test -f $ac_dir/$ac_word; then
2452       ac_cv_prog_INIMFONT="$ac_prog"
2453       break
2454     fi
2455   done
2456   IFS="$ac_save_ifs"
2457 fi
2458 fi
2459 INIMFONT="$ac_cv_prog_INIMFONT"
2460 if test -n "$INIMFONT"; then
2461   echo "$ac_t""$INIMFONT" 1>&6
2462 else
2463   echo "$ac_t""no" 1>&6
2464 fi
2465
2466 test -n "$INIMFONT" && break
2467 done
2468 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2469
2470         INIMETAFONT=$INIMFONT
2471     fi
2472
2473     for ac_prog in inimp
2474 do
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_word" >&5
2479 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2480   echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482   if test -n "$INIMETAPOST"; then
2483   ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2484 else
2485   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2486   ac_dummy="$PATH"
2487   for ac_dir in $ac_dummy; do
2488     test -z "$ac_dir" && ac_dir=.
2489     if test -f $ac_dir/$ac_word; then
2490       ac_cv_prog_INIMETAPOST="$ac_prog"
2491       break
2492     fi
2493   done
2494   IFS="$ac_save_ifs"
2495 fi
2496 fi
2497 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2498 if test -n "$INIMETAPOST"; then
2499   echo "$ac_t""$INIMETAPOST" 1>&6
2500 else
2501   echo "$ac_t""no" 1>&6
2502 fi
2503
2504 test -n "$INIMETAPOST" && break
2505 done
2506 test -n "$INIMETAPOST" || INIMETAPOST="no"
2507
2508     if test "x$INIMETAPOST" = "xno"; then
2509         for ac_prog in inimpost
2510 do
2511 # Extract the first word of "$ac_prog", so it can be a program name with args.
2512 set dummy $ac_prog; ac_word=$2
2513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2514 echo "configure:2515: checking for $ac_word" >&5
2515 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2516   echo $ac_n "(cached) $ac_c" 1>&6
2517 else
2518   if test -n "$INIMPOST"; then
2519   ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2520 else
2521   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2522   ac_dummy="$PATH"
2523   for ac_dir in $ac_dummy; do
2524     test -z "$ac_dir" && ac_dir=.
2525     if test -f $ac_dir/$ac_word; then
2526       ac_cv_prog_INIMPOST="$ac_prog"
2527       break
2528     fi
2529   done
2530   IFS="$ac_save_ifs"
2531 fi
2532 fi
2533 INIMPOST="$ac_cv_prog_INIMPOST"
2534 if test -n "$INIMPOST"; then
2535   echo "$ac_t""$INIMPOST" 1>&6
2536 else
2537   echo "$ac_t""no" 1>&6
2538 fi
2539
2540 test -n "$INIMPOST" && break
2541 done
2542 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2543
2544         INIMETAPOST=$INIMPOST
2545     fi
2546
2547     echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2548 echo "configure:2549: checking for working metafont mode" >&5
2549     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2550     for MFMODE in $modelist; do
2551         $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2552         if test -f mfput.tfm; then
2553             break;
2554         fi
2555     done
2556     rm -f mfput.*
2557     echo "$ac_t""$MFMODE" 1>&6
2558
2559     
2560     
2561     
2562     
2563     
2564
2565
2566     # Check whether --enable-tex-tfmdir or --disable-tex-tfmdir was given.
2567 if test "${enable_tex_tfmdir+set}" = set; then
2568   enableval="$enable_tex_tfmdir"
2569   TFMDIR=$enableval
2570 else
2571   TFMDIR=auto 
2572 fi
2573
2574
2575     for ac_prog in kpsewhich
2576 do
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_word" >&5
2581 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2582   echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584   if test -n "$KPSEWHICH"; then
2585   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2586 else
2587   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2588   ac_dummy="$PATH"
2589   for ac_dir in $ac_dummy; do
2590     test -z "$ac_dir" && ac_dir=.
2591     if test -f $ac_dir/$ac_word; then
2592       ac_cv_prog_KPSEWHICH="$ac_prog"
2593       break
2594     fi
2595   done
2596   IFS="$ac_save_ifs"
2597 fi
2598 fi
2599 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2600 if test -n "$KPSEWHICH"; then
2601   echo "$ac_t""$KPSEWHICH" 1>&6
2602 else
2603   echo "$ac_t""no" 1>&6
2604 fi
2605
2606 test -n "$KPSEWHICH" && break
2607 done
2608 test -n "$KPSEWHICH" || KPSEWHICH="no"
2609
2610     echo $ac_n "checking for TeX TFM directory""... $ac_c" 1>&6
2611 echo "configure:2612: checking for TeX TFM directory" >&5
2612     if test "x$TFMDIR" = xauto ; then
2613         if test "x$TEX_TFMDIR" = "x" ; then
2614             if test "x$KPSEWHICH" != "xno" ; then
2615                 CMR10=`kpsewhich tfm cmr10.tfm`
2616                 TEX_TFMDIR=`dirname $CMR10`
2617             else
2618                 
2619     echo "configure: warning: Please set TEX_TFMDIR (to where cmr10.tfm lives):
2620         TEX_TFMDIR=/usr/local/TeX/lib/tex/fonts ./configure" 1>&2
2621     warn_b=yes
2622
2623             fi
2624         fi
2625     fi
2626     echo "$ac_t""$TEX_TFMDIR" 1>&6
2627     
2628
2629
2630     if test "x$YODL" = "x"; then 
2631         for ac_prog in striproff
2632 do
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_word" >&5
2637 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
2638   echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640   if test -n "$STRIPROFF"; then
2641   ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
2642 else
2643   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2644   ac_dummy="$PATH"
2645   for ac_dir in $ac_dummy; do
2646     test -z "$ac_dir" && ac_dir=.
2647     if test -f $ac_dir/$ac_word; then
2648       ac_cv_prog_STRIPROFF="$ac_prog"
2649       break
2650     fi
2651   done
2652   IFS="$ac_save_ifs"
2653 fi
2654 fi
2655 STRIPROFF="$ac_cv_prog_STRIPROFF"
2656 if test -n "$STRIPROFF"; then
2657   echo "$ac_t""$STRIPROFF" 1>&6
2658 else
2659   echo "$ac_t""no" 1>&6
2660 fi
2661
2662 test -n "$STRIPROFF" && break
2663 done
2664 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
2665
2666         for ac_prog in yodl
2667 do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_word" >&5
2672 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2673   echo $ac_n "(cached) $ac_c" 1>&6
2674 else
2675   if test -n "$YODL"; then
2676   ac_cv_prog_YODL="$YODL" # Let the user override the test.
2677 else
2678   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2679   ac_dummy="$PATH"
2680   for ac_dir in $ac_dummy; do
2681     test -z "$ac_dir" && ac_dir=.
2682     if test -f $ac_dir/$ac_word; then
2683       ac_cv_prog_YODL="$ac_prog"
2684       break
2685     fi
2686   done
2687   IFS="$ac_save_ifs"
2688 fi
2689 fi
2690 YODL="$ac_cv_prog_YODL"
2691 if test -n "$YODL"; then
2692   echo "$ac_t""$YODL" 1>&6
2693 else
2694   echo "$ac_t""no" 1>&6
2695 fi
2696
2697 test -n "$YODL" && break
2698 done
2699 test -n "$YODL" || YODL="-echo no yodl"
2700
2701         for ac_prog in yodl2html
2702 do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2708   echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710   if test -n "$YODL2HTML"; then
2711   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2712 else
2713   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2714   ac_dummy="$PATH"
2715   for ac_dir in $ac_dummy; do
2716     test -z "$ac_dir" && ac_dir=.
2717     if test -f $ac_dir/$ac_word; then
2718       ac_cv_prog_YODL2HTML="$ac_prog"
2719       break
2720     fi
2721   done
2722   IFS="$ac_save_ifs"
2723 fi
2724 fi
2725 YODL2HTML="$ac_cv_prog_YODL2HTML"
2726 if test -n "$YODL2HTML"; then
2727   echo "$ac_t""$YODL2HTML" 1>&6
2728 else
2729   echo "$ac_t""no" 1>&6
2730 fi
2731
2732 test -n "$YODL2HTML" && break
2733 done
2734 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2735
2736         for ac_prog in yodl2latex
2737 do
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_word" >&5
2742 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2743   echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745   if test -n "$YODL2LATEX"; then
2746   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2747 else
2748   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2749   ac_dummy="$PATH"
2750   for ac_dir in $ac_dummy; do
2751     test -z "$ac_dir" && ac_dir=.
2752     if test -f $ac_dir/$ac_word; then
2753       ac_cv_prog_YODL2LATEX="$ac_prog"
2754       break
2755     fi
2756   done
2757   IFS="$ac_save_ifs"
2758 fi
2759 fi
2760 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2761 if test -n "$YODL2LATEX"; then
2762   echo "$ac_t""$YODL2LATEX" 1>&6
2763 else
2764   echo "$ac_t""no" 1>&6
2765 fi
2766
2767 test -n "$YODL2LATEX" && break
2768 done
2769
2770         for ac_prog in yodl2man
2771 do
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_word" >&5
2776 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2777   echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779   if test -n "$YODL2MAN"; then
2780   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2781 else
2782   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2783   ac_dummy="$PATH"
2784   for ac_dir in $ac_dummy; do
2785     test -z "$ac_dir" && ac_dir=.
2786     if test -f $ac_dir/$ac_word; then
2787       ac_cv_prog_YODL2MAN="$ac_prog"
2788       break
2789     fi
2790   done
2791   IFS="$ac_save_ifs"
2792 fi
2793 fi
2794 YODL2MAN="$ac_cv_prog_YODL2MAN"
2795 if test -n "$YODL2MAN"; then
2796   echo "$ac_t""$YODL2MAN" 1>&6
2797 else
2798   echo "$ac_t""no" 1>&6
2799 fi
2800
2801 test -n "$YODL2MAN" && break
2802 done
2803 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2804
2805         for ac_prog in yodl2msless
2806 do
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_word" >&5
2811 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
2812   echo $ac_n "(cached) $ac_c" 1>&6
2813 else
2814   if test -n "$YODL2MSLESS"; then
2815   ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
2816 else
2817   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2818   ac_dummy="$PATH"
2819   for ac_dir in $ac_dummy; do
2820     test -z "$ac_dir" && ac_dir=.
2821     if test -f $ac_dir/$ac_word; then
2822       ac_cv_prog_YODL2MSLESS="$ac_prog"
2823       break
2824     fi
2825   done
2826   IFS="$ac_save_ifs"
2827 fi
2828 fi
2829 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
2830 if test -n "$YODL2MSLESS"; then
2831   echo "$ac_t""$YODL2MSLESS" 1>&6
2832 else
2833   echo "$ac_t""no" 1>&6
2834 fi
2835
2836 test -n "$YODL2MSLESS" && break
2837 done
2838 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
2839
2840         for ac_prog in yodl2texinfo
2841 do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_word" >&5
2846 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2847   echo $ac_n "(cached) $ac_c" 1>&6
2848 else
2849   if test -n "$YODL2TEXINFO"; then
2850   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2851 else
2852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2853   ac_dummy="$PATH"
2854   for ac_dir in $ac_dummy; do
2855     test -z "$ac_dir" && ac_dir=.
2856     if test -f $ac_dir/$ac_word; then
2857       ac_cv_prog_YODL2TEXINFO="$ac_prog"
2858       break
2859     fi
2860   done
2861   IFS="$ac_save_ifs"
2862 fi
2863 fi
2864 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2865 if test -n "$YODL2TEXINFO"; then
2866   echo "$ac_t""$YODL2TEXINFO" 1>&6
2867 else
2868   echo "$ac_t""no" 1>&6
2869 fi
2870
2871 test -n "$YODL2TEXINFO" && break
2872 done
2873 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2874
2875         for ac_prog in yodl2txt
2876 do
2877 # Extract the first word of "$ac_prog", so it can be a program name with args.
2878 set dummy $ac_prog; ac_word=$2
2879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2880 echo "configure:2881: checking for $ac_word" >&5
2881 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2882   echo $ac_n "(cached) $ac_c" 1>&6
2883 else
2884   if test -n "$YODL2TXT"; then
2885   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2886 else
2887   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2888   ac_dummy="$PATH"
2889   for ac_dir in $ac_dummy; do
2890     test -z "$ac_dir" && ac_dir=.
2891     if test -f $ac_dir/$ac_word; then
2892       ac_cv_prog_YODL2TXT="$ac_prog"
2893       break
2894     fi
2895   done
2896   IFS="$ac_save_ifs"
2897 fi
2898 fi
2899 YODL2TXT="$ac_cv_prog_YODL2TXT"
2900 if test -n "$YODL2TXT"; then
2901   echo "$ac_t""$YODL2TXT" 1>&6
2902 else
2903   echo "$ac_t""no" 1>&6
2904 fi
2905
2906 test -n "$YODL2TXT" && break
2907 done
2908 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2909
2910         YODL2LESS_DIR='$(bindir)/'
2911     else
2912         
2913         
2914         
2915         
2916         
2917         
2918         
2919         
2920         
2921         export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
2922     fi
2923     if test "x$YODL" = "-echo no yodl"; then
2924         
2925     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2926     warn_b=yes
2927
2928     fi    
2929
2930
2931     # on some systems, -lguile succeeds for guile-1.3
2932     # others need readline, dl (or even more)
2933     # urg, must check for different functions in libguile
2934     # to force new check iso reading from cache
2935
2936     # gh_scm2doubles,gh_doubles2scm are new in 1.3
2937     
2938 ## The GUILE_FLAGS macro.
2939   ## First, let's just see if we can find Guile at all.
2940   echo $ac_n "checking for Guile""... $ac_c" 1>&6
2941 echo "configure:2942: checking for Guile" >&5
2942   guile-config link > /dev/null || {
2943     echo "configure: cannot find guile-config; is Guile installed?" 1>&2
2944     exit 1
2945   }
2946   GUILE_CFLAGS="`guile-config compile`"
2947   GUILE_LDFLAGS="`guile-config link`"
2948   
2949   
2950   echo "$ac_t""yes" 1>&6
2951
2952     echo $ac_n "checking for gh_scm2doubles in -lguile""... $ac_c" 1>&6
2953 echo "configure:2954: checking for gh_scm2doubles in -lguile" >&5
2954 ac_lib_var=`echo guile'_'gh_scm2doubles | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956   echo $ac_n "(cached) $ac_c" 1>&6
2957 else
2958   ac_save_LIBS="$LIBS"
2959 LIBS="-lguile $GUILE_LDFLAGS      $LIBS"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error.  */
2964 #ifdef __cplusplus
2965 extern "C"
2966 #endif
2967 /* We use char because int might match the return type of a gcc2
2968     builtin and then its argument prototype would still apply.  */
2969 char gh_scm2doubles();
2970
2971 int main() {
2972 gh_scm2doubles()
2973 ; return 0; }
2974 EOF
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2976   rm -rf conftest*
2977   eval "ac_cv_lib_$ac_lib_var=yes"
2978 else
2979   echo "configure: failed program was:" >&5
2980   cat conftest.$ac_ext >&5
2981   rm -rf conftest*
2982   eval "ac_cv_lib_$ac_lib_var=no"
2983 fi
2984 rm -f conftest*
2985 LIBS="$ac_save_LIBS"
2986
2987 fi
2988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2989   echo "$ac_t""yes" 1>&6
2990   LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[/-_a-zA-Z0-9]\+ //g'` $LIBS"
2991       cat >> confdefs.h <<\EOF
2992 #define HAVE_LIBGUILE 1
2993 EOF
2994
2995 else
2996   echo "$ac_t""no" 1>&6
2997 fi
2998
2999     if test "$ac_cv_lib_guile_gh_scm2doubles" != yes ; then
3000       GUILE_LDFLAGS="`echo $GUILE_LDFLAGS | sed -e 's/-lreadline//g'`"
3001       echo $ac_n "checking for gh_doubles2scm in -lguile""... $ac_c" 1>&6
3002 echo "configure:3003: checking for gh_doubles2scm in -lguile" >&5
3003 ac_lib_var=`echo guile'_'gh_doubles2scm | sed 'y%./+-%__p_%'`
3004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3005   echo $ac_n "(cached) $ac_c" 1>&6
3006 else
3007   ac_save_LIBS="$LIBS"
3008 LIBS="-lguile $GUILE_LDFLAGS        $LIBS"
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 /* Override any gcc2 internal prototype to avoid an error.  */
3013 #ifdef __cplusplus
3014 extern "C"
3015 #endif
3016 /* We use char because int might match the return type of a gcc2
3017     builtin and then its argument prototype would still apply.  */
3018 char gh_doubles2scm();
3019
3020 int main() {
3021 gh_doubles2scm()
3022 ; return 0; }
3023 EOF
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3025   rm -rf conftest*
3026   eval "ac_cv_lib_$ac_lib_var=yes"
3027 else
3028   echo "configure: failed program was:" >&5
3029   cat conftest.$ac_ext >&5
3030   rm -rf conftest*
3031   eval "ac_cv_lib_$ac_lib_var=no"
3032 fi
3033 rm -f conftest*
3034 LIBS="$ac_save_LIBS"
3035
3036 fi
3037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3038   echo "$ac_t""yes" 1>&6
3039   LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[/-_a-zA-Z0-9]\+ //g'` $LIBS"
3040         cat >> confdefs.h <<\EOF
3041 #define HAVE_LIBGUILE 1
3042 EOF
3043
3044 else
3045   echo "$ac_t""no" 1>&6
3046 fi
3047
3048       if test "$ac_cv_lib_guile_gh_doubles2scm" != yes ; then
3049         
3050     echo "configure: warning: You should install guile 1.3 or newer" 1>&2
3051     warn_b=yes
3052
3053       fi
3054     fi
3055
3056
3057
3058 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3059 echo "configure:3060: checking for 8-bit clean memcmp" >&5
3060 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3061   echo $ac_n "(cached) $ac_c" 1>&6
3062 else
3063   if test "$cross_compiling" = yes; then
3064   ac_cv_func_memcmp_clean=no
3065 else
3066   cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 #ifdef __cplusplus
3070 extern "C" void exit(int);
3071 #endif
3072
3073 main()
3074 {
3075   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3076   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3077 }
3078
3079 EOF
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3081 then
3082   ac_cv_func_memcmp_clean=yes
3083 else
3084   echo "configure: failed program was:" >&5
3085   cat conftest.$ac_ext >&5
3086   rm -fr conftest*
3087   ac_cv_func_memcmp_clean=no
3088 fi
3089 rm -fr conftest*
3090 fi
3091
3092 fi
3093
3094 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3095 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3096
3097 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3098 echo "configure:3099: checking for vprintf" >&5
3099 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3100   echo $ac_n "(cached) $ac_c" 1>&6
3101 else
3102   cat > conftest.$ac_ext <<EOF
3103 #line 3104 "configure"
3104 #include "confdefs.h"
3105 /* System header to define __stub macros and hopefully few prototypes,
3106     which can conflict with char vprintf(); below.  */
3107 #include <assert.h>
3108 /* Override any gcc2 internal prototype to avoid an error.  */
3109 #ifdef __cplusplus
3110 extern "C"
3111 #endif
3112 /* We use char because int might match the return type of a gcc2
3113     builtin and then its argument prototype would still apply.  */
3114 char vprintf();
3115
3116 int main() {
3117
3118 /* The GNU C library defines this for functions which it implements
3119     to always fail with ENOSYS.  Some functions are actually named
3120     something starting with __ and the normal name is an alias.  */
3121 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3122 choke me
3123 #else
3124 vprintf();
3125 #endif
3126
3127 ; return 0; }
3128 EOF
3129 if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3130   rm -rf conftest*
3131   eval "ac_cv_func_vprintf=yes"
3132 else
3133   echo "configure: failed program was:" >&5
3134   cat conftest.$ac_ext >&5
3135   rm -rf conftest*
3136   eval "ac_cv_func_vprintf=no"
3137 fi
3138 rm -f conftest*
3139 fi
3140
3141 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3142   echo "$ac_t""yes" 1>&6
3143   cat >> confdefs.h <<\EOF
3144 #define HAVE_VPRINTF 1
3145 EOF
3146
3147 else
3148   echo "$ac_t""no" 1>&6
3149 fi
3150
3151 if test "$ac_cv_func_vprintf" != yes; then
3152 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3153 echo "configure:3154: checking for _doprnt" >&5
3154 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3155   echo $ac_n "(cached) $ac_c" 1>&6
3156 else
3157   cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 /* System header to define __stub macros and hopefully few prototypes,
3161     which can conflict with char _doprnt(); below.  */
3162 #include <assert.h>
3163 /* Override any gcc2 internal prototype to avoid an error.  */
3164 #ifdef __cplusplus
3165 extern "C"
3166 #endif
3167 /* We use char because int might match the return type of a gcc2
3168     builtin and then its argument prototype would still apply.  */
3169 char _doprnt();
3170
3171 int main() {
3172
3173 /* The GNU C library defines this for functions which it implements
3174     to always fail with ENOSYS.  Some functions are actually named
3175     something starting with __ and the normal name is an alias.  */
3176 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3177 choke me
3178 #else
3179 _doprnt();
3180 #endif
3181
3182 ; return 0; }
3183 EOF
3184 if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3185   rm -rf conftest*
3186   eval "ac_cv_func__doprnt=yes"
3187 else
3188   echo "configure: failed program was:" >&5
3189   cat conftest.$ac_ext >&5
3190   rm -rf conftest*
3191   eval "ac_cv_func__doprnt=no"
3192 fi
3193 rm -f conftest*
3194 fi
3195
3196 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3197   echo "$ac_t""yes" 1>&6
3198   cat >> confdefs.h <<\EOF
3199 #define HAVE_DOPRNT 1
3200 EOF
3201
3202 else
3203   echo "$ac_t""no" 1>&6
3204 fi
3205
3206 fi
3207
3208 for ac_func in memmem snprintf vsnprintf gettext
3209 do
3210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3211 echo "configure:3212: checking for $ac_func" >&5
3212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3213   echo $ac_n "(cached) $ac_c" 1>&6
3214 else
3215   cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 /* System header to define __stub macros and hopefully few prototypes,
3219     which can conflict with char $ac_func(); below.  */
3220 #include <assert.h>
3221 /* Override any gcc2 internal prototype to avoid an error.  */
3222 #ifdef __cplusplus
3223 extern "C"
3224 #endif
3225 /* We use char because int might match the return type of a gcc2
3226     builtin and then its argument prototype would still apply.  */
3227 char $ac_func();
3228
3229 int main() {
3230
3231 /* The GNU C library defines this for functions which it implements
3232     to always fail with ENOSYS.  Some functions are actually named
3233     something starting with __ and the normal name is an alias.  */
3234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3235 choke me
3236 #else
3237 $ac_func();
3238 #endif
3239
3240 ; return 0; }
3241 EOF
3242 if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3243   rm -rf conftest*
3244   eval "ac_cv_func_$ac_func=yes"
3245 else
3246   echo "configure: failed program was:" >&5
3247   cat conftest.$ac_ext >&5
3248   rm -rf conftest*
3249   eval "ac_cv_func_$ac_func=no"
3250 fi
3251 rm -f conftest*
3252 fi
3253
3254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3255   echo "$ac_t""yes" 1>&6
3256     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3257   cat >> confdefs.h <<EOF
3258 #define $ac_tr_func 1
3259 EOF
3260  
3261 else
3262   echo "$ac_t""no" 1>&6
3263 fi
3264 done
3265
3266
3267 cat >> confdefs.h <<EOF
3268 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3269 EOF
3270
3271 cat >> confdefs.h <<EOF
3272 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3273 EOF
3274
3275
3276 for ac_prog in makeinfo
3277 do
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3281 echo "configure:3282: checking for $ac_word" >&5
3282 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3283   echo $ac_n "(cached) $ac_c" 1>&6
3284 else
3285   if test -n "$MAKEINFO"; then
3286   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3287 else
3288   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3289   ac_dummy="$PATH"
3290   for ac_dir in $ac_dummy; do
3291     test -z "$ac_dir" && ac_dir=.
3292     if test -f $ac_dir/$ac_word; then
3293       ac_cv_prog_MAKEINFO="$ac_prog"
3294       break
3295     fi
3296   done
3297   IFS="$ac_save_ifs"
3298 fi
3299 fi
3300 MAKEINFO="$ac_cv_prog_MAKEINFO"
3301 if test -n "$MAKEINFO"; then
3302   echo "$ac_t""$MAKEINFO" 1>&6
3303 else
3304   echo "$ac_t""no" 1>&6
3305 fi
3306
3307 test -n "$MAKEINFO" && break
3308 done
3309 test -n "$MAKEINFO" || MAKEINFO="error"
3310
3311
3312         result="`echo \"$YODL2TEXINFO\" | grep echo`"
3313         if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
3314                 
3315     echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or newer" 1>&2
3316     warn_b=yes
3317
3318         fi
3319
3320
3321
3322     trap '' 1 2 15
3323 cat > confcache <<\EOF
3324 # This file is a shell script that caches the results of configure
3325 # tests run on this system so they can be shared between configure
3326 # scripts and configure runs.  It is not useful on other systems.
3327 # If it contains results you don't want to keep, you may remove or edit it.
3328 #
3329 # By default, configure uses ./config.cache as the cache file,
3330 # creating it if it does not exist already.  You can give configure
3331 # the --cache-file=FILE option to use a different cache file; that is
3332 # what configure does when it calls configure scripts in
3333 # subdirectories, so they share the cache.
3334 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3335 # config.status only pays attention to the cache file if you give it the
3336 # --recheck option to rerun configure.
3337 #
3338 EOF
3339 # The following way of writing the cache mishandles newlines in values,
3340 # but we know of no workaround that is simple, portable, and efficient.
3341 # So, don't put newlines in cache variables' values.
3342 # Ultrix sh set writes to stderr and can't be redirected directly,
3343 # and sets the high bit in the cache file unless we assign to the vars.
3344 (set) 2>&1 |
3345   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3346   *ac_space=\ *)
3347     # `set' does not quote correctly, so add quotes (double-quote substitution
3348     # turns \\\\ into \\, and sed turns \\ into \).
3349     sed -n \
3350       -e "s/'/'\\\\''/g" \
3351       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3352     ;;
3353   *)
3354     # `set' quotes correctly as required by POSIX, so do not add quotes.
3355     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3356     ;;
3357   esac >> confcache
3358 if cmp -s $cache_file confcache; then
3359   :
3360 else
3361   if test -w $cache_file; then
3362     echo "updating cache $cache_file"
3363     cat confcache > $cache_file
3364   else
3365     echo "not updating unwritable cache $cache_file"
3366   fi
3367 fi
3368 rm -f confcache
3369
3370 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3371
3372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3373 # Let make expand exec_prefix.
3374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3375
3376 # Any assignment to VPATH causes Sun make to only execute
3377 # the first set of double-colon rules, so remove it if not needed.
3378 # If there is a colon in the path, we need to keep it.
3379 if test "x$srcdir" = x.; then
3380   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3381 fi
3382
3383 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3384
3385 DEFS=-DHAVE_CONFIG_H
3386
3387 # Without the "./", some shells look in PATH for config.status.
3388 : ${CONFIG_STATUS=./config.status}
3389
3390 echo creating $CONFIG_STATUS
3391 rm -f $CONFIG_STATUS
3392 cat > $CONFIG_STATUS <<EOF
3393 #! /bin/sh
3394 # Generated automatically by configure.
3395 # Run this file to recreate the current configuration.
3396 # This directory was configured as follows,
3397 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3398 #
3399 # $0 $ac_configure_args
3400 #
3401 # Compiler output produced by configure, useful for debugging
3402 # configure, is in ./config.log if it exists.
3403
3404 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3405 for ac_option
3406 do
3407   case "\$ac_option" in
3408   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3409     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3410     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3411   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3412     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3413     exit 0 ;;
3414   -help | --help | --hel | --he | --h)
3415     echo "\$ac_cs_usage"; exit 0 ;;
3416   *) echo "\$ac_cs_usage"; exit 1 ;;
3417   esac
3418 done
3419
3420 ac_given_srcdir=$srcdir
3421
3422 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3423 EOF
3424 cat >> $CONFIG_STATUS <<EOF
3425
3426 # Protect against being on the right side of a sed subst in config.status.
3427 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3428  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3429 $ac_vpsub
3430 $extrasub
3431 s%@SHELL@%$SHELL%g
3432 s%@CFLAGS@%$CFLAGS%g
3433 s%@CPPFLAGS@%$CPPFLAGS%g
3434 s%@CXXFLAGS@%$CXXFLAGS%g
3435 s%@FFLAGS@%$FFLAGS%g
3436 s%@DEFS@%$DEFS%g
3437 s%@LDFLAGS@%$LDFLAGS%g
3438 s%@LIBS@%$LIBS%g
3439 s%@exec_prefix@%$exec_prefix%g
3440 s%@prefix@%$prefix%g
3441 s%@program_transform_name@%$program_transform_name%g
3442 s%@bindir@%$bindir%g
3443 s%@sbindir@%$sbindir%g
3444 s%@libexecdir@%$libexecdir%g
3445 s%@datadir@%$datadir%g
3446 s%@sysconfdir@%$sysconfdir%g
3447 s%@sharedstatedir@%$sharedstatedir%g
3448 s%@localstatedir@%$localstatedir%g
3449 s%@libdir@%$libdir%g
3450 s%@includedir@%$includedir%g
3451 s%@oldincludedir@%$oldincludedir%g
3452 s%@infodir@%$infodir%g
3453 s%@mandir@%$mandir%g
3454 s%@stepmake@%$stepmake%g
3455 s%@package@%$package%g
3456 s%@PACKAGE@%$PACKAGE%g
3457 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3458 s%@package_depth@%$package_depth%g
3459 s%@AUTOGENERATE@%$AUTOGENERATE%g
3460 s%@absolute_builddir@%$absolute_builddir%g
3461 s%@STATE_VECTOR@%$STATE_VECTOR%g
3462 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3463 s%@host@%$host%g
3464 s%@host_alias@%$host_alias%g
3465 s%@host_cpu@%$host_cpu%g
3466 s%@host_vendor@%$host_vendor%g
3467 s%@host_os@%$host_os%g
3468 s%@MAKE@%$MAKE%g
3469 s%@FIND@%$FIND%g
3470 s%@TAR@%$TAR%g
3471 s%@BASH@%$BASH%g
3472 s%@PYTHON@%$PYTHON%g
3473 s%@DOTEXE@%$DOTEXE%g
3474 s%@ZIP@%$ZIP%g
3475 s%@LN@%$LN%g
3476 s%@LN_S@%$LN_S%g
3477 s%@INSTALL@%$INSTALL%g
3478 s%@PATHSEP@%$PATHSEP%g
3479 s%@DIRSEP@%$DIRSEP%g
3480 s%@DIR_DATADIR@%$DIR_DATADIR%g
3481 s%@subdirs@%$subdirs%g
3482 s%@CC@%$CC%g
3483 s%@LD@%$LD%g
3484 s%@ICFLAGS@%$ICFLAGS%g
3485 s%@ILDFLAGS@%$ILDFLAGS%g
3486 s%@DEFINES@%$DEFINES%g
3487 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3488 s%@CXX@%$CXX%g
3489 s%@CXXCPP@%$CXXCPP%g
3490 s%@YACC@%$YACC%g
3491 s%@BISON@%$BISON%g
3492 s%@FLEX@%$FLEX%g
3493 s%@AR@%$AR%g
3494 s%@RANLIB@%$RANLIB%g
3495 s%@localedir@%$localedir%g
3496 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3497 s%@MSGFMT@%$MSGFMT%g
3498 s%@METAFONT@%$METAFONT%g
3499 s%@MFONT@%$MFONT%g
3500 s%@METAPOST@%$METAPOST%g
3501 s%@MPOST@%$MPOST%g
3502 s%@INIMETAFONT@%$INIMETAFONT%g
3503 s%@INIMFONT@%$INIMFONT%g
3504 s%@INIMETAPOST@%$INIMETAPOST%g
3505 s%@INIMPOST@%$INIMPOST%g
3506 s%@MFMODE@%$MFMODE%g
3507 s%@KPSEWHICH@%$KPSEWHICH%g
3508 s%@TEX_TFMDIR@%$TEX_TFMDIR%g
3509 s%@STRIPROFF@%$STRIPROFF%g
3510 s%@YODL@%$YODL%g
3511 s%@YODL2HTML@%$YODL2HTML%g
3512 s%@YODL2LATEX@%$YODL2LATEX%g
3513 s%@YODL2MAN@%$YODL2MAN%g
3514 s%@YODL2MSLESS@%$YODL2MSLESS%g
3515 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
3516 s%@YODL2TXT@%$YODL2TXT%g
3517 s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
3518 s%@LIBOBJS@%$LIBOBJS%g
3519 s%@MAKEINFO@%$MAKEINFO%g
3520
3521 CEOF
3522 EOF
3523
3524 cat >> $CONFIG_STATUS <<\EOF
3525
3526 # Split the substitutions into bite-sized pieces for seds with
3527 # small command number limits, like on Digital OSF/1 and HP-UX.
3528 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3529 ac_file=1 # Number of current file.
3530 ac_beg=1 # First line for current file.
3531 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3532 ac_more_lines=:
3533 ac_sed_cmds=""
3534 while $ac_more_lines; do
3535   if test $ac_beg -gt 1; then
3536     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3537   else
3538     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3539   fi
3540   if test ! -s conftest.s$ac_file; then
3541     ac_more_lines=false
3542     rm -f conftest.s$ac_file
3543   else
3544     if test -z "$ac_sed_cmds"; then
3545       ac_sed_cmds="sed -f conftest.s$ac_file"
3546     else
3547       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3548     fi
3549     ac_file=`expr $ac_file + 1`
3550     ac_beg=$ac_end
3551     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3552   fi
3553 done
3554 if test -z "$ac_sed_cmds"; then
3555   ac_sed_cmds=cat
3556 fi
3557 EOF
3558
3559 cat >> $CONFIG_STATUS <<EOF
3560
3561 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3562 EOF
3563 cat >> $CONFIG_STATUS <<\EOF
3564 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3565   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3566   case "$ac_file" in
3567   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3568        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3569   *) ac_file_in="${ac_file}.in" ;;
3570   esac
3571
3572   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3573
3574   # Remove last slash and all that follows it.  Not all systems have dirname.
3575   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3576   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3577     # The file is in a subdirectory.
3578     test ! -d "$ac_dir" && mkdir "$ac_dir"
3579     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3580     # A "../" for each directory in $ac_dir_suffix.
3581     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3582   else
3583     ac_dir_suffix= ac_dots=
3584   fi
3585
3586   case "$ac_given_srcdir" in
3587   .)  srcdir=.
3588       if test -z "$ac_dots"; then top_srcdir=.
3589       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3590   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3591   *) # Relative path.
3592     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3593     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3594   esac
3595
3596
3597   echo creating "$ac_file"
3598   rm -f "$ac_file"
3599   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3600   case "$ac_file" in
3601   *Makefile*) ac_comsub="1i\\
3602 # $configure_input" ;;
3603   *) ac_comsub= ;;
3604   esac
3605
3606   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3607   sed -e "$ac_comsub
3608 s%@configure_input@%$configure_input%g
3609 s%@srcdir@%$srcdir%g
3610 s%@top_srcdir@%$top_srcdir%g
3611 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3612 fi; done
3613 rm -f conftest.s*
3614
3615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3617 #
3618 # ac_d sets the value in "#define NAME VALUE" lines.
3619 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3620 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3621 ac_dC='\3'
3622 ac_dD='%g'
3623 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3624 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3625 ac_uB='\([      ]\)%\1#\2define\3'
3626 ac_uC=' '
3627 ac_uD='\4%g'
3628 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3629 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3630 ac_eB='$%\1#\2define\3'
3631 ac_eC=' '
3632 ac_eD='%g'
3633
3634 if test "${CONFIG_HEADERS+set}" != set; then
3635 EOF
3636 cat >> $CONFIG_STATUS <<EOF
3637   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3638 EOF
3639 cat >> $CONFIG_STATUS <<\EOF
3640 fi
3641 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3642   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3643   case "$ac_file" in
3644   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3645        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3646   *) ac_file_in="${ac_file}.in" ;;
3647   esac
3648
3649   echo creating $ac_file
3650
3651   rm -f conftest.frag conftest.in conftest.out
3652   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3653   cat $ac_file_inputs > conftest.in
3654
3655 EOF
3656
3657 # Transform confdefs.h into a sed script conftest.vals that substitutes
3658 # the proper values into config.h.in to produce config.h.  And first:
3659 # Protect against being on the right side of a sed subst in config.status.
3660 # Protect against being in an unquoted here document in config.status.
3661 rm -f conftest.vals
3662 cat > conftest.hdr <<\EOF
3663 s/[\\&%]/\\&/g
3664 s%[\\$`]%\\&%g
3665 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3666 s%ac_d%ac_u%gp
3667 s%ac_u%ac_e%gp
3668 EOF
3669 sed -n -f conftest.hdr confdefs.h > conftest.vals
3670 rm -f conftest.hdr
3671
3672 # This sed command replaces #undef with comments.  This is necessary, for
3673 # example, in the case of _POSIX_SOURCE, which is predefined and required
3674 # on some systems where configure will not decide to define it.
3675 cat >> conftest.vals <<\EOF
3676 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3677 EOF
3678
3679 # Break up conftest.vals because some shells have a limit on
3680 # the size of here documents, and old seds have small limits too.
3681
3682 rm -f conftest.tail
3683 while :
3684 do
3685   ac_lines=`grep -c . conftest.vals`
3686   # grep -c gives empty output for an empty file on some AIX systems.
3687   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3688   # Write a limited-size here document to conftest.frag.
3689   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3690   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3691   echo 'CEOF
3692   sed -f conftest.frag conftest.in > conftest.out
3693   rm -f conftest.in
3694   mv conftest.out conftest.in
3695 ' >> $CONFIG_STATUS
3696   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3697   rm -f conftest.vals
3698   mv conftest.tail conftest.vals
3699 done
3700 rm -f conftest.vals
3701
3702 cat >> $CONFIG_STATUS <<\EOF
3703   rm -f conftest.frag conftest.h
3704   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3705   cat conftest.in >> conftest.h
3706   rm -f conftest.in
3707   if cmp -s $ac_file conftest.h 2>/dev/null; then
3708     echo "$ac_file is unchanged"
3709     rm -f conftest.h
3710   else
3711     # Remove last slash and all that follows it.  Not all systems have dirname.
3712       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3713       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3714       # The file is in a subdirectory.
3715       test ! -d "$ac_dir" && mkdir "$ac_dir"
3716     fi
3717     rm -f $ac_file
3718     mv conftest.h $ac_file
3719   fi
3720 fi; done
3721
3722 EOF
3723 cat >> $CONFIG_STATUS <<EOF
3724
3725 EOF
3726 cat >> $CONFIG_STATUS <<\EOF
3727
3728 exit 0
3729 EOF
3730 chmod +x $CONFIG_STATUS
3731 rm -fr confdefs* $ac_clean_files
3732 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3733
3734 if test "$no_recursion" != yes; then
3735
3736   # Remove --cache-file and --srcdir arguments so they do not pile up.
3737   ac_sub_configure_args=
3738   ac_prev=
3739   for ac_arg in $ac_configure_args; do
3740     if test -n "$ac_prev"; then
3741       ac_prev=
3742       continue
3743     fi
3744     case "$ac_arg" in
3745     -cache-file | --cache-file | --cache-fil | --cache-fi \
3746     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3747       ac_prev=cache_file ;;
3748     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3749     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3750       ;;
3751     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3752       ac_prev=srcdir ;;
3753     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3754       ;;
3755     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3756     esac
3757   done
3758
3759   for ac_config_dir in stepmake; do
3760
3761     # Do not complain, so a configure script can configure whichever
3762     # parts of a large source tree are present.
3763     if test ! -d $srcdir/$ac_config_dir; then
3764       continue
3765     fi
3766
3767     echo configuring in $ac_config_dir
3768
3769     case "$srcdir" in
3770     .) ;;
3771     *)
3772       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3773       else
3774         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3775       fi
3776       ;;
3777     esac
3778
3779     ac_popdir=`pwd`
3780     cd $ac_config_dir
3781
3782       # A "../" for each directory in /$ac_config_dir.
3783       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3784
3785     case "$srcdir" in
3786     .) # No --srcdir option.  We are building in place.
3787       ac_sub_srcdir=$srcdir ;;
3788     /*) # Absolute path.
3789       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3790     *) # Relative path.
3791       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3792     esac
3793
3794     # Check for guested configure; otherwise get Cygnus style configure.
3795     if test -f $ac_sub_srcdir/configure; then
3796       ac_sub_configure=$ac_sub_srcdir/configure
3797     elif test -f $ac_sub_srcdir/configure.in; then
3798       ac_sub_configure=$ac_configure
3799     else
3800       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3801       ac_sub_configure=
3802     fi
3803
3804     # The recursion is here.
3805     if test -n "$ac_sub_configure"; then
3806
3807       # Make the cache file name correct relative to the subdirectory.
3808       case "$cache_file" in
3809       /*) ac_sub_cache_file=$cache_file ;;
3810       *) # Relative path.
3811         ac_sub_cache_file="$ac_dots$cache_file" ;;
3812       esac
3813
3814       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3815       # The eval makes quoting arguments work.
3816       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3817       then :
3818       else
3819         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3820       fi
3821     fi
3822
3823     cd $ac_popdir
3824   done
3825 fi
3826
3827
3828     rm -f GNUmakefile
3829     cp make/toplevel.make.in ./GNUmakefile
3830     chmod 444 GNUmakefile
3831
3832