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