lilypond-1.3.78
[lilypond.git] / configure
blob2b07fc6941e7830228467a9e58bbec387c1613d7
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 enable-printing turn on debug printing. Default: off"
81 ac_help="$ac_help
82 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
83 ac_help="$ac_help
84 with-lang=LANG use LANG as language to emit messages"
85 ac_help="$ac_help
86 enable-tfm-path=PATH set path of tex directories where tfm files live, esp.: cmr10.tfm. Default: use kpsewhich"
87 ac_help="$ac_help
88 enable-kpathsea use kpathsea lib. Default: on"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
93 build=NONE
94 cache_file=./config.cache
95 exec_prefix=NONE
96 host=NONE
97 no_create=
98 nonopt=NONE
99 no_recursion=
100 prefix=NONE
101 program_prefix=NONE
102 program_suffix=NONE
103 program_transform_name=s,x,x,
104 silent=
105 site=
106 srcdir=
107 target=NONE
108 verbose=
109 x_includes=NONE
110 x_libraries=NONE
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
125 subdirs=
126 MFLAGS= MAKEFLAGS=
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
129 ac_max_here_lines=12
131 ac_prev=
132 for ac_option
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
138 ac_prev=
139 continue
142 case "$ac_option" in
143 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 *) ac_optarg= ;;
145 esac
147 # Accept the important Cygnus configure options, so we can diagnose typos.
149 case "$ac_option" in
151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
152 ac_prev=bindir ;;
153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154 bindir="$ac_optarg" ;;
156 -build | --build | --buil | --bui | --bu)
157 ac_prev=build ;;
158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159 build="$ac_optarg" ;;
161 -cache-file | --cache-file | --cache-fil | --cache-fi \
162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163 ac_prev=cache_file ;;
164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166 cache_file="$ac_optarg" ;;
168 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
169 ac_prev=datadir ;;
170 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
171 | --da=*)
172 datadir="$ac_optarg" ;;
174 -disable-* | --disable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* | --enable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 case "$ac_option" in
191 *=*) ;;
192 *) ac_optarg=yes ;;
193 esac
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198 | --exec | --exe | --ex)
199 ac_prev=exec_prefix ;;
200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202 | --exec=* | --exe=* | --ex=*)
203 exec_prefix="$ac_optarg" ;;
205 -gas | --gas | --ga | --g)
206 # Obsolete; use --with-gas.
207 with_gas=yes ;;
209 -help | --help | --hel | --he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
212 cat << EOF
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
215 Configuration:
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
223 [$ac_default_prefix]
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 [same as prefix]
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
230 [PREFIX/share]
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 [PREFIX/com]
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
246 cat << EOF
247 Host type:
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
262 exit 0 ;;
264 -host | --host | --hos | --ho)
265 ac_prev=host ;;
266 -host=* | --host=* | --hos=* | --ho=*)
267 host="$ac_optarg" ;;
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir="$ac_optarg" ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 ac_prev=infodir ;;
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir="$ac_optarg" ;;
281 -libdir | --libdir | --libdi | --libd)
282 ac_prev=libdir ;;
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir="$ac_optarg" ;;
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir="$ac_optarg" ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir="$ac_optarg" ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 ac_prev=mandir ;;
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir="$ac_optarg" ;;
307 -nfp | --nfp | --nf)
308 # Obsolete; use --without-fp.
309 with_fp=no ;;
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 | --no-cr | --no-c)
313 no_create=yes ;;
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 no_recursion=yes ;;
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir="$ac_optarg" ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 ac_prev=prefix ;;
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix="$ac_optarg" ;;
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix="$ac_optarg" ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix="$ac_optarg" ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name="$ac_optarg" ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
366 silent=yes ;;
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 ac_prev=sbindir ;;
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 | --sbi=* | --sb=*)
372 sbindir="$ac_optarg" ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
377 | --sha | --sh)
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 | --sha=* | --sh=*)
383 sharedstatedir="$ac_optarg" ;;
385 -site | --site | --sit)
386 ac_prev=site ;;
387 -site=* | --site=* | --sit=*)
388 site="$ac_optarg" ;;
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 ac_prev=srcdir ;;
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir="$ac_optarg" ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir="$ac_optarg" ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
403 ac_prev=target ;;
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target="$ac_optarg" ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 verbose=yes ;;
410 -version | --version | --versio | --versi | --vers)
411 echo "configure generated by autoconf version 2.13"
412 exit 0 ;;
414 -with-* | --with-*)
415 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 case "$ac_option" in
422 *=*) ;;
423 *) ac_optarg=yes ;;
424 esac
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
436 --x)
437 # Obsolete; use --with-x.
438 with_x=yes ;;
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev=x_includes ;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes="$ac_optarg" ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev=x_libraries ;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 nonopt="$ac_option"
467 esac
468 done
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
477 # 0 standard input
478 # 1 file creation
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
485 exec 6>/dev/null
486 else
487 exec 6>&1
489 exec 5>./config.log
491 echo "\
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
494 " 1>&5
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
498 ac_configure_args=
499 for ac_arg
501 case "$ac_arg" in
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c) ;;
504 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 esac
510 done
512 # NLS nuisances.
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 echo > confdefs.h
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=make/lilypond.lsm.in
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted=yes
534 # Try the directory containing this script, then its parent.
535 ac_prog=$0
536 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538 srcdir=$ac_confdir
539 if test ! -r $srcdir/$ac_unique_file; then
540 srcdir=..
542 else
543 ac_srcdir_defaulted=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 else
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE; then
557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
558 else
559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
565 . "$ac_site_file"
567 done
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
571 . $cache_file
572 else
573 echo "creating cache $cache_file"
574 > $cache_file
577 ac_ext=c
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp='$CPP $CPPFLAGS'
580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling=$ac_cv_prog_cc_cross
584 ac_exeext=
585 ac_objext=o
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589 ac_n= ac_c='
590 ' ac_t=' '
591 else
592 ac_n=-n ac_c= ac_t=
594 else
595 ac_n= ac_c='\c' ac_t=
601 # Bootstrap StepMake configure
604 . $srcdir/VERSION
605 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
606 if test x$MY_PATCH_LEVEL != x; then
607 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
610 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
611 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
612 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
614 # No versioning on directory names of sub-packages
615 # urg, urg
616 stepmake=${datadir}/stepmake
617 presome=${prefix}
618 if test "$prefix" = "NONE"; then
619 presome=${ac_default_prefix}
621 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
623 # urg, how is this supposed to work?
624 if test "$program_prefix" = "NONE"; then
625 program_prefix=
627 if test "$program_suffix" = "NONE"; then
628 program_suffix=
631 echo $ac_n "checking Package""... $ac_c" 1>&6
632 echo "configure:633: checking Package" >&5
633 if test "x$PACKAGE" = "xSTEPMAKE"; then
634 echo "$ac_t""Stepmake package!" 1>&6
636 #if test "x$builddir" != "x"; then
637 # builddir="../$builddir"
638 #else
639 # builddir=..
641 if test "$srcdir" != "."; then
642 absolute_builddir="`pwd`"
643 package_absolute_builddir="`dirname $absolute_builddir`"
644 package_srcdir="`dirname $srcdir`"
645 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
646 else
647 builddir=.
650 (cd stepmake 2>/dev/null || mkdir stepmake)
651 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
652 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
653 ac_aux_dir=
654 for ac_dir in bin $srcdir/bin; do
655 if 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
659 elif test -f $ac_dir/install.sh; then
660 ac_aux_dir=$ac_dir
661 ac_install_sh="$ac_aux_dir/install.sh -c"
662 break
664 done
665 if test -z "$ac_aux_dir"; then
666 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
668 ac_config_guess=$ac_aux_dir/config.guess
669 ac_config_sub=$ac_aux_dir/config.sub
670 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
672 stepmake=stepmake
673 else
674 echo "$ac_t""$PACKAGE" 1>&6
676 if test "$srcdir" != "."; then
677 absolute_builddir="`pwd`"
678 builddir="`dirname $srcdir`/`basename $absolute_builddir`"
679 else
680 builddir=.
683 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
684 echo "configure:685: checking for stepmake" >&5
685 # Check for installed stepmake
686 if test -d $stepmake; then
687 echo "$ac_t""$stepmake" 1>&6
688 else
689 stepmake='$(depth)'/$srcdir/stepmake
690 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
692 ac_aux_dir=
693 for ac_dir in \
694 $HOME/usr/local/share/stepmake/bin\
695 $HOME/usr/local/lib/stepmake/bin\
696 $HOME/usr/share/stepmake/bin\
697 $HOME/usr/lib/stepmake/bin\
698 /usr/local/share/stepmake/bin\
699 /usr/local/lib/stepmake/bin\
700 /usr/share/stepmake/bin\
701 /usr/lib/stepmake/bin\
702 stepmake/bin\
703 $srcdir/stepmake/bin\
704 $srcdir/\
705 $HOME/usr/local/share/stepmake/bin\
706 $HOME/usr/local/lib/stepmake/bin\
707 $HOME/usr/share/stepmake/bin\
708 $HOME/usr/lib/stepmake/bin\
709 /usr/local/share/stepmake/bin\
710 /usr/local/lib/stepmake/bin\
711 /usr/share/stepmake/bin\
712 /usr/lib/stepmake/bin\
713 stepmake/bin\
714 $srcdir/stepmake/bin\
715 ; do
716 if test -f $ac_dir/install-sh; then
717 ac_aux_dir=$ac_dir
718 ac_install_sh="$ac_aux_dir/install-sh -c"
719 break
720 elif test -f $ac_dir/install.sh; then
721 ac_aux_dir=$ac_dir
722 ac_install_sh="$ac_aux_dir/install.sh -c"
723 break
725 done
726 if test -z "$ac_aux_dir"; then
727 { echo "configure: error: can not find install-sh or install.sh in \
728 $HOME/usr/local/share/stepmake/bin\
729 $HOME/usr/local/lib/stepmake/bin\
730 $HOME/usr/share/stepmake/bin\
731 $HOME/usr/lib/stepmake/bin\
732 /usr/local/share/stepmake/bin\
733 /usr/local/lib/stepmake/bin\
734 /usr/share/stepmake/bin\
735 /usr/lib/stepmake/bin\
736 stepmake/bin\
737 $srcdir/stepmake/bin\
738 $srcdir/\
739 $HOME/usr/local/share/stepmake/bin\
740 $HOME/usr/local/lib/stepmake/bin\
741 $HOME/usr/share/stepmake/bin\
742 $HOME/usr/lib/stepmake/bin\
743 /usr/local/share/stepmake/bin\
744 /usr/local/lib/stepmake/bin\
745 /usr/share/stepmake/bin\
746 /usr/lib/stepmake/bin\
747 stepmake/bin\
748 $srcdir/stepmake/bin\
749 " 1>&2; exit 1; }
751 ac_config_guess=$ac_aux_dir/config.guess
752 ac_config_sub=$ac_aux_dir/config.sub
753 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
762 cat >> confdefs.h <<EOF
763 #define PACKAGE "${PACKAGE_NAME}"
766 cat >> confdefs.h <<EOF
767 #define TOPLEVEL_VERSION "${FULL_VERSION}"
771 if test "$package_depth" = "" ; then
772 package_depth="."
773 else
774 package_depth="../$package_depth"
776 export package_depth
779 AUTOGENERATE="This file was automatically generated by configure"
782 STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
783 if test "x$STATE_VECTOR" != "x"; then
784 STATE_VECTOR="\$(depth)/$STATE_VECTOR"
788 CONFIGSUFFIX=
789 # Check whether --enable-config or --disable-config was given.
790 if test "${enable_config+set}" = set; then
791 enableval="$enable_config"
792 CONFIGSUFFIX=-$enableval
796 CONFIGFILE=config$CONFIGSUFFIX
800 # Make sure we can run config.sub.
801 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
802 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
805 echo $ac_n "checking host system type""... $ac_c" 1>&6
806 echo "configure:807: checking host system type" >&5
808 host_alias=$host
809 case "$host_alias" in
810 NONE)
811 case $nonopt in
812 NONE)
813 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
814 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
815 fi ;;
816 *) host_alias=$nonopt ;;
817 esac ;;
818 esac
820 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
821 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
822 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
823 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
824 echo "$ac_t""$host" 1>&6
826 for ac_prog in gmake make
828 # Extract the first word of "$ac_prog", so it can be a program name with args.
829 set dummy $ac_prog; ac_word=$2
830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831 echo "configure:832: checking for $ac_word" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
834 else
835 if test -n "$MAKE"; then
836 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
837 else
838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
839 ac_dummy="$PATH"
840 for ac_dir in $ac_dummy; do
841 test -z "$ac_dir" && ac_dir=.
842 if test -f $ac_dir/$ac_word; then
843 ac_cv_prog_MAKE="$ac_prog"
844 break
846 done
847 IFS="$ac_save_ifs"
850 MAKE="$ac_cv_prog_MAKE"
851 if test -n "$MAKE"; then
852 echo "$ac_t""$MAKE" 1>&6
853 else
854 echo "$ac_t""no" 1>&6
857 test -n "$MAKE" && break
858 done
859 test -n "$MAKE" || MAKE="error"
861 for ac_prog in find
863 # Extract the first word of "$ac_prog", so it can be a program name with args.
864 set dummy $ac_prog; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
869 else
870 if test -n "$FIND"; then
871 ac_cv_prog_FIND="$FIND" # Let the user override the test.
872 else
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
874 ac_dummy="$PATH"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 ac_cv_prog_FIND="$ac_prog"
879 break
881 done
882 IFS="$ac_save_ifs"
885 FIND="$ac_cv_prog_FIND"
886 if test -n "$FIND"; then
887 echo "$ac_t""$FIND" 1>&6
888 else
889 echo "$ac_t""no" 1>&6
892 test -n "$FIND" && break
893 done
894 test -n "$FIND" || FIND="error"
898 for ac_prog in tar
900 # Extract the first word of "$ac_prog", so it can be a program name with args.
901 set dummy $ac_prog; ac_word=$2
902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
903 echo "configure:904: checking for $ac_word" >&5
904 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
906 else
907 if test -n "$TAR"; then
908 ac_cv_prog_TAR="$TAR" # Let the user override the test.
909 else
910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
911 ac_dummy="$PATH"
912 for ac_dir in $ac_dummy; do
913 test -z "$ac_dir" && ac_dir=.
914 if test -f $ac_dir/$ac_word; then
915 ac_cv_prog_TAR="$ac_prog"
916 break
918 done
919 IFS="$ac_save_ifs"
922 TAR="$ac_cv_prog_TAR"
923 if test -n "$TAR"; then
924 echo "$ac_t""$TAR" 1>&6
925 else
926 echo "$ac_t""no" 1>&6
929 test -n "$TAR" && break
930 done
931 test -n "$TAR" || TAR="error"
934 if test "x`uname`" = "xHP-UX"; then
935 # Extract the first word of "bash", so it can be a program name with args.
936 set dummy bash; ac_word=$2
937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
938 echo "configure:939: checking for $ac_word" >&5
939 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941 else
942 case "$BASH" in
944 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
946 ?:/*)
947 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
951 ac_dummy="$PATH"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 ac_cv_path_BASH="$ac_dir/$ac_word"
956 break
958 done
959 IFS="$ac_save_ifs"
960 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
962 esac
964 BASH="$ac_cv_path_BASH"
965 if test -n "$BASH"; then
966 echo "$ac_t""$BASH" 1>&6
967 else
968 echo "$ac_t""no" 1>&6
972 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
973 warn_b=yes
975 # Extract the first word of "bash", so it can be a program name with args.
976 set dummy bash; ac_word=$2
977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978 echo "configure:979: checking for $ac_word" >&5
979 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
981 else
982 case "$SHELL" in
984 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
986 ?:/*)
987 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
991 ac_dummy="$PATH"
992 for ac_dir in $ac_dummy; do
993 test -z "$ac_dir" && ac_dir=.
994 if test -f $ac_dir/$ac_word; then
995 ac_cv_path_SHELL="$ac_dir/$ac_word"
996 break
998 done
999 IFS="$ac_save_ifs"
1000 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1002 esac
1004 SHELL="$ac_cv_path_SHELL"
1005 if test -n "$SHELL"; then
1006 echo "$ac_t""$SHELL" 1>&6
1007 else
1008 echo "$ac_t""no" 1>&6
1011 else
1012 # Extract the first word of "bash", so it can be a program name with args.
1013 set dummy bash; ac_word=$2
1014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1015 echo "configure:1016: checking for $ac_word" >&5
1016 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019 case "$BASH" in
1021 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1023 ?:/*)
1024 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1028 ac_dummy="$PATH"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_path_BASH="$ac_dir/$ac_word"
1033 break
1035 done
1036 IFS="$ac_save_ifs"
1037 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1039 esac
1041 BASH="$ac_cv_path_BASH"
1042 if test -n "$BASH"; then
1043 echo "$ac_t""$BASH" 1>&6
1044 else
1045 echo "$ac_t""no" 1>&6
1048 SHELL=/bin/sh
1053 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1054 set dummy ${PYTHON:-python}; ac_word=$2
1055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1056 echo "configure:1057: checking for $ac_word" >&5
1057 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1059 else
1060 case "$PYTHON" in
1062 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1064 ?:/*)
1065 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1069 ac_dummy="$PATH"
1070 for ac_dir in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1073 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1074 break
1076 done
1077 IFS="$ac_save_ifs"
1078 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1080 esac
1082 PYTHON="$ac_cv_path_PYTHON"
1083 if test -n "$PYTHON"; then
1084 echo "$ac_t""$PYTHON" 1>&6
1085 else
1086 echo "$ac_t""no" 1>&6
1091 if test $MAKE != "error" ; then
1092 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1093 if test "$?" = 1
1094 then
1096 echo "configure: warning: Please install *GNU* make" 1>&2
1097 warn_b=yes
1103 result="`echo \"$PYTHON\" | grep echo`"
1104 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1106 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1107 warn_b=yes
1112 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1113 LN=cp # hard link does not work under cygnus-nt
1114 LN_S='cp -r' # symbolic link does not work for native nt
1115 ZIP="zip -r -9" #
1116 program_suffix=.exe
1117 # urg
1118 # DIRSEP='\\'
1119 # PATHSEP=';'
1121 # cygwin fixes all these things.
1122 # it seems these were used because of dos-style TEXINPUTS and
1123 # MFINPUTS needed for miktex.
1124 # but this breaks parsing of all other cygwin/unix style paths.
1126 # if your (mik)tex breaks, make a:
1127 # /usr/local/bin/tex:
1128 # #!/bin/sh
1129 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1131 # and
1133 # /usr/local/bin/mf:
1134 # #!/bin/sh
1135 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1137 # this way, you may have buildscripts/out/lilypond-profile
1138 # 'automatically' sourced from /usr/etc/profile.d/ too.
1140 DIRSEP='/'
1141 PATHSEP=':'
1142 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1143 else
1144 DIRSEP='/'
1145 PATHSEP=':'
1146 LN=ln
1147 LN_S='ln -s'
1148 ZIP="zip -r -9"
1149 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1157 cat >> confdefs.h <<EOF
1158 #define DIRSEP '${DIRSEP}'
1161 cat >> confdefs.h <<EOF
1162 #define PATHSEP '${PATHSEP}'
1169 if test "$datadir" = "\${prefix}/share"; then
1170 datadir='${prefix}/share/'$package
1172 DIR_DATADIR=${datadir}
1173 presome=${prefix}
1174 if test "$prefix" = "NONE"; then
1175 presome=${ac_default_prefix}
1177 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1180 cat >> confdefs.h <<EOF
1181 #define DIR_DATADIR "${DIR_DATADIR}"
1187 # For all packages except the StepMake package itself
1188 subdirs="stepmake"
1191 # Uncomment the configuration options your package needs.
1193 # -O is necessary to get inlining
1194 OPTIMIZE=""
1195 CFLAGS=${CFLAGS:-""}
1196 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1197 LDFLAGS=${LDFLAGS:-""}
1198 checking_b=yes
1199 optimise_b=no
1200 profile_b=no
1201 debug_b=yes
1203 # Check whether --enable-checking or --disable-checking was given.
1204 if test "${enable_checking+set}" = set; then
1205 enableval="$enable_checking"
1206 checking_b=$enableval
1210 # actually, the default is: tja='-O' to get inlining...
1211 # off='' --jcn
1213 #actually, that sucks.
1214 # tja looks like a typo. Default is optimisation off. --hwn
1216 # Check whether --enable-optimise or --disable-optimise was given.
1217 if test "${enable_optimise+set}" = set; then
1218 enableval="$enable_optimise"
1219 optimise_b=$enableval
1223 # Check whether --enable-profiling or --disable-profiling was given.
1224 if test "${enable_profiling+set}" = set; then
1225 enableval="$enable_profiling"
1226 profile_b=$enableval
1230 # Check whether --enable-debugging or --disable-debugging was given.
1231 if test "${enable_debugging+set}" = set; then
1232 enableval="$enable_debugging"
1233 debug_b=$enableval
1237 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1238 if test "${enable_mingw_prefix+set}" = set; then
1239 enableval="$enable_mingw_prefix"
1240 MINGWPREFIX=$enableval
1241 else
1242 MINGWPREFIX=no
1246 if test "$checking_b" = no; then
1247 # ugh
1248 cat >> confdefs.h <<\EOF
1249 #define NDEBUG 1
1252 DEFINES="$DEFINES -DNDEBUG"
1255 if test "$optimise_b" = yes; then
1256 OPTIMIZE="-O2 -finline-functions"
1259 if test "$optimise_b" = no; then
1260 OPTIMIZE=""
1263 if test $profile_b = yes; then
1264 EXTRA_LIBES="-pg"
1265 OPTIMIZE="$OPTIMIZE -pg"
1268 if test $debug_b = yes; then
1269 OPTIMIZE="$OPTIMIZE -g"
1272 # however, C++ support in mingw32 v 0.1.4 is still flaky
1273 if test x$MINGWPREFIX != xno; then
1274 ICFLAGS="-I$MINGWPREFIX/include"
1275 ILDFLAGS="-$MINGWPREFIX/lib"
1278 # Extract the first word of "gcc", so it can be a program name with args.
1279 set dummy gcc; ac_word=$2
1280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1281 echo "configure:1282: checking for $ac_word" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285 if test -n "$CC"; then
1286 ac_cv_prog_CC="$CC" # Let the user override the test.
1287 else
1288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1289 ac_dummy="$PATH"
1290 for ac_dir in $ac_dummy; do
1291 test -z "$ac_dir" && ac_dir=.
1292 if test -f $ac_dir/$ac_word; then
1293 ac_cv_prog_CC="gcc"
1294 break
1296 done
1297 IFS="$ac_save_ifs"
1300 CC="$ac_cv_prog_CC"
1301 if test -n "$CC"; then
1302 echo "$ac_t""$CC" 1>&6
1303 else
1304 echo "$ac_t""no" 1>&6
1307 if test -z "$CC"; then
1308 # Extract the first word of "cc", so it can be a program name with args.
1309 set dummy cc; ac_word=$2
1310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1311 echo "configure:1312: checking for $ac_word" >&5
1312 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1314 else
1315 if test -n "$CC"; then
1316 ac_cv_prog_CC="$CC" # Let the user override the test.
1317 else
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1319 ac_prog_rejected=no
1320 ac_dummy="$PATH"
1321 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/$ac_word; then
1324 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1325 ac_prog_rejected=yes
1326 continue
1328 ac_cv_prog_CC="cc"
1329 break
1331 done
1332 IFS="$ac_save_ifs"
1333 if test $ac_prog_rejected = yes; then
1334 # We found a bogon in the path, so make sure we never use it.
1335 set dummy $ac_cv_prog_CC
1336 shift
1337 if test $# -gt 0; then
1338 # We chose a different compiler from the bogus one.
1339 # However, it has the same basename, so the bogon will be chosen
1340 # first if we set CC to just the basename; use the full file name.
1341 shift
1342 set dummy "$ac_dir/$ac_word" "$@"
1343 shift
1344 ac_cv_prog_CC="$@"
1349 CC="$ac_cv_prog_CC"
1350 if test -n "$CC"; then
1351 echo "$ac_t""$CC" 1>&6
1352 else
1353 echo "$ac_t""no" 1>&6
1356 if test -z "$CC"; then
1357 case "`uname -s`" in
1358 *win32* | *WIN32*)
1359 # Extract the first word of "cl", so it can be a program name with args.
1360 set dummy cl; ac_word=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1365 else
1366 if test -n "$CC"; then
1367 ac_cv_prog_CC="$CC" # Let the user override the test.
1368 else
1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1370 ac_dummy="$PATH"
1371 for ac_dir in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_CC="cl"
1375 break
1377 done
1378 IFS="$ac_save_ifs"
1381 CC="$ac_cv_prog_CC"
1382 if test -n "$CC"; then
1383 echo "$ac_t""$CC" 1>&6
1384 else
1385 echo "$ac_t""no" 1>&6
1388 esac
1390 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1393 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1394 echo "configure:1395: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1396 ac_ext=c
1397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1401 cross_compiling=$ac_cv_prog_cc_cross
1403 cat > conftest.$ac_ext << EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1408 main(){return(0);}
1410 if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411 ac_cv_prog_cc_works=yes
1412 # If we can't run a trivial program, we are probably using a cross compiler.
1413 if (./conftest; exit) 2>/dev/null; then
1414 ac_cv_prog_cc_cross=no
1415 else
1416 ac_cv_prog_cc_cross=yes
1418 else
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1421 ac_cv_prog_cc_works=no
1423 rm -fr conftest*
1424 ac_ext=c
1425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1429 cross_compiling=$ac_cv_prog_cc_cross
1431 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1432 if test $ac_cv_prog_cc_works = no; then
1433 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1435 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1436 echo "configure:1437: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1437 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1438 cross_compiling=$ac_cv_prog_cc_cross
1440 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether we are using GNU C" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445 cat > conftest.c <<EOF
1446 #ifdef __GNUC__
1447 yes;
1448 #endif
1450 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1451 ac_cv_prog_gcc=yes
1452 else
1453 ac_cv_prog_gcc=no
1457 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1459 if test $ac_cv_prog_gcc = yes; then
1460 GCC=yes
1461 else
1462 GCC=
1465 ac_test_CFLAGS="${CFLAGS+set}"
1466 ac_save_CFLAGS="$CFLAGS"
1467 CFLAGS=
1468 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1469 echo "configure:1470: checking whether ${CC-cc} accepts -g" >&5
1470 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1472 else
1473 echo 'void f(){}' > conftest.c
1474 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1475 ac_cv_prog_cc_g=yes
1476 else
1477 ac_cv_prog_cc_g=no
1479 rm -f conftest*
1483 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1484 if test "$ac_test_CFLAGS" = set; then
1485 CFLAGS="$ac_save_CFLAGS"
1486 elif test $ac_cv_prog_cc_g = yes; then
1487 if test "$GCC" = yes; then
1488 CFLAGS="-g -O2"
1489 else
1490 CFLAGS="-g"
1492 else
1493 if test "$GCC" = yes; then
1494 CFLAGS="-O2"
1495 else
1496 CFLAGS=
1500 LD='$(CC)'
1503 CFLAGS="$CFLAGS $OPTIMIZE"
1504 CPPFLAGS=${CPPFLAGS:-""}
1513 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1514 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1515 echo "configure:1516: checking how to run the C preprocessor" >&5
1516 # On Suns, sometimes $CPP names a directory.
1517 if test -n "$CPP" && test -d "$CPP"; then
1518 CPP=
1520 if test -z "$CPP"; then
1521 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1523 else
1524 # This must be in double quotes, not single quotes, because CPP may get
1525 # substituted into the Makefile and "${CC-cc}" will confuse make.
1526 CPP="${CC-cc} -E"
1527 # On the NeXT, cc -E runs the code through the compiler's parser,
1528 # not just through cpp.
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 #include <assert.h>
1533 Syntax Error
1535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1536 { (eval echo configure:1537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1538 if test -z "$ac_err"; then
1540 else
1541 echo "$ac_err" >&5
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1544 rm -rf conftest*
1545 CPP="${CC-cc} -E -traditional-cpp"
1546 cat > conftest.$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1549 #include <assert.h>
1550 Syntax Error
1552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1553 { (eval echo configure:1554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1555 if test -z "$ac_err"; then
1557 else
1558 echo "$ac_err" >&5
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1561 rm -rf conftest*
1562 CPP="${CC-cc} -nologo -E"
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 #include <assert.h>
1567 Syntax Error
1569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1570 { (eval echo configure:1571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1572 if test -z "$ac_err"; then
1574 else
1575 echo "$ac_err" >&5
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1578 rm -rf conftest*
1579 CPP=/lib/cpp
1581 rm -f conftest*
1583 rm -f conftest*
1585 rm -f conftest*
1586 ac_cv_prog_CPP="$CPP"
1588 CPP="$ac_cv_prog_CPP"
1589 else
1590 ac_cv_prog_CPP="$CPP"
1592 echo "$ac_t""$CPP" 1>&6
1594 for ac_hdr in assert.h
1596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_hdr" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #include <$ac_hdr>
1607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1608 { (eval echo configure:1609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1610 if test -z "$ac_err"; then
1611 rm -rf conftest*
1612 eval "ac_cv_header_$ac_safe=yes"
1613 else
1614 echo "$ac_err" >&5
1615 echo "configure: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1617 rm -rf conftest*
1618 eval "ac_cv_header_$ac_safe=no"
1620 rm -f conftest*
1622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1623 echo "$ac_t""yes" 1>&6
1624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1625 cat >> confdefs.h <<EOF
1626 #define $ac_tr_hdr 1
1629 else
1630 echo "$ac_t""no" 1>&6
1632 done
1635 printing_b=no
1636 # Check whether --enable-printing or --disable-printing was given.
1637 if test "${enable_printing+set}" = set; then
1638 enableval="$enable_printing"
1639 printing_b=$enableval
1643 if test "$optimise_b" = yes; then
1644 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1645 cat >> confdefs.h <<\EOF
1646 #define STRINGS_UTILS_INLINED 1
1651 if test "$printing_b" = no; then
1652 # ugh
1653 cat >> confdefs.h <<\EOF
1654 #define NPRINT 1
1657 DEFINES="$DEFINES -DNPRINT"
1660 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1661 echo "configure:1662: checking how to run the C++ preprocessor" >&5
1662 if test -z "$CXXCPP"; then
1663 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665 else
1666 ac_ext=C
1667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1668 ac_cpp='$CXXCPP $CPPFLAGS'
1669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1671 cross_compiling=$ac_cv_prog_cxx_cross
1672 CXXCPP="${CXX-g++} -E"
1673 cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 #include <stdlib.h>
1678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1679 { (eval echo configure:1680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1681 if test -z "$ac_err"; then
1683 else
1684 echo "$ac_err" >&5
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 rm -rf conftest*
1688 CXXCPP=/lib/cpp
1690 rm -f conftest*
1691 ac_cv_prog_CXXCPP="$CXXCPP"
1692 ac_ext=C
1693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1694 ac_cpp='$CXXCPP $CPPFLAGS'
1695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1697 cross_compiling=$ac_cv_prog_cxx_cross
1700 CXXCPP="$ac_cv_prog_CXXCPP"
1701 echo "$ac_t""$CXXCPP" 1>&6
1704 ac_ext=C
1705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1706 ac_cpp='$CXXCPP $CPPFLAGS'
1707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1709 cross_compiling=$ac_cv_prog_cxx_cross
1711 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1713 # Extract the first word of "$ac_prog", so it can be a program name with args.
1714 set dummy $ac_prog; ac_word=$2
1715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1716 echo "configure:1717: checking for $ac_word" >&5
1717 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719 else
1720 if test -n "$CXX"; then
1721 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1722 else
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1724 ac_dummy="$PATH"
1725 for ac_dir in $ac_dummy; do
1726 test -z "$ac_dir" && ac_dir=.
1727 if test -f $ac_dir/$ac_word; then
1728 ac_cv_prog_CXX="$ac_prog"
1729 break
1731 done
1732 IFS="$ac_save_ifs"
1735 CXX="$ac_cv_prog_CXX"
1736 if test -n "$CXX"; then
1737 echo "$ac_t""$CXX" 1>&6
1738 else
1739 echo "$ac_t""no" 1>&6
1742 test -n "$CXX" && break
1743 done
1744 test -n "$CXX" || CXX="gcc"
1747 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1750 ac_ext=C
1751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1752 ac_cpp='$CXXCPP $CPPFLAGS'
1753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1755 cross_compiling=$ac_cv_prog_cxx_cross
1757 cat > conftest.$ac_ext << EOF
1759 #line 1760 "configure"
1760 #include "confdefs.h"
1762 int main(){return(0);}
1764 if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1765 ac_cv_prog_cxx_works=yes
1766 # If we can't run a trivial program, we are probably using a cross compiler.
1767 if (./conftest; exit) 2>/dev/null; then
1768 ac_cv_prog_cxx_cross=no
1769 else
1770 ac_cv_prog_cxx_cross=yes
1772 else
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1775 ac_cv_prog_cxx_works=no
1777 rm -fr conftest*
1778 ac_ext=C
1779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1780 ac_cpp='$CXXCPP $CPPFLAGS'
1781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1783 cross_compiling=$ac_cv_prog_cxx_cross
1785 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1786 if test $ac_cv_prog_cxx_works = no; then
1787 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1789 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1790 echo "configure:1791: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1791 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1792 cross_compiling=$ac_cv_prog_cxx_cross
1794 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1795 echo "configure:1796: checking whether we are using GNU C++" >&5
1796 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1798 else
1799 cat > conftest.C <<EOF
1800 #ifdef __GNUC__
1801 yes;
1802 #endif
1804 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1805 ac_cv_prog_gxx=yes
1806 else
1807 ac_cv_prog_gxx=no
1811 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1813 if test $ac_cv_prog_gxx = yes; then
1814 GXX=yes
1815 else
1816 GXX=
1819 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1820 ac_save_CXXFLAGS="$CXXFLAGS"
1821 CXXFLAGS=
1822 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1823 echo "configure:1824: checking whether ${CXX-g++} accepts -g" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827 echo 'void f(){}' > conftest.cc
1828 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1829 ac_cv_prog_cxx_g=yes
1830 else
1831 ac_cv_prog_cxx_g=no
1833 rm -f conftest*
1837 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1838 if test "$ac_test_CXXFLAGS" = set; then
1839 CXXFLAGS="$ac_save_CXXFLAGS"
1840 elif test $ac_cv_prog_cxx_g = yes; then
1841 if test "$GXX" = yes; then
1842 CXXFLAGS="-g -O2"
1843 else
1844 CXXFLAGS="-g"
1846 else
1847 if test "$GXX" = yes; then
1848 CXXFLAGS="-O2"
1849 else
1850 CXXFLAGS=
1855 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1856 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1857 echo "configure:1858: checking for FlexLexer.h" >&5
1858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include <FlexLexer.h>
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1870 rm -rf conftest*
1871 eval "ac_cv_header_$ac_safe=yes"
1872 else
1873 echo "$ac_err" >&5
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1876 rm -rf conftest*
1877 eval "ac_cv_header_$ac_safe=no"
1879 rm -f conftest*
1881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1883 true
1884 else
1885 echo "$ac_t""no" 1>&6
1887 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1888 warn_b=yes
1893 CPPFLAGS="$CPPFLAGS $DEFINES"
1894 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1895 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1899 LD='$(CXX)'
1903 # ugh autoconf
1904 # urg, egcs: how to check for egcs >= 1.1?
1905 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1906 $CXX --version | grep 'egcs' > /dev/null
1907 then
1908 true
1909 else
1911 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1912 warn_b=yes
1917 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1918 echo "configure:1919: checking whether explicit instantiation is needed" >&5
1919 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1921 else
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1926 template <class T> struct foo { static int baz; };
1927 template <class T> int foo<T>::baz = 1;
1929 int main() {
1930 return foo<int>::baz;
1931 ; return 0; }
1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934 rm -rf conftest*
1935 lily_cv_need_explicit_instantiation=no
1936 else
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 rm -rf conftest*
1940 lily_cv_need_explicit_instantiation=yes
1942 rm -f conftest*
1945 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1946 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1947 cat >> confdefs.h <<\EOF
1948 #define NEED_EXPLICIT_INSTANTIATION 1
1954 # ugh, automake: we want (and check for) bison
1955 for ac_prog in 'bison -y' byacc
1957 # Extract the first word of "$ac_prog", so it can be a program name with args.
1958 set dummy $ac_prog; ac_word=$2
1959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_word" >&5
1961 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1963 else
1964 if test -n "$YACC"; then
1965 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1966 else
1967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1968 ac_dummy="$PATH"
1969 for ac_dir in $ac_dummy; do
1970 test -z "$ac_dir" && ac_dir=.
1971 if test -f $ac_dir/$ac_word; then
1972 ac_cv_prog_YACC="$ac_prog"
1973 break
1975 done
1976 IFS="$ac_save_ifs"
1979 YACC="$ac_cv_prog_YACC"
1980 if test -n "$YACC"; then
1981 echo "$ac_t""$YACC" 1>&6
1982 else
1983 echo "$ac_t""no" 1>&6
1986 test -n "$YACC" && break
1987 done
1988 test -n "$YACC" || YACC="yacc"
1990 # ugh, automake: we want (and check for) flex
1991 # AC_PROG_LEX
1992 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1994 # AC_DECL_YYTEXT
1995 # ugh, ugh
1996 ac_cv_prog_lex_root=lex.yy
1998 for ac_prog in bison
2000 # Extract the first word of "$ac_prog", so it can be a program name with args.
2001 set dummy $ac_prog; ac_word=$2
2002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_word" >&5
2004 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007 if test -n "$BISON"; then
2008 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2009 else
2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2011 ac_dummy="$PATH"
2012 for ac_dir in $ac_dummy; do
2013 test -z "$ac_dir" && ac_dir=.
2014 if test -f $ac_dir/$ac_word; then
2015 ac_cv_prog_BISON="$ac_prog"
2016 break
2018 done
2019 IFS="$ac_save_ifs"
2022 BISON="$ac_cv_prog_BISON"
2023 if test -n "$BISON"; then
2024 echo "$ac_t""$BISON" 1>&6
2025 else
2026 echo "$ac_t""no" 1>&6
2029 test -n "$BISON" && break
2030 done
2031 test -n "$BISON" || BISON="error"
2033 for ac_prog in flex
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2038 echo "configure:2039: checking for $ac_word" >&5
2039 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2041 else
2042 if test -n "$FLEX"; then
2043 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2044 else
2045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2046 ac_dummy="$PATH"
2047 for ac_dir in $ac_dummy; do
2048 test -z "$ac_dir" && ac_dir=.
2049 if test -f $ac_dir/$ac_word; then
2050 ac_cv_prog_FLEX="$ac_prog"
2051 break
2053 done
2054 IFS="$ac_save_ifs"
2057 FLEX="$ac_cv_prog_FLEX"
2058 if test -n "$FLEX"; then
2059 echo "$ac_t""$FLEX" 1>&6
2060 else
2061 echo "$ac_t""no" 1>&6
2064 test -n "$FLEX" && break
2065 done
2066 test -n "$FLEX" || FLEX="error"
2069 result="`echo \"$BISON\" | grep echo`"
2070 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2072 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2073 warn_b=yes
2078 result="`echo \"$FLEX\" | grep echo`"
2079 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2081 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2082 warn_b=yes
2087 if test $BISON != "error"; then
2088 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2089 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2091 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2092 warn_b=yes
2101 for ac_prog in ar
2103 # Extract the first word of "$ac_prog", so it can be a program name with args.
2104 set dummy $ac_prog; ac_word=$2
2105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2106 echo "configure:2107: checking for $ac_word" >&5
2107 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2109 else
2110 if test -n "$AR"; then
2111 ac_cv_prog_AR="$AR" # Let the user override the test.
2112 else
2113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2114 ac_dummy="$PATH"
2115 for ac_dir in $ac_dummy; do
2116 test -z "$ac_dir" && ac_dir=.
2117 if test -f $ac_dir/$ac_word; then
2118 ac_cv_prog_AR="$ac_prog"
2119 break
2121 done
2122 IFS="$ac_save_ifs"
2125 AR="$ac_cv_prog_AR"
2126 if test -n "$AR"; then
2127 echo "$ac_t""$AR" 1>&6
2128 else
2129 echo "$ac_t""no" 1>&6
2132 test -n "$AR" && break
2133 done
2134 test -n "$AR" || AR="error"
2136 # Extract the first word of "ranlib", so it can be a program name with args.
2137 set dummy ranlib; ac_word=$2
2138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_word" >&5
2140 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2142 else
2143 if test -n "$RANLIB"; then
2144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2145 else
2146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2147 ac_dummy="$PATH"
2148 for ac_dir in $ac_dummy; do
2149 test -z "$ac_dir" && ac_dir=.
2150 if test -f $ac_dir/$ac_word; then
2151 ac_cv_prog_RANLIB="ranlib"
2152 break
2154 done
2155 IFS="$ac_save_ifs"
2156 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2159 RANLIB="$ac_cv_prog_RANLIB"
2160 if test -n "$RANLIB"; then
2161 echo "$ac_t""$RANLIB" 1>&6
2162 else
2163 echo "$ac_t""no" 1>&6
2170 # AC_STEPMAKE_LIBTOOL
2172 lang=English
2173 ALL_LINGUAS="en nl"
2175 # with/enable ??
2176 # Check whether --with-localedir or --without-localedir was given.
2177 if test "${with_localedir+set}" = set; then
2178 withval="$with_localedir"
2179 localedir=$with_localedir
2180 else
2181 localedir='${prefix}/share/locale'
2185 # Check whether --with-lang or --without-lang was given.
2186 if test "${with_lang+set}" = set; then
2187 withval="$with_lang"
2188 language=$with_lang
2189 else
2190 language=English
2194 echo $ac_n "checking language""... $ac_c" 1>&6
2195 echo "configure:2196: checking language" >&5
2196 case "$language" in
2197 En* | en* | Am* | am* | US* | us*)
2198 lang=English;;
2199 NL | nl | Du* | du* | Ned* | ned*)
2200 lang=Dutch;;
2202 lang=English;;
2204 lang=unknown;;
2205 esac
2206 echo "$ac_t""$lang" 1>&6
2208 if test "$lang" = "unknown" ; then
2210 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2211 warn_b=yes
2217 DIR_LOCALEDIR=${localedir}
2218 presome=${prefix}
2219 if test "$prefix" = "NONE"; then
2220 presome=${ac_default_prefix}
2222 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2225 cat >> confdefs.h <<EOF
2226 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2230 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2231 echo "configure:2232: checking for gettext in -lintl" >&5
2232 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 ac_save_LIBS="$LIBS"
2237 LIBS="-lintl $LIBS"
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 /* Override any gcc2 internal prototype to avoid an error. */
2242 #ifdef __cplusplus
2243 extern "C"
2244 #endif
2245 /* We use char because int might match the return type of a gcc2
2246 builtin and then its argument prototype would still apply. */
2247 char gettext();
2249 int main() {
2250 gettext()
2251 ; return 0; }
2253 if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2254 rm -rf conftest*
2255 eval "ac_cv_lib_$ac_lib_var=yes"
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -rf conftest*
2260 eval "ac_cv_lib_$ac_lib_var=no"
2262 rm -f conftest*
2263 LIBS="$ac_save_LIBS"
2266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2267 echo "$ac_t""yes" 1>&6
2268 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2269 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2270 cat >> confdefs.h <<EOF
2271 #define $ac_tr_lib 1
2274 LIBS="-lintl $LIBS"
2276 else
2277 echo "$ac_t""no" 1>&6
2280 for ac_func in gettext
2282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2283 echo "configure:2284: checking for $ac_func" >&5
2284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2286 else
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 /* System header to define __stub macros and hopefully few prototypes,
2291 which can conflict with char $ac_func(); below. */
2292 #include <assert.h>
2293 /* Override any gcc2 internal prototype to avoid an error. */
2294 #ifdef __cplusplus
2295 extern "C"
2296 #endif
2297 /* We use char because int might match the return type of a gcc2
2298 builtin and then its argument prototype would still apply. */
2299 char $ac_func();
2301 int main() {
2303 /* The GNU C library defines this for functions which it implements
2304 to always fail with ENOSYS. Some functions are actually named
2305 something starting with __ and the normal name is an alias. */
2306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2307 choke me
2308 #else
2309 $ac_func();
2310 #endif
2312 ; return 0; }
2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2315 rm -rf conftest*
2316 eval "ac_cv_func_$ac_func=yes"
2317 else
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2320 rm -rf conftest*
2321 eval "ac_cv_func_$ac_func=no"
2323 rm -f conftest*
2326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2329 cat >> confdefs.h <<EOF
2330 #define $ac_tr_func 1
2333 else
2334 echo "$ac_t""no" 1>&6
2336 done
2340 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2341 for ac_prog in msgfmt
2343 # Extract the first word of "$ac_prog", so it can be a program name with args.
2344 set dummy $ac_prog; ac_word=$2
2345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_word" >&5
2347 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349 else
2350 if test -n "$MSGFMT"; then
2351 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2352 else
2353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2354 ac_dummy="$PATH"
2355 for ac_dir in $ac_dummy; do
2356 test -z "$ac_dir" && ac_dir=.
2357 if test -f $ac_dir/$ac_word; then
2358 ac_cv_prog_MSGFMT="$ac_prog"
2359 break
2361 done
2362 IFS="$ac_save_ifs"
2365 MSGFMT="$ac_cv_prog_MSGFMT"
2366 if test -n "$MSGFMT"; then
2367 echo "$ac_t""$MSGFMT" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2372 test -n "$MSGFMT" && break
2373 done
2374 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2376 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2377 echo "configure:2378: checking whether msgfmt accepts -o" >&5
2378 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2379 if test "$msgfmt_output" = ""; then
2380 echo "$ac_t""yes" 1>&6
2381 else
2382 # urg
2383 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2384 echo "$ac_t""no" 1>&6
2386 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2387 warn_b=yes
2390 if test ! -n "$MSGFMT"; then
2392 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2393 warn_b=yes
2398 # urg, never know what names these teTeX guys will think up
2400 for ac_prog in mf
2402 # Extract the first word of "$ac_prog", so it can be a program name with args.
2403 set dummy $ac_prog; ac_word=$2
2404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_word" >&5
2406 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2408 else
2409 if test -n "$METAFONT"; then
2410 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2411 else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2413 ac_dummy="$PATH"
2414 for ac_dir in $ac_dummy; do
2415 test -z "$ac_dir" && ac_dir=.
2416 if test -f $ac_dir/$ac_word; then
2417 ac_cv_prog_METAFONT="$ac_prog"
2418 break
2420 done
2421 IFS="$ac_save_ifs"
2424 METAFONT="$ac_cv_prog_METAFONT"
2425 if test -n "$METAFONT"; then
2426 echo "$ac_t""$METAFONT" 1>&6
2427 else
2428 echo "$ac_t""no" 1>&6
2431 test -n "$METAFONT" && break
2432 done
2433 test -n "$METAFONT" || METAFONT="no"
2435 if test "x$METAFONT" = "xno"; then
2436 for ac_prog in mfont
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_word" >&5
2442 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2444 else
2445 if test -n "$MFONT"; then
2446 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2447 else
2448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2449 ac_dummy="$PATH"
2450 for ac_dir in $ac_dummy; do
2451 test -z "$ac_dir" && ac_dir=.
2452 if test -f $ac_dir/$ac_word; then
2453 ac_cv_prog_MFONT="$ac_prog"
2454 break
2456 done
2457 IFS="$ac_save_ifs"
2460 MFONT="$ac_cv_prog_MFONT"
2461 if test -n "$MFONT"; then
2462 echo "$ac_t""$MFONT" 1>&6
2463 else
2464 echo "$ac_t""no" 1>&6
2467 test -n "$MFONT" && break
2468 done
2469 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2471 METAFONT=$MFONT
2474 for ac_prog in mp
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_word" >&5
2480 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482 else
2483 if test -n "$METAPOST"; then
2484 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2485 else
2486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2487 ac_dummy="$PATH"
2488 for ac_dir in $ac_dummy; do
2489 test -z "$ac_dir" && ac_dir=.
2490 if test -f $ac_dir/$ac_word; then
2491 ac_cv_prog_METAPOST="$ac_prog"
2492 break
2494 done
2495 IFS="$ac_save_ifs"
2498 METAPOST="$ac_cv_prog_METAPOST"
2499 if test -n "$METAPOST"; then
2500 echo "$ac_t""$METAPOST" 1>&6
2501 else
2502 echo "$ac_t""no" 1>&6
2505 test -n "$METAPOST" && break
2506 done
2507 test -n "$METAPOST" || METAPOST="no"
2509 if test "x$METAPOST" = "xno"; then
2510 for ac_prog in mpost
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2515 echo "configure:2516: checking for $ac_word" >&5
2516 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2518 else
2519 if test -n "$MPOST"; then
2520 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2521 else
2522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2523 ac_dummy="$PATH"
2524 for ac_dir in $ac_dummy; do
2525 test -z "$ac_dir" && ac_dir=.
2526 if test -f $ac_dir/$ac_word; then
2527 ac_cv_prog_MPOST="$ac_prog"
2528 break
2530 done
2531 IFS="$ac_save_ifs"
2534 MPOST="$ac_cv_prog_MPOST"
2535 if test -n "$MPOST"; then
2536 echo "$ac_t""$MPOST" 1>&6
2537 else
2538 echo "$ac_t""no" 1>&6
2541 test -n "$MPOST" && break
2542 done
2543 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2546 METAPOST=$MPOST
2549 for ac_prog in inimf
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552 set dummy $ac_prog; ac_word=$2
2553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2554 echo "configure:2555: checking for $ac_word" >&5
2555 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2557 else
2558 if test -n "$INIMETAFONT"; then
2559 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2560 else
2561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2562 ac_dummy="$PATH"
2563 for ac_dir in $ac_dummy; do
2564 test -z "$ac_dir" && ac_dir=.
2565 if test -f $ac_dir/$ac_word; then
2566 ac_cv_prog_INIMETAFONT="$ac_prog"
2567 break
2569 done
2570 IFS="$ac_save_ifs"
2573 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2574 if test -n "$INIMETAFONT"; then
2575 echo "$ac_t""$INIMETAFONT" 1>&6
2576 else
2577 echo "$ac_t""no" 1>&6
2580 test -n "$INIMETAFONT" && break
2581 done
2582 test -n "$INIMETAFONT" || INIMETAFONT="no"
2584 if test "x$INIMETAFONT" = "xno"; then
2585 for ac_prog in inimfont
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_word" >&5
2591 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2593 else
2594 if test -n "$INIMFONT"; then
2595 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2596 else
2597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2598 ac_dummy="$PATH"
2599 for ac_dir in $ac_dummy; do
2600 test -z "$ac_dir" && ac_dir=.
2601 if test -f $ac_dir/$ac_word; then
2602 ac_cv_prog_INIMFONT="$ac_prog"
2603 break
2605 done
2606 IFS="$ac_save_ifs"
2609 INIMFONT="$ac_cv_prog_INIMFONT"
2610 if test -n "$INIMFONT"; then
2611 echo "$ac_t""$INIMFONT" 1>&6
2612 else
2613 echo "$ac_t""no" 1>&6
2616 test -n "$INIMFONT" && break
2617 done
2618 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2620 INIMETAFONT=$INIMFONT
2623 for ac_prog in inimp
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_word" >&5
2629 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631 else
2632 if test -n "$INIMETAPOST"; then
2633 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2634 else
2635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2636 ac_dummy="$PATH"
2637 for ac_dir in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir=.
2639 if test -f $ac_dir/$ac_word; then
2640 ac_cv_prog_INIMETAPOST="$ac_prog"
2641 break
2643 done
2644 IFS="$ac_save_ifs"
2647 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2648 if test -n "$INIMETAPOST"; then
2649 echo "$ac_t""$INIMETAPOST" 1>&6
2650 else
2651 echo "$ac_t""no" 1>&6
2654 test -n "$INIMETAPOST" && break
2655 done
2656 test -n "$INIMETAPOST" || INIMETAPOST="no"
2658 if test "x$INIMETAPOST" = "xno"; then
2659 for ac_prog in inimpost
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668 if test -n "$INIMPOST"; then
2669 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2670 else
2671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2672 ac_dummy="$PATH"
2673 for ac_dir in $ac_dummy; do
2674 test -z "$ac_dir" && ac_dir=.
2675 if test -f $ac_dir/$ac_word; then
2676 ac_cv_prog_INIMPOST="$ac_prog"
2677 break
2679 done
2680 IFS="$ac_save_ifs"
2683 INIMPOST="$ac_cv_prog_INIMPOST"
2684 if test -n "$INIMPOST"; then
2685 echo "$ac_t""$INIMPOST" 1>&6
2686 else
2687 echo "$ac_t""no" 1>&6
2690 test -n "$INIMPOST" && break
2691 done
2692 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2694 INIMETAPOST=$INIMPOST
2697 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2698 echo "configure:2699: checking for working metafont mode" >&5
2699 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2700 for MFMODE in $modelist; do
2701 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2702 if test -f mfput.tfm; then
2703 break;
2705 done
2708 # For now let people define these in their environments
2710 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2712 if test ${INIMETAPOST} = "inimp" ; then
2713 : ${INIMETAPOST_FLAGS=''}
2714 else
2715 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2718 rm -f mfput.*
2719 echo "$ac_t""$MFMODE" 1>&6
2730 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2731 if test "${enable_tfm_path+set}" = set; then
2732 enableval="$enable_tfm_path"
2733 tfm_path=$enableval
2734 else
2735 tfm_path=auto
2739 for ac_prog in kpsewhich
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2744 echo "configure:2745: checking for $ac_word" >&5
2745 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2747 else
2748 if test -n "$KPSEWHICH"; then
2749 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2750 else
2751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2752 ac_dummy="$PATH"
2753 for ac_dir in $ac_dummy; do
2754 test -z "$ac_dir" && ac_dir=.
2755 if test -f $ac_dir/$ac_word; then
2756 ac_cv_prog_KPSEWHICH="$ac_prog"
2757 break
2759 done
2760 IFS="$ac_save_ifs"
2763 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2764 if test -n "$KPSEWHICH"; then
2765 echo "$ac_t""$KPSEWHICH" 1>&6
2766 else
2767 echo "$ac_t""no" 1>&6
2770 test -n "$KPSEWHICH" && break
2771 done
2772 test -n "$KPSEWHICH" || KPSEWHICH="no"
2774 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2775 echo "configure:2776: checking for tfm path" >&5
2777 TFM_FONTS="cmr msam"
2779 if test "x$tfm_path" = xauto ; then
2780 if test "x$KPSEWHICH" != "xno" ; then
2781 for i in $TFM_FONTS; do
2782 dir=`$KPSEWHICH tfm ${i}10.tfm`
2783 TFM_PATH="$TFM_PATH `dirname $dir`"
2784 done
2785 else
2787 echo "configure: warning: Please specify where cmr10.tfm lives:
2788 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2789 warn_b=yes
2792 else
2793 TFM_PATH=$tfm_path
2796 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2797 echo "$ac_t""$TFM_PATH" 1>&6
2801 ## First, let's just see if we can find Guile at all.
2802 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2803 echo "configure:2804: checking "for guile-config"" >&5
2804 for guile_config in guile-config $target-guile-config $build-guile-config; do
2805 echo "$ac_t"""$guile_config"" 1>&6
2806 if ! $guile_config --version > /dev/null 2>&1 ; then
2807 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2808 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2809 echo "configure:2810: checking "if we are cross compiling"" >&5
2810 guile_config=error
2811 else
2812 break
2814 done
2815 if test "$guile_config" = "error"; then
2816 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2817 exit 1
2819 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2820 echo "configure:2821: checking "Guile version"" >&5
2821 need_guile_version="1.3.4"
2822 guile_version=`expr "\`$guile_config --version 2>&1\`" : ".*\($need_guile_version\).*"`
2823 echo "$ac_t"""$guile_version"" 1>&6
2824 if test "$guile_version" != "$need_guile_version"; then
2826 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2827 warn_b=yes
2831 ## The GUILE_FLAGS macro.
2832 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2833 echo "configure:2834: checking for Guile" >&5
2834 if ! $guile_config link > /dev/null ; then
2835 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2836 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2837 exit 1
2839 GUILE_CFLAGS="`$guile_config compile`"
2840 GUILE_LDFLAGS="`$guile_config link`"
2843 echo "$ac_t""yes" 1>&6
2845 # Extract the first word of "guile", so it can be a program name with args.
2846 set dummy guile; ac_word=$2
2847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2848 echo "configure:2849: checking for $ac_word" >&5
2849 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2851 else
2852 case "$GUILE" in
2854 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2856 ?:/*)
2857 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2861 ac_dummy="$PATH"
2862 for ac_dir in $ac_dummy; do
2863 test -z "$ac_dir" && ac_dir=.
2864 if test -f $ac_dir/$ac_word; then
2865 ac_cv_path_GUILE="$ac_dir/$ac_word"
2866 break
2868 done
2869 IFS="$ac_save_ifs"
2870 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2872 esac
2874 GUILE="$ac_cv_path_GUILE"
2875 if test -n "$GUILE"; then
2876 echo "$ac_t""$GUILE" 1>&6
2877 else
2878 echo "$ac_t""no" 1>&6
2885 kpathsea_b=yes
2886 # Check whether --enable-kpathsea or --disable-kpathsea was given.
2887 if test "${enable_kpathsea+set}" = set; then
2888 enableval="$enable_kpathsea"
2889 kpathsea_b=$enableval
2893 if test $kpathsea_b = yes; then
2894 for ac_hdr in kpathsea/kpathsea.h
2896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_hdr" >&5
2899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2901 else
2902 cat > conftest.$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2905 #include <$ac_hdr>
2907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2908 { (eval echo configure:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2910 if test -z "$ac_err"; then
2911 rm -rf conftest*
2912 eval "ac_cv_header_$ac_safe=yes"
2913 else
2914 echo "$ac_err" >&5
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 rm -rf conftest*
2918 eval "ac_cv_header_$ac_safe=no"
2920 rm -f conftest*
2922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2925 cat >> confdefs.h <<EOF
2926 #define $ac_tr_hdr 1
2929 else
2930 echo "$ac_t""no" 1>&6
2932 done
2934 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2935 echo "configure:2936: checking for kpse_find_file in -lkpathsea" >&5
2936 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2939 else
2940 ac_save_LIBS="$LIBS"
2941 LIBS="-lkpathsea $LIBS"
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945 /* Override any gcc2 internal prototype to avoid an error. */
2946 #ifdef __cplusplus
2947 extern "C"
2948 #endif
2949 /* We use char because int might match the return type of a gcc2
2950 builtin and then its argument prototype would still apply. */
2951 char kpse_find_file();
2953 int main() {
2954 kpse_find_file()
2955 ; return 0; }
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2958 rm -rf conftest*
2959 eval "ac_cv_lib_$ac_lib_var=yes"
2960 else
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 rm -rf conftest*
2964 eval "ac_cv_lib_$ac_lib_var=no"
2966 rm -f conftest*
2967 LIBS="$ac_save_LIBS"
2970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2972 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2974 cat >> confdefs.h <<EOF
2975 #define $ac_tr_lib 1
2978 LIBS="-lkpathsea $LIBS"
2980 else
2981 echo "$ac_t""no" 1>&6
2984 # urg: kpse_find_tfm is a #define, how to check for this?
2985 # AC_CHECK_LIB(kpathsea, kpse_find_tfm)
2986 # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions. You may have to create TFM files manually.))
2987 for ac_func in kpse_find_file
2989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2990 echo "configure:2991: checking for $ac_func" >&5
2991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2993 else
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 /* System header to define __stub macros and hopefully few prototypes,
2998 which can conflict with char $ac_func(); below. */
2999 #include <assert.h>
3000 /* Override any gcc2 internal prototype to avoid an error. */
3001 #ifdef __cplusplus
3002 extern "C"
3003 #endif
3004 /* We use char because int might match the return type of a gcc2
3005 builtin and then its argument prototype would still apply. */
3006 char $ac_func();
3008 int main() {
3010 /* The GNU C library defines this for functions which it implements
3011 to always fail with ENOSYS. Some functions are actually named
3012 something starting with __ and the normal name is an alias. */
3013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3014 choke me
3015 #else
3016 $ac_func();
3017 #endif
3019 ; return 0; }
3021 if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3022 rm -rf conftest*
3023 eval "ac_cv_func_$ac_func=yes"
3024 else
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 rm -rf conftest*
3028 eval "ac_cv_func_$ac_func=no"
3030 rm -f conftest*
3033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_func 1
3040 else
3041 echo "$ac_t""no" 1>&6
3042 echo "configure: warning: Cannot find kpathsea functions. You may have to create TFM files manually." 1>&2
3043 warn_b=yes
3044 kpathsea_b=no
3046 done
3049 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3050 echo "configure:3051: checking whether to use kpathsea" >&5
3051 if test $kpathsea_b = yes; then
3052 echo "$ac_t""yes" 1>&6
3053 KPATHSEA=1
3054 else
3055 echo "$ac_t""no" 1>&6
3056 KPATHSEA=0
3060 cat >> confdefs.h <<EOF
3061 #define KPATHSEA $KPATHSEA
3067 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3068 echo "configure:3069: checking for 8-bit clean memcmp" >&5
3069 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3071 else
3072 if test "$cross_compiling" = yes; then
3073 ac_cv_func_memcmp_clean=no
3074 else
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 #ifdef __cplusplus
3079 extern "C" void exit(int);
3080 #endif
3082 main()
3084 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3085 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3089 if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3090 then
3091 ac_cv_func_memcmp_clean=yes
3092 else
3093 echo "configure: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3095 rm -fr conftest*
3096 ac_cv_func_memcmp_clean=no
3098 rm -fr conftest*
3103 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3104 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3106 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3107 echo "configure:3108: checking for vprintf" >&5
3108 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3110 else
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 /* System header to define __stub macros and hopefully few prototypes,
3115 which can conflict with char vprintf(); below. */
3116 #include <assert.h>
3117 /* Override any gcc2 internal prototype to avoid an error. */
3118 #ifdef __cplusplus
3119 extern "C"
3120 #endif
3121 /* We use char because int might match the return type of a gcc2
3122 builtin and then its argument prototype would still apply. */
3123 char vprintf();
3125 int main() {
3127 /* The GNU C library defines this for functions which it implements
3128 to always fail with ENOSYS. Some functions are actually named
3129 something starting with __ and the normal name is an alias. */
3130 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3131 choke me
3132 #else
3133 vprintf();
3134 #endif
3136 ; return 0; }
3138 if { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3139 rm -rf conftest*
3140 eval "ac_cv_func_vprintf=yes"
3141 else
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3144 rm -rf conftest*
3145 eval "ac_cv_func_vprintf=no"
3147 rm -f conftest*
3150 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3151 echo "$ac_t""yes" 1>&6
3152 cat >> confdefs.h <<\EOF
3153 #define HAVE_VPRINTF 1
3156 else
3157 echo "$ac_t""no" 1>&6
3160 if test "$ac_cv_func_vprintf" != yes; then
3161 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3162 echo "configure:3163: checking for _doprnt" >&5
3163 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3165 else
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3169 /* System header to define __stub macros and hopefully few prototypes,
3170 which can conflict with char _doprnt(); below. */
3171 #include <assert.h>
3172 /* Override any gcc2 internal prototype to avoid an error. */
3173 #ifdef __cplusplus
3174 extern "C"
3175 #endif
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3178 char _doprnt();
3180 int main() {
3182 /* The GNU C library defines this for functions which it implements
3183 to always fail with ENOSYS. Some functions are actually named
3184 something starting with __ and the normal name is an alias. */
3185 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3186 choke me
3187 #else
3188 _doprnt();
3189 #endif
3191 ; return 0; }
3193 if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3194 rm -rf conftest*
3195 eval "ac_cv_func__doprnt=yes"
3196 else
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3199 rm -rf conftest*
3200 eval "ac_cv_func__doprnt=no"
3202 rm -f conftest*
3205 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 cat >> confdefs.h <<\EOF
3208 #define HAVE_DOPRNT 1
3211 else
3212 echo "$ac_t""no" 1>&6
3217 for ac_func in memmem snprintf vsnprintf gettext isinf
3219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_func" >&5
3221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 /* System header to define __stub macros and hopefully few prototypes,
3228 which can conflict with char $ac_func(); below. */
3229 #include <assert.h>
3230 /* Override any gcc2 internal prototype to avoid an error. */
3231 #ifdef __cplusplus
3232 extern "C"
3233 #endif
3234 /* We use char because int might match the return type of a gcc2
3235 builtin and then its argument prototype would still apply. */
3236 char $ac_func();
3238 int main() {
3240 /* The GNU C library defines this for functions which it implements
3241 to always fail with ENOSYS. Some functions are actually named
3242 something starting with __ and the normal name is an alias. */
3243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3244 choke me
3245 #else
3246 $ac_func();
3247 #endif
3249 ; return 0; }
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3252 rm -rf conftest*
3253 eval "ac_cv_func_$ac_func=yes"
3254 else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 rm -rf conftest*
3258 eval "ac_cv_func_$ac_func=no"
3260 rm -f conftest*
3263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3266 cat >> confdefs.h <<EOF
3267 #define $ac_tr_func 1
3270 else
3271 echo "$ac_t""no" 1>&6
3273 done
3276 cat >> confdefs.h <<EOF
3277 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3280 cat >> confdefs.h <<EOF
3281 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3285 for ac_prog in makeinfo
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy $ac_prog; ac_word=$2
3289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_word" >&5
3291 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3293 else
3294 if test -n "$MAKEINFO"; then
3295 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3296 else
3297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3298 ac_dummy="$PATH"
3299 for ac_dir in $ac_dummy; do
3300 test -z "$ac_dir" && ac_dir=.
3301 if test -f $ac_dir/$ac_word; then
3302 ac_cv_prog_MAKEINFO="$ac_prog"
3303 break
3305 done
3306 IFS="$ac_save_ifs"
3309 MAKEINFO="$ac_cv_prog_MAKEINFO"
3310 if test -n "$MAKEINFO"; then
3311 echo "$ac_t""$MAKEINFO" 1>&6
3312 else
3313 echo "$ac_t""no" 1>&6
3316 test -n "$MAKEINFO" && break
3317 done
3318 test -n "$MAKEINFO" || MAKEINFO="error"
3320 # Extract the first word of "perl", so it can be a program name with args.
3321 set dummy perl; ac_word=$2
3322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3323 echo "configure:3324: checking for $ac_word" >&5
3324 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3326 else
3327 case "$PERL" in
3329 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3331 ?:/*)
3332 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3336 ac_dummy="$PATH"
3337 for ac_dir in $ac_dummy; do
3338 test -z "$ac_dir" && ac_dir=.
3339 if test -f $ac_dir/$ac_word; then
3340 ac_cv_path_PERL="$ac_dir/$ac_word"
3341 break
3343 done
3344 IFS="$ac_save_ifs"
3345 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3347 esac
3349 PERL="$ac_cv_path_PERL"
3350 if test -n "$PERL"; then
3351 echo "$ac_t""$PERL" 1>&6
3352 else
3353 echo "$ac_t""no" 1>&6
3358 trap '' 1 2 15
3359 cat > confcache <<\EOF
3360 # This file is a shell script that caches the results of configure
3361 # tests run on this system so they can be shared between configure
3362 # scripts and configure runs. It is not useful on other systems.
3363 # If it contains results you don't want to keep, you may remove or edit it.
3365 # By default, configure uses ./config.cache as the cache file,
3366 # creating it if it does not exist already. You can give configure
3367 # the --cache-file=FILE option to use a different cache file; that is
3368 # what configure does when it calls configure scripts in
3369 # subdirectories, so they share the cache.
3370 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3371 # config.status only pays attention to the cache file if you give it the
3372 # --recheck option to rerun configure.
3375 # The following way of writing the cache mishandles newlines in values,
3376 # but we know of no workaround that is simple, portable, and efficient.
3377 # So, don't put newlines in cache variables' values.
3378 # Ultrix sh set writes to stderr and can't be redirected directly,
3379 # and sets the high bit in the cache file unless we assign to the vars.
3380 (set) 2>&1 |
3381 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3382 *ac_space=\ *)
3383 # `set' does not quote correctly, so add quotes (double-quote substitution
3384 # turns \\\\ into \\, and sed turns \\ into \).
3385 sed -n \
3386 -e "s/'/'\\\\''/g" \
3387 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3390 # `set' quotes correctly as required by POSIX, so do not add quotes.
3391 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3393 esac >> confcache
3394 if cmp -s $cache_file confcache; then
3396 else
3397 if test -w $cache_file; then
3398 echo "updating cache $cache_file"
3399 cat confcache > $cache_file
3400 else
3401 echo "not updating unwritable cache $cache_file"
3404 rm -f confcache
3406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3409 # Let make expand exec_prefix.
3410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3412 # Any assignment to VPATH causes Sun make to only execute
3413 # the first set of double-colon rules, so remove it if not needed.
3414 # If there is a colon in the path, we need to keep it.
3415 if test "x$srcdir" = x.; then
3416 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3419 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3421 DEFS=-DHAVE_CONFIG_H
3423 # Without the "./", some shells look in PATH for config.status.
3424 : ${CONFIG_STATUS=./config.status}
3426 echo creating $CONFIG_STATUS
3427 rm -f $CONFIG_STATUS
3428 cat > $CONFIG_STATUS <<EOF
3429 #! /bin/sh
3430 # Generated automatically by configure.
3431 # Run this file to recreate the current configuration.
3432 # This directory was configured as follows,
3433 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3435 # $0 $ac_configure_args
3437 # Compiler output produced by configure, useful for debugging
3438 # configure, is in ./config.log if it exists.
3440 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3441 for ac_option
3443 case "\$ac_option" in
3444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3445 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3446 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3447 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3448 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3449 exit 0 ;;
3450 -help | --help | --hel | --he | --h)
3451 echo "\$ac_cs_usage"; exit 0 ;;
3452 *) echo "\$ac_cs_usage"; exit 1 ;;
3453 esac
3454 done
3456 ac_given_srcdir=$srcdir
3458 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3460 cat >> $CONFIG_STATUS <<EOF
3462 # Protect against being on the right side of a sed subst in config.status.
3463 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3464 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3465 $ac_vpsub
3466 $extrasub
3467 s%@SHELL@%$SHELL%g
3468 s%@CFLAGS@%$CFLAGS%g
3469 s%@CPPFLAGS@%$CPPFLAGS%g
3470 s%@CXXFLAGS@%$CXXFLAGS%g
3471 s%@FFLAGS@%$FFLAGS%g
3472 s%@DEFS@%$DEFS%g
3473 s%@LDFLAGS@%$LDFLAGS%g
3474 s%@LIBS@%$LIBS%g
3475 s%@exec_prefix@%$exec_prefix%g
3476 s%@prefix@%$prefix%g
3477 s%@program_transform_name@%$program_transform_name%g
3478 s%@bindir@%$bindir%g
3479 s%@sbindir@%$sbindir%g
3480 s%@libexecdir@%$libexecdir%g
3481 s%@datadir@%$datadir%g
3482 s%@sysconfdir@%$sysconfdir%g
3483 s%@sharedstatedir@%$sharedstatedir%g
3484 s%@localstatedir@%$localstatedir%g
3485 s%@libdir@%$libdir%g
3486 s%@includedir@%$includedir%g
3487 s%@oldincludedir@%$oldincludedir%g
3488 s%@infodir@%$infodir%g
3489 s%@mandir@%$mandir%g
3490 s%@builddir@%$builddir%g
3491 s%@stepmake@%$stepmake%g
3492 s%@package@%$package%g
3493 s%@PACKAGE@%$PACKAGE%g
3494 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3495 s%@package_depth@%$package_depth%g
3496 s%@AUTOGENERATE@%$AUTOGENERATE%g
3497 s%@STATE_VECTOR@%$STATE_VECTOR%g
3498 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3499 s%@host@%$host%g
3500 s%@host_alias@%$host_alias%g
3501 s%@host_cpu@%$host_cpu%g
3502 s%@host_vendor@%$host_vendor%g
3503 s%@host_os@%$host_os%g
3504 s%@MAKE@%$MAKE%g
3505 s%@FIND@%$FIND%g
3506 s%@TAR@%$TAR%g
3507 s%@BASH@%$BASH%g
3508 s%@PYTHON@%$PYTHON%g
3509 s%@program_prefix@%$program_prefix%g
3510 s%@program_suffix@%$program_suffix%g
3511 s%@ZIP@%$ZIP%g
3512 s%@LN@%$LN%g
3513 s%@LN_S@%$LN_S%g
3514 s%@INSTALL@%$INSTALL%g
3515 s%@PATHSEP@%$PATHSEP%g
3516 s%@DIRSEP@%$DIRSEP%g
3517 s%@DIR_DATADIR@%$DIR_DATADIR%g
3518 s%@subdirs@%$subdirs%g
3519 s%@CC@%$CC%g
3520 s%@LD@%$LD%g
3521 s%@ICFLAGS@%$ICFLAGS%g
3522 s%@ILDFLAGS@%$ILDFLAGS%g
3523 s%@DEFINES@%$DEFINES%g
3524 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3525 s%@CPP@%$CPP%g
3526 s%@CXX@%$CXX%g
3527 s%@CXXCPP@%$CXXCPP%g
3528 s%@YACC@%$YACC%g
3529 s%@BISON@%$BISON%g
3530 s%@FLEX@%$FLEX%g
3531 s%@AR@%$AR%g
3532 s%@RANLIB@%$RANLIB%g
3533 s%@localedir@%$localedir%g
3534 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3535 s%@MSGFMT@%$MSGFMT%g
3536 s%@METAFONT@%$METAFONT%g
3537 s%@MFONT@%$MFONT%g
3538 s%@METAPOST@%$METAPOST%g
3539 s%@MPOST@%$MPOST%g
3540 s%@INIMETAFONT@%$INIMETAFONT%g
3541 s%@INIMFONT@%$INIMFONT%g
3542 s%@INIMETAPOST@%$INIMETAPOST%g
3543 s%@INIMPOST@%$INIMPOST%g
3544 s%@MFMODE@%$MFMODE%g
3545 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3546 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3547 s%@KPSEWHICH@%$KPSEWHICH%g
3548 s%@TFM_PATH@%$TFM_PATH%g
3549 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3550 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3551 s%@GUILE@%$GUILE%g
3552 s%@KPATHSEA@%$KPATHSEA%g
3553 s%@LIBOBJS@%$LIBOBJS%g
3554 s%@MAKEINFO@%$MAKEINFO%g
3555 s%@PERL@%$PERL%g
3557 CEOF
3560 cat >> $CONFIG_STATUS <<\EOF
3562 # Split the substitutions into bite-sized pieces for seds with
3563 # small command number limits, like on Digital OSF/1 and HP-UX.
3564 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3565 ac_file=1 # Number of current file.
3566 ac_beg=1 # First line for current file.
3567 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3568 ac_more_lines=:
3569 ac_sed_cmds=""
3570 while $ac_more_lines; do
3571 if test $ac_beg -gt 1; then
3572 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3573 else
3574 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3576 if test ! -s conftest.s$ac_file; then
3577 ac_more_lines=false
3578 rm -f conftest.s$ac_file
3579 else
3580 if test -z "$ac_sed_cmds"; then
3581 ac_sed_cmds="sed -f conftest.s$ac_file"
3582 else
3583 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3585 ac_file=`expr $ac_file + 1`
3586 ac_beg=$ac_end
3587 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3589 done
3590 if test -z "$ac_sed_cmds"; then
3591 ac_sed_cmds=cat
3595 cat >> $CONFIG_STATUS <<EOF
3597 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3599 cat >> $CONFIG_STATUS <<\EOF
3600 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3602 case "$ac_file" in
3603 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3604 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3605 *) ac_file_in="${ac_file}.in" ;;
3606 esac
3608 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3610 # Remove last slash and all that follows it. Not all systems have dirname.
3611 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3612 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3613 # The file is in a subdirectory.
3614 test ! -d "$ac_dir" && mkdir "$ac_dir"
3615 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3616 # A "../" for each directory in $ac_dir_suffix.
3617 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3618 else
3619 ac_dir_suffix= ac_dots=
3622 case "$ac_given_srcdir" in
3623 .) srcdir=.
3624 if test -z "$ac_dots"; then top_srcdir=.
3625 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3626 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3627 *) # Relative path.
3628 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3629 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3630 esac
3633 echo creating "$ac_file"
3634 rm -f "$ac_file"
3635 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3636 case "$ac_file" in
3637 *Makefile*) ac_comsub="1i\\
3638 # $configure_input" ;;
3639 *) ac_comsub= ;;
3640 esac
3642 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3643 sed -e "$ac_comsub
3644 s%@configure_input@%$configure_input%g
3645 s%@srcdir@%$srcdir%g
3646 s%@top_srcdir@%$top_srcdir%g
3647 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3648 fi; done
3649 rm -f conftest.s*
3651 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3652 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3654 # ac_d sets the value in "#define NAME VALUE" lines.
3655 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3656 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3657 ac_dC='\3'
3658 ac_dD='%g'
3659 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3660 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3661 ac_uB='\([ ]\)%\1#\2define\3'
3662 ac_uC=' '
3663 ac_uD='\4%g'
3664 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3665 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3666 ac_eB='$%\1#\2define\3'
3667 ac_eC=' '
3668 ac_eD='%g'
3670 if test "${CONFIG_HEADERS+set}" != set; then
3672 cat >> $CONFIG_STATUS <<EOF
3673 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3675 cat >> $CONFIG_STATUS <<\EOF
3677 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3679 case "$ac_file" in
3680 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3681 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3682 *) ac_file_in="${ac_file}.in" ;;
3683 esac
3685 echo creating $ac_file
3687 rm -f conftest.frag conftest.in conftest.out
3688 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3689 cat $ac_file_inputs > conftest.in
3693 # Transform confdefs.h into a sed script conftest.vals that substitutes
3694 # the proper values into config.h.in to produce config.h. And first:
3695 # Protect against being on the right side of a sed subst in config.status.
3696 # Protect against being in an unquoted here document in config.status.
3697 rm -f conftest.vals
3698 cat > conftest.hdr <<\EOF
3699 s/[\\&%]/\\&/g
3700 s%[\\$`]%\\&%g
3701 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3702 s%ac_d%ac_u%gp
3703 s%ac_u%ac_e%gp
3705 sed -n -f conftest.hdr confdefs.h > conftest.vals
3706 rm -f conftest.hdr
3708 # This sed command replaces #undef with comments. This is necessary, for
3709 # example, in the case of _POSIX_SOURCE, which is predefined and required
3710 # on some systems where configure will not decide to define it.
3711 cat >> conftest.vals <<\EOF
3712 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3715 # Break up conftest.vals because some shells have a limit on
3716 # the size of here documents, and old seds have small limits too.
3718 rm -f conftest.tail
3719 while :
3721 ac_lines=`grep -c . conftest.vals`
3722 # grep -c gives empty output for an empty file on some AIX systems.
3723 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3724 # Write a limited-size here document to conftest.frag.
3725 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3726 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3727 echo 'CEOF
3728 sed -f conftest.frag conftest.in > conftest.out
3729 rm -f conftest.in
3730 mv conftest.out conftest.in
3731 ' >> $CONFIG_STATUS
3732 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3733 rm -f conftest.vals
3734 mv conftest.tail conftest.vals
3735 done
3736 rm -f conftest.vals
3738 cat >> $CONFIG_STATUS <<\EOF
3739 rm -f conftest.frag conftest.h
3740 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3741 cat conftest.in >> conftest.h
3742 rm -f conftest.in
3743 if cmp -s $ac_file conftest.h 2>/dev/null; then
3744 echo "$ac_file is unchanged"
3745 rm -f conftest.h
3746 else
3747 # Remove last slash and all that follows it. Not all systems have dirname.
3748 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3749 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3750 # The file is in a subdirectory.
3751 test ! -d "$ac_dir" && mkdir "$ac_dir"
3753 rm -f $ac_file
3754 mv conftest.h $ac_file
3756 fi; done
3759 cat >> $CONFIG_STATUS <<EOF
3762 cat >> $CONFIG_STATUS <<\EOF
3764 exit 0
3766 chmod +x $CONFIG_STATUS
3767 rm -fr confdefs* $ac_clean_files
3768 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3770 if test "$no_recursion" != yes; then
3772 # Remove --cache-file and --srcdir arguments so they do not pile up.
3773 ac_sub_configure_args=
3774 ac_prev=
3775 for ac_arg in $ac_configure_args; do
3776 if test -n "$ac_prev"; then
3777 ac_prev=
3778 continue
3780 case "$ac_arg" in
3781 -cache-file | --cache-file | --cache-fil | --cache-fi \
3782 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3783 ac_prev=cache_file ;;
3784 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3785 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3787 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3788 ac_prev=srcdir ;;
3789 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3791 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3792 esac
3793 done
3795 for ac_config_dir in stepmake; do
3797 # Do not complain, so a configure script can configure whichever
3798 # parts of a large source tree are present.
3799 if test ! -d $srcdir/$ac_config_dir; then
3800 continue
3803 echo configuring in $ac_config_dir
3805 case "$srcdir" in
3806 .) ;;
3808 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3809 else
3810 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3813 esac
3815 ac_popdir=`pwd`
3816 cd $ac_config_dir
3818 # A "../" for each directory in /$ac_config_dir.
3819 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3821 case "$srcdir" in
3822 .) # No --srcdir option. We are building in place.
3823 ac_sub_srcdir=$srcdir ;;
3824 /*) # Absolute path.
3825 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3826 *) # Relative path.
3827 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3828 esac
3830 # Check for guested configure; otherwise get Cygnus style configure.
3831 if test -f $ac_sub_srcdir/configure; then
3832 ac_sub_configure=$ac_sub_srcdir/configure
3833 elif test -f $ac_sub_srcdir/configure.in; then
3834 ac_sub_configure=$ac_configure
3835 else
3836 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3837 ac_sub_configure=
3840 # The recursion is here.
3841 if test -n "$ac_sub_configure"; then
3843 # Make the cache file name correct relative to the subdirectory.
3844 case "$cache_file" in
3845 /*) ac_sub_cache_file=$cache_file ;;
3846 *) # Relative path.
3847 ac_sub_cache_file="$ac_dots$cache_file" ;;
3848 esac
3850 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3851 # The eval makes quoting arguments work.
3852 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3853 then :
3854 else
3855 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3859 cd $ac_popdir
3860 done
3864 rm -f $srcdir/GNUmakefile
3865 cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3866 chmod 444 $srcdir/GNUmakefile
3867 if test "$builddir" != "."; then
3868 rm -f GNUmakefile
3869 cp $srcdir/make/srcdir.make.in GNUmakefile
3870 chmod 444 GNUmakefile