lilypond-1.1.31
[lilypond.git] / configure
blobe1b187d738a279f0b528c6e1bd28d5d54bf7303c
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)
60 # Guess values for system-dependent variables and create Makefiles.
61 # Generated automatically using autoconf version 2.12
62 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
64 # This configure script is free software; the Free Software Foundation
65 # gives unlimited permission to copy, distribute and modify it.
67 # Defaults:
68 ac_help=
69 ac_default_prefix=/usr/local
70 # Any additions from configure.in:
71 ac_help="$ac_help
72 enable-config=FILE put configure settings in config-FILE.make"
73 ac_help="$ac_help
74 enable-checking set runtime checks (assert calls). Default: on"
75 ac_help="$ac_help
76 enable-optimise use maximal speed optimisations. Default: off"
77 ac_help="$ac_help
78 enable-profiling compile with gprof support. Default: off"
79 ac_help="$ac_help
80 enable-debugging set debug info. Default: on"
81 ac_help="$ac_help
82 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
83 ac_help="$ac_help
84 enable-printing turn on debug printing. Default: off"
85 ac_help="$ac_help
86 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
87 ac_help="$ac_help
88 with-lang=LANG use LANG as language to emit messages"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
93 build=NONE
94 cache_file=./config.cache
95 exec_prefix=NONE
96 host=NONE
97 no_create=
98 nonopt=NONE
99 no_recursion=
100 prefix=NONE
101 program_prefix=NONE
102 program_suffix=NONE
103 program_transform_name=s,x,x,
104 silent=
105 site=
106 srcdir=
107 target=NONE
108 verbose=
109 x_includes=NONE
110 x_libraries=NONE
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
125 subdirs=
126 MFLAGS= MAKEFLAGS=
127 # Maximum number of lines to put in a shell here document.
128 ac_max_here_lines=12
130 ac_prev=
131 for ac_option
134 # If the previous option needs an argument, assign it.
135 if test -n "$ac_prev"; then
136 eval "$ac_prev=\$ac_option"
137 ac_prev=
138 continue
141 case "$ac_option" in
142 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143 *) ac_optarg= ;;
144 esac
146 # Accept the important Cygnus configure options, so we can diagnose typos.
148 case "$ac_option" in
150 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 ac_prev=bindir ;;
152 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
153 bindir="$ac_optarg" ;;
155 -build | --build | --buil | --bui | --bu)
156 ac_prev=build ;;
157 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
158 build="$ac_optarg" ;;
160 -cache-file | --cache-file | --cache-fil | --cache-fi \
161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
162 ac_prev=cache_file ;;
163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
165 cache_file="$ac_optarg" ;;
167 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 ac_prev=datadir ;;
169 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 | --da=*)
171 datadir="$ac_optarg" ;;
173 -disable-* | --disable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}=no" ;;
182 -enable-* | --enable-*)
183 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 case "$ac_option" in
190 *=*) ;;
191 *) ac_optarg=yes ;;
192 esac
193 eval "enable_${ac_feature}='$ac_optarg'" ;;
195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
197 | --exec | --exe | --ex)
198 ac_prev=exec_prefix ;;
199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
201 | --exec=* | --exe=* | --ex=*)
202 exec_prefix="$ac_optarg" ;;
204 -gas | --gas | --ga | --g)
205 # Obsolete; use --with-gas.
206 with_gas=yes ;;
208 -help | --help | --hel | --he)
209 # Omit some internal or obsolete options to make the list less imposing.
210 # This message is too long to be a string in the A/UX 3.1 sh.
211 cat << EOF
212 Usage: configure [options] [host]
213 Options: [defaults in brackets after descriptions]
214 Configuration:
215 --cache-file=FILE cache test results in FILE
216 --help print this message
217 --no-create do not create output files
218 --quiet, --silent do not print \`checking...' messages
219 --version print the version of autoconf that created configure
220 Directory and file names:
221 --prefix=PREFIX install architecture-independent files in PREFIX
222 [$ac_default_prefix]
223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 [same as prefix]
225 --bindir=DIR user executables in DIR [EPREFIX/bin]
226 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
227 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
228 --datadir=DIR read-only architecture-independent data in DIR
229 [PREFIX/share]
230 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
231 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 [PREFIX/com]
233 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
234 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
235 --includedir=DIR C header files in DIR [PREFIX/include]
236 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
237 --infodir=DIR info documentation in DIR [PREFIX/info]
238 --mandir=DIR man documentation in DIR [PREFIX/man]
239 --srcdir=DIR find the sources in DIR [configure dir or ..]
240 --program-prefix=PREFIX prepend PREFIX to installed program names
241 --program-suffix=SUFFIX append SUFFIX to installed program names
242 --program-transform-name=PROGRAM
243 run sed PROGRAM on installed program names
245 cat << EOF
246 Host type:
247 --build=BUILD configure for building on BUILD [BUILD=HOST]
248 --host=HOST configure for HOST [guessed]
249 --target=TARGET configure for TARGET [TARGET=HOST]
250 Features and packages:
251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
253 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
254 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
255 --x-includes=DIR X include files are in DIR
256 --x-libraries=DIR X library files are in DIR
258 if test -n "$ac_help"; then
259 echo "--enable and --with options recognized:$ac_help"
261 exit 0 ;;
263 -host | --host | --hos | --ho)
264 ac_prev=host ;;
265 -host=* | --host=* | --hos=* | --ho=*)
266 host="$ac_optarg" ;;
268 -includedir | --includedir | --includedi | --included | --include \
269 | --includ | --inclu | --incl | --inc)
270 ac_prev=includedir ;;
271 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
272 | --includ=* | --inclu=* | --incl=* | --inc=*)
273 includedir="$ac_optarg" ;;
275 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 ac_prev=infodir ;;
277 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
278 infodir="$ac_optarg" ;;
280 -libdir | --libdir | --libdi | --libd)
281 ac_prev=libdir ;;
282 -libdir=* | --libdir=* | --libdi=* | --libd=*)
283 libdir="$ac_optarg" ;;
285 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
286 | --libexe | --libex | --libe)
287 ac_prev=libexecdir ;;
288 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
289 | --libexe=* | --libex=* | --libe=*)
290 libexecdir="$ac_optarg" ;;
292 -localstatedir | --localstatedir | --localstatedi | --localstated \
293 | --localstate | --localstat | --localsta | --localst \
294 | --locals | --local | --loca | --loc | --lo)
295 ac_prev=localstatedir ;;
296 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
297 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
298 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
299 localstatedir="$ac_optarg" ;;
301 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 ac_prev=mandir ;;
303 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
304 mandir="$ac_optarg" ;;
306 -nfp | --nfp | --nf)
307 # Obsolete; use --without-fp.
308 with_fp=no ;;
310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311 | --no-cr | --no-c)
312 no_create=yes ;;
314 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
315 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316 no_recursion=yes ;;
318 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
319 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
320 | --oldin | --oldi | --old | --ol | --o)
321 ac_prev=oldincludedir ;;
322 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
323 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
324 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
325 oldincludedir="$ac_optarg" ;;
327 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 ac_prev=prefix ;;
329 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
330 prefix="$ac_optarg" ;;
332 -program-prefix | --program-prefix | --program-prefi | --program-pref \
333 | --program-pre | --program-pr | --program-p)
334 ac_prev=program_prefix ;;
335 -program-prefix=* | --program-prefix=* | --program-prefi=* \
336 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
337 program_prefix="$ac_optarg" ;;
339 -program-suffix | --program-suffix | --program-suffi | --program-suff \
340 | --program-suf | --program-su | --program-s)
341 ac_prev=program_suffix ;;
342 -program-suffix=* | --program-suffix=* | --program-suffi=* \
343 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
344 program_suffix="$ac_optarg" ;;
346 -program-transform-name | --program-transform-name \
347 | --program-transform-nam | --program-transform-na \
348 | --program-transform-n | --program-transform- \
349 | --program-transform | --program-transfor \
350 | --program-transfo | --program-transf \
351 | --program-trans | --program-tran \
352 | --progr-tra | --program-tr | --program-t)
353 ac_prev=program_transform_name ;;
354 -program-transform-name=* | --program-transform-name=* \
355 | --program-transform-nam=* | --program-transform-na=* \
356 | --program-transform-n=* | --program-transform-=* \
357 | --program-transform=* | --program-transfor=* \
358 | --program-transfo=* | --program-transf=* \
359 | --program-trans=* | --program-tran=* \
360 | --progr-tra=* | --program-tr=* | --program-t=*)
361 program_transform_name="$ac_optarg" ;;
363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
364 | -silent | --silent | --silen | --sile | --sil)
365 silent=yes ;;
367 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 ac_prev=sbindir ;;
369 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 | --sbi=* | --sb=*)
371 sbindir="$ac_optarg" ;;
373 -sharedstatedir | --sharedstatedir | --sharedstatedi \
374 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
375 | --sharedst | --shareds | --shared | --share | --shar \
376 | --sha | --sh)
377 ac_prev=sharedstatedir ;;
378 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
379 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
380 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 | --sha=* | --sh=*)
382 sharedstatedir="$ac_optarg" ;;
384 -site | --site | --sit)
385 ac_prev=site ;;
386 -site=* | --site=* | --sit=*)
387 site="$ac_optarg" ;;
389 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 ac_prev=srcdir ;;
391 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
392 srcdir="$ac_optarg" ;;
394 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
395 | --syscon | --sysco | --sysc | --sys | --sy)
396 ac_prev=sysconfdir ;;
397 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
398 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
399 sysconfdir="$ac_optarg" ;;
401 -target | --target | --targe | --targ | --tar | --ta | --t)
402 ac_prev=target ;;
403 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
404 target="$ac_optarg" ;;
406 -v | -verbose | --verbose | --verbos | --verbo | --verb)
407 verbose=yes ;;
409 -version | --version | --versio | --versi | --vers)
410 echo "configure generated by autoconf version 2.12"
411 exit 0 ;;
413 -with-* | --with-*)
414 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 case "$ac_option" in
421 *=*) ;;
422 *) ac_optarg=yes ;;
423 esac
424 eval "with_${ac_package}='$ac_optarg'" ;;
426 -without-* | --without-*)
427 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}=no" ;;
435 --x)
436 # Obsolete; use --with-x.
437 with_x=yes ;;
439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440 | --x-incl | --x-inc | --x-in | --x-i)
441 ac_prev=x_includes ;;
442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444 x_includes="$ac_optarg" ;;
446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448 ac_prev=x_libraries ;;
449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451 x_libraries="$ac_optarg" ;;
453 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458 echo "configure: warning: $ac_option: invalid host type" 1>&2
460 if test "x$nonopt" != xNONE; then
461 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 nonopt="$ac_option"
466 esac
467 done
469 if test -n "$ac_prev"; then
470 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
475 # File descriptor usage:
476 # 0 standard input
477 # 1 file creation
478 # 2 errors and warnings
479 # 3 some systems may open it to /dev/tty
480 # 4 used on the Kubota Titan
481 # 6 checking for... messages and results
482 # 5 compiler messages saved in config.log
483 if test "$silent" = yes; then
484 exec 6>/dev/null
485 else
486 exec 6>&1
488 exec 5>./config.log
490 echo "\
491 This file contains any messages produced by compilers while
492 running configure, to aid debugging if configure makes a mistake.
493 " 1>&5
495 # Strip out --no-create and --no-recursion so they do not pile up.
496 # Also quote any args containing shell metacharacters.
497 ac_configure_args=
498 for ac_arg
500 case "$ac_arg" in
501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
502 | --no-cr | --no-c) ;;
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
505 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
507 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
508 esac
509 done
511 # NLS nuisances.
512 # Only set these to C if already set. These must not be set unconditionally
513 # because not all systems understand e.g. LANG=C (notably SCO).
514 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515 # Non-C LC_CTYPE values break the ctype check.
516 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
517 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
518 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
519 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
522 rm -rf conftest* confdefs.h
523 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 echo > confdefs.h
526 # A filename unique to this package, relative to the directory that
527 # configure is in, which we can look for to find out if srcdir is correct.
528 ac_unique_file=make/lilypond.lsm.in
530 # Find the source files, if location was not specified.
531 if test -z "$srcdir"; then
532 ac_srcdir_defaulted=yes
533 # Try the directory containing this script, then its parent.
534 ac_prog=$0
535 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 srcdir=$ac_confdir
538 if test ! -r $srcdir/$ac_unique_file; then
539 srcdir=..
541 else
542 ac_srcdir_defaulted=no
544 if test ! -r $srcdir/$ac_unique_file; then
545 if test "$ac_srcdir_defaulted" = yes; then
546 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 else
548 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
551 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
553 # Prefer explicitly selected file to automatically selected ones.
554 if test -z "$CONFIG_SITE"; then
555 if test "x$prefix" != xNONE; then
556 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 else
558 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
561 for ac_site_file in $CONFIG_SITE; do
562 if test -r "$ac_site_file"; then
563 echo "loading site script $ac_site_file"
564 . "$ac_site_file"
566 done
568 if test -r "$cache_file"; then
569 echo "loading cache $cache_file"
570 . $cache_file
571 else
572 echo "creating cache $cache_file"
573 > $cache_file
576 ac_ext=c
577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
578 ac_cpp='$CPP $CPPFLAGS'
579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
580 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
581 cross_compiling=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='
587 ' ac_t=' '
588 else
589 ac_n=-n ac_c= ac_t=
591 else
592 ac_n= ac_c='\c' ac_t=
598 # Bootstrap StepMake configure
601 . $srcdir/VERSION
602 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
603 if test x$MY_PATCH_LEVEL != x; then
604 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
607 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
608 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
609 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
611 # No versioning on directory names of sub-packages
612 # urg, urg
613 stepmake=${datadir}/stepmake
614 presome=${prefix}
615 if test "$prefix" = "NONE"; then
616 presome=${ac_default_prefix}
618 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
620 if test "x$PACKAGE" = "xSTEPMAKE"; then
621 echo Stepmake package!
622 (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
623 (cd stepmake; rm -f bin; ln -s ../bin .)
624 ac_aux_dir=
625 for ac_dir in bin $srcdir/bin; do
626 if test -f $ac_dir/install-sh; then
627 ac_aux_dir=$ac_dir
628 ac_install_sh="$ac_aux_dir/install-sh -c"
629 break
630 elif test -f $ac_dir/install.sh; then
631 ac_aux_dir=$ac_dir
632 ac_install_sh="$ac_aux_dir/install.sh -c"
633 break
635 done
636 if test -z "$ac_aux_dir"; then
637 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
639 ac_config_guess=$ac_aux_dir/config.guess
640 ac_config_sub=$ac_aux_dir/config.sub
641 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
643 stepmake=stepmake
644 else
645 echo Package: $PACKAGE
646 # Check for installed stepmake
647 if test -d $stepmake; then
648 echo Using installed stepmake: $stepmake
649 else
650 stepmake='$(depth)'/stepmake
651 echo Using local stepmake: $datadir/stepmake not found
653 ac_aux_dir=
654 for ac_dir in \
655 $HOME/usr/local/share/stepmake/bin\
656 $HOME/usr/local/lib/stepmake/bin\
657 $HOME/usr/share/stepmake/bin\
658 $HOME/usr/lib/stepmake/bin\
659 /usr/local/share/stepmake/bin\
660 /usr/local/lib/stepmake/bin\
661 /usr/share/stepmake/bin\
662 /usr/lib/stepmake/bin\
663 stepmake/bin\
664 $srcdir/\
665 $HOME/usr/local/share/stepmake/bin\
666 $HOME/usr/local/lib/stepmake/bin\
667 $HOME/usr/share/stepmake/bin\
668 $HOME/usr/lib/stepmake/bin\
669 /usr/local/share/stepmake/bin\
670 /usr/local/lib/stepmake/bin\
671 /usr/share/stepmake/bin\
672 /usr/lib/stepmake/bin\
673 stepmake/bin\
674 ; do
675 if test -f $ac_dir/install-sh; then
676 ac_aux_dir=$ac_dir
677 ac_install_sh="$ac_aux_dir/install-sh -c"
678 break
679 elif test -f $ac_dir/install.sh; then
680 ac_aux_dir=$ac_dir
681 ac_install_sh="$ac_aux_dir/install.sh -c"
682 break
684 done
685 if test -z "$ac_aux_dir"; then
686 { echo "configure: error: can not find install-sh or install.sh in \
687 $HOME/usr/local/share/stepmake/bin\
688 $HOME/usr/local/lib/stepmake/bin\
689 $HOME/usr/share/stepmake/bin\
690 $HOME/usr/lib/stepmake/bin\
691 /usr/local/share/stepmake/bin\
692 /usr/local/lib/stepmake/bin\
693 /usr/share/stepmake/bin\
694 /usr/lib/stepmake/bin\
695 stepmake/bin\
696 $srcdir/\
697 $HOME/usr/local/share/stepmake/bin\
698 $HOME/usr/local/lib/stepmake/bin\
699 $HOME/usr/share/stepmake/bin\
700 $HOME/usr/lib/stepmake/bin\
701 /usr/local/share/stepmake/bin\
702 /usr/local/lib/stepmake/bin\
703 /usr/share/stepmake/bin\
704 /usr/lib/stepmake/bin\
705 stepmake/bin\
706 " 1>&2; exit 1; }
708 ac_config_guess=$ac_aux_dir/config.guess
709 ac_config_sub=$ac_aux_dir/config.sub
710 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
718 cat >> confdefs.h <<EOF
719 #define PACKAGE "${PACKAGE_NAME}"
722 cat >> confdefs.h <<EOF
723 #define TOPLEVEL_VERSION "${FULL_VERSION}"
727 if test "$package_depth" = "" ; then
728 package_depth="."
729 else
730 package_depth="../$package_depth"
732 export package_depth
735 AUTOGENERATE="This file was automatically generated by configure"
737 absolute_builddir="`pwd`"
740 STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
741 if test "x$STATE_VECTOR" != "x"; then
742 STATE_VECTOR="\$(depth)/$STATE_VECTOR"
746 CONFIGSUFFIX=
747 # Check whether --enable-config or --disable-config was given.
748 if test "${enable_config+set}" = set; then
749 enableval="$enable_config"
750 CONFIGSUFFIX=$enableval
754 if test "$CONFIGSUFFIX" != "" ; then
755 CONFIGFILE=config-$CONFIGSUFFIX
756 else
757 CONFIGFILE=config
762 # Make sure we can run config.sub.
763 if $ac_config_sub sun4 >/dev/null 2>&1; then :
764 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
767 echo $ac_n "checking host system type""... $ac_c" 1>&6
768 echo "configure:769: checking host system type" >&5
770 host_alias=$host
771 case "$host_alias" in
772 NONE)
773 case $nonopt in
774 NONE)
775 if host_alias=`$ac_config_guess`; then :
776 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
777 fi ;;
778 *) host_alias=$nonopt ;;
779 esac ;;
780 esac
782 host=`$ac_config_sub $host_alias`
783 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
784 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
785 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
786 echo "$ac_t""$host" 1>&6
788 for ac_prog in gmake make
790 # Extract the first word of "$ac_prog", so it can be a program name with args.
791 set dummy $ac_prog; ac_word=$2
792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
793 echo "configure:794: checking for $ac_word" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
796 else
797 if test -n "$MAKE"; then
798 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
799 else
800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
801 for ac_dir in $PATH; do
802 test -z "$ac_dir" && ac_dir=.
803 if test -f $ac_dir/$ac_word; then
804 ac_cv_prog_MAKE="$ac_prog"
805 break
807 done
808 IFS="$ac_save_ifs"
811 MAKE="$ac_cv_prog_MAKE"
812 if test -n "$MAKE"; then
813 echo "$ac_t""$MAKE" 1>&6
814 else
815 echo "$ac_t""no" 1>&6
818 test -n "$MAKE" && break
819 done
820 test -n "$MAKE" || MAKE="error"
822 for ac_prog in find
824 # Extract the first word of "$ac_prog", so it can be a program name with args.
825 set dummy $ac_prog; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
830 else
831 if test -n "$FIND"; then
832 ac_cv_prog_FIND="$FIND" # Let the user override the test.
833 else
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
835 for ac_dir in $PATH; do
836 test -z "$ac_dir" && ac_dir=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_FIND="$ac_prog"
839 break
841 done
842 IFS="$ac_save_ifs"
845 FIND="$ac_cv_prog_FIND"
846 if test -n "$FIND"; then
847 echo "$ac_t""$FIND" 1>&6
848 else
849 echo "$ac_t""no" 1>&6
852 test -n "$FIND" && break
853 done
854 test -n "$FIND" || FIND="error"
858 for ac_prog in tar
860 # Extract the first word of "$ac_prog", so it can be a program name with args.
861 set dummy $ac_prog; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
866 else
867 if test -n "$TAR"; then
868 ac_cv_prog_TAR="$TAR" # Let the user override the test.
869 else
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
871 for ac_dir in $PATH; do
872 test -z "$ac_dir" && ac_dir=.
873 if test -f $ac_dir/$ac_word; then
874 ac_cv_prog_TAR="$ac_prog"
875 break
877 done
878 IFS="$ac_save_ifs"
881 TAR="$ac_cv_prog_TAR"
882 if test -n "$TAR"; then
883 echo "$ac_t""$TAR" 1>&6
884 else
885 echo "$ac_t""no" 1>&6
888 test -n "$TAR" && break
889 done
890 test -n "$TAR" || TAR="error"
892 for ac_prog in bash
894 # Extract the first word of "$ac_prog", so it can be a program name with args.
895 set dummy $ac_prog; ac_word=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
900 else
901 if test -n "$BASH"; then
902 ac_cv_prog_BASH="$BASH" # Let the user override the test.
903 else
904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
905 for ac_dir in $PATH; do
906 test -z "$ac_dir" && ac_dir=.
907 if test -f $ac_dir/$ac_word; then
908 ac_cv_prog_BASH="$ac_prog"
909 break
911 done
912 IFS="$ac_save_ifs"
915 BASH="$ac_cv_prog_BASH"
916 if test -n "$BASH"; then
917 echo "$ac_t""$BASH" 1>&6
918 else
919 echo "$ac_t""no" 1>&6
922 test -n "$BASH" && break
923 done
924 test -n "$BASH" || BASH="/bin/sh"
927 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
928 set dummy ${PYTHON:-python}; ac_word=$2
929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
930 echo "configure:931: checking for $ac_word" >&5
931 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
933 else
934 case "$PYTHON" in
936 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
940 for ac_dir in $PATH; do
941 test -z "$ac_dir" && ac_dir=.
942 if test -f $ac_dir/$ac_word; then
943 ac_cv_path_PYTHON="$ac_dir/$ac_word"
944 break
946 done
947 IFS="$ac_save_ifs"
948 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
950 esac
952 PYTHON="$ac_cv_path_PYTHON"
953 if test -n "$PYTHON"; then
954 echo "$ac_t""$PYTHON" 1>&6
955 else
956 echo "$ac_t""no" 1>&6
961 if test $MAKE != "error" ; then
962 $MAKE -v 2> /dev/null | grep GNU > /dev/null
963 if test "$?" = 1
964 then
966 echo "configure: warning: Please install *GNU* make" 1>&2
967 warn_b=yes
973 result="`echo \"$PYTHON\" | grep echo`"
974 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
976 echo "configure: warning: can\'t find python. You should install Python" 1>&2
977 warn_b=yes
982 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
983 LN=cp # hard link does not work under cygnus-nt
984 LN_S=cp # symbolic link does not work for native nt
985 ZIP="zip -r -9" #
986 DOTEXE=.exe
987 # urg
988 # DIRSEP='\\'
989 # PATHSEP=';'
991 # cygwin fixes all these things.
992 # it seems these were used because of dos-style TEXINPUTS and
993 # MFINPUTS needed for miktex.
994 # but this breaks parsing of all other cygwin/unix style paths.
996 # if your (mik)tex breaks, make a:
997 # /usr/local/bin/tex:
998 # #!/bin/sh
999 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1001 # and
1003 # /usr/local/bin/mf:
1004 # #!/bin/sh
1005 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1007 # this way, you may have buildscripts/out/lilypond-profile
1008 # 'automatically' sourced from /usr/etc/profile.d/ too.
1010 DIRSEP='/'
1011 PATHSEP=':'
1012 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1013 else
1014 DIRSEP='/'
1015 PATHSEP=':'
1016 LN=ln
1017 LN_S='ln -s'
1018 ZIP="zip -r -9"
1019 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1026 cat >> confdefs.h <<EOF
1027 #define DIRSEP '${DIRSEP}'
1030 cat >> confdefs.h <<EOF
1031 #define PATHSEP '${PATHSEP}'
1039 if test "$datadir" = "\${prefix}/share"; then
1040 datadir='${prefix}/share/'$package
1042 DIR_DATADIR=${datadir}
1043 presome=${prefix}
1044 if test "$prefix" = "NONE"; then
1045 presome=${ac_default_prefix}
1047 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1050 cat >> confdefs.h <<EOF
1051 #define DIR_DATADIR "${DIR_DATADIR}"
1057 # For all packages except the StepMake package itself
1058 subdirs="stepmake"
1061 # Uncomment the configuration options your package needs.
1063 # -O is necessary to get inlining
1064 OPTIMIZE=""
1065 CXXFLAGS=${CXXFLAGS:-""}
1066 CFLAGS=${CFLAGS:-""}
1067 checking_b=yes
1068 optimise_b=no
1069 profile_b=no
1070 debug_b=yes
1072 # Check whether --enable-checking or --disable-checking was given.
1073 if test "${enable_checking+set}" = set; then
1074 enableval="$enable_checking"
1075 checking_b=$enableval
1079 # actually, the default is: tja='-O' to get inlining...
1080 # off='' --jcn
1082 #actually, that sucks.
1083 # tja looks like a typo. Default is optimisation off. --hwn
1085 # Check whether --enable-optimise or --disable-optimise was given.
1086 if test "${enable_optimise+set}" = set; then
1087 enableval="$enable_optimise"
1088 optimise_b=$enableval
1092 # Check whether --enable-profiling or --disable-profiling was given.
1093 if test "${enable_profiling+set}" = set; then
1094 enableval="$enable_profiling"
1095 profile_b=$enableval
1099 # Check whether --enable-debugging or --disable-debugging was given.
1100 if test "${enable_debugging+set}" = set; then
1101 enableval="$enable_debugging"
1102 debug_b=$enableval
1106 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1107 if test "${enable_mingw_prefix+set}" = set; then
1108 enableval="$enable_mingw_prefix"
1109 MINGWPREFIX=$enableval
1110 else
1111 MINGWPREFIX=no
1115 if test "$printing_b" = no; then
1116 # ugh
1117 cat >> confdefs.h <<\EOF
1118 #define NPRINT 1
1121 DEFINES="$DEFINES -DNPRINT"
1124 if test "$checking_b" = no; then
1125 # ugh
1126 cat >> confdefs.h <<\EOF
1127 #define NDEBUG 1
1130 DEFINES="$DEFINES -DNDEBUG"
1133 if test "$optimise_b" = yes; then
1134 OPTIMIZE="-O2 -finline-functions"
1137 if test "$optimise_b" = no; then
1138 OPTIMIZE=""
1141 if test $profile_b = yes; then
1142 EXTRA_LIBES="-pg"
1143 OPTIMIZE="$OPTIMIZE -pg"
1146 if test $debug_b = yes; then
1147 OPTIMIZE="$OPTIMIZE -g"
1150 # however, C++ support in mingw32 v 0.1.4 is still flaky
1151 if test x$MINGWPREFIX != xno; then
1152 ICFLAGS="-I$MINGWPREFIX/include"
1153 ILDFLAGS="-$MINGWPREFIX/lib"
1156 # Extract the first word of "gcc", so it can be a program name with args.
1157 set dummy gcc; ac_word=$2
1158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159 echo "configure:1160: checking for $ac_word" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1162 else
1163 if test -n "$CC"; then
1164 ac_cv_prog_CC="$CC" # Let the user override the test.
1165 else
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1167 for ac_dir in $PATH; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_CC="gcc"
1171 break
1173 done
1174 IFS="$ac_save_ifs"
1177 CC="$ac_cv_prog_CC"
1178 if test -n "$CC"; then
1179 echo "$ac_t""$CC" 1>&6
1180 else
1181 echo "$ac_t""no" 1>&6
1184 if test -z "$CC"; then
1185 # Extract the first word of "cc", so it can be a program name with args.
1186 set dummy cc; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1191 else
1192 if test -n "$CC"; then
1193 ac_cv_prog_CC="$CC" # Let the user override the test.
1194 else
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1196 ac_prog_rejected=no
1197 for ac_dir in $PATH; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1201 ac_prog_rejected=yes
1202 continue
1204 ac_cv_prog_CC="cc"
1205 break
1207 done
1208 IFS="$ac_save_ifs"
1209 if test $ac_prog_rejected = yes; then
1210 # We found a bogon in the path, so make sure we never use it.
1211 set dummy $ac_cv_prog_CC
1212 shift
1213 if test $# -gt 0; then
1214 # We chose a different compiler from the bogus one.
1215 # However, it has the same basename, so the bogon will be chosen
1216 # first if we set CC to just the basename; use the full file name.
1217 shift
1218 set dummy "$ac_dir/$ac_word" "$@"
1219 shift
1220 ac_cv_prog_CC="$@"
1225 CC="$ac_cv_prog_CC"
1226 if test -n "$CC"; then
1227 echo "$ac_t""$CC" 1>&6
1228 else
1229 echo "$ac_t""no" 1>&6
1232 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1235 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1238 ac_ext=c
1239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1240 ac_cpp='$CPP $CPPFLAGS'
1241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1242 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1243 cross_compiling=$ac_cv_prog_cc_cross
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 main(){return(0);}
1250 if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1251 ac_cv_prog_cc_works=yes
1252 # If we can't run a trivial program, we are probably using a cross compiler.
1253 if (./conftest; exit) 2>/dev/null; then
1254 ac_cv_prog_cc_cross=no
1255 else
1256 ac_cv_prog_cc_cross=yes
1258 else
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1261 ac_cv_prog_cc_works=no
1263 rm -fr conftest*
1265 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1266 if test $ac_cv_prog_cc_works = no; then
1267 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1269 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1271 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1272 cross_compiling=$ac_cv_prog_cc_cross
1274 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1275 echo "configure:1276: checking whether we are using GNU C" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279 cat > conftest.c <<EOF
1280 #ifdef __GNUC__
1281 yes;
1282 #endif
1284 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1285 ac_cv_prog_gcc=yes
1286 else
1287 ac_cv_prog_gcc=no
1291 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1293 if test $ac_cv_prog_gcc = yes; then
1294 GCC=yes
1295 ac_test_CFLAGS="${CFLAGS+set}"
1296 ac_save_CFLAGS="$CFLAGS"
1297 CFLAGS=
1298 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1299 echo "configure:1300: checking whether ${CC-cc} accepts -g" >&5
1300 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303 echo 'void f(){}' > conftest.c
1304 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1305 ac_cv_prog_cc_g=yes
1306 else
1307 ac_cv_prog_cc_g=no
1309 rm -f conftest*
1313 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1314 if test "$ac_test_CFLAGS" = set; then
1315 CFLAGS="$ac_save_CFLAGS"
1316 elif test $ac_cv_prog_cc_g = yes; then
1317 CFLAGS="-g -O2"
1318 else
1319 CFLAGS="-O2"
1321 else
1322 GCC=
1323 test "${CFLAGS+set}" = set || CFLAGS="-g"
1326 LD='$(CC)'
1329 CFLAGS="$CFLAGS $OPTIMIZE"
1330 CPPFLAGS=${CPPFLAGS:-""}
1339 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1341 printing_b=no
1342 # Check whether --enable-printing or --disable-printing was given.
1343 if test "${enable_printing+set}" = set; then
1344 enableval="$enable_printing"
1345 printing_b=$enableval
1349 if test "$optimise_b" = yes; then
1350 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1351 cat >> confdefs.h <<\EOF
1352 #define STRINGS_UTILS_INLINED 1
1357 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1358 echo "configure:1359: checking how to run the C++ preprocessor" >&5
1359 if test -z "$CXXCPP"; then
1360 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362 else
1363 ac_ext=C
1364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1365 ac_cpp='$CXXCPP $CPPFLAGS'
1366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1367 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1368 cross_compiling=$ac_cv_prog_cxx_cross
1369 CXXCPP="${CXX-g++} -E"
1370 cat > conftest.$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1373 #include <stdlib.h>
1375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376 { (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377 ac_err=`grep -v '^ *+' conftest.out`
1378 if test -z "$ac_err"; then
1380 else
1381 echo "$ac_err" >&5
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 CXXCPP=/lib/cpp
1387 rm -f conftest*
1388 ac_cv_prog_CXXCPP="$CXXCPP"
1391 CXXCPP="$ac_cv_prog_CXXCPP"
1392 echo "$ac_t""$CXXCPP" 1>&6
1395 ac_ext=C
1396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1397 ac_cpp='$CXXCPP $CPPFLAGS'
1398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1399 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1400 cross_compiling=$ac_cv_prog_cxx_cross
1402 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1404 # Extract the first word of "$ac_prog", so it can be a program name with args.
1405 set dummy $ac_prog; ac_word=$2
1406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1407 echo "configure:1408: checking for $ac_word" >&5
1408 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1410 else
1411 if test -n "$CXX"; then
1412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1413 else
1414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1415 for ac_dir in $PATH; do
1416 test -z "$ac_dir" && ac_dir=.
1417 if test -f $ac_dir/$ac_word; then
1418 ac_cv_prog_CXX="$ac_prog"
1419 break
1421 done
1422 IFS="$ac_save_ifs"
1425 CXX="$ac_cv_prog_CXX"
1426 if test -n "$CXX"; then
1427 echo "$ac_t""$CXX" 1>&6
1428 else
1429 echo "$ac_t""no" 1>&6
1432 test -n "$CXX" && break
1433 done
1434 test -n "$CXX" || CXX="gcc"
1437 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1440 ac_ext=C
1441 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1442 ac_cpp='$CXXCPP $CPPFLAGS'
1443 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1444 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1445 cross_compiling=$ac_cv_prog_cxx_cross
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1450 main(){return(0);}
1452 if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453 ac_cv_prog_cxx_works=yes
1454 # If we can't run a trivial program, we are probably using a cross compiler.
1455 if (./conftest; exit) 2>/dev/null; then
1456 ac_cv_prog_cxx_cross=no
1457 else
1458 ac_cv_prog_cxx_cross=yes
1460 else
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1463 ac_cv_prog_cxx_works=no
1465 rm -fr conftest*
1467 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1468 if test $ac_cv_prog_cxx_works = no; then
1469 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1471 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1473 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1474 cross_compiling=$ac_cv_prog_cxx_cross
1476 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1477 echo "configure:1478: checking whether we are using GNU C++" >&5
1478 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481 cat > conftest.C <<EOF
1482 #ifdef __GNUC__
1483 yes;
1484 #endif
1486 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1487 ac_cv_prog_gxx=yes
1488 else
1489 ac_cv_prog_gxx=no
1493 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1495 if test $ac_cv_prog_gxx = yes; then
1496 GXX=yes
1497 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1498 ac_save_CXXFLAGS="$CXXFLAGS"
1499 CXXFLAGS=
1500 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1501 echo "configure:1502: checking whether ${CXX-g++} accepts -g" >&5
1502 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1504 else
1505 echo 'void f(){}' > conftest.cc
1506 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1507 ac_cv_prog_cxx_g=yes
1508 else
1509 ac_cv_prog_cxx_g=no
1511 rm -f conftest*
1515 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1516 if test "$ac_test_CXXFLAGS" = set; then
1517 CXXFLAGS="$ac_save_CXXFLAGS"
1518 elif test $ac_cv_prog_cxx_g = yes; then
1519 CXXFLAGS="-g -O2"
1520 else
1521 CXXFLAGS="-O2"
1523 else
1524 GXX=
1525 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1529 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1530 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1531 echo "configure:1532: checking for FlexLexer.h" >&5
1532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1534 else
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 #include <FlexLexer.h>
1540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1541 { (eval echo configure:1542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1542 ac_err=`grep -v '^ *+' conftest.out`
1543 if test -z "$ac_err"; then
1544 rm -rf conftest*
1545 eval "ac_cv_header_$ac_safe=yes"
1546 else
1547 echo "$ac_err" >&5
1548 echo "configure: failed program was:" >&5
1549 cat conftest.$ac_ext >&5
1550 rm -rf conftest*
1551 eval "ac_cv_header_$ac_safe=no"
1553 rm -f conftest*
1555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1556 echo "$ac_t""yes" 1>&6
1557 true
1558 else
1559 echo "$ac_t""no" 1>&6
1561 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1562 warn_b=yes
1567 CPPFLAGS="$CPPFLAGS $DEFINES"
1568 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1569 LDFLAGS=$EXTRA_LIBES
1573 LD='$(CXX)'
1577 # ugh autoconf
1578 # urg, egcs: how to check for egcs >= 1.1?
1579 if $CXX --version | grep '2\.8' > /dev/null ||
1580 $CXX --version | grep 'egcs' > /dev/null
1581 then
1582 true
1583 else
1585 echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2
1586 warn_b=yes
1591 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1592 echo "configure:1593: checking whether explicit instantiation is needed" >&5
1593 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595 else
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1600 template <class T> struct foo { static int baz; };
1601 template <class T> int foo<T>::baz = 1;
1603 int main() {
1604 return foo<int>::baz;
1605 ; return 0; }
1607 if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1608 rm -rf conftest*
1609 lily_cv_need_explicit_instantiation=no
1610 else
1611 echo "configure: failed program was:" >&5
1612 cat conftest.$ac_ext >&5
1613 rm -rf conftest*
1614 lily_cv_need_explicit_instantiation=yes
1616 rm -f conftest*
1619 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1620 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1621 cat >> confdefs.h <<\EOF
1622 #define NEED_EXPLICIT_INSTANTIATION 1
1628 # ugh, automake: we want (and check for) bison
1629 for ac_prog in 'bison -y' byacc
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632 set dummy $ac_prog; ac_word=$2
1633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1634 echo "configure:1635: checking for $ac_word" >&5
1635 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638 if test -n "$YACC"; then
1639 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1640 else
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1642 for ac_dir in $PATH; do
1643 test -z "$ac_dir" && ac_dir=.
1644 if test -f $ac_dir/$ac_word; then
1645 ac_cv_prog_YACC="$ac_prog"
1646 break
1648 done
1649 IFS="$ac_save_ifs"
1652 YACC="$ac_cv_prog_YACC"
1653 if test -n "$YACC"; then
1654 echo "$ac_t""$YACC" 1>&6
1655 else
1656 echo "$ac_t""no" 1>&6
1659 test -n "$YACC" && break
1660 done
1661 test -n "$YACC" || YACC="yacc"
1663 # ugh, automake: we want (and check for) flex
1664 # AC_PROG_LEX
1665 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1667 # AC_DECL_YYTEXT
1668 # ugh, ugh
1669 ac_cv_prog_lex_root=lex.yy
1671 for ac_prog in bison
1673 # Extract the first word of "$ac_prog", so it can be a program name with args.
1674 set dummy $ac_prog; ac_word=$2
1675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_word" >&5
1677 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1679 else
1680 if test -n "$BISON"; then
1681 ac_cv_prog_BISON="$BISON" # Let the user override the test.
1682 else
1683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1684 for ac_dir in $PATH; do
1685 test -z "$ac_dir" && ac_dir=.
1686 if test -f $ac_dir/$ac_word; then
1687 ac_cv_prog_BISON="$ac_prog"
1688 break
1690 done
1691 IFS="$ac_save_ifs"
1694 BISON="$ac_cv_prog_BISON"
1695 if test -n "$BISON"; then
1696 echo "$ac_t""$BISON" 1>&6
1697 else
1698 echo "$ac_t""no" 1>&6
1701 test -n "$BISON" && break
1702 done
1703 test -n "$BISON" || BISON="error"
1705 for ac_prog in flex
1707 # Extract the first word of "$ac_prog", so it can be a program name with args.
1708 set dummy $ac_prog; ac_word=$2
1709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_word" >&5
1711 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1713 else
1714 if test -n "$FLEX"; then
1715 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1716 else
1717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1718 for ac_dir in $PATH; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1721 ac_cv_prog_FLEX="$ac_prog"
1722 break
1724 done
1725 IFS="$ac_save_ifs"
1728 FLEX="$ac_cv_prog_FLEX"
1729 if test -n "$FLEX"; then
1730 echo "$ac_t""$FLEX" 1>&6
1731 else
1732 echo "$ac_t""no" 1>&6
1735 test -n "$FLEX" && break
1736 done
1737 test -n "$FLEX" || FLEX="error"
1740 result="`echo \"$BISON\" | grep echo`"
1741 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1743 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1744 warn_b=yes
1749 result="`echo \"$FLEX\" | grep echo`"
1750 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1752 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1753 warn_b=yes
1758 if test $BISON != "error"; then
1759 bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1760 if test $bison_version -lt 25; then
1762 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1763 warn_b=yes
1772 for ac_prog in ar
1774 # Extract the first word of "$ac_prog", so it can be a program name with args.
1775 set dummy $ac_prog; ac_word=$2
1776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_word" >&5
1778 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1780 else
1781 if test -n "$AR"; then
1782 ac_cv_prog_AR="$AR" # Let the user override the test.
1783 else
1784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1785 for ac_dir in $PATH; do
1786 test -z "$ac_dir" && ac_dir=.
1787 if test -f $ac_dir/$ac_word; then
1788 ac_cv_prog_AR="$ac_prog"
1789 break
1791 done
1792 IFS="$ac_save_ifs"
1795 AR="$ac_cv_prog_AR"
1796 if test -n "$AR"; then
1797 echo "$ac_t""$AR" 1>&6
1798 else
1799 echo "$ac_t""no" 1>&6
1802 test -n "$AR" && break
1803 done
1804 test -n "$AR" || AR="error"
1806 # Extract the first word of "ranlib", so it can be a program name with args.
1807 set dummy ranlib; ac_word=$2
1808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_word" >&5
1810 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812 else
1813 if test -n "$RANLIB"; then
1814 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1815 else
1816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1817 for ac_dir in $PATH; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_prog_RANLIB="ranlib"
1821 break
1823 done
1824 IFS="$ac_save_ifs"
1825 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1828 RANLIB="$ac_cv_prog_RANLIB"
1829 if test -n "$RANLIB"; then
1830 echo "$ac_t""$RANLIB" 1>&6
1831 else
1832 echo "$ac_t""no" 1>&6
1839 # AC_STEPMAKE_LIBTOOL
1841 lang=English
1842 ALL_LINGUAS="en nl"
1844 # with/enable ??
1845 # Check whether --with-localedir or --without-localedir was given.
1846 if test "${with_localedir+set}" = set; then
1847 withval="$with_localedir"
1848 localedir=$with_localedir
1849 else
1850 localedir='${prefix}/share/locale'
1854 # Check whether --with-lang or --without-lang was given.
1855 if test "${with_lang+set}" = set; then
1856 withval="$with_lang"
1857 language=$with_lang
1858 else
1859 language=English
1863 echo $ac_n "checking language""... $ac_c" 1>&6
1864 echo "configure:1865: checking language" >&5
1865 case "$language" in
1866 En* | en* | Am* | am* | US* | us*)
1867 lang=English;;
1868 NL | nl | Du* | du* | Ned* | ned*)
1869 lang=Dutch;;
1871 lang=English;;
1873 lang=unknown;;
1874 esac
1875 echo "$ac_t""$lang" 1>&6
1877 if test "$lang" = "unknown" ; then
1879 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1880 warn_b=yes
1886 DIR_LOCALEDIR=${localedir}
1887 presome=${prefix}
1888 if test "$prefix" = "NONE"; then
1889 presome=${ac_default_prefix}
1891 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
1894 cat >> confdefs.h <<EOF
1895 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
1899 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1900 echo "configure:1901: checking for gettext in -lintl" >&5
1901 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1904 else
1905 ac_save_LIBS="$LIBS"
1906 LIBS="-lintl $LIBS"
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1910 /* Override any gcc2 internal prototype to avoid an error. */
1911 #ifdef __cplusplus
1912 extern "C"
1913 #endif
1914 /* We use char because int might match the return type of a gcc2
1915 builtin and then its argument prototype would still apply. */
1916 char gettext();
1918 int main() {
1919 gettext()
1920 ; return 0; }
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1923 rm -rf conftest*
1924 eval "ac_cv_lib_$ac_lib_var=yes"
1925 else
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 rm -rf conftest*
1929 eval "ac_cv_lib_$ac_lib_var=no"
1931 rm -f conftest*
1932 LIBS="$ac_save_LIBS"
1935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1939 cat >> confdefs.h <<EOF
1940 #define $ac_tr_lib 1
1943 LIBS="-lintl $LIBS"
1945 else
1946 echo "$ac_t""no" 1>&6
1949 for ac_func in gettext
1951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_func" >&5
1953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1955 else
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 /* System header to define __stub macros and hopefully few prototypes,
1960 which can conflict with char $ac_func(); below. */
1961 #include <assert.h>
1962 /* Override any gcc2 internal prototype to avoid an error. */
1963 #ifdef __cplusplus
1964 extern "C"
1965 #endif
1966 /* We use char because int might match the return type of a gcc2
1967 builtin and then its argument prototype would still apply. */
1968 char $ac_func();
1970 int main() {
1972 /* The GNU C library defines this for functions which it implements
1973 to always fail with ENOSYS. Some functions are actually named
1974 something starting with __ and the normal name is an alias. */
1975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1976 choke me
1977 #else
1978 $ac_func();
1979 #endif
1981 ; return 0; }
1983 if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1984 rm -rf conftest*
1985 eval "ac_cv_func_$ac_func=yes"
1986 else
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 rm -rf conftest*
1990 eval "ac_cv_func_$ac_func=no"
1992 rm -f conftest*
1995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1998 cat >> confdefs.h <<EOF
1999 #define $ac_tr_func 1
2002 else
2003 echo "$ac_t""no" 1>&6
2005 done
2009 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2010 for ac_prog in msgfmt
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2015 echo "configure:2016: checking for $ac_word" >&5
2016 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018 else
2019 if test -n "$MSGFMT"; then
2020 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2021 else
2022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2023 for ac_dir in $PATH; do
2024 test -z "$ac_dir" && ac_dir=.
2025 if test -f $ac_dir/$ac_word; then
2026 ac_cv_prog_MSGFMT="$ac_prog"
2027 break
2029 done
2030 IFS="$ac_save_ifs"
2033 MSGFMT="$ac_cv_prog_MSGFMT"
2034 if test -n "$MSGFMT"; then
2035 echo "$ac_t""$MSGFMT" 1>&6
2036 else
2037 echo "$ac_t""no" 1>&6
2040 test -n "$MSGFMT" && break
2041 done
2042 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2044 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether msgfmt accepts -o" >&5
2046 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2047 if test "$msgfmt_output" = ""; then
2048 echo "$ac_t""yes" 1>&6
2049 else
2050 # urg
2051 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2052 echo "$ac_t""no" 1>&6
2054 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2055 warn_b=yes
2058 if test ! -n "$MSGFMT"; then
2060 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2061 warn_b=yes
2066 # urg, never know what names these teTeX guys will think up
2067 for ac_prog in mf
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy $ac_prog; ac_word=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2073 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2075 else
2076 if test -n "$METAFONT"; then
2077 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2078 else
2079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2080 for ac_dir in $PATH; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 ac_cv_prog_METAFONT="$ac_prog"
2084 break
2086 done
2087 IFS="$ac_save_ifs"
2090 METAFONT="$ac_cv_prog_METAFONT"
2091 if test -n "$METAFONT"; then
2092 echo "$ac_t""$METAFONT" 1>&6
2093 else
2094 echo "$ac_t""no" 1>&6
2097 test -n "$METAFONT" && break
2098 done
2099 test -n "$METAFONT" || METAFONT="no"
2101 if test "x$METAFONT" = "xno"; then
2102 for ac_prog in mfont
2104 # Extract the first word of "$ac_prog", so it can be a program name with args.
2105 set dummy $ac_prog; ac_word=$2
2106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2107 echo "configure:2108: checking for $ac_word" >&5
2108 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2110 else
2111 if test -n "$MFONT"; then
2112 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2113 else
2114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2115 for ac_dir in $PATH; do
2116 test -z "$ac_dir" && ac_dir=.
2117 if test -f $ac_dir/$ac_word; then
2118 ac_cv_prog_MFONT="$ac_prog"
2119 break
2121 done
2122 IFS="$ac_save_ifs"
2125 MFONT="$ac_cv_prog_MFONT"
2126 if test -n "$MFONT"; then
2127 echo "$ac_t""$MFONT" 1>&6
2128 else
2129 echo "$ac_t""no" 1>&6
2132 test -n "$MFONT" && break
2133 done
2134 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2136 METAFONT=$MFONT
2139 for ac_prog in mp
2141 # Extract the first word of "$ac_prog", so it can be a program name with args.
2142 set dummy $ac_prog; ac_word=$2
2143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_word" >&5
2145 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2147 else
2148 if test -n "$METAPOST"; then
2149 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2150 else
2151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2152 for ac_dir in $PATH; do
2153 test -z "$ac_dir" && ac_dir=.
2154 if test -f $ac_dir/$ac_word; then
2155 ac_cv_prog_METAPOST="$ac_prog"
2156 break
2158 done
2159 IFS="$ac_save_ifs"
2162 METAPOST="$ac_cv_prog_METAPOST"
2163 if test -n "$METAPOST"; then
2164 echo "$ac_t""$METAPOST" 1>&6
2165 else
2166 echo "$ac_t""no" 1>&6
2169 test -n "$METAPOST" && break
2170 done
2171 test -n "$METAPOST" || METAPOST="no"
2173 if test "x$METAPOST" = "xno"; then
2174 for ac_prog in mpost
2176 # Extract the first word of "$ac_prog", so it can be a program name with args.
2177 set dummy $ac_prog; ac_word=$2
2178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2179 echo "configure:2180: checking for $ac_word" >&5
2180 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183 if test -n "$MPOST"; then
2184 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2185 else
2186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2187 for ac_dir in $PATH; do
2188 test -z "$ac_dir" && ac_dir=.
2189 if test -f $ac_dir/$ac_word; then
2190 ac_cv_prog_MPOST="$ac_prog"
2191 break
2193 done
2194 IFS="$ac_save_ifs"
2197 MPOST="$ac_cv_prog_MPOST"
2198 if test -n "$MPOST"; then
2199 echo "$ac_t""$MPOST" 1>&6
2200 else
2201 echo "$ac_t""no" 1>&6
2204 test -n "$MPOST" && break
2205 done
2206 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2208 METAPOST=$MPOST
2214 # AC_STEPMAKE_TEXMF_DIRS
2216 if test "x$YODL" = "x"; then
2217 for ac_prog in striproff
2219 # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if test -n "$STRIPROFF"; then
2227 ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
2228 else
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2230 for ac_dir in $PATH; do
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f $ac_dir/$ac_word; then
2233 ac_cv_prog_STRIPROFF="$ac_prog"
2234 break
2236 done
2237 IFS="$ac_save_ifs"
2240 STRIPROFF="$ac_cv_prog_STRIPROFF"
2241 if test -n "$STRIPROFF"; then
2242 echo "$ac_t""$STRIPROFF" 1>&6
2243 else
2244 echo "$ac_t""no" 1>&6
2247 test -n "$STRIPROFF" && break
2248 done
2249 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
2251 for ac_prog in yodl
2253 # Extract the first word of "$ac_prog", so it can be a program name with args.
2254 set dummy $ac_prog; ac_word=$2
2255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_word" >&5
2257 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2259 else
2260 if test -n "$YODL"; then
2261 ac_cv_prog_YODL="$YODL" # Let the user override the test.
2262 else
2263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2264 for ac_dir in $PATH; do
2265 test -z "$ac_dir" && ac_dir=.
2266 if test -f $ac_dir/$ac_word; then
2267 ac_cv_prog_YODL="$ac_prog"
2268 break
2270 done
2271 IFS="$ac_save_ifs"
2274 YODL="$ac_cv_prog_YODL"
2275 if test -n "$YODL"; then
2276 echo "$ac_t""$YODL" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2281 test -n "$YODL" && break
2282 done
2283 test -n "$YODL" || YODL="-echo no yodl"
2285 for ac_prog in yodl2html
2287 # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2290 echo "configure:2291: checking for $ac_word" >&5
2291 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2293 else
2294 if test -n "$YODL2HTML"; then
2295 ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2296 else
2297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2298 for ac_dir in $PATH; do
2299 test -z "$ac_dir" && ac_dir=.
2300 if test -f $ac_dir/$ac_word; then
2301 ac_cv_prog_YODL2HTML="$ac_prog"
2302 break
2304 done
2305 IFS="$ac_save_ifs"
2308 YODL2HTML="$ac_cv_prog_YODL2HTML"
2309 if test -n "$YODL2HTML"; then
2310 echo "$ac_t""$YODL2HTML" 1>&6
2311 else
2312 echo "$ac_t""no" 1>&6
2315 test -n "$YODL2HTML" && break
2316 done
2317 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2319 for ac_prog in yodl2latex
2321 # Extract the first word of "$ac_prog", so it can be a program name with args.
2322 set dummy $ac_prog; ac_word=$2
2323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_word" >&5
2325 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2327 else
2328 if test -n "$YODL2LATEX"; then
2329 ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2330 else
2331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2332 for ac_dir in $PATH; do
2333 test -z "$ac_dir" && ac_dir=.
2334 if test -f $ac_dir/$ac_word; then
2335 ac_cv_prog_YODL2LATEX="$ac_prog"
2336 break
2338 done
2339 IFS="$ac_save_ifs"
2342 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2343 if test -n "$YODL2LATEX"; then
2344 echo "$ac_t""$YODL2LATEX" 1>&6
2345 else
2346 echo "$ac_t""no" 1>&6
2349 test -n "$YODL2LATEX" && break
2350 done
2352 for ac_prog in yodl2man
2354 # Extract the first word of "$ac_prog", so it can be a program name with args.
2355 set dummy $ac_prog; ac_word=$2
2356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2357 echo "configure:2358: checking for $ac_word" >&5
2358 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2360 else
2361 if test -n "$YODL2MAN"; then
2362 ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2363 else
2364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2365 for ac_dir in $PATH; do
2366 test -z "$ac_dir" && ac_dir=.
2367 if test -f $ac_dir/$ac_word; then
2368 ac_cv_prog_YODL2MAN="$ac_prog"
2369 break
2371 done
2372 IFS="$ac_save_ifs"
2375 YODL2MAN="$ac_cv_prog_YODL2MAN"
2376 if test -n "$YODL2MAN"; then
2377 echo "$ac_t""$YODL2MAN" 1>&6
2378 else
2379 echo "$ac_t""no" 1>&6
2382 test -n "$YODL2MAN" && break
2383 done
2384 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2386 for ac_prog in yodl2msless
2388 # Extract the first word of "$ac_prog", so it can be a program name with args.
2389 set dummy $ac_prog; ac_word=$2
2390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2391 echo "configure:2392: checking for $ac_word" >&5
2392 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2394 else
2395 if test -n "$YODL2MSLESS"; then
2396 ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
2397 else
2398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2399 for ac_dir in $PATH; do
2400 test -z "$ac_dir" && ac_dir=.
2401 if test -f $ac_dir/$ac_word; then
2402 ac_cv_prog_YODL2MSLESS="$ac_prog"
2403 break
2405 done
2406 IFS="$ac_save_ifs"
2409 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
2410 if test -n "$YODL2MSLESS"; then
2411 echo "$ac_t""$YODL2MSLESS" 1>&6
2412 else
2413 echo "$ac_t""no" 1>&6
2416 test -n "$YODL2MSLESS" && break
2417 done
2418 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
2420 for ac_prog in yodl2texinfo
2422 # Extract the first word of "$ac_prog", so it can be a program name with args.
2423 set dummy $ac_prog; ac_word=$2
2424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_word" >&5
2426 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2429 if test -n "$YODL2TEXINFO"; then
2430 ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2431 else
2432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2433 for ac_dir in $PATH; do
2434 test -z "$ac_dir" && ac_dir=.
2435 if test -f $ac_dir/$ac_word; then
2436 ac_cv_prog_YODL2TEXINFO="$ac_prog"
2437 break
2439 done
2440 IFS="$ac_save_ifs"
2443 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2444 if test -n "$YODL2TEXINFO"; then
2445 echo "$ac_t""$YODL2TEXINFO" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2450 test -n "$YODL2TEXINFO" && break
2451 done
2452 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2454 for ac_prog in yodl2txt
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_word" >&5
2460 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2462 else
2463 if test -n "$YODL2TXT"; then
2464 ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2465 else
2466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2467 for ac_dir in $PATH; do
2468 test -z "$ac_dir" && ac_dir=.
2469 if test -f $ac_dir/$ac_word; then
2470 ac_cv_prog_YODL2TXT="$ac_prog"
2471 break
2473 done
2474 IFS="$ac_save_ifs"
2477 YODL2TXT="$ac_cv_prog_YODL2TXT"
2478 if test -n "$YODL2TXT"; then
2479 echo "$ac_t""$YODL2TXT" 1>&6
2480 else
2481 echo "$ac_t""no" 1>&6
2484 test -n "$YODL2TXT" && break
2485 done
2486 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2488 YODL2LESS_DIR='$(bindir)/'
2489 else
2499 export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
2501 if test "x$YODL" = "-echo no yodl"; then
2503 echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2504 warn_b=yes
2509 # on some systems, -lguile succeeds for guile-1.3
2510 # others need readline, dl (or even more)
2511 # urg, must check for different functions in libguile
2512 # to force new check iso reading from cache
2514 # gh_scm2doubles,gh_doubles2scm are new in 1.3
2516 ## The GUILE_FLAGS macro.
2517 ## First, let's just see if we can find Guile at all.
2518 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2519 echo "configure:2520: checking for Guile" >&5
2520 guile-config link > /dev/null || {
2521 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
2522 exit 1
2524 GUILE_CFLAGS="`guile-config compile`"
2525 GUILE_LDFLAGS="`guile-config link`"
2528 echo "$ac_t""yes" 1>&6
2530 echo $ac_n "checking for gh_scm2doubles in -lguile""... $ac_c" 1>&6
2531 echo "configure:2532: checking for gh_scm2doubles in -lguile" >&5
2532 ac_lib_var=`echo guile'_'gh_scm2doubles | sed 'y%./+-%__p_%'`
2533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2535 else
2536 ac_save_LIBS="$LIBS"
2537 LIBS="-lguile $GUILE_LDFLAGS $LIBS"
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 /* Override any gcc2 internal prototype to avoid an error. */
2542 #ifdef __cplusplus
2543 extern "C"
2544 #endif
2545 /* We use char because int might match the return type of a gcc2
2546 builtin and then its argument prototype would still apply. */
2547 char gh_scm2doubles();
2549 int main() {
2550 gh_scm2doubles()
2551 ; return 0; }
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2554 rm -rf conftest*
2555 eval "ac_cv_lib_$ac_lib_var=yes"
2556 else
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2559 rm -rf conftest*
2560 eval "ac_cv_lib_$ac_lib_var=no"
2562 rm -f conftest*
2563 LIBS="$ac_save_LIBS"
2566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2568 LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[/-_a-zA-Z0-9]\+ //g'` $LIBS";
2569 cat >> confdefs.h <<\EOF
2570 #define HAVE_LIBGUILE 1
2573 else
2574 echo "$ac_t""no" 1>&6
2577 if test "$ac_cv_lib_guile_gh_scm2doubles" != yes ; then
2579 echo "configure: warning: You should install guile 1.3 or newer" 1>&2
2580 warn_b=yes
2586 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2587 echo "configure:2588: checking for 8-bit clean memcmp" >&5
2588 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2590 else
2591 if test "$cross_compiling" = yes; then
2592 ac_cv_func_memcmp_clean=no
2593 else
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #ifdef __cplusplus
2598 extern "C" void exit(int);
2599 #endif
2601 main()
2603 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2604 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2609 then
2610 ac_cv_func_memcmp_clean=yes
2611 else
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2614 rm -fr conftest*
2615 ac_cv_func_memcmp_clean=no
2617 rm -fr conftest*
2622 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2623 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2625 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2626 echo "configure:2627: checking for vprintf" >&5
2627 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2629 else
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 /* System header to define __stub macros and hopefully few prototypes,
2634 which can conflict with char vprintf(); below. */
2635 #include <assert.h>
2636 /* Override any gcc2 internal prototype to avoid an error. */
2637 #ifdef __cplusplus
2638 extern "C"
2639 #endif
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642 char vprintf();
2644 int main() {
2646 /* The GNU C library defines this for functions which it implements
2647 to always fail with ENOSYS. Some functions are actually named
2648 something starting with __ and the normal name is an alias. */
2649 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2650 choke me
2651 #else
2652 vprintf();
2653 #endif
2655 ; return 0; }
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2658 rm -rf conftest*
2659 eval "ac_cv_func_vprintf=yes"
2660 else
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2663 rm -rf conftest*
2664 eval "ac_cv_func_vprintf=no"
2666 rm -f conftest*
2669 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2670 echo "$ac_t""yes" 1>&6
2671 cat >> confdefs.h <<\EOF
2672 #define HAVE_VPRINTF 1
2675 else
2676 echo "$ac_t""no" 1>&6
2679 if test "$ac_cv_func_vprintf" != yes; then
2680 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2681 echo "configure:2682: checking for _doprnt" >&5
2682 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2684 else
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 /* System header to define __stub macros and hopefully few prototypes,
2689 which can conflict with char _doprnt(); below. */
2690 #include <assert.h>
2691 /* Override any gcc2 internal prototype to avoid an error. */
2692 #ifdef __cplusplus
2693 extern "C"
2694 #endif
2695 /* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697 char _doprnt();
2699 int main() {
2701 /* The GNU C library defines this for functions which it implements
2702 to always fail with ENOSYS. Some functions are actually named
2703 something starting with __ and the normal name is an alias. */
2704 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2705 choke me
2706 #else
2707 _doprnt();
2708 #endif
2710 ; return 0; }
2712 if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2713 rm -rf conftest*
2714 eval "ac_cv_func__doprnt=yes"
2715 else
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 rm -rf conftest*
2719 eval "ac_cv_func__doprnt=no"
2721 rm -f conftest*
2724 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2725 echo "$ac_t""yes" 1>&6
2726 cat >> confdefs.h <<\EOF
2727 #define HAVE_DOPRNT 1
2730 else
2731 echo "$ac_t""no" 1>&6
2736 for ac_func in memmem snprintf vsnprintf gettext
2738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_func" >&5
2740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 /* System header to define __stub macros and hopefully few prototypes,
2747 which can conflict with char $ac_func(); below. */
2748 #include <assert.h>
2749 /* Override any gcc2 internal prototype to avoid an error. */
2750 #ifdef __cplusplus
2751 extern "C"
2752 #endif
2753 /* We use char because int might match the return type of a gcc2
2754 builtin and then its argument prototype would still apply. */
2755 char $ac_func();
2757 int main() {
2759 /* The GNU C library defines this for functions which it implements
2760 to always fail with ENOSYS. Some functions are actually named
2761 something starting with __ and the normal name is an alias. */
2762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2763 choke me
2764 #else
2765 $ac_func();
2766 #endif
2768 ; return 0; }
2770 if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2771 rm -rf conftest*
2772 eval "ac_cv_func_$ac_func=yes"
2773 else
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 rm -rf conftest*
2777 eval "ac_cv_func_$ac_func=no"
2779 rm -f conftest*
2782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2785 cat >> confdefs.h <<EOF
2786 #define $ac_tr_func 1
2789 else
2790 echo "$ac_t""no" 1>&6
2792 done
2795 cat >> confdefs.h <<EOF
2796 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2799 cat >> confdefs.h <<EOF
2800 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
2804 for ac_prog in makeinfo
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_word" >&5
2810 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2812 else
2813 if test -n "$MAKEINFO"; then
2814 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2815 else
2816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2817 for ac_dir in $PATH; do
2818 test -z "$ac_dir" && ac_dir=.
2819 if test -f $ac_dir/$ac_word; then
2820 ac_cv_prog_MAKEINFO="$ac_prog"
2821 break
2823 done
2824 IFS="$ac_save_ifs"
2827 MAKEINFO="$ac_cv_prog_MAKEINFO"
2828 if test -n "$MAKEINFO"; then
2829 echo "$ac_t""$MAKEINFO" 1>&6
2830 else
2831 echo "$ac_t""no" 1>&6
2834 test -n "$MAKEINFO" && break
2835 done
2836 test -n "$MAKEINFO" || MAKEINFO="error"
2839 result="`echo \"$YODL2TEXINFO\" | grep echo`"
2840 if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
2842 echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or newer" 1>&2
2843 warn_b=yes
2849 trap '' 1 2 15
2850 cat > confcache <<\EOF
2851 # This file is a shell script that caches the results of configure
2852 # tests run on this system so they can be shared between configure
2853 # scripts and configure runs. It is not useful on other systems.
2854 # If it contains results you don't want to keep, you may remove or edit it.
2856 # By default, configure uses ./config.cache as the cache file,
2857 # creating it if it does not exist already. You can give configure
2858 # the --cache-file=FILE option to use a different cache file; that is
2859 # what configure does when it calls configure scripts in
2860 # subdirectories, so they share the cache.
2861 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2862 # config.status only pays attention to the cache file if you give it the
2863 # --recheck option to rerun configure.
2866 # The following way of writing the cache mishandles newlines in values,
2867 # but we know of no workaround that is simple, portable, and efficient.
2868 # So, don't put newlines in cache variables' values.
2869 # Ultrix sh set writes to stderr and can't be redirected directly,
2870 # and sets the high bit in the cache file unless we assign to the vars.
2871 (set) 2>&1 |
2872 case `(ac_space=' '; set) 2>&1` in
2873 *ac_space=\ *)
2874 # `set' does not quote correctly, so add quotes (double-quote substitution
2875 # turns \\\\ into \\, and sed turns \\ into \).
2876 sed -n \
2877 -e "s/'/'\\\\''/g" \
2878 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2881 # `set' quotes correctly as required by POSIX, so do not add quotes.
2882 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2884 esac >> confcache
2885 if cmp -s $cache_file confcache; then
2887 else
2888 if test -w $cache_file; then
2889 echo "updating cache $cache_file"
2890 cat confcache > $cache_file
2891 else
2892 echo "not updating unwritable cache $cache_file"
2895 rm -f confcache
2897 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2900 # Let make expand exec_prefix.
2901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2903 # Any assignment to VPATH causes Sun make to only execute
2904 # the first set of double-colon rules, so remove it if not needed.
2905 # If there is a colon in the path, we need to keep it.
2906 if test "x$srcdir" = x.; then
2907 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2910 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2912 DEFS=-DHAVE_CONFIG_H
2914 # Without the "./", some shells look in PATH for config.status.
2915 : ${CONFIG_STATUS=./config.status}
2917 echo creating $CONFIG_STATUS
2918 rm -f $CONFIG_STATUS
2919 cat > $CONFIG_STATUS <<EOF
2920 #! /bin/sh
2921 # Generated automatically by configure.
2922 # Run this file to recreate the current configuration.
2923 # This directory was configured as follows,
2924 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2926 # $0 $ac_configure_args
2928 # Compiler output produced by configure, useful for debugging
2929 # configure, is in ./config.log if it exists.
2931 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2932 for ac_option
2934 case "\$ac_option" in
2935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2936 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2937 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2938 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2939 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2940 exit 0 ;;
2941 -help | --help | --hel | --he | --h)
2942 echo "\$ac_cs_usage"; exit 0 ;;
2943 *) echo "\$ac_cs_usage"; exit 1 ;;
2944 esac
2945 done
2947 ac_given_srcdir=$srcdir
2949 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2951 cat >> $CONFIG_STATUS <<EOF
2953 # Protect against being on the right side of a sed subst in config.status.
2954 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2955 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2956 $ac_vpsub
2957 $extrasub
2958 s%@CFLAGS@%$CFLAGS%g
2959 s%@CPPFLAGS@%$CPPFLAGS%g
2960 s%@CXXFLAGS@%$CXXFLAGS%g
2961 s%@DEFS@%$DEFS%g
2962 s%@LDFLAGS@%$LDFLAGS%g
2963 s%@LIBS@%$LIBS%g
2964 s%@exec_prefix@%$exec_prefix%g
2965 s%@prefix@%$prefix%g
2966 s%@program_transform_name@%$program_transform_name%g
2967 s%@bindir@%$bindir%g
2968 s%@sbindir@%$sbindir%g
2969 s%@libexecdir@%$libexecdir%g
2970 s%@datadir@%$datadir%g
2971 s%@sysconfdir@%$sysconfdir%g
2972 s%@sharedstatedir@%$sharedstatedir%g
2973 s%@localstatedir@%$localstatedir%g
2974 s%@libdir@%$libdir%g
2975 s%@includedir@%$includedir%g
2976 s%@oldincludedir@%$oldincludedir%g
2977 s%@infodir@%$infodir%g
2978 s%@mandir@%$mandir%g
2979 s%@stepmake@%$stepmake%g
2980 s%@package@%$package%g
2981 s%@PACKAGE@%$PACKAGE%g
2982 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
2983 s%@package_depth@%$package_depth%g
2984 s%@AUTOGENERATE@%$AUTOGENERATE%g
2985 s%@absolute_builddir@%$absolute_builddir%g
2986 s%@STATE_VECTOR@%$STATE_VECTOR%g
2987 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
2988 s%@host@%$host%g
2989 s%@host_alias@%$host_alias%g
2990 s%@host_cpu@%$host_cpu%g
2991 s%@host_vendor@%$host_vendor%g
2992 s%@host_os@%$host_os%g
2993 s%@MAKE@%$MAKE%g
2994 s%@FIND@%$FIND%g
2995 s%@TAR@%$TAR%g
2996 s%@BASH@%$BASH%g
2997 s%@PYTHON@%$PYTHON%g
2998 s%@DOTEXE@%$DOTEXE%g
2999 s%@ZIP@%$ZIP%g
3000 s%@LN@%$LN%g
3001 s%@LN_S@%$LN_S%g
3002 s%@INSTALL@%$INSTALL%g
3003 s%@PATHSEP@%$PATHSEP%g
3004 s%@DIRSEP@%$DIRSEP%g
3005 s%@DIR_DATADIR@%$DIR_DATADIR%g
3006 s%@subdirs@%$subdirs%g
3007 s%@CC@%$CC%g
3008 s%@LD@%$LD%g
3009 s%@ICFLAGS@%$ICFLAGS%g
3010 s%@ILDFLAGS@%$ILDFLAGS%g
3011 s%@DEFINES@%$DEFINES%g
3012 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3013 s%@CXX@%$CXX%g
3014 s%@CXXCPP@%$CXXCPP%g
3015 s%@YACC@%$YACC%g
3016 s%@BISON@%$BISON%g
3017 s%@FLEX@%$FLEX%g
3018 s%@AR@%$AR%g
3019 s%@RANLIB@%$RANLIB%g
3020 s%@localedir@%$localedir%g
3021 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3022 s%@MSGFMT@%$MSGFMT%g
3023 s%@METAFONT@%$METAFONT%g
3024 s%@MFONT@%$MFONT%g
3025 s%@METAPOST@%$METAPOST%g
3026 s%@MPOST@%$MPOST%g
3027 s%@STRIPROFF@%$STRIPROFF%g
3028 s%@YODL@%$YODL%g
3029 s%@YODL2HTML@%$YODL2HTML%g
3030 s%@YODL2LATEX@%$YODL2LATEX%g
3031 s%@YODL2MAN@%$YODL2MAN%g
3032 s%@YODL2MSLESS@%$YODL2MSLESS%g
3033 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
3034 s%@YODL2TXT@%$YODL2TXT%g
3035 s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
3036 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3037 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3038 s%@LIBOBJS@%$LIBOBJS%g
3039 s%@MAKEINFO@%$MAKEINFO%g
3041 CEOF
3044 cat >> $CONFIG_STATUS <<\EOF
3046 # Split the substitutions into bite-sized pieces for seds with
3047 # small command number limits, like on Digital OSF/1 and HP-UX.
3048 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3049 ac_file=1 # Number of current file.
3050 ac_beg=1 # First line for current file.
3051 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3052 ac_more_lines=:
3053 ac_sed_cmds=""
3054 while $ac_more_lines; do
3055 if test $ac_beg -gt 1; then
3056 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3057 else
3058 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3060 if test ! -s conftest.s$ac_file; then
3061 ac_more_lines=false
3062 rm -f conftest.s$ac_file
3063 else
3064 if test -z "$ac_sed_cmds"; then
3065 ac_sed_cmds="sed -f conftest.s$ac_file"
3066 else
3067 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3069 ac_file=`expr $ac_file + 1`
3070 ac_beg=$ac_end
3071 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3073 done
3074 if test -z "$ac_sed_cmds"; then
3075 ac_sed_cmds=cat
3079 cat >> $CONFIG_STATUS <<EOF
3081 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3083 cat >> $CONFIG_STATUS <<\EOF
3084 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3086 case "$ac_file" in
3087 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3088 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3089 *) ac_file_in="${ac_file}.in" ;;
3090 esac
3092 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3094 # Remove last slash and all that follows it. Not all systems have dirname.
3095 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3096 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3097 # The file is in a subdirectory.
3098 test ! -d "$ac_dir" && mkdir "$ac_dir"
3099 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3100 # A "../" for each directory in $ac_dir_suffix.
3101 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3102 else
3103 ac_dir_suffix= ac_dots=
3106 case "$ac_given_srcdir" in
3107 .) srcdir=.
3108 if test -z "$ac_dots"; then top_srcdir=.
3109 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3110 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3111 *) # Relative path.
3112 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3113 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3114 esac
3117 echo creating "$ac_file"
3118 rm -f "$ac_file"
3119 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3120 case "$ac_file" in
3121 *Makefile*) ac_comsub="1i\\
3122 # $configure_input" ;;
3123 *) ac_comsub= ;;
3124 esac
3126 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3127 sed -e "$ac_comsub
3128 s%@configure_input@%$configure_input%g
3129 s%@srcdir@%$srcdir%g
3130 s%@top_srcdir@%$top_srcdir%g
3131 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3132 fi; done
3133 rm -f conftest.s*
3135 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3136 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3138 # ac_d sets the value in "#define NAME VALUE" lines.
3139 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3140 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3141 ac_dC='\3'
3142 ac_dD='%g'
3143 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3144 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3145 ac_uB='\([ ]\)%\1#\2define\3'
3146 ac_uC=' '
3147 ac_uD='\4%g'
3148 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3149 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3150 ac_eB='$%\1#\2define\3'
3151 ac_eC=' '
3152 ac_eD='%g'
3154 if test "${CONFIG_HEADERS+set}" != set; then
3156 cat >> $CONFIG_STATUS <<EOF
3157 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3159 cat >> $CONFIG_STATUS <<\EOF
3161 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3163 case "$ac_file" in
3164 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3165 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3166 *) ac_file_in="${ac_file}.in" ;;
3167 esac
3169 echo creating $ac_file
3171 rm -f conftest.frag conftest.in conftest.out
3172 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3173 cat $ac_file_inputs > conftest.in
3177 # Transform confdefs.h into a sed script conftest.vals that substitutes
3178 # the proper values into config.h.in to produce config.h. And first:
3179 # Protect against being on the right side of a sed subst in config.status.
3180 # Protect against being in an unquoted here document in config.status.
3181 rm -f conftest.vals
3182 cat > conftest.hdr <<\EOF
3183 s/[\\&%]/\\&/g
3184 s%[\\$`]%\\&%g
3185 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3186 s%ac_d%ac_u%gp
3187 s%ac_u%ac_e%gp
3189 sed -n -f conftest.hdr confdefs.h > conftest.vals
3190 rm -f conftest.hdr
3192 # This sed command replaces #undef with comments. This is necessary, for
3193 # example, in the case of _POSIX_SOURCE, which is predefined and required
3194 # on some systems where configure will not decide to define it.
3195 cat >> conftest.vals <<\EOF
3196 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3199 # Break up conftest.vals because some shells have a limit on
3200 # the size of here documents, and old seds have small limits too.
3202 rm -f conftest.tail
3203 while :
3205 ac_lines=`grep -c . conftest.vals`
3206 # grep -c gives empty output for an empty file on some AIX systems.
3207 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3208 # Write a limited-size here document to conftest.frag.
3209 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3210 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3211 echo 'CEOF
3212 sed -f conftest.frag conftest.in > conftest.out
3213 rm -f conftest.in
3214 mv conftest.out conftest.in
3215 ' >> $CONFIG_STATUS
3216 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3217 rm -f conftest.vals
3218 mv conftest.tail conftest.vals
3219 done
3220 rm -f conftest.vals
3222 cat >> $CONFIG_STATUS <<\EOF
3223 rm -f conftest.frag conftest.h
3224 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3225 cat conftest.in >> conftest.h
3226 rm -f conftest.in
3227 if cmp -s $ac_file conftest.h 2>/dev/null; then
3228 echo "$ac_file is unchanged"
3229 rm -f conftest.h
3230 else
3231 # Remove last slash and all that follows it. Not all systems have dirname.
3232 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3233 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3234 # The file is in a subdirectory.
3235 test ! -d "$ac_dir" && mkdir "$ac_dir"
3237 rm -f $ac_file
3238 mv conftest.h $ac_file
3240 fi; done
3243 cat >> $CONFIG_STATUS <<EOF
3246 cat >> $CONFIG_STATUS <<\EOF
3248 exit 0
3250 chmod +x $CONFIG_STATUS
3251 rm -fr confdefs* $ac_clean_files
3252 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3254 if test "$no_recursion" != yes; then
3256 # Remove --cache-file and --srcdir arguments so they do not pile up.
3257 ac_sub_configure_args=
3258 ac_prev=
3259 for ac_arg in $ac_configure_args; do
3260 if test -n "$ac_prev"; then
3261 ac_prev=
3262 continue
3264 case "$ac_arg" in
3265 -cache-file | --cache-file | --cache-fil | --cache-fi \
3266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3267 ac_prev=cache_file ;;
3268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3272 ac_prev=srcdir ;;
3273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3275 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3276 esac
3277 done
3279 for ac_config_dir in stepmake; do
3281 # Do not complain, so a configure script can configure whichever
3282 # parts of a large source tree are present.
3283 if test ! -d $srcdir/$ac_config_dir; then
3284 continue
3287 echo configuring in $ac_config_dir
3289 case "$srcdir" in
3290 .) ;;
3292 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3293 else
3294 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3297 esac
3299 ac_popdir=`pwd`
3300 cd $ac_config_dir
3302 # A "../" for each directory in /$ac_config_dir.
3303 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3305 case "$srcdir" in
3306 .) # No --srcdir option. We are building in place.
3307 ac_sub_srcdir=$srcdir ;;
3308 /*) # Absolute path.
3309 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3310 *) # Relative path.
3311 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3312 esac
3314 # Check for guested configure; otherwise get Cygnus style configure.
3315 if test -f $ac_sub_srcdir/configure; then
3316 ac_sub_configure=$ac_sub_srcdir/configure
3317 elif test -f $ac_sub_srcdir/configure.in; then
3318 ac_sub_configure=$ac_configure
3319 else
3320 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3321 ac_sub_configure=
3324 # The recursion is here.
3325 if test -n "$ac_sub_configure"; then
3327 # Make the cache file name correct relative to the subdirectory.
3328 case "$cache_file" in
3329 /*) ac_sub_cache_file=$cache_file ;;
3330 *) # Relative path.
3331 ac_sub_cache_file="$ac_dots$cache_file" ;;
3332 esac
3334 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3335 # The eval makes quoting arguments work.
3336 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3337 then :
3338 else
3339 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3343 cd $ac_popdir
3344 done
3348 rm -f GNUmakefile
3349 cp make/toplevel.make.in ./GNUmakefile
3350 chmod 444 GNUmakefile