2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset
; then
13 UNAME
=${UNAME-`uname 2>/dev/null`}
15 *-DOS) lt_cv_sys_path_separator
=';' ;;
16 *) lt_cv_sys_path_separator
=':' ;;
20 # Check that we are running under the correct shell.
21 SHELL
=${CONFIG_SHELL-/bin/sh}
25 # Remove one level of quotation (which was required for Make).
26 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31 if test "X$1" = X--no-reexec
; then
32 # Discard the --no-reexec flag, and continue.
34 elif test "X$1" = X--fallback-echo
; then
35 # Avoid inline document here, it may be left over
37 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38 # Yippee, $echo works!
41 # Restart under the correct shell.
42 exec $SHELL "$0" --no-reexec ${1+"$@"}
45 if test "X$1" = X--fallback-echo
; then
46 # used as fallback echo
54 # The HP-UX ksh and POSIX shell print the target directory to stdout
56 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
58 if test -z "$ECHO"; then
59 if test "X${echo_test_string+set}" != Xset
; then
60 # find a string as large as possible, as long as the shell can cope with it
61 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
64 echo_test_string
="`eval $cmd`" &&
65 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
72 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
74 test "X$echo_testing_string" = "X$echo_test_string"; then
77 # The Solaris, AIX, and Digital Unix default echo programs unquote
78 # backslashes. This makes it impossible to quote backslashes using
79 # echo "$something" | sed 's/\\/\\\\/g'
81 # So, first we look for a working echo in the user's PATH.
83 IFS
="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84 for dir
in $PATH /usr
/ucb
; do
85 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
86 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
95 if test "X$echo" = Xecho
; then
96 # We didn't find a better echo, so look for alternatives.
97 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
99 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # This shell has a builtin print -r that does the trick.
102 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
103 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
104 # If we have ksh, try running configure again with it.
105 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
106 export ORIGINAL_CONFIG_SHELL
107 CONFIG_SHELL
=/bin
/ksh
109 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
113 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
115 test "X$echo_testing_string" = "X$echo_test_string"; then
118 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119 test "X$echo_testing_string" = 'X\t' &&
120 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121 test "X$echo_testing_string" = "X$echo_test_string"; then
122 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
124 SHELL
="$CONFIG_SHELL"
126 echo="$CONFIG_SHELL $0 --fallback-echo"
127 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128 test "X$echo_testing_string" = 'X\t' &&
129 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
131 echo="$CONFIG_SHELL $0 --fallback-echo"
133 # maybe with a smaller string...
136 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
144 if test "$prev" != 'sed 50q "$0"'; then
145 echo_test_string
=`eval $prev`
146 export echo_test_string
147 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149 # Oops. We lost completely, so just stick with echo.
158 # Copy echo and quote the copy suitably for passing to libtool from
159 # the Makefile, instead of quoting the original, which is used later.
161 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 # Avoid depending upon Character Ranges.
166 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
167 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
168 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
169 as_cr_digits
='0123456789'
170 as_cr_alnum
=$as_cr_Letters$as_cr_digits
172 # Sed expression to map a string onto a valid variable name.
173 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175 # Sed expression to map a string onto a valid CPP name.
176 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178 # Be Bourne compatible
179 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
182 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
186 # Name of the executable.
187 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
189 if expr a
: '\(a\)' >/dev
/null
2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.
file
197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe
; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.
file conf$$
2>/dev
/null
; then
211 rm -f conf$$ conf$$.exe conf$$.
file
213 as_executable_p
="test -f"
215 # Support unset when possible.
216 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
223 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
224 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
225 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
226 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
227 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
228 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
229 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
230 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
233 # We need space, tab and new line, in precisely that order.
239 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
242 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
243 # so uname gets run too.
244 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 ac_default_prefix
=/usr
/local
255 SHELL
=${CONFIG_SHELL-/bin/sh}
257 # Maximum number of lines to put in a shell here document.
258 # This variable seems obsolete. It should probably be removed, and
259 # only ac_max_sed_lines should be used.
260 : ${ac_max_here_lines=38}
262 ac_unique_file
="lib/iconv.c"
263 ac_subdirs_all
="$ac_subdirs_all libcharset"
265 # Initialize some variables set by options.
267 ac_init_version
=false
268 # The variables have the same names as the options, with
269 # dashes changed to underlines.
277 program_transform_name
=s
,x
,x
,
285 # Installation directory options.
286 # These are left unexpanded so users can "make install exec_prefix=/foo"
287 # and all the variables that are supposed to be based on exec_prefix
288 # by default will actually change.
289 # Use braces instead of parens because sh, perl, etc. also accept them.
290 bindir
='${exec_prefix}/bin'
291 sbindir
='${exec_prefix}/sbin'
292 libexecdir
='${exec_prefix}/libexec'
293 datadir
='${prefix}/share'
294 sysconfdir
='${prefix}/etc'
295 sharedstatedir
='${prefix}/com'
296 localstatedir
='${prefix}/var'
297 libdir
='${exec_prefix}/lib'
298 includedir
='${prefix}/include'
299 oldincludedir
='/usr/include'
300 infodir
='${prefix}/info'
301 mandir
='${prefix}/man'
303 # Identity of this package.
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
320 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
322 # Accept the important Cygnus configure options, so we can diagnose typos.
326 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
328 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
331 -build |
--build |
--buil |
--bui |
--bu)
332 ac_prev
=build_alias
;;
333 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
334 build_alias
=$ac_optarg ;;
336 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
337 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
338 ac_prev
=cache_file
;;
339 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
340 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
341 cache_file
=$ac_optarg ;;
344 cache_file
=config.cache
;;
346 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
348 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
350 datadir
=$ac_optarg ;;
352 -disable-* |
--disable-*)
353 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
354 # Reject names that are not valid shell variable names.
355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
359 eval "enable_$ac_feature=no" ;;
361 -enable-* |
--enable-*)
362 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
363 # Reject names that are not valid shell variable names.
364 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
365 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366 { (exit 1); exit 1; }; }
367 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
369 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
372 eval "enable_$ac_feature='$ac_optarg'" ;;
374 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
375 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
376 |
--exec |
--exe |
--ex)
377 ac_prev
=exec_prefix
;;
378 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
379 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
380 |
--exec=* |
--exe=* |
--ex=*)
381 exec_prefix
=$ac_optarg ;;
383 -gas |
--gas |
--ga |
--g)
384 # Obsolete; use --with-gas.
387 -help |
--help |
--hel |
--he |
-h)
389 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
390 ac_init_help
=recursive
;;
391 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
392 ac_init_help
=short
;;
394 -host |
--host |
--hos |
--ho)
395 ac_prev
=host_alias
;;
396 -host=* |
--host=* |
--hos=* |
--ho=*)
397 host_alias
=$ac_optarg ;;
399 -includedir |
--includedir |
--includedi |
--included |
--include \
400 |
--includ |
--inclu |
--incl |
--inc)
401 ac_prev
=includedir
;;
402 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
403 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
404 includedir
=$ac_optarg ;;
406 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
408 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
409 infodir
=$ac_optarg ;;
411 -libdir |
--libdir |
--libdi |
--libd)
413 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
416 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
417 |
--libexe |
--libex |
--libe)
418 ac_prev
=libexecdir
;;
419 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
420 |
--libexe=* |
--libex=* |
--libe=*)
421 libexecdir
=$ac_optarg ;;
423 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
424 |
--localstate |
--localstat |
--localsta |
--localst \
425 |
--locals |
--local |
--loca |
--loc |
--lo)
426 ac_prev
=localstatedir
;;
427 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
428 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
429 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
430 localstatedir
=$ac_optarg ;;
432 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
434 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
438 # Obsolete; use --without-fp.
441 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
445 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
446 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
449 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
450 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
451 |
--oldin |
--oldi |
--old |
--ol |
--o)
452 ac_prev
=oldincludedir
;;
453 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
454 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
455 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
456 oldincludedir
=$ac_optarg ;;
458 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
460 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
463 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
464 |
--program-pre |
--program-pr |
--program-p)
465 ac_prev
=program_prefix
;;
466 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
467 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
468 program_prefix
=$ac_optarg ;;
470 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
471 |
--program-suf |
--program-su |
--program-s)
472 ac_prev
=program_suffix
;;
473 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
474 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
475 program_suffix
=$ac_optarg ;;
477 -program-transform-name |
--program-transform-name \
478 |
--program-transform-nam |
--program-transform-na \
479 |
--program-transform-n |
--program-transform- \
480 |
--program-transform |
--program-transfor \
481 |
--program-transfo |
--program-transf \
482 |
--program-trans |
--program-tran \
483 |
--progr-tra |
--program-tr |
--program-t)
484 ac_prev
=program_transform_name
;;
485 -program-transform-name=* |
--program-transform-name=* \
486 |
--program-transform-nam=* |
--program-transform-na=* \
487 |
--program-transform-n=* |
--program-transform-=* \
488 |
--program-transform=* |
--program-transfor=* \
489 |
--program-transfo=* |
--program-transf=* \
490 |
--program-trans=* |
--program-tran=* \
491 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
492 program_transform_name
=$ac_optarg ;;
494 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
495 |
-silent |
--silent |
--silen |
--sile |
--sil)
498 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
500 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
502 sbindir
=$ac_optarg ;;
504 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
505 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
506 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
508 ac_prev
=sharedstatedir
;;
509 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
510 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
511 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
513 sharedstatedir
=$ac_optarg ;;
515 -site |
--site |
--sit)
517 -site=* |
--site=* |
--sit=*)
520 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
522 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
525 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
526 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
527 ac_prev
=sysconfdir
;;
528 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
529 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
530 sysconfdir
=$ac_optarg ;;
532 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
533 ac_prev
=target_alias
;;
534 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
535 target_alias
=$ac_optarg ;;
537 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
540 -version |
--version |
--versio |
--versi |
--vers |
-V)
544 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
547 { echo "$as_me: error: invalid package name: $ac_package" >&2
548 { (exit 1); exit 1; }; }
549 ac_package
=`echo $ac_package| sed 's/-/_/g'`
551 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554 eval "with_$ac_package='$ac_optarg'" ;;
556 -without-* |
--without-*)
557 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
560 { echo "$as_me: error: invalid package name: $ac_package" >&2
561 { (exit 1); exit 1; }; }
562 ac_package
=`echo $ac_package | sed 's/-/_/g'`
563 eval "with_$ac_package=no" ;;
566 # Obsolete; use --with-x.
569 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
570 |
--x-incl |
--x-inc |
--x-in |
--x-i)
571 ac_prev
=x_includes
;;
572 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
573 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
574 x_includes
=$ac_optarg ;;
576 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
577 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
578 ac_prev
=x_libraries
;;
579 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
580 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
581 x_libraries
=$ac_optarg ;;
583 -*) { echo "$as_me: error: unrecognized option: $ac_option
584 Try \`$0 --help' for more information." >&2
585 { (exit 1); exit 1; }; }
589 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593 { (exit 1); exit 1; }; }
594 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595 eval "$ac_envvar='$ac_optarg'"
599 # FIXME: should be removed in autoconf 3.0.
600 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
602 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 if test -n "$ac_prev"; then
610 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
611 { echo "$as_me: error: missing argument to $ac_option" >&2
612 { (exit 1); exit 1; }; }
615 # Be sure to have absolute paths.
616 for ac_var
in exec_prefix prefix
618 eval ac_val
=$
`echo $ac_var`
620 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
621 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622 { (exit 1); exit 1; }; };;
626 # Be sure to have absolute paths.
627 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628 localstatedir libdir includedir oldincludedir infodir mandir
630 eval ac_val
=$
`echo $ac_var`
632 [\\/$
]* | ?
:[\\/]* ) ;;
633 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634 { (exit 1); exit 1; }; };;
638 # There might be people who depend on the old broken behavior: `$host'
639 # used to hold the argument of --host etc.
644 # FIXME: should be removed in autoconf 3.0.
645 if test "x$host_alias" != x
; then
646 if test "x$build_alias" = x
; then
647 cross_compiling
=maybe
648 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649 If a cross compiler is detected then cross compile mode will be used." >&2
650 elif test "x$build_alias" != "x$host_alias"; then
656 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
658 test "$silent" = yes && exec 6>/dev
/null
660 # Find the source files, if location was not specified.
661 if test -z "$srcdir"; then
662 ac_srcdir_defaulted
=yes
663 # Try the directory containing this script, then its parent.
665 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
666 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
668 if test ! -r $srcdir/$ac_unique_file; then
672 ac_srcdir_defaulted
=no
674 if test ! -r $srcdir/$ac_unique_file; then
675 if test "$ac_srcdir_defaulted" = yes; then
676 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
677 { (exit 1); exit 1; }; }
679 { echo "$as_me: error: cannot find sources in $srcdir" >&2
680 { (exit 1); exit 1; }; }
683 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
684 ac_env_build_alias_set
=${build_alias+set}
685 ac_env_build_alias_value
=$build_alias
686 ac_cv_env_build_alias_set
=${build_alias+set}
687 ac_cv_env_build_alias_value
=$build_alias
688 ac_env_host_alias_set
=${host_alias+set}
689 ac_env_host_alias_value
=$host_alias
690 ac_cv_env_host_alias_set
=${host_alias+set}
691 ac_cv_env_host_alias_value
=$host_alias
692 ac_env_target_alias_set
=${target_alias+set}
693 ac_env_target_alias_value
=$target_alias
694 ac_cv_env_target_alias_set
=${target_alias+set}
695 ac_cv_env_target_alias_value
=$target_alias
696 ac_env_CC_set
=${CC+set}
698 ac_cv_env_CC_set
=${CC+set}
699 ac_cv_env_CC_value
=$CC
700 ac_env_CFLAGS_set
=${CFLAGS+set}
701 ac_env_CFLAGS_value
=$CFLAGS
702 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
703 ac_cv_env_CFLAGS_value
=$CFLAGS
704 ac_env_LDFLAGS_set
=${LDFLAGS+set}
705 ac_env_LDFLAGS_value
=$LDFLAGS
706 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
707 ac_cv_env_LDFLAGS_value
=$LDFLAGS
708 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
709 ac_env_CPPFLAGS_value
=$CPPFLAGS
710 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
711 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
712 ac_env_CPP_set
=${CPP+set}
713 ac_env_CPP_value
=$CPP
714 ac_cv_env_CPP_set
=${CPP+set}
715 ac_cv_env_CPP_value
=$CPP
718 # Report the --help message.
720 if test "$ac_init_help" = "long"; then
721 # Omit some internal or obsolete options to make the list less imposing.
722 # This message is too long to be a string in the A/UX 3.1 sh.
724 \`configure' configures this package to adapt to many kinds of systems.
726 Usage: $0 [OPTION]... [VAR=VALUE]...
728 To assign environment variables (e.g., CC, CFLAGS...), specify them as
729 VAR=VALUE. See below for descriptions of some of the useful variables.
731 Defaults for the options are specified in brackets.
734 -h, --help display this help and exit
735 --help=short display options specific to this package
736 --help=recursive display the short help of all the included packages
737 -V, --version display version information and exit
738 -q, --quiet, --silent do not print \`checking...' messages
739 --cache-file=FILE cache test results in FILE [disabled]
740 -C, --config-cache alias for \`--cache-file=config.cache'
741 -n, --no-create do not create output files
742 --srcdir=DIR find the sources in DIR [configure dir or \`..']
747 Installation directories:
748 --prefix=PREFIX install architecture-independent files in PREFIX
750 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
753 By default, \`make install' will install all the files in
754 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
755 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
756 for instance \`--prefix=\$HOME'.
758 For better control, use the options below.
760 Fine tuning of the installation directories:
761 --bindir=DIR user executables [EPREFIX/bin]
762 --sbindir=DIR system admin executables [EPREFIX/sbin]
763 --libexecdir=DIR program executables [EPREFIX/libexec]
764 --datadir=DIR read-only architecture-independent data [PREFIX/share]
765 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
766 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
767 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
768 --libdir=DIR object code libraries [EPREFIX/lib]
769 --includedir=DIR C header files [PREFIX/include]
770 --oldincludedir=DIR C header files for non-gcc [/usr/include]
771 --infodir=DIR info documentation [PREFIX/info]
772 --mandir=DIR man documentation [PREFIX/man]
778 --build=BUILD configure
for building on BUILD
[guessed
]
779 --host=HOST build programs to run on HOST
[BUILD
]
783 if test -n "$ac_init_help"; then
788 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
789 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
790 --enable-static=PKGS build static libraries default
=no
791 --enable-shared=PKGS build shared libraries default
=yes
792 --enable-fast-install=PKGS optimize
for fast installation default
=yes
793 --disable-libtool-lock avoid locking
(might
break parallel builds
)
796 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
797 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
798 --with-gnu-ld assume the C compiler uses GNU ld default
=no
799 --with-pic try to use only PIC
/non-PIC objects default
=use both
801 Some influential environment variables
:
802 CC C compiler
command
803 CFLAGS C compiler flags
804 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
805 nonstandard directory
<lib dir
>
806 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
807 headers
in a nonstandard directory
<include dir
>
810 Use these variables to override the choices made by
`configure' or to help
811 it to find libraries and programs with nonstandard names/locations.
816 if test "$ac_init_help" = "recursive"; then
817 # If there are subdirs, report their specific --help.
819 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
821 # A "../" for each directory in /$ac_subdir.
822 ac_dots=`echo $ac_subdir |
823 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
826 .) # No --srcdir option. We are building in place.
827 ac_sub_srcdir=$srcdir ;;
828 [\\/]* | ?:[\\/]* ) # Absolute path.
829 ac_sub_srcdir=$srcdir/$ac_subdir ;;
831 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
834 # Check for guested configure; otherwise get Cygnus style configure.
835 if test -f $ac_sub_srcdir/configure.gnu; then
837 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
838 elif test -f $ac_sub_srcdir/configure; then
840 $SHELL $ac_sub_srcdir/configure --help=recursive
841 elif test -f $ac_sub_srcdir/configure.ac ||
842 test -f $ac_sub_srcdir/configure.in; then
846 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
852 test -n "$ac_init_help" && exit 0
853 if $ac_init_version; then
856 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
857 Free Software Foundation, Inc.
858 This configure script is free software; the Free Software Foundation
859 gives unlimited permission to copy, distribute and modify it.
865 This file contains any messages produced by compilers while
866 running configure, to aid debugging if configure makes a mistake.
868 It was created by $as_me, which was
869 generated by GNU Autoconf 2.52. Invocation command line was
880 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
881 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
882 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
883 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
884 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
886 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
887 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
889 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
890 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
891 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
892 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
893 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
894 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
895 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
909 # Keep a trace of the command line.
910 # Strip out --no-create and --no-recursion so they do not pile up.
911 # Also quote any args containing shell meta-characters.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c) ;;
919 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
920 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
921 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
922 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
923 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
925 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
928 # Get rid of the leading space.
931 # When interrupted or exit'd, cleanup temporary files, and complete
932 # config.log. We remove comments because anyway the quotes in there
933 # would cause problems or look ugly.
935 # Save into config.log some information that might help in debugging.
937 echo "## ----------------- ##" >&5
938 echo "## Cache variables. ##" >&5
939 echo "## ----------------- ##" >&5
941 # The following way of writing the cache mishandles newlines in values,
944 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
947 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
952 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
956 sed "/^$/d" confdefs.h >conftest.log
957 if test -s conftest.log; then
959 echo "## ------------ ##" >&5
960 echo "## confdefs.h. ##" >&5
961 echo "## ------------ ##" >&5
966 test "$ac_signal" != 0 &&
967 echo "$as_me: caught signal $ac_signal" >&5
968 echo "$as_me: exit $exit_status" >&5
969 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
972 for ac_signal in 1 2 13 15; do
973 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
977 # confdefs.h avoids OS command line length limits that DEFS can exceed.
978 rm -rf conftest* confdefs.h
979 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
982 # Let the site file select an alternate cache file if it wants to.
983 # Prefer explicitly selected file to automatically selected ones.
984 if test -z "$CONFIG_SITE"; then
985 if test "x$prefix" != xNONE; then
986 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
988 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
991 for ac_site_file in $CONFIG_SITE; do
992 if test -r "$ac_site_file"; then
993 { echo "$as_me:993: loading site script $ac_site_file" >&5
994 echo "$as_me: loading site script $ac_site_file" >&6;}
995 cat "$ac_site_file" >&5
1000 if test -r "$cache_file"; then
1001 # Some versions of bash will fail to source /dev/null (special
1002 # files actually), so we avoid doing that.
1003 if test -f "$cache_file"; then
1004 { echo "$as_me:1004: loading cache $cache_file" >&5
1005 echo "$as_me: loading cache $cache_file" >&6;}
1007 [\\/]* | ?:[\\/]* ) . $cache_file;;
1008 *) . ./$cache_file;;
1012 { echo "$as_me:1012: creating cache $cache_file" >&5
1013 echo "$as_me: creating cache $cache_file" >&6;}
1017 # Check that the precious variables saved in the cache have kept the same
1019 ac_cache_corrupted=false
1020 for ac_var in `(set) 2>&1 |
1021 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1023 eval ac_new_set=\$ac_env_${ac_var}_set
1024 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1025 eval ac_new_val="\$ac_env_${ac_var}_value"
1026 case $ac_old_set,$ac_new_set in
1028 { echo "$as_me:1028: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1029 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1030 ac_cache_corrupted=: ;;
1032 { echo "$as_me:1032: error: \`$ac_var' was not
set in the previous run
" >&5
1033 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1034 ac_cache_corrupted=: ;;
1037 if test "x$ac_old_val" != "x$ac_new_val"; then
1038 { echo "$as_me:1038: error: \`$ac_var' has changed since the previous run:" >&5
1039 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1040 { echo "$as_me:1040: former value
: $ac_old_val" >&5
1041 echo "$as_me: former value
: $ac_old_val" >&2;}
1042 { echo "$as_me:1042: current value
: $ac_new_val" >&5
1043 echo "$as_me: current value
: $ac_new_val" >&2;}
1044 ac_cache_corrupted=:
1047 # Pass precious variables to config.status. It doesn't matter if
1048 # we pass some twice (in addition to the command line arguments).
1049 if test "$ac_new_set" = set; then
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
1053 ac_configure_args="$ac_configure_args '$ac_arg'"
1055 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1060 if $ac_cache_corrupted; then
1061 { echo "$as_me:1061: error
: changes
in the environment can compromise the build
" >&5
1062 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1063 { { echo "$as_me:1063: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1064 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1065 { (exit 1); exit 1; }; }
1069 ac_cpp='$CPP $CPPFLAGS'
1070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1074 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
1075 *c*,-n*) ECHO_N= ECHO_C='
1077 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1078 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1080 echo "#! $SHELL" >conftest.sh
1081 echo "exit 0" >>conftest.sh
1082 chmod +x conftest.sh
1083 if { (echo "$as_me:1083: PATH=\".;.\"; conftest.sh") >&5
1084 (PATH=".;."; conftest.sh) 2>&5
1086 echo "$as_me:1086: \$? = $ac_status" >&5
1087 (exit $ac_status); }; then
1088 ac_path_separator=';'
1092 PATH_SEPARATOR="$ac_path_separator"
1096 for ac_dir in autoconf $srcdir/autoconf; do
1097 if test -f $ac_dir/install-sh; then
1099 ac_install_sh="$ac_aux_dir/install-sh -c"
1101 elif test -f $ac_dir/install.sh; then
1103 ac_install_sh="$ac_aux_dir/install.sh -c"
1105 elif test -f $ac_dir/shtool; then
1107 ac_install_sh="$ac_aux_dir/shtool install -c"
1111 if test -z "$ac_aux_dir"; then
1112 { { echo "$as_me:1112: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1113 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1114 { (exit 1); exit 1; }; }
1116 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1117 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1118 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1120 ac_config_headers="$ac_config_headers lib/config.h"
1122 echo "$as_me:1122: checking whether ${MAKE-make} sets \${MAKE}" >&5
1123 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1124 set dummy ${MAKE-make}; ac_make=`echo "$2" |
sed 'y,./+-,__p_,'`
1125 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1126 echo $ECHO_N "(cached) $ECHO_C" >&6
1128 cat >conftest.make <<\EOF
1130 @echo 'ac_maketemp="${MAKE}"'
1132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1133 eval `${MAKE-make} -f conftest.
make 2>/dev
/null |
grep temp
=`
1134 if test -n "$ac_maketemp"; then
1135 eval ac_cv_prog_make_${ac_make}_set=yes
1137 eval ac_cv_prog_make_${ac_make}_set=no
1141 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set
`\" = yes"; then
1142 echo "$as_me:1142: result: yes" >&5
1143 echo "${ECHO_T}yes" >&6
1146 echo "$as_me:1146: result: no" >&5
1147 echo "${ECHO_T}no" >&6
1148 SET_MAKE="MAKE=${MAKE-make}"
1152 ac_cpp='$CPP $CPPFLAGS'
1153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1156 if test -n "$ac_tool_prefix"; then
1157 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1159 echo "$as_me:1159: checking for $ac_word" >&5
1160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1161 if test "${ac_cv_prog_CC+set}" = set; then
1162 echo $ECHO_N "(cached) $ECHO_C" >&6
1164 if test -n "$CC"; then
1165 ac_cv_prog_CC="$CC" # Let the user override the test.
1167 ac_save_IFS=$IFS; IFS=$ac_path_separator
1169 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 $as_executable_p "$ac_dir/$ac_word" || continue
1173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1174 echo "$as_me:1174: found $ac_dir/$ac_word" >&5
1181 if test -n "$CC"; then
1182 echo "$as_me:1182: result: $CC" >&5
1183 echo "${ECHO_T}$CC" >&6
1185 echo "$as_me:1185: result: no" >&5
1186 echo "${ECHO_T}no" >&6
1190 if test -z "$ac_cv_prog_CC"; then
1192 # Extract the first word of "gcc", so it can be a program name with args.
1193 set dummy gcc; ac_word=$2
1194 echo "$as_me:1194: checking for $ac_word" >&5
1195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1197 echo $ECHO_N "(cached) $ECHO_C" >&6
1199 if test -n "$ac_ct_CC"; then
1200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1202 ac_save_IFS=$IFS; IFS=$ac_path_separator
1204 for ac_dir in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir=.
1207 $as_executable_p "$ac_dir/$ac_word" || continue
1208 ac_cv_prog_ac_ct_CC="gcc"
1209 echo "$as_me:1209: found $ac_dir/$ac_word" >&5
1215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1216 if test -n "$ac_ct_CC"; then
1217 echo "$as_me:1217: result: $ac_ct_CC" >&5
1218 echo "${ECHO_T}$ac_ct_CC" >&6
1220 echo "$as_me:1220: result: no" >&5
1221 echo "${ECHO_T}no" >&6
1229 if test -z "$CC"; then
1230 if test -n "$ac_tool_prefix"; then
1231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1232 set dummy ${ac_tool_prefix}cc; ac_word=$2
1233 echo "$as_me:1233: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_CC+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1238 if test -n "$CC"; then
1239 ac_cv_prog_CC="$CC" # Let the user override the test.
1241 ac_save_IFS=$IFS; IFS=$ac_path_separator
1243 for ac_dir in $ac_dummy; do
1245 test -z "$ac_dir" && ac_dir=.
1246 $as_executable_p "$ac_dir/$ac_word" || continue
1247 ac_cv_prog_CC="${ac_tool_prefix}cc"
1248 echo "$as_me:1248: found $ac_dir/$ac_word" >&5
1255 if test -n "$CC"; then
1256 echo "$as_me:1256: result: $CC" >&5
1257 echo "${ECHO_T}$CC" >&6
1259 echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
1264 if test -z "$ac_cv_prog_CC"; then
1266 # Extract the first word of "cc", so it can be a program name with args.
1267 set dummy cc; ac_word=$2
1268 echo "$as_me:1268: checking for $ac_word" >&5
1269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1271 echo $ECHO_N "(cached) $ECHO_C" >&6
1273 if test -n "$ac_ct_CC"; then
1274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1276 ac_save_IFS=$IFS; IFS=$ac_path_separator
1278 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 $as_executable_p "$ac_dir/$ac_word" || continue
1282 ac_cv_prog_ac_ct_CC="cc"
1283 echo "$as_me:1283: found $ac_dir/$ac_word" >&5
1289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1290 if test -n "$ac_ct_CC"; then
1291 echo "$as_me:1291: result: $ac_ct_CC" >&5
1292 echo "${ECHO_T}$ac_ct_CC" >&6
1294 echo "$as_me:1294: result: no" >&5
1295 echo "${ECHO_T}no" >&6
1304 if test -z "$CC"; then
1305 # Extract the first word of "cc", so it can be a program name with args.
1306 set dummy cc; ac_word=$2
1307 echo "$as_me:1307: checking for $ac_word" >&5
1308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1309 if test "${ac_cv_prog_CC+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 if test -n "$CC"; then
1313 ac_cv_prog_CC="$CC" # Let the user override the test.
1316 ac_save_IFS=$IFS; IFS=$ac_path_separator
1318 for ac_dir in $ac_dummy; do
1320 test -z "$ac_dir" && ac_dir=.
1321 $as_executable_p "$ac_dir/$ac_word" || continue
1322 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1323 ac_prog_rejected=yes
1327 echo "$as_me:1327: found $ac_dir/$ac_word" >&5
1331 if test $ac_prog_rejected = yes; then
1332 # We found a bogon in the path, so make sure we never use it.
1333 set dummy $ac_cv_prog_CC
1335 if test $# != 0; then
1336 # We chose a different compiler from the bogus one.
1337 # However, it has the same basename, so the bogon will be chosen
1338 # first if we set CC to just the basename; use the full file name.
1340 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1348 if test -n "$CC"; then
1349 echo "$as_me:1349: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1352 echo "$as_me:1352: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1357 if test -z "$CC"; then
1358 if test -n "$ac_tool_prefix"; then
1361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1363 echo "$as_me:1363: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 if test -n "$CC"; then
1369 ac_cv_prog_CC="$CC" # Let the user override the test.
1371 ac_save_IFS=$IFS; IFS=$ac_path_separator
1373 for ac_dir in $ac_dummy; do
1375 test -z "$ac_dir" && ac_dir=.
1376 $as_executable_p "$ac_dir/$ac_word" || continue
1377 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1378 echo "$as_me:1378: found $ac_dir/$ac_word" >&5
1385 if test -n "$CC"; then
1386 echo "$as_me:1386: result: $CC" >&5
1387 echo "${ECHO_T}$CC" >&6
1389 echo "$as_me:1389: result: no" >&5
1390 echo "${ECHO_T}no" >&6
1393 test -n "$CC" && break
1396 if test -z "$CC"; then
1400 # Extract the first word of "$ac_prog", so it can be a program name with args.
1401 set dummy $ac_prog; ac_word=$2
1402 echo "$as_me:1402: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 if test -n "$ac_ct_CC"; then
1408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1410 ac_save_IFS=$IFS; IFS=$ac_path_separator
1412 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 $as_executable_p "$ac_dir/$ac_word" || continue
1416 ac_cv_prog_ac_ct_CC="$ac_prog"
1417 echo "$as_me:1417: found $ac_dir/$ac_word" >&5
1423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1424 if test -n "$ac_ct_CC"; then
1425 echo "$as_me:1425: result: $ac_ct_CC" >&5
1426 echo "${ECHO_T}$ac_ct_CC" >&6
1428 echo "$as_me:1428: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1432 test -n "$ac_ct_CC" && break
1440 test -z "$CC" && { { echo "$as_me:1440: error: no acceptable cc found in \$PATH" >&5
1441 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1442 { (exit 1); exit 1; }; }
1444 # Provide some information about the compiler.
1445 echo "$as_me:1445:" \
1446 "checking for C compiler version" >&5
1447 ac_compiler=`set X
$ac_compile; echo $2`
1448 { (eval echo "$as_me:1448: \"$ac_compiler --version </dev/null >&5\"") >&5
1449 (eval $ac_compiler --version </dev/null >&5) 2>&5
1451 echo "$as_me:1451: \$? = $ac_status" >&5
1452 (exit $ac_status); }
1453 { (eval echo "$as_me:1453: \"$ac_compiler -v </dev/null >&5\"") >&5
1454 (eval $ac_compiler -v </dev/null >&5) 2>&5
1456 echo "$as_me:1456: \$? = $ac_status" >&5
1457 (exit $ac_status); }
1458 { (eval echo "$as_me:1458: \"$ac_compiler -V </dev/null >&5\"") >&5
1459 (eval $ac_compiler -V </dev/null >&5) 2>&5
1461 echo "$as_me:1461: \$? = $ac_status" >&5
1462 (exit $ac_status); }
1464 cat >conftest.$ac_ext <<_ACEOF
1465 #line 1465 "configure"
1466 #include "confdefs.h"
1476 ac_clean_files_save=$ac_clean_files
1477 ac_clean_files="$ac_clean_files a.out a.exe"
1478 # Try to create an executable without -o first, disregard a.out.
1479 # It will help us diagnose broken compilers, and finding out an intuition
1481 echo "$as_me:1481: checking for C compiler default output" >&5
1482 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1483 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1484 if { (eval echo "$as_me:1484: \"$ac_link_default\"") >&5
1485 (eval $ac_link_default) 2>&5
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }; then
1489 # Find the output, starting from the most likely. This scheme is
1490 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1492 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1493 ls a.out conftest 2>/dev/null;
1494 ls a.* conftest.* 2>/dev/null`; do
1496 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1497 a.out ) # We found the default executable, but exeext='' is most
1500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.
]*\
(\..
*\
)'`
1501 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1508 echo "$as_me: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1510 { { echo "$as_me:1510: error: C compiler cannot create executables" >&5
1511 echo "$as_me: error: C compiler cannot create executables" >&2;}
1512 { (exit 77); exit 77; }; }
1515 ac_exeext=$ac_cv_exeext
1516 echo "$as_me:1516: result: $ac_file" >&5
1517 echo "${ECHO_T}$ac_file" >&6
1519 # Check the compiler produces executables we can run. If not, either
1520 # the compiler is broken, or we cross compile.
1521 echo "$as_me:1521: checking whether the C compiler works" >&5
1522 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1523 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1524 # If not cross compiling, check that we can run a simple program.
1525 if test "$cross_compiling" != yes; then
1526 if { ac_try='.
/$ac_file'
1527 { (eval echo "$as_me:1527: \"$ac_try\"") >&5
1530 echo "$as_me:1530: \$? = $ac_status" >&5
1531 (exit $ac_status); }; }; then
1534 if test "$cross_compiling" = maybe; then
1537 { { echo "$as_me:1537: error: cannot run C compiled programs.
1538 If you meant to cross compile, use \`--host'.
" >&5
1539 echo "$as_me: error
: cannot run C compiled programs.
1540 If you meant to cross compile
, use \
`--host'." >&2;}
1541 { (exit 1); exit 1; }; }
1545 echo "$as_me:1545: result: yes" >&5
1546 echo "${ECHO_T}yes" >&6
1548 rm -f a.out a.exe conftest$ac_cv_exeext
1549 ac_clean_files=$ac_clean_files_save
1550 # Check the compiler produces executables we can run. If not, either
1551 # the compiler is broken, or we cross compile.
1552 echo "$as_me:1552: checking whether we are cross compiling" >&5
1553 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1554 echo "$as_me:1554: result: $cross_compiling" >&5
1555 echo "${ECHO_T}$cross_compiling" >&6
1557 echo "$as_me:1557: checking for executable suffix" >&5
1558 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1559 if { (eval echo "$as_me:1559: \"$ac_link\"") >&5
1560 (eval $ac_link) 2>&5
1562 echo "$as_me:1562: \$? = $ac_status" >&5
1563 (exit $ac_status); }; then
1564 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1565 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1566 # work properly (i.e., refer to `conftest.exe'), while it won't with
1568 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1570 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1571 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1578 { { echo "$as_me:1578: error: cannot compute EXEEXT: cannot compile and link" >&5
1579 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1580 { (exit 1); exit 1; }; }
1583 rm -f conftest
$ac_cv_exeext
1584 echo "$as_me:1584: result: $ac_cv_exeext" >&5
1585 echo "${ECHO_T}$ac_cv_exeext" >&6
1587 rm -f conftest.
$ac_ext
1588 EXEEXT
=$ac_cv_exeext
1590 echo "$as_me:1590: checking for object suffix" >&5
1591 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1592 if test "${ac_cv_objext+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 cat >conftest.
$ac_ext <<_ACEOF
1596 #line 1596 "configure"
1597 #include "confdefs.h"
1607 rm -f conftest.o conftest.obj
1608 if { (eval echo "$as_me:1608: \"$ac_compile\"") >&5
1609 (eval $ac_compile) 2>&5
1611 echo "$as_me:1611: \$? = $ac_status" >&5
1612 (exit $ac_status); }; then
1613 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1615 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1616 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1621 echo "$as_me: failed program was:" >&5
1622 cat conftest.
$ac_ext >&5
1623 { { echo "$as_me:1623: error: cannot compute OBJEXT: cannot compile" >&5
1624 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1625 { (exit 1); exit 1; }; }
1628 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1630 echo "$as_me:1630: result: $ac_cv_objext" >&5
1631 echo "${ECHO_T}$ac_cv_objext" >&6
1632 OBJEXT
=$ac_cv_objext
1634 echo "$as_me:1634: checking whether we are using the GNU C compiler" >&5
1635 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1636 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 cat >conftest.
$ac_ext <<_ACEOF
1640 #line 1640 "configure"
1641 #include "confdefs.h"
1654 rm -f conftest.
$ac_objext
1655 if { (eval echo "$as_me:1655: \"$ac_compile\"") >&5
1656 (eval $ac_compile) 2>&5
1658 echo "$as_me:1658: \$? = $ac_status" >&5
1659 (exit $ac_status); } &&
1660 { ac_try
='test -s conftest.$ac_objext'
1661 { (eval echo "$as_me:1661: \"$ac_try\"") >&5
1664 echo "$as_me:1664: \$? = $ac_status" >&5
1665 (exit $ac_status); }; }; then
1668 echo "$as_me: failed program was:" >&5
1669 cat conftest.
$ac_ext >&5
1672 rm -f conftest.
$ac_objext conftest.
$ac_ext
1673 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1676 echo "$as_me:1676: result: $ac_cv_c_compiler_gnu" >&5
1677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1678 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1679 ac_test_CFLAGS
=${CFLAGS+set}
1680 ac_save_CFLAGS
=$CFLAGS
1682 echo "$as_me:1682: checking whether $CC accepts -g" >&5
1683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1684 if test "${ac_cv_prog_cc_g+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 cat >conftest.
$ac_ext <<_ACEOF
1688 #line 1688 "configure"
1689 #include "confdefs.h"
1699 rm -f conftest.
$ac_objext
1700 if { (eval echo "$as_me:1700: \"$ac_compile\"") >&5
1701 (eval $ac_compile) 2>&5
1703 echo "$as_me:1703: \$? = $ac_status" >&5
1704 (exit $ac_status); } &&
1705 { ac_try
='test -s conftest.$ac_objext'
1706 { (eval echo "$as_me:1706: \"$ac_try\"") >&5
1709 echo "$as_me:1709: \$? = $ac_status" >&5
1710 (exit $ac_status); }; }; then
1713 echo "$as_me: failed program was:" >&5
1714 cat conftest.
$ac_ext >&5
1717 rm -f conftest.
$ac_objext conftest.
$ac_ext
1719 echo "$as_me:1719: result: $ac_cv_prog_cc_g" >&5
1720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1721 if test "$ac_test_CFLAGS" = set; then
1722 CFLAGS
=$ac_save_CFLAGS
1723 elif test $ac_cv_prog_cc_g = yes; then
1724 if test "$GCC" = yes; then
1730 if test "$GCC" = yes; then
1736 # Some people use a C++ compiler to compile C. Since we use `exit',
1737 # in C++ we need to declare it. In case someone uses the same compiler
1738 # for both compiling C and C++ we need to have the C++ compiler decide
1739 # the declaration of exit, since it's the most demanding environment.
1740 cat >conftest.
$ac_ext <<_ACEOF
1745 rm -f conftest.
$ac_objext
1746 if { (eval echo "$as_me:1746: \"$ac_compile\"") >&5
1747 (eval $ac_compile) 2>&5
1749 echo "$as_me:1749: \$? = $ac_status" >&5
1750 (exit $ac_status); } &&
1751 { ac_try
='test -s conftest.$ac_objext'
1752 { (eval echo "$as_me:1752: \"$ac_try\"") >&5
1755 echo "$as_me:1755: \$? = $ac_status" >&5
1756 (exit $ac_status); }; }; then
1757 for ac_declaration
in \
1759 '#include <stdlib.h>' \
1760 'extern "C" void std::exit (int) throw (); using std::exit;' \
1761 'extern "C" void std::exit (int); using std::exit;' \
1762 'extern "C" void exit (int) throw ();' \
1763 'extern "C" void exit (int);' \
1766 cat >conftest.
$ac_ext <<_ACEOF
1767 #line 1767 "configure"
1768 #include "confdefs.h"
1779 rm -f conftest.
$ac_objext
1780 if { (eval echo "$as_me:1780: \"$ac_compile\"") >&5
1781 (eval $ac_compile) 2>&5
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); } &&
1785 { ac_try
='test -s conftest.$ac_objext'
1786 { (eval echo "$as_me:1786: \"$ac_try\"") >&5
1789 echo "$as_me:1789: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1793 echo "$as_me: failed program was:" >&5
1794 cat conftest.
$ac_ext >&5
1797 rm -f conftest.
$ac_objext conftest.
$ac_ext
1798 cat >conftest.
$ac_ext <<_ACEOF
1799 #line 1799 "configure"
1800 #include "confdefs.h"
1810 rm -f conftest.
$ac_objext
1811 if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5
1812 (eval $ac_compile) 2>&5
1814 echo "$as_me:1814: \$? = $ac_status" >&5
1815 (exit $ac_status); } &&
1816 { ac_try
='test -s conftest.$ac_objext'
1817 { (eval echo "$as_me:1817: \"$ac_try\"") >&5
1820 echo "$as_me:1820: \$? = $ac_status" >&5
1821 (exit $ac_status); }; }; then
1824 echo "$as_me: failed program was:" >&5
1825 cat conftest.
$ac_ext >&5
1827 rm -f conftest.
$ac_objext conftest.
$ac_ext
1830 if test -n "$ac_declaration"; then
1831 echo '#ifdef __cplusplus' >>confdefs.h
1832 echo $ac_declaration >>confdefs.h
1833 echo '#endif' >>confdefs.h
1837 echo "$as_me: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1840 rm -f conftest.
$ac_objext conftest.
$ac_ext
1842 ac_cpp
='$CPP $CPPFLAGS'
1843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1848 ac_cpp
='$CPP $CPPFLAGS'
1849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1852 echo "$as_me:1852: checking how to run the C preprocessor" >&5
1853 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1854 # On Suns, sometimes $CPP names a directory.
1855 if test -n "$CPP" && test -d "$CPP"; then
1858 if test -z "$CPP"; then
1859 if test "${ac_cv_prog_CPP+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 # Double quotes because CPP needs to be expanded
1863 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1866 for ac_c_preproc_warn_flag
in '' yes
1868 # Use a header file that comes with gcc, so configuring glibc
1869 # with a fresh cross-compiler works.
1870 # On the NeXT, cc -E runs the code through the compiler's parser,
1871 # not just through cpp. "Syntax error" is here to catch this case.
1872 cat >conftest.
$ac_ext <<_ACEOF
1873 #line 1873 "configure"
1874 #include "confdefs.h"
1878 if { (eval echo "$as_me:1878: \"$ac_cpp conftest.$ac_ext\"") >&5
1879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1881 egrep -v '^ *\+' conftest.er1
>conftest.err
1883 cat conftest.err
>&5
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit $ac_status); } >/dev
/null
; then
1886 if test -s conftest.err
; then
1887 ac_cpp_err
=$ac_c_preproc_warn_flag
1894 if test -z "$ac_cpp_err"; then
1897 echo "$as_me: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1899 # Broken: fails on valid input.
1902 rm -f conftest.err conftest.
$ac_ext
1904 # OK, works on sane cases. Now check whether non-existent headers
1905 # can be detected and how.
1906 cat >conftest.
$ac_ext <<_ACEOF
1907 #line 1907 "configure"
1908 #include "confdefs.h"
1909 #include <ac_nonexistent.h>
1911 if { (eval echo "$as_me:1911: \"$ac_cpp conftest.$ac_ext\"") >&5
1912 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1914 egrep -v '^ *\+' conftest.er1
>conftest.err
1916 cat conftest.err
>&5
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); } >/dev
/null
; then
1919 if test -s conftest.err
; then
1920 ac_cpp_err
=$ac_c_preproc_warn_flag
1927 if test -z "$ac_cpp_err"; then
1928 # Broken: success on invalid input.
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.
$ac_ext >&5
1933 # Passes both tests.
1937 rm -f conftest.err conftest.
$ac_ext
1940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1941 rm -f conftest.err conftest.
$ac_ext
1942 if $ac_preproc_ok; then
1954 echo "$as_me:1954: result: $CPP" >&5
1955 echo "${ECHO_T}$CPP" >&6
1957 for ac_c_preproc_warn_flag
in '' yes
1959 # Use a header file that comes with gcc, so configuring glibc
1960 # with a fresh cross-compiler works.
1961 # On the NeXT, cc -E runs the code through the compiler's parser,
1962 # not just through cpp. "Syntax error" is here to catch this case.
1963 cat >conftest.
$ac_ext <<_ACEOF
1964 #line 1964 "configure"
1965 #include "confdefs.h"
1969 if { (eval echo "$as_me:1969: \"$ac_cpp conftest.$ac_ext\"") >&5
1970 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1972 egrep -v '^ *\+' conftest.er1
>conftest.err
1974 cat conftest.err
>&5
1975 echo "$as_me:1975: \$? = $ac_status" >&5
1976 (exit $ac_status); } >/dev
/null
; then
1977 if test -s conftest.err
; then
1978 ac_cpp_err
=$ac_c_preproc_warn_flag
1985 if test -z "$ac_cpp_err"; then
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1990 # Broken: fails on valid input.
1993 rm -f conftest.err conftest.
$ac_ext
1995 # OK, works on sane cases. Now check whether non-existent headers
1996 # can be detected and how.
1997 cat >conftest.
$ac_ext <<_ACEOF
1998 #line 1998 "configure"
1999 #include "confdefs.h"
2000 #include <ac_nonexistent.h>
2002 if { (eval echo "$as_me:2002: \"$ac_cpp conftest.$ac_ext\"") >&5
2003 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2005 egrep -v '^ *\+' conftest.er1
>conftest.err
2007 cat conftest.err
>&5
2008 echo "$as_me:2008: \$? = $ac_status" >&5
2009 (exit $ac_status); } >/dev
/null
; then
2010 if test -s conftest.err
; then
2011 ac_cpp_err
=$ac_c_preproc_warn_flag
2018 if test -z "$ac_cpp_err"; then
2019 # Broken: success on invalid input.
2022 echo "$as_me: failed program was:" >&5
2023 cat conftest.
$ac_ext >&5
2024 # Passes both tests.
2028 rm -f conftest.err conftest.
$ac_ext
2031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2032 rm -f conftest.err conftest.
$ac_ext
2033 if $ac_preproc_ok; then
2036 { { echo "$as_me:2036: error: C preprocessor \"$CPP\" fails sanity check" >&5
2037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2038 { (exit 1); exit 1; }; }
2042 ac_cpp
='$CPP $CPPFLAGS'
2043 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2047 if test $ac_cv_c_compiler_gnu = yes; then
2048 echo "$as_me:2048: checking whether $CC needs -traditional" >&5
2049 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2050 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 ac_pattern
="Autoconf.*'x'"
2054 cat >conftest.
$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2061 egrep "$ac_pattern" >/dev
/null
2>&1; then
2062 ac_cv_prog_gcc_traditional
=yes
2064 ac_cv_prog_gcc_traditional
=no
2068 if test $ac_cv_prog_gcc_traditional = no
; then
2069 cat >conftest.
$ac_ext <<_ACEOF
2070 #line 2070 "configure"
2071 #include "confdefs.h"
2075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2076 egrep "$ac_pattern" >/dev
/null
2>&1; then
2077 ac_cv_prog_gcc_traditional
=yes
2083 echo "$as_me:2083: result: $ac_cv_prog_gcc_traditional" >&5
2084 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2085 if test $ac_cv_prog_gcc_traditional = yes; then
2086 CC
="$CC -traditional"
2090 # Extract the first word of "ranlib", so it can be a program name with args.
2091 set dummy ranlib
; ac_word
=$2
2092 echo "$as_me:2092: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_RANLIB+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$RANLIB"; then
2098 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2100 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2102 for ac_dir
in $ac_dummy; do
2104 test -z "$ac_dir" && ac_dir
=.
2105 $as_executable_p "$ac_dir/$ac_word" ||
continue
2106 ac_cv_prog_RANLIB
="ranlib"
2107 echo "$as_me:2107: found $ac_dir/$ac_word" >&5
2111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
="true"
2114 RANLIB
=$ac_cv_prog_RANLIB
2115 if test -n "$RANLIB"; then
2116 echo "$as_me:2116: result: $RANLIB" >&5
2117 echo "${ECHO_T}$RANLIB" >&6
2119 echo "$as_me:2119: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2123 # Find a good install program. We prefer a C program (faster),
2124 # so one script is as good as another. But avoid the broken or
2125 # incompatible versions:
2126 # SysV /etc/install, /usr/sbin/install
2127 # SunOS /usr/etc/install
2128 # IRIX /sbin/install
2130 # AFS /usr/afsws/bin/install, which mis-handles nonexistent args
2131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2132 # ./install, which can be erroneously created by make from ./install.sh.
2133 echo "$as_me:2133: checking for a BSD compatible install" >&5
2134 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2135 if test -z "$INSTALL"; then
2136 if test "${cl_cv_path_install+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2140 for ac_dir
in $PATH; do
2141 # Account for people who put trailing slashes in PATH elements.
2143 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2145 # OSF1 and SCO ODT 3.0 have their own names for install.
2146 for ac_prog
in ginstall installbsd scoinst
install; do
2147 if test -f $ac_dir/$ac_prog; then
2148 if test $ac_prog = install &&
2149 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2150 # AIX install. It has an incompatible calling convention.
2151 # OSF/1 installbsd also uses dspmsg, but is usable.
2154 if test $ac_prog = installbsd
&&
2155 grep src
/bos
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2156 # AIX installbsd doesn't work without option "-g".
2159 cl_cv_path_install
="$ac_dir/$ac_prog -c"
2169 # As a last resort, use cp.
2170 test -z "$cl_cv_path_install" && cl_cv_path_install
="cp"
2173 INSTALL
="$cl_cv_path_install"
2175 echo "$as_me:2175: result: $INSTALL" >&5
2176 echo "${ECHO_T}$INSTALL" >&6
2177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2178 # It thinks the first close brace ends the variable substitution.
2179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='$(INSTALL)'
2180 if test -z "$INSTALL_DATA"; then
2182 cp |
*/cp ) INSTALL_DATA
='$(INSTALL)' ;;
2183 * ) INSTALL_DATA
='$(INSTALL) -m 644' ;;
2187 echo "$as_me:2187: checking how to copy files" >&5
2188 echo $ECHO_N "checking how to copy files... $ECHO_C" >&6
2189 if test "${cl_cv_prog_cp+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 echo "blabla" > conftest.x
2194 err
=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
2195 if test -z "$err"; then
2196 cl_cv_prog_cp
='cp -p'
2203 echo "$as_me:2203: result: $cl_cv_prog_cp" >&5
2204 echo "${ECHO_T}$cl_cv_prog_cp" >&6
2207 echo "$as_me:2207: checking how to make hard links" >&5
2208 echo $ECHO_N "checking how to make hard links... $ECHO_C" >&6
2209 if test "${cl_cv_prog_LN+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 rm -f conftestdata conftestfile
2214 echo data
> conftestfile
2215 if ln conftestfile conftestdata
2>/dev
/null
; then
2218 cl_cv_prog_LN
="$cl_cv_prog_cp"
2220 rm -f conftestdata conftestfile
2223 echo "$as_me:2223: result: $cl_cv_prog_LN" >&5
2224 echo "${ECHO_T}$cl_cv_prog_LN" >&6
2227 echo "$as_me:2227: checking whether ln -s works" >&5
2228 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2229 if test "${cl_cv_prog_LN_S+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if ln -s X conftestdata
2>/dev
/null
; then
2235 cl_cv_prog_LN_S
="ln -s"
2237 cl_cv_prog_LN_S
="$cl_cv_prog_LN"
2242 if test "$cl_cv_prog_LN_S" = "ln -s"; then
2243 echo "$as_me:2243: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6
2246 echo "$as_me:2246: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2249 LN_S
="$cl_cv_prog_LN_S"
2251 ac_aux_dir
=${srcdir}/autoconf
2252 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2253 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2254 # Make sure we can run config.sub.
2255 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2256 { { echo "$as_me:2256: error: cannot run $ac_config_sub" >&5
2257 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2258 { (exit 1); exit 1; }; }
2260 echo "$as_me:2260: checking build system type" >&5
2261 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2262 if test "${ac_cv_build+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 ac_cv_build_alias
=$build_alias
2266 test -z "$ac_cv_build_alias" &&
2267 ac_cv_build_alias
=`$ac_config_guess`
2268 test -z "$ac_cv_build_alias" &&
2269 { { echo "$as_me:2269: error: cannot guess build type; you must specify one" >&5
2270 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2271 { (exit 1); exit 1; }; }
2272 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2273 { { echo "$as_me:2273: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2274 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2275 { (exit 1); exit 1; }; }
2278 echo "$as_me:2278: result: $ac_cv_build" >&5
2279 echo "${ECHO_T}$ac_cv_build" >&6
2281 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2282 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2283 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2285 echo "$as_me:2285: checking host system type" >&5
2286 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2287 if test "${ac_cv_host+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 ac_cv_host_alias
=$host_alias
2291 test -z "$ac_cv_host_alias" &&
2292 ac_cv_host_alias
=$ac_cv_build_alias
2293 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2294 { { echo "$as_me:2294: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2295 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2296 { (exit 1); exit 1; }; }
2299 echo "$as_me:2299: result: $ac_cv_host" >&5
2300 echo "${ECHO_T}$ac_cv_host" >&6
2302 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2303 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2304 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2306 echo "$as_me:2306: checking for AIX" >&5
2307 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2308 cat >conftest.
$ac_ext <<_ACEOF
2309 #line 2309 "configure"
2310 #include "confdefs.h"
2316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2317 egrep "yes" >/dev
/null
2>&1; then
2318 echo "$as_me:2318: result: yes" >&5
2319 echo "${ECHO_T}yes" >&6
2320 cat >>confdefs.h
<<\EOF
2321 #define _ALL_SOURCE 1
2325 echo "$as_me:2325: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2330 echo "$as_me:2330: checking for minix/config.h" >&5
2331 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2332 if test "${ac_cv_header_minix_config_h+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 cat >conftest.
$ac_ext <<_ACEOF
2336 #line 2336 "configure"
2337 #include "confdefs.h"
2338 #include <minix/config.h>
2340 if { (eval echo "$as_me:2340: \"$ac_cpp conftest.$ac_ext\"") >&5
2341 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2343 egrep -v '^ *\+' conftest.er1
>conftest.err
2345 cat conftest.err
>&5
2346 echo "$as_me:2346: \$? = $ac_status" >&5
2347 (exit $ac_status); } >/dev
/null
; then
2348 if test -s conftest.err
; then
2349 ac_cpp_err
=$ac_c_preproc_warn_flag
2356 if test -z "$ac_cpp_err"; then
2357 ac_cv_header_minix_config_h
=yes
2359 echo "$as_me: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2361 ac_cv_header_minix_config_h
=no
2363 rm -f conftest.err conftest.
$ac_ext
2365 echo "$as_me:2365: result: $ac_cv_header_minix_config_h" >&5
2366 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2367 if test $ac_cv_header_minix_config_h = yes; then
2373 if test "$MINIX" = yes; then
2375 cat >>confdefs.h
<<\EOF
2376 #define _POSIX_SOURCE 1
2379 cat >>confdefs.h
<<\EOF
2380 #define _POSIX_1_SOURCE 2
2383 cat >>confdefs.h
<<\EOF
2389 echo "$as_me:2389: checking for POSIXized ISC" >&5
2390 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2391 if test -d /etc
/conf
/kconfig.d
&&
2392 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2394 echo "$as_me:2394: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6
2396 ISC
=yes # If later tests want to check for ISC.
2398 cat >>confdefs.h
<<\EOF
2399 #define _POSIX_SOURCE 1
2402 if test "$GCC" = yes; then
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2413 # Check whether --enable-static or --disable-static was given.
2414 if test "${enable_static+set}" = set; then
2415 enableval
="$enable_static"
2416 p
=${PACKAGE-default}
2418 yes) enable_static
=yes ;;
2419 no
) enable_static
=no
;;
2422 # Look at the argument we got. We use all the common list separators.
2423 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2424 for pkg
in $enableval; do
2425 if test "X$pkg" = "X$p"; then
2435 # Check whether --enable-shared or --disable-shared was given.
2436 if test "${enable_shared+set}" = set; then
2437 enableval
="$enable_shared"
2438 p
=${PACKAGE-default}
2440 yes) enable_shared
=yes ;;
2441 no
) enable_shared
=no
;;
2444 # Look at the argument we got. We use all the common list separators.
2445 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2446 for pkg
in $enableval; do
2447 if test "X$pkg" = "X$p"; then
2457 # Check whether --enable-fast-install or --disable-fast-install was given.
2458 if test "${enable_fast_install+set}" = set; then
2459 enableval
="$enable_fast_install"
2460 p
=${PACKAGE-default}
2462 yes) enable_fast_install
=yes ;;
2463 no
) enable_fast_install
=no
;;
2465 enable_fast_install
=no
2466 # Look at the argument we got. We use all the common list separators.
2467 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2468 for pkg
in $enableval; do
2469 if test "X$pkg" = "X$p"; then
2470 enable_fast_install
=yes
2477 enable_fast_install
=yes
2480 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2481 if test "${with_gnu_ld+set}" = set; then
2482 withval
="$with_gnu_ld"
2483 test "$withval" = no || with_gnu_ld
=yes
2488 if test "$GCC" = yes; then
2489 # Check if gcc -print-prog-name=ld gives a path.
2490 echo "$as_me:2490: checking for ld used by GCC" >&5
2491 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2494 # gcc leaves a trailing carriage return which upsets mingw
2495 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2497 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
2500 # Accept absolute paths.
2501 [\\/]* |
[A-Za-z
]:[\\/]*)
2502 re_direlt
='/[^/][^/]*/\.\./'
2503 # Canonicalize the path of ld
2504 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
2505 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
2506 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
2508 test -z "$LD" && LD
="$ac_prog"
2511 # If it fails, then pretend we aren't using GCC.
2515 # If it is relative, then search for the first ld in PATH.
2519 elif test "$with_gnu_ld" = yes; then
2520 echo "$as_me:2520: checking for GNU ld" >&5
2521 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2523 echo "$as_me:2523: checking for non-GNU ld" >&5
2524 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2526 if test "${lt_cv_path_LD+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -z "$LD"; then
2530 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2531 for ac_dir
in $PATH; do
2532 test -z "$ac_dir" && ac_dir
=.
2533 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
2534 lt_cv_path_LD
="$ac_dir/$ac_prog"
2535 # Check to see if the program is GNU ld. I'd rather use --version,
2536 # but apparently some GNU ld's only accept -v.
2537 # Break only if it was the GNU/non-GNU ld that we prefer.
2538 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
2539 test "$with_gnu_ld" != no
&& break
2541 test "$with_gnu_ld" != yes && break
2547 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
2552 if test -n "$LD"; then
2553 echo "$as_me:2553: result: $LD" >&5
2554 echo "${ECHO_T}$LD" >&6
2556 echo "$as_me:2556: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2559 test -z "$LD" && { { echo "$as_me:2559: error: no acceptable ld found in \$PATH" >&5
2560 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2561 { (exit 1); exit 1; }; }
2562 echo "$as_me:2562: checking if the linker ($LD) is GNU ld" >&5
2563 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2564 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2568 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2569 lt_cv_prog_gnu_ld
=yes
2571 lt_cv_prog_gnu_ld
=no
2574 echo "$as_me:2574: result: $lt_cv_prog_gnu_ld" >&5
2575 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2576 with_gnu_ld
=$lt_cv_prog_gnu_ld
2578 echo "$as_me:2578: checking for $LD option to reload object files" >&5
2579 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2580 if test "${lt_cv_ld_reload_flag+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 lt_cv_ld_reload_flag
='-r'
2585 echo "$as_me:2585: result: $lt_cv_ld_reload_flag" >&5
2586 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2587 reload_flag
=$lt_cv_ld_reload_flag
2588 test -n "$reload_flag" && reload_flag
=" $reload_flag"
2590 echo "$as_me:2590: checking for BSD-compatible nm" >&5
2591 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2592 if test "${lt_cv_path_NM+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$NM"; then
2596 # Let the user override the test.
2599 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2600 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2601 test -z "$ac_dir" && ac_dir
=.
2602 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
2603 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
2604 # Check to see if the nm accepts a BSD-compat flag.
2605 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2606 # nm: unknown option "B" ignored
2607 # Tru64's nm complains that /dev/null is an invalid object file
2608 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
2609 lt_cv_path_NM
="$tmp_nm -B"
2611 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2612 lt_cv_path_NM
="$tmp_nm -p"
2615 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2616 continue # so that we can try to find one that supports BSD flags
2621 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
2626 echo "$as_me:2626: result: $NM" >&5
2627 echo "${ECHO_T}$NM" >&6
2629 echo "$as_me:2629: checking how to recognise dependant libraries" >&5
2630 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2631 if test "${lt_cv_deplibs_check_method+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 lt_cv_file_magic_cmd
='$MAGIC_CMD'
2635 lt_cv_file_magic_test_file
=
2636 lt_cv_deplibs_check_method
='unknown'
2637 # Need to set the preceding variable on all platforms that support
2638 # interlibrary dependencies.
2639 # 'none' -- dependencies not supported.
2640 # `unknown' -- same as none, but documents that we really don't know.
2641 # 'pass_all' -- all dependencies passed with no checks.
2642 # 'test_compile' -- check by making test program.
2643 # ['file_magic [regex]'] -- check by looking for files in library path
2644 # which responds to the $file_magic_cmd with a given egrep regex.
2645 # If you have `file' or equivalent on your system and you're not sure
2646 # whether `pass_all' will *always* work, you probably want this one.
2650 lt_cv_deplibs_check_method
=pass_all
2654 lt_cv_deplibs_check_method
=pass_all
2658 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2659 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2660 lt_cv_file_magic_test_file
=/shlib
/libc.so
2663 cygwin
* | mingw
* | pw32
*)
2664 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
2665 lt_cv_file_magic_cmd
='$OBJDUMP -f'
2668 darwin
* | rhapsody
*)
2669 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
2670 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2672 rhapsody
* | darwin1.012
)
2673 lt_cv_file_magic_test_file
=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2676 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
2682 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2685 # Not sure whether the presence of OpenBSD here was a mistake.
2686 # Let's accept both of them until this is cleared up.
2687 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2688 lt_cv_file_magic_cmd
=/usr
/bin
/file
2689 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2693 lt_cv_deplibs_check_method
=pass_all
2698 lt_cv_deplibs_check_method
=pass_all
2702 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2703 lt_cv_file_magic_cmd
=/usr
/bin
/file
2704 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
2710 # this will be overridden with pass_all, but let us keep it just in case
2711 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2715 *-32|
*"-32 ") libmagic
=32-bit;;
2716 *-n32|
*"-n32 ") libmagic
=N32
;;
2717 *-64|
*"-64 ") libmagic
=64-bit;;
2718 *) libmagic
=never-match
;;
2720 # this will be overridden with pass_all, but let us keep it just in case
2721 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2724 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
2725 lt_cv_deplibs_check_method
=pass_all
2728 # This must be Linux ELF.
2731 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
2732 lt_cv_deplibs_check_method
=pass_all
;;
2734 # glibc up to 2.1.1 does not perform some relocations on ARM
2735 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2737 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2741 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2742 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2744 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
2749 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2750 lt_cv_file_magic_cmd
=/usr
/bin
/file
2751 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
2754 osf3
* | osf4
* | osf5
*)
2755 # this will be overridden with pass_all, but let us keep it just in case
2756 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2757 lt_cv_file_magic_test_file
=/shlib
/libc.so
2758 lt_cv_deplibs_check_method
=pass_all
2762 lt_cv_deplibs_check_method
=pass_all
2766 lt_cv_deplibs_check_method
=pass_all
2767 lt_cv_file_magic_test_file
=/lib
/libc.so
2770 sysv5uw
[78]* | sysv4
*uw2
*)
2771 lt_cv_deplibs_check_method
=pass_all
2774 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2775 case $host_vendor in
2777 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2778 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2781 lt_cv_deplibs_check_method
=pass_all
2784 lt_cv_file_magic_cmd
='/bin/file'
2785 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2788 lt_cv_file_magic_cmd
='/bin/file'
2789 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2790 lt_cv_file_magic_test_file
=/lib
/libc.so
2797 echo "$as_me:2797: result: $lt_cv_deplibs_check_method" >&5
2798 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2799 file_magic_cmd
=$lt_cv_file_magic_cmd
2800 deplibs_check_method
=$lt_cv_deplibs_check_method
2802 # Check for command to grab the raw symbol name followed by C symbol from nm.
2803 echo "$as_me:2803: checking command to parse $NM output" >&5
2804 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2805 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 # These are sane defaults that work on at least a few old systems.
2810 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2812 # Character class describing NM global symbol codes.
2813 symcode
='[BCDEGRST]'
2815 # Regexp to match symbols that can be accessed directly from C.
2816 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
2818 # Transform the above into a raw symbol and a C symbol.
2819 symxfrm
='\1 \2\3 \3'
2821 # Transform an extracted symbol line into a proper C declaration
2822 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2824 # Define system-specific variables.
2829 cygwin
* | mingw
* | pw32
*)
2830 symcode
='[ABCDGISTW]'
2832 hpux
*) # Its linker distinguishes data from code symbols
2833 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2836 symcode
='[BCDEGRST]'
2846 # Handle CRLF in mingw tool chain
2850 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2854 # If we're using GNU nm, then use its standard symbol codes.
2855 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
2856 symcode
='[ABCDGISTW]'
2859 # Try without a prefix undercore, then with it.
2860 for ac_symprfx
in "" "_"; do
2862 # Write the raw and C identifiers.
2863 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2865 # Check to see that the pipe works correctly.
2868 cat > conftest.
$ac_ext <<EOF
2873 void nm_test_func(){}
2877 int main(){nm_test_var='a';nm_test_func();return(0);}
2880 if { (eval echo "$as_me:2880: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>&5
2883 echo "$as_me:2883: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 # Now try to grab the symbols.
2887 if { (eval echo "$as_me:2887: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2888 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
2890 echo "$as_me:2890: \$? = $ac_status" >&5
2891 (exit $ac_status); } && test -s "$nlist"; then
2892 # Try sorting and uniquifying the output.
2893 if sort "$nlist" |
uniq > "$nlist"T
; then
2894 mv -f "$nlist"T
"$nlist"
2899 # Make sure that we snagged all the symbols we need.
2900 if egrep ' nm_test_var$' "$nlist" >/dev
/null
; then
2901 if egrep ' nm_test_func$' "$nlist" >/dev
/null
; then
2902 cat <<EOF > conftest.$ac_ext
2908 # Now generate the symbol file.
2909 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2911 cat <<EOF >> conftest.$ac_ext
2912 #if defined (__STDC__) && __STDC__
2913 # define lt_ptr_t void *
2915 # define lt_ptr_t char *
2919 /* The mapping between symbol names and symbols. */
2924 lt_preloaded_symbols[] =
2927 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.
$ac_ext
2928 cat <<\EOF
>> conftest.
$ac_ext
2936 # Now try linking the two files.
2937 mv conftest.
$ac_objext conftstm.
$ac_objext
2939 save_CFLAGS
="$CFLAGS"
2940 LIBS
="conftstm.$ac_objext"
2941 CFLAGS
="$CFLAGS$no_builtin_flag"
2942 if { (eval echo "$as_me:2942: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>&5
2945 echo "$as_me:2945: \$? = $ac_status" >&5
2946 (exit $ac_status); } && test -s conftest
; then
2950 CFLAGS
="$save_CFLAGS"
2952 echo "cannot find nm_test_func in $nlist" >&5
2955 echo "cannot find nm_test_var in $nlist" >&5
2958 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2961 echo "$progname: failed program was:" >&5
2962 cat conftest.
$ac_ext >&5
2964 rm -f conftest
* conftst
*
2966 # Do not use the global_symbol_pipe unless it works.
2967 if test "$pipe_works" = yes; then
2970 lt_cv_sys_global_symbol_pipe
=
2976 global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe"
2977 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2978 global_symbol_to_cdecl
=
2980 global_symbol_to_cdecl
="$lt_cv_global_symbol_to_cdecl"
2982 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2983 echo "$as_me:2983: result: failed" >&5
2984 echo "${ECHO_T}failed" >&6
2986 echo "$as_me:2986: result: ok" >&5
2987 echo "${ECHO_T}ok" >&6
2990 for ac_header
in dlfcn.h
2992 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2993 echo "$as_me:2993: checking for $ac_header" >&5
2994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 cat >conftest.
$ac_ext <<_ACEOF
2999 #line 2999 "configure"
3000 #include "confdefs.h"
3001 #include <$ac_header>
3003 if { (eval echo "$as_me:3003: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3006 egrep -v '^ *\+' conftest.er1
>conftest.err
3008 cat conftest.err
>&5
3009 echo "$as_me:3009: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev
/null
; then
3011 if test -s conftest.err
; then
3012 ac_cpp_err
=$ac_c_preproc_warn_flag
3019 if test -z "$ac_cpp_err"; then
3020 eval "$as_ac_Header=yes"
3022 echo "$as_me: failed program was:" >&5
3023 cat conftest.
$ac_ext >&5
3024 eval "$as_ac_Header=no"
3026 rm -f conftest.err conftest.
$ac_ext
3028 echo "$as_me:3028: result: `eval echo '${'$as_ac_Header'}'`" >&5
3029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3031 cat >>confdefs.h
<<EOF
3032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3038 # Only perform the check for file, if the check method requires it
3039 case $deplibs_check_method in
3041 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3042 echo "$as_me:3042: checking for ${ac_tool_prefix}file" >&5
3043 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3052 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3055 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3056 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3057 ac_dummy
="/usr/bin:$PATH"
3058 for ac_dir
in $ac_dummy; do
3059 test -z "$ac_dir" && ac_dir
=.
3060 if test -f $ac_dir/${ac_tool_prefix}file; then
3061 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
3062 if test -n "$file_magic_test_file"; then
3063 case $deplibs_check_method in
3065 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3066 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3067 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3068 egrep "$file_magic_regex" > /dev
/null
; then
3073 *** Warning: the command libtool uses to detect shared libraries,
3074 *** $file_magic_cmd, produces output that libtool cannot recognize.
3075 *** The result is that libtool may fail to recognize shared libraries
3076 *** as such. This will affect the creation of libtool libraries that
3077 *** depend on shared libraries, but programs linked with such libtool
3078 *** libraries will work regardless of this problem. Nevertheless, you
3079 *** may want to report the problem to your system manager and/or to
3080 *** bug-libtool@gnu.org
3090 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3095 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3096 if test -n "$MAGIC_CMD"; then
3097 echo "$as_me:3097: result: $MAGIC_CMD" >&5
3098 echo "${ECHO_T}$MAGIC_CMD" >&6
3100 echo "$as_me:3100: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3104 if test -z "$lt_cv_path_MAGIC_CMD"; then
3105 if test -n "$ac_tool_prefix"; then
3106 echo "$as_me:3106: checking for file" >&5
3107 echo $ECHO_N "checking for file... $ECHO_C" >&6
3108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3116 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3119 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3120 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3121 ac_dummy
="/usr/bin:$PATH"
3122 for ac_dir
in $ac_dummy; do
3123 test -z "$ac_dir" && ac_dir
=.
3124 if test -f $ac_dir/file; then
3125 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
3126 if test -n "$file_magic_test_file"; then
3127 case $deplibs_check_method in
3129 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3130 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3131 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3132 egrep "$file_magic_regex" > /dev
/null
; then
3137 *** Warning: the command libtool uses to detect shared libraries,
3138 *** $file_magic_cmd, produces output that libtool cannot recognize.
3139 *** The result is that libtool may fail to recognize shared libraries
3140 *** as such. This will affect the creation of libtool libraries that
3141 *** depend on shared libraries, but programs linked with such libtool
3142 *** libraries will work regardless of this problem. Nevertheless, you
3143 *** may want to report the problem to your system manager and/or to
3144 *** bug-libtool@gnu.org
3154 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3159 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3160 if test -n "$MAGIC_CMD"; then
3161 echo "$as_me:3161: result: $MAGIC_CMD" >&5
3162 echo "${ECHO_T}$MAGIC_CMD" >&6
3164 echo "$as_me:3164: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3179 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3180 echo "$as_me:3180: checking for $ac_word" >&5
3181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3182 if test "${ac_cv_prog_RANLIB+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 if test -n "$RANLIB"; then
3186 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3188 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3190 for ac_dir
in $ac_dummy; do
3192 test -z "$ac_dir" && ac_dir
=.
3193 $as_executable_p "$ac_dir/$ac_word" ||
continue
3194 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3195 echo "$as_me:3195: found $ac_dir/$ac_word" >&5
3201 RANLIB
=$ac_cv_prog_RANLIB
3202 if test -n "$RANLIB"; then
3203 echo "$as_me:3203: result: $RANLIB" >&5
3204 echo "${ECHO_T}$RANLIB" >&6
3206 echo "$as_me:3206: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3211 if test -z "$ac_cv_prog_RANLIB"; then
3212 ac_ct_RANLIB
=$RANLIB
3213 # Extract the first word of "ranlib", so it can be a program name with args.
3214 set dummy ranlib
; ac_word
=$2
3215 echo "$as_me:3215: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 if test -n "$ac_ct_RANLIB"; then
3221 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3223 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3225 for ac_dir
in $ac_dummy; do
3227 test -z "$ac_dir" && ac_dir
=.
3228 $as_executable_p "$ac_dir/$ac_word" ||
continue
3229 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3230 echo "$as_me:3230: found $ac_dir/$ac_word" >&5
3234 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3237 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3238 if test -n "$ac_ct_RANLIB"; then
3239 echo "$as_me:3239: result: $ac_ct_RANLIB" >&5
3240 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3242 echo "$as_me:3242: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3246 RANLIB
=$ac_ct_RANLIB
3248 RANLIB
="$ac_cv_prog_RANLIB"
3251 if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3253 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3254 echo "$as_me:3254: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256 if test "${ac_cv_prog_STRIP+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 if test -n "$STRIP"; then
3260 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3262 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3264 for ac_dir
in $ac_dummy; do
3266 test -z "$ac_dir" && ac_dir
=.
3267 $as_executable_p "$ac_dir/$ac_word" ||
continue
3268 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3269 echo "$as_me:3269: found $ac_dir/$ac_word" >&5
3275 STRIP
=$ac_cv_prog_STRIP
3276 if test -n "$STRIP"; then
3277 echo "$as_me:3277: result: $STRIP" >&5
3278 echo "${ECHO_T}$STRIP" >&6
3280 echo "$as_me:3280: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3285 if test -z "$ac_cv_prog_STRIP"; then
3287 # Extract the first word of "strip", so it can be a program name with args.
3288 set dummy strip
; ac_word
=$2
3289 echo "$as_me:3289: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 if test -n "$ac_ct_STRIP"; then
3295 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3297 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3299 for ac_dir
in $ac_dummy; do
3301 test -z "$ac_dir" && ac_dir
=.
3302 $as_executable_p "$ac_dir/$ac_word" ||
continue
3303 ac_cv_prog_ac_ct_STRIP
="strip"
3304 echo "$as_me:3304: found $ac_dir/$ac_word" >&5
3308 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3311 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3312 if test -n "$ac_ct_STRIP"; then
3313 echo "$as_me:3313: result: $ac_ct_STRIP" >&5
3314 echo "${ECHO_T}$ac_ct_STRIP" >&6
3316 echo "$as_me:3316: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3322 STRIP
="$ac_cv_prog_STRIP"
3328 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3329 if test "${enable_libtool_lock+set}" = set; then
3330 enableval
="$enable_libtool_lock"
3333 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3335 # Some flags need to be propagated to the compiler or linker for good
3339 # Find out which ABI we are using.
3340 echo '#line 3340 "configure"' > conftest.
$ac_ext
3341 if { (eval echo "$as_me:3341: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>&5
3344 echo "$as_me:3344: \$? = $ac_status" >&5
3345 (exit $ac_status); }; then
3346 case `/usr/bin/file conftest.$ac_objext` in
3362 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3363 SAVE_CFLAGS
="$CFLAGS"
3364 CFLAGS
="$CFLAGS -belf"
3365 echo "$as_me:3365: checking whether the C compiler needs -belf" >&5
3366 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3367 if test "${lt_cv_cc_needs_belf+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 ac_cpp
='$CPP $CPPFLAGS'
3373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3377 cat >conftest.
$ac_ext <<_ACEOF
3378 #line 3378 "configure"
3379 #include "confdefs.h"
3389 rm -f conftest.
$ac_objext conftest
$ac_exeext
3390 if { (eval echo "$as_me:3390: \"$ac_link\"") >&5
3391 (eval $ac_link) 2>&5
3393 echo "$as_me:3393: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
3395 { ac_try
='test -s conftest$ac_exeext'
3396 { (eval echo "$as_me:3396: \"$ac_try\"") >&5
3399 echo "$as_me:3399: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 lt_cv_cc_needs_belf
=yes
3403 echo "$as_me: failed program was:" >&5
3404 cat conftest.
$ac_ext >&5
3405 lt_cv_cc_needs_belf
=no
3407 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3409 ac_cpp
='$CPP $CPPFLAGS'
3410 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3415 echo "$as_me:3415: result: $lt_cv_cc_needs_belf" >&5
3416 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3417 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3418 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3419 CFLAGS
="$SAVE_CFLAGS"
3425 # Sed substitution that helps us do robust quoting. It backslashifies
3426 # metacharacters that are still active within double-quoted strings.
3427 Xsed
='sed -e s/^X//'
3428 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
3430 # Same as above, but do not quote variable references.
3431 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
3433 # Sed substitution to delay expansion of an escaped shell variable in a
3434 # double_quote_subst'ed string.
3435 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
3441 default_ofile
=libtool
3442 can_build_shared
=yes
3444 # All known linkers require a `.a' archive for static linking (except M$VC,
3445 # which needs '.lib').
3447 ltmain
="$ac_aux_dir/ltmain.sh"
3448 ofile
="$default_ofile"
3449 with_gnu_ld
="$lt_cv_prog_gnu_ld"
3450 need_locks
="$enable_libtool_lock"
3453 old_CFLAGS
="$CFLAGS"
3455 # Set sane defaults for various variables
3456 test -z "$AR" && AR
=ar
3457 test -z "$AR_FLAGS" && AR_FLAGS
=cru
3458 test -z "$AS" && AS
=as
3459 test -z "$CC" && CC
=cc
3460 test -z "$DLLTOOL" && DLLTOOL
=dlltool
3461 test -z "$LD" && LD
=ld
3462 test -z "$LN_S" && LN_S
="ln -s"
3463 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
3464 test -z "$NM" && NM
=nm
3465 test -z "$OBJDUMP" && OBJDUMP
=objdump
3466 test -z "$RANLIB" && RANLIB
=:
3467 test -z "$STRIP" && STRIP
=:
3468 test -z "$ac_objext" && ac_objext
=o
3470 if test x
"$host" != x
"$build"; then
3471 ac_tool_prefix
=${host_alias}-
3476 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3479 linux
*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3484 # AIX sometimes has problems with the GCC collect2 program. For some
3485 # reason, if we set the COLLECT_NAMES environment variable, the problems
3486 # vanish in a puff of smoke.
3487 if test "X${COLLECT_NAMES+set}" != Xset
; then
3489 export COLLECT_NAMES
3494 # Determine commands to create old-style static archives.
3495 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3496 old_postinstall_cmds
='chmod 644 $oldlib'
3497 old_postuninstall_cmds
=
3499 if test -n "$RANLIB"; then
3500 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
3501 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
3504 # Allow CC to be a program name with arguments.
3508 ## FIXME: this should be a separate macro
3510 echo "$as_me:3510: checking for objdir" >&5
3511 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3512 rm -f .libs
2>/dev
/null
3513 mkdir .libs
2>/dev
/null
3514 if test -d .libs
; then
3517 # MS-DOS does not allow filenames that begin with a dot.
3520 rmdir .libs
2>/dev
/null
3521 echo "$as_me:3521: result: $objdir" >&5
3522 echo "${ECHO_T}$objdir" >&6
3526 ## FIXME: this should be a separate macro
3529 # Check whether --with-pic or --without-pic was given.
3530 if test "${with_pic+set}" = set; then
3536 test -z "$pic_mode" && pic_mode
=default
3538 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3539 # in isolation, and that seeing it set (from the cache) indicates that
3540 # the associated values are set (in the cache) correctly too.
3541 echo "$as_me:3541: checking for $compiler option to produce PIC" >&5
3542 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3543 if test "${lt_cv_prog_cc_pic+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 lt_cv_prog_cc_shlib
=
3549 lt_cv_prog_cc_static
=
3550 lt_cv_prog_cc_no_builtin
=
3551 lt_cv_prog_cc_can_build_shared
=$can_build_shared
3553 if test "$GCC" = yes; then
3554 lt_cv_prog_cc_wl
='-Wl,'
3555 lt_cv_prog_cc_static
='-static'
3559 # Below there is a dirty hack to force normal static linking with -ldl
3560 # The problem is because libdl dynamically linked with both libc and
3561 # libC (AIX C++ library), which obviously doesn't included in libraries
3562 # list by gcc. This cause undefined symbols with -static flags.
3563 # This hack allows C programs to be linked with "-static -ldl", but
3564 # we not sure about C++ programs.
3565 lt_cv_prog_cc_static
="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3568 # FIXME: we need at least 68020 code to build shared libraries, but
3569 # adding the `-m68020' flag to GCC prevents building anything better,
3571 lt_cv_prog_cc_pic
='-m68020 -resident32 -malways-restore-a4'
3573 beos
* | irix5
* | irix6
* | osf3
* | osf4
* | osf5
*)
3574 # PIC is the default for these OSes.
3576 darwin
* | rhapsody
*)
3577 # PIC is the default on this platform
3578 # Common symbols not allowed in MH_DYLIB files
3579 lt_cv_prog_cc_pic
='-fno-common'
3581 cygwin
* | mingw
* | pw32
* | os2
*)
3582 # This hack is so that the source file can tell whether it is being
3583 # built for inclusion in a dll (and should export symbols for example).
3584 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
3587 if test -d /usr
/nec
; then
3588 lt_cv_prog_cc_pic
=-Kconform_pic
3592 lt_cv_prog_cc_pic
='-fPIC'
3596 # PORTME Check for PIC flags for the system compiler.
3598 aix3
* | aix4
* | aix5
*)
3599 # All AIX code is PIC.
3600 if test "$host_cpu" = ia64
; then
3601 # AIX 5 now supports IA64 processor
3602 lt_cv_prog_cc_static
='-Bstatic'
3603 lt_cv_prog_cc_wl
='-Wl,'
3605 lt_cv_prog_cc_static
='-bnso -bI:/lib/syscalls.exp'
3609 hpux9
* | hpux10
* | hpux11
*)
3610 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3611 lt_cv_prog_cc_wl
='-Wl,'
3612 lt_cv_prog_cc_static
="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3613 lt_cv_prog_cc_pic
='+Z'
3617 lt_cv_prog_cc_wl
='-Wl,'
3618 lt_cv_prog_cc_static
='-non_shared'
3619 # PIC (with -KPIC) is the default.
3622 cygwin
* | mingw
* | pw32
* | os2
*)
3623 # This hack is so that the source file can tell whether it is being
3624 # built for inclusion in a dll (and should export symbols for example).
3625 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
3629 lt_cv_prog_cc_pic
='-KPIC'
3630 lt_cv_prog_cc_static
='-Bstatic'
3633 osf3
* | osf4
* | osf5
*)
3634 # All OSF/1 code is PIC.
3635 lt_cv_prog_cc_wl
='-Wl,'
3636 lt_cv_prog_cc_static
='-non_shared'
3640 lt_cv_prog_cc_pic
='-Kpic'
3641 lt_cv_prog_cc_static
='-dn'
3642 lt_cv_prog_cc_shlib
='-belf'
3646 lt_cv_prog_cc_pic
='-KPIC'
3647 lt_cv_prog_cc_static
='-Bstatic'
3648 lt_cv_prog_cc_wl
='-Wl,'
3652 lt_cv_prog_cc_pic
='-PIC'
3653 lt_cv_prog_cc_static
='-Bstatic'
3654 lt_cv_prog_cc_wl
='-Qoption ld '
3657 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3658 lt_cv_prog_cc_pic
='-KPIC'
3659 lt_cv_prog_cc_static
='-Bstatic'
3660 if test "x$host_vendor" = xsni
; then
3661 lt_cv_prog_cc_wl
='-LD'
3663 lt_cv_prog_cc_wl
='-Wl,'
3668 lt_cv_prog_cc_pic
='-pic'
3669 lt_cv_prog_cc_static
='-Bstatic'
3673 if test -d /usr
/nec
;then
3674 lt_cv_prog_cc_pic
='-Kconform_pic'
3675 lt_cv_prog_cc_static
='-Bstatic'
3680 lt_cv_prog_cc_can_build_shared
=no
3687 if test -z "$lt_cv_prog_cc_pic"; then
3688 echo "$as_me:3688: result: none" >&5
3689 echo "${ECHO_T}none" >&6
3691 echo "$as_me:3691: result: $lt_cv_prog_cc_pic" >&5
3692 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3694 # Check to make sure the pic_flag actually works.
3695 echo "$as_me:3695: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3696 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3697 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 save_CFLAGS
="$CFLAGS"
3701 CFLAGS
="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3702 cat >conftest.
$ac_ext <<_ACEOF
3703 #line 3703 "configure"
3704 #include "confdefs.h"
3714 rm -f conftest.
$ac_objext
3715 if { (eval echo "$as_me:3715: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>&5
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try
='test -s conftest.$ac_objext'
3721 { (eval echo "$as_me:3721: \"$ac_try\"") >&5
3724 echo "$as_me:3724: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3727 hpux9
* | hpux10
* | hpux11
*)
3728 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3729 # they create non-PIC objects. So, if there were any warnings, we
3730 # assume that PIC is not supported.
3731 if test -s conftest.err
; then
3732 lt_cv_prog_cc_pic_works
=no
3734 lt_cv_prog_cc_pic_works
=yes
3738 lt_cv_prog_cc_pic_works
=yes
3743 echo "$as_me: failed program was:" >&5
3744 cat conftest.
$ac_ext >&5
3745 lt_cv_prog_cc_pic_works
=no
3748 rm -f conftest.
$ac_objext conftest.
$ac_ext
3749 CFLAGS
="$save_CFLAGS"
3753 if test "X$lt_cv_prog_cc_pic_works" = Xno
; then
3755 lt_cv_prog_cc_can_build_shared
=no
3757 lt_cv_prog_cc_pic
=" $lt_cv_prog_cc_pic"
3760 echo "$as_me:3760: result: $lt_cv_prog_cc_pic_works" >&5
3761 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3766 # Check for any special shared library compilation flags.
3767 if test -n "$lt_cv_prog_cc_shlib"; then
3768 { echo "$as_me:3768: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3769 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3770 if echo "$old_CC $old_CFLAGS " |
egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev
/null
; then :
3772 { echo "$as_me:3772: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3773 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3774 lt_cv_prog_cc_can_build_shared
=no
3778 ## FIXME: this should be a separate macro
3780 echo "$as_me:3780: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3781 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3782 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 lt_cv_prog_cc_static_works
=no
3786 save_LDFLAGS
="$LDFLAGS"
3787 LDFLAGS
="$LDFLAGS $lt_cv_prog_cc_static"
3788 cat >conftest.
$ac_ext <<_ACEOF
3789 #line 3789 "configure"
3790 #include "confdefs.h"
3800 rm -f conftest.
$ac_objext conftest
$ac_exeext
3801 if { (eval echo "$as_me:3801: \"$ac_link\"") >&5
3802 (eval $ac_link) 2>&5
3804 echo "$as_me:3804: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try
='test -s conftest$ac_exeext'
3807 { (eval echo "$as_me:3807: \"$ac_try\"") >&5
3810 echo "$as_me:3810: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 lt_cv_prog_cc_static_works
=yes
3814 echo "$as_me: failed program was:" >&5
3815 cat conftest.
$ac_ext >&5
3817 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3818 LDFLAGS
="$save_LDFLAGS"
3822 # Belt *and* braces to stop my trousers falling down:
3823 test "X$lt_cv_prog_cc_static_works" = Xno
&& lt_cv_prog_cc_static
=
3824 echo "$as_me:3824: result: $lt_cv_prog_cc_static_works" >&5
3825 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3827 pic_flag
="$lt_cv_prog_cc_pic"
3828 special_shlib_compile_flags
="$lt_cv_prog_cc_shlib"
3829 wl
="$lt_cv_prog_cc_wl"
3830 link_static_flag
="$lt_cv_prog_cc_static"
3831 no_builtin_flag
="$lt_cv_prog_cc_no_builtin"
3832 can_build_shared
="$lt_cv_prog_cc_can_build_shared"
3836 ## FIXME: this should be a separate macro
3838 # Check to see if options -o and -c are simultaneously supported by compiler
3839 echo "$as_me:3839: checking if $compiler supports -c -o file.$ac_objext" >&5
3840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
3841 if test "${lt_cv_compiler_c_o+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 $rm -r conftest
2>/dev
/null
3848 echo "int some_variable = 0;" > conftest.
$ac_ext
3850 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3851 # that will create temporary files in the current directory regardless of
3852 # the output directory. Thus, making CWD read-only will cause this test
3853 # to fail, enabling locking or at least warning the user not to do parallel
3856 save_CFLAGS
="$CFLAGS"
3857 CFLAGS
="$CFLAGS -o out/conftest2.$ac_objext"
3859 if { (eval echo configure
:3859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out
/conftest.err
; } && test -s out
/conftest2.
$ac_objext; then
3860 # The compiler can only warn and ignore the option if not recognized
3861 # So say no if there are warnings
3862 if test -s out
/conftest.err
; then
3863 lt_cv_compiler_c_o
=no
3865 lt_cv_compiler_c_o
=yes
3868 # Append any errors to the config.log.
3869 cat out
/conftest.err
1>&5
3870 lt_cv_compiler_c_o
=no
3872 CFLAGS
="$save_CFLAGS"
3878 $rm -r conftest
2>/dev
/null
3882 compiler_c_o
=$lt_cv_compiler_c_o
3883 echo "$as_me:3883: result: $compiler_c_o" >&5
3884 echo "${ECHO_T}$compiler_c_o" >&6
3886 if test x
"$compiler_c_o" = x
"yes"; then
3887 # Check to see if we can write to a .lo
3888 echo "$as_me:3888: checking if $compiler supports -c -o file.lo" >&5
3889 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
3890 if test "${lt_cv_compiler_o_lo+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 lt_cv_compiler_o_lo
=no
3895 save_CFLAGS
="$CFLAGS"
3896 CFLAGS
="$CFLAGS -c -o conftest.lo"
3897 cat >conftest.
$ac_ext <<_ACEOF
3898 #line 3898 "configure"
3899 #include "confdefs.h"
3904 int some_variable = 0;
3909 rm -f conftest.
$ac_objext
3910 if { (eval echo "$as_me:3910: \"$ac_compile\"") >&5
3911 (eval $ac_compile) 2>&5
3913 echo "$as_me:3913: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try
='test -s conftest.$ac_objext'
3916 { (eval echo "$as_me:3916: \"$ac_try\"") >&5
3919 echo "$as_me:3919: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 # The compiler can only warn and ignore the option if not recognized
3922 # So say no if there are warnings
3923 if test -s conftest.err
; then
3924 lt_cv_compiler_o_lo
=no
3926 lt_cv_compiler_o_lo
=yes
3930 echo "$as_me: failed program was:" >&5
3931 cat conftest.
$ac_ext >&5
3933 rm -f conftest.
$ac_objext conftest.
$ac_ext
3934 CFLAGS
="$save_CFLAGS"
3938 compiler_o_lo
=$lt_cv_compiler_o_lo
3939 echo "$as_me:3939: result: $compiler_c_lo" >&5
3940 echo "${ECHO_T}$compiler_c_lo" >&6
3947 ## FIXME: this should be a separate macro
3949 # Check to see if we can do hard links to lock some files if needed
3950 hard_links
="nottested"
3951 if test "$compiler_c_o" = no
&& test "$need_locks" != no
; then
3952 # do not overwrite the value of need_locks provided by the user
3953 echo "$as_me:3953: checking if we can lock with hard links" >&5
3954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3957 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
3959 ln conftest.a conftest.b
2>&5 || hard_links
=no
3960 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
3961 echo "$as_me:3961: result: $hard_links" >&5
3962 echo "${ECHO_T}$hard_links" >&6
3963 if test "$hard_links" = no
; then
3964 { echo "$as_me:3964: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
3965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3974 ## FIXME: this should be a separate macro
3976 if test "$GCC" = yes; then
3977 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3978 echo "$as_me:3978: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3979 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3980 echo "int some_variable = 0;" > conftest.
$ac_ext
3981 save_CFLAGS
="$CFLAGS"
3982 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3983 compiler_rtti_exceptions
=no
3984 cat >conftest.
$ac_ext <<_ACEOF
3985 #line 3985 "configure"
3986 #include "confdefs.h"
3991 int some_variable = 0;
3996 rm -f conftest.
$ac_objext
3997 if { (eval echo "$as_me:3997: \"$ac_compile\"") >&5
3998 (eval $ac_compile) 2>&5
4000 echo "$as_me:4000: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try
='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:4003: \"$ac_try\"") >&5
4006 echo "$as_me:4006: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 # The compiler can only warn and ignore the option if not recognized
4009 # So say no if there are warnings
4010 if test -s conftest.err
; then
4011 compiler_rtti_exceptions
=no
4013 compiler_rtti_exceptions
=yes
4017 echo "$as_me: failed program was:" >&5
4018 cat conftest.
$ac_ext >&5
4020 rm -f conftest.
$ac_objext conftest.
$ac_ext
4021 CFLAGS
="$save_CFLAGS"
4022 echo "$as_me:4022: result: $compiler_rtti_exceptions" >&5
4023 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4025 if test "$compiler_rtti_exceptions" = "yes"; then
4026 no_builtin_flag
=' -fno-builtin -fno-rtti -fno-exceptions'
4028 no_builtin_flag
=' -fno-builtin'
4034 ## FIXME: this should be a separate macro
4036 # See if the linker supports building shared libraries.
4037 echo "$as_me:4037: checking whether the linker ($LD) supports shared libraries" >&5
4038 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4040 allow_undefined_flag
=
4042 need_lib_prefix
=unknown
4043 need_version
=unknown
4044 # when you set need_version to no, make sure it does not cause -set_version
4045 # flags to be left without arguments
4047 archive_expsym_cmds
=
4048 old_archive_from_new_cmds
=
4049 old_archive_from_expsyms_cmds
=
4050 export_dynamic_flag_spec
=
4051 whole_archive_flag_spec
=
4052 thread_safe_flag_spec
=
4053 hardcode_into_libs
=no
4054 hardcode_libdir_flag_spec
=
4055 hardcode_libdir_separator
=
4058 hardcode_shlibpath_var
=unsupported
4060 link_all_deplibs
=unknown
4061 always_export_symbols
=no
4062 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4063 # include_expsyms should be a list of space-separated symbols to be *always*
4064 # included in the symbol list
4066 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4067 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4068 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4069 # as well as any symbol that contains `d'.
4070 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
4071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4072 # platforms (ab)use it in PIC code, but their linkers get confused if
4073 # the symbol is explicitly referenced. Since portable code cannot
4074 # rely on this symbol name, it's probably fine to never include it in
4075 # preloaded symbol tables.
4076 extract_expsyms_cmds
=
4079 cygwin
* | mingw
* | pw32
* )
4080 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4081 # When not using gcc, we currently assume that we are using
4082 # Microsoft Visual C++.
4083 if test "$GCC" != yes; then
4091 if test "$with_gnu_ld" = yes; then
4092 # If archive_cmds runs LD, not CC, wlarc should be empty
4095 # See if GNU ld supports shared libraries.
4097 aix3
* | aix4
* | aix5
*)
4098 # On AIX, the GNU linker is very broken
4099 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4103 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4104 *** to be unable to reliably create shared libraries on AIX.
4105 *** Therefore, libtool is disabling shared libraries support. If you
4106 *** really care for shared libraries, you may want to modify your PATH
4107 *** so that a non-GNU linker is found, and then restart.
4113 archive_cmds
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4114 hardcode_libdir_flag_spec
='-L$libdir'
4115 hardcode_minus_L
=yes
4117 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4118 # that the semantics of dynamic libraries on AmigaOS, at least up
4119 # to version 4, is to share data among multiple programs linked
4120 # with the same dynamic library. Since this doesn't match the
4121 # behavior of shared libraries on other platforms, we can use
4127 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4128 allow_undefined_flag
=unsupported
4129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4130 # support --undefined. This deserves some investigation. FIXME
4131 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4137 cygwin
* | mingw
* | pw32
*)
4138 # hardcode_libdir_flag_spec is actually meaningless, as there is
4139 # no search path for DLLs.
4140 hardcode_libdir_flag_spec
='-L$libdir'
4141 allow_undefined_flag
=unsupported
4142 always_export_symbols
=yes
4144 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
4145 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4146 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4147 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4148 else $CC -o impgen impgen.c ; fi)~
4149 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4151 old_archive_from_expsyms_cmds
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4153 # cygwin and mingw dlls have different entry points and sets of symbols
4155 # FIXME: what about values for MSVC?
4156 dll_entry
=__cygwin_dll_entry@
12
4157 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12~
4161 dll_entry
=_DllMainCRTStartup@
12
4162 dll_exclude_symbols
=DllMain@
12,DllMainCRTStartup@
12,DllEntryPoint@
12~
4166 # mingw and cygwin differ, and it's simplest to just exclude the union
4167 # of the two symbol sets.
4168 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
4170 # recent cygwin and mingw systems supply a stub DllMain which the user
4171 # can override, but on older systems we have to supply one (in ltdll.c)
4172 if test "x$lt_cv_need_dllmain" = "xyes"; then
4173 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
4174 ltdll_cmds
='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4175 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4181 # Extract the symbol export list from an `--export-all' def file,
4182 # then regenerate the def file from the symbol export list, so that
4183 # the compiled dll only exports the symbol export list.
4184 # Be careful not to strip the DATA tag left be newer dlltools.
4185 export_symbols_cmds
="$ltdll_cmds"'
4186 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4187 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4189 # If the export-symbols file already is a .def file (1st line
4190 # is EXPORTS), use it as is.
4191 # If DATA tags from a recent dlltool are present, honour them!
4192 archive_expsym_cmds
='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4193 cp $export_symbols $output_objdir/$soname-def;
4195 echo EXPORTS > $output_objdir/$soname-def;
4197 cat $export_symbols | while read symbol; do
4200 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4201 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4203 _lt_hint=`expr 1 + \$_lt_hint`;
4207 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4208 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4209 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4210 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4211 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4215 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4216 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4219 archive_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4220 archive_expsym_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4225 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
4229 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4230 *** create shared libraries on Solaris systems. Therefore, libtool
4231 *** is disabling shared libraries support. We urge you to upgrade GNU
4232 *** binutils to release 2.9.1 or newer. Another option is to modify
4233 *** your PATH or compiler configuration so that the native linker is
4234 *** used, and then restart.
4237 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4238 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4239 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4246 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4249 hardcode_shlibpath_var
=no
4253 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4254 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4255 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4262 if test "$ld_shlibs" = yes; then
4263 runpath_var
=LD_RUN_PATH
4264 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
4265 export_dynamic_flag_spec
='${wl}--export-dynamic'
4267 cygwin
* | mingw
* | pw32
*)
4268 # dlltool doesn't understand --whole-archive et. al.
4269 whole_archive_flag_spec
=
4272 # ancient GNU ld didn't support --whole-archive et. al.
4273 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
4274 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4276 whole_archive_flag_spec
=
4282 # PORTME fill in a description of your system's linker (not GNU ld)
4285 allow_undefined_flag
=unsupported
4286 always_export_symbols
=yes
4287 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4288 # Note: this linker hardcodes the directories in LIBPATH if there
4289 # are no directories specified by -L.
4290 hardcode_minus_L
=yes
4291 if test "$GCC" = yes && test -z "$link_static_flag"; then
4292 # Neither direct hardcoding nor static linking is supported with a
4294 hardcode_direct
=unsupported
4299 # When large executables or shared objects are built, AIX ld can
4300 # have problems creating the table of contents. If linking a library
4301 # or program results in "error TOC overflow" add -mminimal-toc to
4302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4306 hardcode_libdir_separator
=':'
4307 if test "$GCC" = yes; then
4308 collect2name
=`${CC} -print-prog-name=collect2`
4309 if test -f "$collect2name" && \
4310 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
4312 # We have reworked collect2
4315 # We have old collect2
4316 hardcode_direct
=unsupported
4317 # It fails to find uninstalled libraries when the uninstalled
4318 # path is not listed in the libpath. Setting hardcode_minus_L
4319 # to unsupported forces relinking
4320 hardcode_minus_L
=yes
4321 hardcode_libdir_flag_spec
='-L$libdir'
4322 hardcode_libdir_separator
=
4324 shared_flag
='-shared'
4326 if test "$host_cpu" = ia64
; then
4329 shared_flag
='${wl}-bM:SRE'
4334 if test "$host_cpu" = ia64
; then
4335 # On IA64, the linker does run time linking by default, so we don't
4336 # have to do anything special.
4337 aix_use_runtimelinking
=no
4338 exp_sym_flag
='-Bexport'
4341 # Test if we are trying to use run time linking, or normal AIX style linking.
4342 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4343 aix_use_runtimelinking
=no
4344 for ld_flag
in $LDFLAGS; do
4345 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl" ); then
4346 aix_use_runtimelinking
=yes
4350 exp_sym_flag
='-bexport'
4351 no_entry_flag
='-bnoentry'
4353 # It seems that -bexpall can do strange things, so it is better to
4354 # generate a list of symbols to export.
4355 always_export_symbols
=yes
4356 if test "$aix_use_runtimelinking" = yes; then
4357 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:/usr/lib:/lib'
4358 allow_undefined_flag
=' -Wl,-G'
4359 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4361 if test "$host_cpu" = ia64; then
4362 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
4363 allow_undefined_flag="-znodefs"
4364 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
4366 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4367 # Warning - without using the other run time loading flags, -berok will
4368 # link without error, but may produce a broken library.
4369 allow_undefined_flag='${wl}-berok"
4370 # This is a bit strange, but is similar to how AIX traditionally builds
4371 # it's shared libraries.
4372 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~
$AR -crlo $objdir/$libname$release.a
$objdir/$soname'
4378 archive_cmds='$rm $output_objdir/a2ixlibrary.data~
$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~
$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~
$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~
$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~
$AR $AR_FLAGS $lib $libobjs~
$RANLIB $lib~
(cd $output_objdir && a2ixlibrary
-32)'
4379 hardcode_libdir_flag_spec='-L$libdir'
4380 hardcode_minus_L=yes
4381 # see comment about different semantics on the GNU ld section
4385 cygwin* | mingw* | pw32*)
4386 # When not using gcc, we currently assume that we are using
4387 # Microsoft Visual C++.
4388 # hardcode_libdir_flag_spec is actually meaningless, as there is
4389 # no search path for DLLs.
4390 hardcode_libdir_flag_spec=' '
4391 allow_undefined_flag=unsupported
4392 # Tell ltmain to make .lib files, not .a files.
4394 # FIXME: Setting linknames here is a bad hack.
4395 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames
='
4396 # The linker will automatically build a .lib file if we build a DLL.
4397 old_archive_from_new_cmds='true
'
4398 # FIXME: Should let the user specify the lib program.
4399 old_archive_cmds='lib
/OUT
:$oldlib$oldobjs$old_deplibs'
4400 fix_srcfile_path='`cygpath -w "$srcfile"`'
4403 darwin* | rhapsody*)
4404 allow_undefined_flag='-undefined suppress
'
4405 # FIXME: Relying on posixy $() will cause problems for
4406 # cross-compilation, but unfortunately the echo tests do not
4407 # yet detect zsh echo's removal of \ escapes.
4408 archive_cmds
='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4409 # We need to add '_' to the symbols in $export_symbols first
4410 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4412 hardcode_shlibpath_var
=no
4413 whole_archive_flag_spec
='-all_load $convenience'
4420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4421 # support. Future versions do this automatically, but an explicit c++rt0.o
4422 # does not break anything, and helps significantly (at the cost of a little
4425 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4426 hardcode_libdir_flag_spec
='-R$libdir'
4428 hardcode_shlibpath_var
=no
4431 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4433 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4435 hardcode_minus_L
=yes
4436 hardcode_shlibpath_var
=no
4439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4441 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4442 hardcode_libdir_flag_spec
='-R$libdir'
4444 hardcode_shlibpath_var
=no
4447 hpux9
* | hpux10
* | hpux11
*)
4449 hpux9
*) archive_cmds
='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4450 *) archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4452 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
4453 hardcode_libdir_separator
=:
4455 hardcode_minus_L
=yes # Not in the search PATH, but as the default
4456 # location of the library.
4457 export_dynamic_flag_spec
='${wl}-E'
4461 if test "$GCC" = yes; then
4462 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4464 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4466 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4467 hardcode_libdir_separator
=:
4468 link_all_deplibs
=yes
4472 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4473 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4475 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4477 hardcode_libdir_flag_spec
='-R$libdir'
4479 hardcode_shlibpath_var
=no
4483 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4485 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4486 hardcode_libdir_separator
=:
4487 hardcode_shlibpath_var
=no
4491 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4492 hardcode_libdir_flag_spec
='-R$libdir'
4494 hardcode_shlibpath_var
=no
4498 hardcode_libdir_flag_spec
='-L$libdir'
4499 hardcode_minus_L
=yes
4500 allow_undefined_flag
=unsupported
4501 archive_cmds
='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4502 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4506 if test "$GCC" = yes; then
4507 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
4508 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4510 allow_undefined_flag
=' -expect_unresolved \*'
4511 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4513 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4514 hardcode_libdir_separator
=:
4517 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
4518 if test "$GCC" = yes; then
4519 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
4520 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4521 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4523 allow_undefined_flag
=' -expect_unresolved \*'
4524 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4525 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4526 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4528 #Both c and cxx compiler support -rpath directly
4529 hardcode_libdir_flag_spec
='-rpath $libdir'
4531 hardcode_libdir_separator
=:
4535 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4536 hardcode_shlibpath_var
=no
4537 runpath_var
=LD_RUN_PATH
4538 hardcode_runpath_var
=yes
4542 no_undefined_flag
=' -z defs'
4543 # $CC -shared without GNU ld will not create a library from C++
4544 # object files and a static libstdc++, better avoid it by now
4545 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4546 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4547 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4548 hardcode_libdir_flag_spec
='-R$libdir'
4549 hardcode_shlibpath_var
=no
4551 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
4552 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4553 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
4555 link_all_deplibs
=yes
4559 if test "x$host_vendor" = xsequent
; then
4560 # Use $CC to link under sequent, because it throws in some extra .o
4561 # files that make .init and .fini sections work.
4562 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4564 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4566 hardcode_libdir_flag_spec
='-L$libdir'
4568 hardcode_minus_L
=yes
4569 hardcode_shlibpath_var
=no
4573 if test "x$host_vendor" = xsno
; then
4574 archive_cmds
='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4575 hardcode_direct
=yes # is this really true???
4577 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4578 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
4580 runpath_var
='LD_RUN_PATH'
4581 hardcode_shlibpath_var
=no
4585 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4586 hardcode_shlibpath_var
=no
4587 export_dynamic_flag_spec
='-Bexport'
4591 no_undefined_flag
=' -z text'
4592 # $CC -shared without GNU ld will not create a library from C++
4593 # object files and a static libstdc++, better avoid it by now
4594 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4595 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4597 hardcode_libdir_flag_spec
=
4598 hardcode_shlibpath_var
=no
4599 runpath_var
='LD_RUN_PATH'
4603 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4604 hardcode_libdir_flag_spec
='-L$libdir'
4605 hardcode_shlibpath_var
=no
4609 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4610 hardcode_libdir_flag_spec
='-L$libdir'
4611 hardcode_shlibpath_var
=no
4615 if test -d /usr
/nec
; then
4616 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4617 hardcode_shlibpath_var
=no
4618 runpath_var
=LD_RUN_PATH
4619 hardcode_runpath_var
=yes
4625 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4628 hardcode_shlibpath_var
=no
4629 hardcode_runpath_var
=yes
4630 runpath_var
=LD_RUN_PATH
4633 sysv5uw7
* | unixware7
*)
4634 no_undefined_flag
='${wl}-z ${wl}text'
4635 if test "$GCC" = yes; then
4636 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4638 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4640 runpath_var
='LD_RUN_PATH'
4641 hardcode_shlibpath_var
=no
4649 echo "$as_me:4649: result: $ld_shlibs" >&5
4650 echo "${ECHO_T}$ld_shlibs" >&6
4651 test "$ld_shlibs" = no
&& can_build_shared
=no
4655 ## FIXME: this should be a separate macro
4657 # Check hardcoding attributes.
4658 echo "$as_me:4658: checking how to hardcode library paths into programs" >&5
4659 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4661 if test -n "$hardcode_libdir_flag_spec" || \
4662 test -n "$runpath_var"; then
4664 # We can hardcode non-existant directories.
4665 if test "$hardcode_direct" != no
&&
4666 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4667 # have to relink, otherwise we might link with an installed library
4668 # when we should be linking with a yet-to-be-installed one
4669 ## test "$hardcode_shlibpath_var" != no &&
4670 test "$hardcode_minus_L" != no
; then
4671 # Linking always hardcodes the temporary library directory.
4672 hardcode_action
=relink
4674 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4675 hardcode_action
=immediate
4678 # We cannot hardcode anything, or else we can only hardcode existing
4680 hardcode_action
=unsupported
4682 echo "$as_me:4682: result: $hardcode_action" >&5
4683 echo "${ECHO_T}$hardcode_action" >&6
4687 ## FIXME: this should be a separate macro
4691 echo "$as_me:4691: checking whether stripping libraries is possible" >&5
4692 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4693 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
4694 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
4695 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
4696 echo "$as_me:4696: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6
4699 echo "$as_me:4699: result: no" >&5
4700 echo "${ECHO_T}no" >&6
4705 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4706 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4708 ## FIXME: this should be a separate macro
4710 # PORTME Fill in your ld.so characteristics
4711 echo "$as_me:4711: checking dynamic linker characteristics" >&5
4712 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4714 libname_spec
='lib$name'
4721 shlibpath_overrides_runpath
=unknown
4723 dynamic_linker
="$host_os ld.so"
4724 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
4725 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
4730 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
4731 shlibpath_var
=LIBPATH
4733 # AIX has no versioning support, so we append a major version to the name.
4734 soname_spec
='${libname}${release}.so$major'
4739 if test "$host_cpu" = ia64
; then
4740 # AIX 5 supports IA64
4741 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4742 shlibpath_var
=LD_LIBRARY_PATH
4744 # With GCC up to 2.95.x, collect2 would create an import file
4745 # for dependence libraries. The import file would start with
4746 # the line `#! .'. This would cause the generated library to
4747 # depend on `.', always an invalid library. This was fixed in
4748 # development snapshots of GCC prior to 3.0.
4750 aix4 | aix4.
[01] | aix4.
[01].
*)
4751 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4753 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
4760 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4761 # soname into executable. Probably we can add versioning support to
4762 # collect2, so additional links can be useful in future.
4763 if test "$aix_use_runtimelinking" = yes; then
4764 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
4765 # lib<name>.a to let people know that these are not typical AIX shared libraries.
4766 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4768 # We preserve .a as extension for shared libraries through AIX4.2
4769 # and later when we are not doing run time linking.
4770 library_names_spec
='${libname}${release}.a $libname.a'
4771 soname_spec
='${libname}${release}.so$major'
4773 shlibpath_var
=LIBPATH
4774 deplibs_check_method
=pass_all
4779 library_names_spec
='$libname.ixlibrary $libname.a'
4780 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4781 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4785 library_names_spec
='${libname}.so'
4786 dynamic_linker
="$host_os ld.so"
4787 shlibpath_var
=LIBRARY_PATH
4793 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4794 soname_spec
='${libname}${release}.so$major'
4795 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
4796 shlibpath_var
=LD_LIBRARY_PATH
4797 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4798 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
4799 export_dynamic_flag_spec
=-rdynamic
4800 # the default ld.so.conf also contains /usr/contrib/lib and
4801 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4802 # libtool to hard-code these into programs
4805 cygwin
* | mingw
* | pw32
*)
4806 version_type
=windows
4809 case $GCC,$host_os in
4811 library_names_spec
='$libname.dll.a'
4812 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4813 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4814 dldir=$destdir/`dirname \$dlpath`~
4815 test -d \$dldir || mkdir -p \$dldir~
4816 $install_prog .libs/$dlname \$dldir/$dlname'
4817 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4818 dlpath=$dir/\$dldll~
4822 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4823 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4826 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4829 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4832 dynamic_linker
='Win32 ld.exe'
4833 # FIXME: first we should search . and the directory the executable is in
4837 darwin
* | rhapsody
*)
4838 dynamic_linker
="$host_os dyld"
4842 # FIXME: Relying on posixy $() will cause problems for
4843 # cross-compilation, but unfortunately the echo tests do not
4844 # yet detect zsh echo's removal of \ escapes.
4845 library_names_spec
='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4846 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4847 shlibpath_overrides_runpath
=yes
4848 shlibpath_var
=DYLD_LIBRARY_PATH
4856 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4857 version_type
=freebsd-
$objformat
4858 case $version_type in
4860 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4865 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
4869 shlibpath_var
=LD_LIBRARY_PATH
4872 shlibpath_overrides_runpath
=yes
4875 shlibpath_overrides_runpath
=no
4876 hardcode_into_libs
=yes
4885 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4886 soname_spec
='${libname}${release}.so$major'
4887 shlibpath_var
=LD_LIBRARY_PATH
4888 hardcode_into_libs
=yes
4891 hpux9
* | hpux10
* | hpux11
*)
4892 # Give a soname corresponding to the major version so that dld.sl refuses to
4893 # link against other versions.
4894 dynamic_linker
="$host_os dld.sl"
4898 shlibpath_var
=SHLIB_PATH
4899 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
4900 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4901 soname_spec
='${libname}${release}.sl$major'
4902 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4903 postinstall_cmds
='chmod 555 $lib'
4910 soname_spec
='${libname}${release}.so$major'
4911 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4917 case $LD in # libtool.m4 will add one of these switches to LD
4918 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
4919 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
4920 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
4921 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
4925 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
4926 shlibpath_overrides_runpath
=no
4927 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4928 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
4931 # No shared lib support for Linux oldld, aout, or coff.
4932 linux-gnuoldld
* | linux-gnuaout
* | linux-gnucoff
*)
4936 # This must be Linux ELF.
4941 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4942 soname_spec
='${libname}${release}.so$major'
4943 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4944 shlibpath_var
=LD_LIBRARY_PATH
4945 shlibpath_overrides_runpath
=no
4946 # This implies no fast_install, which is unacceptable.
4947 # Some rework will be needed to allow for fast_install
4948 # before this can be enabled.
4949 hardcode_into_libs
=yes
4951 # We used to test for /lib/ld.so.1 and disable shared libraries on
4952 # powerpc, because MkLinux only supported shared libraries with the
4953 # GNU dynamic linker. Since this was broken with cross compilers,
4954 # most powerpc-linux boxes support dynamic linking these days and
4955 # people can always --disable-shared, the test was removed, and we
4956 # assume the GNU/Linux dynamic linker is in use.
4957 dynamic_linker
='GNU/Linux ld.so'
4964 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4965 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4966 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4967 dynamic_linker
='NetBSD (a.out) ld.so'
4969 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4970 soname_spec
='${libname}${release}.so$major'
4971 dynamic_linker
='NetBSD ld.elf_so'
4973 shlibpath_var
=LD_LIBRARY_PATH
4974 shlibpath_overrides_runpath
=yes
4975 hardcode_into_libs
=yes
4980 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4981 shlibpath_var
=LD_LIBRARY_PATH
4982 shlibpath_overrides_runpath
=yes
4987 if test "$with_gnu_ld" = yes; then
4991 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4992 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4993 shlibpath_var
=LD_LIBRARY_PATH
4997 libname_spec
='$name'
4999 library_names_spec
='$libname.dll $libname.a'
5000 dynamic_linker
='OS/2 ld.exe'
5001 shlibpath_var
=LIBPATH
5004 osf3
* | osf4
* | osf5
*)
5007 soname_spec
='${libname}${release}.so'
5008 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5009 shlibpath_var
=LD_LIBRARY_PATH
5010 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5011 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
5016 soname_spec
='${libname}${release}.so$major'
5017 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5018 shlibpath_var
=LD_LIBRARY_PATH
5025 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5026 soname_spec
='${libname}${release}.so$major'
5027 shlibpath_var
=LD_LIBRARY_PATH
5028 shlibpath_overrides_runpath
=yes
5029 hardcode_into_libs
=yes
5030 # ldd complains unless libraries are executable
5031 postinstall_cmds
='chmod +x $lib'
5036 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5037 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5038 shlibpath_var
=LD_LIBRARY_PATH
5039 shlibpath_overrides_runpath
=yes
5040 if test "$with_gnu_ld" = yes; then
5046 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
5048 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5049 soname_spec
='${libname}${release}.so$major'
5050 shlibpath_var
=LD_LIBRARY_PATH
5051 case $host_vendor in
5053 shlibpath_overrides_runpath
=no
5058 shlibpath_overrides_runpath
=no
5059 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
5066 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5067 soname_spec
='${libname}${release}.so$major'
5068 shlibpath_var
=LD_LIBRARY_PATH
5075 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5076 soname_spec
='${libname}${release}.so$major'
5077 shlibpath_var
=LD_LIBRARY_PATH
5081 if test -d /usr
/nec
;then
5083 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
5084 soname_spec
='$libname.so.$major'
5085 shlibpath_var
=LD_LIBRARY_PATH
5093 echo "$as_me:5093: result: $dynamic_linker" >&5
5094 echo "${ECHO_T}$dynamic_linker" >&6
5095 test "$dynamic_linker" = no
&& can_build_shared
=no
5099 ## FIXME: this should be a separate macro
5101 # Report the final consequences.
5102 echo "$as_me:5102: checking if libtool supports shared libraries" >&5
5103 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5104 echo "$as_me:5104: result: $can_build_shared" >&5
5105 echo "${ECHO_T}$can_build_shared" >&6
5109 if test "$hardcode_action" = relink
; then
5110 # Fast installation is not supported
5111 enable_fast_install
=no
5112 elif test "$shlibpath_overrides_runpath" = yes ||
5113 test "$enable_shared" = no
; then
5114 # Fast installation is not necessary
5115 enable_fast_install
=needless
5118 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
5119 if test "$GCC" = yes; then
5120 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5123 if test "x$enable_dlopen" != xyes
; then
5124 enable_dlopen
=unknown
5125 enable_dlopen_self
=unknown
5126 enable_dlopen_self_static
=unknown
5133 lt_cv_dlopen
="load_add_on"
5135 lt_cv_dlopen_self
=yes
5138 cygwin
* | mingw
* | pw32
*)
5139 lt_cv_dlopen
="LoadLibrary"
5144 echo "$as_me:5144: checking for dlopen in -ldl" >&5
5145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 ac_check_lib_save_LIBS
=$LIBS
5151 cat >conftest.
$ac_ext <<_ACEOF
5152 #line 5152 "configure"
5153 #include "confdefs.h"
5155 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5170 rm -f conftest.
$ac_objext conftest
$ac_exeext
5171 if { (eval echo "$as_me:5171: \"$ac_link\"") >&5
5172 (eval $ac_link) 2>&5
5174 echo "$as_me:5174: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try
='test -s conftest$ac_exeext'
5177 { (eval echo "$as_me:5177: \"$ac_try\"") >&5
5180 echo "$as_me:5180: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_lib_dl_dlopen
=yes
5184 echo "$as_me: failed program was:" >&5
5185 cat conftest.
$ac_ext >&5
5186 ac_cv_lib_dl_dlopen
=no
5188 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5189 LIBS
=$ac_check_lib_save_LIBS
5191 echo "$as_me:5191: result: $ac_cv_lib_dl_dlopen" >&5
5192 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5193 if test $ac_cv_lib_dl_dlopen = yes; then
5194 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
5196 echo "$as_me:5196: checking for dlopen" >&5
5197 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5198 if test "${ac_cv_func_dlopen+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 cat >conftest.
$ac_ext <<_ACEOF
5202 #line 5202 "configure"
5203 #include "confdefs.h"
5204 /* System header to define __stub macros and hopefully few prototypes,
5205 which can conflict with char dlopen (); below. */
5207 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5219 /* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5232 rm -f conftest.
$ac_objext conftest
$ac_exeext
5233 if { (eval echo "$as_me:5233: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>&5
5236 echo "$as_me:5236: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try
='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:5239: \"$ac_try\"") >&5
5242 echo "$as_me:5242: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_func_dlopen
=yes
5246 echo "$as_me: failed program was:" >&5
5247 cat conftest.
$ac_ext >&5
5248 ac_cv_func_dlopen
=no
5250 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5252 echo "$as_me:5252: result: $ac_cv_func_dlopen" >&5
5253 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5254 if test $ac_cv_func_dlopen = yes; then
5255 lt_cv_dlopen
="dlopen"
5257 echo "$as_me:5257: checking for shl_load" >&5
5258 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5259 if test "${ac_cv_func_shl_load+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 cat >conftest.
$ac_ext <<_ACEOF
5263 #line 5263 "configure"
5264 #include "confdefs.h"
5265 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char shl_load (); below. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5280 /* The GNU C library defines this for functions which it implements
5281 to always fail with ENOSYS. Some functions are actually named
5282 something starting with __ and the normal name is an alias. */
5283 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5293 rm -f conftest.
$ac_objext conftest
$ac_exeext
5294 if { (eval echo "$as_me:5294: \"$ac_link\"") >&5
5295 (eval $ac_link) 2>&5
5297 echo "$as_me:5297: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try
='test -s conftest$ac_exeext'
5300 { (eval echo "$as_me:5300: \"$ac_try\"") >&5
5303 echo "$as_me:5303: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_cv_func_shl_load
=yes
5307 echo "$as_me: failed program was:" >&5
5308 cat conftest.
$ac_ext >&5
5309 ac_cv_func_shl_load
=no
5311 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5313 echo "$as_me:5313: result: $ac_cv_func_shl_load" >&5
5314 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5315 if test $ac_cv_func_shl_load = yes; then
5316 lt_cv_dlopen
="shl_load"
5318 echo "$as_me:5318: checking for dlopen in -lsvld" >&5
5319 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5320 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 ac_check_lib_save_LIBS
=$LIBS
5325 cat >conftest.
$ac_ext <<_ACEOF
5326 #line 5326 "configure"
5327 #include "confdefs.h"
5329 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5344 rm -f conftest.
$ac_objext conftest
$ac_exeext
5345 if { (eval echo "$as_me:5345: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5348 echo "$as_me:5348: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try
='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:5351: \"$ac_try\"") >&5
5354 echo "$as_me:5354: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_svld_dlopen
=yes
5358 echo "$as_me: failed program was:" >&5
5359 cat conftest.
$ac_ext >&5
5360 ac_cv_lib_svld_dlopen
=no
5362 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5363 LIBS
=$ac_check_lib_save_LIBS
5365 echo "$as_me:5365: result: $ac_cv_lib_svld_dlopen" >&5
5366 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5367 if test $ac_cv_lib_svld_dlopen = yes; then
5368 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
5370 echo "$as_me:5370: checking for shl_load in -ldld" >&5
5371 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5372 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 ac_check_lib_save_LIBS
=$LIBS
5377 cat >conftest.
$ac_ext <<_ACEOF
5378 #line 5378 "configure"
5379 #include "confdefs.h"
5381 /* Override any gcc2 internal prototype to avoid an error. */
5385 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */
5396 rm -f conftest.
$ac_objext conftest
$ac_exeext
5397 if { (eval echo "$as_me:5397: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5400 echo "$as_me:5400: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try
='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:5403: \"$ac_try\"") >&5
5406 echo "$as_me:5406: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_lib_dld_shl_load
=yes
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5412 ac_cv_lib_dld_shl_load
=no
5414 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5415 LIBS
=$ac_check_lib_save_LIBS
5417 echo "$as_me:5417: result: $ac_cv_lib_dld_shl_load" >&5
5418 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5419 if test $ac_cv_lib_dld_shl_load = yes; then
5420 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
5434 if test "x$lt_cv_dlopen" != xno
; then
5440 case $lt_cv_dlopen in
5442 save_CPPFLAGS
="$CPPFLAGS"
5443 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
5445 save_LDFLAGS
="$LDFLAGS"
5446 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
5449 LIBS
="$lt_cv_dlopen_libs $LIBS"
5451 echo "$as_me:5451: checking whether a program can dlopen itself" >&5
5452 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5453 if test "${lt_cv_dlopen_self+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 if test "$cross_compiling" = yes; then :
5457 lt_cv_dlopen_self
=cross
5459 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
5460 lt_status
=$lt_dlunknown
5461 cat > conftest.
$ac_ext <<EOF
5462 #line 5462 "configure"
5463 #include "confdefs.h"
5472 # define LT_DLGLOBAL RTLD_GLOBAL
5475 # define LT_DLGLOBAL DL_GLOBAL
5477 # define LT_DLGLOBAL 0
5481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5482 find out it does not work in some platform. */
5483 #ifndef LT_DLLAZY_OR_NOW
5485 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5488 # define LT_DLLAZY_OR_NOW DL_LAZY
5491 # define LT_DLLAZY_OR_NOW RTLD_NOW
5494 # define LT_DLLAZY_OR_NOW DL_NOW
5496 # define LT_DLLAZY_OR_NOW 0
5504 extern "C" void exit (int);
5507 void fnord() { int i=42;}
5510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5511 int status = $lt_dlunknown;
5515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5516 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5517 /* dlclose (self); */
5523 if { (eval echo "$as_me:5523: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>&5
5526 echo "$as_me:5526: \$? = $ac_status" >&5
5527 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
5528 (.
/conftest
; exit; ) 2>/dev
/null
5531 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
5532 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
5533 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
5536 # compilation failed
5537 lt_cv_dlopen_self
=no
5543 echo "$as_me:5543: result: $lt_cv_dlopen_self" >&5
5544 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5546 if test "x$lt_cv_dlopen_self" = xyes
; then
5547 LDFLAGS
="$LDFLAGS $link_static_flag"
5548 echo "$as_me:5548: checking whether a statically linked program can dlopen itself" >&5
5549 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5550 if test "${lt_cv_dlopen_self_static+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 if test "$cross_compiling" = yes; then :
5554 lt_cv_dlopen_self_static
=cross
5556 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
5557 lt_status
=$lt_dlunknown
5558 cat > conftest.
$ac_ext <<EOF
5559 #line 5559 "configure"
5560 #include "confdefs.h"
5569 # define LT_DLGLOBAL RTLD_GLOBAL
5572 # define LT_DLGLOBAL DL_GLOBAL
5574 # define LT_DLGLOBAL 0
5578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5579 find out it does not work in some platform. */
5580 #ifndef LT_DLLAZY_OR_NOW
5582 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5585 # define LT_DLLAZY_OR_NOW DL_LAZY
5588 # define LT_DLLAZY_OR_NOW RTLD_NOW
5591 # define LT_DLLAZY_OR_NOW DL_NOW
5593 # define LT_DLLAZY_OR_NOW 0
5601 extern "C" void exit (int);
5604 void fnord() { int i=42;}
5607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5608 int status = $lt_dlunknown;
5612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5613 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5614 /* dlclose (self); */
5620 if { (eval echo "$as_me:5620: \"$ac_link\"") >&5
5621 (eval $ac_link) 2>&5
5623 echo "$as_me:5623: \$? = $ac_status" >&5
5624 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
5625 (.
/conftest
; exit; ) 2>/dev
/null
5628 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
5629 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
5630 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
5633 # compilation failed
5634 lt_cv_dlopen_self_static
=no
5640 echo "$as_me:5640: result: $lt_cv_dlopen_self_static" >&5
5641 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5644 CPPFLAGS
="$save_CPPFLAGS"
5645 LDFLAGS
="$save_LDFLAGS"
5650 case $lt_cv_dlopen_self in
5651 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
5652 *) enable_dlopen_self
=unknown
;;
5655 case $lt_cv_dlopen_self_static in
5656 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
5657 *) enable_dlopen_self_static
=unknown
;;
5661 ## FIXME: this should be a separate macro
5663 if test "$enable_shared" = yes && test "$GCC" = yes; then
5664 case $archive_cmds in
5666 # FIXME: we may have to deal with multi-command sequences.
5669 # Test whether the compiler implicitly links with -lc since on some
5670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5671 # to ld, don't add -lc before -lgcc.
5672 echo "$as_me:5672: checking whether -lc should be explicitly linked in" >&5
5673 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5674 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 echo 'static int dummy;' > conftest.
$ac_ext
5680 if { (eval echo "$as_me:5680: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>&5
5683 echo "$as_me:5683: \$? = $ac_status" >&5
5684 (exit $ac_status); }; then
5687 libobjs
=conftest.
$ac_objext
5689 wl
=$lt_cv_prog_cc_wl
5695 save_allow_undefined_flag
=$allow_undefined_flag
5696 allow_undefined_flag
=
5697 if { (eval echo "$as_me:5697: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5698 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
5700 echo "$as_me:5700: \$? = $ac_status" >&5
5701 (exit $ac_status); }
5703 lt_cv_archive_cmds_need_lc
=no
5705 lt_cv_archive_cmds_need_lc
=yes
5707 allow_undefined_flag
=$save_allow_undefined_flag
5709 cat conftest.err
1>&5
5713 echo "$as_me:5713: result: $lt_cv_archive_cmds_need_lc" >&5
5714 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5718 need_lc
=${lt_cv_archive_cmds_need_lc-yes}
5722 ## FIXME: this should be a separate macro
5724 # The second clause should only fire when bootstrapping the
5725 # libtool distribution, otherwise you forgot to ship ltmain.sh
5726 # with your package, and you will get complaints that there are
5727 # no rules to generate ltmain.sh.
5728 if test -f "$ltmain"; then
5731 # If there is no Makefile yet, we rely on a make rule to execute
5732 # `config.status --recheck' to rerun these tests and create the
5733 # libtool script then.
5734 test -f Makefile
&& make "$ltmain"
5737 if test -f "$ltmain"; then
5738 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5741 echo creating
$ofile
5743 # Now quote all the things that may contain metacharacters while being
5744 # careful not to overquote the AC_SUBSTed values. We take copies of the
5745 # variables and quote the copies for generation of the libtool script.
5746 for var
in echo old_CC old_CFLAGS \
5747 AR AR_FLAGS CC LD LN_S NM SHELL \
5748 reload_flag reload_cmds wl \
5749 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5750 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5751 library_names_spec soname_spec \
5752 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5753 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5754 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5755 old_striplib striplib file_magic_cmd export_symbols_cmds \
5756 deplibs_check_method allow_undefined_flag no_undefined_flag \
5757 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5758 hardcode_libdir_flag_spec hardcode_libdir_separator \
5759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5760 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms
; do
5763 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5764 old_postinstall_cmds | old_postuninstall_cmds | \
5765 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5766 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5767 postinstall_cmds | postuninstall_cmds | \
5768 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
5769 # Double-quote double-evaled strings.
5770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5778 cat <<__EOF__ > "${ofile}T"
5781 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5782 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5783 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5785 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5786 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5788 # This program is free software; you can redistribute it and/or modify
5789 # it under the terms of the GNU General Public License as published by
5790 # the Free Software Foundation; either version 2 of the License, or
5791 # (at your option) any later version.
5793 # This program is distributed in the hope that it will be useful, but
5794 # WITHOUT ANY WARRANTY; without even the implied warranty of
5795 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5796 # General Public License for more details.
5798 # You should have received a copy of the GNU General Public License
5799 # along with this program; if not, write to the Free Software
5800 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5802 # As a special exception to the GNU General Public License, if you
5803 # distribute this file as part of a program that contains a
5804 # configuration script generated by Autoconf, you may include it under
5805 # the same distribution terms that you use for the rest of that program.
5807 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5808 Xsed="sed -e s/^X//"
5810 # The HP-UX ksh and POSIX shell print the target directory to stdout
5812 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5814 # ### BEGIN LIBTOOL CONFIG
5816 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5818 # Shell to use when invoking shell scripts.
5821 # Whether or not to build shared libraries.
5822 build_libtool_libs=$enable_shared
5824 # Whether or not to add -lc for building shared libraries.
5825 build_libtool_need_lc=$need_lc
5827 # Whether or not to build static libraries.
5828 build_old_libs=$enable_static
5830 # Whether or not to optimize for fast installation.
5831 fast_install=$enable_fast_install
5834 host_alias=$host_alias
5837 # An echo program that does not interpret backslashes.
5842 AR_FLAGS=$lt_AR_FLAGS
5844 # The default C compiler.
5847 # Is the compiler the GNU C compiler?
5850 # The linker used to build libraries.
5853 # Whether we need hard or soft links.
5856 # A BSD-compatible nm program.
5859 # A symbol stripping program
5862 # Used to examine libraries when file_magic_cmd begins "file"
5863 MAGIC_CMD=$MAGIC_CMD
5865 # Used on cygwin: DLL creation program.
5868 # Used on cygwin: object dumper.
5871 # Used on cygwin: assembler.
5874 # The name of the directory that contains temporary libtool files.
5877 # How to create reloadable object files.
5878 reload_flag=$lt_reload_flag
5879 reload_cmds=$lt_reload_cmds
5881 # How to pass a linker flag through the compiler.
5884 # Object file suffix (normally "o").
5887 # Old archive suffix (normally "a").
5890 # Executable file suffix (normally "").
5893 # Additional compiler flags for building library objects.
5894 pic_flag=$lt_pic_flag
5897 # Does compiler simultaneously support -c and -o options?
5898 compiler_c_o=$lt_compiler_c_o
5900 # Can we write directly to a .lo ?
5901 compiler_o_lo=$lt_compiler_o_lo
5903 # Must we lock files when doing compilation ?
5904 need_locks=$lt_need_locks
5906 # Do we need the lib prefix for modules?
5907 need_lib_prefix=$need_lib_prefix
5909 # Do we need a version for libraries?
5910 need_version=$need_version
5912 # Whether dlopen is supported.
5913 dlopen_support=$enable_dlopen
5915 # Whether dlopen of programs is supported.
5916 dlopen_self=$enable_dlopen_self
5918 # Whether dlopen of statically linked programs is supported.
5919 dlopen_self_static=$enable_dlopen_self_static
5921 # Compiler flag to prevent dynamic linking.
5922 link_static_flag=$lt_link_static_flag
5924 # Compiler flag to turn off builtin functions.
5925 no_builtin_flag=$lt_no_builtin_flag
5927 # Compiler flag to allow reflexive dlopens.
5928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5930 # Compiler flag to generate shared objects directly from archives.
5931 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5933 # Compiler flag to generate thread-safe objects.
5934 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5936 # Library versioning type.
5937 version_type=$version_type
5939 # Format of library name prefix.
5940 libname_spec=$lt_libname_spec
5942 # List of archive names. First name is the real one, the rest are links.
5943 # The last name is the one that the linker finds with -lNAME.
5944 library_names_spec=$lt_library_names_spec
5946 # The coded name of the library, if different from the real name.
5947 soname_spec=$lt_soname_spec
5949 # Commands used to build and install an old-style archive.
5951 old_archive_cmds=$lt_old_archive_cmds
5952 old_postinstall_cmds=$lt_old_postinstall_cmds
5953 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5955 # Create an old-style archive from a shared archive.
5956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5958 # Create a temporary old-style archive to link instead of a shared archive.
5959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5961 # Commands used to build and install a shared archive.
5962 archive_cmds=$lt_archive_cmds
5963 archive_expsym_cmds=$lt_archive_expsym_cmds
5964 postinstall_cmds=$lt_postinstall_cmds
5965 postuninstall_cmds=$lt_postuninstall_cmds
5967 # Commands to strip libraries.
5968 old_striplib=$lt_old_striplib
5969 striplib=$lt_striplib
5971 # Method to check whether dependent libraries are shared objects.
5972 deplibs_check_method=$lt_deplibs_check_method
5974 # Command to use when deplibs_check_method == file_magic.
5975 file_magic_cmd=$lt_file_magic_cmd
5977 # Flag that allows shared libraries with undefined symbols to be built.
5978 allow_undefined_flag=$lt_allow_undefined_flag
5980 # Flag that forces no undefined symbols.
5981 no_undefined_flag=$lt_no_undefined_flag
5983 # Commands used to finish a libtool library installation in a directory.
5984 finish_cmds=$lt_finish_cmds
5986 # Same as above, but a single script fragment to be evaled but not shown.
5987 finish_eval=$lt_finish_eval
5989 # Take the output of nm and produce a listing of raw symbols and C names.
5990 global_symbol_pipe=$lt_global_symbol_pipe
5992 # Transform the output of nm in a proper C declaration
5993 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5995 # This is the shared library runtime path variable.
5996 runpath_var=$runpath_var
5998 # This is the shared library path variable.
5999 shlibpath_var=$shlibpath_var
6001 # Is shlibpath searched before the hard-coded library search path?
6002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6004 # How to hardcode a shared library path into an executable.
6005 hardcode_action=$hardcode_action
6007 # Whether we should hardcode library paths into libraries.
6008 hardcode_into_libs=$hardcode_into_libs
6010 # Flag to hardcode \$libdir into a binary during linking.
6011 # This must work even if \$libdir does not exist.
6012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6014 # Whether we need a single -rpath flag with a separated argument.
6015 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6017 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6019 hardcode_direct=$hardcode_direct
6021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6023 hardcode_minus_L=$hardcode_minus_L
6025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6026 # the resulting binary.
6027 hardcode_shlibpath_var=$hardcode_shlibpath_var
6029 # Variables whose values should be saved in libtool wrapper scripts and
6030 # restored at relink time.
6031 variables_saved_for_relink="$variables_saved_for_relink"
6033 # Whether libtool must link a program against all its dependency libraries.
6034 link_all_deplibs=$link_all_deplibs
6036 # Compile-time system search path for libraries
6037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6039 # Run-time system search path for libraries
6040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6042 # Fix the shell variable \$srcfile for the compiler.
6043 fix_srcfile_path="$fix_srcfile_path"
6045 # Set to yes if exported symbols are required.
6046 always_export_symbols=$always_export_symbols
6048 # The commands to list exported symbols.
6049 export_symbols_cmds=$lt_export_symbols_cmds
6051 # The commands to extract the exported symbol list from a shared archive.
6052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6054 # Symbols that should not be listed in the preloaded symbols.
6055 exclude_expsyms=$lt_exclude_expsyms
6057 # Symbols that must always be exported.
6058 include_expsyms=$lt_include_expsyms
6060 # ### END LIBTOOL CONFIG
6066 cat <<\EOF
>> "${ofile}T"
6068 # AIX sometimes has problems with the GCC collect2 program. For some
6069 # reason, if we set the COLLECT_NAMES environment variable, the problems
6070 # vanish in a puff of smoke.
6071 if test "X${COLLECT_NAMES+set}" != Xset
; then
6073 export COLLECT_NAMES
6080 cygwin
* | mingw
* | pw32
* | os2
*)
6081 cat <<'EOF' >> "${ofile}T"
6082 # This is a source program that is used to create dlls on Windows
6083 # Don't remove nor modify the starting and closing comments
6084 # /* ltdll.c starts here */
6085 # #define WIN32_LEAN_AND_MEAN
6086 # #include <windows.h>
6087 # #undef WIN32_LEAN_AND_MEAN
6088 # #include <stdio.h>
6090 # #ifndef __CYGWIN__
6091 # # ifdef __CYGWIN32__
6092 # # define __CYGWIN__ __CYGWIN32__
6096 # #ifdef __cplusplus
6099 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6100 # #ifdef __cplusplus
6105 # #include <cygwin/cygwin_dll.h>
6106 # DECLARE_CYGWIN_DLL( DllMain );
6108 # HINSTANCE __hDllInstance_base;
6111 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6113 # __hDllInstance_base = hInst;
6116 # /* ltdll.c ends here */
6117 # This is a source program that is used to create import libraries
6118 # on Windows for dlls which lack them. Don't remove nor modify the
6119 # starting and closing comments
6120 # /* impgen.c starts here */
6121 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6123 # This file is part of GNU libtool.
6125 # This program is free software; you can redistribute it and/or modify
6126 # it under the terms of the GNU General Public License as published by
6127 # the Free Software Foundation; either version 2 of the License, or
6128 # (at your option) any later version.
6130 # This program is distributed in the hope that it will be useful,
6131 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6132 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6133 # GNU General Public License for more details.
6135 # You should have received a copy of the GNU General Public License
6136 # along with this program; if not, write to the Free Software
6137 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6140 # #include <stdio.h> /* for printf() */
6141 # #include <unistd.h> /* for open(), lseek(), read() */
6142 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6143 # #include <string.h> /* for strdup() */
6145 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6147 # #define O_BINARY 0
6150 # static unsigned int
6151 # pe_get16 (fd, offset)
6155 # unsigned char b[2];
6156 # lseek (fd, offset, SEEK_SET);
6158 # return b[0] + (b[1]<<8);
6161 # static unsigned int
6162 # pe_get32 (fd, offset)
6166 # unsigned char b[4];
6167 # lseek (fd, offset, SEEK_SET);
6169 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6172 # static unsigned int
6176 # unsigned char *b = ptr;
6177 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6186 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6187 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6188 # unsigned long name_rvas, nexp;
6189 # unsigned char *expdata, *erva;
6190 # char *filename, *dll_name;
6192 # filename = argv[1];
6194 # dll = open(filename, O_RDONLY|O_BINARY);
6198 # dll_name = filename;
6200 # for (i=0; filename[i]; i++)
6201 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6202 # dll_name = filename + i +1;
6204 # pe_header_offset = pe_get32 (dll, 0x3c);
6205 # opthdr_ofs = pe_header_offset + 4 + 20;
6206 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6208 # if (num_entries < 1) /* no exports */
6211 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6212 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6213 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6214 # secptr = (pe_header_offset + 4 + 20 +
6215 # pe_get16 (dll, pe_header_offset + 4 + 16));
6218 # for (i = 0; i < nsections; i++)
6221 # unsigned long secptr1 = secptr + 40 * i;
6222 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6223 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6224 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6225 # lseek(dll, secptr1, SEEK_SET);
6226 # read(dll, sname, 8);
6227 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6229 # expptr = fptr + (export_rva - vaddr);
6230 # if (export_rva + export_size > vaddr + vsize)
6231 # export_size = vsize - (export_rva - vaddr);
6236 # expdata = (unsigned char*)malloc(export_size);
6237 # lseek (dll, expptr, SEEK_SET);
6238 # read (dll, expdata, export_size);
6239 # erva = expdata - export_rva;
6241 # nexp = pe_as32 (expdata+24);
6242 # name_rvas = pe_as32 (expdata+32);
6244 # printf ("EXPORTS\n");
6245 # for (i = 0; i<nexp; i++)
6247 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6248 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6253 # /* impgen.c ends here */
6259 # We use sed instead of cat because bash on DJGPP gets confused if
6260 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6261 # text mode, it properly converts lines to CR/LF. This bash problem
6262 # is reportedly fixed, but why not run on old versions too?
6263 sed '$q' "$ltmain" >> "${ofile}T" ||
(rm -f "${ofile}T"; exit 1)
6265 mv -f "${ofile}T" "$ofile" || \
6266 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6272 # This can be used to rebuild libtool when needed
6273 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
6275 # Always use our own libtool.
6276 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
6278 # Prevent multiple expansion
6280 for ac_header
in locale.h
6282 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283 echo "$as_me:6283: checking for $ac_header" >&5
6284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.
$ac_ext <<_ACEOF
6289 #line 6289 "configure"
6290 #include "confdefs.h"
6291 #include <$ac_header>
6293 if { (eval echo "$as_me:6293: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6296 egrep -v '^ *\+' conftest.er1
>conftest.err
6298 cat conftest.err
>&5
6299 echo "$as_me:6299: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev
/null
; then
6301 if test -s conftest.err
; then
6302 ac_cpp_err
=$ac_c_preproc_warn_flag
6309 if test -z "$ac_cpp_err"; then
6310 eval "$as_ac_Header=yes"
6312 echo "$as_me: failed program was:" >&5
6313 cat conftest.
$ac_ext >&5
6314 eval "$as_ac_Header=no"
6316 rm -f conftest.err conftest.
$ac_ext
6318 echo "$as_me:6318: result: `eval echo '${'$as_ac_Header'}'`" >&5
6319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6321 cat >>confdefs.h
<<EOF
6322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6328 for ac_header
in stdlib.h
6330 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331 echo "$as_me:6331: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 cat >conftest.
$ac_ext <<_ACEOF
6337 #line 6337 "configure"
6338 #include "confdefs.h"
6339 #include <$ac_header>
6341 if { (eval echo "$as_me:6341: \"$ac_cpp conftest.$ac_ext\"") >&5
6342 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6344 egrep -v '^ *\+' conftest.er1
>conftest.err
6346 cat conftest.err
>&5
6347 echo "$as_me:6347: \$? = $ac_status" >&5
6348 (exit $ac_status); } >/dev
/null
; then
6349 if test -s conftest.err
; then
6350 ac_cpp_err
=$ac_c_preproc_warn_flag
6357 if test -z "$ac_cpp_err"; then
6358 eval "$as_ac_Header=yes"
6360 echo "$as_me: failed program was:" >&5
6361 cat conftest.
$ac_ext >&5
6362 eval "$as_ac_Header=no"
6364 rm -f conftest.err conftest.
$ac_ext
6366 echo "$as_me:6366: result: `eval echo '${'$as_ac_Header'}'`" >&5
6367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6369 cat >>confdefs.h
<<EOF
6370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6376 echo "$as_me:6376: checking for mbstate_t" >&5
6377 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6378 if test "${ac_cv_type_mbstate_t+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 cat >conftest.
$ac_ext <<_ACEOF
6382 #line 6382 "configure"
6383 #include "confdefs.h"
6386 # include <stdlib.h>
6392 mbstate_t x; return sizeof x;
6397 rm -f conftest.
$ac_objext
6398 if { (eval echo "$as_me:6398: \"$ac_compile\"") >&5
6399 (eval $ac_compile) 2>&5
6401 echo "$as_me:6401: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try
='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:6404: \"$ac_try\"") >&5
6407 echo "$as_me:6407: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_cv_type_mbstate_t
=yes
6411 echo "$as_me: failed program was:" >&5
6412 cat conftest.
$ac_ext >&5
6413 ac_cv_type_mbstate_t
=no
6415 rm -f conftest.
$ac_objext conftest.
$ac_ext
6417 echo "$as_me:6417: result: $ac_cv_type_mbstate_t" >&5
6418 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
6419 if test $ac_cv_type_mbstate_t = no
; then
6421 cat >>confdefs.h
<<\EOF
6422 #define mbstate_t int
6427 echo "$as_me:6427: checking for iconv" >&5
6428 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6429 if test "${cl_cv_func_iconv+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 cat >conftest.
$ac_ext <<_ACEOF
6436 #line 6436 "configure"
6437 #include "confdefs.h"
6444 iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL);
6450 rm -f conftest.
$ac_objext conftest
$ac_exeext
6451 if { (eval echo "$as_me:6451: \"$ac_link\"") >&5
6452 (eval $ac_link) 2>&5
6454 echo "$as_me:6454: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try
='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:6457: \"$ac_try\"") >&5
6460 echo "$as_me:6460: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 cl_cv_func_iconv
=yes
6464 echo "$as_me: failed program was:" >&5
6465 cat conftest.
$ac_ext >&5
6467 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6468 if test "$cl_cv_func_iconv" = no
; then
6469 cl_save_LIBS
="$LIBS"
6470 LIBS
="$LIBS -liconv"
6471 cat >conftest.
$ac_ext <<_ACEOF
6472 #line 6472 "configure"
6473 #include "confdefs.h"
6480 iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL);
6486 rm -f conftest.
$ac_objext conftest
$ac_exeext
6487 if { (eval echo "$as_me:6487: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>&5
6490 echo "$as_me:6490: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try
='test -s conftest$ac_exeext'
6493 { (eval echo "$as_me:6493: \"$ac_try\"") >&5
6496 echo "$as_me:6496: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6499 cl_cv_func_iconv
=yes
6501 echo "$as_me: failed program was:" >&5
6502 cat conftest.
$ac_ext >&5
6504 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6505 LIBS
="$cl_save_LIBS"
6509 echo "$as_me:6509: result: $cl_cv_func_iconv" >&5
6510 echo "${ECHO_T}$cl_cv_func_iconv" >&6
6511 if test "$cl_cv_func_iconv" = yes; then
6512 cat >>confdefs.h
<<\EOF
6513 #define HAVE_ICONV 1
6516 echo "$as_me:6516: checking for iconv declaration" >&5
6517 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6518 if test "${cl_cv_proto_iconv+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 cat >conftest.
$ac_ext <<_ACEOF
6523 #line 6523 "configure"
6524 #include "confdefs.h"
6527 #ifdef HAVE_UNISTD_H
6530 #include <sys/types.h>
6538 #if defined(__STDC__) || defined(__cplusplus)
6539 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);
6552 rm -f conftest.
$ac_objext
6553 if { (eval echo "$as_me:6553: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>&5
6556 echo "$as_me:6556: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try
='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:6559: \"$ac_try\"") >&5
6562 echo "$as_me:6562: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 cl_cv_proto_iconv_arg1
=""
6566 echo "$as_me: failed program was:" >&5
6567 cat conftest.
$ac_ext >&5
6568 cl_cv_proto_iconv_arg1
="const"
6570 rm -f conftest.
$ac_objext conftest.
$ac_ext
6572 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);"
6575 cl_cv_proto_iconv
=`echo "$cl_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6576 echo "$as_me:6576: result: ${ac_t:-
6577 }$cl_cv_proto_iconv" >&5
6578 echo "${ECHO_T}${ac_t:-
6579 }$cl_cv_proto_iconv" >&6
6581 cat >>confdefs.h
<<EOF
6582 #define ICONV_CONST $cl_cv_proto_iconv_arg1
6587 if test "$cl_cv_lib_iconv" = yes; then
6591 if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
6597 for ac_func
in mbrtowc wcrtomb mbsinit setlocale
6599 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6600 echo "$as_me:6600: checking for $ac_func" >&5
6601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6602 if eval "test \"\${$as_ac_var+set}\" = set"; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 cat >conftest.
$ac_ext <<_ACEOF
6606 #line 6606 "configure"
6607 #include "confdefs.h"
6608 /* System header to define __stub macros and hopefully few prototypes,
6609 which can conflict with char $ac_func (); below. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6623 /* The GNU C library defines this for functions which it implements
6624 to always fail with ENOSYS. Some functions are actually named
6625 something starting with __ and the normal name is an alias. */
6626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6636 rm -f conftest.
$ac_objext conftest
$ac_exeext
6637 if { (eval echo "$as_me:6637: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try
='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:6643: \"$ac_try\"") >&5
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 eval "$as_ac_var=yes"
6650 echo "$as_me: failed program was:" >&5
6651 cat conftest.
$ac_ext >&5
6652 eval "$as_ac_var=no"
6654 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6656 echo "$as_me:6656: result: `eval echo '${'$as_ac_var'}'`" >&5
6657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6658 if test `eval echo '${'$as_ac_var'}'` = yes; then
6659 cat >>confdefs.h
<<EOF
6660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6666 for ac_header
in wchar.h
6668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6669 echo "$as_me:6669: checking for $ac_header" >&5
6670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 cat >conftest.
$ac_ext <<_ACEOF
6675 #line 6675 "configure"
6676 #include "confdefs.h"
6677 #include <$ac_header>
6679 if { (eval echo "$as_me:6679: \"$ac_cpp conftest.$ac_ext\"") >&5
6680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6682 egrep -v '^ *\+' conftest.er1
>conftest.err
6684 cat conftest.err
>&5
6685 echo "$as_me:6685: \$? = $ac_status" >&5
6686 (exit $ac_status); } >/dev
/null
; then
6687 if test -s conftest.err
; then
6688 ac_cpp_err
=$ac_c_preproc_warn_flag
6695 if test -z "$ac_cpp_err"; then
6696 eval "$as_ac_Header=yes"
6698 echo "$as_me: failed program was:" >&5
6699 cat conftest.
$ac_ext >&5
6700 eval "$as_ac_Header=no"
6702 rm -f conftest.err conftest.
$ac_ext
6704 echo "$as_me:6704: result: `eval echo '${'$as_ac_Header'}'`" >&5
6705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6707 cat >>confdefs.h
<<EOF
6708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6714 echo "$as_me:6714: checking for EILSEQ" >&5
6715 echo $ECHO_N "checking for EILSEQ... $ECHO_C" >&6
6716 if test "${ac_cv_decl_EILSEQ+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 cat >conftest.
$ac_ext <<_ACEOF
6721 #line 6721 "configure"
6722 #include "confdefs.h"
6730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 egrep "yes" >/dev
/null
2>&1; then
6736 if test -n "$have_eilseq"; then
6737 ac_cv_decl_EILSEQ
=yes
6739 cat >conftest.
$ac_ext <<_ACEOF
6740 #line 6740 "configure"
6741 #include "confdefs.h"
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 egrep "yes" >/dev
/null
2>&1; then
6758 if test -n "$have_eilseq"; then
6759 if test "$cross_compiling" = yes; then
6760 # Depending upon the size, compute the lo and hi bounds.
6761 cat >conftest.
$ac_ext <<_ACEOF
6762 #line 6762 "configure"
6763 #include "confdefs.h"
6769 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6776 int _array_ [1 - 2 * !((EILSEQ) >= 0)]
6781 rm -f conftest.
$ac_objext
6782 if { (eval echo "$as_me:6782: \"$ac_compile\"") >&5
6783 (eval $ac_compile) 2>&5
6785 echo "$as_me:6785: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try
='test -s conftest.$ac_objext'
6788 { (eval echo "$as_me:6788: \"$ac_try\"") >&5
6791 echo "$as_me:6791: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6795 cat >conftest.
$ac_ext <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6803 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6810 int _array_ [1 - 2 * !((EILSEQ) <= $ac_mid)]
6815 rm -f conftest.
$ac_objext
6816 if { (eval echo "$as_me:6816: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>&5
6819 echo "$as_me:6819: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try
='test -s conftest.$ac_objext'
6822 { (eval echo "$as_me:6822: \"$ac_try\"") >&5
6825 echo "$as_me:6825: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_hi
=$ac_mid; break
6829 echo "$as_me: failed program was:" >&5
6830 cat conftest.
$ac_ext >&5
6831 ac_lo
=`expr $ac_mid + 1`; ac_mid
=`expr 2 '*' $ac_mid + 1`
6833 rm -f conftest.
$ac_objext conftest.
$ac_ext
6836 echo "$as_me: failed program was:" >&5
6837 cat conftest.
$ac_ext >&5
6840 cat >conftest.
$ac_ext <<_ACEOF
6841 #line 6841 "configure"
6842 #include "confdefs.h"
6848 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6855 int _array_ [1 - 2 * !((EILSEQ) >= $ac_mid)]
6860 rm -f conftest.
$ac_objext
6861 if { (eval echo "$as_me:6861: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>&5
6864 echo "$as_me:6864: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try
='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:6867: \"$ac_try\"") >&5
6870 echo "$as_me:6870: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_lo
=$ac_mid; break
6874 echo "$as_me: failed program was:" >&5
6875 cat conftest.
$ac_ext >&5
6876 ac_hi
=`expr $ac_mid - 1`; ac_mid
=`expr 2 '*' $ac_mid`
6878 rm -f conftest.
$ac_objext conftest.
$ac_ext
6881 rm -f conftest.
$ac_objext conftest.
$ac_ext
6882 # Binary search between lo and hi bounds.
6883 while test "x$ac_lo" != "x$ac_hi"; do
6884 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6885 cat >conftest.
$ac_ext <<_ACEOF
6886 #line 6886 "configure"
6887 #include "confdefs.h"
6893 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6900 int _array_ [1 - 2 * !((EILSEQ) <= $ac_mid)]
6905 rm -f conftest.
$ac_objext
6906 if { (eval echo "$as_me:6906: \"$ac_compile\"") >&5
6907 (eval $ac_compile) 2>&5
6909 echo "$as_me:6909: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try
='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:6912: \"$ac_try\"") >&5
6915 echo "$as_me:6915: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6919 echo "$as_me: failed program was:" >&5
6920 cat conftest.
$ac_ext >&5
6921 ac_lo
=`expr $ac_mid + 1`
6923 rm -f conftest.
$ac_objext conftest.
$ac_ext
6925 ac_cv_decl_EILSEQ
=$ac_lo
6927 if test "$cross_compiling" = yes; then
6928 { { echo "$as_me:6928: error: cannot run test program while cross compiling" >&5
6929 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6930 { (exit 1); exit 1; }; }
6932 cat >conftest.
$ac_ext <<_ACEOF
6933 #line 6933 "configure"
6934 #include "confdefs.h"
6940 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6947 FILE *f = fopen ("conftest.val", "w");
6950 fprintf (f, "%d", (EILSEQ));
6956 rm -f conftest
$ac_exeext
6957 if { (eval echo "$as_me:6957: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6960 echo "$as_me:6960: \$? = $ac_status" >&5
6961 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6962 { (eval echo "$as_me:6962: \"$ac_try\"") >&5
6965 echo "$as_me:6965: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_decl_EILSEQ
=`cat conftest.val`
6969 echo "$as_me: program exited with status $ac_status" >&5
6970 echo "$as_me: failed program was:" >&5
6971 cat conftest.
$ac_ext >&5
6973 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6978 ac_cv_decl_EILSEQ
=ENOENT
6983 echo "$as_me:6983: result: $ac_cv_decl_EILSEQ" >&5
6984 echo "${ECHO_T}$ac_cv_decl_EILSEQ" >&6
6985 if test "$ac_cv_decl_EILSEQ" != yes; then
6987 cat >>confdefs.h
<<EOF
6988 #define EILSEQ $ac_cv_decl_EILSEQ
6991 EILSEQ
="$ac_cv_decl_EILSEQ"
6995 echo "$as_me:6995: checking byte ordering" >&5
6996 echo $ECHO_N "checking byte ordering... $ECHO_C" >&6
6997 if test "${cl_cv_sys_endian+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 if test "$cross_compiling" = yes; then
7002 : # must guess the endianness
7005 cat >conftest.
$ac_ext <<_ACEOF
7006 #line 7006 "configure"
7007 #include "confdefs.h"
7009 /* Are we little or big endian? From Harbison&Steele. */
7013 char c[sizeof (long)];
7019 rm -f conftest
$ac_exeext
7020 if { (eval echo "$as_me:7020: \"$ac_link\"") >&5
7021 (eval $ac_link) 2>&5
7023 echo "$as_me:7023: \$? = $ac_status" >&5
7024 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7025 { (eval echo "$as_me:7025: \"$ac_try\"") >&5
7028 echo "$as_me:7028: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 cl_cv_sys_endian
="big endian"
7032 echo "$as_me: program exited with status $ac_status" >&5
7033 echo "$as_me: failed program was:" >&5
7034 cat conftest.
$ac_ext >&5
7035 cl_cv_sys_endian
="little endian"
7037 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7039 if test -z "$cl_cv_sys_endian"; then
7040 cat >conftest.
$ac_ext <<_ACEOF
7041 #line 7041 "configure"
7042 #include "confdefs.h"
7043 #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__)
7048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7049 egrep "yes" >/dev
/null
2>&1; then
7050 cl_cv_sys_endian
="big endian"
7055 if test -z "$cl_cv_sys_endian"; then
7056 cat >conftest.
$ac_ext <<_ACEOF
7057 #line 7057 "configure"
7058 #include "confdefs.h"
7059 #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 egrep "yes" >/dev
/null
2>&1; then
7066 cl_cv_sys_endian
="little endian"
7071 if test -z "$cl_cv_sys_endian"; then
7072 cl_cv_sys_endian
="guessing little endian"
7076 echo "$as_me:7076: result: $cl_cv_sys_endian" >&5
7077 echo "${ECHO_T}$cl_cv_sys_endian" >&6
7078 case "$cl_cv_sys_endian" in
7079 *little
*) cat >>confdefs.h
<<\EOF
7080 #define WORDS_LITTLEENDIAN 1
7088 linux
*) OS
="linux" ;;
7089 solaris
*) OS
="solaris" ;;
7092 if test -n "$OS"; then
7094 PLUGLIB
="libiconv_plug.so"
7099 if test -d "${srcdir}/tests"; then
7100 TESTS_MAKEFILE
=tests
/Makefile
7105 subdirs
="$subdirs libcharset"
7107 ac_config_files
="$ac_config_files Makefile lib/Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h"
7108 cat >confcache
<<\_ACEOF
7109 # This file is a shell script that caches the results of configure
7110 # tests run on this system so they can be shared between configure
7111 # scripts and configure runs, see configure's option --config-cache.
7112 # It is not useful on other systems. If it contains results you don't
7113 # want to keep, you may remove or edit it.
7115 # config.status only pays attention to the cache file if you give it
7116 # the --recheck option to rerun configure.
7118 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7119 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7124 # The following way of writing the cache mishandles newlines in values,
7125 # but we know of no workaround that is simple, portable, and efficient.
7126 # So, don't put newlines in cache variables' values.
7127 # Ultrix sh set writes to stderr and can't be redirected directly,
7128 # and sets the high bit in the cache file unless we assign to the vars.
7131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7133 # `set' does not quote correctly, so add quotes (double-quote
7134 # substitution turns \\\\ into \\, and sed turns \\ into \).
7137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7140 # `set' quotes correctly as required by POSIX, so do not add quotes.
7142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7151 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7153 if cmp -s $cache_file confcache
; then :; else
7154 if test -w $cache_file; then
7155 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7156 cat confcache
>$cache_file
7158 echo "not updating unwritable cache $cache_file"
7163 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7164 # Let make expand exec_prefix.
7165 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7167 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7168 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7169 # trailing colons and then remove the whole line if VPATH becomes empty
7170 # (actually we leave an empty line to preserve line numbers).
7171 if test "x$srcdir" = x.
; then
7172 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7173 s/:*\$(srcdir):*/:/;
7174 s/:*\${srcdir}:*/:/;
7176 s/^\([^=]*=[ ]*\):*/\1/;
7182 DEFS
=-DHAVE_CONFIG_H
7184 : ${CONFIG_STATUS=./config.status}
7185 ac_clean_files_save
=$ac_clean_files
7186 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7187 { echo "$as_me:7187: creating $CONFIG_STATUS" >&5
7188 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7189 cat >$CONFIG_STATUS <<_ACEOF
7191 # Generated automatically by configure.
7192 # Run this file to recreate the current configuration.
7193 # Compiler output produced by configure, useful for debugging
7194 # configure, is in config.log if it exists.
7197 SHELL=\${CONFIG_SHELL-$SHELL}
7198 ac_cs_invocation="\$0 \$@"
7202 cat >>$CONFIG_STATUS <<\_ACEOF
7203 # Be Bourne compatible
7204 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7207 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7211 # Name of the executable.
7212 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
7214 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7220 rm -f conf$$ conf$$.exe conf$$.
file
7222 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7223 # We could just check for DJGPP; but this test a) works b) is more generic
7224 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7225 if test -f conf$$.exe
; then
7226 # Don't use ln at all; we don't have any links
7231 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7236 rm -f conf$$ conf$$.exe conf$$.
file
7238 as_executable_p
="test -f"
7240 # Support unset when possible.
7241 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
7248 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
7249 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
7250 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
7251 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
7252 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
7253 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
7254 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
7255 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
7258 # We need space, tab and new line, in precisely that order.
7264 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
7270 # Files that config.status was made for.
7271 if test -n "$ac_config_files"; then
7272 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7275 if test -n "$ac_config_headers"; then
7276 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7279 if test -n "$ac_config_links"; then
7280 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7283 if test -n "$ac_config_commands"; then
7284 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7287 cat >>$CONFIG_STATUS <<\EOF
7290 \`$as_me' instantiates files from templates according to the
7291 current configuration.
7293 Usage: $0 [OPTIONS] [FILE]...
7295 -h, --help print this help, then exit
7296 -V, --version print version number, then exit
7297 -d, --debug don't remove temporary files
7298 --recheck update $as_me by reconfiguring in the same conditions
7299 --file=FILE[:TEMPLATE]
7300 instantiate the configuration file FILE
7301 --header=FILE[:TEMPLATE]
7302 instantiate the configuration header FILE
7304 Configuration files:
7307 Configuration headers:
7310 Report bugs to <bug-autoconf@gnu.org>."
7313 cat >>$CONFIG_STATUS <<EOF
7316 configured by $0, generated by GNU Autoconf 2.52,
7317 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7319 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7320 Free Software Foundation, Inc.
7321 This config.status script is free software; the Free Software Foundation
7322 gives unlimited permission to copy, distribute and modify it."
7326 cat >>$CONFIG_STATUS <<\EOF
7327 # If no file are specified by the user, then we need to provide default
7328 # value. By we need to know if files were specified by the user.
7334 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7335 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7337 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
7341 *) # This is not an option, so the user has probably given explicit
7343 ac_need_defaults
=false
;;
7347 # Handling of the options.
7349 cat >>$CONFIG_STATUS <<EOF
7350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7351 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7352 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7354 cat >>$CONFIG_STATUS <<\EOF
7355 --version |
--vers* |
-V )
7356 echo "$ac_cs_version"; exit 0 ;;
7358 # Conflict between --help and --header
7359 { { echo "$as_me:7359: error: ambiguous option: $1
7360 Try \`$0 --help' for more information." >&5
7361 echo "$as_me: error: ambiguous option: $1
7362 Try \`$0 --help' for more information." >&2;}
7363 { (exit 1); exit 1; }; };;
7364 --help |
--hel |
-h )
7365 echo "$ac_cs_usage"; exit 0 ;;
7366 --debug |
--d* |
-d )
7368 --file |
--fil |
--fi |
--f )
7370 CONFIG_FILES
="$CONFIG_FILES $1"
7371 ac_need_defaults
=false
;;
7372 --header |
--heade |
--head |
--hea )
7374 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
7375 ac_need_defaults
=false
;;
7378 -*) { { echo "$as_me:7378: error: unrecognized option: $1
7379 Try \`$0 --help' for more information." >&5
7380 echo "$as_me: error: unrecognized option: $1
7381 Try \`$0 --help' for more information." >&2;}
7382 { (exit 1); exit 1; }; } ;;
7384 *) ac_config_targets
="$ac_config_targets $1" ;;
7393 ## ----------------------- ##
7394 ## Running config.status. ##
7395 ## ----------------------- ##
7397 This file was extended by $as_me 2.52, executed with
7398 CONFIG_FILES = $CONFIG_FILES
7399 CONFIG_HEADERS = $CONFIG_HEADERS
7400 CONFIG_LINKS = $CONFIG_LINKS
7401 CONFIG_COMMANDS = $CONFIG_COMMANDS
7403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7408 cat >>$CONFIG_STATUS <<\EOF
7409 for ac_config_target
in $ac_config_targets
7411 case "$ac_config_target" in
7412 # Handling of arguments.
7413 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7414 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
7415 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
7416 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
7417 "${TESTS_MAKEFILE}" ) CONFIG_FILES
="$CONFIG_FILES ${TESTS_MAKEFILE}" ;;
7418 "include/iconv.h" ) CONFIG_FILES
="$CONFIG_FILES include/iconv.h" ;;
7419 "lib/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS lib/config.h" ;;
7420 *) { { echo "$as_me:7420: error: invalid argument: $ac_config_target" >&5
7421 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7422 { (exit 1); exit 1; }; };;
7426 # If the user did not use the arguments to specify the items to instantiate,
7427 # then the envvar interface is used. Set only those that are not.
7428 # We use the long form for the default assignment because of an extremely
7429 # bizarre bug on SunOS 4.1.3.
7430 if $ac_need_defaults; then
7431 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7432 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7435 # Create a temporary directory, and hook for its removal unless debugging.
7438 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7439 trap '{ (exit 1); exit 1; }' 1 2 13 15
7442 # Create a (secure) tmp directory for tmp files.
7445 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7446 test -n "$tmp" && test -d "$tmp"
7449 tmp
=$TMPDIR/cs$$
-$RANDOM
7450 (umask 077 && mkdir
$tmp)
7453 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7454 { (exit 1); exit 1; }
7459 cat >>$CONFIG_STATUS <<EOF
7462 # CONFIG_FILES section.
7465 # No need to generate the scripts if there are no CONFIG_FILES.
7466 # This happens for instance when ./config.status config.h
7467 if test -n "\$CONFIG_FILES"; then
7468 # Protect against being on the right side of a sed subst in config.status.
7469 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7470 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7471 s,@SHELL@,$SHELL,;t t
7472 s,@exec_prefix@,$exec_prefix,;t t
7473 s,@prefix@,$prefix,;t t
7474 s,@program_transform_name@,$program_transform_name,;t t
7475 s,@bindir@,$bindir,;t t
7476 s,@sbindir@,$sbindir,;t t
7477 s,@libexecdir@,$libexecdir,;t t
7478 s,@datadir@,$datadir,;t t
7479 s,@sysconfdir@,$sysconfdir,;t t
7480 s,@sharedstatedir@,$sharedstatedir,;t t
7481 s,@localstatedir@,$localstatedir,;t t
7482 s,@libdir@,$libdir,;t t
7483 s,@includedir@,$includedir,;t t
7484 s,@oldincludedir@,$oldincludedir,;t t
7485 s,@infodir@,$infodir,;t t
7486 s,@mandir@,$mandir,;t t
7487 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7488 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7489 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7490 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7491 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7492 s,@build_alias@,$build_alias,;t t
7493 s,@host_alias@,$host_alias,;t t
7494 s,@target_alias@,$target_alias,;t t
7495 s,@ECHO_C@,$ECHO_C,;t t
7496 s,@ECHO_N@,$ECHO_N,;t t
7497 s,@ECHO_T@,$ECHO_T,;t t
7498 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7501 s,@SET_MAKE@,$SET_MAKE,;t t
7503 s,@CFLAGS@,$CFLAGS,;t t
7504 s,@LDFLAGS@,$LDFLAGS,;t t
7505 s,@CPPFLAGS@,$CPPFLAGS,;t t
7506 s,@ac_ct_CC@,$ac_ct_CC,;t t
7507 s,@EXEEXT@,$EXEEXT,;t t
7508 s,@OBJEXT@,$OBJEXT,;t t
7510 s,@RANLIB@,$RANLIB,;t t
7511 s,@INSTALL@,$INSTALL,;t t
7512 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7513 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7517 s,@build@,$build,;t t
7518 s,@build_cpu@,$build_cpu,;t t
7519 s,@build_vendor@,$build_vendor,;t t
7520 s,@build_os@,$build_os,;t t
7522 s,@host_cpu@,$host_cpu,;t t
7523 s,@host_vendor@,$host_vendor,;t t
7524 s,@host_os@,$host_os,;t t
7526 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7527 s,@STRIP@,$STRIP,;t t
7528 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7529 s,@LIBTOOL@,$LIBTOOL,;t t
7530 s,@LIBICONV@,$LIBICONV,;t t
7531 s,@ICONV_CONST@,$ICONV_CONST,;t t
7532 s,@EILSEQ@,$EILSEQ,;t t
7535 s,@PLUGLIB@,$PLUGLIB,;t t
7536 s,@subdirs@,$subdirs,;t t
7541 cat >>$CONFIG_STATUS <<\EOF
7542 # Split the substitutions into bite-sized pieces for seds with
7543 # small command number limits, like on Digital OSF/1 and HP-UX.
7545 ac_sed_frag
=1 # Number of current file.
7546 ac_beg
=1 # First line for current file.
7547 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7550 while $ac_more_lines; do
7551 if test $ac_beg -gt 1; then
7552 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7554 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7556 if test ! -s $tmp/subs.frag
; then
7559 # The purpose of the label and of the branching condition is to
7560 # speed up the sed processing (if there are no `@' at all, there
7561 # is no need to browse any of the substitutions).
7562 # These are the two extra sed commands mentioned above.
7564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7565 if test -z "$ac_sed_cmds"; then
7566 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7568 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7570 ac_sed_frag
=`expr $ac_sed_frag + 1`
7572 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7575 if test -z "$ac_sed_cmds"; then
7578 fi # test -n "$CONFIG_FILES"
7581 cat >>$CONFIG_STATUS <<\EOF
7582 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7585 - |
*:- |
*:-:* ) # input from stdin
7587 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7588 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7589 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7590 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7591 * ) ac_file_in
=$ac_file.
in ;;
7594 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7595 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7596 X"$ac_file" : 'X\(//\)[^/]' \| \
7597 X"$ac_file" : 'X\(//\)$' \| \
7598 X"$ac_file" : 'X\(/\)' \| \
7599 . : '\(.\)' 2>/dev/null ||
7601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7603 /^X\(\/\/\)$/{ s//\1/; q; }
7604 /^X\(\/\).*/{ s//\1/; q; }
7606 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7608 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7612 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7613 case $as_mkdir_dir in
7614 # Skip DOS drivespec
7615 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7617 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7618 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
7623 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
7624 # A "../" for each directory in $ac_dir_suffix.
7625 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7627 ac_dir_suffix
= ac_dots
=
7632 if test -z "$ac_dots"; then
7635 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
7638 ac_srcdir
=$srcdir$ac_dir_suffix;
7639 ac_top_srcdir
=$srcdir ;;
7641 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
7642 ac_top_srcdir
=$ac_dots$srcdir ;;
7645 if test x
"$ac_file" != x-
; then
7646 { echo "$as_me:7646: creating $ac_file" >&5
7647 echo "$as_me: creating $ac_file" >&6;}
7650 # Let's still pretend it is `configure' which instantiates (i.e., don't
7651 # use $as_me), people would be surprised to read:
7652 # /* config.h. Generated automatically by config.status. */
7653 configure_input
="Generated automatically from `echo $ac_file_in |
7654 sed 's,.*/,,'` by configure."
7656 # First look for the input files in the build tree, otherwise in the
7658 ac_file_inputs
=`IFS=:
7659 for f in $ac_file_in; do
7661 -) echo $tmp/stdin ;;
7663 # Absolute (can't be DOS-style, as IFS=:)
7664 test -f "$f" || { { echo "$as_me:7664: error: cannot find input file: $f" >&5
7665 echo "$as_me: error: cannot find input file: $f" >&2;}
7666 { (exit 1); exit 1; }; }
7669 if test -f "$f"; then
7672 elif test -f "$srcdir/$f"; then
7677 { { echo "$as_me:7677: error: cannot find input file: $f" >&5
7678 echo "$as_me: error: cannot find input file: $f" >&2;}
7679 { (exit 1); exit 1; }; }
7682 done` ||
{ (exit 1); exit 1; }
7684 cat >>$CONFIG_STATUS <<EOF
7688 cat >>$CONFIG_STATUS <<\EOF
7690 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7691 s
,@configure_input@
,$configure_input,;t t
7692 s
,@srcdir@
,$ac_srcdir,;t t
7693 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7694 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7696 if test x"$ac_file" != x-; then
7697 mv $tmp/out $ac_file
7705 cat >>$CONFIG_STATUS <<\EOF
7708 # CONFIG_HEADER section.
7711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7714 # ac_d sets the value in "#define NAME VALUE" lines.
7715 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7716 ac_dB
='[ ].*$,\1#\2'
7719 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7720 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7721 ac_uB
='$,\1#\2define\3'
7725 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7726 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7728 - |
*:- |
*:-:* ) # input from stdin
7730 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7731 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7732 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7733 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7734 * ) ac_file_in
=$ac_file.
in ;;
7737 test x
"$ac_file" != x-
&& { echo "$as_me:7737: creating $ac_file" >&5
7738 echo "$as_me: creating $ac_file" >&6;}
7740 # First look for the input files in the build tree, otherwise in the
7742 ac_file_inputs
=`IFS=:
7743 for f in $ac_file_in; do
7745 -) echo $tmp/stdin ;;
7747 # Absolute (can't be DOS-style, as IFS=:)
7748 test -f "$f" || { { echo "$as_me:7748: error: cannot find input file: $f" >&5
7749 echo "$as_me: error: cannot find input file: $f" >&2;}
7750 { (exit 1); exit 1; }; }
7753 if test -f "$f"; then
7756 elif test -f "$srcdir/$f"; then
7761 { { echo "$as_me:7761: error: cannot find input file: $f" >&5
7762 echo "$as_me: error: cannot find input file: $f" >&2;}
7763 { (exit 1); exit 1; }; }
7766 done` ||
{ (exit 1); exit 1; }
7767 # Remove the trailing spaces.
7768 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7772 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7773 # `conftest.undefs', that substitutes the proper values into
7774 # config.h.in to produce config.h. The first handles `#define'
7775 # templates, and the second `#undef' templates.
7776 # And first: Protect against being on the right side of a sed subst in
7777 # config.status. Protect against being in an unquoted here document
7779 rm -f conftest.defines conftest.undefs
7780 # Using a here document instead of a string reduces the quoting nightmare.
7781 # Putting comments in sed scripts is not portable.
7783 # `end' is used to avoid that the second main sed command (meant for
7784 # 0-ary CPP macros) applies to n-ary macro definitions.
7785 # See the Autoconf documentation for `clear'.
7786 cat >confdef2sed.
sed <<\EOF
7791 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7793 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7796 # If some macros were called several times there might be several times
7797 # the same #defines, which is useless. Nevertheless, we may not want to
7798 # sort them, since we want the *last* AC-DEFINE to be honored.
7799 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7800 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7801 rm -f confdef2sed.sed
7803 # This sed command replaces #undef with comments. This is necessary, for
7804 # example, in the case of _POSIX_SOURCE, which is predefined and required
7805 # on some systems where configure will not decide to define it.
7806 cat >>conftest.undefs <<\EOF
7807 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7810 # Break up conftest.defines because some shells have a limit on the size
7811 # of here documents, and old seds have small limits too (100 cmds).
7812 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7813 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7814 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7815 echo ' :' >>$CONFIG_STATUS
7817 while grep . conftest.defines >/dev/null
7819 # Write a limited-size here document to $tmp/defines.sed.
7820 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7821 # Speed up: don't consider the non `#define' lines.
7822 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7823 # Work around the forget-to-reset-the-flag bug.
7824 echo 't clr' >>$CONFIG_STATUS
7825 echo ': clr' >>$CONFIG_STATUS
7826 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7828 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7832 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7833 rm -f conftest.defines
7834 mv conftest.
tail conftest.defines
7836 rm -f conftest.defines
7837 echo ' fi # egrep' >>$CONFIG_STATUS
7838 echo >>$CONFIG_STATUS
7840 # Break up conftest.undefs because some shells have a limit on the size
7841 # of here documents, and old seds have small limits too (100 cmds).
7842 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7844 while grep . conftest.undefs
>/dev
/null
7846 # Write a limited-size here document to $tmp/undefs.sed.
7847 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7848 # Speed up: don't consider the non
`#undef'
7849 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7850 # Work around the forget-to-reset-the-flag bug.
7851 echo 't clr' >>$CONFIG_STATUS
7852 echo ': clr' >>$CONFIG_STATUS
7853 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7855 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7859 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7860 rm -f conftest.undefs
7861 mv conftest.tail conftest.undefs
7863 rm -f conftest.undefs
7865 cat >>$CONFIG_STATUS <<\EOF
7866 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7867 # use $as_me), people would be surprised to read:
7868 # /* config.h. Generated automatically by config.status. */
7869 if test x
"$ac_file" = x-
; then
7870 echo "/* Generated automatically by configure. */" >$tmp/config.h
7872 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7874 cat $tmp/in >>$tmp/config.h
7876 if test x
"$ac_file" != x-
; then
7877 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
7878 { echo "$as_me:7878: $ac_file is unchanged" >&5
7879 echo "$as_me: $ac_file is unchanged" >&6;}
7881 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7882 X"$ac_file" : 'X\(//\)[^/]' \| \
7883 X"$ac_file" : 'X\(//\)$' \| \
7884 X"$ac_file" : 'X\(/\)' \| \
7885 . : '\(.\)' 2>/dev/null ||
7887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7889 /^X\(\/\/\)$/{ s//\1/; q; }
7890 /^X\(\/\).*/{ s//\1/; q; }
7892 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7894 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7898 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7899 case $as_mkdir_dir in
7900 # Skip DOS drivespec
7901 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7903 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7904 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
7911 mv $tmp/config.h
$ac_file
7920 cat >>$CONFIG_STATUS <<\EOF
7922 { (exit 0); exit 0; }
7924 chmod +x
$CONFIG_STATUS
7925 ac_clean_files
=$ac_clean_files_save
7927 # configure is writing to config.log, and then calls config.status.
7928 # config.status does its own redirection, appending to config.log.
7929 # Unfortunately, on DOS this fails, as config.log is still kept open
7930 # by configure, so config.status won't be able to write to it; its
7931 # output is simply discarded. So we exec the FD to /dev/null,
7932 # effectively closing config.log, so it can be properly (re)opened and
7933 # appended to by config.status. When coming back to configure, we
7934 # need to make the FD available again.
7935 if test "$no_create" != yes; then
7938 $SHELL $CONFIG_STATUS || ac_cs_success
=false
7940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7941 # would make configure fail if this is the last instruction.
7942 $ac_cs_success ||
{ (exit 1); exit 1; }
7946 # CONFIG_SUBDIRS section.
7948 if test "$no_recursion" != yes; then
7950 # Remove --cache-file and --srcdir arguments so they do not pile up.
7951 ac_sub_configure_args
=
7953 for ac_arg
in $ac_configure_args; do
7954 if test -n "$ac_prev"; then
7959 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
7960 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
7961 ac_prev
=cache_file
;;
7962 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
7963 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
7966 --config-cache |
-C)
7968 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
7970 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
7972 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
7976 for ac_subdir
in : $subdirs; do test "x$ac_subdir" = x
: && continue
7978 # Do not complain, so a configure script can configure whichever
7979 # parts of a large source tree are present.
7980 test -d $srcdir/$ac_subdir ||
continue
7982 { echo "$as_me:7982: configuring in $ac_subdir" >&5
7983 echo "$as_me: configuring in $ac_subdir" >&6;}
7986 *) { case "./$ac_subdir" in
7987 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7990 as_dummy
="./$ac_subdir"
7991 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7992 case $as_mkdir_dir in
7993 # Skip DOS drivespec
7994 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7996 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7997 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
8002 if test -d .
/$ac_subdir; then :;
8004 { { echo "$as_me:8004: error: cannot create \`pwd\`/$ac_subdir" >&5
8005 echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
8006 { (exit 1); exit 1; }; }
8014 # A "../" for each directory in /$ac_subdir.
8015 ac_dots
=`echo $ac_subdir |
8016 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
8019 .
) # No --srcdir option. We are building in place.
8020 ac_sub_srcdir
=$srcdir ;;
8021 [\\/]* | ?
:[\\/]* ) # Absolute path.
8022 ac_sub_srcdir
=$srcdir/$ac_subdir ;;
8024 ac_sub_srcdir
=$ac_dots$srcdir/$ac_subdir ;;
8027 # Check for guested configure; otherwise get Cygnus style configure.
8028 if test -f $ac_sub_srcdir/configure.gnu
; then
8029 ac_sub_configure
="$SHELL '$ac_sub_srcdir/configure.gnu'"
8030 elif test -f $ac_sub_srcdir/configure
; then
8031 ac_sub_configure
="$SHELL '$ac_sub_srcdir/configure'"
8032 elif test -f $ac_sub_srcdir/configure.
in; then
8033 ac_sub_configure
=$ac_configure
8035 { echo "$as_me:8035: WARNING: no configuration information is in $ac_subdir" >&5
8036 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
8040 # The recursion is here.
8041 if test -n "$ac_sub_configure"; then
8042 # Make the cache file name correct relative to the subdirectory.
8044 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
8046 ac_sub_cache_file
=$ac_dots$cache_file ;;
8049 { echo "$as_me:8049: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
8050 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
8051 # The eval makes quoting arguments work.
8052 eval $ac_sub_configure $ac_sub_configure_args \
8053 --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
8054 { { echo "$as_me:8054: error: $ac_sub_configure failed for $ac_subdir" >&5
8055 echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
8056 { (exit 1); exit 1; }; }