lilypond-1.3.136
[lilypond.git] / configure
blobace095970677401718da4e6a2e176ad5d11a79ac
1 #! /bin/sh
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=""
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=""
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"
31 else
32 enable_gtkmmtest=yes
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
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
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt 98-08-21 (adapted from Jan Nieuwenhuizen's code)
56 # Guess values for system-dependent variables and create Makefiles.
57 # Generated automatically using autoconf version 2.13
58 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 # This configure script is free software; the Free Software Foundation
61 # gives unlimited permission to copy, distribute and modify it.
63 # Defaults:
64 ac_help=
65 ac_default_prefix=/usr/local
66 # Any additions from configure.in:
67 ac_help="$ac_help
68 enable-config=FILE put configure settings in config-FILE.make"
69 ac_help="$ac_help
70 enable-checking set runtime checks (assert calls). Default: on"
71 ac_help="$ac_help
72 enable-optimise use maximal speed optimisations. Default: off"
73 ac_help="$ac_help
74 enable-profiling compile with gprof support. Default: off"
75 ac_help="$ac_help
76 enable-debugging set debug info. Default: on"
77 ac_help="$ac_help
78 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
79 ac_help="$ac_help
80 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
81 ac_help="$ac_help
82 with-lang=LANG use LANG as language to emit messages"
83 ac_help="$ac_help
84 enable-tfm-path=PATH set path of tex directories where tfm files live, esp.: cmr10.tfm. Default: use kpsewhich"
85 ac_help="$ac_help
86 enable-kpathsea use kpathsea lib. Default: on"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
91 build=NONE
92 cache_file=./config.cache
93 exec_prefix=NONE
94 host=NONE
95 no_create=
96 nonopt=NONE
97 no_recursion=
98 prefix=NONE
99 program_prefix=NONE
100 program_suffix=NONE
101 program_transform_name=s,x,x,
102 silent=
103 site=
104 srcdir=
105 target=NONE
106 verbose=
107 x_includes=NONE
108 x_libraries=NONE
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
123 subdirs=
124 MFLAGS= MAKEFLAGS=
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
127 ac_max_here_lines=12
129 ac_prev=
130 for ac_option
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
136 ac_prev=
137 continue
140 case "$ac_option" in
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) ac_optarg= ;;
143 esac
145 # Accept the important Cygnus configure options, so we can diagnose typos.
147 case "$ac_option" in
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 ac_prev=bindir ;;
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
155 ac_prev=build ;;
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 ac_prev=datadir ;;
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 | --da=*)
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 case "$ac_option" in
189 *=*) ;;
190 *) ac_optarg=yes ;;
191 esac
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
205 with_gas=yes ;;
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
210 cat << EOF
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
213 Configuration:
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
221 [$ac_default_prefix]
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 [same as prefix]
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
228 [PREFIX/share]
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 [PREFIX/com]
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
244 cat << EOF
245 Host type:
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
260 exit 0 ;;
262 -host | --host | --hos | --ho)
263 ac_prev=host ;;
264 -host=* | --host=* | --hos=* | --ho=*)
265 host="$ac_optarg" ;;
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 ac_prev=infodir ;;
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
280 ac_prev=libdir ;;
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 ac_prev=mandir ;;
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
305 -nfp | --nfp | --nf)
306 # Obsolete; use --without-fp.
307 with_fp=no ;;
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c)
311 no_create=yes ;;
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 no_recursion=yes ;;
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 ac_prev=prefix ;;
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
364 silent=yes ;;
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 ac_prev=sbindir ;;
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 | --sbi=* | --sb=*)
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
375 | --sha | --sh)
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 | --sha=* | --sh=*)
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
384 ac_prev=site ;;
385 -site=* | --site=* | --sit=*)
386 site="$ac_optarg" ;;
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 ac_prev=srcdir ;;
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
401 ac_prev=target ;;
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 verbose=yes ;;
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
410 exit 0 ;;
412 -with-* | --with-*)
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 case "$ac_option" in
420 *=*) ;;
421 *) ac_optarg=yes ;;
422 esac
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
434 --x)
435 # Obsolete; use --with-x.
436 with_x=yes ;;
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 nonopt="$ac_option"
465 esac
466 done
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
475 # 0 standard input
476 # 1 file creation
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
483 exec 6>/dev/null
484 else
485 exec 6>&1
487 exec 5>./config.log
489 echo "\
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
492 " 1>&5
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
496 ac_configure_args=
497 for ac_arg
499 case "$ac_arg" in
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 esac
508 done
510 # NLS nuisances.
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 echo > confdefs.h
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=make/lilypond.lsm.in
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
533 ac_prog=$0
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 srcdir=$ac_confdir
537 if test ! -r $srcdir/$ac_unique_file; then
538 srcdir=..
540 else
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 else
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 else
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
563 . "$ac_site_file"
565 done
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 . $cache_file
570 else
571 echo "creating cache $cache_file"
572 > $cache_file
575 ac_ext=c
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
582 ac_exeext=
583 ac_objext=o
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='
588 ' ac_t=' '
589 else
590 ac_n=-n ac_c= ac_t=
592 else
593 ac_n= ac_c='\c' ac_t=
599 # Bootstrap StepMake configure
602 . $srcdir/VERSION
603 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
604 if test x$MY_PATCH_LEVEL != x; then
605 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
608 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
609 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
610 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
612 # No versioning on directory names of sub-packages
613 # urg, urg
614 stepmake=${datadir}/stepmake
615 presome=${prefix}
616 if test "$prefix" = "NONE"; then
617 presome=${ac_default_prefix}
619 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
621 # urg, how is this supposed to work?
622 if test "$program_prefix" = "NONE"; then
623 program_prefix=
625 if test "$program_suffix" = "NONE"; then
626 program_suffix=
629 echo $ac_n "checking Package""... $ac_c" 1>&6
630 echo "configure:631: checking Package" >&5
631 if test "x$PACKAGE" = "xSTEPMAKE"; then
632 echo "$ac_t""Stepmake package!" 1>&6
634 echo $ac_n "checking builddir""... $ac_c" 1>&6
635 echo "configure:636: checking builddir" >&5
636 if test "$srcdir" = "."; then
637 builddir=.
638 else
639 absolute_builddir="`pwd`"
640 package_absolute_builddir="`dirname $absolute_builddir`"
641 package_srcdir="`dirname $srcdir`"
642 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
644 echo "$ac_t""$builddir" 1>&6
646 (cd stepmake 2>/dev/null || mkdir stepmake)
647 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
648 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
649 ac_aux_dir=
650 for ac_dir in bin $srcdir/bin; do
651 if test -f $ac_dir/install-sh; then
652 ac_aux_dir=$ac_dir
653 ac_install_sh="$ac_aux_dir/install-sh -c"
654 break
655 elif test -f $ac_dir/install.sh; then
656 ac_aux_dir=$ac_dir
657 ac_install_sh="$ac_aux_dir/install.sh -c"
658 break
660 done
661 if test -z "$ac_aux_dir"; then
662 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
664 ac_config_guess=$ac_aux_dir/config.guess
665 ac_config_sub=$ac_aux_dir/config.sub
666 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
668 stepmake=stepmake
669 else
670 echo "$ac_t""$PACKAGE" 1>&6
672 echo $ac_n "checking builddir""... $ac_c" 1>&6
673 echo "configure:674: checking builddir" >&5
674 if test "$srcdir" = "."; then
675 builddir=.
676 srcdir_build=no
677 else
678 absolute_builddir="`pwd`"
679 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
680 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
681 srcdir_build=yes
683 echo "$ac_t""$builddir" 1>&6
684 if expr "$srcdir" : '/' > /dev/null 2>&1; then
685 absolute_srcdir=yes
687 echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
688 warn_b=yes
692 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
693 echo "configure:694: checking for stepmake" >&5
694 # Check for installed stepmake
695 if test -d $stepmake; then
696 echo "$ac_t""$stepmake" 1>&6
697 else
698 if test "$absolute_srcdir" != "yes"; then
699 stepmake='$(depth)'/$srcdir/stepmake
700 else
701 stepmake=$srcdir/stepmake
703 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
706 ac_aux_dir=
707 for ac_dir in \
708 $HOME/usr/local/share/stepmake/bin\
709 $HOME/usr/local/lib/stepmake/bin\
710 $HOME/usr/share/stepmake/bin\
711 $HOME/usr/lib/stepmake/bin\
712 /usr/local/share/stepmake/bin\
713 /usr/local/lib/stepmake/bin\
714 /usr/share/stepmake/bin\
715 /usr/lib/stepmake/bin\
716 stepmake/bin\
717 $srcdir/stepmake/bin\
718 $srcdir/\
719 $HOME/usr/local/share/stepmake/bin\
720 $HOME/usr/local/lib/stepmake/bin\
721 $HOME/usr/share/stepmake/bin\
722 $HOME/usr/lib/stepmake/bin\
723 /usr/local/share/stepmake/bin\
724 /usr/local/lib/stepmake/bin\
725 /usr/share/stepmake/bin\
726 /usr/lib/stepmake/bin\
727 stepmake/bin\
728 $srcdir/stepmake/bin\
729 ; do
730 if test -f $ac_dir/install-sh; then
731 ac_aux_dir=$ac_dir
732 ac_install_sh="$ac_aux_dir/install-sh -c"
733 break
734 elif test -f $ac_dir/install.sh; then
735 ac_aux_dir=$ac_dir
736 ac_install_sh="$ac_aux_dir/install.sh -c"
737 break
739 done
740 if test -z "$ac_aux_dir"; then
741 { echo "configure: error: can not find install-sh or install.sh in \
742 $HOME/usr/local/share/stepmake/bin\
743 $HOME/usr/local/lib/stepmake/bin\
744 $HOME/usr/share/stepmake/bin\
745 $HOME/usr/lib/stepmake/bin\
746 /usr/local/share/stepmake/bin\
747 /usr/local/lib/stepmake/bin\
748 /usr/share/stepmake/bin\
749 /usr/lib/stepmake/bin\
750 stepmake/bin\
751 $srcdir/stepmake/bin\
752 $srcdir/\
753 $HOME/usr/local/share/stepmake/bin\
754 $HOME/usr/local/lib/stepmake/bin\
755 $HOME/usr/share/stepmake/bin\
756 $HOME/usr/lib/stepmake/bin\
757 /usr/local/share/stepmake/bin\
758 /usr/local/lib/stepmake/bin\
759 /usr/share/stepmake/bin\
760 /usr/lib/stepmake/bin\
761 stepmake/bin\
762 $srcdir/stepmake/bin\
763 " 1>&2; exit 1; }
765 ac_config_guess=$ac_aux_dir/config.guess
766 ac_config_sub=$ac_aux_dir/config.sub
767 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
776 cat >> confdefs.h <<EOF
777 #define PACKAGE "${PACKAGE_NAME}"
780 cat >> confdefs.h <<EOF
781 #define TOPLEVEL_VERSION "${FULL_VERSION}"
785 if test "$package_depth" = "" ; then
786 package_depth="."
787 else
788 package_depth="../$package_depth"
790 export package_depth
793 AUTOGENERATE="This file was automatically generated by configure"
796 CONFIGSUFFIX=
797 # Check whether --enable-config or --disable-config was given.
798 if test "${enable_config+set}" = set; then
799 enableval="$enable_config"
800 CONFIGSUFFIX=-$enableval
804 CONFIGFILE=config$CONFIGSUFFIX
808 # Make sure we can run config.sub.
809 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
810 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
813 echo $ac_n "checking host system type""... $ac_c" 1>&6
814 echo "configure:815: checking host system type" >&5
816 host_alias=$host
817 case "$host_alias" in
818 NONE)
819 case $nonopt in
820 NONE)
821 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
822 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
823 fi ;;
824 *) host_alias=$nonopt ;;
825 esac ;;
826 esac
828 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
829 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
830 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
831 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
832 echo "$ac_t""$host" 1>&6
834 for ac_prog in gmake make
836 # Extract the first word of "$ac_prog", so it can be a program name with args.
837 set dummy $ac_prog; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842 else
843 if test -n "$MAKE"; then
844 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
845 else
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 ac_dummy="$PATH"
848 for ac_dir in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
851 ac_cv_prog_MAKE="$ac_prog"
852 break
854 done
855 IFS="$ac_save_ifs"
858 MAKE="$ac_cv_prog_MAKE"
859 if test -n "$MAKE"; then
860 echo "$ac_t""$MAKE" 1>&6
861 else
862 echo "$ac_t""no" 1>&6
865 test -n "$MAKE" && break
866 done
867 test -n "$MAKE" || MAKE="error"
869 for ac_prog in find
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_FIND'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 if test -n "$FIND"; then
879 ac_cv_prog_FIND="$FIND" # 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_FIND="$ac_prog"
887 break
889 done
890 IFS="$ac_save_ifs"
893 FIND="$ac_cv_prog_FIND"
894 if test -n "$FIND"; then
895 echo "$ac_t""$FIND" 1>&6
896 else
897 echo "$ac_t""no" 1>&6
900 test -n "$FIND" && break
901 done
902 test -n "$FIND" || FIND="error"
906 for ac_prog in tar
908 # Extract the first word of "$ac_prog", so it can be a program name with args.
909 set dummy $ac_prog; ac_word=$2
910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
911 echo "configure:912: checking for $ac_word" >&5
912 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
914 else
915 if test -n "$TAR"; then
916 ac_cv_prog_TAR="$TAR" # Let the user override the test.
917 else
918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
919 ac_dummy="$PATH"
920 for ac_dir in $ac_dummy; do
921 test -z "$ac_dir" && ac_dir=.
922 if test -f $ac_dir/$ac_word; then
923 ac_cv_prog_TAR="$ac_prog"
924 break
926 done
927 IFS="$ac_save_ifs"
930 TAR="$ac_cv_prog_TAR"
931 if test -n "$TAR"; then
932 echo "$ac_t""$TAR" 1>&6
933 else
934 echo "$ac_t""no" 1>&6
937 test -n "$TAR" && break
938 done
939 test -n "$TAR" || TAR="error"
942 if test "x`uname`" = "xHP-UX"; then
943 # Extract the first word of "bash", so it can be a program name with args.
944 set dummy bash; ac_word=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 echo "configure:947: checking for $ac_word" >&5
947 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
949 else
950 case "$BASH" in
952 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
954 ?:/*)
955 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
959 ac_dummy="$PATH"
960 for ac_dir in $ac_dummy; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_path_BASH="$ac_dir/$ac_word"
964 break
966 done
967 IFS="$ac_save_ifs"
968 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
970 esac
972 BASH="$ac_cv_path_BASH"
973 if test -n "$BASH"; then
974 echo "$ac_t""$BASH" 1>&6
975 else
976 echo "$ac_t""no" 1>&6
980 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
981 warn_b=yes
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_SHELL'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 case "$SHELL" in
992 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
994 ?:/*)
995 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
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_SHELL="$ac_dir/$ac_word"
1004 break
1006 done
1007 IFS="$ac_save_ifs"
1008 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1010 esac
1012 SHELL="$ac_cv_path_SHELL"
1013 if test -n "$SHELL"; then
1014 echo "$ac_t""$SHELL" 1>&6
1015 else
1016 echo "$ac_t""no" 1>&6
1019 else
1020 # Extract the first word of "bash", so it can be a program name with args.
1021 set dummy bash; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027 case "$BASH" in
1029 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1031 ?:/*)
1032 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1036 ac_dummy="$PATH"
1037 for ac_dir in $ac_dummy; do
1038 test -z "$ac_dir" && ac_dir=.
1039 if test -f $ac_dir/$ac_word; then
1040 ac_cv_path_BASH="$ac_dir/$ac_word"
1041 break
1043 done
1044 IFS="$ac_save_ifs"
1045 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1047 esac
1049 BASH="$ac_cv_path_BASH"
1050 if test -n "$BASH"; then
1051 echo "$ac_t""$BASH" 1>&6
1052 else
1053 echo "$ac_t""no" 1>&6
1056 SHELL=/bin/sh
1061 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1062 set dummy ${PYTHON:-python}; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068 case "$PYTHON" in
1070 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1072 ?:/*)
1073 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1077 ac_dummy="$PATH"
1078 for ac_dir in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1082 break
1084 done
1085 IFS="$ac_save_ifs"
1086 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1088 esac
1090 PYTHON="$ac_cv_path_PYTHON"
1091 if test -n "$PYTHON"; then
1092 echo "$ac_t""$PYTHON" 1>&6
1093 else
1094 echo "$ac_t""no" 1>&6
1099 if test $MAKE != "error" ; then
1100 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1101 if test "$?" = 1
1102 then
1104 echo "configure: warning: Please install *GNU* make" 1>&2
1105 warn_b=yes
1111 result="`echo \"$PYTHON\" | grep echo`"
1112 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1114 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1115 warn_b=yes
1120 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1121 LN=cp # hard link does not work under cygnus-nt
1122 LN_S='cp -r' # symbolic link does not work for native nt
1123 ZIP="zip -r -9" #
1124 program_suffix=.exe
1125 # urg
1126 # ROOTSEP=':'
1127 # DIRSEP='\\'
1128 # PATHSEP=';'
1130 # cygwin fixes all these things.
1131 # it seems these were used because of dos-style TEXINPUTS and
1132 # MFINPUTS needed for miktex.
1133 # but this breaks parsing of all other cygwin/unix style paths.
1135 # if your (mik)tex breaks, make a:
1136 # /usr/local/bin/tex:
1137 # #!/bin/sh
1138 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1140 # and
1142 # /usr/local/bin/mf:
1143 # #!/bin/sh
1144 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1146 # this way, you may have buildscripts/out/lilypond-profile
1147 # 'automatically' sourced from /usr/etc/profile.d/ too.
1149 ROOTSEP=':'
1150 DIRSEP='/'
1151 PATHSEP=':'
1152 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1153 else
1154 ROOTSEP=':'
1155 DIRSEP='/'
1156 PATHSEP=':'
1157 LN=ln
1158 LN_S='ln -s'
1159 ZIP="zip -r -9"
1160 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1168 cat >> confdefs.h <<EOF
1169 #define DIRSEP '${DIRSEP}'
1172 cat >> confdefs.h <<EOF
1173 #define PATHSEP '${PATHSEP}'
1180 if test "$datadir" = "\${prefix}/share"; then
1181 datadir='${prefix}/share/'$package
1183 DIR_DATADIR=${datadir}
1184 presome=${prefix}
1185 if test "$prefix" = "NONE"; then
1186 presome=${ac_default_prefix}
1188 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1194 cat >> confdefs.h <<EOF
1195 #define DIR_DATADIR "${DIR_DATADIR}"
1201 # For all packages except the StepMake package itself
1202 subdirs="stepmake"
1205 # Uncomment the configuration options your package needs.
1207 # -O is necessary to get inlining
1208 OPTIMIZE=""
1209 CFLAGS=${CFLAGS:-""}
1210 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1211 LDFLAGS=${LDFLAGS:-""}
1212 checking_b=yes
1213 optimise_b=no
1214 profile_b=no
1215 debug_b=yes
1217 # Check whether --enable-checking or --disable-checking was given.
1218 if test "${enable_checking+set}" = set; then
1219 enableval="$enable_checking"
1220 checking_b=$enableval
1224 # actually, the default is: tja='-O' to get inlining...
1225 # off='' --jcn
1227 #actually, that sucks.
1228 # tja looks like a typo. Default is optimisation off. --hwn
1230 # Check whether --enable-optimise or --disable-optimise was given.
1231 if test "${enable_optimise+set}" = set; then
1232 enableval="$enable_optimise"
1233 optimise_b=$enableval
1237 # Check whether --enable-profiling or --disable-profiling was given.
1238 if test "${enable_profiling+set}" = set; then
1239 enableval="$enable_profiling"
1240 profile_b=$enableval
1244 # Check whether --enable-debugging or --disable-debugging was given.
1245 if test "${enable_debugging+set}" = set; then
1246 enableval="$enable_debugging"
1247 debug_b=$enableval
1251 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1252 if test "${enable_mingw_prefix+set}" = set; then
1253 enableval="$enable_mingw_prefix"
1254 MINGWPREFIX=$enableval
1255 else
1256 MINGWPREFIX=no
1260 if test "$checking_b" = no; then
1261 # ugh
1262 cat >> confdefs.h <<\EOF
1263 #define NDEBUG 1
1266 DEFINES="$DEFINES -DNDEBUG"
1269 if test "$optimise_b" = yes; then
1270 OPTIMIZE="-O2 -finline-functions"
1273 if test "$optimise_b" = no; then
1274 OPTIMIZE=""
1277 if test $profile_b = yes; then
1278 EXTRA_LIBES="-pg"
1279 OPTIMIZE="$OPTIMIZE -pg"
1282 if test $debug_b = yes; then
1283 OPTIMIZE="$OPTIMIZE -g"
1286 # however, C++ support in mingw32 v 0.1.4 is still flaky
1287 if test x$MINGWPREFIX != xno; then
1288 ICFLAGS="-I$MINGWPREFIX/include"
1289 ILDFLAGS="-$MINGWPREFIX/lib"
1292 # Extract the first word of "gcc", so it can be a program name with args.
1293 set dummy gcc; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299 if test -n "$CC"; then
1300 ac_cv_prog_CC="$CC" # Let the user override the test.
1301 else
1302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1303 ac_dummy="$PATH"
1304 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/$ac_word; then
1307 ac_cv_prog_CC="gcc"
1308 break
1310 done
1311 IFS="$ac_save_ifs"
1314 CC="$ac_cv_prog_CC"
1315 if test -n "$CC"; then
1316 echo "$ac_t""$CC" 1>&6
1317 else
1318 echo "$ac_t""no" 1>&6
1321 if test -z "$CC"; then
1322 # Extract the first word of "cc", so it can be a program name with args.
1323 set dummy cc; ac_word=$2
1324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1325 echo "configure:1326: checking for $ac_word" >&5
1326 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1328 else
1329 if test -n "$CC"; then
1330 ac_cv_prog_CC="$CC" # Let the user override the test.
1331 else
1332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1333 ac_prog_rejected=no
1334 ac_dummy="$PATH"
1335 for ac_dir in $ac_dummy; do
1336 test -z "$ac_dir" && ac_dir=.
1337 if test -f $ac_dir/$ac_word; then
1338 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1339 ac_prog_rejected=yes
1340 continue
1342 ac_cv_prog_CC="cc"
1343 break
1345 done
1346 IFS="$ac_save_ifs"
1347 if test $ac_prog_rejected = yes; then
1348 # We found a bogon in the path, so make sure we never use it.
1349 set dummy $ac_cv_prog_CC
1350 shift
1351 if test $# -gt 0; then
1352 # We chose a different compiler from the bogus one.
1353 # However, it has the same basename, so the bogon will be chosen
1354 # first if we set CC to just the basename; use the full file name.
1355 shift
1356 set dummy "$ac_dir/$ac_word" "$@"
1357 shift
1358 ac_cv_prog_CC="$@"
1363 CC="$ac_cv_prog_CC"
1364 if test -n "$CC"; then
1365 echo "$ac_t""$CC" 1>&6
1366 else
1367 echo "$ac_t""no" 1>&6
1370 if test -z "$CC"; then
1371 case "`uname -s`" in
1372 *win32* | *WIN32*)
1373 # Extract the first word of "cl", so it can be a program name with args.
1374 set dummy cl; ac_word=$2
1375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1376 echo "configure:1377: checking for $ac_word" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 if test -n "$CC"; then
1381 ac_cv_prog_CC="$CC" # Let the user override the test.
1382 else
1383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1384 ac_dummy="$PATH"
1385 for ac_dir in $ac_dummy; do
1386 test -z "$ac_dir" && ac_dir=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_prog_CC="cl"
1389 break
1391 done
1392 IFS="$ac_save_ifs"
1395 CC="$ac_cv_prog_CC"
1396 if test -n "$CC"; then
1397 echo "$ac_t""$CC" 1>&6
1398 else
1399 echo "$ac_t""no" 1>&6
1402 esac
1404 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1407 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1408 echo "configure:1409: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1410 ac_ext=c
1411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1412 ac_cpp='$CPP $CPPFLAGS'
1413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1415 cross_compiling=$ac_cv_prog_cc_cross
1417 cat > conftest.$ac_ext << EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1422 main(){return(0);}
1424 if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1425 ac_cv_prog_cc_works=yes
1426 # If we can't run a trivial program, we are probably using a cross compiler.
1427 if (./conftest; exit) 2>/dev/null; then
1428 ac_cv_prog_cc_cross=no
1429 else
1430 ac_cv_prog_cc_cross=yes
1432 else
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1435 ac_cv_prog_cc_works=no
1437 rm -fr conftest*
1438 ac_ext=c
1439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1440 ac_cpp='$CPP $CPPFLAGS'
1441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1443 cross_compiling=$ac_cv_prog_cc_cross
1445 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1446 if test $ac_cv_prog_cc_works = no; then
1447 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1449 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1450 echo "configure:1451: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1451 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1452 cross_compiling=$ac_cv_prog_cc_cross
1454 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1455 echo "configure:1456: checking whether we are using GNU C" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459 cat > conftest.c <<EOF
1460 #ifdef __GNUC__
1461 yes;
1462 #endif
1464 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1465 ac_cv_prog_gcc=yes
1466 else
1467 ac_cv_prog_gcc=no
1471 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1473 if test $ac_cv_prog_gcc = yes; then
1474 GCC=yes
1475 else
1476 GCC=
1479 ac_test_CFLAGS="${CFLAGS+set}"
1480 ac_save_CFLAGS="$CFLAGS"
1481 CFLAGS=
1482 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1483 echo "configure:1484: checking whether ${CC-cc} accepts -g" >&5
1484 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1486 else
1487 echo 'void f(){}' > conftest.c
1488 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1489 ac_cv_prog_cc_g=yes
1490 else
1491 ac_cv_prog_cc_g=no
1493 rm -f conftest*
1497 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1498 if test "$ac_test_CFLAGS" = set; then
1499 CFLAGS="$ac_save_CFLAGS"
1500 elif test $ac_cv_prog_cc_g = yes; then
1501 if test "$GCC" = yes; then
1502 CFLAGS="-g -O2"
1503 else
1504 CFLAGS="-g"
1506 else
1507 if test "$GCC" = yes; then
1508 CFLAGS="-O2"
1509 else
1510 CFLAGS=
1514 LD='$(CC)'
1517 CFLAGS="$CFLAGS $OPTIMIZE"
1518 CPPFLAGS=${CPPFLAGS:-""}
1528 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1529 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1530 echo "configure:1531: checking how to run the C preprocessor" >&5
1531 # On Suns, sometimes $CPP names a directory.
1532 if test -n "$CPP" && test -d "$CPP"; then
1533 CPP=
1535 if test -z "$CPP"; then
1536 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539 # This must be in double quotes, not single quotes, because CPP may get
1540 # substituted into the Makefile and "${CC-cc}" will confuse make.
1541 CPP="${CC-cc} -E"
1542 # On the NeXT, cc -E runs the code through the compiler's parser,
1543 # not just through cpp.
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 #include <assert.h>
1548 Syntax Error
1550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1551 { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1553 if test -z "$ac_err"; then
1555 else
1556 echo "$ac_err" >&5
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1559 rm -rf conftest*
1560 CPP="${CC-cc} -E -traditional-cpp"
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 #include <assert.h>
1565 Syntax Error
1567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568 { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1570 if test -z "$ac_err"; then
1572 else
1573 echo "$ac_err" >&5
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1576 rm -rf conftest*
1577 CPP="${CC-cc} -nologo -E"
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 #include <assert.h>
1582 Syntax Error
1584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1589 else
1590 echo "$ac_err" >&5
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1593 rm -rf conftest*
1594 CPP=/lib/cpp
1596 rm -f conftest*
1598 rm -f conftest*
1600 rm -f conftest*
1601 ac_cv_prog_CPP="$CPP"
1603 CPP="$ac_cv_prog_CPP"
1604 else
1605 ac_cv_prog_CPP="$CPP"
1607 echo "$ac_t""$CPP" 1>&6
1609 for ac_hdr in assert.h sys/stat.h
1611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1613 echo "configure:1614: checking for $ac_hdr" >&5
1614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620 #include <$ac_hdr>
1622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1623 { (eval echo configure:1624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1625 if test -z "$ac_err"; then
1626 rm -rf conftest*
1627 eval "ac_cv_header_$ac_safe=yes"
1628 else
1629 echo "$ac_err" >&5
1630 echo "configure: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1632 rm -rf conftest*
1633 eval "ac_cv_header_$ac_safe=no"
1635 rm -f conftest*
1637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1638 echo "$ac_t""yes" 1>&6
1639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1640 cat >> confdefs.h <<EOF
1641 #define $ac_tr_hdr 1
1644 else
1645 echo "$ac_t""no" 1>&6
1647 done
1649 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1650 echo "configure:1651: checking whether stat file-mode macros are broken" >&5
1651 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1653 else
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #include <sys/types.h>
1658 #include <sys/stat.h>
1660 #if defined(S_ISBLK) && defined(S_IFDIR)
1661 # if S_ISBLK (S_IFDIR)
1662 You lose.
1663 # endif
1664 #endif
1666 #if defined(S_ISBLK) && defined(S_IFCHR)
1667 # if S_ISBLK (S_IFCHR)
1668 You lose.
1669 # endif
1670 #endif
1672 #if defined(S_ISLNK) && defined(S_IFREG)
1673 # if S_ISLNK (S_IFREG)
1674 You lose.
1675 # endif
1676 #endif
1678 #if defined(S_ISSOCK) && defined(S_IFREG)
1679 # if S_ISSOCK (S_IFREG)
1680 You lose.
1681 # endif
1682 #endif
1685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1686 egrep "You lose" >/dev/null 2>&1; then
1687 rm -rf conftest*
1688 ac_cv_header_stat_broken=yes
1689 else
1690 rm -rf conftest*
1691 ac_cv_header_stat_broken=no
1693 rm -f conftest*
1697 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1698 if test $ac_cv_header_stat_broken = yes; then
1699 cat >> confdefs.h <<\EOF
1700 #define STAT_MACROS_BROKEN 1
1706 if test "$optimise_b" = yes; then
1707 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1708 cat >> confdefs.h <<\EOF
1709 #define STRINGS_UTILS_INLINED 1
1714 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1715 echo "configure:1716: checking how to run the C++ preprocessor" >&5
1716 if test -z "$CXXCPP"; then
1717 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719 else
1720 ac_ext=C
1721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1722 ac_cpp='$CXXCPP $CPPFLAGS'
1723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1725 cross_compiling=$ac_cv_prog_cxx_cross
1726 CXXCPP="${CXX-g++} -E"
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 #include <stdlib.h>
1732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1733 { (eval echo configure:1734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1735 if test -z "$ac_err"; then
1737 else
1738 echo "$ac_err" >&5
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 rm -rf conftest*
1742 CXXCPP=/lib/cpp
1744 rm -f conftest*
1745 ac_cv_prog_CXXCPP="$CXXCPP"
1746 ac_ext=C
1747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1748 ac_cpp='$CXXCPP $CPPFLAGS'
1749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1751 cross_compiling=$ac_cv_prog_cxx_cross
1754 CXXCPP="$ac_cv_prog_CXXCPP"
1755 echo "$ac_t""$CXXCPP" 1>&6
1758 ac_ext=C
1759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1760 ac_cpp='$CXXCPP $CPPFLAGS'
1761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1763 cross_compiling=$ac_cv_prog_cxx_cross
1765 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1767 # Extract the first word of "$ac_prog", so it can be a program name with args.
1768 set dummy $ac_prog; ac_word=$2
1769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_word" >&5
1771 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1773 else
1774 if test -n "$CXX"; then
1775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1776 else
1777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1778 ac_dummy="$PATH"
1779 for ac_dir in $ac_dummy; do
1780 test -z "$ac_dir" && ac_dir=.
1781 if test -f $ac_dir/$ac_word; then
1782 ac_cv_prog_CXX="$ac_prog"
1783 break
1785 done
1786 IFS="$ac_save_ifs"
1789 CXX="$ac_cv_prog_CXX"
1790 if test -n "$CXX"; then
1791 echo "$ac_t""$CXX" 1>&6
1792 else
1793 echo "$ac_t""no" 1>&6
1796 test -n "$CXX" && break
1797 done
1798 test -n "$CXX" || CXX="gcc"
1801 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1804 ac_ext=C
1805 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1806 ac_cpp='$CXXCPP $CPPFLAGS'
1807 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1808 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1809 cross_compiling=$ac_cv_prog_cxx_cross
1811 cat > conftest.$ac_ext << EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1816 int main(){return(0);}
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1819 ac_cv_prog_cxx_works=yes
1820 # If we can't run a trivial program, we are probably using a cross compiler.
1821 if (./conftest; exit) 2>/dev/null; then
1822 ac_cv_prog_cxx_cross=no
1823 else
1824 ac_cv_prog_cxx_cross=yes
1826 else
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1829 ac_cv_prog_cxx_works=no
1831 rm -fr conftest*
1832 ac_ext=C
1833 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1834 ac_cpp='$CXXCPP $CPPFLAGS'
1835 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1836 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1837 cross_compiling=$ac_cv_prog_cxx_cross
1839 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1840 if test $ac_cv_prog_cxx_works = no; then
1841 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1843 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1844 echo "configure:1845: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1845 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1846 cross_compiling=$ac_cv_prog_cxx_cross
1848 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1849 echo "configure:1850: checking whether we are using GNU C++" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 cat > conftest.C <<EOF
1854 #ifdef __GNUC__
1855 yes;
1856 #endif
1858 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1859 ac_cv_prog_gxx=yes
1860 else
1861 ac_cv_prog_gxx=no
1865 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1867 if test $ac_cv_prog_gxx = yes; then
1868 GXX=yes
1869 else
1870 GXX=
1873 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1874 ac_save_CXXFLAGS="$CXXFLAGS"
1875 CXXFLAGS=
1876 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether ${CXX-g++} accepts -g" >&5
1878 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880 else
1881 echo 'void f(){}' > conftest.cc
1882 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1883 ac_cv_prog_cxx_g=yes
1884 else
1885 ac_cv_prog_cxx_g=no
1887 rm -f conftest*
1891 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1892 if test "$ac_test_CXXFLAGS" = set; then
1893 CXXFLAGS="$ac_save_CXXFLAGS"
1894 elif test $ac_cv_prog_cxx_g = yes; then
1895 if test "$GXX" = yes; then
1896 CXXFLAGS="-g -O2"
1897 else
1898 CXXFLAGS="-g"
1900 else
1901 if test "$GXX" = yes; then
1902 CXXFLAGS="-O2"
1903 else
1904 CXXFLAGS=
1909 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1910 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1911 echo "configure:1912: checking for FlexLexer.h" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include <FlexLexer.h>
1920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1921 { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1923 if test -z "$ac_err"; then
1924 rm -rf conftest*
1925 eval "ac_cv_header_$ac_safe=yes"
1926 else
1927 echo "$ac_err" >&5
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1930 rm -rf conftest*
1931 eval "ac_cv_header_$ac_safe=no"
1933 rm -f conftest*
1935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 true
1938 else
1939 echo "$ac_t""no" 1>&6
1941 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1942 warn_b=yes
1947 CPPFLAGS="$CPPFLAGS $DEFINES"
1948 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1949 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1953 LD='$(CXX)'
1957 # ugh autoconf
1958 # urg, egcs: how to check for egcs >= 1.1?
1959 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1960 $CXX --version | grep 'egcs' > /dev/null
1961 then
1962 true
1963 else
1965 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1966 warn_b=yes
1971 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether explicit instantiation is needed" >&5
1973 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976 cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1980 template <class T> struct foo { static int baz; };
1981 template <class T> int foo<T>::baz = 1;
1983 int main() {
1984 return foo<int>::baz;
1985 ; return 0; }
1987 if { (eval echo configure:1988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1988 rm -rf conftest*
1989 lily_cv_need_explicit_instantiation=no
1990 else
1991 echo "configure: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1993 rm -rf conftest*
1994 lily_cv_need_explicit_instantiation=yes
1996 rm -f conftest*
1999 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
2000 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
2001 cat >> confdefs.h <<\EOF
2002 #define NEED_EXPLICIT_INSTANTIATION 1
2008 # ugh, automake: we want (and check for) bison
2009 for ac_prog in 'bison -y' byacc
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2014 echo "configure:2015: checking for $ac_word" >&5
2015 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2017 else
2018 if test -n "$YACC"; then
2019 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2020 else
2021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2022 ac_dummy="$PATH"
2023 for ac_dir in $ac_dummy; do
2024 test -z "$ac_dir" && ac_dir=.
2025 if test -f $ac_dir/$ac_word; then
2026 ac_cv_prog_YACC="$ac_prog"
2027 break
2029 done
2030 IFS="$ac_save_ifs"
2033 YACC="$ac_cv_prog_YACC"
2034 if test -n "$YACC"; then
2035 echo "$ac_t""$YACC" 1>&6
2036 else
2037 echo "$ac_t""no" 1>&6
2040 test -n "$YACC" && break
2041 done
2042 test -n "$YACC" || YACC="yacc"
2044 # ugh, automake: we want (and check for) flex
2045 # AC_PROG_LEX
2046 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2048 # AC_DECL_YYTEXT
2049 # ugh, ugh
2050 ac_cv_prog_lex_root=lex.yy
2052 for ac_prog in bison
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_word" >&5
2058 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2060 else
2061 if test -n "$BISON"; then
2062 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2063 else
2064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2065 ac_dummy="$PATH"
2066 for ac_dir in $ac_dummy; do
2067 test -z "$ac_dir" && ac_dir=.
2068 if test -f $ac_dir/$ac_word; then
2069 ac_cv_prog_BISON="$ac_prog"
2070 break
2072 done
2073 IFS="$ac_save_ifs"
2076 BISON="$ac_cv_prog_BISON"
2077 if test -n "$BISON"; then
2078 echo "$ac_t""$BISON" 1>&6
2079 else
2080 echo "$ac_t""no" 1>&6
2083 test -n "$BISON" && break
2084 done
2085 test -n "$BISON" || BISON="error"
2087 for ac_prog in flex
2089 # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2092 echo "configure:2093: checking for $ac_word" >&5
2093 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2095 else
2096 if test -n "$FLEX"; then
2097 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2098 else
2099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2100 ac_dummy="$PATH"
2101 for ac_dir in $ac_dummy; do
2102 test -z "$ac_dir" && ac_dir=.
2103 if test -f $ac_dir/$ac_word; then
2104 ac_cv_prog_FLEX="$ac_prog"
2105 break
2107 done
2108 IFS="$ac_save_ifs"
2111 FLEX="$ac_cv_prog_FLEX"
2112 if test -n "$FLEX"; then
2113 echo "$ac_t""$FLEX" 1>&6
2114 else
2115 echo "$ac_t""no" 1>&6
2118 test -n "$FLEX" && break
2119 done
2120 test -n "$FLEX" || FLEX="error"
2123 result="`echo \"$BISON\" | grep echo`"
2124 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2126 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2127 warn_b=yes
2132 result="`echo \"$FLEX\" | grep echo`"
2133 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2135 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2136 warn_b=yes
2141 if test $BISON != "error"; then
2142 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2143 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2145 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2146 warn_b=yes
2155 for ac_prog in ar
2157 # Extract the first word of "$ac_prog", so it can be a program name with args.
2158 set dummy $ac_prog; ac_word=$2
2159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_word" >&5
2161 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 if test -n "$AR"; then
2165 ac_cv_prog_AR="$AR" # Let the user override the test.
2166 else
2167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2168 ac_dummy="$PATH"
2169 for ac_dir in $ac_dummy; do
2170 test -z "$ac_dir" && ac_dir=.
2171 if test -f $ac_dir/$ac_word; then
2172 ac_cv_prog_AR="$ac_prog"
2173 break
2175 done
2176 IFS="$ac_save_ifs"
2179 AR="$ac_cv_prog_AR"
2180 if test -n "$AR"; then
2181 echo "$ac_t""$AR" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2186 test -n "$AR" && break
2187 done
2188 test -n "$AR" || AR="error"
2190 # Extract the first word of "ranlib", so it can be a program name with args.
2191 set dummy ranlib; ac_word=$2
2192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_word" >&5
2194 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 if test -n "$RANLIB"; then
2198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2199 else
2200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2201 ac_dummy="$PATH"
2202 for ac_dir in $ac_dummy; do
2203 test -z "$ac_dir" && ac_dir=.
2204 if test -f $ac_dir/$ac_word; then
2205 ac_cv_prog_RANLIB="ranlib"
2206 break
2208 done
2209 IFS="$ac_save_ifs"
2210 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2213 RANLIB="$ac_cv_prog_RANLIB"
2214 if test -n "$RANLIB"; then
2215 echo "$ac_t""$RANLIB" 1>&6
2216 else
2217 echo "$ac_t""no" 1>&6
2224 # AC_STEPMAKE_LIBTOOL
2226 lang=English
2227 ALL_LINGUAS="en nl"
2229 # with/enable ??
2230 # Check whether --with-localedir or --without-localedir was given.
2231 if test "${with_localedir+set}" = set; then
2232 withval="$with_localedir"
2233 localedir=$with_localedir
2234 else
2235 localedir='${prefix}/share/locale'
2239 # Check whether --with-lang or --without-lang was given.
2240 if test "${with_lang+set}" = set; then
2241 withval="$with_lang"
2242 language=$with_lang
2243 else
2244 language=English
2248 echo $ac_n "checking language""... $ac_c" 1>&6
2249 echo "configure:2250: checking language" >&5
2250 case "$language" in
2251 En* | en* | Am* | am* | US* | us*)
2252 lang=English;;
2253 NL | nl | Du* | du* | Ned* | ned*)
2254 lang=Dutch;;
2256 lang=English;;
2258 lang=unknown;;
2259 esac
2260 echo "$ac_t""$lang" 1>&6
2262 if test "$lang" = "unknown" ; then
2264 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2265 warn_b=yes
2271 DIR_LOCALEDIR=${localedir}
2272 presome=${prefix}
2273 if test "$prefix" = "NONE"; then
2274 presome=${ac_default_prefix}
2276 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2279 cat >> confdefs.h <<EOF
2280 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2284 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2285 echo "configure:2286: checking for gettext in -lintl" >&5
2286 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2289 else
2290 ac_save_LIBS="$LIBS"
2291 LIBS="-lintl $LIBS"
2292 cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 /* Override any gcc2 internal prototype to avoid an error. */
2296 #ifdef __cplusplus
2297 extern "C"
2298 #endif
2299 /* We use char because int might match the return type of a gcc2
2300 builtin and then its argument prototype would still apply. */
2301 char gettext();
2303 int main() {
2304 gettext()
2305 ; return 0; }
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2308 rm -rf conftest*
2309 eval "ac_cv_lib_$ac_lib_var=yes"
2310 else
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2313 rm -rf conftest*
2314 eval "ac_cv_lib_$ac_lib_var=no"
2316 rm -f conftest*
2317 LIBS="$ac_save_LIBS"
2320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2321 echo "$ac_t""yes" 1>&6
2322 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2324 cat >> confdefs.h <<EOF
2325 #define $ac_tr_lib 1
2328 LIBS="-lintl $LIBS"
2330 else
2331 echo "$ac_t""no" 1>&6
2334 for ac_func in gettext
2336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2337 echo "configure:2338: checking for $ac_func" >&5
2338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 /* System header to define __stub macros and hopefully few prototypes,
2345 which can conflict with char $ac_func(); below. */
2346 #include <assert.h>
2347 /* Override any gcc2 internal prototype to avoid an error. */
2348 #ifdef __cplusplus
2349 extern "C"
2350 #endif
2351 /* We use char because int might match the return type of a gcc2
2352 builtin and then its argument prototype would still apply. */
2353 char $ac_func();
2355 int main() {
2357 /* The GNU C library defines this for functions which it implements
2358 to always fail with ENOSYS. Some functions are actually named
2359 something starting with __ and the normal name is an alias. */
2360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2361 choke me
2362 #else
2363 $ac_func();
2364 #endif
2366 ; return 0; }
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2369 rm -rf conftest*
2370 eval "ac_cv_func_$ac_func=yes"
2371 else
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 rm -rf conftest*
2375 eval "ac_cv_func_$ac_func=no"
2377 rm -f conftest*
2380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2383 cat >> confdefs.h <<EOF
2384 #define $ac_tr_func 1
2387 else
2388 echo "$ac_t""no" 1>&6
2390 done
2394 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2395 for ac_prog in msgfmt
2397 # Extract the first word of "$ac_prog", so it can be a program name with args.
2398 set dummy $ac_prog; ac_word=$2
2399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2400 echo "configure:2401: checking for $ac_word" >&5
2401 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2403 else
2404 if test -n "$MSGFMT"; then
2405 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2406 else
2407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2408 ac_dummy="$PATH"
2409 for ac_dir in $ac_dummy; do
2410 test -z "$ac_dir" && ac_dir=.
2411 if test -f $ac_dir/$ac_word; then
2412 ac_cv_prog_MSGFMT="$ac_prog"
2413 break
2415 done
2416 IFS="$ac_save_ifs"
2419 MSGFMT="$ac_cv_prog_MSGFMT"
2420 if test -n "$MSGFMT"; then
2421 echo "$ac_t""$MSGFMT" 1>&6
2422 else
2423 echo "$ac_t""no" 1>&6
2426 test -n "$MSGFMT" && break
2427 done
2428 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2430 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2431 echo "configure:2432: checking whether msgfmt accepts -o" >&5
2432 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2433 if test "$msgfmt_output" = ""; then
2434 echo "$ac_t""yes" 1>&6
2435 else
2436 # urg
2437 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2438 echo "$ac_t""no" 1>&6
2440 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2441 warn_b=yes
2444 if test ! -n "$MSGFMT"; then
2446 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2447 warn_b=yes
2452 # urg, never know what names these teTeX guys will think up
2454 for ac_prog in mf
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_word" >&5
2460 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2462 else
2463 if test -n "$METAFONT"; then
2464 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2465 else
2466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2467 ac_dummy="$PATH"
2468 for ac_dir in $ac_dummy; do
2469 test -z "$ac_dir" && ac_dir=.
2470 if test -f $ac_dir/$ac_word; then
2471 ac_cv_prog_METAFONT="$ac_prog"
2472 break
2474 done
2475 IFS="$ac_save_ifs"
2478 METAFONT="$ac_cv_prog_METAFONT"
2479 if test -n "$METAFONT"; then
2480 echo "$ac_t""$METAFONT" 1>&6
2481 else
2482 echo "$ac_t""no" 1>&6
2485 test -n "$METAFONT" && break
2486 done
2487 test -n "$METAFONT" || METAFONT="no"
2489 if test "x$METAFONT" = "xno"; then
2490 for ac_prog in mfont
2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_word" >&5
2496 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2498 else
2499 if test -n "$MFONT"; then
2500 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2501 else
2502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2503 ac_dummy="$PATH"
2504 for ac_dir in $ac_dummy; do
2505 test -z "$ac_dir" && ac_dir=.
2506 if test -f $ac_dir/$ac_word; then
2507 ac_cv_prog_MFONT="$ac_prog"
2508 break
2510 done
2511 IFS="$ac_save_ifs"
2514 MFONT="$ac_cv_prog_MFONT"
2515 if test -n "$MFONT"; then
2516 echo "$ac_t""$MFONT" 1>&6
2517 else
2518 echo "$ac_t""no" 1>&6
2521 test -n "$MFONT" && break
2522 done
2523 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2525 METAFONT=$MFONT
2528 for ac_prog in mp
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2536 else
2537 if test -n "$METAPOST"; then
2538 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2539 else
2540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2541 ac_dummy="$PATH"
2542 for ac_dir in $ac_dummy; do
2543 test -z "$ac_dir" && ac_dir=.
2544 if test -f $ac_dir/$ac_word; then
2545 ac_cv_prog_METAPOST="$ac_prog"
2546 break
2548 done
2549 IFS="$ac_save_ifs"
2552 METAPOST="$ac_cv_prog_METAPOST"
2553 if test -n "$METAPOST"; then
2554 echo "$ac_t""$METAPOST" 1>&6
2555 else
2556 echo "$ac_t""no" 1>&6
2559 test -n "$METAPOST" && break
2560 done
2561 test -n "$METAPOST" || METAPOST="no"
2563 if test "x$METAPOST" = "xno"; then
2564 for ac_prog in mpost
2566 # Extract the first word of "$ac_prog", so it can be a program name with args.
2567 set dummy $ac_prog; ac_word=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573 if test -n "$MPOST"; then
2574 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2575 else
2576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2577 ac_dummy="$PATH"
2578 for ac_dir in $ac_dummy; do
2579 test -z "$ac_dir" && ac_dir=.
2580 if test -f $ac_dir/$ac_word; then
2581 ac_cv_prog_MPOST="$ac_prog"
2582 break
2584 done
2585 IFS="$ac_save_ifs"
2588 MPOST="$ac_cv_prog_MPOST"
2589 if test -n "$MPOST"; then
2590 echo "$ac_t""$MPOST" 1>&6
2591 else
2592 echo "$ac_t""no" 1>&6
2595 test -n "$MPOST" && break
2596 done
2597 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2600 METAPOST=$MPOST
2603 for ac_prog in inimf
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_word" >&5
2609 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2611 else
2612 if test -n "$INIMETAFONT"; then
2613 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2614 else
2615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2616 ac_dummy="$PATH"
2617 for ac_dir in $ac_dummy; do
2618 test -z "$ac_dir" && ac_dir=.
2619 if test -f $ac_dir/$ac_word; then
2620 ac_cv_prog_INIMETAFONT="$ac_prog"
2621 break
2623 done
2624 IFS="$ac_save_ifs"
2627 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2628 if test -n "$INIMETAFONT"; then
2629 echo "$ac_t""$INIMETAFONT" 1>&6
2630 else
2631 echo "$ac_t""no" 1>&6
2634 test -n "$INIMETAFONT" && break
2635 done
2636 test -n "$INIMETAFONT" || INIMETAFONT="no"
2638 if test "x$INIMETAFONT" = "xno"; then
2639 for ac_prog in inimfont
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2644 echo "configure:2645: checking for $ac_word" >&5
2645 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647 else
2648 if test -n "$INIMFONT"; then
2649 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2650 else
2651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2652 ac_dummy="$PATH"
2653 for ac_dir in $ac_dummy; do
2654 test -z "$ac_dir" && ac_dir=.
2655 if test -f $ac_dir/$ac_word; then
2656 ac_cv_prog_INIMFONT="$ac_prog"
2657 break
2659 done
2660 IFS="$ac_save_ifs"
2663 INIMFONT="$ac_cv_prog_INIMFONT"
2664 if test -n "$INIMFONT"; then
2665 echo "$ac_t""$INIMFONT" 1>&6
2666 else
2667 echo "$ac_t""no" 1>&6
2670 test -n "$INIMFONT" && break
2671 done
2672 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2674 INIMETAFONT=$INIMFONT
2677 for ac_prog in inimp
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_word" >&5
2683 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686 if test -n "$INIMETAPOST"; then
2687 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2688 else
2689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2690 ac_dummy="$PATH"
2691 for ac_dir in $ac_dummy; do
2692 test -z "$ac_dir" && ac_dir=.
2693 if test -f $ac_dir/$ac_word; then
2694 ac_cv_prog_INIMETAPOST="$ac_prog"
2695 break
2697 done
2698 IFS="$ac_save_ifs"
2701 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2702 if test -n "$INIMETAPOST"; then
2703 echo "$ac_t""$INIMETAPOST" 1>&6
2704 else
2705 echo "$ac_t""no" 1>&6
2708 test -n "$INIMETAPOST" && break
2709 done
2710 test -n "$INIMETAPOST" || INIMETAPOST="no"
2712 if test "x$INIMETAPOST" = "xno"; then
2713 for ac_prog in inimpost
2715 # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2718 echo "configure:2719: checking for $ac_word" >&5
2719 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2721 else
2722 if test -n "$INIMPOST"; then
2723 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2724 else
2725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2726 ac_dummy="$PATH"
2727 for ac_dir in $ac_dummy; do
2728 test -z "$ac_dir" && ac_dir=.
2729 if test -f $ac_dir/$ac_word; then
2730 ac_cv_prog_INIMPOST="$ac_prog"
2731 break
2733 done
2734 IFS="$ac_save_ifs"
2737 INIMPOST="$ac_cv_prog_INIMPOST"
2738 if test -n "$INIMPOST"; then
2739 echo "$ac_t""$INIMPOST" 1>&6
2740 else
2741 echo "$ac_t""no" 1>&6
2744 test -n "$INIMPOST" && break
2745 done
2746 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2748 INIMETAPOST=$INIMPOST
2751 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2752 echo "configure:2753: checking for working metafont mode" >&5
2753 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2754 for MFMODE in $modelist; do
2755 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2756 if test -f mfput.tfm; then
2757 break;
2759 done
2760 echo "$ac_t""$MFMODE" 1>&6
2762 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2763 echo "configure:2764: checking for mfplain.mp" >&5
2765 # For now let people define these in their environments
2767 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2768 echo "$ac_t""$MFPLAIN_MP" 1>&6
2770 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2771 echo "configure:2772: checking for inimetapost flags" >&5
2772 if test ${INIMETAPOST} = "inimp" ; then
2773 : ${INIMETAPOST_FLAGS=''}
2774 else
2775 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2777 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2779 rm -f mfput.*
2790 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2791 if test "${enable_tfm_path+set}" = set; then
2792 enableval="$enable_tfm_path"
2793 tfm_path=$enableval
2794 else
2795 tfm_path=auto
2799 for ac_prog in kpsewhich
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2804 echo "configure:2805: checking for $ac_word" >&5
2805 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2807 else
2808 if test -n "$KPSEWHICH"; then
2809 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2810 else
2811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2812 ac_dummy="$PATH"
2813 for ac_dir in $ac_dummy; do
2814 test -z "$ac_dir" && ac_dir=.
2815 if test -f $ac_dir/$ac_word; then
2816 ac_cv_prog_KPSEWHICH="$ac_prog"
2817 break
2819 done
2820 IFS="$ac_save_ifs"
2823 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2824 if test -n "$KPSEWHICH"; then
2825 echo "$ac_t""$KPSEWHICH" 1>&6
2826 else
2827 echo "$ac_t""no" 1>&6
2830 test -n "$KPSEWHICH" && break
2831 done
2832 test -n "$KPSEWHICH" || KPSEWHICH="no"
2834 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2835 echo "configure:2836: checking for tfm path" >&5
2837 TFM_FONTS="cmr msam"
2839 if test "x$tfm_path" = xauto ; then
2840 if test "x$KPSEWHICH" != "xno" ; then
2841 for i in $TFM_FONTS; do
2842 dir=`$KPSEWHICH tfm ${i}10.tfm`
2843 TFM_PATH="$TFM_PATH `dirname $dir`"
2844 done
2845 else
2847 echo "configure: warning: Please specify where cmr10.tfm lives:
2848 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2849 warn_b=yes
2852 else
2853 TFM_PATH=$tfm_path
2856 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2857 echo "$ac_t""$TFM_PATH" 1>&6
2861 ## First, let's just see if we can find Guile at all.
2862 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2863 echo "configure:2864: checking "for guile-config"" >&5
2864 for guile_config in guile-config $target-guile-config $build-guile-config; do
2865 echo "$ac_t"""$guile_config"" 1>&6
2866 if ! $guile_config --version > /dev/null 2>&1 ; then
2867 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2868 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2869 echo "configure:2870: checking "if we are cross compiling"" >&5
2870 guile_config=error
2871 else
2872 break
2874 done
2875 if test "$guile_config" = "error"; then
2876 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2877 exit 1
2879 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2880 echo "configure:2881: checking "Guile version"" >&5
2881 need_guile_version="1.3.4"
2882 need_guile_version_numeric=100304
2883 guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2884 guile_version_numeric=`echo $guile_version | awk -F. '
2885 {if ($3) {last = $3}
2886 else {last =0}}
2887 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2888 echo "$ac_t"""$guile_version"" 1>&6
2889 if test $guile_version_numeric -lt $need_guile_version_numeric
2890 then
2892 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2893 warn_b=yes
2897 ## The GUILE_FLAGS macro.
2898 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2899 echo "configure:2900: checking for Guile" >&5
2900 if ! $guile_config link > /dev/null ; then
2901 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2902 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2903 exit 1
2905 GUILE_CFLAGS="`$guile_config compile`"
2906 GUILE_LDFLAGS="`$guile_config link`"
2909 echo "$ac_t""yes" 1>&6
2911 # Extract the first word of "guile", so it can be a program name with args.
2912 set dummy guile; ac_word=$2
2913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_word" >&5
2915 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918 case "$GUILE" in
2920 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2922 ?:/*)
2923 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2927 ac_dummy="$PATH"
2928 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 if test -f $ac_dir/$ac_word; then
2931 ac_cv_path_GUILE="$ac_dir/$ac_word"
2932 break
2934 done
2935 IFS="$ac_save_ifs"
2936 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2938 esac
2940 GUILE="$ac_cv_path_GUILE"
2941 if test -n "$GUILE"; then
2942 echo "$ac_t""$GUILE" 1>&6
2943 else
2944 echo "$ac_t""no" 1>&6
2951 kpathsea_b=yes
2952 # Check whether --enable-kpathsea or --disable-kpathsea was given.
2953 if test "${enable_kpathsea+set}" = set; then
2954 enableval="$enable_kpathsea"
2955 kpathsea_b=$enableval
2959 if test $kpathsea_b = yes; then
2960 for ac_hdr in kpathsea/kpathsea.h
2962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2964 echo "configure:2965: checking for $ac_hdr" >&5
2965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2967 else
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 #include <$ac_hdr>
2973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2974 { (eval echo configure:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2976 if test -z "$ac_err"; then
2977 rm -rf conftest*
2978 eval "ac_cv_header_$ac_safe=yes"
2979 else
2980 echo "$ac_err" >&5
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2983 rm -rf conftest*
2984 eval "ac_cv_header_$ac_safe=no"
2986 rm -f conftest*
2988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2991 cat >> confdefs.h <<EOF
2992 #define $ac_tr_hdr 1
2995 else
2996 echo "$ac_t""no" 1>&6
2998 done
3000 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
3001 echo "configure:3002: checking for kpse_find_file in -lkpathsea" >&5
3002 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
3003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3005 else
3006 ac_save_LIBS="$LIBS"
3007 LIBS="-lkpathsea $LIBS"
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 /* Override any gcc2 internal prototype to avoid an error. */
3012 #ifdef __cplusplus
3013 extern "C"
3014 #endif
3015 /* We use char because int might match the return type of a gcc2
3016 builtin and then its argument prototype would still apply. */
3017 char kpse_find_file();
3019 int main() {
3020 kpse_find_file()
3021 ; return 0; }
3023 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3024 rm -rf conftest*
3025 eval "ac_cv_lib_$ac_lib_var=yes"
3026 else
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3029 rm -rf conftest*
3030 eval "ac_cv_lib_$ac_lib_var=no"
3032 rm -f conftest*
3033 LIBS="$ac_save_LIBS"
3036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3037 echo "$ac_t""yes" 1>&6
3038 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3039 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3040 cat >> confdefs.h <<EOF
3041 #define $ac_tr_lib 1
3044 LIBS="-lkpathsea $LIBS"
3046 else
3047 echo "$ac_t""no" 1>&6
3050 # urg: kpse_find_tfm is a #define, how to check for this?
3051 # AC_CHECK_LIB(kpathsea, kpse_find_tfm)
3052 # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions. You may have to create TFM files manually.))
3053 for ac_func in kpse_find_file
3055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3056 echo "configure:3057: checking for $ac_func" >&5
3057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* System header to define __stub macros and hopefully few prototypes,
3064 which can conflict with char $ac_func(); below. */
3065 #include <assert.h>
3066 /* Override any gcc2 internal prototype to avoid an error. */
3067 #ifdef __cplusplus
3068 extern "C"
3069 #endif
3070 /* We use char because int might match the return type of a gcc2
3071 builtin and then its argument prototype would still apply. */
3072 char $ac_func();
3074 int main() {
3076 /* The GNU C library defines this for functions which it implements
3077 to always fail with ENOSYS. Some functions are actually named
3078 something starting with __ and the normal name is an alias. */
3079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3080 choke me
3081 #else
3082 $ac_func();
3083 #endif
3085 ; return 0; }
3087 if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3088 rm -rf conftest*
3089 eval "ac_cv_func_$ac_func=yes"
3090 else
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3093 rm -rf conftest*
3094 eval "ac_cv_func_$ac_func=no"
3096 rm -f conftest*
3099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3100 echo "$ac_t""yes" 1>&6
3101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3102 cat >> confdefs.h <<EOF
3103 #define $ac_tr_func 1
3106 else
3107 echo "$ac_t""no" 1>&6
3108 echo "configure: warning: Cannot find kpathsea functions. You may have to create TFM files manually." 1>&2
3109 warn_b=yes
3110 kpathsea_b=no
3112 done
3115 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3116 echo "configure:3117: checking whether to use kpathsea" >&5
3117 if test $kpathsea_b = yes; then
3118 echo "$ac_t""yes" 1>&6
3119 KPATHSEA=1
3120 else
3121 echo "$ac_t""no" 1>&6
3122 KPATHSEA=0
3126 cat >> confdefs.h <<EOF
3127 #define KPATHSEA $KPATHSEA
3132 for ac_prog in bibtex2html bib2html
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_word" >&5
3138 if eval "test \"`echo '$''{'ac_cv_prog_BIBTEX2HTML'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3140 else
3141 if test -n "$BIBTEX2HTML"; then
3142 ac_cv_prog_BIBTEX2HTML="$BIBTEX2HTML" # Let the user override the test.
3143 else
3144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3145 ac_dummy="$PATH"
3146 for ac_dir in $ac_dummy; do
3147 test -z "$ac_dir" && ac_dir=.
3148 if test -f $ac_dir/$ac_word; then
3149 ac_cv_prog_BIBTEX2HTML="$ac_prog"
3150 break
3152 done
3153 IFS="$ac_save_ifs"
3156 BIBTEX2HTML="$ac_cv_prog_BIBTEX2HTML"
3157 if test -n "$BIBTEX2HTML"; then
3158 echo "$ac_t""$BIBTEX2HTML" 1>&6
3159 else
3160 echo "$ac_t""no" 1>&6
3163 test -n "$BIBTEX2HTML" && break
3164 done
3165 test -n "$BIBTEX2HTML" || BIBTEX2HTML="error"
3167 if test "$BIBTEX2HTML" = "bib2html"; then
3168 BIBTEX2HTML_FLAGS='$< $(@)'
3169 else
3170 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
3177 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3178 echo "configure:3179: checking for 8-bit clean memcmp" >&5
3179 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3181 else
3182 if test "$cross_compiling" = yes; then
3183 ac_cv_func_memcmp_clean=no
3184 else
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #ifdef __cplusplus
3189 extern "C" void exit(int);
3190 #endif
3192 main()
3194 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3195 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3200 then
3201 ac_cv_func_memcmp_clean=yes
3202 else
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 rm -fr conftest*
3206 ac_cv_func_memcmp_clean=no
3208 rm -fr conftest*
3213 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3214 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3216 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3217 echo "configure:3218: checking for vprintf" >&5
3218 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3220 else
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 /* System header to define __stub macros and hopefully few prototypes,
3225 which can conflict with char vprintf(); below. */
3226 #include <assert.h>
3227 /* Override any gcc2 internal prototype to avoid an error. */
3228 #ifdef __cplusplus
3229 extern "C"
3230 #endif
3231 /* We use char because int might match the return type of a gcc2
3232 builtin and then its argument prototype would still apply. */
3233 char vprintf();
3235 int main() {
3237 /* The GNU C library defines this for functions which it implements
3238 to always fail with ENOSYS. Some functions are actually named
3239 something starting with __ and the normal name is an alias. */
3240 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3241 choke me
3242 #else
3243 vprintf();
3244 #endif
3246 ; return 0; }
3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3249 rm -rf conftest*
3250 eval "ac_cv_func_vprintf=yes"
3251 else
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 eval "ac_cv_func_vprintf=no"
3257 rm -f conftest*
3260 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 cat >> confdefs.h <<\EOF
3263 #define HAVE_VPRINTF 1
3266 else
3267 echo "$ac_t""no" 1>&6
3270 if test "$ac_cv_func_vprintf" != yes; then
3271 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3272 echo "configure:3273: checking for _doprnt" >&5
3273 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3275 else
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 /* System header to define __stub macros and hopefully few prototypes,
3280 which can conflict with char _doprnt(); below. */
3281 #include <assert.h>
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 #ifdef __cplusplus
3284 extern "C"
3285 #endif
3286 /* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3288 char _doprnt();
3290 int main() {
3292 /* The GNU C library defines this for functions which it implements
3293 to always fail with ENOSYS. Some functions are actually named
3294 something starting with __ and the normal name is an alias. */
3295 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3296 choke me
3297 #else
3298 _doprnt();
3299 #endif
3301 ; return 0; }
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3304 rm -rf conftest*
3305 eval "ac_cv_func__doprnt=yes"
3306 else
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 rm -rf conftest*
3310 eval "ac_cv_func__doprnt=no"
3312 rm -f conftest*
3315 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3316 echo "$ac_t""yes" 1>&6
3317 cat >> confdefs.h <<\EOF
3318 #define HAVE_DOPRNT 1
3321 else
3322 echo "$ac_t""no" 1>&6
3327 for ac_func in memmem snprintf vsnprintf gettext isinf
3329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3330 echo "configure:3331: checking for $ac_func" >&5
3331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3333 else
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* System header to define __stub macros and hopefully few prototypes,
3338 which can conflict with char $ac_func(); below. */
3339 #include <assert.h>
3340 /* Override any gcc2 internal prototype to avoid an error. */
3341 #ifdef __cplusplus
3342 extern "C"
3343 #endif
3344 /* We use char because int might match the return type of a gcc2
3345 builtin and then its argument prototype would still apply. */
3346 char $ac_func();
3348 int main() {
3350 /* The GNU C library defines this for functions which it implements
3351 to always fail with ENOSYS. Some functions are actually named
3352 something starting with __ and the normal name is an alias. */
3353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3354 choke me
3355 #else
3356 $ac_func();
3357 #endif
3359 ; return 0; }
3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3362 rm -rf conftest*
3363 eval "ac_cv_func_$ac_func=yes"
3364 else
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3367 rm -rf conftest*
3368 eval "ac_cv_func_$ac_func=no"
3370 rm -f conftest*
3373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3376 cat >> confdefs.h <<EOF
3377 #define $ac_tr_func 1
3380 else
3381 echo "$ac_t""no" 1>&6
3383 done
3386 cat >> confdefs.h <<EOF
3387 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3390 cat >> confdefs.h <<EOF
3391 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3395 for ac_prog in makeinfo
3397 # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_word" >&5
3401 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3403 else
3404 if test -n "$MAKEINFO"; then
3405 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3406 else
3407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3408 ac_dummy="$PATH"
3409 for ac_dir in $ac_dummy; do
3410 test -z "$ac_dir" && ac_dir=.
3411 if test -f $ac_dir/$ac_word; then
3412 ac_cv_prog_MAKEINFO="$ac_prog"
3413 break
3415 done
3416 IFS="$ac_save_ifs"
3419 MAKEINFO="$ac_cv_prog_MAKEINFO"
3420 if test -n "$MAKEINFO"; then
3421 echo "$ac_t""$MAKEINFO" 1>&6
3422 else
3423 echo "$ac_t""no" 1>&6
3426 test -n "$MAKEINFO" && break
3427 done
3428 test -n "$MAKEINFO" || MAKEINFO="error"
3430 # Extract the first word of "perl", so it can be a program name with args.
3431 set dummy perl; ac_word=$2
3432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3433 echo "configure:3434: checking for $ac_word" >&5
3434 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3436 else
3437 case "$PERL" in
3439 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3441 ?:/*)
3442 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3446 ac_dummy="$PATH"
3447 for ac_dir in $ac_dummy; do
3448 test -z "$ac_dir" && ac_dir=.
3449 if test -f $ac_dir/$ac_word; then
3450 ac_cv_path_PERL="$ac_dir/$ac_word"
3451 break
3453 done
3454 IFS="$ac_save_ifs"
3455 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3457 esac
3459 PERL="$ac_cv_path_PERL"
3460 if test -n "$PERL"; then
3461 echo "$ac_t""$PERL" 1>&6
3462 else
3463 echo "$ac_t""no" 1>&6
3468 trap '' 1 2 15
3469 cat > confcache <<\EOF
3470 # This file is a shell script that caches the results of configure
3471 # tests run on this system so they can be shared between configure
3472 # scripts and configure runs. It is not useful on other systems.
3473 # If it contains results you don't want to keep, you may remove or edit it.
3475 # By default, configure uses ./config.cache as the cache file,
3476 # creating it if it does not exist already. You can give configure
3477 # the --cache-file=FILE option to use a different cache file; that is
3478 # what configure does when it calls configure scripts in
3479 # subdirectories, so they share the cache.
3480 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3481 # config.status only pays attention to the cache file if you give it the
3482 # --recheck option to rerun configure.
3485 # The following way of writing the cache mishandles newlines in values,
3486 # but we know of no workaround that is simple, portable, and efficient.
3487 # So, don't put newlines in cache variables' values.
3488 # Ultrix sh set writes to stderr and can't be redirected directly,
3489 # and sets the high bit in the cache file unless we assign to the vars.
3490 (set) 2>&1 |
3491 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3492 *ac_space=\ *)
3493 # `set' does not quote correctly, so add quotes (double-quote substitution
3494 # turns \\\\ into \\, and sed turns \\ into \).
3495 sed -n \
3496 -e "s/'/'\\\\''/g" \
3497 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3500 # `set' quotes correctly as required by POSIX, so do not add quotes.
3501 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3503 esac >> confcache
3504 if cmp -s $cache_file confcache; then
3506 else
3507 if test -w $cache_file; then
3508 echo "updating cache $cache_file"
3509 cat confcache > $cache_file
3510 else
3511 echo "not updating unwritable cache $cache_file"
3514 rm -f confcache
3516 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3519 # Let make expand exec_prefix.
3520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3522 # Any assignment to VPATH causes Sun make to only execute
3523 # the first set of double-colon rules, so remove it if not needed.
3524 # If there is a colon in the path, we need to keep it.
3525 if test "x$srcdir" = x.; then
3526 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3529 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3531 DEFS=-DHAVE_CONFIG_H
3533 # Without the "./", some shells look in PATH for config.status.
3534 : ${CONFIG_STATUS=./config.status}
3536 echo creating $CONFIG_STATUS
3537 rm -f $CONFIG_STATUS
3538 cat > $CONFIG_STATUS <<EOF
3539 #! /bin/sh
3540 # Generated automatically by configure.
3541 # Run this file to recreate the current configuration.
3542 # This directory was configured as follows,
3543 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3545 # $0 $ac_configure_args
3547 # Compiler output produced by configure, useful for debugging
3548 # configure, is in ./config.log if it exists.
3550 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3551 for ac_option
3553 case "\$ac_option" in
3554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3555 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3556 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3557 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3558 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3559 exit 0 ;;
3560 -help | --help | --hel | --he | --h)
3561 echo "\$ac_cs_usage"; exit 0 ;;
3562 *) echo "\$ac_cs_usage"; exit 1 ;;
3563 esac
3564 done
3566 ac_given_srcdir=$srcdir
3568 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3570 cat >> $CONFIG_STATUS <<EOF
3572 # Protect against being on the right side of a sed subst in config.status.
3573 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3574 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3575 $ac_vpsub
3576 $extrasub
3577 s%@SHELL@%$SHELL%g
3578 s%@CFLAGS@%$CFLAGS%g
3579 s%@CPPFLAGS@%$CPPFLAGS%g
3580 s%@CXXFLAGS@%$CXXFLAGS%g
3581 s%@FFLAGS@%$FFLAGS%g
3582 s%@DEFS@%$DEFS%g
3583 s%@LDFLAGS@%$LDFLAGS%g
3584 s%@LIBS@%$LIBS%g
3585 s%@exec_prefix@%$exec_prefix%g
3586 s%@prefix@%$prefix%g
3587 s%@program_transform_name@%$program_transform_name%g
3588 s%@bindir@%$bindir%g
3589 s%@sbindir@%$sbindir%g
3590 s%@libexecdir@%$libexecdir%g
3591 s%@datadir@%$datadir%g
3592 s%@sysconfdir@%$sysconfdir%g
3593 s%@sharedstatedir@%$sharedstatedir%g
3594 s%@localstatedir@%$localstatedir%g
3595 s%@libdir@%$libdir%g
3596 s%@includedir@%$includedir%g
3597 s%@oldincludedir@%$oldincludedir%g
3598 s%@infodir@%$infodir%g
3599 s%@mandir@%$mandir%g
3600 s%@builddir@%$builddir%g
3601 s%@stepmake@%$stepmake%g
3602 s%@package@%$package%g
3603 s%@PACKAGE@%$PACKAGE%g
3604 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3605 s%@package_depth@%$package_depth%g
3606 s%@AUTOGENERATE@%$AUTOGENERATE%g
3607 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3608 s%@host@%$host%g
3609 s%@host_alias@%$host_alias%g
3610 s%@host_cpu@%$host_cpu%g
3611 s%@host_vendor@%$host_vendor%g
3612 s%@host_os@%$host_os%g
3613 s%@MAKE@%$MAKE%g
3614 s%@FIND@%$FIND%g
3615 s%@TAR@%$TAR%g
3616 s%@BASH@%$BASH%g
3617 s%@PYTHON@%$PYTHON%g
3618 s%@program_prefix@%$program_prefix%g
3619 s%@program_suffix@%$program_suffix%g
3620 s%@ZIP@%$ZIP%g
3621 s%@LN@%$LN%g
3622 s%@LN_S@%$LN_S%g
3623 s%@INSTALL@%$INSTALL%g
3624 s%@PATHSEP@%$PATHSEP%g
3625 s%@DIRSEP@%$DIRSEP%g
3626 s%@DIR_DATADIR@%$DIR_DATADIR%g
3627 s%@subdirs@%$subdirs%g
3628 s%@CC@%$CC%g
3629 s%@LD@%$LD%g
3630 s%@cross_compiling@%$cross_compiling%g
3631 s%@ICFLAGS@%$ICFLAGS%g
3632 s%@ILDFLAGS@%$ILDFLAGS%g
3633 s%@DEFINES@%$DEFINES%g
3634 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3635 s%@CPP@%$CPP%g
3636 s%@CXX@%$CXX%g
3637 s%@CXXCPP@%$CXXCPP%g
3638 s%@YACC@%$YACC%g
3639 s%@BISON@%$BISON%g
3640 s%@FLEX@%$FLEX%g
3641 s%@AR@%$AR%g
3642 s%@RANLIB@%$RANLIB%g
3643 s%@localedir@%$localedir%g
3644 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3645 s%@MSGFMT@%$MSGFMT%g
3646 s%@METAFONT@%$METAFONT%g
3647 s%@MFONT@%$MFONT%g
3648 s%@METAPOST@%$METAPOST%g
3649 s%@MPOST@%$MPOST%g
3650 s%@INIMETAFONT@%$INIMETAFONT%g
3651 s%@INIMFONT@%$INIMFONT%g
3652 s%@INIMETAPOST@%$INIMETAPOST%g
3653 s%@INIMPOST@%$INIMPOST%g
3654 s%@MFMODE@%$MFMODE%g
3655 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3656 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3657 s%@KPSEWHICH@%$KPSEWHICH%g
3658 s%@TFM_PATH@%$TFM_PATH%g
3659 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3660 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3661 s%@GUILE@%$GUILE%g
3662 s%@KPATHSEA@%$KPATHSEA%g
3663 s%@BIBTEX2HTML@%$BIBTEX2HTML%g
3664 s%@BIBTEX2HTML_FLAGS@%$BIBTEX2HTML_FLAGS%g
3665 s%@LIBOBJS@%$LIBOBJS%g
3666 s%@MAKEINFO@%$MAKEINFO%g
3667 s%@PERL@%$PERL%g
3669 CEOF
3672 cat >> $CONFIG_STATUS <<\EOF
3674 # Split the substitutions into bite-sized pieces for seds with
3675 # small command number limits, like on Digital OSF/1 and HP-UX.
3676 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3677 ac_file=1 # Number of current file.
3678 ac_beg=1 # First line for current file.
3679 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3680 ac_more_lines=:
3681 ac_sed_cmds=""
3682 while $ac_more_lines; do
3683 if test $ac_beg -gt 1; then
3684 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3685 else
3686 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3688 if test ! -s conftest.s$ac_file; then
3689 ac_more_lines=false
3690 rm -f conftest.s$ac_file
3691 else
3692 if test -z "$ac_sed_cmds"; then
3693 ac_sed_cmds="sed -f conftest.s$ac_file"
3694 else
3695 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3697 ac_file=`expr $ac_file + 1`
3698 ac_beg=$ac_end
3699 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3701 done
3702 if test -z "$ac_sed_cmds"; then
3703 ac_sed_cmds=cat
3707 cat >> $CONFIG_STATUS <<EOF
3709 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3711 cat >> $CONFIG_STATUS <<\EOF
3712 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3714 case "$ac_file" in
3715 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3716 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3717 *) ac_file_in="${ac_file}.in" ;;
3718 esac
3720 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3722 # Remove last slash and all that follows it. Not all systems have dirname.
3723 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3724 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3725 # The file is in a subdirectory.
3726 test ! -d "$ac_dir" && mkdir "$ac_dir"
3727 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3728 # A "../" for each directory in $ac_dir_suffix.
3729 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3730 else
3731 ac_dir_suffix= ac_dots=
3734 case "$ac_given_srcdir" in
3735 .) srcdir=.
3736 if test -z "$ac_dots"; then top_srcdir=.
3737 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3738 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3739 *) # Relative path.
3740 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3741 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3742 esac
3745 echo creating "$ac_file"
3746 rm -f "$ac_file"
3747 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3748 case "$ac_file" in
3749 *Makefile*) ac_comsub="1i\\
3750 # $configure_input" ;;
3751 *) ac_comsub= ;;
3752 esac
3754 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3755 sed -e "$ac_comsub
3756 s%@configure_input@%$configure_input%g
3757 s%@srcdir@%$srcdir%g
3758 s%@top_srcdir@%$top_srcdir%g
3759 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3760 fi; done
3761 rm -f conftest.s*
3763 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3764 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3766 # ac_d sets the value in "#define NAME VALUE" lines.
3767 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3768 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3769 ac_dC='\3'
3770 ac_dD='%g'
3771 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3772 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3773 ac_uB='\([ ]\)%\1#\2define\3'
3774 ac_uC=' '
3775 ac_uD='\4%g'
3776 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3777 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3778 ac_eB='$%\1#\2define\3'
3779 ac_eC=' '
3780 ac_eD='%g'
3782 if test "${CONFIG_HEADERS+set}" != set; then
3784 cat >> $CONFIG_STATUS <<EOF
3785 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3787 cat >> $CONFIG_STATUS <<\EOF
3789 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3791 case "$ac_file" in
3792 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3793 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3794 *) ac_file_in="${ac_file}.in" ;;
3795 esac
3797 echo creating $ac_file
3799 rm -f conftest.frag conftest.in conftest.out
3800 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3801 cat $ac_file_inputs > conftest.in
3805 # Transform confdefs.h into a sed script conftest.vals that substitutes
3806 # the proper values into config.h.in to produce config.h. And first:
3807 # Protect against being on the right side of a sed subst in config.status.
3808 # Protect against being in an unquoted here document in config.status.
3809 rm -f conftest.vals
3810 cat > conftest.hdr <<\EOF
3811 s/[\\&%]/\\&/g
3812 s%[\\$`]%\\&%g
3813 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3814 s%ac_d%ac_u%gp
3815 s%ac_u%ac_e%gp
3817 sed -n -f conftest.hdr confdefs.h > conftest.vals
3818 rm -f conftest.hdr
3820 # This sed command replaces #undef with comments. This is necessary, for
3821 # example, in the case of _POSIX_SOURCE, which is predefined and required
3822 # on some systems where configure will not decide to define it.
3823 cat >> conftest.vals <<\EOF
3824 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3827 # Break up conftest.vals because some shells have a limit on
3828 # the size of here documents, and old seds have small limits too.
3830 rm -f conftest.tail
3831 while :
3833 ac_lines=`grep -c . conftest.vals`
3834 # grep -c gives empty output for an empty file on some AIX systems.
3835 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3836 # Write a limited-size here document to conftest.frag.
3837 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3838 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3839 echo 'CEOF
3840 sed -f conftest.frag conftest.in > conftest.out
3841 rm -f conftest.in
3842 mv conftest.out conftest.in
3843 ' >> $CONFIG_STATUS
3844 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3845 rm -f conftest.vals
3846 mv conftest.tail conftest.vals
3847 done
3848 rm -f conftest.vals
3850 cat >> $CONFIG_STATUS <<\EOF
3851 rm -f conftest.frag conftest.h
3852 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3853 cat conftest.in >> conftest.h
3854 rm -f conftest.in
3855 if cmp -s $ac_file conftest.h 2>/dev/null; then
3856 echo "$ac_file is unchanged"
3857 rm -f conftest.h
3858 else
3859 # Remove last slash and all that follows it. Not all systems have dirname.
3860 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3862 # The file is in a subdirectory.
3863 test ! -d "$ac_dir" && mkdir "$ac_dir"
3865 rm -f $ac_file
3866 mv conftest.h $ac_file
3868 fi; done
3871 cat >> $CONFIG_STATUS <<EOF
3874 cat >> $CONFIG_STATUS <<\EOF
3876 exit 0
3878 chmod +x $CONFIG_STATUS
3879 rm -fr confdefs* $ac_clean_files
3880 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3882 if test "$no_recursion" != yes; then
3884 # Remove --cache-file and --srcdir arguments so they do not pile up.
3885 ac_sub_configure_args=
3886 ac_prev=
3887 for ac_arg in $ac_configure_args; do
3888 if test -n "$ac_prev"; then
3889 ac_prev=
3890 continue
3892 case "$ac_arg" in
3893 -cache-file | --cache-file | --cache-fil | --cache-fi \
3894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3895 ac_prev=cache_file ;;
3896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3899 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3900 ac_prev=srcdir ;;
3901 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3903 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3904 esac
3905 done
3907 for ac_config_dir in stepmake; do
3909 # Do not complain, so a configure script can configure whichever
3910 # parts of a large source tree are present.
3911 if test ! -d $srcdir/$ac_config_dir; then
3912 continue
3915 echo configuring in $ac_config_dir
3917 case "$srcdir" in
3918 .) ;;
3920 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3921 else
3922 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3925 esac
3927 ac_popdir=`pwd`
3928 cd $ac_config_dir
3930 # A "../" for each directory in /$ac_config_dir.
3931 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3933 case "$srcdir" in
3934 .) # No --srcdir option. We are building in place.
3935 ac_sub_srcdir=$srcdir ;;
3936 /*) # Absolute path.
3937 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3938 *) # Relative path.
3939 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3940 esac
3942 # Check for guested configure; otherwise get Cygnus style configure.
3943 if test -f $ac_sub_srcdir/configure; then
3944 ac_sub_configure=$ac_sub_srcdir/configure
3945 elif test -f $ac_sub_srcdir/configure.in; then
3946 ac_sub_configure=$ac_configure
3947 else
3948 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3949 ac_sub_configure=
3952 # The recursion is here.
3953 if test -n "$ac_sub_configure"; then
3955 # Make the cache file name correct relative to the subdirectory.
3956 case "$cache_file" in
3957 /*) ac_sub_cache_file=$cache_file ;;
3958 *) # Relative path.
3959 ac_sub_cache_file="$ac_dots$cache_file" ;;
3960 esac
3962 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3963 # The eval makes quoting arguments work.
3964 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3965 then :
3966 else
3967 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3971 cd $ac_popdir
3972 done
3976 # regular in-place build
3977 # test for srcdir_build = yes ?
3978 if test "$builddir" = "."; then
3979 rm -f $srcdir/GNUmakefile
3980 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
3981 chmod 444 $srcdir/GNUmakefile
3982 else # --srcdir build
3983 rm -f GNUmakefile
3984 cp $srcdir/make/srcdir.make.in GNUmakefile
3985 chmod 444 GNUmakefile