lilypond-1.3.74
[lilypond.git] / configure
blob839124306ec453c73dbbcfe080cddb165d043593
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)"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
91 build=NONE
92 cache_file=./config.cache
93 exec_prefix=NONE
94 host=NONE
95 no_create=
96 nonopt=NONE
97 no_recursion=
98 prefix=NONE
99 program_prefix=NONE
100 program_suffix=NONE
101 program_transform_name=s,x,x,
102 silent=
103 site=
104 srcdir=
105 target=NONE
106 verbose=
107 x_includes=NONE
108 x_libraries=NONE
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
123 subdirs=
124 MFLAGS= MAKEFLAGS=
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
127 ac_max_here_lines=12
129 ac_prev=
130 for ac_option
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
136 ac_prev=
137 continue
140 case "$ac_option" in
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) ac_optarg= ;;
143 esac
145 # Accept the important Cygnus configure options, so we can diagnose typos.
147 case "$ac_option" in
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 ac_prev=bindir ;;
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
155 ac_prev=build ;;
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 ac_prev=datadir ;;
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 | --da=*)
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 case "$ac_option" in
189 *=*) ;;
190 *) ac_optarg=yes ;;
191 esac
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
205 with_gas=yes ;;
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
210 cat << EOF
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
213 Configuration:
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
221 [$ac_default_prefix]
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 [same as prefix]
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
228 [PREFIX/share]
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 [PREFIX/com]
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
244 cat << EOF
245 Host type:
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
260 exit 0 ;;
262 -host | --host | --hos | --ho)
263 ac_prev=host ;;
264 -host=* | --host=* | --hos=* | --ho=*)
265 host="$ac_optarg" ;;
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 ac_prev=infodir ;;
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
280 ac_prev=libdir ;;
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 ac_prev=mandir ;;
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
305 -nfp | --nfp | --nf)
306 # Obsolete; use --without-fp.
307 with_fp=no ;;
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c)
311 no_create=yes ;;
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 no_recursion=yes ;;
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 ac_prev=prefix ;;
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
364 silent=yes ;;
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 ac_prev=sbindir ;;
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 | --sbi=* | --sb=*)
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
375 | --sha | --sh)
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 | --sha=* | --sh=*)
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
384 ac_prev=site ;;
385 -site=* | --site=* | --sit=*)
386 site="$ac_optarg" ;;
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 ac_prev=srcdir ;;
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
401 ac_prev=target ;;
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 verbose=yes ;;
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
410 exit 0 ;;
412 -with-* | --with-*)
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 case "$ac_option" in
420 *=*) ;;
421 *) ac_optarg=yes ;;
422 esac
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
434 --x)
435 # Obsolete; use --with-x.
436 with_x=yes ;;
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 nonopt="$ac_option"
465 esac
466 done
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
475 # 0 standard input
476 # 1 file creation
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
483 exec 6>/dev/null
484 else
485 exec 6>&1
487 exec 5>./config.log
489 echo "\
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
492 " 1>&5
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
496 ac_configure_args=
497 for ac_arg
499 case "$ac_arg" in
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 esac
508 done
510 # NLS nuisances.
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 echo > confdefs.h
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=make/lilypond.lsm.in
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
533 ac_prog=$0
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 srcdir=$ac_confdir
537 if test ! -r $srcdir/$ac_unique_file; then
538 srcdir=..
540 else
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 else
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 else
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
563 . "$ac_site_file"
565 done
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 . $cache_file
570 else
571 echo "creating cache $cache_file"
572 > $cache_file
575 ac_ext=c
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
582 ac_exeext=
583 ac_objext=o
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='
588 ' ac_t=' '
589 else
590 ac_n=-n ac_c= ac_t=
592 else
593 ac_n= ac_c='\c' ac_t=
599 # Bootstrap StepMake configure
602 . $srcdir/VERSION
603 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
604 if test x$MY_PATCH_LEVEL != x; then
605 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
608 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
609 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
610 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
612 # No versioning on directory names of sub-packages
613 # urg, urg
614 stepmake=${datadir}/stepmake
615 presome=${prefix}
616 if test "$prefix" = "NONE"; then
617 presome=${ac_default_prefix}
619 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
621 # urg, how is this supposed to work?
622 if test "$program_prefix" = "NONE"; then
623 program_prefix=
625 if test "$program_suffix" = "NONE"; then
626 program_suffix=
629 echo $ac_n "checking Package""... $ac_c" 1>&6
630 echo "configure:631: checking Package" >&5
631 if test "x$PACKAGE" = "xSTEPMAKE"; then
632 echo "$ac_t""Stepmake package!" 1>&6
634 #if test "x$builddir" != "x"; then
635 # builddir="../$builddir"
636 #else
637 # builddir=..
639 if test "$srcdir" != "."; then
640 absolute_builddir="`pwd`"
641 package_absolute_builddir="`dirname $absolute_builddir`"
642 package_srcdir="`dirname $srcdir`"
643 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
644 else
645 builddir=.
648 (cd stepmake 2>/dev/null || mkdir stepmake)
649 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
650 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
651 ac_aux_dir=
652 for ac_dir in bin $srcdir/bin; do
653 if test -f $ac_dir/install-sh; then
654 ac_aux_dir=$ac_dir
655 ac_install_sh="$ac_aux_dir/install-sh -c"
656 break
657 elif test -f $ac_dir/install.sh; then
658 ac_aux_dir=$ac_dir
659 ac_install_sh="$ac_aux_dir/install.sh -c"
660 break
662 done
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
666 ac_config_guess=$ac_aux_dir/config.guess
667 ac_config_sub=$ac_aux_dir/config.sub
668 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
670 stepmake=stepmake
671 else
672 echo "$ac_t""$PACKAGE" 1>&6
674 if test "$srcdir" != "."; then
675 absolute_builddir="`pwd`"
676 builddir="`dirname $srcdir`/`basename $absolute_builddir`"
677 else
678 builddir=.
681 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
682 echo "configure:683: checking for stepmake" >&5
683 # Check for installed stepmake
684 if test -d $stepmake; then
685 echo "$ac_t""$stepmake" 1>&6
686 else
687 stepmake='$(depth)'/$srcdir/stepmake
688 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
690 ac_aux_dir=
691 for ac_dir in \
692 $HOME/usr/local/share/stepmake/bin\
693 $HOME/usr/local/lib/stepmake/bin\
694 $HOME/usr/share/stepmake/bin\
695 $HOME/usr/lib/stepmake/bin\
696 /usr/local/share/stepmake/bin\
697 /usr/local/lib/stepmake/bin\
698 /usr/share/stepmake/bin\
699 /usr/lib/stepmake/bin\
700 stepmake/bin\
701 $srcdir/stepmake/bin\
702 $srcdir/\
703 $HOME/usr/local/share/stepmake/bin\
704 $HOME/usr/local/lib/stepmake/bin\
705 $HOME/usr/share/stepmake/bin\
706 $HOME/usr/lib/stepmake/bin\
707 /usr/local/share/stepmake/bin\
708 /usr/local/lib/stepmake/bin\
709 /usr/share/stepmake/bin\
710 /usr/lib/stepmake/bin\
711 stepmake/bin\
712 $srcdir/stepmake/bin\
713 ; do
714 if test -f $ac_dir/install-sh; then
715 ac_aux_dir=$ac_dir
716 ac_install_sh="$ac_aux_dir/install-sh -c"
717 break
718 elif test -f $ac_dir/install.sh; then
719 ac_aux_dir=$ac_dir
720 ac_install_sh="$ac_aux_dir/install.sh -c"
721 break
723 done
724 if test -z "$ac_aux_dir"; then
725 { echo "configure: error: can not find install-sh or install.sh in \
726 $HOME/usr/local/share/stepmake/bin\
727 $HOME/usr/local/lib/stepmake/bin\
728 $HOME/usr/share/stepmake/bin\
729 $HOME/usr/lib/stepmake/bin\
730 /usr/local/share/stepmake/bin\
731 /usr/local/lib/stepmake/bin\
732 /usr/share/stepmake/bin\
733 /usr/lib/stepmake/bin\
734 stepmake/bin\
735 $srcdir/stepmake/bin\
736 $srcdir/\
737 $HOME/usr/local/share/stepmake/bin\
738 $HOME/usr/local/lib/stepmake/bin\
739 $HOME/usr/share/stepmake/bin\
740 $HOME/usr/lib/stepmake/bin\
741 /usr/local/share/stepmake/bin\
742 /usr/local/lib/stepmake/bin\
743 /usr/share/stepmake/bin\
744 /usr/lib/stepmake/bin\
745 stepmake/bin\
746 $srcdir/stepmake/bin\
747 " 1>&2; exit 1; }
749 ac_config_guess=$ac_aux_dir/config.guess
750 ac_config_sub=$ac_aux_dir/config.sub
751 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
760 cat >> confdefs.h <<EOF
761 #define PACKAGE "${PACKAGE_NAME}"
764 cat >> confdefs.h <<EOF
765 #define TOPLEVEL_VERSION "${FULL_VERSION}"
769 if test "$package_depth" = "" ; then
770 package_depth="."
771 else
772 package_depth="../$package_depth"
774 export package_depth
777 AUTOGENERATE="This file was automatically generated by configure"
780 STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
781 if test "x$STATE_VECTOR" != "x"; then
782 STATE_VECTOR="\$(depth)/$STATE_VECTOR"
786 CONFIGSUFFIX=
787 # Check whether --enable-config or --disable-config was given.
788 if test "${enable_config+set}" = set; then
789 enableval="$enable_config"
790 CONFIGSUFFIX=-$enableval
794 CONFIGFILE=config$CONFIGSUFFIX
798 # Make sure we can run config.sub.
799 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
800 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
803 echo $ac_n "checking host system type""... $ac_c" 1>&6
804 echo "configure:805: checking host system type" >&5
806 host_alias=$host
807 case "$host_alias" in
808 NONE)
809 case $nonopt in
810 NONE)
811 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
812 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
813 fi ;;
814 *) host_alias=$nonopt ;;
815 esac ;;
816 esac
818 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
819 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
820 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
821 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
822 echo "$ac_t""$host" 1>&6
824 for ac_prog in gmake make
826 # Extract the first word of "$ac_prog", so it can be a program name with args.
827 set dummy $ac_prog; ac_word=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
832 else
833 if test -n "$MAKE"; then
834 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
835 else
836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 ac_dummy="$PATH"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
841 ac_cv_prog_MAKE="$ac_prog"
842 break
844 done
845 IFS="$ac_save_ifs"
848 MAKE="$ac_cv_prog_MAKE"
849 if test -n "$MAKE"; then
850 echo "$ac_t""$MAKE" 1>&6
851 else
852 echo "$ac_t""no" 1>&6
855 test -n "$MAKE" && break
856 done
857 test -n "$MAKE" || MAKE="error"
859 for ac_prog in find
861 # Extract the first word of "$ac_prog", so it can be a program name with args.
862 set dummy $ac_prog; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
867 else
868 if test -n "$FIND"; then
869 ac_cv_prog_FIND="$FIND" # Let the user override the test.
870 else
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
872 ac_dummy="$PATH"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
876 ac_cv_prog_FIND="$ac_prog"
877 break
879 done
880 IFS="$ac_save_ifs"
883 FIND="$ac_cv_prog_FIND"
884 if test -n "$FIND"; then
885 echo "$ac_t""$FIND" 1>&6
886 else
887 echo "$ac_t""no" 1>&6
890 test -n "$FIND" && break
891 done
892 test -n "$FIND" || FIND="error"
896 for ac_prog in tar
898 # Extract the first word of "$ac_prog", so it can be a program name with args.
899 set dummy $ac_prog; ac_word=$2
900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
901 echo "configure:902: checking for $ac_word" >&5
902 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
904 else
905 if test -n "$TAR"; then
906 ac_cv_prog_TAR="$TAR" # Let the user override the test.
907 else
908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
909 ac_dummy="$PATH"
910 for ac_dir in $ac_dummy; do
911 test -z "$ac_dir" && ac_dir=.
912 if test -f $ac_dir/$ac_word; then
913 ac_cv_prog_TAR="$ac_prog"
914 break
916 done
917 IFS="$ac_save_ifs"
920 TAR="$ac_cv_prog_TAR"
921 if test -n "$TAR"; then
922 echo "$ac_t""$TAR" 1>&6
923 else
924 echo "$ac_t""no" 1>&6
927 test -n "$TAR" && break
928 done
929 test -n "$TAR" || TAR="error"
932 if test "x`uname`" = "xHP-UX"; then
933 # Extract the first word of "bash", so it can be a program name with args.
934 set dummy bash; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
939 else
940 case "$BASH" in
942 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
944 ?:/*)
945 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
949 ac_dummy="$PATH"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_path_BASH="$ac_dir/$ac_word"
954 break
956 done
957 IFS="$ac_save_ifs"
958 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
960 esac
962 BASH="$ac_cv_path_BASH"
963 if test -n "$BASH"; then
964 echo "$ac_t""$BASH" 1>&6
965 else
966 echo "$ac_t""no" 1>&6
970 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
971 warn_b=yes
973 # Extract the first word of "bash", so it can be a program name with args.
974 set dummy bash; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
979 else
980 case "$SHELL" in
982 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
984 ?:/*)
985 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
989 ac_dummy="$PATH"
990 for ac_dir in $ac_dummy; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
993 ac_cv_path_SHELL="$ac_dir/$ac_word"
994 break
996 done
997 IFS="$ac_save_ifs"
998 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1000 esac
1002 SHELL="$ac_cv_path_SHELL"
1003 if test -n "$SHELL"; then
1004 echo "$ac_t""$SHELL" 1>&6
1005 else
1006 echo "$ac_t""no" 1>&6
1009 else
1010 # Extract the first word of "bash", so it can be a program name with args.
1011 set dummy bash; ac_word=$2
1012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013 echo "configure:1014: checking for $ac_word" >&5
1014 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1016 else
1017 case "$BASH" in
1019 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1021 ?:/*)
1022 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1026 ac_dummy="$PATH"
1027 for ac_dir in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 ac_cv_path_BASH="$ac_dir/$ac_word"
1031 break
1033 done
1034 IFS="$ac_save_ifs"
1035 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1037 esac
1039 BASH="$ac_cv_path_BASH"
1040 if test -n "$BASH"; then
1041 echo "$ac_t""$BASH" 1>&6
1042 else
1043 echo "$ac_t""no" 1>&6
1046 SHELL=/bin/sh
1051 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1052 set dummy ${PYTHON:-python}; ac_word=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1057 else
1058 case "$PYTHON" in
1060 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1062 ?:/*)
1063 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1067 ac_dummy="$PATH"
1068 for ac_dir in $ac_dummy; do
1069 test -z "$ac_dir" && ac_dir=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1072 break
1074 done
1075 IFS="$ac_save_ifs"
1076 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1078 esac
1080 PYTHON="$ac_cv_path_PYTHON"
1081 if test -n "$PYTHON"; then
1082 echo "$ac_t""$PYTHON" 1>&6
1083 else
1084 echo "$ac_t""no" 1>&6
1089 if test $MAKE != "error" ; then
1090 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1091 if test "$?" = 1
1092 then
1094 echo "configure: warning: Please install *GNU* make" 1>&2
1095 warn_b=yes
1101 result="`echo \"$PYTHON\" | grep echo`"
1102 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1104 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1105 warn_b=yes
1110 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1111 LN=cp # hard link does not work under cygnus-nt
1112 LN_S='cp -r' # symbolic link does not work for native nt
1113 ZIP="zip -r -9" #
1114 program_suffix=.exe
1115 # urg
1116 # DIRSEP='\\'
1117 # PATHSEP=';'
1119 # cygwin fixes all these things.
1120 # it seems these were used because of dos-style TEXINPUTS and
1121 # MFINPUTS needed for miktex.
1122 # but this breaks parsing of all other cygwin/unix style paths.
1124 # if your (mik)tex breaks, make a:
1125 # /usr/local/bin/tex:
1126 # #!/bin/sh
1127 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1129 # and
1131 # /usr/local/bin/mf:
1132 # #!/bin/sh
1133 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1135 # this way, you may have buildscripts/out/lilypond-profile
1136 # 'automatically' sourced from /usr/etc/profile.d/ too.
1138 DIRSEP='/'
1139 PATHSEP=':'
1140 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1141 else
1142 DIRSEP='/'
1143 PATHSEP=':'
1144 LN=ln
1145 LN_S='ln -s'
1146 ZIP="zip -r -9"
1147 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1155 cat >> confdefs.h <<EOF
1156 #define DIRSEP '${DIRSEP}'
1159 cat >> confdefs.h <<EOF
1160 #define PATHSEP '${PATHSEP}'
1167 if test "$datadir" = "\${prefix}/share"; then
1168 datadir='${prefix}/share/'$package
1170 DIR_DATADIR=${datadir}
1171 presome=${prefix}
1172 if test "$prefix" = "NONE"; then
1173 presome=${ac_default_prefix}
1175 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1178 cat >> confdefs.h <<EOF
1179 #define DIR_DATADIR "${DIR_DATADIR}"
1185 # For all packages except the StepMake package itself
1186 subdirs="stepmake"
1189 # Uncomment the configuration options your package needs.
1191 # -O is necessary to get inlining
1192 OPTIMIZE=""
1193 CFLAGS=${CFLAGS:-""}
1194 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1195 LDFLAGS=${LDFLAGS:-""}
1196 checking_b=yes
1197 optimise_b=no
1198 profile_b=no
1199 debug_b=yes
1201 # Check whether --enable-checking or --disable-checking was given.
1202 if test "${enable_checking+set}" = set; then
1203 enableval="$enable_checking"
1204 checking_b=$enableval
1208 # actually, the default is: tja='-O' to get inlining...
1209 # off='' --jcn
1211 #actually, that sucks.
1212 # tja looks like a typo. Default is optimisation off. --hwn
1214 # Check whether --enable-optimise or --disable-optimise was given.
1215 if test "${enable_optimise+set}" = set; then
1216 enableval="$enable_optimise"
1217 optimise_b=$enableval
1221 # Check whether --enable-profiling or --disable-profiling was given.
1222 if test "${enable_profiling+set}" = set; then
1223 enableval="$enable_profiling"
1224 profile_b=$enableval
1228 # Check whether --enable-debugging or --disable-debugging was given.
1229 if test "${enable_debugging+set}" = set; then
1230 enableval="$enable_debugging"
1231 debug_b=$enableval
1235 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1236 if test "${enable_mingw_prefix+set}" = set; then
1237 enableval="$enable_mingw_prefix"
1238 MINGWPREFIX=$enableval
1239 else
1240 MINGWPREFIX=no
1244 if test "$checking_b" = no; then
1245 # ugh
1246 cat >> confdefs.h <<\EOF
1247 #define NDEBUG 1
1250 DEFINES="$DEFINES -DNDEBUG"
1253 if test "$optimise_b" = yes; then
1254 OPTIMIZE="-O2 -finline-functions"
1257 if test "$optimise_b" = no; then
1258 OPTIMIZE=""
1261 if test $profile_b = yes; then
1262 EXTRA_LIBES="-pg"
1263 OPTIMIZE="$OPTIMIZE -pg"
1266 if test $debug_b = yes; then
1267 OPTIMIZE="$OPTIMIZE -g"
1270 # however, C++ support in mingw32 v 0.1.4 is still flaky
1271 if test x$MINGWPREFIX != xno; then
1272 ICFLAGS="-I$MINGWPREFIX/include"
1273 ILDFLAGS="-$MINGWPREFIX/lib"
1276 # Extract the first word of "gcc", so it can be a program name with args.
1277 set dummy gcc; ac_word=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283 if test -n "$CC"; then
1284 ac_cv_prog_CC="$CC" # Let the user override the test.
1285 else
1286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1287 ac_dummy="$PATH"
1288 for ac_dir in $ac_dummy; do
1289 test -z "$ac_dir" && ac_dir=.
1290 if test -f $ac_dir/$ac_word; then
1291 ac_cv_prog_CC="gcc"
1292 break
1294 done
1295 IFS="$ac_save_ifs"
1298 CC="$ac_cv_prog_CC"
1299 if test -n "$CC"; then
1300 echo "$ac_t""$CC" 1>&6
1301 else
1302 echo "$ac_t""no" 1>&6
1305 if test -z "$CC"; then
1306 # Extract the first word of "cc", so it can be a program name with args.
1307 set dummy cc; ac_word=$2
1308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1309 echo "configure:1310: checking for $ac_word" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313 if test -n "$CC"; then
1314 ac_cv_prog_CC="$CC" # Let the user override the test.
1315 else
1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1317 ac_prog_rejected=no
1318 ac_dummy="$PATH"
1319 for ac_dir in $ac_dummy; do
1320 test -z "$ac_dir" && ac_dir=.
1321 if test -f $ac_dir/$ac_word; then
1322 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1323 ac_prog_rejected=yes
1324 continue
1326 ac_cv_prog_CC="cc"
1327 break
1329 done
1330 IFS="$ac_save_ifs"
1331 if test $ac_prog_rejected = yes; then
1332 # We found a bogon in the path, so make sure we never use it.
1333 set dummy $ac_cv_prog_CC
1334 shift
1335 if test $# -gt 0; then
1336 # We chose a different compiler from the bogus one.
1337 # However, it has the same basename, so the bogon will be chosen
1338 # first if we set CC to just the basename; use the full file name.
1339 shift
1340 set dummy "$ac_dir/$ac_word" "$@"
1341 shift
1342 ac_cv_prog_CC="$@"
1347 CC="$ac_cv_prog_CC"
1348 if test -n "$CC"; then
1349 echo "$ac_t""$CC" 1>&6
1350 else
1351 echo "$ac_t""no" 1>&6
1354 if test -z "$CC"; then
1355 case "`uname -s`" in
1356 *win32* | *WIN32*)
1357 # Extract the first word of "cl", so it can be a program name with args.
1358 set dummy cl; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 if test -n "$CC"; then
1365 ac_cv_prog_CC="$CC" # Let the user override the test.
1366 else
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1368 ac_dummy="$PATH"
1369 for ac_dir in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_CC="cl"
1373 break
1375 done
1376 IFS="$ac_save_ifs"
1379 CC="$ac_cv_prog_CC"
1380 if test -n "$CC"; then
1381 echo "$ac_t""$CC" 1>&6
1382 else
1383 echo "$ac_t""no" 1>&6
1386 esac
1388 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1391 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1394 ac_ext=c
1395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1396 ac_cpp='$CPP $CPPFLAGS'
1397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1399 cross_compiling=$ac_cv_prog_cc_cross
1401 cat > conftest.$ac_ext << EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1406 main(){return(0);}
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1409 ac_cv_prog_cc_works=yes
1410 # If we can't run a trivial program, we are probably using a cross compiler.
1411 if (./conftest; exit) 2>/dev/null; then
1412 ac_cv_prog_cc_cross=no
1413 else
1414 ac_cv_prog_cc_cross=yes
1416 else
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1419 ac_cv_prog_cc_works=no
1421 rm -fr conftest*
1422 ac_ext=c
1423 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1424 ac_cpp='$CPP $CPPFLAGS'
1425 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1426 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1427 cross_compiling=$ac_cv_prog_cc_cross
1429 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1430 if test $ac_cv_prog_cc_works = no; then
1431 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1433 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1434 echo "configure:1435: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1435 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1436 cross_compiling=$ac_cv_prog_cc_cross
1438 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1439 echo "configure:1440: checking whether we are using GNU C" >&5
1440 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443 cat > conftest.c <<EOF
1444 #ifdef __GNUC__
1445 yes;
1446 #endif
1448 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1449 ac_cv_prog_gcc=yes
1450 else
1451 ac_cv_prog_gcc=no
1455 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1457 if test $ac_cv_prog_gcc = yes; then
1458 GCC=yes
1459 else
1460 GCC=
1463 ac_test_CFLAGS="${CFLAGS+set}"
1464 ac_save_CFLAGS="$CFLAGS"
1465 CFLAGS=
1466 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether ${CC-cc} accepts -g" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470 else
1471 echo 'void f(){}' > conftest.c
1472 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1473 ac_cv_prog_cc_g=yes
1474 else
1475 ac_cv_prog_cc_g=no
1477 rm -f conftest*
1481 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1482 if test "$ac_test_CFLAGS" = set; then
1483 CFLAGS="$ac_save_CFLAGS"
1484 elif test $ac_cv_prog_cc_g = yes; then
1485 if test "$GCC" = yes; then
1486 CFLAGS="-g -O2"
1487 else
1488 CFLAGS="-g"
1490 else
1491 if test "$GCC" = yes; then
1492 CFLAGS="-O2"
1493 else
1494 CFLAGS=
1498 LD='$(CC)'
1501 CFLAGS="$CFLAGS $OPTIMIZE"
1502 CPPFLAGS=${CPPFLAGS:-""}
1511 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1512 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1513 echo "configure:1514: checking how to run the C preprocessor" >&5
1514 # On Suns, sometimes $CPP names a directory.
1515 if test -n "$CPP" && test -d "$CPP"; then
1516 CPP=
1518 if test -z "$CPP"; then
1519 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1521 else
1522 # This must be in double quotes, not single quotes, because CPP may get
1523 # substituted into the Makefile and "${CC-cc}" will confuse make.
1524 CPP="${CC-cc} -E"
1525 # On the NeXT, cc -E runs the code through the compiler's parser,
1526 # not just through cpp.
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 #include <assert.h>
1531 Syntax Error
1533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1534 { (eval echo configure:1535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1536 if test -z "$ac_err"; then
1538 else
1539 echo "$ac_err" >&5
1540 echo "configure: failed program was:" >&5
1541 cat conftest.$ac_ext >&5
1542 rm -rf conftest*
1543 CPP="${CC-cc} -E -traditional-cpp"
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 #include <assert.h>
1548 Syntax Error
1550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1551 { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1553 if test -z "$ac_err"; then
1555 else
1556 echo "$ac_err" >&5
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1559 rm -rf conftest*
1560 CPP="${CC-cc} -nologo -E"
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 #include <assert.h>
1565 Syntax Error
1567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568 { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1570 if test -z "$ac_err"; then
1572 else
1573 echo "$ac_err" >&5
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1576 rm -rf conftest*
1577 CPP=/lib/cpp
1579 rm -f conftest*
1581 rm -f conftest*
1583 rm -f conftest*
1584 ac_cv_prog_CPP="$CPP"
1586 CPP="$ac_cv_prog_CPP"
1587 else
1588 ac_cv_prog_CPP="$CPP"
1590 echo "$ac_t""$CPP" 1>&6
1592 for ac_hdr in assert.h
1594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1596 echo "configure:1597: checking for $ac_hdr" >&5
1597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1599 else
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1603 #include <$ac_hdr>
1605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1606 { (eval echo configure:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1608 if test -z "$ac_err"; then
1609 rm -rf conftest*
1610 eval "ac_cv_header_$ac_safe=yes"
1611 else
1612 echo "$ac_err" >&5
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1615 rm -rf conftest*
1616 eval "ac_cv_header_$ac_safe=no"
1618 rm -f conftest*
1620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1621 echo "$ac_t""yes" 1>&6
1622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1623 cat >> confdefs.h <<EOF
1624 #define $ac_tr_hdr 1
1627 else
1628 echo "$ac_t""no" 1>&6
1630 done
1633 printing_b=no
1634 # Check whether --enable-printing or --disable-printing was given.
1635 if test "${enable_printing+set}" = set; then
1636 enableval="$enable_printing"
1637 printing_b=$enableval
1641 if test "$optimise_b" = yes; then
1642 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1643 cat >> confdefs.h <<\EOF
1644 #define STRINGS_UTILS_INLINED 1
1649 if test "$printing_b" = no; then
1650 # ugh
1651 cat >> confdefs.h <<\EOF
1652 #define NPRINT 1
1655 DEFINES="$DEFINES -DNPRINT"
1658 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1659 echo "configure:1660: checking how to run the C++ preprocessor" >&5
1660 if test -z "$CXXCPP"; then
1661 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1663 else
1664 ac_ext=C
1665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1666 ac_cpp='$CXXCPP $CPPFLAGS'
1667 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1668 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1669 cross_compiling=$ac_cv_prog_cxx_cross
1670 CXXCPP="${CXX-g++} -E"
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1674 #include <stdlib.h>
1676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1677 { (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1679 if test -z "$ac_err"; then
1681 else
1682 echo "$ac_err" >&5
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1685 rm -rf conftest*
1686 CXXCPP=/lib/cpp
1688 rm -f conftest*
1689 ac_cv_prog_CXXCPP="$CXXCPP"
1690 ac_ext=C
1691 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1692 ac_cpp='$CXXCPP $CPPFLAGS'
1693 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1694 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1695 cross_compiling=$ac_cv_prog_cxx_cross
1698 CXXCPP="$ac_cv_prog_CXXCPP"
1699 echo "$ac_t""$CXXCPP" 1>&6
1702 ac_ext=C
1703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1704 ac_cpp='$CXXCPP $CPPFLAGS'
1705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1707 cross_compiling=$ac_cv_prog_cxx_cross
1709 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5
1715 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1717 else
1718 if test -n "$CXX"; then
1719 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1720 else
1721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1722 ac_dummy="$PATH"
1723 for ac_dir in $ac_dummy; do
1724 test -z "$ac_dir" && ac_dir=.
1725 if test -f $ac_dir/$ac_word; then
1726 ac_cv_prog_CXX="$ac_prog"
1727 break
1729 done
1730 IFS="$ac_save_ifs"
1733 CXX="$ac_cv_prog_CXX"
1734 if test -n "$CXX"; then
1735 echo "$ac_t""$CXX" 1>&6
1736 else
1737 echo "$ac_t""no" 1>&6
1740 test -n "$CXX" && break
1741 done
1742 test -n "$CXX" || CXX="gcc"
1745 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1746 echo "configure:1747: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1748 ac_ext=C
1749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1750 ac_cpp='$CXXCPP $CPPFLAGS'
1751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1753 cross_compiling=$ac_cv_prog_cxx_cross
1755 cat > conftest.$ac_ext << EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1760 int main(){return(0);}
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763 ac_cv_prog_cxx_works=yes
1764 # If we can't run a trivial program, we are probably using a cross compiler.
1765 if (./conftest; exit) 2>/dev/null; then
1766 ac_cv_prog_cxx_cross=no
1767 else
1768 ac_cv_prog_cxx_cross=yes
1770 else
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1773 ac_cv_prog_cxx_works=no
1775 rm -fr conftest*
1776 ac_ext=C
1777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1778 ac_cpp='$CXXCPP $CPPFLAGS'
1779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1781 cross_compiling=$ac_cv_prog_cxx_cross
1783 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1784 if test $ac_cv_prog_cxx_works = no; then
1785 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1787 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1789 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1790 cross_compiling=$ac_cv_prog_cxx_cross
1792 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1793 echo "configure:1794: checking whether we are using GNU C++" >&5
1794 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797 cat > conftest.C <<EOF
1798 #ifdef __GNUC__
1799 yes;
1800 #endif
1802 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1803 ac_cv_prog_gxx=yes
1804 else
1805 ac_cv_prog_gxx=no
1809 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1811 if test $ac_cv_prog_gxx = yes; then
1812 GXX=yes
1813 else
1814 GXX=
1817 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1818 ac_save_CXXFLAGS="$CXXFLAGS"
1819 CXXFLAGS=
1820 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1821 echo "configure:1822: checking whether ${CXX-g++} accepts -g" >&5
1822 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824 else
1825 echo 'void f(){}' > conftest.cc
1826 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1827 ac_cv_prog_cxx_g=yes
1828 else
1829 ac_cv_prog_cxx_g=no
1831 rm -f conftest*
1835 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1836 if test "$ac_test_CXXFLAGS" = set; then
1837 CXXFLAGS="$ac_save_CXXFLAGS"
1838 elif test $ac_cv_prog_cxx_g = yes; then
1839 if test "$GXX" = yes; then
1840 CXXFLAGS="-g -O2"
1841 else
1842 CXXFLAGS="-g"
1844 else
1845 if test "$GXX" = yes; then
1846 CXXFLAGS="-O2"
1847 else
1848 CXXFLAGS=
1853 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1854 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1855 echo "configure:1856: checking for FlexLexer.h" >&5
1856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862 #include <FlexLexer.h>
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1868 rm -rf conftest*
1869 eval "ac_cv_header_$ac_safe=yes"
1870 else
1871 echo "$ac_err" >&5
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1874 rm -rf conftest*
1875 eval "ac_cv_header_$ac_safe=no"
1877 rm -f conftest*
1879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1881 true
1882 else
1883 echo "$ac_t""no" 1>&6
1885 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1886 warn_b=yes
1891 CPPFLAGS="$CPPFLAGS $DEFINES"
1892 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1893 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1897 LD='$(CXX)'
1901 # ugh autoconf
1902 # urg, egcs: how to check for egcs >= 1.1?
1903 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1904 $CXX --version | grep 'egcs' > /dev/null
1905 then
1906 true
1907 else
1909 echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2
1910 warn_b=yes
1915 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1916 echo "configure:1917: checking whether explicit instantiation is needed" >&5
1917 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1919 else
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1924 template <class T> struct foo { static int baz; };
1925 template <class T> int foo<T>::baz = 1;
1927 int main() {
1928 return foo<int>::baz;
1929 ; return 0; }
1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1932 rm -rf conftest*
1933 lily_cv_need_explicit_instantiation=no
1934 else
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 rm -rf conftest*
1938 lily_cv_need_explicit_instantiation=yes
1940 rm -f conftest*
1943 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1944 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1945 cat >> confdefs.h <<\EOF
1946 #define NEED_EXPLICIT_INSTANTIATION 1
1952 # ugh, automake: we want (and check for) bison
1953 for ac_prog in 'bison -y' byacc
1955 # Extract the first word of "$ac_prog", so it can be a program name with args.
1956 set dummy $ac_prog; ac_word=$2
1957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1958 echo "configure:1959: checking for $ac_word" >&5
1959 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1961 else
1962 if test -n "$YACC"; then
1963 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1964 else
1965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1966 ac_dummy="$PATH"
1967 for ac_dir in $ac_dummy; do
1968 test -z "$ac_dir" && ac_dir=.
1969 if test -f $ac_dir/$ac_word; then
1970 ac_cv_prog_YACC="$ac_prog"
1971 break
1973 done
1974 IFS="$ac_save_ifs"
1977 YACC="$ac_cv_prog_YACC"
1978 if test -n "$YACC"; then
1979 echo "$ac_t""$YACC" 1>&6
1980 else
1981 echo "$ac_t""no" 1>&6
1984 test -n "$YACC" && break
1985 done
1986 test -n "$YACC" || YACC="yacc"
1988 # ugh, automake: we want (and check for) flex
1989 # AC_PROG_LEX
1990 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1992 # AC_DECL_YYTEXT
1993 # ugh, ugh
1994 ac_cv_prog_lex_root=lex.yy
1996 for ac_prog in bison
1998 # Extract the first word of "$ac_prog", so it can be a program name with args.
1999 set dummy $ac_prog; ac_word=$2
2000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_word" >&5
2002 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2004 else
2005 if test -n "$BISON"; then
2006 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2007 else
2008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2009 ac_dummy="$PATH"
2010 for ac_dir in $ac_dummy; do
2011 test -z "$ac_dir" && ac_dir=.
2012 if test -f $ac_dir/$ac_word; then
2013 ac_cv_prog_BISON="$ac_prog"
2014 break
2016 done
2017 IFS="$ac_save_ifs"
2020 BISON="$ac_cv_prog_BISON"
2021 if test -n "$BISON"; then
2022 echo "$ac_t""$BISON" 1>&6
2023 else
2024 echo "$ac_t""no" 1>&6
2027 test -n "$BISON" && break
2028 done
2029 test -n "$BISON" || BISON="error"
2031 for ac_prog in flex
2033 # Extract the first word of "$ac_prog", so it can be a program name with args.
2034 set dummy $ac_prog; ac_word=$2
2035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2036 echo "configure:2037: checking for $ac_word" >&5
2037 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2039 else
2040 if test -n "$FLEX"; then
2041 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2042 else
2043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2044 ac_dummy="$PATH"
2045 for ac_dir in $ac_dummy; do
2046 test -z "$ac_dir" && ac_dir=.
2047 if test -f $ac_dir/$ac_word; then
2048 ac_cv_prog_FLEX="$ac_prog"
2049 break
2051 done
2052 IFS="$ac_save_ifs"
2055 FLEX="$ac_cv_prog_FLEX"
2056 if test -n "$FLEX"; then
2057 echo "$ac_t""$FLEX" 1>&6
2058 else
2059 echo "$ac_t""no" 1>&6
2062 test -n "$FLEX" && break
2063 done
2064 test -n "$FLEX" || FLEX="error"
2067 result="`echo \"$BISON\" | grep echo`"
2068 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2070 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2071 warn_b=yes
2076 result="`echo \"$FLEX\" | grep echo`"
2077 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2079 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2080 warn_b=yes
2085 if test $BISON != "error"; then
2086 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2087 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2089 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2090 warn_b=yes
2099 for ac_prog in ar
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $ac_prog; ac_word=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2107 else
2108 if test -n "$AR"; then
2109 ac_cv_prog_AR="$AR" # Let the user override the test.
2110 else
2111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2112 ac_dummy="$PATH"
2113 for ac_dir in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir=.
2115 if test -f $ac_dir/$ac_word; then
2116 ac_cv_prog_AR="$ac_prog"
2117 break
2119 done
2120 IFS="$ac_save_ifs"
2123 AR="$ac_cv_prog_AR"
2124 if test -n "$AR"; then
2125 echo "$ac_t""$AR" 1>&6
2126 else
2127 echo "$ac_t""no" 1>&6
2130 test -n "$AR" && break
2131 done
2132 test -n "$AR" || AR="error"
2134 # Extract the first word of "ranlib", so it can be a program name with args.
2135 set dummy ranlib; ac_word=$2
2136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_word" >&5
2138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141 if test -n "$RANLIB"; then
2142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2143 else
2144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2145 ac_dummy="$PATH"
2146 for ac_dir in $ac_dummy; do
2147 test -z "$ac_dir" && ac_dir=.
2148 if test -f $ac_dir/$ac_word; then
2149 ac_cv_prog_RANLIB="ranlib"
2150 break
2152 done
2153 IFS="$ac_save_ifs"
2154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2157 RANLIB="$ac_cv_prog_RANLIB"
2158 if test -n "$RANLIB"; then
2159 echo "$ac_t""$RANLIB" 1>&6
2160 else
2161 echo "$ac_t""no" 1>&6
2168 # AC_STEPMAKE_LIBTOOL
2170 lang=English
2171 ALL_LINGUAS="en nl"
2173 # with/enable ??
2174 # Check whether --with-localedir or --without-localedir was given.
2175 if test "${with_localedir+set}" = set; then
2176 withval="$with_localedir"
2177 localedir=$with_localedir
2178 else
2179 localedir='${prefix}/share/locale'
2183 # Check whether --with-lang or --without-lang was given.
2184 if test "${with_lang+set}" = set; then
2185 withval="$with_lang"
2186 language=$with_lang
2187 else
2188 language=English
2192 echo $ac_n "checking language""... $ac_c" 1>&6
2193 echo "configure:2194: checking language" >&5
2194 case "$language" in
2195 En* | en* | Am* | am* | US* | us*)
2196 lang=English;;
2197 NL | nl | Du* | du* | Ned* | ned*)
2198 lang=Dutch;;
2200 lang=English;;
2202 lang=unknown;;
2203 esac
2204 echo "$ac_t""$lang" 1>&6
2206 if test "$lang" = "unknown" ; then
2208 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2209 warn_b=yes
2215 DIR_LOCALEDIR=${localedir}
2216 presome=${prefix}
2217 if test "$prefix" = "NONE"; then
2218 presome=${ac_default_prefix}
2220 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2223 cat >> confdefs.h <<EOF
2224 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2228 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2229 echo "configure:2230: checking for gettext in -lintl" >&5
2230 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234 ac_save_LIBS="$LIBS"
2235 LIBS="-lintl $LIBS"
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 /* Override any gcc2 internal prototype to avoid an error. */
2240 #ifdef __cplusplus
2241 extern "C"
2242 #endif
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2245 char gettext();
2247 int main() {
2248 gettext()
2249 ; return 0; }
2251 if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2252 rm -rf conftest*
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2254 else
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 eval "ac_cv_lib_$ac_lib_var=no"
2260 rm -f conftest*
2261 LIBS="$ac_save_LIBS"
2264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2268 cat >> confdefs.h <<EOF
2269 #define $ac_tr_lib 1
2272 LIBS="-lintl $LIBS"
2274 else
2275 echo "$ac_t""no" 1>&6
2278 for ac_func in gettext
2280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_func" >&5
2282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284 else
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* System header to define __stub macros and hopefully few prototypes,
2289 which can conflict with char $ac_func(); below. */
2290 #include <assert.h>
2291 /* Override any gcc2 internal prototype to avoid an error. */
2292 #ifdef __cplusplus
2293 extern "C"
2294 #endif
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2297 char $ac_func();
2299 int main() {
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2305 choke me
2306 #else
2307 $ac_func();
2308 #endif
2310 ; return 0; }
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2313 rm -rf conftest*
2314 eval "ac_cv_func_$ac_func=yes"
2315 else
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -rf conftest*
2319 eval "ac_cv_func_$ac_func=no"
2321 rm -f conftest*
2324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2327 cat >> confdefs.h <<EOF
2328 #define $ac_tr_func 1
2331 else
2332 echo "$ac_t""no" 1>&6
2334 done
2338 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2339 for ac_prog in msgfmt
2341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_word" >&5
2345 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2347 else
2348 if test -n "$MSGFMT"; then
2349 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2350 else
2351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2352 ac_dummy="$PATH"
2353 for ac_dir in $ac_dummy; do
2354 test -z "$ac_dir" && ac_dir=.
2355 if test -f $ac_dir/$ac_word; then
2356 ac_cv_prog_MSGFMT="$ac_prog"
2357 break
2359 done
2360 IFS="$ac_save_ifs"
2363 MSGFMT="$ac_cv_prog_MSGFMT"
2364 if test -n "$MSGFMT"; then
2365 echo "$ac_t""$MSGFMT" 1>&6
2366 else
2367 echo "$ac_t""no" 1>&6
2370 test -n "$MSGFMT" && break
2371 done
2372 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2374 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2375 echo "configure:2376: checking whether msgfmt accepts -o" >&5
2376 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2377 if test "$msgfmt_output" = ""; then
2378 echo "$ac_t""yes" 1>&6
2379 else
2380 # urg
2381 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2382 echo "$ac_t""no" 1>&6
2384 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2385 warn_b=yes
2388 if test ! -n "$MSGFMT"; then
2390 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2391 warn_b=yes
2396 # urg, never know what names these teTeX guys will think up
2398 for ac_prog in mf
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2403 echo "configure:2404: checking for $ac_word" >&5
2404 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2406 else
2407 if test -n "$METAFONT"; then
2408 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2409 else
2410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2411 ac_dummy="$PATH"
2412 for ac_dir in $ac_dummy; do
2413 test -z "$ac_dir" && ac_dir=.
2414 if test -f $ac_dir/$ac_word; then
2415 ac_cv_prog_METAFONT="$ac_prog"
2416 break
2418 done
2419 IFS="$ac_save_ifs"
2422 METAFONT="$ac_cv_prog_METAFONT"
2423 if test -n "$METAFONT"; then
2424 echo "$ac_t""$METAFONT" 1>&6
2425 else
2426 echo "$ac_t""no" 1>&6
2429 test -n "$METAFONT" && break
2430 done
2431 test -n "$METAFONT" || METAFONT="no"
2433 if test "x$METAFONT" = "xno"; then
2434 for ac_prog in mfont
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy $ac_prog; ac_word=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443 if test -n "$MFONT"; then
2444 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2445 else
2446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2447 ac_dummy="$PATH"
2448 for ac_dir in $ac_dummy; do
2449 test -z "$ac_dir" && ac_dir=.
2450 if test -f $ac_dir/$ac_word; then
2451 ac_cv_prog_MFONT="$ac_prog"
2452 break
2454 done
2455 IFS="$ac_save_ifs"
2458 MFONT="$ac_cv_prog_MFONT"
2459 if test -n "$MFONT"; then
2460 echo "$ac_t""$MFONT" 1>&6
2461 else
2462 echo "$ac_t""no" 1>&6
2465 test -n "$MFONT" && break
2466 done
2467 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2469 METAFONT=$MFONT
2472 for ac_prog in mp
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy $ac_prog; ac_word=$2
2476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_word" >&5
2478 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481 if test -n "$METAPOST"; then
2482 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2483 else
2484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2485 ac_dummy="$PATH"
2486 for ac_dir in $ac_dummy; do
2487 test -z "$ac_dir" && ac_dir=.
2488 if test -f $ac_dir/$ac_word; then
2489 ac_cv_prog_METAPOST="$ac_prog"
2490 break
2492 done
2493 IFS="$ac_save_ifs"
2496 METAPOST="$ac_cv_prog_METAPOST"
2497 if test -n "$METAPOST"; then
2498 echo "$ac_t""$METAPOST" 1>&6
2499 else
2500 echo "$ac_t""no" 1>&6
2503 test -n "$METAPOST" && break
2504 done
2505 test -n "$METAPOST" || METAPOST="no"
2507 if test "x$METAPOST" = "xno"; then
2508 for ac_prog in mpost
2510 # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_word" >&5
2514 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516 else
2517 if test -n "$MPOST"; then
2518 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2519 else
2520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2521 ac_dummy="$PATH"
2522 for ac_dir in $ac_dummy; do
2523 test -z "$ac_dir" && ac_dir=.
2524 if test -f $ac_dir/$ac_word; then
2525 ac_cv_prog_MPOST="$ac_prog"
2526 break
2528 done
2529 IFS="$ac_save_ifs"
2532 MPOST="$ac_cv_prog_MPOST"
2533 if test -n "$MPOST"; then
2534 echo "$ac_t""$MPOST" 1>&6
2535 else
2536 echo "$ac_t""no" 1>&6
2539 test -n "$MPOST" && break
2540 done
2541 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2544 METAPOST=$MPOST
2547 for ac_prog in inimf
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_word" >&5
2553 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2555 else
2556 if test -n "$INIMETAFONT"; then
2557 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2558 else
2559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2560 ac_dummy="$PATH"
2561 for ac_dir in $ac_dummy; do
2562 test -z "$ac_dir" && ac_dir=.
2563 if test -f $ac_dir/$ac_word; then
2564 ac_cv_prog_INIMETAFONT="$ac_prog"
2565 break
2567 done
2568 IFS="$ac_save_ifs"
2571 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2572 if test -n "$INIMETAFONT"; then
2573 echo "$ac_t""$INIMETAFONT" 1>&6
2574 else
2575 echo "$ac_t""no" 1>&6
2578 test -n "$INIMETAFONT" && break
2579 done
2580 test -n "$INIMETAFONT" || INIMETAFONT="no"
2582 if test "x$INIMETAFONT" = "xno"; then
2583 for ac_prog in inimfont
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2588 echo "configure:2589: checking for $ac_word" >&5
2589 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2591 else
2592 if test -n "$INIMFONT"; then
2593 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2594 else
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2596 ac_dummy="$PATH"
2597 for ac_dir in $ac_dummy; do
2598 test -z "$ac_dir" && ac_dir=.
2599 if test -f $ac_dir/$ac_word; then
2600 ac_cv_prog_INIMFONT="$ac_prog"
2601 break
2603 done
2604 IFS="$ac_save_ifs"
2607 INIMFONT="$ac_cv_prog_INIMFONT"
2608 if test -n "$INIMFONT"; then
2609 echo "$ac_t""$INIMFONT" 1>&6
2610 else
2611 echo "$ac_t""no" 1>&6
2614 test -n "$INIMFONT" && break
2615 done
2616 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2618 INIMETAFONT=$INIMFONT
2621 for ac_prog in inimp
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2626 echo "configure:2627: checking for $ac_word" >&5
2627 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2629 else
2630 if test -n "$INIMETAPOST"; then
2631 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2632 else
2633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2634 ac_dummy="$PATH"
2635 for ac_dir in $ac_dummy; do
2636 test -z "$ac_dir" && ac_dir=.
2637 if test -f $ac_dir/$ac_word; then
2638 ac_cv_prog_INIMETAPOST="$ac_prog"
2639 break
2641 done
2642 IFS="$ac_save_ifs"
2645 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2646 if test -n "$INIMETAPOST"; then
2647 echo "$ac_t""$INIMETAPOST" 1>&6
2648 else
2649 echo "$ac_t""no" 1>&6
2652 test -n "$INIMETAPOST" && break
2653 done
2654 test -n "$INIMETAPOST" || INIMETAPOST="no"
2656 if test "x$INIMETAPOST" = "xno"; then
2657 for ac_prog in inimpost
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_word" >&5
2663 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2665 else
2666 if test -n "$INIMPOST"; then
2667 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2668 else
2669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2670 ac_dummy="$PATH"
2671 for ac_dir in $ac_dummy; do
2672 test -z "$ac_dir" && ac_dir=.
2673 if test -f $ac_dir/$ac_word; then
2674 ac_cv_prog_INIMPOST="$ac_prog"
2675 break
2677 done
2678 IFS="$ac_save_ifs"
2681 INIMPOST="$ac_cv_prog_INIMPOST"
2682 if test -n "$INIMPOST"; then
2683 echo "$ac_t""$INIMPOST" 1>&6
2684 else
2685 echo "$ac_t""no" 1>&6
2688 test -n "$INIMPOST" && break
2689 done
2690 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2692 INIMETAPOST=$INIMPOST
2695 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2696 echo "configure:2697: checking for working metafont mode" >&5
2697 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2698 for MFMODE in $modelist; do
2699 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2700 if test -f mfput.tfm; then
2701 break;
2703 done
2706 # For now let people define these in their environments
2708 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2710 if test ${INIMETAPOST} = "inimp" ; then
2711 : ${INIMETAPOST_FLAGS=''}
2712 else
2713 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2716 rm -f mfput.*
2717 echo "$ac_t""$MFMODE" 1>&6
2728 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2729 if test "${enable_tfm_path+set}" = set; then
2730 enableval="$enable_tfm_path"
2731 tfm_path=$enableval
2732 else
2733 tfm_path=auto
2737 for ac_prog in kpsewhich
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy $ac_prog; ac_word=$2
2741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_word" >&5
2743 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2745 else
2746 if test -n "$KPSEWHICH"; then
2747 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2748 else
2749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2750 ac_dummy="$PATH"
2751 for ac_dir in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir=.
2753 if test -f $ac_dir/$ac_word; then
2754 ac_cv_prog_KPSEWHICH="$ac_prog"
2755 break
2757 done
2758 IFS="$ac_save_ifs"
2761 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2762 if test -n "$KPSEWHICH"; then
2763 echo "$ac_t""$KPSEWHICH" 1>&6
2764 else
2765 echo "$ac_t""no" 1>&6
2768 test -n "$KPSEWHICH" && break
2769 done
2770 test -n "$KPSEWHICH" || KPSEWHICH="no"
2772 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2773 echo "configure:2774: checking for tfm path" >&5
2775 TFM_FONTS="cmr msam"
2777 if test "x$tfm_path" = xauto ; then
2778 if test "x$KPSEWHICH" != "xno" ; then
2779 for i in $TFM_FONTS; do
2780 dir=`$KPSEWHICH tfm ${i}10.tfm`
2781 TFM_PATH="$TFM_PATH `dirname $dir`"
2782 done
2783 else
2785 echo "configure: warning: Please specify where cmr10.tfm lives:
2786 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2787 warn_b=yes
2790 else
2791 TFM_PATH=$tfm_path
2794 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2795 echo "$ac_t""$TFM_PATH" 1>&6
2799 ## First, let's just see if we can find Guile at all.
2800 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2801 echo "configure:2802: checking "for guile-config"" >&5
2802 for guile_config in guile-config $target-guile-config $build-guile-config; do
2803 echo "$ac_t"""$guile_config"" 1>&6
2804 if ! $guile_config --version > /dev/null 2>&1 ; then
2805 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2806 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2807 echo "configure:2808: checking "if we are cross compiling"" >&5
2808 guile_config=error
2809 else
2810 break
2812 done
2813 if test "$guile_config" = "error"; then
2814 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2815 exit 1
2817 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2818 echo "configure:2819: checking "Guile version"" >&5
2819 need_guile_version="1.3.4"
2820 guile_version=`expr "\`$guile_config --version 2>&1\`" : ".*\($need_guile_version\).*"`
2821 echo "$ac_t"""$guile_version"" 1>&6
2822 if test "$guile_version" != "$need_guile_version"; then
2824 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2825 warn_b=yes
2829 ## The GUILE_FLAGS macro.
2830 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2831 echo "configure:2832: checking for Guile" >&5
2832 if ! $guile_config link > /dev/null ; then
2833 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2834 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2835 exit 1
2837 GUILE_CFLAGS="`$guile_config compile`"
2838 GUILE_LDFLAGS="`$guile_config link`"
2841 echo "$ac_t""yes" 1>&6
2843 # Extract the first word of "guile", so it can be a program name with args.
2844 set dummy guile; ac_word=$2
2845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_word" >&5
2847 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2849 else
2850 case "$GUILE" in
2852 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2854 ?:/*)
2855 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2859 ac_dummy="$PATH"
2860 for ac_dir in $ac_dummy; do
2861 test -z "$ac_dir" && ac_dir=.
2862 if test -f $ac_dir/$ac_word; then
2863 ac_cv_path_GUILE="$ac_dir/$ac_word"
2864 break
2866 done
2867 IFS="$ac_save_ifs"
2868 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2870 esac
2872 GUILE="$ac_cv_path_GUILE"
2873 if test -n "$GUILE"; then
2874 echo "$ac_t""$GUILE" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2883 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2884 echo "configure:2885: checking for 8-bit clean memcmp" >&5
2885 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2887 else
2888 if test "$cross_compiling" = yes; then
2889 ac_cv_func_memcmp_clean=no
2890 else
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 #ifdef __cplusplus
2895 extern "C" void exit(int);
2896 #endif
2898 main()
2900 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2901 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2906 then
2907 ac_cv_func_memcmp_clean=yes
2908 else
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2911 rm -fr conftest*
2912 ac_cv_func_memcmp_clean=no
2914 rm -fr conftest*
2919 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2920 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2922 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2923 echo "configure:2924: checking for vprintf" >&5
2924 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2926 else
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 /* System header to define __stub macros and hopefully few prototypes,
2931 which can conflict with char vprintf(); below. */
2932 #include <assert.h>
2933 /* Override any gcc2 internal prototype to avoid an error. */
2934 #ifdef __cplusplus
2935 extern "C"
2936 #endif
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2939 char vprintf();
2941 int main() {
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2947 choke me
2948 #else
2949 vprintf();
2950 #endif
2952 ; return 0; }
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2955 rm -rf conftest*
2956 eval "ac_cv_func_vprintf=yes"
2957 else
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 rm -rf conftest*
2961 eval "ac_cv_func_vprintf=no"
2963 rm -f conftest*
2966 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_VPRINTF 1
2972 else
2973 echo "$ac_t""no" 1>&6
2976 if test "$ac_cv_func_vprintf" != yes; then
2977 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2978 echo "configure:2979: checking for _doprnt" >&5
2979 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 cat > conftest.$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 /* System header to define __stub macros and hopefully few prototypes,
2986 which can conflict with char _doprnt(); below. */
2987 #include <assert.h>
2988 /* Override any gcc2 internal prototype to avoid an error. */
2989 #ifdef __cplusplus
2990 extern "C"
2991 #endif
2992 /* We use char because int might match the return type of a gcc2
2993 builtin and then its argument prototype would still apply. */
2994 char _doprnt();
2996 int main() {
2998 /* The GNU C library defines this for functions which it implements
2999 to always fail with ENOSYS. Some functions are actually named
3000 something starting with __ and the normal name is an alias. */
3001 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3002 choke me
3003 #else
3004 _doprnt();
3005 #endif
3007 ; return 0; }
3009 if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3010 rm -rf conftest*
3011 eval "ac_cv_func__doprnt=yes"
3012 else
3013 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 rm -rf conftest*
3016 eval "ac_cv_func__doprnt=no"
3018 rm -f conftest*
3021 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3022 echo "$ac_t""yes" 1>&6
3023 cat >> confdefs.h <<\EOF
3024 #define HAVE_DOPRNT 1
3027 else
3028 echo "$ac_t""no" 1>&6
3033 for ac_func in memmem snprintf vsnprintf gettext isinf
3035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3036 echo "configure:3037: checking for $ac_func" >&5
3037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039 else
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 /* System header to define __stub macros and hopefully few prototypes,
3044 which can conflict with char $ac_func(); below. */
3045 #include <assert.h>
3046 /* Override any gcc2 internal prototype to avoid an error. */
3047 #ifdef __cplusplus
3048 extern "C"
3049 #endif
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3052 char $ac_func();
3054 int main() {
3056 /* The GNU C library defines this for functions which it implements
3057 to always fail with ENOSYS. Some functions are actually named
3058 something starting with __ and the normal name is an alias. */
3059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3060 choke me
3061 #else
3062 $ac_func();
3063 #endif
3065 ; return 0; }
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3068 rm -rf conftest*
3069 eval "ac_cv_func_$ac_func=yes"
3070 else
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 rm -rf conftest*
3074 eval "ac_cv_func_$ac_func=no"
3076 rm -f conftest*
3079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3080 echo "$ac_t""yes" 1>&6
3081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3082 cat >> confdefs.h <<EOF
3083 #define $ac_tr_func 1
3086 else
3087 echo "$ac_t""no" 1>&6
3089 done
3092 cat >> confdefs.h <<EOF
3093 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3096 cat >> confdefs.h <<EOF
3097 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3101 for ac_prog in makeinfo
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3106 echo "configure:3107: checking for $ac_word" >&5
3107 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3109 else
3110 if test -n "$MAKEINFO"; then
3111 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3112 else
3113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3114 ac_dummy="$PATH"
3115 for ac_dir in $ac_dummy; do
3116 test -z "$ac_dir" && ac_dir=.
3117 if test -f $ac_dir/$ac_word; then
3118 ac_cv_prog_MAKEINFO="$ac_prog"
3119 break
3121 done
3122 IFS="$ac_save_ifs"
3125 MAKEINFO="$ac_cv_prog_MAKEINFO"
3126 if test -n "$MAKEINFO"; then
3127 echo "$ac_t""$MAKEINFO" 1>&6
3128 else
3129 echo "$ac_t""no" 1>&6
3132 test -n "$MAKEINFO" && break
3133 done
3134 test -n "$MAKEINFO" || MAKEINFO="error"
3136 # Extract the first word of "perl", so it can be a program name with args.
3137 set dummy perl; ac_word=$2
3138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_word" >&5
3140 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143 case "$PERL" in
3145 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3147 ?:/*)
3148 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3152 ac_dummy="$PATH"
3153 for ac_dir in $ac_dummy; do
3154 test -z "$ac_dir" && ac_dir=.
3155 if test -f $ac_dir/$ac_word; then
3156 ac_cv_path_PERL="$ac_dir/$ac_word"
3157 break
3159 done
3160 IFS="$ac_save_ifs"
3161 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3163 esac
3165 PERL="$ac_cv_path_PERL"
3166 if test -n "$PERL"; then
3167 echo "$ac_t""$PERL" 1>&6
3168 else
3169 echo "$ac_t""no" 1>&6
3175 trap '' 1 2 15
3176 cat > confcache <<\EOF
3177 # This file is a shell script that caches the results of configure
3178 # tests run on this system so they can be shared between configure
3179 # scripts and configure runs. It is not useful on other systems.
3180 # If it contains results you don't want to keep, you may remove or edit it.
3182 # By default, configure uses ./config.cache as the cache file,
3183 # creating it if it does not exist already. You can give configure
3184 # the --cache-file=FILE option to use a different cache file; that is
3185 # what configure does when it calls configure scripts in
3186 # subdirectories, so they share the cache.
3187 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3188 # config.status only pays attention to the cache file if you give it the
3189 # --recheck option to rerun configure.
3192 # The following way of writing the cache mishandles newlines in values,
3193 # but we know of no workaround that is simple, portable, and efficient.
3194 # So, don't put newlines in cache variables' values.
3195 # Ultrix sh set writes to stderr and can't be redirected directly,
3196 # and sets the high bit in the cache file unless we assign to the vars.
3197 (set) 2>&1 |
3198 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3199 *ac_space=\ *)
3200 # `set' does not quote correctly, so add quotes (double-quote substitution
3201 # turns \\\\ into \\, and sed turns \\ into \).
3202 sed -n \
3203 -e "s/'/'\\\\''/g" \
3204 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3207 # `set' quotes correctly as required by POSIX, so do not add quotes.
3208 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3210 esac >> confcache
3211 if cmp -s $cache_file confcache; then
3213 else
3214 if test -w $cache_file; then
3215 echo "updating cache $cache_file"
3216 cat confcache > $cache_file
3217 else
3218 echo "not updating unwritable cache $cache_file"
3221 rm -f confcache
3223 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3226 # Let make expand exec_prefix.
3227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3229 # Any assignment to VPATH causes Sun make to only execute
3230 # the first set of double-colon rules, so remove it if not needed.
3231 # If there is a colon in the path, we need to keep it.
3232 if test "x$srcdir" = x.; then
3233 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3236 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3238 DEFS=-DHAVE_CONFIG_H
3240 # Without the "./", some shells look in PATH for config.status.
3241 : ${CONFIG_STATUS=./config.status}
3243 echo creating $CONFIG_STATUS
3244 rm -f $CONFIG_STATUS
3245 cat > $CONFIG_STATUS <<EOF
3246 #! /bin/sh
3247 # Generated automatically by configure.
3248 # Run this file to recreate the current configuration.
3249 # This directory was configured as follows,
3250 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3252 # $0 $ac_configure_args
3254 # Compiler output produced by configure, useful for debugging
3255 # configure, is in ./config.log if it exists.
3257 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3258 for ac_option
3260 case "\$ac_option" in
3261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3262 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3263 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3264 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3265 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3266 exit 0 ;;
3267 -help | --help | --hel | --he | --h)
3268 echo "\$ac_cs_usage"; exit 0 ;;
3269 *) echo "\$ac_cs_usage"; exit 1 ;;
3270 esac
3271 done
3273 ac_given_srcdir=$srcdir
3275 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3277 cat >> $CONFIG_STATUS <<EOF
3279 # Protect against being on the right side of a sed subst in config.status.
3280 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3281 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3282 $ac_vpsub
3283 $extrasub
3284 s%@SHELL@%$SHELL%g
3285 s%@CFLAGS@%$CFLAGS%g
3286 s%@CPPFLAGS@%$CPPFLAGS%g
3287 s%@CXXFLAGS@%$CXXFLAGS%g
3288 s%@FFLAGS@%$FFLAGS%g
3289 s%@DEFS@%$DEFS%g
3290 s%@LDFLAGS@%$LDFLAGS%g
3291 s%@LIBS@%$LIBS%g
3292 s%@exec_prefix@%$exec_prefix%g
3293 s%@prefix@%$prefix%g
3294 s%@program_transform_name@%$program_transform_name%g
3295 s%@bindir@%$bindir%g
3296 s%@sbindir@%$sbindir%g
3297 s%@libexecdir@%$libexecdir%g
3298 s%@datadir@%$datadir%g
3299 s%@sysconfdir@%$sysconfdir%g
3300 s%@sharedstatedir@%$sharedstatedir%g
3301 s%@localstatedir@%$localstatedir%g
3302 s%@libdir@%$libdir%g
3303 s%@includedir@%$includedir%g
3304 s%@oldincludedir@%$oldincludedir%g
3305 s%@infodir@%$infodir%g
3306 s%@mandir@%$mandir%g
3307 s%@builddir@%$builddir%g
3308 s%@stepmake@%$stepmake%g
3309 s%@package@%$package%g
3310 s%@PACKAGE@%$PACKAGE%g
3311 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3312 s%@package_depth@%$package_depth%g
3313 s%@AUTOGENERATE@%$AUTOGENERATE%g
3314 s%@STATE_VECTOR@%$STATE_VECTOR%g
3315 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3316 s%@host@%$host%g
3317 s%@host_alias@%$host_alias%g
3318 s%@host_cpu@%$host_cpu%g
3319 s%@host_vendor@%$host_vendor%g
3320 s%@host_os@%$host_os%g
3321 s%@MAKE@%$MAKE%g
3322 s%@FIND@%$FIND%g
3323 s%@TAR@%$TAR%g
3324 s%@BASH@%$BASH%g
3325 s%@PYTHON@%$PYTHON%g
3326 s%@program_prefix@%$program_prefix%g
3327 s%@program_suffix@%$program_suffix%g
3328 s%@ZIP@%$ZIP%g
3329 s%@LN@%$LN%g
3330 s%@LN_S@%$LN_S%g
3331 s%@INSTALL@%$INSTALL%g
3332 s%@PATHSEP@%$PATHSEP%g
3333 s%@DIRSEP@%$DIRSEP%g
3334 s%@DIR_DATADIR@%$DIR_DATADIR%g
3335 s%@subdirs@%$subdirs%g
3336 s%@CC@%$CC%g
3337 s%@LD@%$LD%g
3338 s%@ICFLAGS@%$ICFLAGS%g
3339 s%@ILDFLAGS@%$ILDFLAGS%g
3340 s%@DEFINES@%$DEFINES%g
3341 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3342 s%@CPP@%$CPP%g
3343 s%@CXX@%$CXX%g
3344 s%@CXXCPP@%$CXXCPP%g
3345 s%@YACC@%$YACC%g
3346 s%@BISON@%$BISON%g
3347 s%@FLEX@%$FLEX%g
3348 s%@AR@%$AR%g
3349 s%@RANLIB@%$RANLIB%g
3350 s%@localedir@%$localedir%g
3351 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3352 s%@MSGFMT@%$MSGFMT%g
3353 s%@METAFONT@%$METAFONT%g
3354 s%@MFONT@%$MFONT%g
3355 s%@METAPOST@%$METAPOST%g
3356 s%@MPOST@%$MPOST%g
3357 s%@INIMETAFONT@%$INIMETAFONT%g
3358 s%@INIMFONT@%$INIMFONT%g
3359 s%@INIMETAPOST@%$INIMETAPOST%g
3360 s%@INIMPOST@%$INIMPOST%g
3361 s%@MFMODE@%$MFMODE%g
3362 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3363 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3364 s%@KPSEWHICH@%$KPSEWHICH%g
3365 s%@TFM_PATH@%$TFM_PATH%g
3366 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3367 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3368 s%@GUILE@%$GUILE%g
3369 s%@LIBOBJS@%$LIBOBJS%g
3370 s%@MAKEINFO@%$MAKEINFO%g
3371 s%@PERL@%$PERL%g
3373 CEOF
3376 cat >> $CONFIG_STATUS <<\EOF
3378 # Split the substitutions into bite-sized pieces for seds with
3379 # small command number limits, like on Digital OSF/1 and HP-UX.
3380 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3381 ac_file=1 # Number of current file.
3382 ac_beg=1 # First line for current file.
3383 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3384 ac_more_lines=:
3385 ac_sed_cmds=""
3386 while $ac_more_lines; do
3387 if test $ac_beg -gt 1; then
3388 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3389 else
3390 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3392 if test ! -s conftest.s$ac_file; then
3393 ac_more_lines=false
3394 rm -f conftest.s$ac_file
3395 else
3396 if test -z "$ac_sed_cmds"; then
3397 ac_sed_cmds="sed -f conftest.s$ac_file"
3398 else
3399 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3401 ac_file=`expr $ac_file + 1`
3402 ac_beg=$ac_end
3403 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3405 done
3406 if test -z "$ac_sed_cmds"; then
3407 ac_sed_cmds=cat
3411 cat >> $CONFIG_STATUS <<EOF
3413 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3415 cat >> $CONFIG_STATUS <<\EOF
3416 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3417 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3418 case "$ac_file" in
3419 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3420 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3421 *) ac_file_in="${ac_file}.in" ;;
3422 esac
3424 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3426 # Remove last slash and all that follows it. Not all systems have dirname.
3427 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3428 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3429 # The file is in a subdirectory.
3430 test ! -d "$ac_dir" && mkdir "$ac_dir"
3431 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3432 # A "../" for each directory in $ac_dir_suffix.
3433 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3434 else
3435 ac_dir_suffix= ac_dots=
3438 case "$ac_given_srcdir" in
3439 .) srcdir=.
3440 if test -z "$ac_dots"; then top_srcdir=.
3441 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3442 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3443 *) # Relative path.
3444 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3445 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3446 esac
3449 echo creating "$ac_file"
3450 rm -f "$ac_file"
3451 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3452 case "$ac_file" in
3453 *Makefile*) ac_comsub="1i\\
3454 # $configure_input" ;;
3455 *) ac_comsub= ;;
3456 esac
3458 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3459 sed -e "$ac_comsub
3460 s%@configure_input@%$configure_input%g
3461 s%@srcdir@%$srcdir%g
3462 s%@top_srcdir@%$top_srcdir%g
3463 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3464 fi; done
3465 rm -f conftest.s*
3467 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3468 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3470 # ac_d sets the value in "#define NAME VALUE" lines.
3471 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3472 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3473 ac_dC='\3'
3474 ac_dD='%g'
3475 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3476 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3477 ac_uB='\([ ]\)%\1#\2define\3'
3478 ac_uC=' '
3479 ac_uD='\4%g'
3480 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3481 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3482 ac_eB='$%\1#\2define\3'
3483 ac_eC=' '
3484 ac_eD='%g'
3486 if test "${CONFIG_HEADERS+set}" != set; then
3488 cat >> $CONFIG_STATUS <<EOF
3489 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3491 cat >> $CONFIG_STATUS <<\EOF
3493 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3494 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3495 case "$ac_file" in
3496 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3497 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3498 *) ac_file_in="${ac_file}.in" ;;
3499 esac
3501 echo creating $ac_file
3503 rm -f conftest.frag conftest.in conftest.out
3504 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3505 cat $ac_file_inputs > conftest.in
3509 # Transform confdefs.h into a sed script conftest.vals that substitutes
3510 # the proper values into config.h.in to produce config.h. And first:
3511 # Protect against being on the right side of a sed subst in config.status.
3512 # Protect against being in an unquoted here document in config.status.
3513 rm -f conftest.vals
3514 cat > conftest.hdr <<\EOF
3515 s/[\\&%]/\\&/g
3516 s%[\\$`]%\\&%g
3517 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3518 s%ac_d%ac_u%gp
3519 s%ac_u%ac_e%gp
3521 sed -n -f conftest.hdr confdefs.h > conftest.vals
3522 rm -f conftest.hdr
3524 # This sed command replaces #undef with comments. This is necessary, for
3525 # example, in the case of _POSIX_SOURCE, which is predefined and required
3526 # on some systems where configure will not decide to define it.
3527 cat >> conftest.vals <<\EOF
3528 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3531 # Break up conftest.vals because some shells have a limit on
3532 # the size of here documents, and old seds have small limits too.
3534 rm -f conftest.tail
3535 while :
3537 ac_lines=`grep -c . conftest.vals`
3538 # grep -c gives empty output for an empty file on some AIX systems.
3539 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3540 # Write a limited-size here document to conftest.frag.
3541 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3542 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3543 echo 'CEOF
3544 sed -f conftest.frag conftest.in > conftest.out
3545 rm -f conftest.in
3546 mv conftest.out conftest.in
3547 ' >> $CONFIG_STATUS
3548 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3549 rm -f conftest.vals
3550 mv conftest.tail conftest.vals
3551 done
3552 rm -f conftest.vals
3554 cat >> $CONFIG_STATUS <<\EOF
3555 rm -f conftest.frag conftest.h
3556 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3557 cat conftest.in >> conftest.h
3558 rm -f conftest.in
3559 if cmp -s $ac_file conftest.h 2>/dev/null; then
3560 echo "$ac_file is unchanged"
3561 rm -f conftest.h
3562 else
3563 # Remove last slash and all that follows it. Not all systems have dirname.
3564 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3565 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3566 # The file is in a subdirectory.
3567 test ! -d "$ac_dir" && mkdir "$ac_dir"
3569 rm -f $ac_file
3570 mv conftest.h $ac_file
3572 fi; done
3575 cat >> $CONFIG_STATUS <<EOF
3578 cat >> $CONFIG_STATUS <<\EOF
3580 exit 0
3582 chmod +x $CONFIG_STATUS
3583 rm -fr confdefs* $ac_clean_files
3584 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3586 if test "$no_recursion" != yes; then
3588 # Remove --cache-file and --srcdir arguments so they do not pile up.
3589 ac_sub_configure_args=
3590 ac_prev=
3591 for ac_arg in $ac_configure_args; do
3592 if test -n "$ac_prev"; then
3593 ac_prev=
3594 continue
3596 case "$ac_arg" in
3597 -cache-file | --cache-file | --cache-fil | --cache-fi \
3598 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3599 ac_prev=cache_file ;;
3600 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3601 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3603 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3604 ac_prev=srcdir ;;
3605 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3607 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3608 esac
3609 done
3611 for ac_config_dir in stepmake; do
3613 # Do not complain, so a configure script can configure whichever
3614 # parts of a large source tree are present.
3615 if test ! -d $srcdir/$ac_config_dir; then
3616 continue
3619 echo configuring in $ac_config_dir
3621 case "$srcdir" in
3622 .) ;;
3624 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3625 else
3626 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3629 esac
3631 ac_popdir=`pwd`
3632 cd $ac_config_dir
3634 # A "../" for each directory in /$ac_config_dir.
3635 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3637 case "$srcdir" in
3638 .) # No --srcdir option. We are building in place.
3639 ac_sub_srcdir=$srcdir ;;
3640 /*) # Absolute path.
3641 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3642 *) # Relative path.
3643 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3644 esac
3646 # Check for guested configure; otherwise get Cygnus style configure.
3647 if test -f $ac_sub_srcdir/configure; then
3648 ac_sub_configure=$ac_sub_srcdir/configure
3649 elif test -f $ac_sub_srcdir/configure.in; then
3650 ac_sub_configure=$ac_configure
3651 else
3652 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3653 ac_sub_configure=
3656 # The recursion is here.
3657 if test -n "$ac_sub_configure"; then
3659 # Make the cache file name correct relative to the subdirectory.
3660 case "$cache_file" in
3661 /*) ac_sub_cache_file=$cache_file ;;
3662 *) # Relative path.
3663 ac_sub_cache_file="$ac_dots$cache_file" ;;
3664 esac
3666 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3667 # The eval makes quoting arguments work.
3668 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3669 then :
3670 else
3671 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3675 cd $ac_popdir
3676 done
3680 rm -f $srcdir/GNUmakefile
3681 cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3682 chmod 444 $srcdir/GNUmakefile
3683 if test "$builddir" != "."; then
3684 rm -f GNUmakefile
3685 cp $srcdir/make/srcdir.make.in GNUmakefile
3686 chmod 444 GNUmakefile
3690 # ugh, hack.