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