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