Regenerated. TCVN can now store the accents.
[libiconv.git] / configure
blob63a8d4e21baf7a331a621c4f36214aec75ab69f0
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-static[=PKGS] build static libraries [default=no]"
16 ac_help="$ac_help
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
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.
28 build=NONE
29 cache_file=./config.cache
30 exec_prefix=NONE
31 host=NONE
32 no_create=
33 nonopt=NONE
34 no_recursion=
35 prefix=NONE
36 program_prefix=NONE
37 program_suffix=NONE
38 program_transform_name=s,x,x,
39 silent=
40 site=
41 srcdir=
42 target=NONE
43 verbose=
44 x_includes=NONE
45 x_libraries=NONE
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.
60 subdirs=
61 MFLAGS= MAKEFLAGS=
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
64 ac_max_here_lines=12
66 ac_prev=
67 for ac_option
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
73 ac_prev=
74 continue
77 case "$ac_option" in
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 *) ac_optarg= ;;
80 esac
82 # Accept the important Cygnus configure options, so we can diagnose typos.
84 case "$ac_option" in
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 ac_prev=bindir ;;
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
92 ac_prev=build ;;
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 build="$ac_optarg" ;;
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 ac_prev=cache_file ;;
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)
104 ac_prev=datadir ;;
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 | --da=*)
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'`
125 case "$ac_option" in
126 *=*) ;;
127 *) ac_optarg=yes ;;
128 esac
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.
142 with_gas=yes ;;
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.
147 cat << EOF
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
150 Configuration:
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
158 [$ac_default_prefix]
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 [same as prefix]
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
165 [PREFIX/share]
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 [PREFIX/com]
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
181 cat << EOF
182 Host type:
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"
197 exit 0 ;;
199 -host | --host | --hos | --ho)
200 ac_prev=host ;;
201 -host=* | --host=* | --hos=* | --ho=*)
202 host="$ac_optarg" ;;
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)
212 ac_prev=infodir ;;
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
217 ac_prev=libdir ;;
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)
238 ac_prev=mandir ;;
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
242 -nfp | --nfp | --nf)
243 # Obsolete; use --without-fp.
244 with_fp=no ;;
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 | --no-cr | --no-c)
248 no_create=yes ;;
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 no_recursion=yes ;;
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)
264 ac_prev=prefix ;;
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)
301 silent=yes ;;
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 ac_prev=sbindir ;;
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 | --sbi=* | --sb=*)
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
312 | --sha | --sh)
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 | --sha=* | --sh=*)
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
321 ac_prev=site ;;
322 -site=* | --site=* | --sit=*)
323 site="$ac_optarg" ;;
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 ac_prev=srcdir ;;
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)
338 ac_prev=target ;;
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 verbose=yes ;;
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
347 exit 0 ;;
349 -with-* | --with-*)
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'`
356 case "$ac_option" in
357 *=*) ;;
358 *) ac_optarg=yes ;;
359 esac
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" ;;
371 --x)
372 # Obsolete; use --with-x.
373 with_x=yes ;;
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; }
399 nonopt="$ac_option"
402 esac
403 done
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:
412 # 0 standard input
413 # 1 file creation
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
420 exec 6>/dev/null
421 else
422 exec 6>&1
424 exec 5>./config.log
426 echo "\
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
429 " 1>&5
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
433 ac_configure_args=
434 for ac_arg
436 case "$ac_arg" in
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" ;;
444 esac
445 done
447 # NLS nuisances.
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.
460 echo > confdefs.h
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.
470 ac_prog=$0
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 srcdir=$ac_confdir
474 if test ! -r $srcdir/$ac_unique_file; then
475 srcdir=..
477 else
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; }
483 else
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"
493 else
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"
500 . "$ac_site_file"
502 done
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
506 . $cache_file
507 else
508 echo "creating cache $cache_file"
509 > $cache_file
512 ac_ext=c
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
519 ac_exeext=
520 ac_objext=o
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
524 ac_n= ac_c='
525 ' ac_t=' ' ac_tt=
526 else
527 ac_n=-n ac_c= ac_t= ac_tt='
530 else
531 ac_n= ac_c='\c' ac_t= ac_tt='
536 ac_aux_dir=
537 for ac_dir in autoconf $srcdir/autoconf; do
538 if test -f $ac_dir/install-sh; then
539 ac_aux_dir=$ac_dir
540 ac_install_sh="$ac_aux_dir/install-sh -c"
541 break
542 elif test -f $ac_dir/install.sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install.sh -c"
545 break
547 done
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
561 else
562 cat > conftestmake <<\EOF
563 all:
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
570 else
571 eval ac_cv_prog_make_${ac_make}_set=no
573 rm -f conftestmake
575 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
576 echo "$ac_t""yes" 1>&6
577 SET_MAKE=
578 else
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
591 else
592 if test -n "$CC"; then
593 ac_cv_prog_CC="$CC" # Let the user override the test.
594 else
595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
596 ac_dummy="$PATH"
597 for ac_dir in $ac_dummy; do
598 test -z "$ac_dir" && ac_dir=.
599 if test -f $ac_dir/$ac_word; then
600 ac_cv_prog_CC="gcc"
601 break
603 done
604 IFS="$ac_save_ifs"
607 CC="$ac_cv_prog_CC"
608 if test -n "$CC"; then
609 echo "$ac_t""$CC" 1>&6
610 else
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
621 else
622 if test -n "$CC"; then
623 ac_cv_prog_CC="$CC" # Let the user override the test.
624 else
625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
626 ac_prog_rejected=no
627 ac_dummy="$PATH"
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
632 ac_prog_rejected=yes
633 continue
635 ac_cv_prog_CC="cc"
636 break
638 done
639 IFS="$ac_save_ifs"
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
643 shift
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.
648 shift
649 set dummy "$ac_dir/$ac_word" "$@"
650 shift
651 ac_cv_prog_CC="$@"
656 CC="$ac_cv_prog_CC"
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
659 else
660 echo "$ac_t""no" 1>&6
663 if test -z "$CC"; then
664 case "`uname -s`" in
665 *win32* | *WIN32*)
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
672 else
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
675 else
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 ac_dummy="$PATH"
678 for ac_dir in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir=.
680 if test -f $ac_dir/$ac_word; then
681 ac_cv_prog_CC="cl"
682 break
684 done
685 IFS="$ac_save_ifs"
688 CC="$ac_cv_prog_CC"
689 if test -n "$CC"; then
690 echo "$ac_t""$CC" 1>&6
691 else
692 echo "$ac_t""no" 1>&6
695 esac
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
703 ac_ext=c
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
722 else
723 ac_cv_prog_cc_cross=yes
725 else
726 echo "configure: failed program was:" >&5
727 cat conftest.$ac_ext >&5
728 ac_cv_prog_cc_works=no
730 rm -fr conftest*
731 ac_ext=c
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
751 else
752 cat > conftest.c <<EOF
753 #ifdef __GNUC__
754 yes;
755 #endif
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
758 ac_cv_prog_gcc=yes
759 else
760 ac_cv_prog_gcc=no
763 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
765 if test $ac_cv_prog_gcc = yes; then
766 GCC=yes
767 else
768 GCC=
771 ac_test_CFLAGS="${CFLAGS+set}"
772 ac_save_CFLAGS="$CFLAGS"
773 CFLAGS=
774 if test "$ac_test_CFLAGS" = set; then
775 CFLAGS="$ac_save_CFLAGS"
776 else
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
782 else
783 CC="$CC -O"
784 ac_cv_prog_CC="$CC"
786 else
787 CFLAGS=
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
795 CPP=
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
800 else
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.
803 CPP="${CC-cc} -E"
804 if test -n "$GCC"; then
805 # Suppress warning messages.
806 CPP="$CPP -w"
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"
814 #include <assert.h>
815 Syntax Error
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
821 rm -rf conftest*
822 ac_have_cpp=1
823 else
824 echo "$ac_err" >&5
825 echo "configure: failed program was:" >&5
826 cat conftest.$ac_ext >&5
828 rm -f conftest*
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"
834 #include <assert.h>
835 Syntax Error
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
841 rm -rf conftest*
842 ac_have_cpp=1
843 else
844 echo "$ac_err" >&5
845 echo "configure: failed program was:" >&5
846 cat conftest.$ac_ext >&5
848 rm -f conftest*
849 if test -n "$ac_have_cpp"; then
850 CC="${CC-cc} -traditional-cpp"
851 else
852 CPP="${CC-cc} -nologo -E"
853 cat > conftest.$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
856 #include <assert.h>
857 Syntax Error
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
863 rm -rf conftest*
864 ac_have_cpp=1
865 else
866 echo "$ac_err" >&5
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
870 rm -f conftest*
871 if test -n "$ac_have_cpp"; then
872 CC="${CC-cc} -nologo"
873 else
874 CPP=/lib/cpp
878 ac_cv_prog_CC="$CC"
879 ac_cv_prog_CPP="$CPP"
881 CPP="$ac_cv_prog_CPP"
882 else
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
892 else
893 ac_pattern="Autoconf.*'x'"
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
897 #include <sgtty.h>
898 Autoconf TIOCGETP
900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
901 egrep "$ac_pattern" >/dev/null 2>&1; then
902 rm -rf conftest*
903 ac_cv_prog_gcc_traditional=yes
904 else
905 rm -rf conftest*
906 ac_cv_prog_gcc_traditional=no
908 rm -f conftest*
911 if test $ac_cv_prog_gcc_traditional = no; then
912 cat > conftest.$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
915 #include <termio.h>
916 Autoconf TCGETA
918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
919 egrep "$ac_pattern" >/dev/null 2>&1; then
920 rm -rf conftest*
921 ac_cv_prog_gcc_traditional=yes
923 rm -f conftest*
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.
931 ac_prog='
932 #include <sys/types.h>
933 #include <signal.h>
934 #ifdef __cplusplus
935 extern "C" void exit(int);
936 #endif
937 int main() { exit(0); }'
938 echo "$ac_prog" > conftest.c
939 if eval $ac_link; then
941 else
942 ac_prog='
943 #undef __STDC__
944 #include <sys/types.h>
945 #include <signal.h>
946 #ifdef __cplusplus
947 extern "C" void exit(int);
948 #endif
949 int main() { exit(0); }'
950 echo "$ac_prog" > conftest.c
951 if eval $ac_link; then
952 ac_cv_prog_gcc_traditional=yes
955 rm -f conftest*
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
970 else
971 if test -n "$RANLIB"; then
972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
973 else
974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
975 ac_dummy="$PATH"
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"
980 break
982 done
983 IFS="$ac_save_ifs"
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
990 else
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
999 # IRIX /sbin/install
1000 # AIX /bin/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
1009 else
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.
1013 case "$ac_dir/" in
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.
1024 else
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".
1029 else
1030 cl_cv_path_install="$ac_dir/$ac_prog -c"
1031 break 2
1035 done
1037 esac
1038 done
1039 IFS="$ac_save_ifs"
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
1051 case "$INSTALL" in
1052 cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
1053 * ) INSTALL_DATA='$(INSTALL) -m 644' ;;
1054 esac
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
1061 else
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'
1067 else
1068 cl_cv_prog_cp='cp'
1070 rm -f conftest*
1073 echo "$ac_t""$cl_cv_prog_cp" 1>&6
1074 CP="$cl_cv_prog_cp"
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
1080 else
1082 rm -f conftestdata conftestfile
1083 echo data > conftestfile
1084 if ln conftestfile conftestdata 2>/dev/null; then
1085 cl_cv_prog_LN=ln
1086 else
1087 cl_cv_prog_LN="$cl_cv_prog_cp"
1089 rm -f conftestdata conftestfile
1092 echo "$ac_t""$cl_cv_prog_LN" 1>&6
1093 LN="$cl_cv_prog_LN"
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
1099 else
1101 rm -f conftestdata
1102 if ln -s X conftestdata 2>/dev/null; then
1103 cl_cv_prog_LN_S="ln -s"
1104 else
1105 cl_cv_prog_LN_S="$cl_cv_prog_LN"
1107 rm -f conftestdata
1110 if test "$cl_cv_prog_LN_S" = "ln -s"; then
1111 echo "$ac_t""yes" 1>&6
1112 else
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
1126 else
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; }
1132 host_alias=$host
1133 case "$host_alias" in
1134 NONE)
1135 case $nonopt in
1136 NONE) host_alias=`export CC; ${CONFIG_SHELL-/bin/sh} $ac_config_guess` ;;
1137 *) host_alias=$nonopt ;;
1138 esac ;;
1139 esac
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`
1143 else
1144 host_alias=unknown
1145 host=unknown-unknown-unknown
1147 cl_cv_host_alias="$host_alias"
1148 cl_cv_host="$host"
1151 echo "$ac_t""$cl_cv_host" 1>&6
1152 host_alias="$cl_cv_host_alias"
1153 host="$cl_cv_host"
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
1164 else
1166 cat > conftest.$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1169 #ifdef _AIX
1171 #endif
1174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1175 egrep "yes" >/dev/null 2>&1; then
1176 rm -rf conftest*
1177 ac_cv_sys_aix=yes
1178 else
1179 rm -rf conftest*
1180 ac_cv_sys_aix=no
1182 rm -f conftest*
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
1199 else
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
1209 rm -rf conftest*
1210 eval "ac_cv_header_$ac_safe=yes"
1211 else
1212 echo "$ac_err" >&5
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1215 rm -rf conftest*
1216 eval "ac_cv_header_$ac_safe=no"
1218 rm -f conftest*
1220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1221 echo "$ac_t""yes" 1>&6
1222 MINIX=yes
1223 else
1224 echo "$ac_t""no" 1>&6
1225 MINIX=
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
1238 #define _MINIX 1
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
1247 else
1249 if test -d /etc/conf/kconfig.d &&
1250 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1251 then
1252 ac_cv_sys_isc_posix=yes
1253 else
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
1267 CC="$CC -posix"
1268 else
1269 CC="$CC -Xp"
1271 else
1272 ISC=
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
1281 else
1282 rm -f conftest*
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
1286 case $ac_file in
1287 *.c) ;;
1288 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1289 esac
1290 done
1291 else
1292 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1294 rm -f conftest*
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
1305 else
1306 cat > conftest.$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1310 int main() {
1312 #ifndef __CYGWIN__
1313 #define __CYGWIN__ __CYGWIN32__
1314 #endif
1315 return __CYGWIN__;
1316 ; return 0; }
1318 if { (eval echo configure:1319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1319 rm -rf conftest*
1320 ac_cv_cygwin=yes
1321 else
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1324 rm -rf conftest*
1325 ac_cv_cygwin=no
1327 rm -f conftest*
1328 rm -f conftest*
1330 echo "$ac_t""$ac_cv_cygwin" 1>&6
1331 CYGWIN=
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
1337 else
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1342 int main() {
1343 return __MINGW32__;
1344 ; return 0; }
1346 if { (eval echo configure:1347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1347 rm -rf conftest*
1348 ac_cv_mingw32=yes
1349 else
1350 echo "configure: failed program was:" >&5
1351 cat conftest.$ac_ext >&5
1352 rm -rf conftest*
1353 ac_cv_mingw32=no
1355 rm -f conftest*
1356 rm -f conftest*
1358 echo "$ac_t""$ac_cv_mingw32" 1>&6
1359 MINGW32=
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
1367 else
1368 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1369 ac_cv_exeext=.exe
1370 else
1371 rm -f conftest*
1372 echo 'int main () { return 0; }' > conftest.$ac_ext
1373 ac_cv_exeext=
1374 if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1375 for file in conftest.*; do
1376 case $file in
1377 *.c | *.o | *.obj) ;;
1378 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1379 esac
1380 done
1381 else
1382 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1384 rm -f conftest*
1385 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1389 EXEEXT=""
1390 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1391 echo "$ac_t""${ac_cv_exeext}" 1>&6
1392 ac_exeext=$EXEEXT
1396 PACKAGE=libiconv
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 ;;
1405 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
1410 enable_static=yes
1412 done
1413 IFS="$ac_save_ifs"
1415 esac
1416 else
1417 enable_static=no
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 ;;
1428 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
1433 enable_shared=yes
1435 done
1436 IFS="$ac_save_ifs"
1438 esac
1439 else
1440 enable_shared=yes
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
1458 done
1459 IFS="$ac_save_ifs"
1461 esac
1462 else
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
1469 build_alias=$build
1470 case "$build_alias" in
1471 NONE)
1472 case $nonopt in
1473 NONE) build_alias=$host_alias ;;
1474 *) build_alias=$nonopt ;;
1475 esac ;;
1476 esac
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
1488 else
1489 with_gnu_ld=no
1492 ac_prog=ld
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`
1498 case "$ac_prog" in
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%/%"`
1506 done
1507 test -z "$LD" && LD="$ac_prog"
1510 # If it fails, then pretend we aren't using GCC.
1511 ac_prog=ld
1514 # If it is relative, then search for the first ld in PATH.
1515 with_gnu_ld=unknown
1517 esac
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
1521 else
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
1527 else
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
1539 else
1540 test "$with_gnu_ld" != yes && break
1543 done
1544 IFS="$ac_save_ifs"
1545 else
1546 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1550 LD="$ac_cv_path_LD"
1551 if test -n "$LD"; then
1552 echo "$ac_t""$LD" 1>&6
1553 else
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
1561 else
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
1565 else
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
1576 else
1577 if test -n "$NM"; then
1578 # Let the user override the test.
1579 ac_cv_path_NM="$NM"
1580 else
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"
1590 break
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"
1593 break
1594 else
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
1599 done
1600 IFS="$ac_save_ifs"
1601 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1605 NM="$ac_cv_path_NM"
1606 echo "$ac_t""$NM" 1>&6
1609 case "$target" in
1610 NONE) lt_target="$host" ;;
1611 *) lt_target="$target" ;;
1612 esac
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
1633 # libtool support.
1634 case "$lt_target" in
1635 *-*-irix6*)
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
1640 *32-bit*)
1641 LD="${LD-ld} -32"
1643 *N32*)
1644 LD="${LD-ld} -n32"
1646 *64-bit*)
1647 LD="${LD-ld} -64"
1649 esac
1651 rm -rf conftest*
1654 *-*-sco3.2v5*)
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
1662 else
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1667 int main() {
1669 ; return 0; }
1671 if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1672 rm -rf conftest*
1673 lt_cv_cc_needs_belf=yes
1674 else
1675 echo "configure: failed program was:" >&5
1676 cat conftest.$ac_ext >&5
1677 rm -rf conftest*
1678 lt_cv_cc_needs_belf=no
1680 rm -f conftest*
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"
1690 esac
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.
1715 (set) 2>&1 |
1716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1717 *ac_space=\ *)
1718 # `set' does not quote correctly, so add quotes (double-quote substitution
1719 # turns \\\\ into \\, and sed turns \\ into \).
1720 sed -n \
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'
1728 esac >> confcache
1729 if cmp -s $cache_file confcache; then
1731 else
1732 if test -w $cache_file; then
1733 echo "updating cache $cache_file"
1734 cat confcache > $cache_file
1735 else
1736 echo "not updating unwritable cache $cache_file"
1739 rm -f confcache
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"
1754 . $cache_file
1755 else
1756 echo "creating cache $cache_file"
1757 > $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
1780 else
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 #include <$ac_hdr>
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
1790 rm -rf conftest*
1791 eval "ac_cv_header_$ac_safe=yes"
1792 else
1793 echo "$ac_err" >&5
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1796 rm -rf conftest*
1797 eval "ac_cv_header_$ac_safe=no"
1799 rm -f conftest*
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
1808 else
1809 echo "$ac_t""no" 1>&6
1811 done
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
1823 else
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 #include <$ac_hdr>
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
1833 rm -rf conftest*
1834 eval "ac_cv_header_$ac_safe=yes"
1835 else
1836 echo "$ac_err" >&5
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1839 rm -rf conftest*
1840 eval "ac_cv_header_$ac_safe=no"
1842 rm -f conftest*
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
1851 else
1852 echo "$ac_t""no" 1>&6
1854 done
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
1861 else
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1866 #if HAVE_STDLIB_H
1867 # include <stdlib.h>
1868 #endif
1869 #include <wchar.h>
1870 int main() {
1871 mbstate_t x; return sizeof x;
1872 ; return 0; }
1874 if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1875 rm -rf conftest*
1876 ac_cv_type_mbstate_t=yes
1877 else
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 rm -rf conftest*
1881 ac_cv_type_mbstate_t=no
1883 rm -f conftest*
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
1898 else
1900 cl_cv_func_iconv=no
1901 cl_cv_lib_iconv=no
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 #include <stdlib.h>
1906 #include <iconv.h>
1907 int main() {
1908 iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);
1909 ; return 0; }
1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1912 rm -rf conftest*
1913 cl_cv_func_iconv=yes
1914 else
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1918 rm -f conftest*
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"
1925 #include <stdlib.h>
1926 #include <iconv.h>
1927 int main() {
1928 iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);
1929 ; return 0; }
1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1932 rm -rf conftest*
1933 cl_cv_lib_iconv=yes
1934 cl_cv_func_iconv=yes
1935 else
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1939 rm -f conftest*
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
1954 else
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1960 #include <stdlib.h>
1961 #ifdef HAVE_UNISTD_H
1962 #include <unistd.h>
1963 #endif
1964 #include <sys/types.h>
1965 #include <iconv.h>
1967 extern
1968 #ifdef __cplusplus
1970 #endif
1972 #if defined(__STDC__) || defined(__cplusplus)
1973 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);
1974 #else
1975 size_t iconv();
1976 #endif
1978 int main() {
1980 ; return 0; }
1982 if { (eval echo configure:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1983 rm -rf conftest*
1984 cl_cv_proto_iconv_arg1=""
1985 else
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 rm -rf conftest*
1989 cl_cv_proto_iconv_arg1="const"
1991 rm -f conftest*
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
2006 LIBICONV=
2007 if test "$cl_cv_lib_iconv" = yes; then
2008 LIBICONV="-liconv"
2012 if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
2013 ICONV_CONST=""
2014 else
2015 ICONV_CONST="const"
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
2025 else
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. */
2031 #include <assert.h>
2032 /* Override any gcc2 internal prototype to avoid an error. */
2033 #ifdef __cplusplus
2034 extern "C"
2035 #endif
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2038 char $ac_func();
2040 int main() {
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)
2046 choke me
2047 #else
2048 $ac_func();
2049 #endif
2051 ; return 0; }
2053 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054 rm -rf conftest*
2055 eval "ac_cv_func_$ac_func=yes"
2056 else
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -rf conftest*
2060 eval "ac_cv_func_$ac_func=no"
2062 rm -f conftest*
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
2072 else
2073 echo "$ac_t""no" 1>&6
2075 done
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
2082 else
2084 if test "$cross_compiling" = yes; then
2085 : # must guess the endianness
2087 else
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 #ifdef __cplusplus
2092 extern "C" void exit(int);
2093 #endif
2094 int main () {
2095 /* Are we little or big endian? From Harbison&Steele. */
2096 union
2098 long l;
2099 char c[sizeof (long)];
2100 } u;
2101 u.l = 1;
2102 exit (u.c[0] == 1);
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
2106 then
2107 cl_cv_sys_endian="big endian"
2108 else
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2111 rm -fr conftest*
2112 cl_cv_sys_endian="little endian"
2114 if test -f core; then
2115 coredir=core`/bin/sh -c 'echo $$'`
2116 mkdir $coredir
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"
2123 rm -fr conftest*
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__)
2132 #endif
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "yes" >/dev/null 2>&1; then
2137 rm -rf conftest*
2138 cl_cv_sys_endian="big endian"
2140 rm -f conftest*
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)
2149 #endif
2152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2153 egrep "yes" >/dev/null 2>&1; then
2154 rm -rf conftest*
2155 cl_cv_sys_endian="little endian"
2157 rm -f conftest*
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
2171 *big*) ;;
2172 esac
2176 OS=""
2177 case "$host_os" in
2178 linux*) OS="linux" ;;
2179 solaris*) OS="solaris" ;;
2180 osf*) OS="osf" ;;
2181 esac
2182 if test -n "$OS"; then
2185 PLUGLIB="libiconv_plug.so"
2186 else
2187 PLUGLIB=""
2191 if test -d "${srcdir}/tests"; then
2192 TESTS_MAKEFILE=tests/Makefile
2193 else
2194 TESTS_MAKEFILE=""
2196 trap '' 1 2 15
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.
2218 (set) 2>&1 |
2219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2220 *ac_space=\ *)
2221 # `set' does not quote correctly, so add quotes (double-quote substitution
2222 # turns \\\\ into \\, and sed turns \\ into \).
2223 sed -n \
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'
2231 esac >> confcache
2232 if cmp -s $cache_file confcache; then
2234 else
2235 if test -w $cache_file; then
2236 echo "updating cache $cache_file"
2237 cat confcache > $cache_file
2238 else
2239 echo "not updating unwritable cache $cache_file"
2242 rm -f confcache
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
2267 #! /bin/sh
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]"
2279 for ac_option
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"
2287 exit 0 ;;
2288 -help | --help | --hel | --he | --h)
2289 echo "\$ac_cs_usage"; exit 0 ;;
2290 *) echo "\$ac_cs_usage"; exit 1 ;;
2291 esac
2292 done
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
2303 $ac_vpsub
2304 $extrasub
2305 s%@SHELL@%$SHELL%g
2306 s%@CFLAGS@%$CFLAGS%g
2307 s%@CPPFLAGS@%$CPPFLAGS%g
2308 s%@CXXFLAGS@%$CXXFLAGS%g
2309 s%@FFLAGS@%$FFLAGS%g
2310 s%@DEFS@%$DEFS%g
2311 s%@LDFLAGS@%$LDFLAGS%g
2312 s%@LIBS@%$LIBS%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
2329 s%@CC@%$CC%g
2330 s%@CPP@%$CPP%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
2335 s%@CP@%$CP%g
2336 s%@LN@%$LN%g
2337 s%@LN_S@%$LN_S%g
2338 s%@host@%$host%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
2344 s%@build@%$build%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
2352 s%@OS@%$OS%g
2353 s%@GCC@%$GCC%g
2354 s%@PLUGLIB@%$PLUGLIB%g
2356 CEOF
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.
2367 ac_more_lines=:
2368 ac_sed_cmds=""
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
2372 else
2373 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2375 if test ! -s conftest.s$ac_file; then
2376 ac_more_lines=false
2377 rm -f conftest.s$ac_file
2378 else
2379 if test -z "$ac_sed_cmds"; then
2380 ac_sed_cmds="sed -f conftest.s$ac_file"
2381 else
2382 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2384 ac_file=`expr $ac_file + 1`
2385 ac_beg=$ac_end
2386 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2388 done
2389 if test -z "$ac_sed_cmds"; then
2390 ac_sed_cmds=cat
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".
2401 case "$ac_file" 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" ;;
2405 esac
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'`
2417 else
2418 ac_dir_suffix= ac_dots=
2421 case "$ac_given_srcdir" in
2422 .) srcdir=.
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" ;;
2426 *) # Relative path.
2427 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2428 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2429 esac
2432 echo creating "$ac_file"
2433 rm -f "$ac_file"
2434 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2435 case "$ac_file" in
2436 *Makefile*) ac_comsub="1i\\
2437 # $configure_input" ;;
2438 *) ac_comsub= ;;
2439 esac
2441 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2442 sed -e "$ac_comsub
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
2447 fi; done
2448 rm -f conftest.s*
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'
2456 ac_dC='\3'
2457 ac_dD='%g'
2458 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2459 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2460 ac_uB='\([ ]\)%\1#\2define\3'
2461 ac_uC=' '
2462 ac_uD='\4%g'
2463 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2464 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2465 ac_eB='$%\1#\2define\3'
2466 ac_eC=' '
2467 ac_eD='%g'
2468 # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
2469 ac_fA='s%^\([ ]*\)#\([ ]*\)define\([ ][ ]*\)'
2470 ac_fB='$%\1#\2define\3'
2471 ac_fC=' '
2472 ac_fD='%g'
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".
2483 case "$ac_file" 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" ;;
2487 esac
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.
2501 rm -f conftest.vals
2502 cat > conftest.hdr <<\EOF
2503 s/[\\&%]/\\&/g
2504 s%[\\$`]%\\&%g
2505 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2506 s%ac_d%ac_u%gp
2507 s%ac_u%ac_e%gp
2508 s%ac_e%ac_f%gp
2510 sed -n -f conftest.hdr confdefs.h > conftest.vals
2511 rm -f conftest.hdr
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.
2517 rm -f conftest.tail
2518 while :
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
2526 echo 'CEOF
2527 sed -f conftest.frag conftest.in > conftest.out
2528 rm -f conftest.in
2529 mv conftest.out conftest.in
2530 ' >> $CONFIG_STATUS
2531 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2532 rm -f conftest.vals
2533 mv conftest.tail conftest.vals
2534 done
2535 rm -f 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
2541 rm -f conftest.in
2542 if cmp -s $ac_file conftest.h 2>/dev/null; then
2543 echo "$ac_file is unchanged"
2544 rm -f conftest.h
2545 else
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"
2552 rm -f $ac_file
2553 mv conftest.h $ac_file
2555 fi; done
2558 cat >> $CONFIG_STATUS <<EOF
2561 cat >> $CONFIG_STATUS <<\EOF
2563 exit 0
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=
2574 ac_prev=
2575 for ac_arg in $ac_configure_args; do
2576 if test -n "$ac_prev"; then
2577 ac_prev=
2578 continue
2580 case "$ac_arg" in
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)
2588 ac_prev=srcdir ;;
2589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2591 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2592 esac
2593 done
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
2600 continue
2603 echo configuring in $ac_config_dir
2605 case "$srcdir" in
2606 .) ;;
2608 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2609 else
2610 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2613 esac
2615 ac_popdir=`pwd`
2616 cd $ac_config_dir
2618 # A "../" for each directory in /$ac_config_dir.
2619 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2621 case "$srcdir" in
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 ;;
2626 *) # Relative path.
2627 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2628 esac
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
2635 else
2636 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2637 ac_sub_configure=
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 ;;
2646 *) # Relative path.
2647 if test -n "$ac_dots"; then
2648 ac_sub_cache_file="$ac_dots"`echo "$cache_file" | sed 's,^\./,,'`
2649 else
2650 ac_sub_cache_file="$cache_file"
2653 esac
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
2658 then :
2659 else
2660 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2664 cd $ac_popdir
2665 done