3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-static[=PKGS] build static libraries [default=no]"
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file
=.
/config.cache
38 program_transform_name
=s
,x
,x
,
46 bindir
='${exec_prefix}/bin'
47 sbindir
='${exec_prefix}/sbin'
48 libexecdir
='${exec_prefix}/libexec'
49 datadir
='${prefix}/share'
50 sysconfdir
='${prefix}/etc'
51 sharedstatedir
='${prefix}/com'
52 localstatedir
='${prefix}/var'
53 libdir
='${exec_prefix}/lib'
54 includedir
='${prefix}/include'
55 oldincludedir
='/usr/include'
56 infodir
='${prefix}/info'
57 mandir
='${prefix}/man'
59 # Initialize some other variables.
62 SHELL
=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
88 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
89 bindir
="$ac_optarg" ;;
91 -build |
--build |
--buil |
--bui |
--bu)
93 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
96 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
97 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
99 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
100 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
101 cache_file
="$ac_optarg" ;;
103 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
105 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
107 datadir
="$ac_optarg" ;;
109 -disable-* |
--disable-*)
110 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* |
--enable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
132 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
133 |
--exec |
--exe |
--ex)
134 ac_prev
=exec_prefix
;;
135 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
136 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
137 |
--exec=* |
--exe=* |
--ex=*)
138 exec_prefix
="$ac_optarg" ;;
140 -gas |
--gas |
--ga |
--g)
141 # Obsolete; use --with-gas.
144 -help |
--help |
--hel |
--he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host |
--host |
--hos |
--ho)
201 -host=* |
--host=* |
--hos=* |
--ho=*)
204 -includedir |
--includedir |
--includedi |
--included |
--include \
205 |
--includ |
--inclu |
--incl |
--inc)
206 ac_prev
=includedir
;;
207 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
208 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
209 includedir
="$ac_optarg" ;;
211 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
213 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
214 infodir
="$ac_optarg" ;;
216 -libdir |
--libdir |
--libdi |
--libd)
218 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
219 libdir
="$ac_optarg" ;;
221 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
222 |
--libexe |
--libex |
--libe)
223 ac_prev
=libexecdir
;;
224 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
225 |
--libexe=* |
--libex=* |
--libe=*)
226 libexecdir
="$ac_optarg" ;;
228 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
229 |
--localstate |
--localstat |
--localsta |
--localst \
230 |
--locals |
--local |
--loca |
--loc |
--lo)
231 ac_prev
=localstatedir
;;
232 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
233 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
234 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
235 localstatedir
="$ac_optarg" ;;
237 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
239 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
240 mandir
="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
250 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
251 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
254 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
255 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
256 |
--oldin |
--oldi |
--old |
--ol |
--o)
257 ac_prev
=oldincludedir
;;
258 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
259 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
260 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
261 oldincludedir
="$ac_optarg" ;;
263 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
265 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
266 prefix
="$ac_optarg" ;;
268 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
269 |
--program-pre |
--program-pr |
--program-p)
270 ac_prev
=program_prefix
;;
271 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
272 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
273 program_prefix
="$ac_optarg" ;;
275 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
276 |
--program-suf |
--program-su |
--program-s)
277 ac_prev
=program_suffix
;;
278 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
279 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
280 program_suffix
="$ac_optarg" ;;
282 -program-transform-name |
--program-transform-name \
283 |
--program-transform-nam |
--program-transform-na \
284 |
--program-transform-n |
--program-transform- \
285 |
--program-transform |
--program-transfor \
286 |
--program-transfo |
--program-transf \
287 |
--program-trans |
--program-tran \
288 |
--progr-tra |
--program-tr |
--program-t)
289 ac_prev
=program_transform_name
;;
290 -program-transform-name=* |
--program-transform-name=* \
291 |
--program-transform-nam=* |
--program-transform-na=* \
292 |
--program-transform-n=* |
--program-transform-=* \
293 |
--program-transform=* |
--program-transfor=* \
294 |
--program-transfo=* |
--program-transf=* \
295 |
--program-trans=* |
--program-tran=* \
296 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
297 program_transform_name
="$ac_optarg" ;;
299 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
300 |
-silent |
--silent |
--silen |
--sile |
--sil)
303 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
305 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
307 sbindir
="$ac_optarg" ;;
309 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
310 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
311 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
313 ac_prev
=sharedstatedir
;;
314 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
315 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
316 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
318 sharedstatedir
="$ac_optarg" ;;
320 -site |
--site |
--sit)
322 -site=* |
--site=* |
--sit=*)
325 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
327 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
328 srcdir
="$ac_optarg" ;;
330 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
331 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
332 ac_prev
=sysconfdir
;;
333 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
334 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
335 sysconfdir
="$ac_optarg" ;;
337 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
339 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
340 target
="$ac_optarg" ;;
342 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
345 -version |
--version |
--versio |
--versi |
--vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package
=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* |
--without-*)
363 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
376 |
--x-incl |
--x-inc |
--x-in |
--x-i)
377 ac_prev
=x_includes
;;
378 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
379 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
380 x_includes
="$ac_optarg" ;;
382 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
383 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
384 ac_prev
=x_libraries
;;
385 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
386 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
387 x_libraries
="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE
; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
438 |
--no-cr |
--no-c) ;;
439 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
440 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
441 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest
* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file
=lib
/iconv.c
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted
=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted
=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE
; then
492 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file
in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp
='$CPP $CPPFLAGS'
515 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling
=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
527 ac_n
=-n ac_c
= ac_t
= ac_tt
='
531 ac_n
= ac_c
='\c' ac_t
= ac_tt
='
537 for ac_dir
in autoconf
$srcdir/autoconf
; do
538 if test -f $ac_dir/install-sh
; then
540 ac_install_sh
="$ac_aux_dir/install-sh -c"
542 elif test -f $ac_dir/install.sh
; then
544 ac_install_sh
="$ac_aux_dir/install.sh -c"
548 if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
551 ac_config_guess
=$ac_aux_dir/config.guess
552 ac_config_sub
=$ac_aux_dir/config.sub
553 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
556 echo $ac_n "checking whether ${MAKE-make} sets \$(MAKE)""... $ac_c" 1>&6
557 echo "configure:558: checking whether ${MAKE-make} sets \$(MAKE)" >&5
558 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
559 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
562 cat > conftestmake
<<\EOF
564 @
echo 'ac_maketemp="${MAKE}"'
566 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
567 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
568 if test -n "$ac_maketemp"; then
569 eval ac_cv_prog_make_
${ac_make}_set
=yes
571 eval ac_cv_prog_make_
${ac_make}_set
=no
575 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
576 echo "$ac_t""yes" 1>&6
579 echo "$ac_t""no" 1>&6
580 SET_MAKE
="MAKE=${MAKE-make}"
585 # Extract the first word of "gcc", so it can be a program name with args.
586 set dummy gcc
; ac_word
=$2
587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
588 echo "configure:589: checking for $ac_word" >&5
589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 if test -n "$CC"; then
593 ac_cv_prog_CC
="$CC" # Let the user override the test.
595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
597 for ac_dir
in $ac_dummy; do
598 test -z "$ac_dir" && ac_dir
=.
599 if test -f $ac_dir/$ac_word; then
608 if test -n "$CC"; then
609 echo "$ac_t""$CC" 1>&6
611 echo "$ac_t""no" 1>&6
614 if test -z "$CC"; then
615 # Extract the first word of "cc", so it can be a program name with args.
616 set dummy cc
; ac_word
=$2
617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618 echo "configure:619: checking for $ac_word" >&5
619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
622 if test -n "$CC"; then
623 ac_cv_prog_CC
="$CC" # Let the user override the test.
625 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
628 for ac_dir
in $ac_dummy; do
629 test -z "$ac_dir" && ac_dir
=.
630 if test -f $ac_dir/$ac_word; then
631 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
640 if test $ac_prog_rejected = yes; then
641 # We found a bogon in the path, so make sure we never use it.
642 set dummy
$ac_cv_prog_CC
644 if test $# -gt 0; then
645 # We chose a different compiler from the bogus one.
646 # However, it has the same basename, so the bogon will be chosen
647 # first if we set CC to just the basename; use the full file name.
649 set dummy
"$ac_dir/$ac_word" "$@"
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
663 if test -z "$CC"; then
666 # Extract the first word of "cl", so it can be a program name with args.
667 set dummy cl
; ac_word
=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC
="$CC" # Let the user override the test.
676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
678 for ac_dir
in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir
=.
680 if test -f $ac_dir/$ac_word; then
689 if test -n "$CC"; then
690 echo "$ac_t""$CC" 1>&6
692 echo "$ac_t""no" 1>&6
697 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
700 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
701 echo "configure:702: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
705 ac_cpp
='$CPP $CPPFLAGS'
706 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
707 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
708 cross_compiling
=$ac_cv_prog_cc_cross
710 cat > conftest.
$ac_ext << EOF
712 #line 713 "configure"
713 #include "confdefs.h"
715 int main(){return(0);}
717 if { (eval echo configure
:718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
718 ac_cv_prog_cc_works
=yes
719 # If we can't run a trivial program, we are probably using a cross compiler.
720 if (.
/conftest
; exit) 2>/dev
/null
; then
721 ac_cv_prog_cc_cross
=no
723 ac_cv_prog_cc_cross
=yes
726 echo "configure: failed program was:" >&5
727 cat conftest.
$ac_ext >&5
728 ac_cv_prog_cc_works
=no
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp
='$CPP $CPPFLAGS'
734 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling
=$ac_cv_prog_cc_cross
738 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
739 if test $ac_cv_prog_cc_works = no
; then
740 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
744 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
745 cross_compiling
=$ac_cv_prog_cc_cross
747 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
748 echo "configure:749: checking whether we are using GNU C" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftest.c
<<EOF
757 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
763 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
765 if test $ac_cv_prog_gcc = yes; then
771 ac_test_CFLAGS
="${CFLAGS+set}"
772 ac_save_CFLAGS
="$CFLAGS"
774 if test "$ac_test_CFLAGS" = set; then
775 CFLAGS
="$ac_save_CFLAGS"
777 if test "$GCC" = yes; then
778 # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
779 # that results from __OPTIMIZE__ being defined for CC but not CPP.
780 if echo "$CC " |
grep ' -O[1-9 ]' > /dev
/null
2>&1; then
781 : # already optimizing
791 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
792 echo "configure:793: checking how to run the C preprocessor" >&5
793 # On Suns, sometimes $CPP names a directory.
794 if test -n "$CPP" && test -d "$CPP"; then
797 if test -z "$CPP"; then
798 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 # This must be in double quotes, not single quotes, because CPP may get
802 # substituted into the Makefile and "${CC-cc}" will confuse make.
804 if test -n "$GCC"; then
805 # Suppress warning messages.
808 # On the NeXT, cc -E runs the code through the compiler's parser,
809 # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use
810 # "cc -E -traditional-cpp" instead.
811 cat > conftest.
$ac_ext <<EOF
812 #line 813 "configure"
813 #include "confdefs.h"
817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
818 { (eval echo configure
:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
820 if test -z "$ac_err"; then
825 echo "configure: failed program was:" >&5
826 cat conftest.
$ac_ext >&5
829 if test -z "$ac_have_cpp"; then
830 CPP
="${CC-cc} -E -traditional-cpp"
831 cat > conftest.
$ac_ext <<EOF
832 #line 833 "configure"
833 #include "confdefs.h"
837 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
838 { (eval echo configure
:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
839 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
840 if test -z "$ac_err"; then
845 echo "configure: failed program was:" >&5
846 cat conftest.
$ac_ext >&5
849 if test -n "$ac_have_cpp"; then
850 CC
="${CC-cc} -traditional-cpp"
852 CPP
="${CC-cc} -nologo -E"
853 cat > conftest.
$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure
:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862 if test -z "$ac_err"; then
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
871 if test -n "$ac_have_cpp"; then
872 CC
="${CC-cc} -nologo"
879 ac_cv_prog_CPP
="$CPP"
881 CPP
="$ac_cv_prog_CPP"
883 ac_cv_prog_CPP
="$CPP"
885 echo "$ac_t""$CPP" 1>&6
887 if test $ac_cv_prog_gcc = yes; then
888 echo $ac_n "checking whether -traditional is needed for ${CC-cc} on this system""... $ac_c" 1>&6
889 echo "configure:890: checking whether -traditional is needed for ${CC-cc} on this system" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 ac_pattern
="Autoconf.*'x'"
894 cat > conftest.
$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
901 egrep "$ac_pattern" >/dev
/null
2>&1; then
903 ac_cv_prog_gcc_traditional
=yes
906 ac_cv_prog_gcc_traditional
=no
911 if test $ac_cv_prog_gcc_traditional = no
; then
912 cat > conftest.
$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
919 egrep "$ac_pattern" >/dev
/null
2>&1; then
921 ac_cv_prog_gcc_traditional
=yes
926 if test $ac_cv_prog_gcc_traditional = no
; then
927 # On some USL SVR4 systems, gcc's fixinc.svr4 modifies <signal.h> and
928 # <sys/signal.h> in such a way that "#include <signal.h>" results in a
929 # syntax error because of `sigset_t' if gcc is called with __STDC__=1
930 # but __STRICT_ANSI__ undefined. Remedy: use -traditional.
932 #include <sys/types.h>
935 extern "C" void exit(int);
937 int main() { exit(0); }'
938 echo "$ac_prog" > conftest.c
939 if eval $ac_link; then
944 #include <sys/types.h>
947 extern "C" void exit(int);
949 int main() { exit(0); }'
950 echo "$ac_prog" > conftest.c
951 if eval $ac_link; then
952 ac_cv_prog_gcc_traditional
=yes
958 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
959 if test $ac_cv_prog_gcc_traditional = yes; then
960 CC
="$CC -traditional"
964 # Extract the first word of "ranlib", so it can be a program name with args.
965 set dummy ranlib
; ac_word
=$2
966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
967 echo "configure:968: checking for $ac_word" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 if test -n "$RANLIB"; then
972 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
974 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
976 for ac_dir
in $ac_dummy; do
977 test -z "$ac_dir" && ac_dir
=.
978 if test -f $ac_dir/$ac_word; then
979 ac_cv_prog_RANLIB
="ranlib"
984 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
="true"
987 RANLIB
="$ac_cv_prog_RANLIB"
988 if test -n "$RANLIB"; then
989 echo "$ac_t""$RANLIB" 1>&6
991 echo "$ac_t""no" 1>&6
994 # Find a good install program. We prefer a C program (faster),
995 # so one script is as good as another. But avoid the broken or
996 # incompatible versions:
997 # SysV /etc/install, /usr/sbin/install
998 # SunOS /usr/etc/install
1001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1003 # ./install, which can be erroneously created by make from ./install.sh.
1004 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1005 echo "configure:1006: checking for a BSD compatible install" >&5
1006 if test -z "$INSTALL"; then
1007 if eval "test \"`echo '$''{'cl_cv_path_install'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1011 for ac_dir
in $PATH; do
1012 # Account for people who put trailing slashes in PATH elements.
1014 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1016 # OSF1 and SCO ODT 3.0 have their own names for install.
1017 for ac_prog
in ginstall installbsd scoinst
install; do
1018 if test -f $ac_dir/$ac_prog; then
1019 if test $ac_prog = install &&
1020 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1021 # AIX install. It has an incompatible calling convention.
1022 # OSF/1 installbsd also uses dspmsg, but is usable.
1025 if test $ac_prog = installbsd
&&
1026 grep src
/bos
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1027 # AIX installbsd doesn't work without option "-g".
1030 cl_cv_path_install
="$ac_dir/$ac_prog -c"
1040 # As a last resort, use cp.
1041 test -z "$cl_cv_path_install" && cl_cv_path_install
="cp"
1044 INSTALL
="$cl_cv_path_install"
1046 echo "$ac_t""$INSTALL" 1>&6
1047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1048 # It thinks the first close brace ends the variable substitution.
1049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='$(INSTALL)'
1050 if test -z "$INSTALL_DATA"; then
1052 cp |
*/cp ) INSTALL_DATA
='$(INSTALL)' ;;
1053 * ) INSTALL_DATA
='$(INSTALL) -m 644' ;;
1057 echo $ac_n "checking how to copy files""... $ac_c" 1>&6
1058 echo "configure:1059: checking how to copy files" >&5
1059 if eval "test \"`echo '$''{'cl_cv_prog_cp'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1063 echo "blabla" > conftest.x
1064 err
=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
1065 if test -z "$err"; then
1066 cl_cv_prog_cp
='cp -p'
1073 echo "$ac_t""$cl_cv_prog_cp" 1>&6
1076 echo $ac_n "checking how to make hard links""... $ac_c" 1>&6
1077 echo "configure:1078: checking how to make hard links" >&5
1078 if eval "test \"`echo '$''{'cl_cv_prog_LN'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1082 rm -f conftestdata conftestfile
1083 echo data
> conftestfile
1084 if ln conftestfile conftestdata
2>/dev
/null
; then
1087 cl_cv_prog_LN
="$cl_cv_prog_cp"
1089 rm -f conftestdata conftestfile
1092 echo "$ac_t""$cl_cv_prog_LN" 1>&6
1095 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1096 echo "configure:1097: checking whether ln -s works" >&5
1097 if eval "test \"`echo '$''{'cl_cv_prog_LN_S'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1102 if ln -s X conftestdata
2>/dev
/null
; then
1103 cl_cv_prog_LN_S
="ln -s"
1105 cl_cv_prog_LN_S
="$cl_cv_prog_LN"
1110 if test "$cl_cv_prog_LN_S" = "ln -s"; then
1111 echo "$ac_t""yes" 1>&6
1113 echo "$ac_t""no" 1>&6
1115 LN_S
="$cl_cv_prog_LN_S"
1119 ac_aux_dir
=${srcdir}/autoconf
1120 ac_config_guess
=$ac_aux_dir/config.guess
1121 ac_config_sub
=$ac_aux_dir/config.sub
1122 echo $ac_n "checking host system type""... $ac_c" 1>&6
1123 echo "configure:1124: checking host system type" >&5
1124 if eval "test \"`echo '$''{'cl_cv_host'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1128 # Make sure we can run config.sub.
1129 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1130 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1133 case "$host_alias" in
1136 NONE
) host_alias
=`export CC; ${CONFIG_SHELL-/bin/sh} $ac_config_guess` ;;
1137 *) host_alias
=$nonopt ;;
1140 # Don't fail just because the system is not listed in GNU's database.
1141 if test -n "$host_alias"; then
1142 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1145 host=unknown-unknown-unknown
1147 cl_cv_host_alias
="$host_alias"
1151 echo "$ac_t""$cl_cv_host" 1>&6
1152 host_alias
="$cl_cv_host_alias"
1154 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1155 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1156 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1160 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1161 echo "configure:1162: checking for AIX" >&5
1162 if eval "test \"`echo '$''{'ac_cv_sys_aix'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1166 cat > conftest.
$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1175 egrep "yes" >/dev
/null
2>&1; then
1186 echo "$ac_t""$ac_cv_sys_aix" 1>&6
1187 if test $ac_cv_sys_aix = yes; then
1188 cat >> confdefs.h
<<\EOF
1189 #define _ALL_SOURCE 1
1194 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1195 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1196 echo "configure:1197: checking for minix/config.h" >&5
1197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftest.
$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1203 #include <minix/config.h>
1205 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206 { (eval echo configure
:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1208 if test -z "$ac_err"; then
1210 eval "ac_cv_header_$ac_safe=yes"
1213 echo "configure: failed program was:" >&5
1214 cat conftest.
$ac_ext >&5
1216 eval "ac_cv_header_$ac_safe=no"
1220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1221 echo "$ac_t""yes" 1>&6
1224 echo "$ac_t""no" 1>&6
1228 if test "$MINIX" = yes; then
1229 cat >> confdefs.h
<<\EOF
1230 #define _POSIX_SOURCE 1
1233 cat >> confdefs.h
<<\EOF
1234 #define _POSIX_1_SOURCE 2
1237 cat >> confdefs.h
<<\EOF
1243 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1244 echo "configure:1245: checking for POSIXized ISC" >&5
1245 if eval "test \"`echo '$''{'ac_cv_sys_isc_posix'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1249 if test -d /etc
/conf
/kconfig.d
&&
1250 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1252 ac_cv_sys_isc_posix
=yes
1254 ac_cv_sys_isc_posix
=no
1259 echo "$ac_t""$ac_cv_sys_isc_posix" 1>&6
1260 if test $ac_cv_sys_isc_posix = yes; then
1261 ISC
=yes # If later tests want to check for ISC.
1262 cat >> confdefs.h
<<\EOF
1263 #define _POSIX_SOURCE 1
1266 if test "$GCC" = yes; then
1277 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1278 echo "configure:1279: checking for object suffix" >&5
1279 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1283 echo 'int i = 1;' > conftest.
$ac_ext
1284 if { (eval echo configure
:1285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1285 for ac_file
in conftest.
*; do
1288 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1292 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1297 echo "$ac_t""$ac_cv_objext" 1>&6
1298 OBJEXT
=$ac_cv_objext
1299 ac_objext
=$ac_cv_objext
1301 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1302 echo "configure:1303: checking for Cygwin environment" >&5
1303 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 cat > conftest.
$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1313 #define __CYGWIN__ __CYGWIN32__
1318 if { (eval echo configure
:1319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1322 echo "configure: failed program was:" >&5
1323 cat conftest.
$ac_ext >&5
1330 echo "$ac_t""$ac_cv_cygwin" 1>&6
1332 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1333 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1334 echo "configure:1335: checking for mingw32 environment" >&5
1335 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 cat > conftest.
$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1346 if { (eval echo configure
:1347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1350 echo "configure: failed program was:" >&5
1351 cat conftest.
$ac_ext >&5
1358 echo "$ac_t""$ac_cv_mingw32" 1>&6
1360 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1363 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1364 echo "configure:1365: checking for executable suffix" >&5
1365 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1372 echo 'int main () { return 0; }' > conftest.
$ac_ext
1374 if { (eval echo configure
:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1375 for file in conftest.
*; do
1377 *.c |
*.o |
*.obj
) ;;
1378 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1382 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1385 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1390 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1391 echo "$ac_t""${ac_cv_exeext}" 1>&6
1397 # Check whether --enable-static or --disable-static was given.
1398 if test "${enable_static+set}" = set; then
1399 enableval
="$enable_static"
1400 p
=${PACKAGE-default}
1401 case "$enableval" in
1402 yes) enable_static
=yes ;;
1403 no
) enable_static
=no
;;
1406 # Look at the argument we got. We use all the common list separators.
1407 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1408 for pkg
in $enableval; do
1409 if test "X$pkg" = "X$p"; then
1420 # Check whether --enable-shared or --disable-shared was given.
1421 if test "${enable_shared+set}" = set; then
1422 enableval
="$enable_shared"
1423 p
=${PACKAGE-default}
1424 case "$enableval" in
1425 yes) enable_shared
=yes ;;
1426 no
) enable_shared
=no
;;
1429 # Look at the argument we got. We use all the common list separators.
1430 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1431 for pkg
in $enableval; do
1432 if test "X$pkg" = "X$p"; then
1443 # Check whether --enable-fast-install or --disable-fast-install was given.
1444 if test "${enable_fast_install+set}" = set; then
1445 enableval
="$enable_fast_install"
1446 p
=${PACKAGE-default}
1447 case "$enableval" in
1448 yes) enable_fast_install
=yes ;;
1449 no
) enable_fast_install
=no
;;
1451 enable_fast_install
=no
1452 # Look at the argument we got. We use all the common list separators.
1453 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1454 for pkg
in $enableval; do
1455 if test "X$pkg" = "X$p"; then
1456 enable_fast_install
=yes
1463 enable_fast_install
=yes
1466 echo $ac_n "checking build system type""... $ac_c" 1>&6
1467 echo "configure:1468: checking build system type" >&5
1470 case "$build_alias" in
1473 NONE
) build_alias
=$host_alias ;;
1474 *) build_alias
=$nonopt ;;
1478 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1479 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$ac_t""$build" 1>&6
1484 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1485 if test "${with_gnu_ld+set}" = set; then
1486 withval
="$with_gnu_ld"
1487 test "$withval" = no || with_gnu_ld
=yes
1493 if test "$ac_cv_prog_gcc" = yes; then
1494 # Check if gcc -print-prog-name=ld gives a path.
1495 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1496 echo "configure:1497: checking for ld used by GCC" >&5
1497 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1499 # Accept absolute paths.
1500 [\\/]* |
[A-Za-z
]:[\\/]*)
1501 re_direlt
='/[^/][^/]*/\.\./'
1502 # Canonicalize the path of ld
1503 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1504 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1505 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1507 test -z "$LD" && LD
="$ac_prog"
1510 # If it fails, then pretend we aren't using GCC.
1514 # If it is relative, then search for the first ld in PATH.
1518 elif test "$with_gnu_ld" = yes; then
1519 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1520 echo "configure:1521: checking for GNU ld" >&5
1522 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1523 echo "configure:1524: checking for non-GNU ld" >&5
1525 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 if test -z "$LD"; then
1529 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1530 for ac_dir
in $PATH; do
1531 test -z "$ac_dir" && ac_dir
=.
1532 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1533 ac_cv_path_LD
="$ac_dir/$ac_prog"
1534 # Check to see if the program is GNU ld. I'd rather use --version,
1535 # but apparently some GNU ld's only accept -v.
1536 # Break only if it was the GNU/non-GNU ld that we prefer.
1537 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1538 test "$with_gnu_ld" != no
&& break
1540 test "$with_gnu_ld" != yes && break
1546 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1551 if test -n "$LD"; then
1552 echo "$ac_t""$LD" 1>&6
1554 echo "$ac_t""no" 1>&6
1556 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1557 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1558 echo "configure:1559: checking if the linker ($LD) is GNU ld" >&5
1559 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1563 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1564 ac_cv_prog_gnu_ld
=yes
1566 ac_cv_prog_gnu_ld
=no
1569 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1572 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1573 echo "configure:1574: checking for BSD-compatible nm" >&5
1574 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 if test -n "$NM"; then
1578 # Let the user override the test.
1581 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1582 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1583 test -z "$ac_dir" && ac_dir
=.
1584 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1585 # Check to see if the nm accepts a BSD-compat flag.
1586 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1587 # nm: unknown option "B" ignored
1588 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1589 ac_cv_path_NM
="$ac_dir/nm -B"
1591 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1592 ac_cv_path_NM
="$ac_dir/nm -p"
1595 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1596 continue # so that we can try to find one that supports BSD flags
1601 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1606 echo "$ac_t""$NM" 1>&6
1610 NONE
) lt_target
="$host" ;;
1611 *) lt_target
="$target" ;;
1614 # Check for any special flags to pass to ltconfig.
1615 libtool_flags
="--cache-file=$cache_file"
1616 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1617 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1618 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1619 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1620 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1623 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1624 if test "${enable_libtool_lock+set}" = set; then
1625 enableval
="$enable_libtool_lock"
1629 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1630 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1632 # Some flags need to be propagated to the compiler or linker for good
1634 case "$lt_target" in
1636 # Find out which ABI we are using.
1637 echo '#line 1638 "configure"' > conftest.
$ac_ext
1638 if { (eval echo configure
:1639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1639 case "`/usr/bin/file conftest.o`" in
1655 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1656 SAVE_CFLAGS
="$CFLAGS"
1657 CFLAGS
="$CFLAGS -belf"
1658 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1659 echo "configure:1660: checking whether the C compiler needs -belf" >&5
1660 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 cat > conftest.
$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1671 if { (eval echo configure
:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1673 lt_cv_cc_needs_belf
=yes
1675 echo "configure: failed program was:" >&5
1676 cat conftest.
$ac_ext >&5
1678 lt_cv_cc_needs_belf
=no
1682 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1683 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1684 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1685 CFLAGS
="$SAVE_CFLAGS"
1693 # Save cache, so that ltconfig can load it
1694 cat > confcache
<<\EOF
1695 # This file is a shell script that caches the results of configure
1696 # tests run on this system so they can be shared between configure
1697 # scripts and configure runs. It is not useful on other systems.
1698 # If it contains results you don't want to keep, you may remove or edit it.
1700 # By default, configure uses ./config.cache as the cache file,
1701 # creating it if it does not exist already. You can give configure
1702 # the --cache-file=FILE option to use a different cache file; that is
1703 # what configure does when it calls configure scripts in
1704 # subdirectories, so they share the cache.
1705 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1706 # config.status only pays attention to the cache file if you give it the
1707 # --recheck option to rerun configure.
1710 # The following way of writing the cache mishandles newlines in values,
1711 # but we know of no workaround that is simple, portable, and efficient.
1712 # So, don't put newlines in cache variables' values.
1713 # Ultrix sh set writes to stderr and can't be redirected directly,
1714 # and sets the high bit in the cache file unless we assign to the vars.
1716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1718 # `set' does not quote correctly, so add quotes (double-quote substitution
1719 # turns \\\\ into \\, and sed turns \\ into \).
1721 -e "s/'/'\\\\''/g" \
1722 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1725 # `set' quotes correctly as required by POSIX, so do not add quotes.
1726 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1729 if cmp -s $cache_file confcache
; then
1732 if test -w $cache_file; then
1733 echo "updating cache $cache_file"
1734 cat confcache
> $cache_file
1736 echo "not updating unwritable cache $cache_file"
1742 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1743 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1744 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1745 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1746 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1747 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1748 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1749 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1751 # Reload cache, that may have been modified by ltconfig
1752 if test -r "$cache_file"; then
1753 echo "loading cache $cache_file"
1756 echo "creating cache $cache_file"
1761 # This can be used to rebuild libtool when needed
1762 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1764 # Always use our own libtool.
1765 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1767 # Redirect the config.log output again, so that the ltconfig log is not
1768 # clobbered by the next message.
1769 exec 5>>.
/config.log
1773 for ac_hdr
in locale.h
1775 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_hdr" >&5
1778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 cat > conftest.
$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1787 { (eval echo configure
:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1788 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1789 if test -z "$ac_err"; then
1791 eval "ac_cv_header_$ac_safe=yes"
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 eval "ac_cv_header_$ac_safe=no"
1801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1803 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1804 cat >> confdefs.h
<<EOF
1805 #define $ac_tr_hdr 1
1809 echo "$ac_t""no" 1>&6
1816 for ac_hdr
in stdlib.h
1818 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1820 echo "configure:1821: checking for $ac_hdr" >&5
1821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 cat > conftest.
$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1829 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1830 { (eval echo configure
:1831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1831 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1832 if test -z "$ac_err"; then
1834 eval "ac_cv_header_$ac_safe=yes"
1837 echo "configure: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1840 eval "ac_cv_header_$ac_safe=no"
1844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1846 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1847 cat >> confdefs.h
<<EOF
1848 #define $ac_tr_hdr 1
1852 echo "$ac_t""no" 1>&6
1857 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
1858 echo "configure:1859: checking for mbstate_t" >&5
1859 if eval "test \"`echo '$''{'ac_cv_type_mbstate_t'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 cat > conftest.
$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1867 # include <stdlib.h>
1871 mbstate_t x; return sizeof x;
1874 if { (eval echo configure
:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1876 ac_cv_type_mbstate_t
=yes
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1881 ac_cv_type_mbstate_t
=no
1885 echo "$ac_t""$ac_cv_type_mbstate_t" 1>&6
1886 if test $ac_cv_type_mbstate_t = no
; then
1887 cat >> confdefs.h
<<\EOF
1888 #define mbstate_t int
1894 echo $ac_n "checking for iconv""... $ac_c" 1>&6
1895 echo "configure:1896: checking for iconv" >&5
1896 if eval "test \"`echo '$''{'cl_cv_func_iconv'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1902 cat > conftest.
$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1908 iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);
1911 if { (eval echo configure
:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1913 cl_cv_func_iconv
=yes
1915 echo "configure: failed program was:" >&5
1916 cat conftest.
$ac_ext >&5
1919 if test "$cl_cv_func_iconv" = no
; then
1920 cl_save_LIBS
="$LIBS"
1921 LIBS
="$LIBS -liconv"
1922 cat > conftest.
$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1928 iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);
1931 if { (eval echo configure
:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1934 cl_cv_func_iconv
=yes
1936 echo "configure: failed program was:" >&5
1937 cat conftest.
$ac_ext >&5
1940 LIBS
="$cl_save_LIBS"
1944 echo "$ac_t""$cl_cv_func_iconv" 1>&6
1945 if test "$cl_cv_func_iconv" = yes; then
1946 cat >> confdefs.h
<<\EOF
1947 #define HAVE_ICONV 1
1950 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
1951 echo "configure:1952: checking for iconv declaration" >&5
1952 if eval "test \"`echo '$''{'cl_cv_proto_iconv'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1956 cat > conftest.
$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1961 #ifdef HAVE_UNISTD_H
1964 #include <sys/types.h>
1972 #if defined(__STDC__) || defined(__cplusplus)
1973 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);
1982 if { (eval echo configure
:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1984 cl_cv_proto_iconv_arg1
=""
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 cl_cv_proto_iconv_arg1
="const"
1994 cl_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $cl_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);"
1997 cl_cv_proto_iconv
=`echo "$cl_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
1998 echo "$ac_t""${ac_tt}$cl_cv_proto_iconv" 1>&6
2001 cat >> confdefs.h
<<EOF
2002 #define ICONV_CONST $cl_cv_proto_iconv_arg1
2007 if test "$cl_cv_lib_iconv" = yes; then
2012 if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
2019 for ac_func
in mbrtowc wcrtomb setlocale
2021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2022 echo "configure:2023: checking for $ac_func" >&5
2023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 /* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char $ac_func(); below. */
2032 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2042 /* The GNU C library defines this for functions which it implements
2043 to always fail with ENOSYS. Some functions are actually named
2044 something starting with __ and the normal name is an alias. */
2045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2053 if { (eval echo configure
:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2055 eval "ac_cv_func_$ac_func=yes"
2057 echo "configure: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 eval "ac_cv_func_$ac_func=no"
2065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2068 cat >> confdefs.h
<<EOF
2069 #define $ac_tr_func 1
2073 echo "$ac_t""no" 1>&6
2078 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2079 echo "configure:2080: checking byte ordering" >&5
2080 if eval "test \"`echo '$''{'cl_cv_sys_endian'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2084 if test "$cross_compiling" = yes; then
2085 : # must guess the endianness
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2092 extern "C" void exit(int);
2095 /* Are we little or big endian? From Harbison&Steele. */
2099 char c[sizeof (long)];
2105 if { (eval echo configure
:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2107 cl_cv_sys_endian
="big endian"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.
$ac_ext >&5
2112 cl_cv_sys_endian
="little endian"
2114 if test -f core
; then
2115 coredir
=core
`/bin/sh -c 'echo $$'`
2117 cp confdefs.h
$coredir/confdefs.h
2118 mv conftest.c
$coredir/conftest.c
2119 mv conftest
$coredir/conftest
2120 mv core
$coredir/core
2121 echo "warning: test program dumped core -- see subdirectory $coredir"
2126 if test -z "$cl_cv_sys_endian"; then
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 #if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "yes" >/dev
/null
2>&1; then
2138 cl_cv_sys_endian
="big endian"
2143 if test -z "$cl_cv_sys_endian"; then
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
2152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2153 egrep "yes" >/dev
/null
2>&1; then
2155 cl_cv_sys_endian
="little endian"
2160 if test -z "$cl_cv_sys_endian"; then
2161 cl_cv_sys_endian
="guessing little endian"
2165 echo "$ac_t""$cl_cv_sys_endian" 1>&6
2166 case "$cl_cv_sys_endian" in
2167 *little
*) cat >> confdefs.h
<<\EOF
2168 #define WORDS_LITTLEENDIAN 1
2178 linux
*) OS
="linux" ;;
2179 solaris
*) OS
="solaris" ;;
2182 if test -n "$OS"; then
2185 PLUGLIB
="libiconv_plug.so"
2191 if test -d "${srcdir}/tests"; then
2192 TESTS_MAKEFILE
=tests
/Makefile
2197 cat > confcache
<<\EOF
2198 # This file is a shell script that caches the results of configure
2199 # tests run on this system so they can be shared between configure
2200 # scripts and configure runs. It is not useful on other systems.
2201 # If it contains results you don't want to keep, you may remove or edit it.
2203 # By default, configure uses ./config.cache as the cache file,
2204 # creating it if it does not exist already. You can give configure
2205 # the --cache-file=FILE option to use a different cache file; that is
2206 # what configure does when it calls configure scripts in
2207 # subdirectories, so they share the cache.
2208 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2209 # config.status only pays attention to the cache file if you give it the
2210 # --recheck option to rerun configure.
2213 # The following way of writing the cache mishandles newlines in values,
2214 # but we know of no workaround that is simple, portable, and efficient.
2215 # So, don't put newlines in cache variables' values.
2216 # Ultrix sh set writes to stderr and can't be redirected directly,
2217 # and sets the high bit in the cache file unless we assign to the vars.
2219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2221 # `set' does not quote correctly, so add quotes (double-quote substitution
2222 # turns \\\\ into \\, and sed turns \\ into \).
2224 -e "s/'/'\\\\''/g" \
2225 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2228 # `set' quotes correctly as required by POSIX, so do not add quotes.
2229 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2232 if cmp -s $cache_file confcache
; then
2235 if test -w $cache_file; then
2236 echo "updating cache $cache_file"
2237 cat confcache
> $cache_file
2239 echo "not updating unwritable cache $cache_file"
2244 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
2246 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2247 # Let make expand exec_prefix.
2248 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2250 # Any assignment to VPATH causes Sun make to only execute
2251 # the first set of double-colon rules, so remove it if not needed.
2252 # If there is a colon in the path, we need to keep it.
2253 if test "x$srcdir" = x.
; then
2254 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2257 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2259 DEFS
=-DHAVE_CONFIG_H
2261 # Without the "./", some shells look in PATH for config.status.
2262 : ${CONFIG_STATUS=./config.status}
2264 echo creating
$CONFIG_STATUS
2265 rm -f $CONFIG_STATUS
2266 cat > $CONFIG_STATUS <<EOF
2268 # Generated automatically by configure.
2269 # Run this file to recreate the current configuration.
2270 # This directory was configured as follows,
2271 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2273 # $0 $ac_configure_args
2275 # Compiler output produced by configure, useful for debugging
2276 # configure, is in ./config.log if it exists.
2278 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2281 case "\$ac_option" in
2282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2283 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2284 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2285 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2286 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2288 -help | --help | --hel | --he | --h)
2289 echo "\$ac_cs_usage"; exit 0 ;;
2290 *) echo "\$ac_cs_usage"; exit 1 ;;
2294 ac_given_srcdir=$srcdir
2296 trap 'rm -fr `echo "Makefile lib/Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h lib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2298 cat >> $CONFIG_STATUS <<EOF
2300 # Protect against being on the right side of a sed subst in config.status.
2301 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2302 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2306 s%@CFLAGS@%$CFLAGS%g
2307 s%@CPPFLAGS@%$CPPFLAGS%g
2308 s%@CXXFLAGS@%$CXXFLAGS%g
2309 s%@FFLAGS@%$FFLAGS%g
2311 s%@LDFLAGS@%$LDFLAGS%g
2313 s%@exec_prefix@%$exec_prefix%g
2314 s%@prefix@%$prefix%g
2315 s%@program_transform_name@%$program_transform_name%g
2316 s%@bindir@%$bindir%g
2317 s%@sbindir@%$sbindir%g
2318 s%@libexecdir@%$libexecdir%g
2319 s%@datadir@%$datadir%g
2320 s%@sysconfdir@%$sysconfdir%g
2321 s%@sharedstatedir@%$sharedstatedir%g
2322 s%@localstatedir@%$localstatedir%g
2323 s%@libdir@%$libdir%g
2324 s%@includedir@%$includedir%g
2325 s%@oldincludedir@%$oldincludedir%g
2326 s%@infodir@%$infodir%g
2327 s%@mandir@%$mandir%g
2328 s%@SET_MAKE@%$SET_MAKE%g
2331 s%@RANLIB@%$RANLIB%g
2332 s%@INSTALL@%$INSTALL%g
2333 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2334 s%@INSTALL_DATA@%$INSTALL_DATA%g
2339 s%@host_cpu@%$host_cpu%g
2340 s%@host_vendor@%$host_vendor%g
2341 s%@host_os@%$host_os%g
2342 s%@OBJEXT@%$OBJEXT%g
2343 s%@EXEEXT@%$EXEEXT%g
2345 s%@build_alias@%$build_alias%g
2346 s%@build_cpu@%$build_cpu%g
2347 s%@build_vendor@%$build_vendor%g
2348 s%@build_os@%$build_os%g
2349 s%@LIBTOOL@%$LIBTOOL%g
2350 s%@LIBICONV@%$LIBICONV%g
2351 s%@ICONV_CONST@%$ICONV_CONST%g
2354 s%@PLUGLIB@%$PLUGLIB%g
2359 cat >> $CONFIG_STATUS <<\EOF
2361 # Split the substitutions into bite-sized pieces for seds with
2362 # small command number limits, like on Digital OSF/1 and HP-UX.
2363 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2364 ac_file
=1 # Number of current file.
2365 ac_beg
=1 # First line for current file.
2366 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2369 while $ac_more_lines; do
2370 if test $ac_beg -gt 1; then
2371 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2373 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2375 if test ! -s conftest.s
$ac_file; then
2377 rm -f conftest.s
$ac_file
2379 if test -z "$ac_sed_cmds"; then
2380 ac_sed_cmds
="sed -f conftest.s$ac_file"
2382 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2384 ac_file
=`expr $ac_file + 1`
2386 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2389 if test -z "$ac_sed_cmds"; then
2394 cat >> $CONFIG_STATUS <<EOF
2396 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h"}
2398 cat >> $CONFIG_STATUS <<\EOF
2399 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2402 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2403 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2404 *) ac_file_in
="${ac_file}.in" ;;
2407 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2409 # Remove last slash and all that follows it. Not all systems have dirname.
2410 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2411 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2412 # The file is in a subdirectory.
2413 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2414 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2415 # A "../" for each directory in $ac_dir_suffix.
2416 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2418 ac_dir_suffix
= ac_dots
=
2421 case "$ac_given_srcdir" in
2423 if test -z "$ac_dots"; then top_srcdir
=.
2424 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2425 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2427 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2428 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2432 echo creating
"$ac_file"
2434 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2436 *Makefile
*) ac_comsub
="1i\\
2437 # $configure_input" ;;
2441 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2443 s%@configure_input@%$configure_input%g
2444 s%@srcdir@%$srcdir%g
2445 s%@top_srcdir@%$top_srcdir%g
2446 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2450 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2451 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2453 # ac_d sets the value in "#define NAME VALUE" lines.
2454 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2455 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2458 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2459 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2460 ac_uB
='\([ ]\)%\1#\2define\3'
2463 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2464 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2465 ac_eB
='$%\1#\2define\3'
2468 # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
2469 ac_fA
='s%^\([ ]*\)#\([ ]*\)define\([ ][ ]*\)'
2470 ac_fB
='$%\1#\2define\3'
2474 if test "${CONFIG_HEADERS+set}" != set; then
2476 cat >> $CONFIG_STATUS <<EOF
2477 CONFIG_HEADERS="lib/config.h"
2479 cat >> $CONFIG_STATUS <<\EOF
2481 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2482 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2484 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2485 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2486 *) ac_file_in
="${ac_file}.in" ;;
2489 echo creating
$ac_file
2491 rm -f conftest.frag conftest.
in conftest.out
2492 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2493 cat $ac_file_inputs > conftest.
in
2497 # Transform confdefs.h into a sed script conftest.vals that substitutes
2498 # the proper values into config.h.in to produce config.h. And first:
2499 # Protect against being on the right side of a sed subst in config.status.
2500 # Protect against being in an unquoted here document in config.status.
2502 cat > conftest.hdr
<<\EOF
2505 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2510 sed -n -f conftest.hdr confdefs.h > conftest.vals
2514 # Break up conftest.vals because some shells have a limit on
2515 # the size of here documents, and old seds have small limits too.
2520 ac_lines=`grep -c . conftest.vals
`
2521 # grep -c gives empty output for an empty file on some AIX systems.
2522 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2523 # Write a limited-size here document to conftest.frag.
2524 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2525 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2527 sed -f conftest.frag conftest.in > conftest.out
2529 mv conftest.out conftest.in
2531 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2533 mv conftest.tail conftest.vals
2537 cat >> $CONFIG_STATUS <<\EOF
2538 rm -f conftest.frag conftest.h
2539 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2540 cat conftest.in >> conftest.h
2542 if cmp -s $ac_file conftest.h 2>/dev/null; then
2543 echo "$ac_file is unchanged"
2546 # Remove last slash and all that follows it. Not all systems have dirname.
2547 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2548 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2549 # The file is in a subdirectory.
2550 test ! -d "$ac_dir" && mkdir "$ac_dir"
2553 mv conftest.h $ac_file
2558 cat >> $CONFIG_STATUS <<EOF
2561 cat >> $CONFIG_STATUS <<\EOF
2565 chmod +x $CONFIG_STATUS
2566 rm -fr confdefs* $ac_clean_files
2567 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2570 if test "$no_recursion" != yes; then
2572 # Remove --cache-file and --srcdir arguments so they do not pile up.
2573 ac_sub_configure_args=
2575 for ac_arg in $ac_configure_args; do
2576 if test -n "$ac_prev"; then
2581 -cache-file | --cache-file | --cache-fil | --cache-fi \
2582 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2583 ac_prev=cache_file ;;
2584 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2585 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2587 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2591 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2595 for ac_config_dir in libcharset; do
2597 # Do not complain, so a configure script can configure whichever
2598 # parts of a large source tree are present.
2599 if test ! -d $srcdir/$ac_config_dir; then
2603 echo configuring in $ac_config_dir
2608 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2610 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2618 # A "../" for each directory in /$ac_config_dir.
2619 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2622 .) # No --srcdir option. We are building in place.
2623 ac_sub_srcdir=$srcdir ;;
2624 /*) # Absolute path.
2625 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2627 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2630 # Check for guested configure; otherwise get Cygnus style configure.
2631 if test -f $ac_sub_srcdir/configure; then
2632 ac_sub_configure=$ac_sub_srcdir/configure
2633 elif test -f $ac_sub_srcdir/configure.in; then
2634 ac_sub_configure=$ac_configure
2636 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2640 # The recursion is here.
2641 if test -n "$ac_sub_configure"; then
2643 # Make the cache file name correct relative to the subdirectory.
2644 case "$cache_file" in
2645 /*) ac_sub_cache_file=$cache_file ;;
2647 if test -n "$ac_dots"; then
2648 ac_sub_cache_file="$ac_dots"`echo "$cache_file" |
sed 's,^\./,,'`
2650 ac_sub_cache_file="$cache_file"
2655 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2656 # The eval makes quoting arguments work.
2657 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2660 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }