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