]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/configure
c20bd4b8c62503712afe1a1bf4a4da9ffed89c94
[lilypond.git] / stepmake / configure
1 #! /bin/sh
2
3 ac_help="$ac_help
4   --with-gtkmm-prefix=PREFIX
5                           Prefix where GTK-- is installed (optional)"
6 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
7 if test "${with_gtkmm_prefix+set}" = set; then
8   withval="$with_gtkmm_prefix"
9   gtkmm_config_prefix="$withval"
10 else
11   gtkmm_config_prefix=""
12 fi
13
14 ac_help="$ac_help
15   --with-gtkmm-exec-prefix=PREFIX
16                           Exec prefix where GTK-- is installed (optional)"
17 # Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given.
18 if test "${with_gtkmm_exec_prefix+set}" = set; then
19   withval="$with_gtkmm_exec_prefix"
20   gtkmm_config_exec_prefix="$withval"
21 else
22   gtkmm_config_exec_prefix=""
23 fi
24
25 ac_help="$ac_help
26   --disable-gtkmmtest     Do not try to compile and run a test GTK-- program"
27 # Check whether --enable-gtkmmtest or --disable-gtkmmtest was given.
28 if test "${enable_gtkmmtest+set}" = set; then
29   enableval="$enable_gtkmmtest"
30   :
31 else
32   enable_gtkmmtest=yes
33 fi
34
35
36   if test x$gtkmm_config_exec_prefix != x ; then
37      gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
38      if test x${GTKMM_CONFIG+set} != xset ; then
39         GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
40      fi
41   fi
42   if test x$gtkmm_config_prefix != x ; then
43      gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
44      if test x${GTKMM_CONFIG+set} != xset ; then
45         GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
46      fi
47   fi
48
49
50
51
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt   98-08-21  (adapted from Jan Nieuwenhuizen's code)
54
55
56 # Guess values for system-dependent variables and create Makefiles.
57 # Generated automatically using autoconf version 2.13 
58 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
59 #
60 # This configure script is free software; the Free Software Foundation
61 # gives unlimited permission to copy, distribute and modify it.
62
63 # Defaults:
64 ac_help=
65 ac_default_prefix=/usr/local
66 # Any additions from configure.in:
67 ac_help="$ac_help
68   enable-config=FILE      put configure settings in config-FILE.make"
69 ac_help="$ac_help
70   with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale "
71 ac_help="$ac_help
72   with-lang=LANG          use LANG as language to emit messages"
73
74 # Initialize some variables set by options.
75 # The variables have the same names as the options, with
76 # dashes changed to underlines.
77 build=NONE
78 cache_file=./config.cache
79 exec_prefix=NONE
80 host=NONE
81 no_create=
82 nonopt=NONE
83 no_recursion=
84 prefix=NONE
85 program_prefix=NONE
86 program_suffix=NONE
87 program_transform_name=s,x,x,
88 silent=
89 site=
90 srcdir=
91 target=NONE
92 verbose=
93 x_includes=NONE
94 x_libraries=NONE
95 bindir='${exec_prefix}/bin'
96 sbindir='${exec_prefix}/sbin'
97 libexecdir='${exec_prefix}/libexec'
98 datadir='${prefix}/share'
99 sysconfdir='${prefix}/etc'
100 sharedstatedir='${prefix}/com'
101 localstatedir='${prefix}/var'
102 libdir='${exec_prefix}/lib'
103 includedir='${prefix}/include'
104 oldincludedir='/usr/include'
105 infodir='${prefix}/info'
106 mandir='${prefix}/man'
107
108 # Initialize some other variables.
109 subdirs=
110 MFLAGS= MAKEFLAGS=
111 SHELL=${CONFIG_SHELL-/bin/sh}
112 # Maximum number of lines to put in a shell here document.
113 ac_max_here_lines=12
114
115 ac_prev=
116 for ac_option
117 do
118
119   # If the previous option needs an argument, assign it.
120   if test -n "$ac_prev"; then
121     eval "$ac_prev=\$ac_option"
122     ac_prev=
123     continue
124   fi
125
126   case "$ac_option" in
127   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128   *) ac_optarg= ;;
129   esac
130
131   # Accept the important Cygnus configure options, so we can diagnose typos.
132
133   case "$ac_option" in
134
135   -bindir | --bindir | --bindi | --bind | --bin | --bi)
136     ac_prev=bindir ;;
137   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
138     bindir="$ac_optarg" ;;
139
140   -build | --build | --buil | --bui | --bu)
141     ac_prev=build ;;
142   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
143     build="$ac_optarg" ;;
144
145   -cache-file | --cache-file | --cache-fil | --cache-fi \
146   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
147     ac_prev=cache_file ;;
148   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
149   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
150     cache_file="$ac_optarg" ;;
151
152   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
153     ac_prev=datadir ;;
154   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
155   | --da=*)
156     datadir="$ac_optarg" ;;
157
158   -disable-* | --disable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     eval "enable_${ac_feature}=no" ;;
166
167   -enable-* | --enable-*)
168     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169     # Reject names that are not valid shell variable names.
170     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172     fi
173     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174     case "$ac_option" in
175       *=*) ;;
176       *) ac_optarg=yes ;;
177     esac
178     eval "enable_${ac_feature}='$ac_optarg'" ;;
179
180   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
181   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
182   | --exec | --exe | --ex)
183     ac_prev=exec_prefix ;;
184   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
185   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
186   | --exec=* | --exe=* | --ex=*)
187     exec_prefix="$ac_optarg" ;;
188
189   -gas | --gas | --ga | --g)
190     # Obsolete; use --with-gas.
191     with_gas=yes ;;
192
193   -help | --help | --hel | --he)
194     # Omit some internal or obsolete options to make the list less imposing.
195     # This message is too long to be a string in the A/UX 3.1 sh.
196     cat << EOF
197 Usage: configure [options] [host]
198 Options: [defaults in brackets after descriptions]
199 Configuration:
200   --cache-file=FILE       cache test results in FILE
201   --help                  print this message
202   --no-create             do not create output files
203   --quiet, --silent       do not print \`checking...' messages
204   --version               print the version of autoconf that created configure
205 Directory and file names:
206   --prefix=PREFIX         install architecture-independent files in PREFIX
207                           [$ac_default_prefix]
208   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
209                           [same as prefix]
210   --bindir=DIR            user executables in DIR [EPREFIX/bin]
211   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
212   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
213   --datadir=DIR           read-only architecture-independent data in DIR
214                           [PREFIX/share]
215   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
216   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
217                           [PREFIX/com]
218   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
219   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
220   --includedir=DIR        C header files in DIR [PREFIX/include]
221   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
222   --infodir=DIR           info documentation in DIR [PREFIX/info]
223   --mandir=DIR            man documentation in DIR [PREFIX/man]
224   --srcdir=DIR            find the sources in DIR [configure dir or ..]
225   --program-prefix=PREFIX prepend PREFIX to installed program names
226   --program-suffix=SUFFIX append SUFFIX to installed program names
227   --program-transform-name=PROGRAM
228                           run sed PROGRAM on installed program names
229 EOF
230     cat << EOF
231 Host type:
232   --build=BUILD           configure for building on BUILD [BUILD=HOST]
233   --host=HOST             configure for HOST [guessed]
234   --target=TARGET         configure for TARGET [TARGET=HOST]
235 Features and packages:
236   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
237   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
238   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
239   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
240   --x-includes=DIR        X include files are in DIR
241   --x-libraries=DIR       X library files are in DIR
242 EOF
243     if test -n "$ac_help"; then
244       echo "--enable and --with options recognized:$ac_help"
245     fi
246     exit 0 ;;
247
248   -host | --host | --hos | --ho)
249     ac_prev=host ;;
250   -host=* | --host=* | --hos=* | --ho=*)
251     host="$ac_optarg" ;;
252
253   -includedir | --includedir | --includedi | --included | --include \
254   | --includ | --inclu | --incl | --inc)
255     ac_prev=includedir ;;
256   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257   | --includ=* | --inclu=* | --incl=* | --inc=*)
258     includedir="$ac_optarg" ;;
259
260   -infodir | --infodir | --infodi | --infod | --info | --inf)
261     ac_prev=infodir ;;
262   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263     infodir="$ac_optarg" ;;
264
265   -libdir | --libdir | --libdi | --libd)
266     ac_prev=libdir ;;
267   -libdir=* | --libdir=* | --libdi=* | --libd=*)
268     libdir="$ac_optarg" ;;
269
270   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271   | --libexe | --libex | --libe)
272     ac_prev=libexecdir ;;
273   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274   | --libexe=* | --libex=* | --libe=*)
275     libexecdir="$ac_optarg" ;;
276
277   -localstatedir | --localstatedir | --localstatedi | --localstated \
278   | --localstate | --localstat | --localsta | --localst \
279   | --locals | --local | --loca | --loc | --lo)
280     ac_prev=localstatedir ;;
281   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284     localstatedir="$ac_optarg" ;;
285
286   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287     ac_prev=mandir ;;
288   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289     mandir="$ac_optarg" ;;
290
291   -nfp | --nfp | --nf)
292     # Obsolete; use --without-fp.
293     with_fp=no ;;
294
295   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296   | --no-cr | --no-c)
297     no_create=yes ;;
298
299   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301     no_recursion=yes ;;
302
303   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305   | --oldin | --oldi | --old | --ol | --o)
306     ac_prev=oldincludedir ;;
307   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310     oldincludedir="$ac_optarg" ;;
311
312   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313     ac_prev=prefix ;;
314   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315     prefix="$ac_optarg" ;;
316
317   -program-prefix | --program-prefix | --program-prefi | --program-pref \
318   | --program-pre | --program-pr | --program-p)
319     ac_prev=program_prefix ;;
320   -program-prefix=* | --program-prefix=* | --program-prefi=* \
321   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322     program_prefix="$ac_optarg" ;;
323
324   -program-suffix | --program-suffix | --program-suffi | --program-suff \
325   | --program-suf | --program-su | --program-s)
326     ac_prev=program_suffix ;;
327   -program-suffix=* | --program-suffix=* | --program-suffi=* \
328   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329     program_suffix="$ac_optarg" ;;
330
331   -program-transform-name | --program-transform-name \
332   | --program-transform-nam | --program-transform-na \
333   | --program-transform-n | --program-transform- \
334   | --program-transform | --program-transfor \
335   | --program-transfo | --program-transf \
336   | --program-trans | --program-tran \
337   | --progr-tra | --program-tr | --program-t)
338     ac_prev=program_transform_name ;;
339   -program-transform-name=* | --program-transform-name=* \
340   | --program-transform-nam=* | --program-transform-na=* \
341   | --program-transform-n=* | --program-transform-=* \
342   | --program-transform=* | --program-transfor=* \
343   | --program-transfo=* | --program-transf=* \
344   | --program-trans=* | --program-tran=* \
345   | --progr-tra=* | --program-tr=* | --program-t=*)
346     program_transform_name="$ac_optarg" ;;
347
348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349   | -silent | --silent | --silen | --sile | --sil)
350     silent=yes ;;
351
352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353     ac_prev=sbindir ;;
354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355   | --sbi=* | --sb=*)
356     sbindir="$ac_optarg" ;;
357
358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360   | --sharedst | --shareds | --shared | --share | --shar \
361   | --sha | --sh)
362     ac_prev=sharedstatedir ;;
363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366   | --sha=* | --sh=*)
367     sharedstatedir="$ac_optarg" ;;
368
369   -site | --site | --sit)
370     ac_prev=site ;;
371   -site=* | --site=* | --sit=*)
372     site="$ac_optarg" ;;
373
374   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375     ac_prev=srcdir ;;
376   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377     srcdir="$ac_optarg" ;;
378
379   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
380   | --syscon | --sysco | --sysc | --sys | --sy)
381     ac_prev=sysconfdir ;;
382   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
383   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
384     sysconfdir="$ac_optarg" ;;
385
386   -target | --target | --targe | --targ | --tar | --ta | --t)
387     ac_prev=target ;;
388   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
389     target="$ac_optarg" ;;
390
391   -v | -verbose | --verbose | --verbos | --verbo | --verb)
392     verbose=yes ;;
393
394   -version | --version | --versio | --versi | --vers)
395     echo "configure generated by autoconf version 2.13"
396     exit 0 ;;
397
398   -with-* | --with-*)
399     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400     # Reject names that are not valid shell variable names.
401     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403     fi
404     ac_package=`echo $ac_package| sed 's/-/_/g'`
405     case "$ac_option" in
406       *=*) ;;
407       *) ac_optarg=yes ;;
408     esac
409     eval "with_${ac_package}='$ac_optarg'" ;;
410
411   -without-* | --without-*)
412     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
413     # Reject names that are not valid shell variable names.
414     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416     fi
417     ac_package=`echo $ac_package| sed 's/-/_/g'`
418     eval "with_${ac_package}=no" ;;
419
420   --x)
421     # Obsolete; use --with-x.
422     with_x=yes ;;
423
424   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
425   | --x-incl | --x-inc | --x-in | --x-i)
426     ac_prev=x_includes ;;
427   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
428   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
429     x_includes="$ac_optarg" ;;
430
431   -x-libraries | --x-libraries | --x-librarie | --x-librari \
432   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
433     ac_prev=x_libraries ;;
434   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
435   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
436     x_libraries="$ac_optarg" ;;
437
438   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439     ;;
440
441   *)
442     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443       echo "configure: warning: $ac_option: invalid host type" 1>&2
444     fi
445     if test "x$nonopt" != xNONE; then
446       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447     fi
448     nonopt="$ac_option"
449     ;;
450
451   esac
452 done
453
454 if test -n "$ac_prev"; then
455   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 fi
457
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459
460 # File descriptor usage:
461 # 0 standard input
462 # 1 file creation
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
469   exec 6>/dev/null
470 else
471   exec 6>&1
472 fi
473 exec 5>./config.log
474
475 echo "\
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
478 " 1>&5
479
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
482 ac_configure_args=
483 for ac_arg
484 do
485   case "$ac_arg" in
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c) ;;
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
490   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
492   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
493   esac
494 done
495
496 # NLS nuisances.
497 # Only set these to C if already set.  These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
502 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
505
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 echo > confdefs.h
510
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file=make/stepmake.lsm.in
514
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517   ac_srcdir_defaulted=yes
518   # Try the directory containing this script, then its parent.
519   ac_prog=$0
520   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522   srcdir=$ac_confdir
523   if test ! -r $srcdir/$ac_unique_file; then
524     srcdir=..
525   fi
526 else
527   ac_srcdir_defaulted=no
528 fi
529 if test ! -r $srcdir/$ac_unique_file; then
530   if test "$ac_srcdir_defaulted" = yes; then
531     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532   else
533     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534   fi
535 fi
536 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$CONFIG_SITE"; then
540   if test "x$prefix" != xNONE; then
541     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542   else
543     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544   fi
545 fi
546 for ac_site_file in $CONFIG_SITE; do
547   if test -r "$ac_site_file"; then
548     echo "loading site script $ac_site_file"
549     . "$ac_site_file"
550   fi
551 done
552
553 if test -r "$cache_file"; then
554   echo "loading cache $cache_file"
555   . $cache_file
556 else
557   echo "creating cache $cache_file"
558   > $cache_file
559 fi
560
561 ac_ext=c
562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563 ac_cpp='$CPP $CPPFLAGS'
564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566 cross_compiling=$ac_cv_prog_cc_cross
567
568 ac_exeext=
569 ac_objext=o
570 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
571   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
573     ac_n= ac_c='
574 ' ac_t='        '
575   else
576     ac_n=-n ac_c= ac_t=
577   fi
578 else
579   ac_n= ac_c='\c' ac_t=
580 fi
581
582
583
584
585 # Bootstrap StepMake configure
586
587
588     . $srcdir/VERSION
589     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
590     if test x$MY_PATCH_LEVEL != x; then
591         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
592     fi
593
594     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
595         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
596     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
597     
598     # No versioning on directory names of sub-packages 
599     # urg, urg
600     stepmake=${datadir}/stepmake
601     presome=${prefix}
602     if test "$prefix" = "NONE"; then
603             presome=${ac_default_prefix}
604     fi
605     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
606
607     echo $ac_n "checking Package""... $ac_c" 1>&6
608 echo "configure:609: checking Package" >&5
609     if test "x$PACKAGE" = "xSTEPMAKE"; then
610         echo "$ac_t""Stepmake package!" 1>&6
611         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
612         (cd stepmake; rm -f bin; ln -s ../bin .)
613         ac_aux_dir=
614 for ac_dir in bin $srcdir/bin; do
615   if test -f $ac_dir/install-sh; then
616     ac_aux_dir=$ac_dir
617     ac_install_sh="$ac_aux_dir/install-sh -c"
618     break
619   elif test -f $ac_dir/install.sh; then
620     ac_aux_dir=$ac_dir
621     ac_install_sh="$ac_aux_dir/install.sh -c"
622     break
623   fi
624 done
625 if test -z "$ac_aux_dir"; then
626   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
627 fi
628 ac_config_guess=$ac_aux_dir/config.guess
629 ac_config_sub=$ac_aux_dir/config.sub
630 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
631
632         stepmake=stepmake
633     else
634         echo "$ac_t""$PACKAGE" 1>&6
635         echo $ac_n "checking for stepmake""... $ac_c" 1>&6
636 echo "configure:637: checking for stepmake" >&5
637         # Check for installed stepmake
638         if test -d $stepmake; then
639             echo "$ac_t""$stepmake" 1>&6
640         else
641             stepmake='$(depth)'/stepmake
642             echo "$ac_t""./stepmake  ($datadir/stepmake not found)" 1>&6
643         fi
644         ac_aux_dir=
645 for ac_dir in \
646           $HOME/usr/local/share/stepmake/bin\
647           $HOME/usr/local/lib/stepmake/bin\
648           $HOME/usr/share/stepmake/bin\
649           $HOME/usr/lib/stepmake/bin\
650           /usr/local/share/stepmake/bin\
651           /usr/local/lib/stepmake/bin\
652           /usr/share/stepmake/bin\
653           /usr/lib/stepmake/bin\
654           stepmake/bin\
655          $srcdir/\
656           $HOME/usr/local/share/stepmake/bin\
657           $HOME/usr/local/lib/stepmake/bin\
658           $HOME/usr/share/stepmake/bin\
659           $HOME/usr/lib/stepmake/bin\
660           /usr/local/share/stepmake/bin\
661           /usr/local/lib/stepmake/bin\
662           /usr/share/stepmake/bin\
663           /usr/lib/stepmake/bin\
664           stepmake/bin\
665         ; do
666   if test -f $ac_dir/install-sh; then
667     ac_aux_dir=$ac_dir
668     ac_install_sh="$ac_aux_dir/install-sh -c"
669     break
670   elif test -f $ac_dir/install.sh; then
671     ac_aux_dir=$ac_dir
672     ac_install_sh="$ac_aux_dir/install.sh -c"
673     break
674   fi
675 done
676 if test -z "$ac_aux_dir"; then
677   { echo "configure: error: can not find install-sh or install.sh in \
678           $HOME/usr/local/share/stepmake/bin\
679           $HOME/usr/local/lib/stepmake/bin\
680           $HOME/usr/share/stepmake/bin\
681           $HOME/usr/lib/stepmake/bin\
682           /usr/local/share/stepmake/bin\
683           /usr/local/lib/stepmake/bin\
684           /usr/share/stepmake/bin\
685           /usr/lib/stepmake/bin\
686           stepmake/bin\
687          $srcdir/\
688           $HOME/usr/local/share/stepmake/bin\
689           $HOME/usr/local/lib/stepmake/bin\
690           $HOME/usr/share/stepmake/bin\
691           $HOME/usr/lib/stepmake/bin\
692           /usr/local/share/stepmake/bin\
693           /usr/local/lib/stepmake/bin\
694           /usr/share/stepmake/bin\
695           /usr/lib/stepmake/bin\
696           stepmake/bin\
697         " 1>&2; exit 1; }
698 fi
699 ac_config_guess=$ac_aux_dir/config.guess
700 ac_config_sub=$ac_aux_dir/config.sub
701 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
702
703     fi
704
705     
706     
707     
708     
709     cat >> confdefs.h <<EOF
710 #define PACKAGE "${PACKAGE_NAME}"
711 EOF
712
713     cat >> confdefs.h <<EOF
714 #define TOPLEVEL_VERSION "${FULL_VERSION}"
715 EOF
716
717
718     if test "$package_depth" = "" ; then
719         package_depth="."
720     else
721         package_depth="../$package_depth"
722     fi
723     export package_depth
724     
725
726     AUTOGENERATE="This file was automatically generated by configure"
727     
728     absolute_builddir="`pwd`"
729     
730
731     STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
732     if test "x$STATE_VECTOR" != "x"; then
733         STATE_VECTOR="\$(depth)/$STATE_VECTOR"
734     fi
735     
736
737     CONFIGSUFFIX=
738     # Check whether --enable-config or --disable-config was given.
739 if test "${enable_config+set}" = set; then
740   enableval="$enable_config"
741   CONFIGSUFFIX=$enableval
742 fi
743
744
745     if test "$CONFIGSUFFIX" != "" ; then
746         CONFIGFILE=config-$CONFIGSUFFIX
747     else
748         CONFIGFILE=config
749     fi
750     
751      
752     
753 # Make sure we can run config.sub.
754 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
755 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
756 fi
757
758 echo $ac_n "checking host system type""... $ac_c" 1>&6
759 echo "configure:760: checking host system type" >&5
760
761 host_alias=$host
762 case "$host_alias" in
763 NONE)
764   case $nonopt in
765   NONE)
766     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
767     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
768     fi ;;
769   *) host_alias=$nonopt ;;
770   esac ;;
771 esac
772
773 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
774 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777 echo "$ac_t""$host" 1>&6
778
779     for ac_prog in gmake make
780 do
781 # Extract the first word of "$ac_prog", so it can be a program name with args.
782 set dummy $ac_prog; ac_word=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
786   echo $ac_n "(cached) $ac_c" 1>&6
787 else
788   if test -n "$MAKE"; then
789   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
790 else
791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
792   ac_dummy="$PATH"
793   for ac_dir in $ac_dummy; do
794     test -z "$ac_dir" && ac_dir=.
795     if test -f $ac_dir/$ac_word; then
796       ac_cv_prog_MAKE="$ac_prog"
797       break
798     fi
799   done
800   IFS="$ac_save_ifs"
801 fi
802 fi
803 MAKE="$ac_cv_prog_MAKE"
804 if test -n "$MAKE"; then
805   echo "$ac_t""$MAKE" 1>&6
806 else
807   echo "$ac_t""no" 1>&6
808 fi
809
810 test -n "$MAKE" && break
811 done
812 test -n "$MAKE" || MAKE="error"
813
814     for ac_prog in find
815 do
816 # Extract the first word of "$ac_prog", so it can be a program name with args.
817 set dummy $ac_prog; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
821   echo $ac_n "(cached) $ac_c" 1>&6
822 else
823   if test -n "$FIND"; then
824   ac_cv_prog_FIND="$FIND" # Let the user override the test.
825 else
826   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
827   ac_dummy="$PATH"
828   for ac_dir in $ac_dummy; do
829     test -z "$ac_dir" && ac_dir=.
830     if test -f $ac_dir/$ac_word; then
831       ac_cv_prog_FIND="$ac_prog"
832       break
833     fi
834   done
835   IFS="$ac_save_ifs"
836 fi
837 fi
838 FIND="$ac_cv_prog_FIND"
839 if test -n "$FIND"; then
840   echo "$ac_t""$FIND" 1>&6
841 else
842   echo "$ac_t""no" 1>&6
843 fi
844
845 test -n "$FIND" && break
846 done
847 test -n "$FIND" || FIND="error"
848
849
850
851     for ac_prog in tar
852 do
853 # Extract the first word of "$ac_prog", so it can be a program name with args.
854 set dummy $ac_prog; ac_word=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
858   echo $ac_n "(cached) $ac_c" 1>&6
859 else
860   if test -n "$TAR"; then
861   ac_cv_prog_TAR="$TAR" # Let the user override the test.
862 else
863   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
864   ac_dummy="$PATH"
865   for ac_dir in $ac_dummy; do
866     test -z "$ac_dir" && ac_dir=.
867     if test -f $ac_dir/$ac_word; then
868       ac_cv_prog_TAR="$ac_prog"
869       break
870     fi
871   done
872   IFS="$ac_save_ifs"
873 fi
874 fi
875 TAR="$ac_cv_prog_TAR"
876 if test -n "$TAR"; then
877   echo "$ac_t""$TAR" 1>&6
878 else
879   echo "$ac_t""no" 1>&6
880 fi
881
882 test -n "$TAR" && break
883 done
884 test -n "$TAR" || TAR="error"
885
886
887     if test "x`uname`" = "xHP-UX"; then
888         # Extract the first word of "bash", so it can be a program name with args.
889 set dummy bash; ac_word=$2
890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
891 echo "configure:892: checking for $ac_word" >&5
892 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
893   echo $ac_n "(cached) $ac_c" 1>&6
894 else
895   case "$BASH" in
896   /*)
897   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
898   ;;
899   ?:/*)                  
900   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
901   ;;
902   *)
903   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
904   ac_dummy="$PATH"
905   for ac_dir in $ac_dummy; do 
906     test -z "$ac_dir" && ac_dir=.
907     if test -f $ac_dir/$ac_word; then
908       ac_cv_path_BASH="$ac_dir/$ac_word"
909       break
910     fi
911   done
912   IFS="$ac_save_ifs"
913   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
914   ;;
915 esac
916 fi
917 BASH="$ac_cv_path_BASH"
918 if test -n "$BASH"; then
919   echo "$ac_t""$BASH" 1>&6
920 else
921   echo "$ac_t""no" 1>&6
922 fi
923
924         
925     echo "configure: warning: avoiding buggy /bin/sh" 1>&2
926     warn_b=yes
927
928         # Extract the first word of "bash", so it can be a program name with args.
929 set dummy bash; ac_word=$2
930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931 echo "configure:932: checking for $ac_word" >&5
932 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
933   echo $ac_n "(cached) $ac_c" 1>&6
934 else
935   case "$SHELL" in
936   /*)
937   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
938   ;;
939   ?:/*)                  
940   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
941   ;;
942   *)
943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
944   ac_dummy="$PATH"
945   for ac_dir in $ac_dummy; do 
946     test -z "$ac_dir" && ac_dir=.
947     if test -f $ac_dir/$ac_word; then
948       ac_cv_path_SHELL="$ac_dir/$ac_word"
949       break
950     fi
951   done
952   IFS="$ac_save_ifs"
953   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
954   ;;
955 esac
956 fi
957 SHELL="$ac_cv_path_SHELL"
958 if test -n "$SHELL"; then
959   echo "$ac_t""$SHELL" 1>&6
960 else
961   echo "$ac_t""no" 1>&6
962 fi
963
964     else
965         # Extract the first word of "bash", so it can be a program name with args.
966 set dummy bash; ac_word=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
970   echo $ac_n "(cached) $ac_c" 1>&6
971 else
972   case "$BASH" in
973   /*)
974   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
975   ;;
976   ?:/*)                  
977   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
978   ;;
979   *)
980   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
981   ac_dummy="$PATH"
982   for ac_dir in $ac_dummy; do 
983     test -z "$ac_dir" && ac_dir=.
984     if test -f $ac_dir/$ac_word; then
985       ac_cv_path_BASH="$ac_dir/$ac_word"
986       break
987     fi
988   done
989   IFS="$ac_save_ifs"
990   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
991   ;;
992 esac
993 fi
994 BASH="$ac_cv_path_BASH"
995 if test -n "$BASH"; then
996   echo "$ac_t""$BASH" 1>&6
997 else
998   echo "$ac_t""no" 1>&6
999 fi
1000
1001         SHELL=/bin/sh
1002         
1003     fi
1004
1005
1006     # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1007 set dummy ${PYTHON:-python}; ac_word=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1009 echo "configure:1010: checking for $ac_word" >&5
1010 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1011   echo $ac_n "(cached) $ac_c" 1>&6
1012 else
1013   case "$PYTHON" in
1014   /*)
1015   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1016   ;;
1017   ?:/*)                  
1018   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1019   ;;
1020   *)
1021   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1022   ac_dummy="$PATH"
1023   for ac_dir in $ac_dummy; do 
1024     test -z "$ac_dir" && ac_dir=.
1025     if test -f $ac_dir/$ac_word; then
1026       ac_cv_path_PYTHON="$ac_dir/$ac_word"
1027       break
1028     fi
1029   done
1030   IFS="$ac_save_ifs"
1031   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1032   ;;
1033 esac
1034 fi
1035 PYTHON="$ac_cv_path_PYTHON"
1036 if test -n "$PYTHON"; then
1037   echo "$ac_t""$PYTHON" 1>&6
1038 else
1039   echo "$ac_t""no" 1>&6
1040 fi
1041
1042     
1043
1044     if test $MAKE != "error" ; then
1045         $MAKE -v 2> /dev/null | grep GNU > /dev/null
1046         if test "$?" = 1
1047         then
1048                 
1049     echo "configure: warning: Please install *GNU* make" 1>&2
1050     warn_b=yes
1051  
1052         fi
1053     fi 
1054
1055     
1056         result="`echo \"$PYTHON\" | grep echo`"
1057         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1058                 
1059     echo "configure: warning: can\'t find python. You should install Python" 1>&2
1060     warn_b=yes
1061
1062         fi
1063
1064
1065     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1066         LN=cp # hard link does not work under cygnus-nt
1067         LN_S='cp -r' # symbolic link does not work for native nt
1068         ZIP="zip -r -9" #
1069         DOTEXE=.exe
1070         # urg
1071         # DIRSEP='\\'
1072         # PATHSEP=';'
1073         #
1074         # cygwin fixes all these things.  
1075         # it seems these were used because of dos-style TEXINPUTS and
1076         # MFINPUTS needed for miktex.
1077         # but this breaks parsing of all other cygwin/unix style paths.
1078         #
1079         # if your (mik)tex breaks, make a:
1080         #    /usr/local/bin/tex:
1081         #    #!/bin/sh
1082         #    TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex 
1083         #
1084         # and
1085         #
1086         #    /usr/local/bin/mf:
1087         #    #!/bin/sh
1088         #    MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf 
1089         #
1090         # this way, you may have buildscripts/out/lilypond-profile 
1091         # 'automatically' sourced from /usr/etc/profile.d/ too.
1092         #
1093         DIRSEP='/'
1094         PATHSEP=':'
1095         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1096     else
1097         DIRSEP='/'
1098         PATHSEP=':'
1099         LN=ln
1100         LN_S='ln -s'
1101         ZIP="zip -r -9"
1102         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1103     fi
1104     
1105     
1106     
1107     
1108     
1109     cat >> confdefs.h <<EOF
1110 #define DIRSEP '${DIRSEP}'
1111 EOF
1112
1113     cat >> confdefs.h <<EOF
1114 #define PATHSEP '${PATHSEP}'
1115 EOF
1116
1117     
1118     
1119   
1120    
1121     
1122     if test "$datadir" = "\${prefix}/share"; then
1123             datadir='${prefix}/share/'$package
1124     fi
1125     DIR_DATADIR=${datadir}
1126     presome=${prefix}
1127     if test "$prefix" = "NONE"; then
1128             presome=${ac_default_prefix}
1129     fi
1130     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1131     
1132     
1133     cat >> confdefs.h <<EOF
1134 #define DIR_DATADIR "${DIR_DATADIR}"
1135 EOF
1136
1137
1138
1139
1140 # For all packages except the StepMake package itself
1141 # AC_CONFIG_SUBDIRS(stepmake)
1142
1143 # Uncomment the configuration options your package needs.
1144 # AC_STEPMAKE_COMPILE
1145 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1146 # AC_STEPMAKE_CXX
1147 # AC_STEPMAKE_GXX
1148 # AC_STEPMAKE_CXXTEMPLATE
1149 # AC_STEPMAKE_LEXYACC
1150 # AC_STEPMAKE_LIB
1151 # AC_STEPMAKE_LIBTOOL
1152
1153     lang=English
1154     ALL_LINGUAS="en nl"
1155
1156     # with/enable ??
1157     # Check whether --with-localedir or --without-localedir was given.
1158 if test "${with_localedir+set}" = set; then
1159   withval="$with_localedir"
1160   localedir=$with_localedir
1161 else
1162   localedir='${prefix}/share/locale'
1163 fi
1164
1165
1166     # Check whether --with-lang or --without-lang was given.
1167 if test "${with_lang+set}" = set; then
1168   withval="$with_lang"
1169   language=$with_lang
1170 else
1171   language=English
1172 fi
1173
1174
1175     echo $ac_n "checking language""... $ac_c" 1>&6
1176 echo "configure:1177: checking language" >&5    
1177     case "$language" in
1178       En* | en* | Am* | am* | US* | us*)
1179             lang=English;;
1180       NL | nl | Du* | du* | Ned* | ned*)
1181             lang=Dutch;;
1182       "")
1183             lang=English;;
1184       *)
1185             lang=unknown;;
1186     esac
1187     echo "$ac_t""$lang" 1>&6
1188
1189     if test "$lang" = "unknown" ; then
1190         
1191     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1192     warn_b=yes
1193
1194     fi
1195
1196
1197 # AC_STEPMAKE_GETTEXT
1198 # AC_STEPMAKE_MAN
1199 # AC_STEPMAKE_MSGFMT
1200 # AC_STEPMAKE_TEXMF
1201 # AC_STEPMAKE_TEXMF_DIRS
1202
1203     if test "x$YODL" = "x"; then 
1204         for ac_prog in striproff
1205 do
1206 # Extract the first word of "$ac_prog", so it can be a program name with args.
1207 set dummy $ac_prog; ac_word=$2
1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_word" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
1211   echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213   if test -n "$STRIPROFF"; then
1214   ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
1215 else
1216   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1217   ac_dummy="$PATH"
1218   for ac_dir in $ac_dummy; do
1219     test -z "$ac_dir" && ac_dir=.
1220     if test -f $ac_dir/$ac_word; then
1221       ac_cv_prog_STRIPROFF="$ac_prog"
1222       break
1223     fi
1224   done
1225   IFS="$ac_save_ifs"
1226 fi
1227 fi
1228 STRIPROFF="$ac_cv_prog_STRIPROFF"
1229 if test -n "$STRIPROFF"; then
1230   echo "$ac_t""$STRIPROFF" 1>&6
1231 else
1232   echo "$ac_t""no" 1>&6
1233 fi
1234
1235 test -n "$STRIPROFF" && break
1236 done
1237 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
1238
1239         for ac_prog in yodl
1240 do
1241 # Extract the first word of "$ac_prog", so it can be a program name with args.
1242 set dummy $ac_prog; ac_word=$2
1243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1244 echo "configure:1245: checking for $ac_word" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
1246   echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248   if test -n "$YODL"; then
1249   ac_cv_prog_YODL="$YODL" # Let the user override the test.
1250 else
1251   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1252   ac_dummy="$PATH"
1253   for ac_dir in $ac_dummy; do
1254     test -z "$ac_dir" && ac_dir=.
1255     if test -f $ac_dir/$ac_word; then
1256       ac_cv_prog_YODL="$ac_prog"
1257       break
1258     fi
1259   done
1260   IFS="$ac_save_ifs"
1261 fi
1262 fi
1263 YODL="$ac_cv_prog_YODL"
1264 if test -n "$YODL"; then
1265   echo "$ac_t""$YODL" 1>&6
1266 else
1267   echo "$ac_t""no" 1>&6
1268 fi
1269
1270 test -n "$YODL" && break
1271 done
1272 test -n "$YODL" || YODL="-echo no yodl"
1273
1274         for ac_prog in yodl2html
1275 do
1276 # Extract the first word of "$ac_prog", so it can be a program name with args.
1277 set dummy $ac_prog; ac_word=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
1281   echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283   if test -n "$YODL2HTML"; then
1284   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
1285 else
1286   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1287   ac_dummy="$PATH"
1288   for ac_dir in $ac_dummy; do
1289     test -z "$ac_dir" && ac_dir=.
1290     if test -f $ac_dir/$ac_word; then
1291       ac_cv_prog_YODL2HTML="$ac_prog"
1292       break
1293     fi
1294   done
1295   IFS="$ac_save_ifs"
1296 fi
1297 fi
1298 YODL2HTML="$ac_cv_prog_YODL2HTML"
1299 if test -n "$YODL2HTML"; then
1300   echo "$ac_t""$YODL2HTML" 1>&6
1301 else
1302   echo "$ac_t""no" 1>&6
1303 fi
1304
1305 test -n "$YODL2HTML" && break
1306 done
1307 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
1308
1309         for ac_prog in yodl2latex
1310 do
1311 # Extract the first word of "$ac_prog", so it can be a program name with args.
1312 set dummy $ac_prog; ac_word=$2
1313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314 echo "configure:1315: checking for $ac_word" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
1316   echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318   if test -n "$YODL2LATEX"; then
1319   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
1320 else
1321   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1322   ac_dummy="$PATH"
1323   for ac_dir in $ac_dummy; do
1324     test -z "$ac_dir" && ac_dir=.
1325     if test -f $ac_dir/$ac_word; then
1326       ac_cv_prog_YODL2LATEX="$ac_prog"
1327       break
1328     fi
1329   done
1330   IFS="$ac_save_ifs"
1331 fi
1332 fi
1333 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
1334 if test -n "$YODL2LATEX"; then
1335   echo "$ac_t""$YODL2LATEX" 1>&6
1336 else
1337   echo "$ac_t""no" 1>&6
1338 fi
1339
1340 test -n "$YODL2LATEX" && break
1341 done
1342
1343         for ac_prog in yodl2man
1344 do
1345 # Extract the first word of "$ac_prog", so it can be a program name with args.
1346 set dummy $ac_prog; ac_word=$2
1347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1348 echo "configure:1349: checking for $ac_word" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
1350   echo $ac_n "(cached) $ac_c" 1>&6
1351 else
1352   if test -n "$YODL2MAN"; then
1353   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
1354 else
1355   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1356   ac_dummy="$PATH"
1357   for ac_dir in $ac_dummy; do
1358     test -z "$ac_dir" && ac_dir=.
1359     if test -f $ac_dir/$ac_word; then
1360       ac_cv_prog_YODL2MAN="$ac_prog"
1361       break
1362     fi
1363   done
1364   IFS="$ac_save_ifs"
1365 fi
1366 fi
1367 YODL2MAN="$ac_cv_prog_YODL2MAN"
1368 if test -n "$YODL2MAN"; then
1369   echo "$ac_t""$YODL2MAN" 1>&6
1370 else
1371   echo "$ac_t""no" 1>&6
1372 fi
1373
1374 test -n "$YODL2MAN" && break
1375 done
1376 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
1377
1378         for ac_prog in yodl2msless
1379 do
1380 # Extract the first word of "$ac_prog", so it can be a program name with args.
1381 set dummy $ac_prog; ac_word=$2
1382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1383 echo "configure:1384: checking for $ac_word" >&5
1384 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
1385   echo $ac_n "(cached) $ac_c" 1>&6
1386 else
1387   if test -n "$YODL2MSLESS"; then
1388   ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
1389 else
1390   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1391   ac_dummy="$PATH"
1392   for ac_dir in $ac_dummy; do
1393     test -z "$ac_dir" && ac_dir=.
1394     if test -f $ac_dir/$ac_word; then
1395       ac_cv_prog_YODL2MSLESS="$ac_prog"
1396       break
1397     fi
1398   done
1399   IFS="$ac_save_ifs"
1400 fi
1401 fi
1402 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
1403 if test -n "$YODL2MSLESS"; then
1404   echo "$ac_t""$YODL2MSLESS" 1>&6
1405 else
1406   echo "$ac_t""no" 1>&6
1407 fi
1408
1409 test -n "$YODL2MSLESS" && break
1410 done
1411 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
1412
1413         for ac_prog in yodl2texinfo
1414 do
1415 # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
1420   echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422   if test -n "$YODL2TEXINFO"; then
1423   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
1424 else
1425   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1426   ac_dummy="$PATH"
1427   for ac_dir in $ac_dummy; do
1428     test -z "$ac_dir" && ac_dir=.
1429     if test -f $ac_dir/$ac_word; then
1430       ac_cv_prog_YODL2TEXINFO="$ac_prog"
1431       break
1432     fi
1433   done
1434   IFS="$ac_save_ifs"
1435 fi
1436 fi
1437 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
1438 if test -n "$YODL2TEXINFO"; then
1439   echo "$ac_t""$YODL2TEXINFO" 1>&6
1440 else
1441   echo "$ac_t""no" 1>&6
1442 fi
1443
1444 test -n "$YODL2TEXINFO" && break
1445 done
1446 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
1447
1448         for ac_prog in yodl2txt
1449 do
1450 # Extract the first word of "$ac_prog", so it can be a program name with args.
1451 set dummy $ac_prog; ac_word=$2
1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1453 echo "configure:1454: checking for $ac_word" >&5
1454 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
1455   echo $ac_n "(cached) $ac_c" 1>&6
1456 else
1457   if test -n "$YODL2TXT"; then
1458   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
1459 else
1460   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1461   ac_dummy="$PATH"
1462   for ac_dir in $ac_dummy; do
1463     test -z "$ac_dir" && ac_dir=.
1464     if test -f $ac_dir/$ac_word; then
1465       ac_cv_prog_YODL2TXT="$ac_prog"
1466       break
1467     fi
1468   done
1469   IFS="$ac_save_ifs"
1470 fi
1471 fi
1472 YODL2TXT="$ac_cv_prog_YODL2TXT"
1473 if test -n "$YODL2TXT"; then
1474   echo "$ac_t""$YODL2TXT" 1>&6
1475 else
1476   echo "$ac_t""no" 1>&6
1477 fi
1478
1479 test -n "$YODL2TXT" && break
1480 done
1481 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
1482
1483         YODL2LESS_DIR='$(bindir)/'
1484     else
1485         
1486         
1487         
1488         
1489         
1490         
1491         
1492         
1493         
1494         export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
1495     fi
1496     if test "x$YODL" = "-echo no yodl"; then
1497         
1498     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
1499     warn_b=yes
1500
1501     fi    
1502
1503
1504 # AM_PATH_GTK(1.0.0,,AC_MSG_ERROR([please install proper version of gtk]))
1505 # AM_PATH_GTK__(0.9.4,,AC_MSG_ERROR([please install proper version of gtk--]))
1506
1507 for ac_prog in makeinfo
1508 do
1509 # Extract the first word of "$ac_prog", so it can be a program name with args.
1510 set dummy $ac_prog; ac_word=$2
1511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $ac_word" >&5
1513 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1514   echo $ac_n "(cached) $ac_c" 1>&6
1515 else
1516   if test -n "$MAKEINFO"; then
1517   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1518 else
1519   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1520   ac_dummy="$PATH"
1521   for ac_dir in $ac_dummy; do
1522     test -z "$ac_dir" && ac_dir=.
1523     if test -f $ac_dir/$ac_word; then
1524       ac_cv_prog_MAKEINFO="$ac_prog"
1525       break
1526     fi
1527   done
1528   IFS="$ac_save_ifs"
1529 fi
1530 fi
1531 MAKEINFO="$ac_cv_prog_MAKEINFO"
1532 if test -n "$MAKEINFO"; then
1533   echo "$ac_t""$MAKEINFO" 1>&6
1534 else
1535   echo "$ac_t""no" 1>&6
1536 fi
1537
1538 test -n "$MAKEINFO" && break
1539 done
1540 test -n "$MAKEINFO" || MAKEINFO="error"
1541
1542 # AC_CHECK_SEARCH_RESULT($YODL2TEXINFO, yodl,  
1543 #    You should install Yodl 1.30.pre6 or better)
1544
1545
1546     trap '' 1 2 15
1547 cat > confcache <<\EOF
1548 # This file is a shell script that caches the results of configure
1549 # tests run on this system so they can be shared between configure
1550 # scripts and configure runs.  It is not useful on other systems.
1551 # If it contains results you don't want to keep, you may remove or edit it.
1552 #
1553 # By default, configure uses ./config.cache as the cache file,
1554 # creating it if it does not exist already.  You can give configure
1555 # the --cache-file=FILE option to use a different cache file; that is
1556 # what configure does when it calls configure scripts in
1557 # subdirectories, so they share the cache.
1558 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1559 # config.status only pays attention to the cache file if you give it the
1560 # --recheck option to rerun configure.
1561 #
1562 EOF
1563 # The following way of writing the cache mishandles newlines in values,
1564 # but we know of no workaround that is simple, portable, and efficient.
1565 # So, don't put newlines in cache variables' values.
1566 # Ultrix sh set writes to stderr and can't be redirected directly,
1567 # and sets the high bit in the cache file unless we assign to the vars.
1568 (set) 2>&1 |
1569   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1570   *ac_space=\ *)
1571     # `set' does not quote correctly, so add quotes (double-quote substitution
1572     # turns \\\\ into \\, and sed turns \\ into \).
1573     sed -n \
1574       -e "s/'/'\\\\''/g" \
1575       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1576     ;;
1577   *)
1578     # `set' quotes correctly as required by POSIX, so do not add quotes.
1579     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1580     ;;
1581   esac >> confcache
1582 if cmp -s $cache_file confcache; then
1583   :
1584 else
1585   if test -w $cache_file; then
1586     echo "updating cache $cache_file"
1587     cat confcache > $cache_file
1588   else
1589     echo "not updating unwritable cache $cache_file"
1590   fi
1591 fi
1592 rm -f confcache
1593
1594 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1595
1596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1597 # Let make expand exec_prefix.
1598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1599
1600 # Any assignment to VPATH causes Sun make to only execute
1601 # the first set of double-colon rules, so remove it if not needed.
1602 # If there is a colon in the path, we need to keep it.
1603 if test "x$srcdir" = x.; then
1604   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1605 fi
1606
1607 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1608
1609 DEFS=-DHAVE_CONFIG_H
1610
1611 # Without the "./", some shells look in PATH for config.status.
1612 : ${CONFIG_STATUS=./config.status}
1613
1614 echo creating $CONFIG_STATUS
1615 rm -f $CONFIG_STATUS
1616 cat > $CONFIG_STATUS <<EOF
1617 #! /bin/sh
1618 # Generated automatically by configure.
1619 # Run this file to recreate the current configuration.
1620 # This directory was configured as follows,
1621 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1622 #
1623 # $0 $ac_configure_args
1624 #
1625 # Compiler output produced by configure, useful for debugging
1626 # configure, is in ./config.log if it exists.
1627
1628 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1629 for ac_option
1630 do
1631   case "\$ac_option" in
1632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1633     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1634     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1635   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1636     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1637     exit 0 ;;
1638   -help | --help | --hel | --he | --h)
1639     echo "\$ac_cs_usage"; exit 0 ;;
1640   *) echo "\$ac_cs_usage"; exit 1 ;;
1641   esac
1642 done
1643
1644 ac_given_srcdir=$srcdir
1645
1646 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1647 EOF
1648 cat >> $CONFIG_STATUS <<EOF
1649
1650 # Protect against being on the right side of a sed subst in config.status.
1651 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1652  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1653 $ac_vpsub
1654 $extrasub
1655 s%@SHELL@%$SHELL%g
1656 s%@CFLAGS@%$CFLAGS%g
1657 s%@CPPFLAGS@%$CPPFLAGS%g
1658 s%@CXXFLAGS@%$CXXFLAGS%g
1659 s%@FFLAGS@%$FFLAGS%g
1660 s%@DEFS@%$DEFS%g
1661 s%@LDFLAGS@%$LDFLAGS%g
1662 s%@LIBS@%$LIBS%g
1663 s%@exec_prefix@%$exec_prefix%g
1664 s%@prefix@%$prefix%g
1665 s%@program_transform_name@%$program_transform_name%g
1666 s%@bindir@%$bindir%g
1667 s%@sbindir@%$sbindir%g
1668 s%@libexecdir@%$libexecdir%g
1669 s%@datadir@%$datadir%g
1670 s%@sysconfdir@%$sysconfdir%g
1671 s%@sharedstatedir@%$sharedstatedir%g
1672 s%@localstatedir@%$localstatedir%g
1673 s%@libdir@%$libdir%g
1674 s%@includedir@%$includedir%g
1675 s%@oldincludedir@%$oldincludedir%g
1676 s%@infodir@%$infodir%g
1677 s%@mandir@%$mandir%g
1678 s%@stepmake@%$stepmake%g
1679 s%@package@%$package%g
1680 s%@PACKAGE@%$PACKAGE%g
1681 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
1682 s%@package_depth@%$package_depth%g
1683 s%@AUTOGENERATE@%$AUTOGENERATE%g
1684 s%@absolute_builddir@%$absolute_builddir%g
1685 s%@STATE_VECTOR@%$STATE_VECTOR%g
1686 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
1687 s%@host@%$host%g
1688 s%@host_alias@%$host_alias%g
1689 s%@host_cpu@%$host_cpu%g
1690 s%@host_vendor@%$host_vendor%g
1691 s%@host_os@%$host_os%g
1692 s%@MAKE@%$MAKE%g
1693 s%@FIND@%$FIND%g
1694 s%@TAR@%$TAR%g
1695 s%@BASH@%$BASH%g
1696 s%@PYTHON@%$PYTHON%g
1697 s%@DOTEXE@%$DOTEXE%g
1698 s%@ZIP@%$ZIP%g
1699 s%@LN@%$LN%g
1700 s%@LN_S@%$LN_S%g
1701 s%@INSTALL@%$INSTALL%g
1702 s%@PATHSEP@%$PATHSEP%g
1703 s%@DIRSEP@%$DIRSEP%g
1704 s%@DIR_DATADIR@%$DIR_DATADIR%g
1705 s%@STRIPROFF@%$STRIPROFF%g
1706 s%@YODL@%$YODL%g
1707 s%@YODL2HTML@%$YODL2HTML%g
1708 s%@YODL2LATEX@%$YODL2LATEX%g
1709 s%@YODL2MAN@%$YODL2MAN%g
1710 s%@YODL2MSLESS@%$YODL2MSLESS%g
1711 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
1712 s%@YODL2TXT@%$YODL2TXT%g
1713 s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
1714 s%@MAKEINFO@%$MAKEINFO%g
1715
1716 CEOF
1717 EOF
1718
1719 cat >> $CONFIG_STATUS <<\EOF
1720
1721 # Split the substitutions into bite-sized pieces for seds with
1722 # small command number limits, like on Digital OSF/1 and HP-UX.
1723 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1724 ac_file=1 # Number of current file.
1725 ac_beg=1 # First line for current file.
1726 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1727 ac_more_lines=:
1728 ac_sed_cmds=""
1729 while $ac_more_lines; do
1730   if test $ac_beg -gt 1; then
1731     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1732   else
1733     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1734   fi
1735   if test ! -s conftest.s$ac_file; then
1736     ac_more_lines=false
1737     rm -f conftest.s$ac_file
1738   else
1739     if test -z "$ac_sed_cmds"; then
1740       ac_sed_cmds="sed -f conftest.s$ac_file"
1741     else
1742       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1743     fi
1744     ac_file=`expr $ac_file + 1`
1745     ac_beg=$ac_end
1746     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1747   fi
1748 done
1749 if test -z "$ac_sed_cmds"; then
1750   ac_sed_cmds=cat
1751 fi
1752 EOF
1753
1754 cat >> $CONFIG_STATUS <<EOF
1755
1756 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
1757 EOF
1758 cat >> $CONFIG_STATUS <<\EOF
1759 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1760   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1761   case "$ac_file" in
1762   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1763        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1764   *) ac_file_in="${ac_file}.in" ;;
1765   esac
1766
1767   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1768
1769   # Remove last slash and all that follows it.  Not all systems have dirname.
1770   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1771   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1772     # The file is in a subdirectory.
1773     test ! -d "$ac_dir" && mkdir "$ac_dir"
1774     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1775     # A "../" for each directory in $ac_dir_suffix.
1776     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1777   else
1778     ac_dir_suffix= ac_dots=
1779   fi
1780
1781   case "$ac_given_srcdir" in
1782   .)  srcdir=.
1783       if test -z "$ac_dots"; then top_srcdir=.
1784       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1785   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1786   *) # Relative path.
1787     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1788     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1789   esac
1790
1791
1792   echo creating "$ac_file"
1793   rm -f "$ac_file"
1794   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1795   case "$ac_file" in
1796   *Makefile*) ac_comsub="1i\\
1797 # $configure_input" ;;
1798   *) ac_comsub= ;;
1799   esac
1800
1801   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1802   sed -e "$ac_comsub
1803 s%@configure_input@%$configure_input%g
1804 s%@srcdir@%$srcdir%g
1805 s%@top_srcdir@%$top_srcdir%g
1806 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1807 fi; done
1808 rm -f conftest.s*
1809
1810 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1811 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1812 #
1813 # ac_d sets the value in "#define NAME VALUE" lines.
1814 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1815 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1816 ac_dC='\3'
1817 ac_dD='%g'
1818 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1819 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1820 ac_uB='\([      ]\)%\1#\2define\3'
1821 ac_uC=' '
1822 ac_uD='\4%g'
1823 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1824 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1825 ac_eB='$%\1#\2define\3'
1826 ac_eC=' '
1827 ac_eD='%g'
1828
1829 if test "${CONFIG_HEADERS+set}" != set; then
1830 EOF
1831 cat >> $CONFIG_STATUS <<EOF
1832   CONFIG_HEADERS="$CONFIGFILE.hh:config.hh.in"
1833 EOF
1834 cat >> $CONFIG_STATUS <<\EOF
1835 fi
1836 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1837   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1838   case "$ac_file" in
1839   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1840        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1841   *) ac_file_in="${ac_file}.in" ;;
1842   esac
1843
1844   echo creating $ac_file
1845
1846   rm -f conftest.frag conftest.in conftest.out
1847   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1848   cat $ac_file_inputs > conftest.in
1849
1850 EOF
1851
1852 # Transform confdefs.h into a sed script conftest.vals that substitutes
1853 # the proper values into config.h.in to produce config.h.  And first:
1854 # Protect against being on the right side of a sed subst in config.status.
1855 # Protect against being in an unquoted here document in config.status.
1856 rm -f conftest.vals
1857 cat > conftest.hdr <<\EOF
1858 s/[\\&%]/\\&/g
1859 s%[\\$`]%\\&%g
1860 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1861 s%ac_d%ac_u%gp
1862 s%ac_u%ac_e%gp
1863 EOF
1864 sed -n -f conftest.hdr confdefs.h > conftest.vals
1865 rm -f conftest.hdr
1866
1867 # This sed command replaces #undef with comments.  This is necessary, for
1868 # example, in the case of _POSIX_SOURCE, which is predefined and required
1869 # on some systems where configure will not decide to define it.
1870 cat >> conftest.vals <<\EOF
1871 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1872 EOF
1873
1874 # Break up conftest.vals because some shells have a limit on
1875 # the size of here documents, and old seds have small limits too.
1876
1877 rm -f conftest.tail
1878 while :
1879 do
1880   ac_lines=`grep -c . conftest.vals`
1881   # grep -c gives empty output for an empty file on some AIX systems.
1882   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1883   # Write a limited-size here document to conftest.frag.
1884   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1885   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1886   echo 'CEOF
1887   sed -f conftest.frag conftest.in > conftest.out
1888   rm -f conftest.in
1889   mv conftest.out conftest.in
1890 ' >> $CONFIG_STATUS
1891   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1892   rm -f conftest.vals
1893   mv conftest.tail conftest.vals
1894 done
1895 rm -f conftest.vals
1896
1897 cat >> $CONFIG_STATUS <<\EOF
1898   rm -f conftest.frag conftest.h
1899   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1900   cat conftest.in >> conftest.h
1901   rm -f conftest.in
1902   if cmp -s $ac_file conftest.h 2>/dev/null; then
1903     echo "$ac_file is unchanged"
1904     rm -f conftest.h
1905   else
1906     # Remove last slash and all that follows it.  Not all systems have dirname.
1907       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1908       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1909       # The file is in a subdirectory.
1910       test ! -d "$ac_dir" && mkdir "$ac_dir"
1911     fi
1912     rm -f $ac_file
1913     mv conftest.h $ac_file
1914   fi
1915 fi; done
1916
1917 EOF
1918 cat >> $CONFIG_STATUS <<EOF
1919
1920 EOF
1921 cat >> $CONFIG_STATUS <<\EOF
1922
1923 exit 0
1924 EOF
1925 chmod +x $CONFIG_STATUS
1926 rm -fr confdefs* $ac_clean_files
1927 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1928
1929
1930     rm -f GNUmakefile
1931     cp make/toplevel.make.in ./GNUmakefile
1932     chmod 444 GNUmakefile
1933