3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
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[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
21 --disable-nls do not use Native Language Support"
23 --with-included-gettext use the GNU gettext library included here"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host | --host | --hos | --ho)
204 -host=* | --host=* | --hos=* | --ho=*)
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
325 -site=* | --site=* | --sit=*)
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.12.2"
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=gprof.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='\c' ac_t=
539 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
540 if test -f $ac_dir/install-sh; then
542 ac_install_sh="$ac_aux_dir/install-sh -c"
544 elif test -f $ac_dir/install.sh; then
546 ac_install_sh="$ac_aux_dir/install.sh -c"
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
553 ac_config_guess=$ac_aux_dir/config.guess
554 ac_config_sub=$ac_aux_dir/config.sub
555 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
558 # Do some error checking and defaulting for the host and target type.
560 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
563 # 1. You are not allowed to specify --host, --target, and nonopt at the
565 # 2. Host defaults to nonopt.
566 # 3. If nonopt is not specified, then host defaults to the current host,
567 # as determined by config.guess.
568 # 4. Target and build default to nonopt.
569 # 5. If nonopt is not specified, then target and build default to host.
571 # The aliases save the names the user supplied, while $host etc.
572 # will get canonicalized.
573 case $host---$target---$nonopt in
574 NONE---*---* | *---NONE---* | *---*---NONE) ;;
575 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
579 # Make sure we can run config.sub.
580 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
581 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
584 echo $ac_n "checking host system type""... $ac_c" 1>&6
585 echo "configure:586: checking host system type" >&5
588 case "$host_alias" in
592 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
593 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
595 *) host_alias=$nonopt ;;
599 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
600 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
601 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
602 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
603 echo "$ac_t""$host" 1>&6
605 echo $ac_n "checking target system type""... $ac_c" 1>&6
606 echo "configure:607: checking target system type" >&5
609 case "$target_alias" in
612 NONE) target_alias=$host_alias ;;
613 *) target_alias=$nonopt ;;
617 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
618 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
619 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
620 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
621 echo "$ac_t""$target" 1>&6
623 echo $ac_n "checking build system type""... $ac_c" 1>&6
624 echo "configure:625: checking build system type" >&5
627 case "$build_alias" in
630 NONE) build_alias=$host_alias ;;
631 *) build_alias=$nonopt ;;
635 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
636 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
637 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
638 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
639 echo "$ac_t""$build" 1>&6
641 test "$host_alias" != "$target_alias" &&
642 test "$program_prefix$program_suffix$program_transform_name" = \
644 program_prefix=${target_alias}-
647 # Find a good install program. We prefer a C program (faster),
648 # so one script is as good as another. But avoid the broken or
649 # incompatible versions:
650 # SysV /etc/install, /usr/sbin/install
651 # SunOS /usr/etc/install
654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
657 # ./install, which can be erroneously created by make from ./install.sh.
658 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
659 echo "configure:660: checking for a BSD compatible install" >&5
660 if test -z "$INSTALL"; then
661 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
664 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
665 for ac_dir in $PATH; do
666 # Account for people who put trailing slashes in PATH elements.
668 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
670 # OSF1 and SCO ODT 3.0 have their own names for install.
671 # Don't use installbsd from OSF since it installs stuff as root
673 for ac_prog in ginstall scoinst install; do
674 if test -f $ac_dir/$ac_prog; then
675 if test $ac_prog = install &&
676 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
677 # AIX install. It has an incompatible calling convention.
680 ac_cv_path_install="$ac_dir/$ac_prog -c"
691 if test "${ac_cv_path_install+set}" = set; then
692 INSTALL="$ac_cv_path_install"
694 # As a last resort, use the slow shell script. We don't cache a
695 # path for INSTALL within a source directory, because that will
696 # break other packages using the cache if that directory is
697 # removed, or if the path is relative.
698 INSTALL="$ac_install_sh"
701 echo "$ac_t""$INSTALL" 1>&6
703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
704 # It thinks the first close brace ends the variable substitution.
705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
707 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
712 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
713 echo "configure:714: checking whether build environment is sane" >&5
716 echo timestamp > conftestfile
717 # Do `set' in a subshell so we don't clobber the current shell's
718 # arguments. Must try -L first in case configure is actually a
719 # symlink; some systems play weird games with the mod time of symlinks
720 # (eg FreeBSD returns the mod time of the symlink's containing
723 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
724 if test "$*" = "X"; then
726 set X `ls -t $srcdir/configure conftestfile`
728 if test "$*" != "X $srcdir/configure conftestfile" \
729 && test "$*" != "X conftestfile $srcdir/configure"; then
731 # If neither matched, then we have a broken ls. This can happen
732 # if, for instance, CONFIG_SHELL is bash and it inherits a
733 # broken ls alias from the environment. This has actually
734 # happened. Such a system could not be considered "sane".
735 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
736 alias in your environment" 1>&2; exit 1; }
739 test "$2" = conftestfile
745 { echo "configure: error: newly created file is older than distributed files!
746 Check your system clock" 1>&2; exit 1; }
749 echo "$ac_t""yes" 1>&6
750 if test "$program_transform_name" = s,x,x,; then
751 program_transform_name=
753 # Double any \ or $. echo might interpret backslashes.
754 cat <<\EOF_SED > conftestsed
755 s,\\,\\\\,g; s,\$,$$,g
757 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
760 test "$program_prefix" != NONE &&
761 program_transform_name="s,^,${program_prefix},; $program_transform_name"
762 # Use a double $ so make ignores it.
763 test "$program_suffix" != NONE &&
764 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
766 # sed with no file args requires a program.
767 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
769 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
770 echo "configure:771: checking whether ${MAKE-make} sets \${MAKE}" >&5
771 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
772 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
775 cat > conftestmake <<\EOF
777 @echo 'ac_maketemp="${MAKE}"'
779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
780 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
781 if test -n "$ac_maketemp"; then
782 eval ac_cv_prog_make_${ac_make}_set=yes
784 eval ac_cv_prog_make_${ac_make}_set=no
788 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
789 echo "$ac_t""yes" 1>&6
792 echo "$ac_t""no" 1>&6
793 SET_MAKE="MAKE=${MAKE-make}"
801 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
802 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
804 cat >> confdefs.h <<EOF
805 #define PACKAGE "$PACKAGE"
808 cat >> confdefs.h <<EOF
809 #define VERSION "$VERSION"
814 missing_dir=`cd $ac_aux_dir && pwd`
815 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
816 echo "configure:817: checking for working aclocal" >&5
817 # Run test in a subshell; some versions of sh will print an error if
818 # an executable is not found, even if stderr is redirected.
819 # Redirect stdin to placate older versions of autoconf. Sigh.
820 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
822 echo "$ac_t""found" 1>&6
824 ACLOCAL="$missing_dir/missing aclocal"
825 echo "$ac_t""missing" 1>&6
828 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
829 echo "configure:830: checking for working autoconf" >&5
830 # Run test in a subshell; some versions of sh will print an error if
831 # an executable is not found, even if stderr is redirected.
832 # Redirect stdin to placate older versions of autoconf. Sigh.
833 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
835 echo "$ac_t""found" 1>&6
837 AUTOCONF="$missing_dir/missing autoconf"
838 echo "$ac_t""missing" 1>&6
841 echo $ac_n "checking for working automake""... $ac_c" 1>&6
842 echo "configure:843: checking for working automake" >&5
843 # Run test in a subshell; some versions of sh will print an error if
844 # an executable is not found, even if stderr is redirected.
845 # Redirect stdin to placate older versions of autoconf. Sigh.
846 if (automake --version) < /dev/null > /dev/null 2>&1; then
848 echo "$ac_t""found" 1>&6
850 AUTOMAKE="$missing_dir/missing automake"
851 echo "$ac_t""missing" 1>&6
854 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
855 echo "configure:856: checking for working autoheader" >&5
856 # Run test in a subshell; some versions of sh will print an error if
857 # an executable is not found, even if stderr is redirected.
858 # Redirect stdin to placate older versions of autoconf. Sigh.
859 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
860 AUTOHEADER=autoheader
861 echo "$ac_t""found" 1>&6
863 AUTOHEADER="$missing_dir/missing autoheader"
864 echo "$ac_t""missing" 1>&6
867 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
868 echo "configure:869: checking for working makeinfo" >&5
869 # Run test in a subshell; some versions of sh will print an error if
870 # an executable is not found, even if stderr is redirected.
871 # Redirect stdin to placate older versions of autoconf. Sigh.
872 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
874 echo "$ac_t""found" 1>&6
876 MAKEINFO="$missing_dir/missing makeinfo"
877 echo "$ac_t""missing" 1>&6
882 # Check whether --enable-shared or --disable-shared was given.
883 if test "${enable_shared+set}" = set; then
884 enableval="$enable_shared"
887 yes) enable_shared=yes ;;
888 no) enable_shared=no ;;
891 # Look at the argument we got. We use all the common list separators.
892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
893 for pkg in $enableval; do
894 if test "X$pkg" = "X$p"; then
905 # Check whether --enable-static or --disable-static was given.
906 if test "${enable_static+set}" = set; then
907 enableval="$enable_static"
910 yes) enable_static=yes ;;
911 no) enable_static=no ;;
914 # Look at the argument we got. We use all the common list separators.
915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
916 for pkg in $enableval; do
917 if test "X$pkg" = "X$p"; then
928 # Extract the first word of "ranlib", so it can be a program name with args.
929 set dummy ranlib; ac_word=$2
930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931 echo "configure:932: checking for $ac_word" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 if test -n "$RANLIB"; then
936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 for ac_dir in $PATH; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
942 ac_cv_prog_RANLIB="ranlib"
947 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
950 RANLIB="$ac_cv_prog_RANLIB"
951 if test -n "$RANLIB"; then
952 echo "$ac_t""$RANLIB" 1>&6
954 echo "$ac_t""no" 1>&6
957 # Extract the first word of "gcc", so it can be a program name with args.
958 set dummy gcc; ac_word=$2
959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960 echo "configure:961: checking for $ac_word" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 if test -n "$CC"; then
965 ac_cv_prog_CC="$CC" # Let the user override the test.
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 for ac_dir in $PATH; do
969 test -z "$ac_dir" && ac_dir=.
970 if test -f $ac_dir/$ac_word; then
979 if test -n "$CC"; then
980 echo "$ac_t""$CC" 1>&6
982 echo "$ac_t""no" 1>&6
985 if test -z "$CC"; then
986 # Extract the first word of "cc", so it can be a program name with args.
987 set dummy cc; ac_word=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 if test -n "$CC"; then
994 ac_cv_prog_CC="$CC" # Let the user override the test.
996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
998 for ac_dir in $PATH; do
999 test -z "$ac_dir" && ac_dir=.
1000 if test -f $ac_dir/$ac_word; then
1001 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1002 ac_prog_rejected=yes
1010 if test $ac_prog_rejected = yes; then
1011 # We found a bogon in the path, so make sure we never use it.
1012 set dummy $ac_cv_prog_CC
1014 if test $# -gt 0; then
1015 # We chose a different compiler from the bogus one.
1016 # However, it has the same basename, so the bogon will be chosen
1017 # first if we set CC to just the basename; use the full file name.
1019 set dummy "$ac_dir/$ac_word" "$@"
1027 if test -n "$CC"; then
1028 echo "$ac_t""$CC" 1>&6
1030 echo "$ac_t""no" 1>&6
1033 if test -z "$CC"; then
1034 case "`uname -s`" in
1036 # Extract the first word of "cl", so it can be a program name with args.
1037 set dummy cl; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039 echo "configure:1040: checking for $ac_word" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 if test -n "$CC"; then
1044 ac_cv_prog_CC="$CC" # Let the user override the test.
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 for ac_dir in $PATH; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1058 if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1061 echo "$ac_t""no" 1>&6
1066 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1069 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1074 ac_cpp='$CPP $CPPFLAGS'
1075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1077 cross_compiling=$ac_cv_prog_cc_cross
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1084 if { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1085 ac_cv_prog_cc_works=yes
1086 # If we can't run a trivial program, we are probably using a cross compiler.
1087 if (./conftest; exit) 2>/dev/null; then
1088 ac_cv_prog_cc_cross=no
1090 ac_cv_prog_cc_cross=yes
1093 echo "configure: failed program was:" >&5
1094 cat conftest.$ac_ext >&5
1095 ac_cv_prog_cc_works=no
1099 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1100 if test $ac_cv_prog_cc_works = no; then
1101 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1103 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1105 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1106 cross_compiling=$ac_cv_prog_cc_cross
1108 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether we are using GNU C" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 cat > conftest.c <<EOF
1118 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1125 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1127 if test $ac_cv_prog_gcc = yes; then
1133 ac_test_CFLAGS="${CFLAGS+set}"
1134 ac_save_CFLAGS="$CFLAGS"
1136 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether ${CC-cc} accepts -g" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 echo 'void f(){}' > conftest.c
1142 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1151 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1152 if test "$ac_test_CFLAGS" = set; then
1153 CFLAGS="$ac_save_CFLAGS"
1154 elif test $ac_cv_prog_cc_g = yes; then
1155 if test "$GCC" = yes; then
1161 if test "$GCC" = yes; then
1168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1169 if test "${with_gnu_ld+set}" = set; then
1170 withval="$with_gnu_ld"
1171 test "$withval" = no || with_gnu_ld=yes
1178 if test "$ac_cv_prog_gcc" = yes; then
1179 # Check if gcc -print-prog-name=ld gives a path.
1180 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1181 echo "configure:1182: checking for ld used by GCC" >&5
1182 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1184 # Accept absolute paths.
1186 test -z "$LD" && LD="$ac_prog"
1189 # If it fails, then pretend we aren't using GCC.
1193 # If it is relative, then search for the first ld in PATH.
1197 elif test "$with_gnu_ld" = yes; then
1198 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1199 echo "configure:1200: checking for GNU ld" >&5
1201 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1202 echo "configure:1203: checking for non-GNU ld" >&5
1204 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 if test -z "$LD"; then
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1209 for ac_dir in $PATH; do
1210 test -z "$ac_dir" && ac_dir=.
1211 if test -f "$ac_dir/$ac_prog"; then
1212 ac_cv_path_LD="$ac_dir/$ac_prog"
1213 # Check to see if the program is GNU ld. I'd rather use --version,
1214 # but apparently some GNU ld's only accept -v.
1215 # Break only if it was the GNU/non-GNU ld that we prefer.
1216 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1217 test "$with_gnu_ld" != no && break
1219 test "$with_gnu_ld" != yes && break
1225 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1230 if test -n "$LD"; then
1231 echo "$ac_t""$LD" 1>&6
1233 echo "$ac_t""no" 1>&6
1235 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1237 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1238 echo "configure:1239: checking if the linker ($LD) is GNU ld" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1243 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1244 ac_cv_prog_gnu_ld=yes
1246 ac_cv_prog_gnu_ld=no
1250 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1253 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1254 echo "configure:1255: checking for BSD-compatible nm" >&5
1255 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test -n "$NM"; then
1259 # Let the user override the test.
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1263 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1264 test -z "$ac_dir" && ac_dir=.
1265 if test -f $ac_dir/nm; then
1266 # Check to see if the nm accepts a BSD-compat flag.
1267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1268 # nm: unknown option "B" ignored
1269 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1270 ac_cv_path_NM="$ac_dir/nm -B"
1271 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1272 ac_cv_path_NM="$ac_dir/nm -p"
1274 ac_cv_path_NM="$ac_dir/nm"
1280 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1285 echo "$ac_t""$NM" 1>&6
1288 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1289 echo "configure:1290: checking whether ln -s works" >&5
1290 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1294 if ln -s X conftestdata 2>/dev/null
1297 ac_cv_prog_LN_S="ln -s"
1302 LN_S="$ac_cv_prog_LN_S"
1303 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1304 echo "$ac_t""yes" 1>&6
1306 echo "$ac_t""no" 1>&6
1309 if test $host != $build; then
1310 ac_tool_prefix=${host_alias}-
1315 # Always use our own libtool.
1316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1318 # Check for any special flags to pass to ltconfig.
1320 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1321 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1322 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1323 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1324 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1326 # Some flags need to be propagated to the compiler or linker for good
1330 # Find out which ABI we are using.
1331 echo '#line 1332 "configure"' > conftest.$ac_ext
1332 if { (eval echo configure:1333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1333 case "`/usr/bin/file conftest.o`" in
1349 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1350 CFLAGS="$CFLAGS -belf"
1354 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1355 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1357 echo "configure:1358: checking for $ac_word" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 if test -n "$DLLTOOL"; then
1362 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1365 for ac_dir in $PATH; do
1366 test -z "$ac_dir" && ac_dir=.
1367 if test -f $ac_dir/$ac_word; then
1368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1375 DLLTOOL="$ac_cv_prog_DLLTOOL"
1376 if test -n "$DLLTOOL"; then
1377 echo "$ac_t""$DLLTOOL" 1>&6
1379 echo "$ac_t""no" 1>&6
1383 if test -z "$ac_cv_prog_DLLTOOL"; then
1384 if test -n "$ac_tool_prefix"; then
1385 # Extract the first word of "dlltool", so it can be a program name with args.
1386 set dummy dlltool; ac_word=$2
1387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1388 echo "configure:1389: checking for $ac_word" >&5
1389 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 if test -n "$DLLTOOL"; then
1393 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1396 for ac_dir in $PATH; do
1397 test -z "$ac_dir" && ac_dir=.
1398 if test -f $ac_dir/$ac_word; then
1399 ac_cv_prog_DLLTOOL="dlltool"
1404 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1407 DLLTOOL="$ac_cv_prog_DLLTOOL"
1408 if test -n "$DLLTOOL"; then
1409 echo "$ac_t""$DLLTOOL" 1>&6
1411 echo "$ac_t""no" 1>&6
1419 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1420 set dummy ${ac_tool_prefix}as; ac_word=$2
1421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1422 echo "configure:1423: checking for $ac_word" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 if test -n "$AS"; then
1427 ac_cv_prog_AS="$AS" # Let the user override the test.
1429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1430 for ac_dir in $PATH; do
1431 test -z "$ac_dir" && ac_dir=.
1432 if test -f $ac_dir/$ac_word; then
1433 ac_cv_prog_AS="${ac_tool_prefix}as"
1441 if test -n "$AS"; then
1442 echo "$ac_t""$AS" 1>&6
1444 echo "$ac_t""no" 1>&6
1448 if test -z "$ac_cv_prog_AS"; then
1449 if test -n "$ac_tool_prefix"; then
1450 # Extract the first word of "as", so it can be a program name with args.
1451 set dummy as; ac_word=$2
1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1453 echo "configure:1454: checking for $ac_word" >&5
1454 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 if test -n "$AS"; then
1458 ac_cv_prog_AS="$AS" # Let the user override the test.
1460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1461 for ac_dir in $PATH; do
1462 test -z "$ac_dir" && ac_dir=.
1463 if test -f $ac_dir/$ac_word; then
1469 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1473 if test -n "$AS"; then
1474 echo "$ac_t""$AS" 1>&6
1476 echo "$ac_t""no" 1>&6
1489 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1490 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1491 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1492 DLLTOOL="$DLLTOOL" AS="$AS" \
1493 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1494 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1495 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1497 # Redirect the config.log output again, so that the ltconfig log is not
1498 # clobbered by the next message.
1499 exec 5>>./config.log
1506 # Extract the first word of "gcc", so it can be a program name with args.
1507 set dummy gcc; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 if test -n "$CC"; then
1514 ac_cv_prog_CC="$CC" # Let the user override the test.
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 for ac_dir in $PATH; do
1518 test -z "$ac_dir" && ac_dir=.
1519 if test -f $ac_dir/$ac_word; then
1528 if test -n "$CC"; then
1529 echo "$ac_t""$CC" 1>&6
1531 echo "$ac_t""no" 1>&6
1534 if test -z "$CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536 set dummy cc; ac_word=$2
1537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_word" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1547 for ac_dir in $PATH; do
1548 test -z "$ac_dir" && ac_dir=.
1549 if test -f $ac_dir/$ac_word; then
1550 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1551 ac_prog_rejected=yes
1559 if test $ac_prog_rejected = yes; then
1560 # We found a bogon in the path, so make sure we never use it.
1561 set dummy $ac_cv_prog_CC
1563 if test $# -gt 0; then
1564 # We chose a different compiler from the bogus one.
1565 # However, it has the same basename, so the bogon will be chosen
1566 # first if we set CC to just the basename; use the full file name.
1568 set dummy "$ac_dir/$ac_word" "$@"
1576 if test -n "$CC"; then
1577 echo "$ac_t""$CC" 1>&6
1579 echo "$ac_t""no" 1>&6
1582 if test -z "$CC"; then
1583 case "`uname -s`" in
1585 # Extract the first word of "cl", so it can be a program name with args.
1586 set dummy cl; ac_word=$2
1587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_word" >&5
1589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 if test -n "$CC"; then
1593 ac_cv_prog_CC="$CC" # Let the user override the test.
1595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1596 for ac_dir in $PATH; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1607 if test -n "$CC"; then
1608 echo "$ac_t""$CC" 1>&6
1610 echo "$ac_t""no" 1>&6
1615 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1618 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1619 echo "configure:1620: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1623 ac_cpp='$CPP $CPPFLAGS'
1624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1626 cross_compiling=$ac_cv_prog_cc_cross
1628 cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1633 if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1634 ac_cv_prog_cc_works=yes
1635 # If we can't run a trivial program, we are probably using a cross compiler.
1636 if (./conftest; exit) 2>/dev/null; then
1637 ac_cv_prog_cc_cross=no
1639 ac_cv_prog_cc_cross=yes
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1644 ac_cv_prog_cc_works=no
1648 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1649 if test $ac_cv_prog_cc_works = no; then
1650 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1652 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1653 echo "configure:1654: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1654 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1655 cross_compiling=$ac_cv_prog_cc_cross
1657 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1658 echo "configure:1659: checking whether we are using GNU C" >&5
1659 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 cat > conftest.c <<EOF
1667 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1674 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1676 if test $ac_cv_prog_gcc = yes; then
1682 ac_test_CFLAGS="${CFLAGS+set}"
1683 ac_save_CFLAGS="$CFLAGS"
1685 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1686 echo "configure:1687: checking whether ${CC-cc} accepts -g" >&5
1687 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 echo 'void f(){}' > conftest.c
1691 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1700 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1701 if test "$ac_test_CFLAGS" = set; then
1702 CFLAGS="$ac_save_CFLAGS"
1703 elif test $ac_cv_prog_cc_g = yes; then
1704 if test "$GCC" = yes; then
1710 if test "$GCC" = yes; then
1718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1721 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1722 echo "configure:1723: checking for POSIXized ISC" >&5
1723 if test -d /etc/conf/kconfig.d &&
1724 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1726 echo "$ac_t""yes" 1>&6
1727 ISC=yes # If later tests want to check for ISC.
1728 cat >> confdefs.h <<\EOF
1729 #define _POSIX_SOURCE 1
1732 if test "$GCC" = yes; then
1738 echo "$ac_t""no" 1>&6
1744 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1745 echo "configure:1746: checking how to run the C preprocessor" >&5
1746 # On Suns, sometimes $CPP names a directory.
1747 if test -n "$CPP" && test -d "$CPP"; then
1750 if test -z "$CPP"; then
1751 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 # This must be in double quotes, not single quotes, because CPP may get
1755 # substituted into the Makefile and "${CC-cc}" will confuse make.
1757 # On the NeXT, cc -E runs the code through the compiler's parser,
1758 # not just through cpp.
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1766 { (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1768 if test -z "$ac_err"; then
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 CPP="${CC-cc} -E -traditional-cpp"
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1783 { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1785 if test -z "$ac_err"; then
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1792 CPP="${CC-cc} -nologo -E"
1793 cat > conftest.$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1800 { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1802 if test -z "$ac_err"; then
1806 echo "configure: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1816 ac_cv_prog_CPP="$CPP"
1818 CPP="$ac_cv_prog_CPP"
1820 ac_cv_prog_CPP="$CPP"
1822 echo "$ac_t""$CPP" 1>&6
1824 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1825 echo "configure:1826: checking for ANSI C header files" >&5
1826 if eval "test \"`echo '$''{'ac_cv_header_stdc'+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"
1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1842 ac_cv_header_stdc=yes
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1848 ac_cv_header_stdc=no
1852 if test $ac_cv_header_stdc = yes; then
1853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1860 egrep "memchr" >/dev/null 2>&1; then
1864 ac_cv_header_stdc=no
1870 if test $ac_cv_header_stdc = yes; then
1871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1878 egrep "free" >/dev/null 2>&1; then
1882 ac_cv_header_stdc=no
1888 if test $ac_cv_header_stdc = yes; then
1889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1890 if test "$cross_compiling" = yes; then
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1897 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1898 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1900 int main () { int i; for (i = 0; i < 256; i++)
1901 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1905 if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 ac_cv_header_stdc=no
1920 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1921 if test $ac_cv_header_stdc = yes; then
1922 cat >> confdefs.h <<\EOF
1923 #define STDC_HEADERS 1
1928 echo $ac_n "checking for working const""... $ac_c" 1>&6
1929 echo "configure:1930: checking for working const" >&5
1930 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1939 /* Ultrix mips cc rejects this. */
1940 typedef int charset[2]; const charset x;
1941 /* SunOS 4.1.1 cc rejects this. */
1942 char const *const *ccp;
1944 /* NEC SVR4.0.2 mips cc rejects this. */
1945 struct point {int x, y;};
1946 static struct point const zero = {0,0};
1947 /* AIX XL C 1.02.0.0 rejects this.
1948 It does not let you subtract one const X* pointer from another in an arm
1949 of an if-expression whose if-part is not a constant expression */
1950 const char *g = "string";
1951 ccp = &g + (g ? g-g : 0);
1952 /* HPUX 7.0 cc rejects these. */
1955 ccp = (char const *const *) p;
1956 { /* SCO 3.2v4 cc rejects this. */
1958 char const *s = 0 ? (char *) 0 : (char const *) 0;
1962 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1964 const int *foo = &x[0];
1967 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1968 typedef const int *iptr;
1972 { /* AIX XL C 1.02.0.0 rejects this saying
1973 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1974 struct s { int j; const int *ap[3]; };
1975 struct s *b; b->j = 5;
1977 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1983 if { (eval echo configure:1984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1995 echo "$ac_t""$ac_cv_c_const" 1>&6
1996 if test $ac_cv_c_const = no; then
1997 cat >> confdefs.h <<\EOF
2003 echo $ac_n "checking for inline""... $ac_c" 1>&6
2004 echo "configure:2005: checking for inline" >&5
2005 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2009 for ac_kw in inline __inline__ __inline; do
2010 cat > conftest.$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2018 if { (eval echo configure:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2020 ac_cv_c_inline=$ac_kw; break
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2030 echo "$ac_t""$ac_cv_c_inline" 1>&6
2031 case "$ac_cv_c_inline" in
2033 no) cat >> confdefs.h <<\EOF
2037 *) cat >> confdefs.h <<EOF
2038 #define inline $ac_cv_c_inline
2043 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2044 echo "configure:2045: checking for off_t" >&5
2045 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2051 #include <sys/types.h>
2057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2058 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2060 ac_cv_type_off_t=yes
2068 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2069 if test $ac_cv_type_off_t = no; then
2070 cat >> confdefs.h <<\EOF
2076 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2077 echo "configure:2078: checking for size_t" >&5
2078 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 #include <sys/types.h>
2090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2091 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2093 ac_cv_type_size_t=yes
2096 ac_cv_type_size_t=no
2101 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2102 if test $ac_cv_type_size_t = no; then
2103 cat >> confdefs.h <<\EOF
2104 #define size_t unsigned
2109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2110 # for constant arguments. Useless!
2111 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2112 echo "configure:2113: checking for working alloca.h" >&5
2113 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2121 char *p = alloca(2 * sizeof(int));
2124 if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2126 ac_cv_header_alloca_h=yes
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2131 ac_cv_header_alloca_h=no
2136 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2137 if test $ac_cv_header_alloca_h = yes; then
2138 cat >> confdefs.h <<\EOF
2139 #define HAVE_ALLOCA_H 1
2144 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2145 echo "configure:2146: checking for alloca" >&5
2146 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2154 # define alloca __builtin_alloca
2157 # include <malloc.h>
2158 # define alloca _alloca
2161 # include <alloca.h>
2166 # ifndef alloca /* predefined by HP cc +Olibcalls */
2175 char *p = (char *) alloca(1);
2178 if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2180 ac_cv_func_alloca_works=yes
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2185 ac_cv_func_alloca_works=no
2190 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2191 if test $ac_cv_func_alloca_works = yes; then
2192 cat >> confdefs.h <<\EOF
2193 #define HAVE_ALLOCA 1
2198 if test $ac_cv_func_alloca_works = no; then
2199 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2200 # that cause trouble. Some versions do not even contain alloca or
2201 # contain a buggy version. If you still want to use their alloca,
2202 # use ar to extract alloca.o from them instead of compiling alloca.c.
2203 ALLOCA=alloca.${ac_objext}
2204 cat >> confdefs.h <<\EOF
2209 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2210 echo "configure:2211: checking whether alloca needs Cray hooks" >&5
2211 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 #if defined(CRAY) && ! defined(CRAY2)
2224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2225 egrep "webecray" >/dev/null 2>&1; then
2236 echo "$ac_t""$ac_cv_os_cray" 1>&6
2237 if test $ac_cv_os_cray = yes; then
2238 for ac_func in _getb67 GETB67 getb67; do
2239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_func" >&5
2241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2247 /* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $ac_func(); below. */
2250 /* Override any gcc2 internal prototype to avoid an error. */
2251 /* We use char because int might match the return type of a gcc2
2252 builtin and then its argument prototype would still apply. */
2257 /* The GNU C library defines this for functions which it implements
2258 to always fail with ENOSYS. Some functions are actually named
2259 something starting with __ and the normal name is an alias. */
2260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2268 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2270 eval "ac_cv_func_$ac_func=yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 eval "ac_cv_func_$ac_func=no"
2280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 cat >> confdefs.h <<EOF
2283 #define CRAY_STACKSEG_END $ac_func
2288 echo "$ac_t""no" 1>&6
2294 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2295 echo "configure:2296: checking stack direction for C alloca" >&5
2296 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 if test "$cross_compiling" = yes; then
2300 ac_cv_c_stack_direction=0
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 find_stack_direction ()
2307 static char *addr = 0;
2312 return find_stack_direction ();
2315 return (&dummy > addr) ? 1 : -1;
2319 exit (find_stack_direction() < 0);
2322 if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2324 ac_cv_c_stack_direction=1
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2329 ac_cv_c_stack_direction=-1
2336 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2337 cat >> confdefs.h <<EOF
2338 #define STACK_DIRECTION $ac_cv_c_stack_direction
2343 for ac_hdr in unistd.h
2345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_hdr" >&5
2348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357 { (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359 if test -z "$ac_err"; then
2361 eval "ac_cv_header_$ac_safe=yes"
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2367 eval "ac_cv_header_$ac_safe=no"
2371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2374 cat >> confdefs.h <<EOF
2375 #define $ac_tr_hdr 1
2379 echo "$ac_t""no" 1>&6
2383 for ac_func in getpagesize
2385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_func" >&5
2387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 /* System header to define __stub macros and hopefully few prototypes,
2394 which can conflict with char $ac_func(); below. */
2396 /* Override any gcc2 internal prototype to avoid an error. */
2397 /* We use char because int might match the return type of a gcc2
2398 builtin and then its argument prototype would still apply. */
2403 /* The GNU C library defines this for functions which it implements
2404 to always fail with ENOSYS. Some functions are actually named
2405 something starting with __ and the normal name is an alias. */
2406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416 eval "ac_cv_func_$ac_func=yes"
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 eval "ac_cv_func_$ac_func=no"
2426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2429 cat >> confdefs.h <<EOF
2430 #define $ac_tr_func 1
2434 echo "$ac_t""no" 1>&6
2438 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2439 echo "configure:2440: checking for working mmap" >&5
2440 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 if test "$cross_compiling" = yes; then
2444 ac_cv_func_mmap_fixed_mapped=no
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2450 /* Thanks to Mike Haertel and Jim Avera for this test.
2451 Here is a matrix of mmap possibilities:
2452 mmap private not fixed
2453 mmap private fixed at somewhere currently unmapped
2454 mmap private fixed at somewhere already mapped
2455 mmap shared not fixed
2456 mmap shared fixed at somewhere currently unmapped
2457 mmap shared fixed at somewhere already mapped
2458 For private mappings, we should verify that changes cannot be read()
2459 back from the file, nor mmap's back from the file at a different
2460 address. (There have been systems where private was not correctly
2461 implemented like the infamous i386 svr4.0, and systems where the
2462 VM page cache was not coherent with the filesystem buffer cache
2463 like early versions of FreeBSD and possibly contemporary NetBSD.)
2464 For shared mappings, we should conversely verify that changes get
2465 propogated back to all the places they're supposed to be.
2467 Grep wants private fixed already mapped.
2468 The main things grep needs to know about mmap are:
2469 * does it exist and is it safe to write into the mmap'd area
2470 * how to use it (BSD variants) */
2471 #include <sys/types.h>
2473 #include <sys/mman.h>
2475 /* This mess was copied from the GNU getpagesize.h. */
2476 #ifndef HAVE_GETPAGESIZE
2477 # ifdef HAVE_UNISTD_H
2478 # include <unistd.h>
2481 /* Assume that all systems that can run configure have sys/param.h. */
2482 # ifndef HAVE_SYS_PARAM_H
2483 # define HAVE_SYS_PARAM_H 1
2486 # ifdef _SC_PAGESIZE
2487 # define getpagesize() sysconf(_SC_PAGESIZE)
2488 # else /* no _SC_PAGESIZE */
2489 # ifdef HAVE_SYS_PARAM_H
2490 # include <sys/param.h>
2491 # ifdef EXEC_PAGESIZE
2492 # define getpagesize() EXEC_PAGESIZE
2493 # else /* no EXEC_PAGESIZE */
2495 # define getpagesize() NBPG * CLSIZE
2498 # endif /* no CLSIZE */
2499 # else /* no NBPG */
2501 # define getpagesize() NBPC
2502 # else /* no NBPC */
2504 # define getpagesize() PAGESIZE
2505 # endif /* PAGESIZE */
2506 # endif /* no NBPC */
2507 # endif /* no NBPG */
2508 # endif /* no EXEC_PAGESIZE */
2509 # else /* no HAVE_SYS_PARAM_H */
2510 # define getpagesize() 8192 /* punt totally */
2511 # endif /* no HAVE_SYS_PARAM_H */
2512 # endif /* no _SC_PAGESIZE */
2514 #endif /* no HAVE_GETPAGESIZE */
2517 extern "C" { void *malloc(unsigned); }
2525 char *data, *data2, *data3;
2529 pagesize = getpagesize();
2532 * First, make a file with some known garbage in it.
2534 data = malloc(pagesize);
2537 for (i = 0; i < pagesize; ++i)
2538 *(data + i) = rand();
2540 fd = creat("conftestmmap", 0600);
2543 if (write(fd, data, pagesize) != pagesize)
2548 * Next, try to mmap the file at a fixed address which
2549 * already has something else allocated at it. If we can,
2550 * also make sure that we see the same garbage.
2552 fd = open("conftestmmap", O_RDWR);
2555 data2 = malloc(2 * pagesize);
2558 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2559 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2560 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2562 for (i = 0; i < pagesize; ++i)
2563 if (*(data + i) != *(data2 + i))
2567 * Finally, make sure that changes to the mapped area
2568 * do not percolate back to the file as seen by read().
2569 * (This is a bug on some variants of i386 svr4.0.)
2571 for (i = 0; i < pagesize; ++i)
2572 *(data2 + i) = *(data2 + i) + 1;
2573 data3 = malloc(pagesize);
2576 if (read(fd, data3, pagesize) != pagesize)
2578 for (i = 0; i < pagesize; ++i)
2579 if (*(data + i) != *(data3 + i))
2582 unlink("conftestmmap");
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2589 ac_cv_func_mmap_fixed_mapped=yes
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2594 ac_cv_func_mmap_fixed_mapped=no
2601 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2602 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2603 cat >> confdefs.h <<\EOF
2610 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2611 unistd.h values.h sys/param.h
2613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_hdr" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2629 eval "ac_cv_header_$ac_safe=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2635 eval "ac_cv_header_$ac_safe=no"
2639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2642 cat >> confdefs.h <<EOF
2643 #define $ac_tr_hdr 1
2647 echo "$ac_t""no" 1>&6
2651 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2652 __argz_count __argz_stringify __argz_next
2654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_func" >&5
2656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 /* System header to define __stub macros and hopefully few prototypes,
2663 which can conflict with char $ac_func(); below. */
2665 /* Override any gcc2 internal prototype to avoid an error. */
2666 /* We use char because int might match the return type of a gcc2
2667 builtin and then its argument prototype would still apply. */
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2683 if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2685 eval "ac_cv_func_$ac_func=yes"
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2690 eval "ac_cv_func_$ac_func=no"
2695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2698 cat >> confdefs.h <<EOF
2699 #define $ac_tr_func 1
2703 echo "$ac_t""no" 1>&6
2708 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2709 for ac_func in stpcpy
2711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_func" >&5
2713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 /* System header to define __stub macros and hopefully few prototypes,
2720 which can conflict with char $ac_func(); below. */
2722 /* Override any gcc2 internal prototype to avoid an error. */
2723 /* We use char because int might match the return type of a gcc2
2724 builtin and then its argument prototype would still apply. */
2729 /* The GNU C library defines this for functions which it implements
2730 to always fail with ENOSYS. Some functions are actually named
2731 something starting with __ and the normal name is an alias. */
2732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2742 eval "ac_cv_func_$ac_func=yes"
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2747 eval "ac_cv_func_$ac_func=no"
2752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2753 echo "$ac_t""yes" 1>&6
2754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2755 cat >> confdefs.h <<EOF
2756 #define $ac_tr_func 1
2760 echo "$ac_t""no" 1>&6
2765 if test "${ac_cv_func_stpcpy}" = "yes"; then
2766 cat >> confdefs.h <<\EOF
2767 #define HAVE_STPCPY 1
2772 if test $ac_cv_header_locale_h = yes; then
2773 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2774 echo "configure:2775: checking for LC_MESSAGES" >&5
2775 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2786 if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2788 am_cv_val_LC_MESSAGES=yes
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2793 am_cv_val_LC_MESSAGES=no
2798 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2799 if test $am_cv_val_LC_MESSAGES = yes; then
2800 cat >> confdefs.h <<\EOF
2801 #define HAVE_LC_MESSAGES 1
2806 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2807 echo "configure:2808: checking whether NLS is requested" >&5
2808 # Check whether --enable-nls or --disable-nls was given.
2809 if test "${enable_nls+set}" = set; then
2810 enableval="$enable_nls"
2816 echo "$ac_t""$USE_NLS" 1>&6
2819 USE_INCLUDED_LIBINTL=no
2821 if test "$USE_NLS" = "yes"; then
2822 cat >> confdefs.h <<\EOF
2823 #define ENABLE_NLS 1
2826 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2827 echo "configure:2828: checking whether included gettext is requested" >&5
2828 # Check whether --with-included-gettext or --without-included-gettext was given.
2829 if test "${with_included_gettext+set}" = set; then
2830 withval="$with_included_gettext"
2831 nls_cv_force_use_gnu_gettext=$withval
2833 nls_cv_force_use_gnu_gettext=no
2836 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2838 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2839 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2841 nls_cv_header_libgt=
2844 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2845 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2846 echo "configure:2847: checking for libintl.h" >&5
2847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2850 cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #include <libintl.h>
2855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2856 { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2858 if test -z "$ac_err"; then
2860 eval "ac_cv_header_$ac_safe=yes"
2863 echo "configure: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2866 eval "ac_cv_header_$ac_safe=no"
2870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2871 echo "$ac_t""yes" 1>&6
2872 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2873 echo "configure:2874: checking for gettext in libc" >&5
2874 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 cat > conftest.$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2880 #include <libintl.h>
2882 return (int) gettext ("")
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2887 gt_cv_func_gettext_libc=yes
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2892 gt_cv_func_gettext_libc=no
2897 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2899 if test "$gt_cv_func_gettext_libc" != "yes"; then
2900 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2901 echo "configure:2902: checking for bindtextdomain in -lintl" >&5
2902 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_save_LIBS="$LIBS"
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
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. */
2914 char bindtextdomain();
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2922 eval "ac_cv_lib_$ac_lib_var=yes"
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2927 eval "ac_cv_lib_$ac_lib_var=no"
2930 LIBS="$ac_save_LIBS"
2933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2934 echo "$ac_t""yes" 1>&6
2935 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2936 echo "configure:2937: checking for gettext in libintl" >&5
2937 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2945 return (int) gettext ("")
2948 if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2950 gt_cv_func_gettext_libintl=yes
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2955 gt_cv_func_gettext_libintl=no
2960 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2962 echo "$ac_t""no" 1>&6
2967 if test "$gt_cv_func_gettext_libc" = "yes" \
2968 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2969 cat >> confdefs.h <<\EOF
2970 #define HAVE_GETTEXT 1
2973 # Extract the first word of "msgfmt", so it can be a program name with args.
2974 set dummy msgfmt; ac_word=$2
2975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_word" >&5
2977 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2982 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2986 for ac_dir in $PATH; do
2987 test -z "$ac_dir" && ac_dir=.
2988 if test -f $ac_dir/$ac_word; then
2989 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2990 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2996 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3000 MSGFMT="$ac_cv_path_MSGFMT"
3001 if test -n "$MSGFMT"; then
3002 echo "$ac_t""$MSGFMT" 1>&6
3004 echo "$ac_t""no" 1>&6
3006 if test "$MSGFMT" != "no"; then
3007 for ac_func in dcgettext
3009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3010 echo "configure:3011: checking for $ac_func" >&5
3011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3014 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 /* System header to define __stub macros and hopefully few prototypes,
3018 which can conflict with char $ac_func(); below. */
3020 /* Override any gcc2 internal prototype to avoid an error. */
3021 /* We use char because int might match the return type of a gcc2
3022 builtin and then its argument prototype would still apply. */
3027 /* The GNU C library defines this for functions which it implements
3028 to always fail with ENOSYS. Some functions are actually named
3029 something starting with __ and the normal name is an alias. */
3030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3040 eval "ac_cv_func_$ac_func=yes"
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3045 eval "ac_cv_func_$ac_func=no"
3050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3051 echo "$ac_t""yes" 1>&6
3052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3053 cat >> confdefs.h <<EOF
3054 #define $ac_tr_func 1
3058 echo "$ac_t""no" 1>&6
3062 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3063 set dummy gmsgfmt; ac_word=$2
3064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3065 echo "configure:3066: checking for $ac_word" >&5
3066 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3071 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3074 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3078 for ac_dir in $PATH; do
3079 test -z "$ac_dir" && ac_dir=.
3080 if test -f $ac_dir/$ac_word; then
3081 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3086 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3090 GMSGFMT="$ac_cv_path_GMSGFMT"
3091 if test -n "$GMSGFMT"; then
3092 echo "$ac_t""$GMSGFMT" 1>&6
3094 echo "$ac_t""no" 1>&6
3097 # Extract the first word of "xgettext", so it can be a program name with args.
3098 set dummy xgettext; ac_word=$2
3099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3100 echo "configure:3101: checking for $ac_word" >&5
3101 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3106 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a 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 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3114 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3120 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3124 XGETTEXT="$ac_cv_path_XGETTEXT"
3125 if test -n "$XGETTEXT"; then
3126 echo "$ac_t""$XGETTEXT" 1>&6
3128 echo "$ac_t""no" 1>&6
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3136 extern int _nl_msg_cat_cntr;
3137 return _nl_msg_cat_cntr
3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3157 echo "$ac_t""no" 1>&6
3162 if test "$CATOBJEXT" = "NONE"; then
3163 nls_cv_use_gnu_gettext=yes
3167 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3168 INTLOBJS="\$(GETTOBJS)"
3169 # Extract the first word of "msgfmt", so it can be a program name with args.
3170 set dummy msgfmt; ac_word=$2
3171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_word" >&5
3173 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3178 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3182 for ac_dir in $PATH; do
3183 test -z "$ac_dir" && ac_dir=.
3184 if test -f $ac_dir/$ac_word; then
3185 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3186 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3192 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3196 MSGFMT="$ac_cv_path_MSGFMT"
3197 if test -n "$MSGFMT"; then
3198 echo "$ac_t""$MSGFMT" 1>&6
3200 echo "$ac_t""no" 1>&6
3203 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3204 set dummy gmsgfmt; ac_word=$2
3205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3206 echo "configure:3207: checking for $ac_word" >&5
3207 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3212 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3215 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3219 for ac_dir in $PATH; do
3220 test -z "$ac_dir" && ac_dir=.
3221 if test -f $ac_dir/$ac_word; then
3222 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3227 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3231 GMSGFMT="$ac_cv_path_GMSGFMT"
3232 if test -n "$GMSGFMT"; then
3233 echo "$ac_t""$GMSGFMT" 1>&6
3235 echo "$ac_t""no" 1>&6
3238 # Extract the first word of "xgettext", so it can be a program name with args.
3239 set dummy xgettext; ac_word=$2
3240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_word" >&5
3242 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3247 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3251 for ac_dir in $PATH; do
3252 test -z "$ac_dir" && ac_dir=.
3253 if test -f $ac_dir/$ac_word; then
3254 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3255 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3261 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3265 XGETTEXT="$ac_cv_path_XGETTEXT"
3266 if test -n "$XGETTEXT"; then
3267 echo "$ac_t""$XGETTEXT" 1>&6
3269 echo "$ac_t""no" 1>&6
3273 USE_INCLUDED_LIBINTL=yes
3277 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3279 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3280 nls_cv_header_intl=libintl.h
3281 nls_cv_header_libgt=libgettext.h
3284 if test "$XGETTEXT" != ":"; then
3285 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3288 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3293 # We need to process the po/ directory.
3297 nls_cv_header_intl=libintl.h
3298 nls_cv_header_libgt=libgettext.h
3301 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3302 # because some of the sources are only built for this goal.
3303 if test "$PACKAGE" = gettext; then
3305 USE_INCLUDED_LIBINTL=yes
3308 for lang in $ALL_LINGUAS; do
3309 GMOFILES="$GMOFILES $lang.gmo"
3310 POFILES="$POFILES $lang.po"
3326 if test "x$CATOBJEXT" != "x"; then
3327 if test "x$ALL_LINGUAS" = "x"; then
3330 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3331 echo "configure:3332: checking for catalogs to be installed" >&5
3333 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3334 case "$ALL_LINGUAS" in
3335 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3338 LINGUAS=$NEW_LINGUAS
3339 echo "$ac_t""$LINGUAS" 1>&6
3342 if test -n "$LINGUAS"; then
3343 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3347 if test $ac_cv_header_locale_h = yes; then
3348 INCLUDE_LOCALE_H="#include <locale.h>"
3351 /* The system does not provide the header <locale.h>. Take care yourself. */"
3355 if test -f $srcdir/po2tbl.sed.in; then
3356 if test "$CATOBJEXT" = ".cat"; then
3357 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3358 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3359 echo "configure:3360: checking for linux/version.h" >&5
3360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <linux/version.h>
3368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3369 { (eval echo configure:3370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3371 if test -z "$ac_err"; then
3373 eval "ac_cv_header_$ac_safe=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 eval "ac_cv_header_$ac_safe=no"
3383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3387 echo "$ac_t""no" 1>&6
3392 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3394 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3395 $srcdir/po2tbl.sed.in > po2tbl.sed
3398 if test "$PACKAGE" = "gettext"; then
3408 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3414 if test -d $srcdir/po; then
3415 test -d po || mkdir po
3416 if test "x$srcdir" != "x."; then
3417 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3418 posrcprefix="$srcdir/"
3420 posrcprefix="../$srcdir/"
3426 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3427 < $srcdir/po/POTFILES.in > po/POTFILES
3432 *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \
3433 | *-*-cygwin32 | *-*-mingw32 | *-*-win32 )
3434 cat >> confdefs.h <<\EOF
3435 #define BSD44_FORMAT 1
3441 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3442 echo "configure:3443: checking whether to enable maintainer-specific portions of Makefiles" >&5
3443 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3444 if test "${enable_maintainer_mode+set}" = set; then
3445 enableval="$enable_maintainer_mode"
3446 USE_MAINTAINER_MODE=$enableval
3448 USE_MAINTAINER_MODE=no
3451 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3452 if test $USE_MAINTAINER_MODE = yes; then
3459 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3460 echo "configure:3461: checking for Cygwin32 environment" >&5
3461 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3469 return __CYGWIN32__;
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3485 echo "$ac_t""$am_cv_cygwin32" 1>&6
3487 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
3488 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3489 echo "configure:3490: checking for Mingw32 environment" >&5
3490 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3514 echo "$ac_t""$am_cv_mingw32" 1>&6
3516 test "$am_cv_mingw32" = yes && MINGW32=yes
3519 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3520 echo "configure:3521: checking for executable suffix" >&5
3521 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
3527 cat > am_c_test.c << 'EOF'
3529 /* Nothing needed here */
3532 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
3534 for file in am_c_test.*; do
3538 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
3544 test x"${am_cv_exeext}" = x && am_cv_exeext=no
3547 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
3548 echo "$ac_t""${am_cv_exeext}" 1>&6
3552 cat > confcache <<\EOF
3553 # This file is a shell script that caches the results of configure
3554 # tests run on this system so they can be shared between configure
3555 # scripts and configure runs. It is not useful on other systems.
3556 # If it contains results you don't want to keep, you may remove or edit it.
3558 # By default, configure uses ./config.cache as the cache file,
3559 # creating it if it does not exist already. You can give configure
3560 # the --cache-file=FILE option to use a different cache file; that is
3561 # what configure does when it calls configure scripts in
3562 # subdirectories, so they share the cache.
3563 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3564 # config.status only pays attention to the cache file if you give it the
3565 # --recheck option to rerun configure.
3568 # The following way of writing the cache mishandles newlines in values,
3569 # but we know of no workaround that is simple, portable, and efficient.
3570 # So, don't put newlines in cache variables' values.
3571 # Ultrix sh set writes to stderr and can't be redirected directly,
3572 # and sets the high bit in the cache file unless we assign to the vars.
3574 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3576 # `set' does not quote correctly, so add quotes (double-quote substitution
3577 # turns \\\\ into \\, and sed turns \\ into \).
3579 -e "s/'/'\\\\''/g" \
3580 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3583 # `set' quotes correctly as required by POSIX, so do not add quotes.
3584 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3587 if cmp -s $cache_file confcache; then
3590 if test -w $cache_file; then
3591 echo "updating cache $cache_file"
3592 cat confcache > $cache_file
3594 echo "not updating unwritable cache $cache_file"
3599 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3602 # Let make expand exec_prefix.
3603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3605 # Any assignment to VPATH causes Sun make to only execute
3606 # the first set of double-colon rules, so remove it if not needed.
3607 # If there is a colon in the path, we need to keep it.
3608 if test "x$srcdir" = x.; then
3609 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3612 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3614 DEFS=-DHAVE_CONFIG_H
3616 # Without the "./", some shells look in PATH for config.status.
3617 : ${CONFIG_STATUS=./config.status}
3619 echo creating $CONFIG_STATUS
3620 rm -f $CONFIG_STATUS
3621 cat > $CONFIG_STATUS <<EOF
3623 # Generated automatically by configure.
3624 # Run this file to recreate the current configuration.
3625 # This directory was configured as follows,
3626 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3628 # $0 $ac_configure_args
3630 # Compiler output produced by configure, useful for debugging
3631 # configure, is in ./config.log if it exists.
3633 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3636 case "\$ac_option" in
3637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3638 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3639 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3640 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3641 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
3643 -help | --help | --hel | --he | --h)
3644 echo "\$ac_cs_usage"; exit 0 ;;
3645 *) echo "\$ac_cs_usage"; exit 1 ;;
3649 ac_given_srcdir=$srcdir
3650 ac_given_INSTALL="$INSTALL"
3652 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3654 cat >> $CONFIG_STATUS <<EOF
3656 # Protect against being on the right side of a sed subst in config.status.
3657 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3658 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3662 s%@CFLAGS@%$CFLAGS%g
3663 s%@CPPFLAGS@%$CPPFLAGS%g
3664 s%@CXXFLAGS@%$CXXFLAGS%g
3666 s%@LDFLAGS@%$LDFLAGS%g
3668 s%@exec_prefix@%$exec_prefix%g
3669 s%@prefix@%$prefix%g
3670 s%@program_transform_name@%$program_transform_name%g
3671 s%@bindir@%$bindir%g
3672 s%@sbindir@%$sbindir%g
3673 s%@libexecdir@%$libexecdir%g
3674 s%@datadir@%$datadir%g
3675 s%@sysconfdir@%$sysconfdir%g
3676 s%@sharedstatedir@%$sharedstatedir%g
3677 s%@localstatedir@%$localstatedir%g
3678 s%@libdir@%$libdir%g
3679 s%@includedir@%$includedir%g
3680 s%@oldincludedir@%$oldincludedir%g
3681 s%@infodir@%$infodir%g
3682 s%@mandir@%$mandir%g
3684 s%@host_alias@%$host_alias%g
3685 s%@host_cpu@%$host_cpu%g
3686 s%@host_vendor@%$host_vendor%g
3687 s%@host_os@%$host_os%g
3688 s%@target@%$target%g
3689 s%@target_alias@%$target_alias%g
3690 s%@target_cpu@%$target_cpu%g
3691 s%@target_vendor@%$target_vendor%g
3692 s%@target_os@%$target_os%g
3694 s%@build_alias@%$build_alias%g
3695 s%@build_cpu@%$build_cpu%g
3696 s%@build_vendor@%$build_vendor%g
3697 s%@build_os@%$build_os%g
3698 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3699 s%@INSTALL_DATA@%$INSTALL_DATA%g
3700 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3701 s%@PACKAGE@%$PACKAGE%g
3702 s%@VERSION@%$VERSION%g
3703 s%@ACLOCAL@%$ACLOCAL%g
3704 s%@AUTOCONF@%$AUTOCONF%g
3705 s%@AUTOMAKE@%$AUTOMAKE%g
3706 s%@AUTOHEADER@%$AUTOHEADER%g
3707 s%@MAKEINFO@%$MAKEINFO%g
3708 s%@SET_MAKE@%$SET_MAKE%g
3709 s%@RANLIB@%$RANLIB%g
3714 s%@LIBTOOL@%$LIBTOOL%g
3715 s%@DLLTOOL@%$DLLTOOL%g
3718 s%@ALLOCA@%$ALLOCA%g
3719 s%@USE_NLS@%$USE_NLS%g
3720 s%@MSGFMT@%$MSGFMT%g
3721 s%@GMSGFMT@%$GMSGFMT%g
3722 s%@XGETTEXT@%$XGETTEXT%g
3723 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3724 s%@CATALOGS@%$CATALOGS%g
3725 s%@CATOBJEXT@%$CATOBJEXT%g
3726 s%@DATADIRNAME@%$DATADIRNAME%g
3727 s%@GMOFILES@%$GMOFILES%g
3728 s%@INSTOBJEXT@%$INSTOBJEXT%g
3729 s%@INTLDEPS@%$INTLDEPS%g
3730 s%@INTLLIBS@%$INTLLIBS%g
3731 s%@INTLOBJS@%$INTLOBJS%g
3732 s%@POFILES@%$POFILES%g
3734 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3736 s%@GT_YES@%$GT_YES%g
3737 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3740 s%@EXEEXT@%$EXEEXT%g
3745 cat >> $CONFIG_STATUS <<\EOF
3747 # Split the substitutions into bite-sized pieces for seds with
3748 # small command number limits, like on Digital OSF/1 and HP-UX.
3749 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3750 ac_file=1 # Number of current file.
3751 ac_beg=1 # First line for current file.
3752 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3755 while $ac_more_lines; do
3756 if test $ac_beg -gt 1; then
3757 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3759 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3761 if test ! -s conftest.s$ac_file; then
3763 rm -f conftest.s$ac_file
3765 if test -z "$ac_sed_cmds"; then
3766 ac_sed_cmds="sed -f conftest.s$ac_file"
3768 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3770 ac_file=`expr $ac_file + 1`
3772 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3775 if test -z "$ac_sed_cmds"; then
3780 cat >> $CONFIG_STATUS <<EOF
3782 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
3784 cat >> $CONFIG_STATUS <<\EOF
3785 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3788 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3789 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3790 *) ac_file_in="${ac_file}.in" ;;
3793 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3795 # Remove last slash and all that follows it. Not all systems have dirname.
3796 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3797 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3798 # The file is in a subdirectory.
3799 test ! -d "$ac_dir" && mkdir "$ac_dir"
3800 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3801 # A "../" for each directory in $ac_dir_suffix.
3802 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3804 ac_dir_suffix= ac_dots=
3807 case "$ac_given_srcdir" in
3809 if test -z "$ac_dots"; then top_srcdir=.
3810 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3811 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3813 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3814 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3817 case "$ac_given_INSTALL" in
3818 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3819 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3822 echo creating "$ac_file"
3824 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3826 *Makefile*) ac_comsub="1i\\
3827 # $configure_input" ;;
3831 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3833 s%@configure_input@%$configure_input%g
3834 s%@srcdir@%$srcdir%g
3835 s%@top_srcdir@%$top_srcdir%g
3836 s%@INSTALL@%$INSTALL%g
3837 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3841 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3842 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3844 # ac_d sets the value in "#define NAME VALUE" lines.
3845 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3846 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3849 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3850 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3851 ac_uB='\([ ]\)%\1#\2define\3'
3854 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3855 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3856 ac_eB='$%\1#\2define\3'
3860 if test "${CONFIG_HEADERS+set}" != set; then
3862 cat >> $CONFIG_STATUS <<EOF
3863 CONFIG_HEADERS="gconfig.h:gconfig.in"
3865 cat >> $CONFIG_STATUS <<\EOF
3867 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3870 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3871 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3872 *) ac_file_in="${ac_file}.in" ;;
3875 echo creating $ac_file
3877 rm -f conftest.frag conftest.in conftest.out
3878 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3879 cat $ac_file_inputs > conftest.in
3883 # Transform confdefs.h into a sed script conftest.vals that substitutes
3884 # the proper values into config.h.in to produce config.h. And first:
3885 # Protect against being on the right side of a sed subst in config.status.
3886 # Protect against being in an unquoted here document in config.status.
3888 cat > conftest.hdr <<\EOF
3891 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3895 sed -n -f conftest.hdr confdefs.h > conftest.vals
3898 # This sed command replaces #undef with comments. This is necessary, for
3899 # example, in the case of _POSIX_SOURCE, which is predefined and required
3900 # on some systems where configure will not decide to define it.
3901 cat >> conftest.vals <<\EOF
3902 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3905 # Break up conftest.vals because some shells have a limit on
3906 # the size of here documents, and old seds have small limits too.
3911 ac_lines=`grep -c . conftest.vals`
3912 # grep -c gives empty output for an empty file on some AIX systems.
3913 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3914 # Write a limited-size here document to conftest.frag.
3915 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3916 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3918 sed -f conftest.frag conftest.in > conftest.out
3920 mv conftest.out conftest.in
3922 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3924 mv conftest.tail conftest.vals
3928 cat >> $CONFIG_STATUS <<\EOF
3929 rm -f conftest.frag conftest.h
3930 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3931 cat conftest.in >> conftest.h
3933 if cmp -s $ac_file conftest.h 2>/dev/null; then
3934 echo "$ac_file is unchanged"
3937 # Remove last slash and all that follows it. Not all systems have dirname.
3938 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3939 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3940 # The file is in a subdirectory.
3941 test ! -d "$ac_dir" && mkdir "$ac_dir"
3944 mv conftest.h $ac_file
3949 cat >> $CONFIG_STATUS <<EOF
3953 cat >> $CONFIG_STATUS <<\EOF
3954 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3955 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
3958 chmod +x $CONFIG_STATUS
3959 rm -fr confdefs* $ac_clean_files
3960 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1