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