3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --disable-nls do not use Native Language Support"
27 --with-included-gettext use the GNU gettext library included here"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.12.1"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=gprof.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
542 if test -f $ac_dir/install-sh; then
544 ac_install_sh="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh; then
548 ac_install_sh="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560 # Do some error checking and defaulting for the host and target type.
562 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
565 # 1. You are not allowed to specify --host, --target, and nonopt at the
567 # 2. Host defaults to nonopt.
568 # 3. If nonopt is not specified, then host defaults to the current host,
569 # as determined by config.guess.
570 # 4. Target and build default to nonopt.
571 # 5. If nonopt is not specified, then target and build default to host.
573 # The aliases save the names the user supplied, while $host etc.
574 # will get canonicalized.
575 case $host---$target---$nonopt in
576 NONE---*---* | *---NONE---* | *---*---NONE) ;;
577 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
581 # Make sure we can run config.sub.
582 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
583 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
586 echo $ac_n "checking host system type""... $ac_c" 1>&6
587 echo "configure:588: checking host system type" >&5
590 case "$host_alias" in
594 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
595 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
597 *) host_alias=$nonopt ;;
601 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
602 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
603 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
604 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
605 echo "$ac_t""$host" 1>&6
607 echo $ac_n "checking target system type""... $ac_c" 1>&6
608 echo "configure:609: checking target system type" >&5
611 case "$target_alias" in
614 NONE) target_alias=$host_alias ;;
615 *) target_alias=$nonopt ;;
619 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
620 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623 echo "$ac_t""$target" 1>&6
625 echo $ac_n "checking build system type""... $ac_c" 1>&6
626 echo "configure:627: checking build system type" >&5
629 case "$build_alias" in
632 NONE) build_alias=$host_alias ;;
633 *) build_alias=$nonopt ;;
637 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
638 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$build" 1>&6
643 test "$host_alias" != "$target_alias" &&
644 test "$program_prefix$program_suffix$program_transform_name" = \
646 program_prefix=${target_alias}-
649 # Find a good install program. We prefer a C program (faster),
650 # so one script is as good as another. But avoid the broken or
651 # incompatible versions:
652 # SysV /etc/install, /usr/sbin/install
653 # SunOS /usr/etc/install
656 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
657 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
658 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
659 # ./install, which can be erroneously created by make from ./install.sh.
660 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
661 echo "configure:662: checking for a BSD compatible install" >&5
662 if test -z "$INSTALL"; then
663 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
666 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
667 for ac_dir in $PATH; do
668 # Account for people who put trailing slashes in PATH elements.
670 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
672 # OSF1 and SCO ODT 3.0 have their own names for install.
673 # Don't use installbsd from OSF since it installs stuff as root
675 for ac_prog in ginstall scoinst install; do
676 if test -f $ac_dir/$ac_prog; then
677 if test $ac_prog = install &&
678 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
679 # AIX install. It has an incompatible calling convention.
682 ac_cv_path_install="$ac_dir/$ac_prog -c"
693 if test "${ac_cv_path_install+set}" = set; then
694 INSTALL="$ac_cv_path_install"
696 # As a last resort, use the slow shell script. We don't cache a
697 # path for INSTALL within a source directory, because that will
698 # break other packages using the cache if that directory is
699 # removed, or if the path is relative.
700 INSTALL="$ac_install_sh"
703 echo "$ac_t""$INSTALL" 1>&6
705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
706 # It thinks the first close brace ends the variable substitution.
707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
714 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
715 echo "configure:716: checking whether build environment is sane" >&5
718 echo timestamp > conftestfile
719 # Do `set' in a subshell so we don't clobber the current shell's
720 # arguments. Must try -L first in case configure is actually a
721 # symlink; some systems play weird games with the mod time of symlinks
722 # (eg FreeBSD returns the mod time of the symlink's containing
725 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
726 if test "$*" = "X"; then
728 set X `ls -t $srcdir/configure conftestfile`
730 if test "$*" != "X $srcdir/configure conftestfile" \
731 && test "$*" != "X conftestfile $srcdir/configure"; then
733 # If neither matched, then we have a broken ls. This can happen
734 # if, for instance, CONFIG_SHELL is bash and it inherits a
735 # broken ls alias from the environment. This has actually
736 # happened. Such a system could not be considered "sane".
737 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
738 alias in your environment" 1>&2; exit 1; }
741 test "$2" = conftestfile
747 { echo "configure: error: newly created file is older than distributed files!
748 Check your system clock" 1>&2; exit 1; }
751 echo "$ac_t""yes" 1>&6
752 if test "$program_transform_name" = s,x,x,; then
753 program_transform_name=
755 # Double any \ or $. echo might interpret backslashes.
756 cat <<\EOF_SED > conftestsed
757 s,\\,\\\\,g; s,\$,$$,g
759 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
762 test "$program_prefix" != NONE &&
763 program_transform_name="s,^,${program_prefix},; $program_transform_name"
764 # Use a double $ so make ignores it.
765 test "$program_suffix" != NONE &&
766 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
768 # sed with no file args requires a program.
769 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
771 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
772 echo "configure:773: checking whether ${MAKE-make} sets \${MAKE}" >&5
773 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
774 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
777 cat > conftestmake <<\EOF
779 @echo 'ac_maketemp="${MAKE}"'
781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
782 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
783 if test -n "$ac_maketemp"; then
784 eval ac_cv_prog_make_${ac_make}_set=yes
786 eval ac_cv_prog_make_${ac_make}_set=no
790 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
791 echo "$ac_t""yes" 1>&6
794 echo "$ac_t""no" 1>&6
795 SET_MAKE="MAKE=${MAKE-make}"
803 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
804 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
806 cat >> confdefs.h <<EOF
807 #define PACKAGE "$PACKAGE"
810 cat >> confdefs.h <<EOF
811 #define VERSION "$VERSION"
816 missing_dir=`cd $ac_aux_dir && pwd`
817 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
818 echo "configure:819: checking for working aclocal" >&5
819 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf. Sigh.
822 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
824 echo "$ac_t""found" 1>&6
826 ACLOCAL="$missing_dir/missing aclocal"
827 echo "$ac_t""missing" 1>&6
830 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
831 echo "configure:832: checking for working autoconf" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
837 echo "$ac_t""found" 1>&6
839 AUTOCONF="$missing_dir/missing autoconf"
840 echo "$ac_t""missing" 1>&6
843 echo $ac_n "checking for working automake""... $ac_c" 1>&6
844 echo "configure:845: checking for working automake" >&5
845 # Run test in a subshell; some versions of sh will print an error if
846 # an executable is not found, even if stderr is redirected.
847 # Redirect stdin to placate older versions of autoconf. Sigh.
848 if (automake --version) < /dev/null > /dev/null 2>&1; then
850 echo "$ac_t""found" 1>&6
852 AUTOMAKE="$missing_dir/missing automake"
853 echo "$ac_t""missing" 1>&6
856 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
857 echo "configure:858: checking for working autoheader" >&5
858 # Run test in a subshell; some versions of sh will print an error if
859 # an executable is not found, even if stderr is redirected.
860 # Redirect stdin to placate older versions of autoconf. Sigh.
861 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
862 AUTOHEADER=autoheader
863 echo "$ac_t""found" 1>&6
865 AUTOHEADER="$missing_dir/missing autoheader"
866 echo "$ac_t""missing" 1>&6
869 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
870 echo "configure:871: checking for working makeinfo" >&5
871 # Run test in a subshell; some versions of sh will print an error if
872 # an executable is not found, even if stderr is redirected.
873 # Redirect stdin to placate older versions of autoconf. Sigh.
874 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
876 echo "$ac_t""found" 1>&6
878 MAKEINFO="$missing_dir/missing makeinfo"
879 echo "$ac_t""missing" 1>&6
884 # Check whether --enable-shared or --disable-shared was given.
885 if test "${enable_shared+set}" = set; then
886 enableval="$enable_shared"
889 yes) enable_shared=yes ;;
890 no) enable_shared=no ;;
893 # Look at the argument we got. We use all the common list separators.
894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
895 for pkg in $enableval; do
896 if test "X$pkg" = "X$p"; then
907 # Check whether --enable-static or --disable-static was given.
908 if test "${enable_static+set}" = set; then
909 enableval="$enable_static"
912 yes) enable_static=yes ;;
913 no) enable_static=no ;;
916 # Look at the argument we got. We use all the common list separators.
917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
918 for pkg in $enableval; do
919 if test "X$pkg" = "X$p"; then
930 # Extract the first word of "ranlib", so it can be a program name with args.
931 set dummy ranlib; ac_word=$2
932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
933 echo "configure:934: checking for $ac_word" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 if test -n "$RANLIB"; then
938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
941 for ac_dir in $PATH; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_prog_RANLIB="ranlib"
949 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
952 RANLIB="$ac_cv_prog_RANLIB"
953 if test -n "$RANLIB"; then
954 echo "$ac_t""$RANLIB" 1>&6
956 echo "$ac_t""no" 1>&6
959 # Extract the first word of "gcc", so it can be a program name with args.
960 set dummy gcc; ac_word=$2
961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
962 echo "configure:963: checking for $ac_word" >&5
963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 if test -n "$CC"; then
967 ac_cv_prog_CC="$CC" # Let the user override the test.
969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
970 for ac_dir in $PATH; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
981 if test -n "$CC"; then
982 echo "$ac_t""$CC" 1>&6
984 echo "$ac_t""no" 1>&6
987 if test -z "$CC"; then
988 # Extract the first word of "cc", so it can be a program name with args.
989 set dummy cc; ac_word=$2
990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
991 echo "configure:992: checking for $ac_word" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 if test -n "$CC"; then
996 ac_cv_prog_CC="$CC" # Let the user override the test.
998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1000 for ac_dir in $PATH; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1003 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1004 ac_prog_rejected=yes
1012 if test $ac_prog_rejected = yes; then
1013 # We found a bogon in the path, so make sure we never use it.
1014 set dummy $ac_cv_prog_CC
1016 if test $# -gt 0; then
1017 # We chose a different compiler from the bogus one.
1018 # However, it has the same basename, so the bogon will be chosen
1019 # first if we set CC to just the basename; use the full file name.
1021 set dummy "$ac_dir/$ac_word" "$@"
1029 if test -n "$CC"; then
1030 echo "$ac_t""$CC" 1>&6
1032 echo "$ac_t""no" 1>&6
1035 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043 ac_cpp='$CPP $CPPFLAGS'
1044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046 cross_compiling=$ac_cv_prog_cc_cross
1048 cat > conftest.$ac_ext <<EOF
1049 #line 1050 "configure"
1050 #include "confdefs.h"
1053 if { (eval echo configure:1054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1054 ac_cv_prog_cc_works=yes
1055 # If we can't run a trivial program, we are probably using a cross compiler.
1056 if (./conftest; exit) 2>/dev/null; then
1057 ac_cv_prog_cc_cross=no
1059 ac_cv_prog_cc_cross=yes
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1064 ac_cv_prog_cc_works=no
1068 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1069 if test $ac_cv_prog_cc_works = no; then
1070 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1072 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1073 echo "configure:1074: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1074 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1075 cross_compiling=$ac_cv_prog_cc_cross
1077 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether we are using GNU C" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 cat > conftest.c <<EOF
1087 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1094 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1096 if test $ac_cv_prog_gcc = yes; then
1098 ac_test_CFLAGS="${CFLAGS+set}"
1099 ac_save_CFLAGS="$CFLAGS"
1101 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether ${CC-cc} accepts -g" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 echo 'void f(){}' > conftest.c
1107 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1116 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1117 if test "$ac_test_CFLAGS" = set; then
1118 CFLAGS="$ac_save_CFLAGS"
1119 elif test $ac_cv_prog_cc_g = yes; then
1126 test "${CFLAGS+set}" = set || CFLAGS="-g"
1129 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1130 if test "${with_gnu_ld+set}" = set; then
1131 withval="$with_gnu_ld"
1132 test "$withval" = no || with_gnu_ld=yes
1139 if test "$ac_cv_prog_gcc" = yes; then
1140 # Check if gcc -print-prog-name=ld gives a path.
1141 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1142 echo "configure:1143: checking for ld used by GCC" >&5
1143 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1145 # Accept absolute paths.
1147 test -z "$LD" && LD="$ac_prog"
1150 # If it fails, then pretend we aren't using GCC.
1154 # If it is relative, then search for the first ld in PATH.
1158 elif test "$with_gnu_ld" = yes; then
1159 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1160 echo "configure:1161: checking for GNU ld" >&5
1162 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1163 echo "configure:1164: checking for non-GNU ld" >&5
1165 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 if test -z "$LD"; then
1169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1170 for ac_dir in $PATH; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f "$ac_dir/$ac_prog"; then
1173 ac_cv_path_LD="$ac_dir/$ac_prog"
1174 # Check to see if the program is GNU ld. I'd rather use --version,
1175 # but apparently some GNU ld's only accept -v.
1176 # Break only if it was the GNU/non-GNU ld that we prefer.
1177 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1178 test "$with_gnu_ld" != no && break
1180 test "$with_gnu_ld" != yes && break
1186 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1191 if test -n "$LD"; then
1192 echo "$ac_t""$LD" 1>&6
1194 echo "$ac_t""no" 1>&6
1196 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1199 echo "configure:1200: checking if the linker ($LD) is GNU ld" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1204 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1205 ac_cv_prog_gnu_ld=yes
1207 ac_cv_prog_gnu_ld=no
1211 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1214 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1215 echo "configure:1216: checking for BSD-compatible nm" >&5
1216 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -z "$NM"; then
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1221 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1222 test -z "$ac_dir" && ac_dir=.
1223 if test -f $ac_dir/nm; then
1224 # Check to see if the nm accepts a BSD-compat flag.
1225 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1226 # nm: unknown option "B" ignored
1227 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1228 ac_cv_path_NM="$ac_dir/nm -B"
1229 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1230 ac_cv_path_NM="$ac_dir/nm -p"
1232 ac_cv_path_NM="$ac_dir/nm"
1238 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1240 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1245 echo "$ac_t""$NM" 1>&6
1248 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether ln -s works" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1254 if ln -s X conftestdata 2>/dev/null
1257 ac_cv_prog_LN_S="ln -s"
1262 LN_S="$ac_cv_prog_LN_S"
1263 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1264 echo "$ac_t""yes" 1>&6
1266 echo "$ac_t""no" 1>&6
1269 if test $host != $build; then
1270 ac_tool_prefix=${host_alias}-
1275 # Always use our own libtool.
1276 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1278 # Check for any special flags to pass to ltconfig.
1280 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1281 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1282 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1283 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1284 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1286 # Some flags need to be propagated to the compiler or linker for good
1290 # Find out which ABI we are using.
1291 echo '#line 1292 "configure"' > conftest.$ac_ext
1292 if { (eval echo configure:1293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1293 case "`/usr/bin/file conftest.o`" in
1309 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1310 CFLAGS="$CFLAGS -belf"
1314 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1315 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1317 echo "configure:1318: checking for $ac_word" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 if test -n "$DLLTOOL"; then
1322 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1325 for ac_dir in $PATH; do
1326 test -z "$ac_dir" && ac_dir=.
1327 if test -f $ac_dir/$ac_word; then
1328 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1335 DLLTOOL="$ac_cv_prog_DLLTOOL"
1336 if test -n "$DLLTOOL"; then
1337 echo "$ac_t""$DLLTOOL" 1>&6
1339 echo "$ac_t""no" 1>&6
1343 if test -z "$ac_cv_prog_DLLTOOL"; then
1344 if test -n "$ac_tool_prefix"; then
1345 # Extract the first word of "dlltool", so it can be a program name with args.
1346 set dummy dlltool; ac_word=$2
1347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1348 echo "configure:1349: checking for $ac_word" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 if test -n "$DLLTOOL"; then
1353 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1356 for ac_dir in $PATH; do
1357 test -z "$ac_dir" && ac_dir=.
1358 if test -f $ac_dir/$ac_word; then
1359 ac_cv_prog_DLLTOOL="dlltool"
1364 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1367 DLLTOOL="$ac_cv_prog_DLLTOOL"
1368 if test -n "$DLLTOOL"; then
1369 echo "$ac_t""$DLLTOOL" 1>&6
1371 echo "$ac_t""no" 1>&6
1379 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1380 set dummy ${ac_tool_prefix}as; ac_word=$2
1381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1382 echo "configure:1383: checking for $ac_word" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 if test -n "$AS"; then
1387 ac_cv_prog_AS="$AS" # Let the user override the test.
1389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1390 for ac_dir in $PATH; do
1391 test -z "$ac_dir" && ac_dir=.
1392 if test -f $ac_dir/$ac_word; then
1393 ac_cv_prog_AS="${ac_tool_prefix}as"
1401 if test -n "$AS"; then
1402 echo "$ac_t""$AS" 1>&6
1404 echo "$ac_t""no" 1>&6
1408 if test -z "$ac_cv_prog_AS"; then
1409 if test -n "$ac_tool_prefix"; then
1410 # Extract the first word of "as", so it can be a program name with args.
1411 set dummy as; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$AS"; then
1418 ac_cv_prog_AS="$AS" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1421 for ac_dir in $PATH; do
1422 test -z "$ac_dir" && ac_dir=.
1423 if test -f $ac_dir/$ac_word; then
1429 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1433 if test -n "$AS"; then
1434 echo "$ac_t""$AS" 1>&6
1436 echo "$ac_t""no" 1>&6
1449 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1450 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1451 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1452 DLLTOOL="$DLLTOOL" AS="$AS" \
1453 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1454 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1455 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1462 # Extract the first word of "gcc", so it can be a program name with args.
1463 set dummy gcc; ac_word=$2
1464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1465 echo "configure:1466: checking for $ac_word" >&5
1466 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1473 for ac_dir in $PATH; do
1474 test -z "$ac_dir" && ac_dir=.
1475 if test -f $ac_dir/$ac_word; then
1484 if test -n "$CC"; then
1485 echo "$ac_t""$CC" 1>&6
1487 echo "$ac_t""no" 1>&6
1490 if test -z "$CC"; then
1491 # Extract the first word of "cc", so it can be a program name with args.
1492 set dummy cc; ac_word=$2
1493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1494 echo "configure:1495: checking for $ac_word" >&5
1495 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 if test -n "$CC"; then
1499 ac_cv_prog_CC="$CC" # Let the user override the test.
1501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1503 for ac_dir in $PATH; do
1504 test -z "$ac_dir" && ac_dir=.
1505 if test -f $ac_dir/$ac_word; then
1506 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1507 ac_prog_rejected=yes
1515 if test $ac_prog_rejected = yes; then
1516 # We found a bogon in the path, so make sure we never use it.
1517 set dummy $ac_cv_prog_CC
1519 if test $# -gt 0; then
1520 # We chose a different compiler from the bogus one.
1521 # However, it has the same basename, so the bogon will be chosen
1522 # first if we set CC to just the basename; use the full file name.
1524 set dummy "$ac_dir/$ac_word" "$@"
1532 if test -n "$CC"; then
1533 echo "$ac_t""$CC" 1>&6
1535 echo "$ac_t""no" 1>&6
1538 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1541 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1542 echo "configure:1543: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1546 ac_cpp='$CPP $CPPFLAGS'
1547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1548 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1549 cross_compiling=$ac_cv_prog_cc_cross
1551 cat > conftest.$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1556 if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1557 ac_cv_prog_cc_works=yes
1558 # If we can't run a trivial program, we are probably using a cross compiler.
1559 if (./conftest; exit) 2>/dev/null; then
1560 ac_cv_prog_cc_cross=no
1562 ac_cv_prog_cc_cross=yes
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1567 ac_cv_prog_cc_works=no
1571 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1572 if test $ac_cv_prog_cc_works = no; then
1573 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1575 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1576 echo "configure:1577: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1577 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1578 cross_compiling=$ac_cv_prog_cc_cross
1580 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1581 echo "configure:1582: checking whether we are using GNU C" >&5
1582 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 cat > conftest.c <<EOF
1590 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1597 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1599 if test $ac_cv_prog_gcc = yes; then
1601 ac_test_CFLAGS="${CFLAGS+set}"
1602 ac_save_CFLAGS="$CFLAGS"
1604 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1605 echo "configure:1606: checking whether ${CC-cc} accepts -g" >&5
1606 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 echo 'void f(){}' > conftest.c
1610 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1619 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1620 if test "$ac_test_CFLAGS" = set; then
1621 CFLAGS="$ac_save_CFLAGS"
1622 elif test $ac_cv_prog_cc_g = yes; then
1629 test "${CFLAGS+set}" = set || CFLAGS="-g"
1633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1636 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1637 echo "configure:1638: checking for POSIXized ISC" >&5
1638 if test -d /etc/conf/kconfig.d &&
1639 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1641 echo "$ac_t""yes" 1>&6
1642 ISC=yes # If later tests want to check for ISC.
1643 cat >> confdefs.h <<\EOF
1644 #define _POSIX_SOURCE 1
1647 if test "$GCC" = yes; then
1653 echo "$ac_t""no" 1>&6
1659 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1660 echo "configure:1661: checking how to run the C preprocessor" >&5
1661 # On Suns, sometimes $CPP names a directory.
1662 if test -n "$CPP" && test -d "$CPP"; then
1665 if test -z "$CPP"; then
1666 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 # This must be in double quotes, not single quotes, because CPP may get
1670 # substituted into the Makefile and "${CC-cc}" will confuse make.
1672 # On the NeXT, cc -E runs the code through the compiler's parser,
1673 # not just through cpp.
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681 { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682 ac_err=`grep -v '^ *+' conftest.out`
1683 if test -z "$ac_err"; then
1687 echo "configure: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1690 CPP="${CC-cc} -E -traditional-cpp"
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1698 { (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1699 ac_err=`grep -v '^ *+' conftest.out`
1700 if test -z "$ac_err"; then
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1712 ac_cv_prog_CPP="$CPP"
1714 CPP="$ac_cv_prog_CPP"
1716 ac_cv_prog_CPP="$CPP"
1718 echo "$ac_t""$CPP" 1>&6
1720 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1721 echo "configure:1722: checking for ANSI C header files" >&5
1722 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1734 { (eval echo configure:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1735 ac_err=`grep -v '^ *+' conftest.out`
1736 if test -z "$ac_err"; then
1738 ac_cv_header_stdc=yes
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1744 ac_cv_header_stdc=no
1748 if test $ac_cv_header_stdc = yes; then
1749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1756 egrep "memchr" >/dev/null 2>&1; then
1760 ac_cv_header_stdc=no
1766 if test $ac_cv_header_stdc = yes; then
1767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1774 egrep "free" >/dev/null 2>&1; then
1778 ac_cv_header_stdc=no
1784 if test $ac_cv_header_stdc = yes; then
1785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1786 if test "$cross_compiling" = yes; then
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1793 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1794 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1796 int main () { int i; for (i = 0; i < 256; i++)
1797 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1801 if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 ac_cv_header_stdc=no
1816 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1817 if test $ac_cv_header_stdc = yes; then
1818 cat >> confdefs.h <<\EOF
1819 #define STDC_HEADERS 1
1824 echo $ac_n "checking for working const""... $ac_c" 1>&6
1825 echo "configure:1826: checking for working const" >&5
1826 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 cat > conftest.$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1835 /* Ultrix mips cc rejects this. */
1836 typedef int charset[2]; const charset x;
1837 /* SunOS 4.1.1 cc rejects this. */
1838 char const *const *ccp;
1840 /* NEC SVR4.0.2 mips cc rejects this. */
1841 struct point {int x, y;};
1842 static struct point const zero = {0,0};
1843 /* AIX XL C 1.02.0.0 rejects this.
1844 It does not let you subtract one const X* pointer from another in an arm
1845 of an if-expression whose if-part is not a constant expression */
1846 const char *g = "string";
1847 ccp = &g + (g ? g-g : 0);
1848 /* HPUX 7.0 cc rejects these. */
1851 ccp = (char const *const *) p;
1852 { /* SCO 3.2v4 cc rejects this. */
1854 char const *s = 0 ? (char *) 0 : (char const *) 0;
1858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1860 const int *foo = &x[0];
1863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1864 typedef const int *iptr;
1868 { /* AIX XL C 1.02.0.0 rejects this saying
1869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1870 struct s { int j; const int *ap[3]; };
1871 struct s *b; b->j = 5;
1873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1879 if { (eval echo configure:1880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1891 echo "$ac_t""$ac_cv_c_const" 1>&6
1892 if test $ac_cv_c_const = no; then
1893 cat >> confdefs.h <<\EOF
1899 echo $ac_n "checking for inline""... $ac_c" 1>&6
1900 echo "configure:1901: checking for inline" >&5
1901 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1905 for ac_kw in inline __inline__ __inline; do
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1914 if { (eval echo configure:1915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1916 ac_cv_c_inline=$ac_kw; break
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1926 echo "$ac_t""$ac_cv_c_inline" 1>&6
1927 case "$ac_cv_c_inline" in
1929 no) cat >> confdefs.h <<\EOF
1933 *) cat >> confdefs.h <<EOF
1934 #define inline $ac_cv_c_inline
1939 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1940 echo "configure:1941: checking for off_t" >&5
1941 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1947 #include <sys/types.h>
1953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1954 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1956 ac_cv_type_off_t=yes
1964 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1965 if test $ac_cv_type_off_t = no; then
1966 cat >> confdefs.h <<\EOF
1972 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1973 echo "configure:1974: checking for size_t" >&5
1974 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 #include <sys/types.h>
1986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1987 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1989 ac_cv_type_size_t=yes
1992 ac_cv_type_size_t=no
1997 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1998 if test $ac_cv_type_size_t = no; then
1999 cat >> confdefs.h <<\EOF
2000 #define size_t unsigned
2005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2006 # for constant arguments. Useless!
2007 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2008 echo "configure:2009: checking for working alloca.h" >&5
2009 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 cat > conftest.$ac_ext <<EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2017 char *p = alloca(2 * sizeof(int));
2020 if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2022 ac_cv_header_alloca_h=yes
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2027 ac_cv_header_alloca_h=no
2032 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2033 if test $ac_cv_header_alloca_h = yes; then
2034 cat >> confdefs.h <<\EOF
2035 #define HAVE_ALLOCA_H 1
2040 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2041 echo "configure:2042: checking for alloca" >&5
2042 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2050 # define alloca __builtin_alloca
2053 # include <alloca.h>
2058 # ifndef alloca /* predefined by HP cc +Olibcalls */
2066 char *p = (char *) alloca(1);
2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2071 ac_cv_func_alloca_works=yes
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 ac_cv_func_alloca_works=no
2081 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2082 if test $ac_cv_func_alloca_works = yes; then
2083 cat >> confdefs.h <<\EOF
2084 #define HAVE_ALLOCA 1
2089 if test $ac_cv_func_alloca_works = no; then
2090 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2091 # that cause trouble. Some versions do not even contain alloca or
2092 # contain a buggy version. If you still want to use their alloca,
2093 # use ar to extract alloca.o from them instead of compiling alloca.c.
2095 cat >> confdefs.h <<\EOF
2100 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2101 echo "configure:2102: checking whether alloca needs Cray hooks" >&5
2102 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #if defined(CRAY) && ! defined(CRAY2)
2115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2116 egrep "webecray" >/dev/null 2>&1; then
2127 echo "$ac_t""$ac_cv_os_cray" 1>&6
2128 if test $ac_cv_os_cray = yes; then
2129 for ac_func in _getb67 GETB67 getb67; do
2130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_func" >&5
2132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 /* System header to define __stub macros and hopefully few prototypes,
2139 which can conflict with char $ac_func(); below. */
2141 /* Override any gcc2 internal prototype to avoid an error. */
2142 /* We use char because int might match the return type of a gcc2
2143 builtin and then its argument prototype would still apply. */
2148 /* The GNU C library defines this for functions which it implements
2149 to always fail with ENOSYS. Some functions are actually named
2150 something starting with __ and the normal name is an alias. */
2151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2161 eval "ac_cv_func_$ac_func=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_func_$ac_func=no"
2171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 cat >> confdefs.h <<EOF
2174 #define CRAY_STACKSEG_END $ac_func
2179 echo "$ac_t""no" 1>&6
2185 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2186 echo "configure:2187: checking stack direction for C alloca" >&5
2187 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 if test "$cross_compiling" = yes; then
2191 ac_cv_c_stack_direction=0
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 find_stack_direction ()
2198 static char *addr = 0;
2203 return find_stack_direction ();
2206 return (&dummy > addr) ? 1 : -1;
2210 exit (find_stack_direction() < 0);
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2215 ac_cv_c_stack_direction=1
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 ac_cv_c_stack_direction=-1
2227 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2228 cat >> confdefs.h <<EOF
2229 #define STACK_DIRECTION $ac_cv_c_stack_direction
2234 for ac_hdr in unistd.h
2236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_hdr" >&5
2239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2248 { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2249 ac_err=`grep -v '^ *+' conftest.out`
2250 if test -z "$ac_err"; then
2252 eval "ac_cv_header_$ac_safe=yes"
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2258 eval "ac_cv_header_$ac_safe=no"
2262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2263 echo "$ac_t""yes" 1>&6
2264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2265 cat >> confdefs.h <<EOF
2266 #define $ac_tr_hdr 1
2270 echo "$ac_t""no" 1>&6
2274 for ac_func in getpagesize
2276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2277 echo "configure:2278: checking for $ac_func" >&5
2278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 /* System header to define __stub macros and hopefully few prototypes,
2285 which can conflict with char $ac_func(); below. */
2287 /* Override any gcc2 internal prototype to avoid an error. */
2288 /* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2294 /* The GNU C library defines this for functions which it implements
2295 to always fail with ENOSYS. Some functions are actually named
2296 something starting with __ and the normal name is an alias. */
2297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2307 eval "ac_cv_func_$ac_func=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 eval "ac_cv_func_$ac_func=no"
2317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2320 cat >> confdefs.h <<EOF
2321 #define $ac_tr_func 1
2325 echo "$ac_t""no" 1>&6
2329 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2330 echo "configure:2331: checking for working mmap" >&5
2331 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 if test "$cross_compiling" = yes; then
2335 ac_cv_func_mmap_fixed_mapped=no
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2341 /* Thanks to Mike Haertel and Jim Avera for this test.
2342 Here is a matrix of mmap possibilities:
2343 mmap private not fixed
2344 mmap private fixed at somewhere currently unmapped
2345 mmap private fixed at somewhere already mapped
2346 mmap shared not fixed
2347 mmap shared fixed at somewhere currently unmapped
2348 mmap shared fixed at somewhere already mapped
2349 For private mappings, we should verify that changes cannot be read()
2350 back from the file, nor mmap's back from the file at a different
2351 address. (There have been systems where private was not correctly
2352 implemented like the infamous i386 svr4.0, and systems where the
2353 VM page cache was not coherent with the filesystem buffer cache
2354 like early versions of FreeBSD and possibly contemporary NetBSD.)
2355 For shared mappings, we should conversely verify that changes get
2356 propogated back to all the places they're supposed to be.
2358 Grep wants private fixed already mapped.
2359 The main things grep needs to know about mmap are:
2360 * does it exist and is it safe to write into the mmap'd area
2361 * how to use it (BSD variants) */
2362 #include <sys/types.h>
2364 #include <sys/mman.h>
2366 /* This mess was copied from the GNU getpagesize.h. */
2367 #ifndef HAVE_GETPAGESIZE
2368 # ifdef HAVE_UNISTD_H
2369 # include <unistd.h>
2372 /* Assume that all systems that can run configure have sys/param.h. */
2373 # ifndef HAVE_SYS_PARAM_H
2374 # define HAVE_SYS_PARAM_H 1
2377 # ifdef _SC_PAGESIZE
2378 # define getpagesize() sysconf(_SC_PAGESIZE)
2379 # else /* no _SC_PAGESIZE */
2380 # ifdef HAVE_SYS_PARAM_H
2381 # include <sys/param.h>
2382 # ifdef EXEC_PAGESIZE
2383 # define getpagesize() EXEC_PAGESIZE
2384 # else /* no EXEC_PAGESIZE */
2386 # define getpagesize() NBPG * CLSIZE
2389 # endif /* no CLSIZE */
2390 # else /* no NBPG */
2392 # define getpagesize() NBPC
2393 # else /* no NBPC */
2395 # define getpagesize() PAGESIZE
2396 # endif /* PAGESIZE */
2397 # endif /* no NBPC */
2398 # endif /* no NBPG */
2399 # endif /* no EXEC_PAGESIZE */
2400 # else /* no HAVE_SYS_PARAM_H */
2401 # define getpagesize() 8192 /* punt totally */
2402 # endif /* no HAVE_SYS_PARAM_H */
2403 # endif /* no _SC_PAGESIZE */
2405 #endif /* no HAVE_GETPAGESIZE */
2408 extern "C" { void *malloc(unsigned); }
2416 char *data, *data2, *data3;
2420 pagesize = getpagesize();
2423 * First, make a file with some known garbage in it.
2425 data = malloc(pagesize);
2428 for (i = 0; i < pagesize; ++i)
2429 *(data + i) = rand();
2431 fd = creat("conftestmmap", 0600);
2434 if (write(fd, data, pagesize) != pagesize)
2439 * Next, try to mmap the file at a fixed address which
2440 * already has something else allocated at it. If we can,
2441 * also make sure that we see the same garbage.
2443 fd = open("conftestmmap", O_RDWR);
2446 data2 = malloc(2 * pagesize);
2449 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2450 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2451 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2453 for (i = 0; i < pagesize; ++i)
2454 if (*(data + i) != *(data2 + i))
2458 * Finally, make sure that changes to the mapped area
2459 * do not percolate back to the file as seen by read().
2460 * (This is a bug on some variants of i386 svr4.0.)
2462 for (i = 0; i < pagesize; ++i)
2463 *(data2 + i) = *(data2 + i) + 1;
2464 data3 = malloc(pagesize);
2467 if (read(fd, data3, pagesize) != pagesize)
2469 for (i = 0; i < pagesize; ++i)
2470 if (*(data + i) != *(data3 + i))
2473 unlink("conftestmmap");
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2480 ac_cv_func_mmap_fixed_mapped=yes
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 ac_cv_func_mmap_fixed_mapped=no
2492 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2493 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2494 cat >> confdefs.h <<\EOF
2501 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2502 unistd.h values.h sys/param.h
2504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_hdr" >&5
2507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out`
2518 if test -z "$ac_err"; then
2520 eval "ac_cv_header_$ac_safe=yes"
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2526 eval "ac_cv_header_$ac_safe=no"
2530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2533 cat >> confdefs.h <<EOF
2534 #define $ac_tr_hdr 1
2538 echo "$ac_t""no" 1>&6
2542 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2543 __argz_count __argz_stringify __argz_next
2545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_func" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char $ac_func(); below. */
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2563 /* The GNU C library defines this for functions which it implements
2564 to always fail with ENOSYS. Some functions are actually named
2565 something starting with __ and the normal name is an alias. */
2566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2574 if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2576 eval "ac_cv_func_$ac_func=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2581 eval "ac_cv_func_$ac_func=no"
2586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2589 cat >> confdefs.h <<EOF
2590 #define $ac_tr_func 1
2594 echo "$ac_t""no" 1>&6
2599 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2600 for ac_func in stpcpy
2602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2603 echo "configure:2604: checking for $ac_func" >&5
2604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 /* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $ac_func(); below. */
2613 /* Override any gcc2 internal prototype to avoid an error. */
2614 /* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2620 /* The GNU C library defines this for functions which it implements
2621 to always fail with ENOSYS. Some functions are actually named
2622 something starting with __ and the normal name is an alias. */
2623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2633 eval "ac_cv_func_$ac_func=yes"
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 eval "ac_cv_func_$ac_func=no"
2643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2646 cat >> confdefs.h <<EOF
2647 #define $ac_tr_func 1
2651 echo "$ac_t""no" 1>&6
2656 if test "${ac_cv_func_stpcpy}" = "yes"; then
2657 cat >> confdefs.h <<\EOF
2658 #define HAVE_STPCPY 1
2663 if test $ac_cv_header_locale_h = yes; then
2664 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2665 echo "configure:2666: checking for LC_MESSAGES" >&5
2666 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2677 if { (eval echo configure:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2679 am_cv_val_LC_MESSAGES=yes
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2684 am_cv_val_LC_MESSAGES=no
2689 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2690 if test $am_cv_val_LC_MESSAGES = yes; then
2691 cat >> confdefs.h <<\EOF
2692 #define HAVE_LC_MESSAGES 1
2697 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2698 echo "configure:2699: checking whether NLS is requested" >&5
2699 # Check whether --enable-nls or --disable-nls was given.
2700 if test "${enable_nls+set}" = set; then
2701 enableval="$enable_nls"
2707 echo "$ac_t""$USE_NLS" 1>&6
2710 USE_INCLUDED_LIBINTL=no
2712 if test "$USE_NLS" = "yes"; then
2713 cat >> confdefs.h <<\EOF
2714 #define ENABLE_NLS 1
2717 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2718 echo "configure:2719: checking whether included gettext is requested" >&5
2719 # Check whether --with-included-gettext or --without-included-gettext was given.
2720 if test "${with_included_gettext+set}" = set; then
2721 withval="$with_included_gettext"
2722 nls_cv_force_use_gnu_gettext=$withval
2724 nls_cv_force_use_gnu_gettext=no
2727 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2729 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2730 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2732 nls_cv_header_libgt=
2735 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2737 echo "configure:2738: checking for libintl.h" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 #include <libintl.h>
2746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err=`grep -v '^ *+' conftest.out`
2749 if test -z "$ac_err"; then
2751 eval "ac_cv_header_$ac_safe=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "ac_cv_header_$ac_safe=no"
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2764 echo "configure:2765: checking for gettext in libc" >&5
2765 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 cat > conftest.$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2771 #include <libintl.h>
2773 return (int) gettext ("")
2776 if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2778 gt_cv_func_gettext_libc=yes
2780 echo "configure: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2783 gt_cv_func_gettext_libc=no
2788 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2790 if test "$gt_cv_func_gettext_libc" != "yes"; then
2791 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2792 echo "configure:2793: checking for bindtextdomain in -lintl" >&5
2793 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 ac_save_LIBS="$LIBS"
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* Override any gcc2 internal prototype to avoid an error. */
2803 /* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805 char bindtextdomain();
2811 if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2813 eval "ac_cv_lib_$ac_lib_var=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2818 eval "ac_cv_lib_$ac_lib_var=no"
2821 LIBS="$ac_save_LIBS"
2824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2827 echo "configure:2828: checking for gettext in libintl" >&5
2828 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2836 return (int) gettext ("")
2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2841 gt_cv_func_gettext_libintl=yes
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2846 gt_cv_func_gettext_libintl=no
2851 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2853 echo "$ac_t""no" 1>&6
2858 if test "$gt_cv_func_gettext_libc" = "yes" \
2859 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2860 cat >> confdefs.h <<\EOF
2861 #define HAVE_GETTEXT 1
2864 # Extract the first word of "msgfmt", so it can be a program name with args.
2865 set dummy msgfmt; ac_word=$2
2866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_word" >&5
2868 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2873 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2877 for ac_dir in $PATH; do
2878 test -z "$ac_dir" && ac_dir=.
2879 if test -f $ac_dir/$ac_word; then
2880 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2881 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2887 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2891 MSGFMT="$ac_cv_path_MSGFMT"
2892 if test -n "$MSGFMT"; then
2893 echo "$ac_t""$MSGFMT" 1>&6
2895 echo "$ac_t""no" 1>&6
2897 if test "$MSGFMT" != "no"; then
2898 for ac_func in dcgettext
2900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_func" >&5
2902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 /* System header to define __stub macros and hopefully few prototypes,
2909 which can conflict with char $ac_func(); below. */
2911 /* Override any gcc2 internal prototype to avoid an error. */
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2918 /* The GNU C library defines this for functions which it implements
2919 to always fail with ENOSYS. Some functions are actually named
2920 something starting with __ and the normal name is an alias. */
2921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2931 eval "ac_cv_func_$ac_func=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2936 eval "ac_cv_func_$ac_func=no"
2941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2944 cat >> confdefs.h <<EOF
2945 #define $ac_tr_func 1
2949 echo "$ac_t""no" 1>&6
2953 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2954 set dummy gmsgfmt; ac_word=$2
2955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_word" >&5
2957 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2962 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2965 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2969 for ac_dir in $PATH; do
2970 test -z "$ac_dir" && ac_dir=.
2971 if test -f $ac_dir/$ac_word; then
2972 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2977 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2981 GMSGFMT="$ac_cv_path_GMSGFMT"
2982 if test -n "$GMSGFMT"; then
2983 echo "$ac_t""$GMSGFMT" 1>&6
2985 echo "$ac_t""no" 1>&6
2988 # Extract the first word of "xgettext", so it can be a program name with args.
2989 set dummy xgettext; ac_word=$2
2990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_word" >&5
2992 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2997 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3001 for ac_dir in $PATH; do
3002 test -z "$ac_dir" && ac_dir=.
3003 if test -f $ac_dir/$ac_word; then
3004 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3005 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3011 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3015 XGETTEXT="$ac_cv_path_XGETTEXT"
3016 if test -n "$XGETTEXT"; then
3017 echo "$ac_t""$XGETTEXT" 1>&6
3019 echo "$ac_t""no" 1>&6
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3027 extern int _nl_msg_cat_cntr;
3028 return _nl_msg_cat_cntr
3031 if { (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3048 echo "$ac_t""no" 1>&6
3053 if test "$CATOBJEXT" = "NONE"; then
3054 nls_cv_use_gnu_gettext=yes
3058 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3059 INTLOBJS="\$(GETTOBJS)"
3060 # Extract the first word of "msgfmt", so it can be a program name with args.
3061 set dummy msgfmt; ac_word=$2
3062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_word" >&5
3064 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3069 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3073 for ac_dir in $PATH; do
3074 test -z "$ac_dir" && ac_dir=.
3075 if test -f $ac_dir/$ac_word; then
3076 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3077 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3083 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3087 MSGFMT="$ac_cv_path_MSGFMT"
3088 if test -n "$MSGFMT"; then
3089 echo "$ac_t""$MSGFMT" 1>&6
3091 echo "$ac_t""no" 1>&6
3094 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3095 set dummy gmsgfmt; ac_word=$2
3096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3097 echo "configure:3098: checking for $ac_word" >&5
3098 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3103 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3106 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3110 for ac_dir in $PATH; do
3111 test -z "$ac_dir" && ac_dir=.
3112 if test -f $ac_dir/$ac_word; then
3113 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3118 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3122 GMSGFMT="$ac_cv_path_GMSGFMT"
3123 if test -n "$GMSGFMT"; then
3124 echo "$ac_t""$GMSGFMT" 1>&6
3126 echo "$ac_t""no" 1>&6
3129 # Extract the first word of "xgettext", so it can be a program name with args.
3130 set dummy xgettext; ac_word=$2
3131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_word" >&5
3133 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3138 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3142 for ac_dir in $PATH; do
3143 test -z "$ac_dir" && ac_dir=.
3144 if test -f $ac_dir/$ac_word; then
3145 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3146 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3152 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3156 XGETTEXT="$ac_cv_path_XGETTEXT"
3157 if test -n "$XGETTEXT"; then
3158 echo "$ac_t""$XGETTEXT" 1>&6
3160 echo "$ac_t""no" 1>&6
3164 USE_INCLUDED_LIBINTL=yes
3168 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3170 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3171 nls_cv_header_intl=libintl.h
3172 nls_cv_header_libgt=libgettext.h
3175 if test "$XGETTEXT" != ":"; then
3176 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3179 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3184 # We need to process the po/ directory.
3188 nls_cv_header_intl=libintl.h
3189 nls_cv_header_libgt=libgettext.h
3192 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3193 # because some of the sources are only built for this goal.
3194 if test "$PACKAGE" = gettext; then
3196 USE_INCLUDED_LIBINTL=yes
3199 for lang in $ALL_LINGUAS; do
3200 GMOFILES="$GMOFILES $lang.gmo"
3201 POFILES="$POFILES $lang.po"
3217 if test "x$CATOBJEXT" != "x"; then
3218 if test "x$ALL_LINGUAS" = "x"; then
3221 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3222 echo "configure:3223: checking for catalogs to be installed" >&5
3224 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3225 case "$ALL_LINGUAS" in
3226 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3229 LINGUAS=$NEW_LINGUAS
3230 echo "$ac_t""$LINGUAS" 1>&6
3233 if test -n "$LINGUAS"; then
3234 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3238 if test $ac_cv_header_locale_h = yes; then
3239 INCLUDE_LOCALE_H="#include <locale.h>"
3242 /* The system does not provide the header <locale.h>. Take care yourself. */"
3246 if test -f $srcdir/po2tbl.sed.in; then
3247 if test "$CATOBJEXT" = ".cat"; then
3248 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3249 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3250 echo "configure:3251: checking for linux/version.h" >&5
3251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 #include <linux/version.h>
3259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3260 { (eval echo configure:3261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3261 ac_err=`grep -v '^ *+' conftest.out`
3262 if test -z "$ac_err"; then
3264 eval "ac_cv_header_$ac_safe=yes"
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3270 eval "ac_cv_header_$ac_safe=no"
3274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3275 echo "$ac_t""yes" 1>&6
3278 echo "$ac_t""no" 1>&6
3283 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3285 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3286 $srcdir/po2tbl.sed.in > po2tbl.sed
3289 if test "$PACKAGE" = "gettext"; then
3299 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3305 if test -d $srcdir/po; then
3306 test -d po || mkdir po
3307 if test "x$srcdir" != "x."; then
3308 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3309 posrcprefix="$srcdir/"
3311 posrcprefix="../$srcdir/"
3317 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3318 < $srcdir/po/POTFILES.in > po/POTFILES
3323 *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3324 cat >> confdefs.h <<\EOF
3325 #define BSD44_FORMAT 1
3331 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3332 echo "configure:3333: checking whether to enable maintainer-specific portions of Makefiles" >&5
3333 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3334 if test "${enable_maintainer_mode+set}" = set; then
3335 enableval="$enable_maintainer_mode"
3336 USE_MAINTAINER_MODE=$enableval
3338 USE_MAINTAINER_MODE=no
3341 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3342 if test $USE_MAINTAINER_MODE = yes; then
3349 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3350 echo "configure:3351: checking for Cygwin32 environment" >&5
3351 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3359 return __CYGWIN32__;
3362 if { (eval echo configure:3363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3375 echo "$ac_t""$am_cv_cygwin32" 1>&6
3377 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
3378 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3379 echo "configure:3380: checking for Mingw32 environment" >&5
3380 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3404 echo "$ac_t""$am_cv_mingw32" 1>&6
3406 test "$am_cv_mingw32" = yes && MINGW32=yes
3409 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3410 echo "configure:3411: checking for executable suffix" >&5
3411 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
3417 cat > am_c_test.c << 'EOF'
3419 /* Nothing needed here */
3422 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
3424 for file in am_c_test.*; do
3428 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
3434 test x"${am_cv_exeext}" = x && am_cv_exeext=no
3437 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
3438 echo "$ac_t""${am_cv_exeext}" 1>&6
3442 cat > confcache <<\EOF
3443 # This file is a shell script that caches the results of configure
3444 # tests run on this system so they can be shared between configure
3445 # scripts and configure runs. It is not useful on other systems.
3446 # If it contains results you don't want to keep, you may remove or edit it.
3448 # By default, configure uses ./config.cache as the cache file,
3449 # creating it if it does not exist already. You can give configure
3450 # the --cache-file=FILE option to use a different cache file; that is
3451 # what configure does when it calls configure scripts in
3452 # subdirectories, so they share the cache.
3453 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3454 # config.status only pays attention to the cache file if you give it the
3455 # --recheck option to rerun configure.
3458 # The following way of writing the cache mishandles newlines in values,
3459 # but we know of no workaround that is simple, portable, and efficient.
3460 # So, don't put newlines in cache variables' values.
3461 # Ultrix sh set writes to stderr and can't be redirected directly,
3462 # and sets the high bit in the cache file unless we assign to the vars.
3464 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3466 # `set' does not quote correctly, so add quotes (double-quote substitution
3467 # turns \\\\ into \\, and sed turns \\ into \).
3469 -e "s/'/'\\\\''/g" \
3470 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3473 # `set' quotes correctly as required by POSIX, so do not add quotes.
3474 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3477 if cmp -s $cache_file confcache; then
3480 if test -w $cache_file; then
3481 echo "updating cache $cache_file"
3482 cat confcache > $cache_file
3484 echo "not updating unwritable cache $cache_file"
3489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3492 # Let make expand exec_prefix.
3493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3495 # Any assignment to VPATH causes Sun make to only execute
3496 # the first set of double-colon rules, so remove it if not needed.
3497 # If there is a colon in the path, we need to keep it.
3498 if test "x$srcdir" = x.; then
3499 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3502 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3504 DEFS=-DHAVE_CONFIG_H
3506 # Without the "./", some shells look in PATH for config.status.
3507 : ${CONFIG_STATUS=./config.status}
3509 echo creating $CONFIG_STATUS
3510 rm -f $CONFIG_STATUS
3511 cat > $CONFIG_STATUS <<EOF
3513 # Generated automatically by configure.
3514 # Run this file to recreate the current configuration.
3515 # This directory was configured as follows,
3516 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3518 # $0 $ac_configure_args
3520 # Compiler output produced by configure, useful for debugging
3521 # configure, is in ./config.log if it exists.
3523 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3526 case "\$ac_option" in
3527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3528 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3529 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3530 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3531 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3533 -help | --help | --hel | --he | --h)
3534 echo "\$ac_cs_usage"; exit 0 ;;
3535 *) echo "\$ac_cs_usage"; exit 1 ;;
3539 ac_given_srcdir=$srcdir
3540 ac_given_INSTALL="$INSTALL"
3542 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3544 cat >> $CONFIG_STATUS <<EOF
3546 # Protect against being on the right side of a sed subst in config.status.
3547 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3548 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3552 s%@CFLAGS@%$CFLAGS%g
3553 s%@CPPFLAGS@%$CPPFLAGS%g
3554 s%@CXXFLAGS@%$CXXFLAGS%g
3556 s%@LDFLAGS@%$LDFLAGS%g
3558 s%@exec_prefix@%$exec_prefix%g
3559 s%@prefix@%$prefix%g
3560 s%@program_transform_name@%$program_transform_name%g
3561 s%@bindir@%$bindir%g
3562 s%@sbindir@%$sbindir%g
3563 s%@libexecdir@%$libexecdir%g
3564 s%@datadir@%$datadir%g
3565 s%@sysconfdir@%$sysconfdir%g
3566 s%@sharedstatedir@%$sharedstatedir%g
3567 s%@localstatedir@%$localstatedir%g
3568 s%@libdir@%$libdir%g
3569 s%@includedir@%$includedir%g
3570 s%@oldincludedir@%$oldincludedir%g
3571 s%@infodir@%$infodir%g
3572 s%@mandir@%$mandir%g
3574 s%@host_alias@%$host_alias%g
3575 s%@host_cpu@%$host_cpu%g
3576 s%@host_vendor@%$host_vendor%g
3577 s%@host_os@%$host_os%g
3578 s%@target@%$target%g
3579 s%@target_alias@%$target_alias%g
3580 s%@target_cpu@%$target_cpu%g
3581 s%@target_vendor@%$target_vendor%g
3582 s%@target_os@%$target_os%g
3584 s%@build_alias@%$build_alias%g
3585 s%@build_cpu@%$build_cpu%g
3586 s%@build_vendor@%$build_vendor%g
3587 s%@build_os@%$build_os%g
3588 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3589 s%@INSTALL_DATA@%$INSTALL_DATA%g
3590 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3591 s%@PACKAGE@%$PACKAGE%g
3592 s%@VERSION@%$VERSION%g
3593 s%@ACLOCAL@%$ACLOCAL%g
3594 s%@AUTOCONF@%$AUTOCONF%g
3595 s%@AUTOMAKE@%$AUTOMAKE%g
3596 s%@AUTOHEADER@%$AUTOHEADER%g
3597 s%@MAKEINFO@%$MAKEINFO%g
3598 s%@SET_MAKE@%$SET_MAKE%g
3599 s%@RANLIB@%$RANLIB%g
3604 s%@LIBTOOL@%$LIBTOOL%g
3605 s%@DLLTOOL@%$DLLTOOL%g
3608 s%@ALLOCA@%$ALLOCA%g
3609 s%@USE_NLS@%$USE_NLS%g
3610 s%@MSGFMT@%$MSGFMT%g
3611 s%@GMSGFMT@%$GMSGFMT%g
3612 s%@XGETTEXT@%$XGETTEXT%g
3613 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3614 s%@CATALOGS@%$CATALOGS%g
3615 s%@CATOBJEXT@%$CATOBJEXT%g
3616 s%@DATADIRNAME@%$DATADIRNAME%g
3617 s%@GMOFILES@%$GMOFILES%g
3618 s%@INSTOBJEXT@%$INSTOBJEXT%g
3619 s%@INTLDEPS@%$INTLDEPS%g
3620 s%@INTLLIBS@%$INTLLIBS%g
3621 s%@INTLOBJS@%$INTLOBJS%g
3622 s%@POFILES@%$POFILES%g
3624 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3626 s%@GT_YES@%$GT_YES%g
3627 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3630 s%@EXEEXT@%$EXEEXT%g
3635 cat >> $CONFIG_STATUS <<\EOF
3637 # Split the substitutions into bite-sized pieces for seds with
3638 # small command number limits, like on Digital OSF/1 and HP-UX.
3639 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3640 ac_file=1 # Number of current file.
3641 ac_beg=1 # First line for current file.
3642 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3645 while $ac_more_lines; do
3646 if test $ac_beg -gt 1; then
3647 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3649 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3651 if test ! -s conftest.s$ac_file; then
3653 rm -f conftest.s$ac_file
3655 if test -z "$ac_sed_cmds"; then
3656 ac_sed_cmds="sed -f conftest.s$ac_file"
3658 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3660 ac_file=`expr $ac_file + 1`
3662 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3665 if test -z "$ac_sed_cmds"; then
3670 cat >> $CONFIG_STATUS <<EOF
3672 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
3674 cat >> $CONFIG_STATUS <<\EOF
3675 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3678 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3679 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3680 *) ac_file_in="${ac_file}.in" ;;
3683 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3685 # Remove last slash and all that follows it. Not all systems have dirname.
3686 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3687 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3688 # The file is in a subdirectory.
3689 test ! -d "$ac_dir" && mkdir "$ac_dir"
3690 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3691 # A "../" for each directory in $ac_dir_suffix.
3692 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3694 ac_dir_suffix= ac_dots=
3697 case "$ac_given_srcdir" in
3699 if test -z "$ac_dots"; then top_srcdir=.
3700 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3701 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3703 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3704 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3707 case "$ac_given_INSTALL" in
3708 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3709 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3712 echo creating "$ac_file"
3714 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3716 *Makefile*) ac_comsub="1i\\
3717 # $configure_input" ;;
3721 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3723 s%@configure_input@%$configure_input%g
3724 s%@srcdir@%$srcdir%g
3725 s%@top_srcdir@%$top_srcdir%g
3726 s%@INSTALL@%$INSTALL%g
3727 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3731 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3732 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3734 # ac_d sets the value in "#define NAME VALUE" lines.
3735 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3736 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3739 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3740 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3741 ac_uB='\([ ]\)%\1#\2define\3'
3744 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3745 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3746 ac_eB='$%\1#\2define\3'
3750 if test "${CONFIG_HEADERS+set}" != set; then
3752 cat >> $CONFIG_STATUS <<EOF
3753 CONFIG_HEADERS="gconfig.h:gconfig.in"
3755 cat >> $CONFIG_STATUS <<\EOF
3757 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3758 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3760 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3761 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3762 *) ac_file_in="${ac_file}.in" ;;
3765 echo creating $ac_file
3767 rm -f conftest.frag conftest.in conftest.out
3768 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3769 cat $ac_file_inputs > conftest.in
3773 # Transform confdefs.h into a sed script conftest.vals that substitutes
3774 # the proper values into config.h.in to produce config.h. And first:
3775 # Protect against being on the right side of a sed subst in config.status.
3776 # Protect against being in an unquoted here document in config.status.
3778 cat > conftest.hdr <<\EOF
3781 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3785 sed -n -f conftest.hdr confdefs.h > conftest.vals
3788 # This sed command replaces #undef with comments. This is necessary, for
3789 # example, in the case of _POSIX_SOURCE, which is predefined and required
3790 # on some systems where configure will not decide to define it.
3791 cat >> conftest.vals <<\EOF
3792 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3795 # Break up conftest.vals because some shells have a limit on
3796 # the size of here documents, and old seds have small limits too.
3801 ac_lines=`grep -c . conftest.vals`
3802 # grep -c gives empty output for an empty file on some AIX systems.
3803 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3804 # Write a limited-size here document to conftest.frag.
3805 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3806 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3808 sed -f conftest.frag conftest.in > conftest.out
3810 mv conftest.out conftest.in
3812 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3814 mv conftest.tail conftest.vals
3818 cat >> $CONFIG_STATUS <<\EOF
3819 rm -f conftest.frag conftest.h
3820 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3821 cat conftest.in >> conftest.h
3823 if cmp -s $ac_file conftest.h 2>/dev/null; then
3824 echo "$ac_file is unchanged"
3827 # Remove last slash and all that follows it. Not all systems have dirname.
3828 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3829 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3830 # The file is in a subdirectory.
3831 test ! -d "$ac_dir" && mkdir "$ac_dir"
3834 mv conftest.h $ac_file
3839 cat >> $CONFIG_STATUS <<EOF
3843 cat >> $CONFIG_STATUS <<\EOF
3844 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3845 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
3848 chmod +x $CONFIG_STATUS
3849 rm -fr confdefs* $ac_clean_files
3850 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1