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"
11 gtkmm_config_prefix=""
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"
22 gtkmm_config_exec_prefix=""
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"
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
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
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt 98-08-21 (adapted from Jan Nieuwenhuizen's code)
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.
60 # This configure script is free software; the Free Software Foundation
61 # gives unlimited permission to copy, distribute and modify it.
65 ac_default_prefix=/usr/local
66 # Any additions from configure.in:
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"
71 --with-localedir=LOCALE use LOCALE as locale dir. Default:
74 --with-lang=LANG use LANG as language to emit messages"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file=./config.cache
89 program_transform_name=s,x,x,
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'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
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" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
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; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
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; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
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.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
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
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host | --host | --hos | --ho)
252 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
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" ;;
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" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
373 -site=* | --site=* | --sit=*)
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
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" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
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; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
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" ;;
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" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
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
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
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; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
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
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
581 ac_n= ac_c='\c' ac_t=
587 # Bootstrap StepMake configure
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
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]'`
600 # No versioning on directory names of sub-packages
602 stepmake=${datadir}/stepmake
604 if test "$prefix" = "NONE"; then
605 presome=${ac_default_prefix}
607 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
609 # urg, how is this supposed to work?
610 if test "$program_prefix" = "NONE"; then
613 if test "$program_suffix" = "NONE"; then
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
622 echo $ac_n "checking builddir""... $ac_c" 1>&6
623 echo "configure:624: checking builddir" >&5
624 if test "$srcdir" = "."; then
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`"
632 echo "$ac_t""$builddir" 1>&6
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 .)
638 for ac_dir in bin $srcdir/bin; do
639 if test -f $ac_dir/install-sh; then
641 ac_install_sh="$ac_aux_dir/install-sh -c"
643 elif test -f $ac_dir/install.sh; then
645 ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
658 echo "$ac_t""$PACKAGE" 1>&6
660 echo $ac_n "checking builddir""... $ac_c" 1>&6
661 echo "configure:662: checking builddir" >&5
662 if test "$srcdir" = "."; then
666 absolute_builddir="`pwd`"
667 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
668 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
671 echo "$ac_t""$builddir" 1>&6
672 if expr "$srcdir" : '/' > /dev/null 2>&1; then
675 echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
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
686 if test "$absolute_srcdir" != "yes"; then
687 stepmake='$(depth)'/$srcdir/stepmake
689 stepmake=$srcdir/stepmake
691 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
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\
705 $srcdir/stepmake/bin\
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\
716 $srcdir/stepmake/bin\
718 if test -f $ac_dir/install-sh; then
720 ac_install_sh="$ac_aux_dir/install-sh -c"
722 elif test -f $ac_dir/install.sh; then
724 ac_install_sh="$ac_aux_dir/install.sh -c"
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\
739 $srcdir/stepmake/bin\
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\
750 $srcdir/stepmake/bin\
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.
764 cat >> confdefs.h <<EOF
765 #define PACKAGE "${PACKAGE_NAME}"
768 cat >> confdefs.h <<EOF
769 #define TOPLEVEL_VERSION "${FULL_VERSION}"
773 if test "$package_depth" = "" ; then
776 package_depth="../$package_depth"
781 AUTOGENERATE="This file was automatically generated by configure"
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
792 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
793 CONFIGFILE=config$CONFIGSUFFIX
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; }
802 echo $ac_n "checking host system type""... $ac_c" 1>&6
803 echo "configure:804: checking host system type" >&5
806 case "$host_alias" in
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; }
813 *) host_alias=$nonopt ;;
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
823 for ac_prog in gmake make
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
832 if test -n "$MAKE"; then
833 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
847 MAKE="$ac_cv_prog_MAKE"
848 if test -n "$MAKE"; then
849 echo "$ac_t""$MAKE" 1>&6
851 echo "$ac_t""no" 1>&6
854 test -n "$MAKE" && break
856 test -n "$MAKE" || MAKE="error"
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
867 if test -n "$FIND"; then
868 ac_cv_prog_FIND="$FIND" # Let the user override the test.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
882 FIND="$ac_cv_prog_FIND"
883 if test -n "$FIND"; then
884 echo "$ac_t""$FIND" 1>&6
886 echo "$ac_t""no" 1>&6
889 test -n "$FIND" && break
891 test -n "$FIND" || FIND="error"
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
904 if test -n "$TAR"; then
905 ac_cv_prog_TAR="$TAR" # Let the user override the test.
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
919 TAR="$ac_cv_prog_TAR"
920 if test -n "$TAR"; then
921 echo "$ac_t""$TAR" 1>&6
923 echo "$ac_t""no" 1>&6
926 test -n "$TAR" && break
928 test -n "$TAR" || TAR="error"
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
941 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
944 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
957 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
961 BASH="$ac_cv_path_BASH"
962 if test -n "$BASH"; then
963 echo "$ac_t""$BASH" 1>&6
965 echo "$ac_t""no" 1>&6
969 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
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
981 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
984 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
997 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1001 SHELL="$ac_cv_path_SHELL"
1002 if test -n "$SHELL"; then
1003 echo "$ac_t""$SHELL" 1>&6
1005 echo "$ac_t""no" 1>&6
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
1018 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1021 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1034 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1038 BASH="$ac_cv_path_BASH"
1039 if test -n "$BASH"; then
1040 echo "$ac_t""$BASH" 1>&6
1042 echo "$ac_t""no" 1>&6
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
1059 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1062 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1075 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1079 PYTHON="$ac_cv_path_PYTHON"
1080 if test -n "$PYTHON"; then
1081 echo "$ac_t""$PYTHON" 1>&6
1083 echo "$ac_t""no" 1>&6
1088 if test $MAKE != "error" ; then
1089 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1093 echo "configure: warning: Please install *GNU* make" 1>&2
1100 result="`echo \"$PYTHON\" | grep echo`"
1101 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1103 echo "configure: warning: can\'t find python. You should install Python" 1>&2
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
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.
1124 # if your (mik)tex breaks, make a:
1125 # /usr/local/bin/tex:
1127 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1131 # /usr/local/bin/mf:
1133 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1135 # this way, you may have buildscripts/out/lilypond-profile
1136 # 'automatically' sourced from /usr/etc/profile.d/ too.
1141 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1149 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1157 cat >> confdefs.h <<EOF
1158 #define DIRSEP '${DIRSEP}'
1161 cat >> confdefs.h <<EOF
1162 #define PATHSEP '${PATHSEP}'
1169 if test "$datadir" = "\${prefix}/share"; then
1170 datadir='${prefix}/share/'$package
1172 DIR_DATADIR=${datadir}
1174 if test "$prefix" = "NONE"; then
1175 presome=${ac_default_prefix}
1177 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1183 cat >> confdefs.h <<EOF
1184 #define DIR_DATADIR "${DIR_DATADIR}"
1190 # For all packages except the StepMake package itself
1191 # AC_CONFIG_SUBDIRS(stepmake)
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)
1198 # AC_STEPMAKE_CXXTEMPLATE
1199 # AC_STEPMAKE_LEXYACC
1201 # AC_STEPMAKE_LIBTOOL
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
1212 localedir='${prefix}/share/locale'
1216 # Check whether --with-lang or --without-lang was given.
1217 if test "${with_lang+set}" = set; then
1218 withval="$with_lang"
1225 echo $ac_n "checking language""... $ac_c" 1>&6
1226 echo "configure:1227: checking language" >&5
1228 En* | en* | Am* | am* | US* | us*)
1230 NL | nl | Du* | du* | Ned* | ned*)
1237 echo "$ac_t""$lang" 1>&6
1239 if test "$lang" = "unknown" ; then
1241 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1247 # AC_STEPMAKE_GETTEXT
1249 # AC_STEPMAKE_MSGFMT
1251 # AC_STEPMAKE_TEXMF_DIRS
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--]))
1256 for ac_prog in makeinfo
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
1265 if test -n "$MAKEINFO"; then
1266 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1280 MAKEINFO="$ac_cv_prog_MAKEINFO"
1281 if test -n "$MAKEINFO"; then
1282 echo "$ac_t""$MAKEINFO" 1>&6
1284 echo "$ac_t""no" 1>&6
1287 test -n "$MAKEINFO" && break
1289 test -n "$MAKEINFO" || MAKEINFO="error"
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.
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.
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.
1316 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1318 # `set' does not quote correctly, so add quotes (double-quote substitution
1319 # turns \\\\ into \\, and sed turns \\ into \).
1321 -e "s/'/'\\\\''/g" \
1322 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
1329 if cmp -s $cache_file confcache; then
1332 if test -w $cache_file; then
1333 echo "updating cache $cache_file"
1334 cat confcache > $cache_file
1336 echo "not updating unwritable cache $cache_file"
1341 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1344 # Let make expand exec_prefix.
1345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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'
1354 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1356 DEFS=-DHAVE_CONFIG_H
1358 # Without the "./", some shells look in PATH for config.status.
1359 : ${CONFIG_STATUS=./config.status}
1361 echo creating $CONFIG_STATUS
1362 rm -f $CONFIG_STATUS
1363 cat > $CONFIG_STATUS <<EOF
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`:
1370 # $0 $ac_configure_args
1372 # Compiler output produced by configure, useful for debugging
1373 # configure, is in ./config.log if it exists.
1375 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
1385 -help | --help | --hel | --he | --h)
1386 echo "\$ac_cs_usage"; exit 0 ;;
1387 *) echo "\$ac_cs_usage"; exit 1 ;;
1391 ac_given_srcdir=$srcdir
1393 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1395 cat >> $CONFIG_STATUS <<EOF
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
1403 s%@CFLAGS@%$CFLAGS%g
1404 s%@CPPFLAGS@%$CPPFLAGS%g
1405 s%@CXXFLAGS@%$CXXFLAGS%g
1406 s%@FFLAGS@%$FFLAGS%g
1408 s%@LDFLAGS@%$LDFLAGS%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
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
1442 s%@PYTHON@%$PYTHON%g
1443 s%@program_prefix@%$program_prefix%g
1444 s%@program_suffix@%$program_suffix%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
1457 cat >> $CONFIG_STATUS <<\EOF
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.
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
1471 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1473 if test ! -s conftest.s$ac_file; then
1475 rm -f conftest.s$ac_file
1477 if test -z "$ac_sed_cmds"; then
1478 ac_sed_cmds="sed -f conftest.s$ac_file"
1480 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1482 ac_file=`expr $ac_file + 1`
1484 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1487 if test -z "$ac_sed_cmds"; then
1492 cat >> $CONFIG_STATUS <<EOF
1494 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
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".
1500 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1501 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1502 *) ac_file_in="${ac_file}.in" ;;
1505 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
1516 ac_dir_suffix= ac_dots=
1519 case "$ac_given_srcdir" in
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" ;;
1525 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1526 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1530 echo creating "$ac_file"
1532 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1534 *Makefile*) ac_comsub="1i\\
1535 # $configure_input" ;;
1539 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
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.
1551 # ac_d sets the value in "#define NAME VALUE" lines.
1552 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1553 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1556 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1557 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1558 ac_uB='\([ ]\)%\1#\2define\3'
1561 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1562 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1563 ac_eB='$%\1#\2define\3'
1567 if test "${CONFIG_HEADERS+set}" != set; then
1569 cat >> $CONFIG_STATUS <<EOF
1570 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
1572 cat >> $CONFIG_STATUS <<\EOF
1574 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1575 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
1582 echo creating $ac_file
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
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.
1595 cat > conftest.hdr <<\EOF
1598 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1602 sed -n -f conftest.hdr confdefs.h > conftest.vals
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]*%/* & */%
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.
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
1625 sed -f conftest.frag conftest.in > conftest.out
1627 mv conftest.out conftest.in
1629 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1631 mv conftest.tail conftest.vals
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
1640 if cmp -s $ac_file conftest.h 2>/dev/null; then
1641 echo "$ac_file is unchanged"
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"
1651 mv conftest.h $ac_file
1656 cat >> $CONFIG_STATUS <<EOF
1659 cat >> $CONFIG_STATUS <<\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
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
1676 cp $srcdir/make/srcdir.make.in GNUmakefile
1677 chmod 444 GNUmakefile