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="src/main.cpp"
264 # Initialize some variables set by options.
266 ac_init_version=false
267 # The variables have the same names as the options, with
268 # dashes changed to underlines.
276 program_transform_name=s,x,x,
284 # Installation directory options.
285 # These are left unexpanded so users can "make install exec_prefix=/foo"
286 # and all the variables that are supposed to be based on exec_prefix
287 # by default will actually change.
288 # Use braces instead of parens because sh, perl, etc. also accept them.
289 bindir='${exec_prefix}/bin'
290 sbindir='${exec_prefix}/sbin'
291 libexecdir='${exec_prefix}/libexec'
292 datadir='${prefix}/share'
293 sysconfdir='${prefix}/etc'
294 sharedstatedir='${prefix}/com'
295 localstatedir='${prefix}/var'
296 libdir='${exec_prefix}/lib'
297 includedir='${prefix}/include'
298 oldincludedir='/usr/include'
299 infodir='${prefix}/info'
300 mandir='${prefix}/man'
302 # Identity of this package.
312 # If the previous option needs an argument, assign it.
313 if test -n "$ac_prev"; then
314 eval "$ac_prev=\$ac_option"
319 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
321 # Accept the important Cygnus configure options, so we can diagnose typos.
325 -bindir | --bindir | --bindi | --bind | --bin | --bi)
327 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
330 -build | --build | --buil | --bui | --bu)
331 ac_prev=build_alias ;;
332 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
333 build_alias=$ac_optarg ;;
335 -cache-file | --cache-file | --cache-fil | --cache-fi \
336 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
337 ac_prev=cache_file ;;
338 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
339 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
340 cache_file=$ac_optarg ;;
343 cache_file=config.cache ;;
345 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349 datadir=$ac_optarg ;;
351 -disable-* | --disable-*)
352 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
353 # Reject names that are not valid shell variable names.
354 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
355 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
356 { (exit 1); exit 1; }; }
357 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
358 eval "enable_$ac_feature=no" ;;
360 -enable-* | --enable-*)
361 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
362 # Reject names that are not valid shell variable names.
363 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
364 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
365 { (exit 1); exit 1; }; }
366 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
368 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
371 eval "enable_$ac_feature='$ac_optarg'" ;;
373 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
374 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
375 | --exec | --exe | --ex)
376 ac_prev=exec_prefix ;;
377 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
378 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
379 | --exec=* | --exe=* | --ex=*)
380 exec_prefix=$ac_optarg ;;
382 -gas | --gas | --ga | --g)
383 # Obsolete; use --with-gas.
386 -help | --help | --hel | --he | -h)
388 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
389 ac_init_help=recursive ;;
390 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
391 ac_init_help=short ;;
393 -host | --host | --hos | --ho)
394 ac_prev=host_alias ;;
395 -host=* | --host=* | --hos=* | --ho=*)
396 host_alias=$ac_optarg ;;
398 -includedir | --includedir | --includedi | --included | --include \
399 | --includ | --inclu | --incl | --inc)
400 ac_prev=includedir ;;
401 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
402 | --includ=* | --inclu=* | --incl=* | --inc=*)
403 includedir=$ac_optarg ;;
405 -infodir | --infodir | --infodi | --infod | --info | --inf)
407 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
408 infodir=$ac_optarg ;;
410 -libdir | --libdir | --libdi | --libd)
412 -libdir=* | --libdir=* | --libdi=* | --libd=*)
415 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
416 | --libexe | --libex | --libe)
417 ac_prev=libexecdir ;;
418 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
419 | --libexe=* | --libex=* | --libe=*)
420 libexecdir=$ac_optarg ;;
422 -localstatedir | --localstatedir | --localstatedi | --localstated \
423 | --localstate | --localstat | --localsta | --localst \
424 | --locals | --local | --loca | --loc | --lo)
425 ac_prev=localstatedir ;;
426 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
427 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
428 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
429 localstatedir=$ac_optarg ;;
431 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
433 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
437 # Obsolete; use --without-fp.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
448 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
449 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
450 | --oldin | --oldi | --old | --ol | --o)
451 ac_prev=oldincludedir ;;
452 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
453 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
454 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
455 oldincludedir=$ac_optarg ;;
457 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
459 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
462 -program-prefix | --program-prefix | --program-prefi | --program-pref \
463 | --program-pre | --program-pr | --program-p)
464 ac_prev=program_prefix ;;
465 -program-prefix=* | --program-prefix=* | --program-prefi=* \
466 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
467 program_prefix=$ac_optarg ;;
469 -program-suffix | --program-suffix | --program-suffi | --program-suff \
470 | --program-suf | --program-su | --program-s)
471 ac_prev=program_suffix ;;
472 -program-suffix=* | --program-suffix=* | --program-suffi=* \
473 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
474 program_suffix=$ac_optarg ;;
476 -program-transform-name | --program-transform-name \
477 | --program-transform-nam | --program-transform-na \
478 | --program-transform-n | --program-transform- \
479 | --program-transform | --program-transfor \
480 | --program-transfo | --program-transf \
481 | --program-trans | --program-tran \
482 | --progr-tra | --program-tr | --program-t)
483 ac_prev=program_transform_name ;;
484 -program-transform-name=* | --program-transform-name=* \
485 | --program-transform-nam=* | --program-transform-na=* \
486 | --program-transform-n=* | --program-transform-=* \
487 | --program-transform=* | --program-transfor=* \
488 | --program-transfo=* | --program-transf=* \
489 | --program-trans=* | --program-tran=* \
490 | --progr-tra=* | --program-tr=* | --program-t=*)
491 program_transform_name=$ac_optarg ;;
493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
494 | -silent | --silent | --silen | --sile | --sil)
497 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
499 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
501 sbindir=$ac_optarg ;;
503 -sharedstatedir | --sharedstatedir | --sharedstatedi \
504 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
505 | --sharedst | --shareds | --shared | --share | --shar \
507 ac_prev=sharedstatedir ;;
508 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
509 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
510 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
512 sharedstatedir=$ac_optarg ;;
514 -site | --site | --sit)
516 -site=* | --site=* | --sit=*)
519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
524 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
525 | --syscon | --sysco | --sysc | --sys | --sy)
526 ac_prev=sysconfdir ;;
527 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
528 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
529 sysconfdir=$ac_optarg ;;
531 -target | --target | --targe | --targ | --tar | --ta | --t)
532 ac_prev=target_alias ;;
533 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
534 target_alias=$ac_optarg ;;
536 -v | -verbose | --verbose | --verbos | --verbo | --verb)
539 -version | --version | --versio | --versi | --vers | -V)
543 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
544 # Reject names that are not valid shell variable names.
545 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
546 { echo "$as_me: error: invalid package name: $ac_package" >&2
547 { (exit 1); exit 1; }; }
548 ac_package=`echo $ac_package| sed 's/-/_/g'`
550 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
553 eval "with_$ac_package='$ac_optarg'" ;;
555 -without-* | --without-*)
556 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid package name: $ac_package" >&2
560 { (exit 1); exit 1; }; }
561 ac_package=`echo $ac_package | sed 's/-/_/g'`
562 eval "with_$ac_package=no" ;;
565 # Obsolete; use --with-x.
568 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
569 | --x-incl | --x-inc | --x-in | --x-i)
570 ac_prev=x_includes ;;
571 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
572 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
573 x_includes=$ac_optarg ;;
575 -x-libraries | --x-libraries | --x-librarie | --x-librari \
576 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
577 ac_prev=x_libraries ;;
578 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
579 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
580 x_libraries=$ac_optarg ;;
582 -*) { echo "$as_me: error: unrecognized option: $ac_option
583 Try \`$0 --help' for more information." >&2
584 { (exit 1); exit 1; }; }
588 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
592 { (exit 1); exit 1; }; }
593 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
594 eval "$ac_envvar='$ac_optarg'"
598 # FIXME: should be removed in autoconf 3.0.
599 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
600 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
601 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
602 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
608 if test -n "$ac_prev"; then
609 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
610 { echo "$as_me: error: missing argument to $ac_option" >&2
611 { (exit 1); exit 1; }; }
614 # Be sure to have absolute paths.
615 for ac_var in exec_prefix prefix
617 eval ac_val=$`echo $ac_var`
619 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
620 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
621 { (exit 1); exit 1; }; };;
625 # Be sure to have absolute paths.
626 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
627 localstatedir libdir includedir oldincludedir infodir mandir
629 eval ac_val=$`echo $ac_var`
631 [\\/$]* | ?:[\\/]* ) ;;
632 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
633 { (exit 1); exit 1; }; };;
637 # There might be people who depend on the old broken behavior: `$host'
638 # used to hold the argument of --host etc.
643 # FIXME: should be removed in autoconf 3.0.
644 if test "x$host_alias" != x; then
645 if test "x$build_alias" = x; then
646 cross_compiling=maybe
647 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
648 If a cross compiler is detected then cross compile mode will be used." >&2
649 elif test "x$build_alias" != "x$host_alias"; then
655 test -n "$host_alias" && ac_tool_prefix=$host_alias-
657 test "$silent" = yes && exec 6>/dev/null
659 # Find the source files, if location was not specified.
660 if test -z "$srcdir"; then
661 ac_srcdir_defaulted=yes
662 # Try the directory containing this script, then its parent.
664 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
665 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
667 if test ! -r $srcdir/$ac_unique_file; then
671 ac_srcdir_defaulted=no
673 if test ! -r $srcdir/$ac_unique_file; then
674 if test "$ac_srcdir_defaulted" = yes; then
675 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
676 { (exit 1); exit 1; }; }
678 { echo "$as_me: error: cannot find sources in $srcdir" >&2
679 { (exit 1); exit 1; }; }
682 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
683 ac_env_build_alias_set=${build_alias+set}
684 ac_env_build_alias_value=$build_alias
685 ac_cv_env_build_alias_set=${build_alias+set}
686 ac_cv_env_build_alias_value=$build_alias
687 ac_env_host_alias_set=${host_alias+set}
688 ac_env_host_alias_value=$host_alias
689 ac_cv_env_host_alias_set=${host_alias+set}
690 ac_cv_env_host_alias_value=$host_alias
691 ac_env_target_alias_set=${target_alias+set}
692 ac_env_target_alias_value=$target_alias
693 ac_cv_env_target_alias_set=${target_alias+set}
694 ac_cv_env_target_alias_value=$target_alias
695 ac_env_CXX_set=${CXX+set}
696 ac_env_CXX_value=$CXX
697 ac_cv_env_CXX_set=${CXX+set}
698 ac_cv_env_CXX_value=$CXX
699 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
700 ac_env_CXXFLAGS_value=$CXXFLAGS
701 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
702 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
703 ac_env_LDFLAGS_set=${LDFLAGS+set}
704 ac_env_LDFLAGS_value=$LDFLAGS
705 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
706 ac_cv_env_LDFLAGS_value=$LDFLAGS
707 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
708 ac_env_CPPFLAGS_value=$CPPFLAGS
709 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
710 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
711 ac_env_CC_set=${CC+set}
713 ac_cv_env_CC_set=${CC+set}
714 ac_cv_env_CC_value=$CC
715 ac_env_CFLAGS_set=${CFLAGS+set}
716 ac_env_CFLAGS_value=$CFLAGS
717 ac_cv_env_CFLAGS_set=${CFLAGS+set}
718 ac_cv_env_CFLAGS_value=$CFLAGS
719 ac_env_CPP_set=${CPP+set}
720 ac_env_CPP_value=$CPP
721 ac_cv_env_CPP_set=${CPP+set}
722 ac_cv_env_CPP_value=$CPP
725 # Report the --help message.
727 if test "$ac_init_help" = "long"; then
728 # Omit some internal or obsolete options to make the list less imposing.
729 # This message is too long to be a string in the A/UX 3.1 sh.
731 \`configure' configures this package to adapt to many kinds of systems.
733 Usage: $0 [OPTION]... [VAR=VALUE]...
735 To assign environment variables (e.g., CC, CFLAGS...), specify them as
736 VAR=VALUE. See below for descriptions of some of the useful variables.
738 Defaults for the options are specified in brackets.
741 -h, --help display this help and exit
742 --help=short display options specific to this package
743 --help=recursive display the short help of all the included packages
744 -V, --version display version information and exit
745 -q, --quiet, --silent do not print \`checking...' messages
746 --cache-file=FILE cache test results in FILE [disabled]
747 -C, --config-cache alias for \`--cache-file=config.cache'
748 -n, --no-create do not create output files
749 --srcdir=DIR find the sources in DIR [configure dir or \`..']
754 Installation directories:
755 --prefix=PREFIX install architecture-independent files in PREFIX
757 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
760 By default, \`make install' will install all the files in
761 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
762 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
763 for instance \`--prefix=\$HOME'.
765 For better control, use the options below.
767 Fine tuning of the installation directories:
768 --bindir=DIR user executables [EPREFIX/bin]
769 --sbindir=DIR system admin executables [EPREFIX/sbin]
770 --libexecdir=DIR program executables [EPREFIX/libexec]
771 --datadir=DIR read-only architecture-independent data [PREFIX/share]
772 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
773 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
774 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
775 --libdir=DIR object code libraries [EPREFIX/lib]
776 --includedir=DIR C header files [PREFIX/include]
777 --oldincludedir=DIR C header files for non-gcc [/usr/include]
778 --infodir=DIR info documentation [PREFIX/info]
779 --mandir=DIR man documentation [PREFIX/man]
785 --program-prefix=PREFIX prepend PREFIX to installed program names
786 --program-suffix=SUFFIX append SUFFIX to installed program names
787 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
790 --build=BUILD configure for building on BUILD [guessed]
791 --host=HOST build programs to run on HOST [BUILD]
795 if test -n "$ac_init_help"; then
800 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
801 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
802 --enable-shared=PKGS build shared libraries default=yes
803 --enable-static=PKGS build static libraries default=yes
804 --enable-fast-install=PKGS optimize for fast installation default=yes
805 --disable-libtool-lock avoid locking (might break parallel builds)
809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
811 --with-gnu-ld assume the C compiler uses GNU ld default=no
812 --with-pic try to use only PIC/non-PIC objects default=use both
813 --with-libldap=DIR Path to the libldap library /usr/local/lib
814 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
816 Some influential environment variables:
817 CXX C++ compiler command
818 CXXFLAGS C++ compiler flags
819 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
820 nonstandard directory <lib dir>
821 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
822 headers in a nonstandard directory <include dir>
823 CC C compiler command
824 CFLAGS C compiler flags
827 Use these variables to override the choices made by `configure' or to help
828 it to find libraries and programs with nonstandard names/locations.
833 if test "$ac_init_help" = "recursive"; then
834 # If there are subdirs, report their specific --help.
836 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
838 # A "../" for each directory in /$ac_subdir.
839 ac_dots=`echo $ac_subdir |
840 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
843 .) # No --srcdir option. We are building in place.
844 ac_sub_srcdir=$srcdir ;;
845 [\\/]* | ?:[\\/]* ) # Absolute path.
846 ac_sub_srcdir=$srcdir/$ac_subdir ;;
848 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
851 # Check for guested configure; otherwise get Cygnus style configure.
852 if test -f $ac_sub_srcdir/configure.gnu; then
854 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
855 elif test -f $ac_sub_srcdir/configure; then
857 $SHELL $ac_sub_srcdir/configure --help=recursive
858 elif test -f $ac_sub_srcdir/configure.ac ||
859 test -f $ac_sub_srcdir/configure.in; then
863 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
869 test -n "$ac_init_help" && exit 0
870 if $ac_init_version; then
873 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
874 Free Software Foundation, Inc.
875 This configure script is free software; the Free Software Foundation
876 gives unlimited permission to copy, distribute and modify it.
882 This file contains any messages produced by compilers while
883 running configure, to aid debugging if configure makes a mistake.
885 It was created by $as_me, which was
886 generated by GNU Autoconf 2.52. Invocation command line was
897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
909 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
926 # Keep a trace of the command line.
927 # Strip out --no-create and --no-recursion so they do not pile up.
928 # Also quote any args containing shell meta-characters.
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c) ;;
936 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
940 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
942 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
945 # Get rid of the leading space.
948 # When interrupted or exit'd, cleanup temporary files, and complete
949 # config.log. We remove comments because anyway the quotes in there
950 # would cause problems or look ugly.
952 # Save into config.log some information that might help in debugging.
954 echo "## ----------------- ##" >&5
955 echo "## Cache variables. ##" >&5
956 echo "## ----------------- ##" >&5
958 # The following way of writing the cache mishandles newlines in values,
961 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
964 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
973 sed "/^$/d" confdefs.h >conftest.log
974 if test -s conftest.log; then
976 echo "## ------------ ##" >&5
977 echo "## confdefs.h. ##" >&5
978 echo "## ------------ ##" >&5
983 test "$ac_signal" != 0 &&
984 echo "$as_me: caught signal $ac_signal" >&5
985 echo "$as_me: exit $exit_status" >&5
986 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
989 for ac_signal in 1 2 13 15; do
990 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
995 rm -rf conftest* confdefs.h
996 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
999 # Let the site file select an alternate cache file if it wants to.
1000 # Prefer explicitly selected file to automatically selected ones.
1001 if test -z "$CONFIG_SITE"; then
1002 if test "x$prefix" != xNONE; then
1003 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1005 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1008 for ac_site_file in $CONFIG_SITE; do
1009 if test -r "$ac_site_file"; then
1010 { echo "$as_me:1010: loading site script $ac_site_file" >&5
1011 echo "$as_me: loading site script $ac_site_file" >&6;}
1012 cat "$ac_site_file" >&5
1017 if test -r "$cache_file"; then
1018 # Some versions of bash will fail to source /dev/null (special
1019 # files actually), so we avoid doing that.
1020 if test -f "$cache_file"; then
1021 { echo "$as_me:1021: loading cache $cache_file" >&5
1022 echo "$as_me: loading cache $cache_file" >&6;}
1024 [\\/]* | ?:[\\/]* ) . $cache_file;;
1025 *) . ./$cache_file;;
1029 { echo "$as_me:1029: creating cache $cache_file" >&5
1030 echo "$as_me: creating cache $cache_file" >&6;}
1034 # Check that the precious variables saved in the cache have kept the same
1036 ac_cache_corrupted=false
1037 for ac_var in `(set) 2>&1 |
1038 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1039 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1040 eval ac_new_set=\$ac_env_${ac_var}_set
1041 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1042 eval ac_new_val="\$ac_env_${ac_var}_value"
1043 case $ac_old_set,$ac_new_set in
1045 { echo "$as_me:1045: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1046 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1047 ac_cache_corrupted=: ;;
1049 { echo "$as_me:1049: error: \`$ac_var' was not set in the previous run" >&5
1050 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1051 ac_cache_corrupted=: ;;
1054 if test "x$ac_old_val" != "x$ac_new_val"; then
1055 { echo "$as_me:1055: error: \`$ac_var' has changed since the previous run:" >&5
1056 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1057 { echo "$as_me:1057: former value: $ac_old_val" >&5
1058 echo "$as_me: former value: $ac_old_val" >&2;}
1059 { echo "$as_me:1059: current value: $ac_new_val" >&5
1060 echo "$as_me: current value: $ac_new_val" >&2;}
1061 ac_cache_corrupted=:
1064 # Pass precious variables to config.status. It doesn't matter if
1065 # we pass some twice (in addition to the command line arguments).
1066 if test "$ac_new_set" = set; then
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1070 ac_configure_args="$ac_configure_args '$ac_arg'"
1072 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1077 if $ac_cache_corrupted; then
1078 { echo "$as_me:1078: error: changes in the environment can compromise the build" >&5
1079 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1080 { { echo "$as_me:1080: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1081 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1082 { (exit 1); exit 1; }; }
1086 ac_cpp='$CPP $CPPFLAGS'
1087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1092 *c*,-n*) ECHO_N= ECHO_C='
1094 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1095 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1097 echo "#! $SHELL" >conftest.sh
1098 echo "exit 0" >>conftest.sh
1099 chmod +x conftest.sh
1100 if { (echo "$as_me:1100: PATH=\".;.\"; conftest.sh") >&5
1101 (PATH=".;."; conftest.sh) 2>&5
1103 echo "$as_me:1103: \$? = $ac_status" >&5
1104 (exit $ac_status); }; then
1105 ac_path_separator=';'
1109 PATH_SEPARATOR="$ac_path_separator"
1113 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1114 if test -f $ac_dir/install-sh; then
1116 ac_install_sh="$ac_aux_dir/install-sh -c"
1118 elif test -f $ac_dir/install.sh; then
1120 ac_install_sh="$ac_aux_dir/install.sh -c"
1122 elif test -f $ac_dir/shtool; then
1124 ac_install_sh="$ac_aux_dir/shtool install -c"
1128 if test -z "$ac_aux_dir"; then
1129 { { echo "$as_me:1129: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1130 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1131 { (exit 1); exit 1; }; }
1133 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1134 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1135 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1137 # Find a good install program. We prefer a C program (faster),
1138 # so one script is as good as another. But avoid the broken or
1139 # incompatible versions:
1140 # SysV /etc/install, /usr/sbin/install
1141 # SunOS /usr/etc/install
1142 # IRIX /sbin/install
1144 # AmigaOS /C/install, which installs bootblocks on floppy discs
1145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1148 # ./install, which can be erroneously created by make from ./install.sh.
1149 echo "$as_me:1149: checking for a BSD compatible install" >&5
1150 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1151 if test -z "$INSTALL"; then
1152 if test "${ac_cv_path_install+set}" = set; then
1153 echo $ECHO_N "(cached) $ECHO_C" >&6
1155 ac_save_IFS=$IFS; IFS=$ac_path_separator
1156 for ac_dir in $PATH; do
1158 # Account for people who put trailing slashes in PATH elements.
1160 / | ./ | .// | /cC/* \
1161 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1164 # OSF1 and SCO ODT 3.0 have their own names for install.
1165 # Don't use installbsd from OSF since it installs stuff as root
1167 for ac_prog in ginstall scoinst install; do
1168 if $as_executable_p "$ac_dir/$ac_prog"; then
1169 if test $ac_prog = install &&
1170 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1171 # AIX install. It has an incompatible calling convention.
1173 elif test $ac_prog = install &&
1174 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1175 # program-specific install script used by HP pwplus--don't use.
1178 ac_cv_path_install="$ac_dir/$ac_prog -c"
1188 if test "${ac_cv_path_install+set}" = set; then
1189 INSTALL=$ac_cv_path_install
1191 # As a last resort, use the slow shell script. We don't cache a
1192 # path for INSTALL within a source directory, because that will
1193 # break other packages using the cache if that directory is
1194 # removed, or if the path is relative.
1195 INSTALL=$ac_install_sh
1198 echo "$as_me:1198: result: $INSTALL" >&5
1199 echo "${ECHO_T}$INSTALL" >&6
1201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1202 # It thinks the first close brace ends the variable substitution.
1203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1209 echo "$as_me:1209: checking whether build environment is sane" >&5
1210 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1213 echo timestamp > conftestfile
1214 # Do `set' in a subshell so we don't clobber the current shell's
1215 # arguments. Must try -L first in case configure is actually a
1216 # symlink; some systems play weird games with the mod time of symlinks
1217 # (eg FreeBSD returns the mod time of the symlink's containing
1220 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1221 if test "$*" = "X"; then
1223 set X `ls -t $srcdir/configure conftestfile`
1225 if test "$*" != "X $srcdir/configure conftestfile" \
1226 && test "$*" != "X conftestfile $srcdir/configure"; then
1228 # If neither matched, then we have a broken ls. This can happen
1229 # if, for instance, CONFIG_SHELL is bash and it inherits a
1230 # broken ls alias from the environment. This has actually
1231 # happened. Such a system could not be considered "sane".
1232 { { echo "$as_me:1232: error: ls -t appears to fail. Make sure there is not a broken
1233 alias in your environment" >&5
1234 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1235 alias in your environment" >&2;}
1236 { (exit 1); exit 1; }; }
1239 test "$2" = conftestfile
1245 { { echo "$as_me:1245: error: newly created file is older than distributed files!
1246 Check your system clock" >&5
1247 echo "$as_me: error: newly created file is older than distributed files!
1248 Check your system clock" >&2;}
1249 { (exit 1); exit 1; }; }
1252 echo "$as_me:1252: result: yes" >&5
1253 echo "${ECHO_T}yes" >&6
1254 test "$program_prefix" != NONE &&
1255 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1256 # Use a double $ so make ignores it.
1257 test "$program_suffix" != NONE &&
1258 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1259 # Double any \ or $. echo might interpret backslashes.
1260 # By default was `s,x,x', remove it if useless.
1261 cat <<\_ACEOF >conftest.sed
1262 s/[\\$]/&&/g;s/;s,x,x,$//
1264 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1267 echo "$as_me:1267: checking whether ${MAKE-make} sets \${MAKE}" >&5
1268 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1269 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1270 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1271 echo $ECHO_N "(cached) $ECHO_C" >&6
1273 cat >conftest.make <<\EOF
1275 @echo 'ac_maketemp="${MAKE}"'
1277 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1278 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1279 if test -n "$ac_maketemp"; then
1280 eval ac_cv_prog_make_${ac_make}_set=yes
1282 eval ac_cv_prog_make_${ac_make}_set=no
1286 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1287 echo "$as_me:1287: result: yes" >&5
1288 echo "${ECHO_T}yes" >&6
1291 echo "$as_me:1291: result: no" >&5
1292 echo "${ECHO_T}no" >&6
1293 SET_MAKE="MAKE=${MAKE-make}"
1300 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1301 { { echo "$as_me:1301: error: source directory already configured; run \"make distclean\" there first" >&5
1302 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1303 { (exit 1); exit 1; }; }
1306 cat >>confdefs.h <<EOF
1307 #define PACKAGE "$PACKAGE"
1310 cat >>confdefs.h <<EOF
1311 #define VERSION "$VERSION"
1314 missing_dir=`cd $ac_aux_dir && pwd`
1315 echo "$as_me:1315: checking for working aclocal" >&5
1316 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1317 # Run test in a subshell; some versions of sh will print an error if
1318 # an executable is not found, even if stderr is redirected.
1319 # Redirect stdin to placate older versions of autoconf. Sigh.
1320 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1322 echo "$as_me:1322: result: found" >&5
1323 echo "${ECHO_T}found" >&6
1325 ACLOCAL="$missing_dir/missing aclocal"
1326 echo "$as_me:1326: result: missing" >&5
1327 echo "${ECHO_T}missing" >&6
1330 echo "$as_me:1330: checking for working autoconf" >&5
1331 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1332 # Run test in a subshell; some versions of sh will print an error if
1333 # an executable is not found, even if stderr is redirected.
1334 # Redirect stdin to placate older versions of autoconf. Sigh.
1335 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1337 echo "$as_me:1337: result: found" >&5
1338 echo "${ECHO_T}found" >&6
1340 AUTOCONF="$missing_dir/missing autoconf"
1341 echo "$as_me:1341: result: missing" >&5
1342 echo "${ECHO_T}missing" >&6
1345 echo "$as_me:1345: checking for working automake" >&5
1346 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1347 # Run test in a subshell; some versions of sh will print an error if
1348 # an executable is not found, even if stderr is redirected.
1349 # Redirect stdin to placate older versions of autoconf. Sigh.
1350 if (automake --version) < /dev/null > /dev/null 2>&1; then
1352 echo "$as_me:1352: result: found" >&5
1353 echo "${ECHO_T}found" >&6
1355 AUTOMAKE="$missing_dir/missing automake"
1356 echo "$as_me:1356: result: missing" >&5
1357 echo "${ECHO_T}missing" >&6
1360 echo "$as_me:1360: checking for working autoheader" >&5
1361 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1362 # Run test in a subshell; some versions of sh will print an error if
1363 # an executable is not found, even if stderr is redirected.
1364 # Redirect stdin to placate older versions of autoconf. Sigh.
1365 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1366 AUTOHEADER=autoheader
1367 echo "$as_me:1367: result: found" >&5
1368 echo "${ECHO_T}found" >&6
1370 AUTOHEADER="$missing_dir/missing autoheader"
1371 echo "$as_me:1371: result: missing" >&5
1372 echo "${ECHO_T}missing" >&6
1375 echo "$as_me:1375: checking for working makeinfo" >&5
1376 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1377 # Run test in a subshell; some versions of sh will print an error if
1378 # an executable is not found, even if stderr is redirected.
1379 # Redirect stdin to placate older versions of autoconf. Sigh.
1380 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1382 echo "$as_me:1382: result: found" >&5
1383 echo "${ECHO_T}found" >&6
1385 MAKEINFO="$missing_dir/missing makeinfo"
1386 echo "$as_me:1386: result: missing" >&5
1387 echo "${ECHO_T}missing" >&6
1390 ac_config_headers="$ac_config_headers src/config.h"
1392 ac_config_commands="$ac_config_commands default-1"
1394 # Find a good install program. We prefer a C program (faster),
1395 # so one script is as good as another. But avoid the broken or
1396 # incompatible versions:
1397 # SysV /etc/install, /usr/sbin/install
1398 # SunOS /usr/etc/install
1399 # IRIX /sbin/install
1401 # AmigaOS /C/install, which installs bootblocks on floppy discs
1402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1405 # ./install, which can be erroneously created by make from ./install.sh.
1406 echo "$as_me:1406: checking for a BSD compatible install" >&5
1407 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1408 if test -z "$INSTALL"; then
1409 if test "${ac_cv_path_install+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1413 for ac_dir in $PATH; do
1415 # Account for people who put trailing slashes in PATH elements.
1417 / | ./ | .// | /cC/* \
1418 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1421 # OSF1 and SCO ODT 3.0 have their own names for install.
1422 # Don't use installbsd from OSF since it installs stuff as root
1424 for ac_prog in ginstall scoinst install; do
1425 if $as_executable_p "$ac_dir/$ac_prog"; then
1426 if test $ac_prog = install &&
1427 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1428 # AIX install. It has an incompatible calling convention.
1430 elif test $ac_prog = install &&
1431 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1432 # program-specific install script used by HP pwplus--don't use.
1435 ac_cv_path_install="$ac_dir/$ac_prog -c"
1445 if test "${ac_cv_path_install+set}" = set; then
1446 INSTALL=$ac_cv_path_install
1448 # As a last resort, use the slow shell script. We don't cache a
1449 # path for INSTALL within a source directory, because that will
1450 # break other packages using the cache if that directory is
1451 # removed, or if the path is relative.
1452 INSTALL=$ac_install_sh
1455 echo "$as_me:1455: result: $INSTALL" >&5
1456 echo "${ECHO_T}$INSTALL" >&6
1458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1459 # It thinks the first close brace ends the variable substitution.
1460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1464 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1467 ac_cpp='$CXXCPP $CPPFLAGS'
1468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1471 if test -n "$ac_tool_prefix"; then
1472 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1476 echo "$as_me:1476: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CXX+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$CXX"; then
1482 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1484 ac_save_IFS=$IFS; IFS=$ac_path_separator
1486 for ac_dir in $ac_dummy; do
1488 test -z "$ac_dir" && ac_dir=.
1489 $as_executable_p "$ac_dir/$ac_word" || continue
1490 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1491 echo "$as_me:1491: found $ac_dir/$ac_word" >&5
1498 if test -n "$CXX"; then
1499 echo "$as_me:1499: result: $CXX" >&5
1500 echo "${ECHO_T}$CXX" >&6
1502 echo "$as_me:1502: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1506 test -n "$CXX" && break
1509 if test -z "$CXX"; then
1511 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1513 # Extract the first word of "$ac_prog", so it can be a program name with args.
1514 set dummy $ac_prog; ac_word=$2
1515 echo "$as_me:1515: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$ac_ct_CXX"; then
1521 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1523 ac_save_IFS=$IFS; IFS=$ac_path_separator
1525 for ac_dir in $ac_dummy; do
1527 test -z "$ac_dir" && ac_dir=.
1528 $as_executable_p "$ac_dir/$ac_word" || continue
1529 ac_cv_prog_ac_ct_CXX="$ac_prog"
1530 echo "$as_me:1530: found $ac_dir/$ac_word" >&5
1536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1537 if test -n "$ac_ct_CXX"; then
1538 echo "$as_me:1538: result: $ac_ct_CXX" >&5
1539 echo "${ECHO_T}$ac_ct_CXX" >&6
1541 echo "$as_me:1541: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1545 test -n "$ac_ct_CXX" && break
1547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1552 # Provide some information about the compiler.
1553 echo "$as_me:1553:" \
1554 "checking for C++ compiler version" >&5
1555 ac_compiler=`set X $ac_compile; echo $2`
1556 { (eval echo "$as_me:1556: \"$ac_compiler --version </dev/null >&5\"") >&5
1557 (eval $ac_compiler --version </dev/null >&5) 2>&5
1559 echo "$as_me:1559: \$? = $ac_status" >&5
1560 (exit $ac_status); }
1561 { (eval echo "$as_me:1561: \"$ac_compiler -v </dev/null >&5\"") >&5
1562 (eval $ac_compiler -v </dev/null >&5) 2>&5
1564 echo "$as_me:1564: \$? = $ac_status" >&5
1565 (exit $ac_status); }
1566 { (eval echo "$as_me:1566: \"$ac_compiler -V </dev/null >&5\"") >&5
1567 (eval $ac_compiler -V </dev/null >&5) 2>&5
1569 echo "$as_me:1569: \$? = $ac_status" >&5
1570 (exit $ac_status); }
1572 cat >conftest.$ac_ext <<_ACEOF
1573 #line 1573 "configure"
1574 #include "confdefs.h"
1584 ac_clean_files_save=$ac_clean_files
1585 ac_clean_files="$ac_clean_files a.out a.exe"
1586 # Try to create an executable without -o first, disregard a.out.
1587 # It will help us diagnose broken compilers, and finding out an intuition
1589 echo "$as_me:1589: checking for C++ compiler default output" >&5
1590 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1591 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1592 if { (eval echo "$as_me:1592: \"$ac_link_default\"") >&5
1593 (eval $ac_link_default) 2>&5
1595 echo "$as_me:1595: \$? = $ac_status" >&5
1596 (exit $ac_status); }; then
1597 # Find the output, starting from the most likely. This scheme is
1598 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1600 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1601 ls a.out conftest 2>/dev/null;
1602 ls a.* conftest.* 2>/dev/null`; do
1604 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1605 a.out ) # We found the default executable, but exeext='' is most
1608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1609 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1616 echo "$as_me: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1618 { { echo "$as_me:1618: error: C++ compiler cannot create executables" >&5
1619 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1620 { (exit 77); exit 77; }; }
1623 ac_exeext=$ac_cv_exeext
1624 echo "$as_me:1624: result: $ac_file" >&5
1625 echo "${ECHO_T}$ac_file" >&6
1627 # Check the compiler produces executables we can run. If not, either
1628 # the compiler is broken, or we cross compile.
1629 echo "$as_me:1629: checking whether the C++ compiler works" >&5
1630 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1631 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1632 # If not cross compiling, check that we can run a simple program.
1633 if test "$cross_compiling" != yes; then
1634 if { ac_try='./$ac_file'
1635 { (eval echo "$as_me:1635: \"$ac_try\"") >&5
1638 echo "$as_me:1638: \$? = $ac_status" >&5
1639 (exit $ac_status); }; }; then
1642 if test "$cross_compiling" = maybe; then
1645 { { echo "$as_me:1645: error: cannot run C++ compiled programs.
1646 If you meant to cross compile, use \`--host'." >&5
1647 echo "$as_me: error: cannot run C++ compiled programs.
1648 If you meant to cross compile, use \`--host'." >&2;}
1649 { (exit 1); exit 1; }; }
1653 echo "$as_me:1653: result: yes" >&5
1654 echo "${ECHO_T}yes" >&6
1656 rm -f a.out a.exe conftest$ac_cv_exeext
1657 ac_clean_files=$ac_clean_files_save
1658 # Check the compiler produces executables we can run. If not, either
1659 # the compiler is broken, or we cross compile.
1660 echo "$as_me:1660: checking whether we are cross compiling" >&5
1661 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1662 echo "$as_me:1662: result: $cross_compiling" >&5
1663 echo "${ECHO_T}$cross_compiling" >&6
1665 echo "$as_me:1665: checking for executable suffix" >&5
1666 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1667 if { (eval echo "$as_me:1667: \"$ac_link\"") >&5
1668 (eval $ac_link) 2>&5
1670 echo "$as_me:1670: \$? = $ac_status" >&5
1671 (exit $ac_status); }; then
1672 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1673 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1674 # work properly (i.e., refer to `conftest.exe'), while it won't with
1676 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1678 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1686 { { echo "$as_me:1686: error: cannot compute EXEEXT: cannot compile and link" >&5
1687 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1688 { (exit 1); exit 1; }; }
1691 rm -f conftest$ac_cv_exeext
1692 echo "$as_me:1692: result: $ac_cv_exeext" >&5
1693 echo "${ECHO_T}$ac_cv_exeext" >&6
1695 rm -f conftest.$ac_ext
1696 EXEEXT=$ac_cv_exeext
1698 echo "$as_me:1698: checking for object suffix" >&5
1699 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1700 if test "${ac_cv_objext+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 cat >conftest.$ac_ext <<_ACEOF
1704 #line 1704 "configure"
1705 #include "confdefs.h"
1715 rm -f conftest.o conftest.obj
1716 if { (eval echo "$as_me:1716: \"$ac_compile\"") >&5
1717 (eval $ac_compile) 2>&5
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); }; then
1721 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1724 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1729 echo "$as_me: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1731 { { echo "$as_me:1731: error: cannot compute OBJEXT: cannot compile" >&5
1732 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1733 { (exit 1); exit 1; }; }
1736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1738 echo "$as_me:1738: result: $ac_cv_objext" >&5
1739 echo "${ECHO_T}$ac_cv_objext" >&6
1740 OBJEXT=$ac_cv_objext
1742 echo "$as_me:1742: checking whether we are using the GNU C++ compiler" >&5
1743 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1744 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 cat >conftest.$ac_ext <<_ACEOF
1748 #line 1748 "configure"
1749 #include "confdefs.h"
1762 rm -f conftest.$ac_objext
1763 if { (eval echo "$as_me:1763: \"$ac_compile\"") >&5
1764 (eval $ac_compile) 2>&5
1766 echo "$as_me:1766: \$? = $ac_status" >&5
1767 (exit $ac_status); } &&
1768 { ac_try='test -s conftest.$ac_objext'
1769 { (eval echo "$as_me:1769: \"$ac_try\"") >&5
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1776 echo "$as_me: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1780 rm -f conftest.$ac_objext conftest.$ac_ext
1781 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1784 echo "$as_me:1784: result: $ac_cv_cxx_compiler_gnu" >&5
1785 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1786 GXX=`test $ac_compiler_gnu = yes && echo yes`
1787 ac_test_CXXFLAGS=${CXXFLAGS+set}
1788 ac_save_CXXFLAGS=$CXXFLAGS
1790 echo "$as_me:1790: checking whether $CXX accepts -g" >&5
1791 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1792 if test "${ac_cv_prog_cxx_g+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 cat >conftest.$ac_ext <<_ACEOF
1796 #line 1796 "configure"
1797 #include "confdefs.h"
1807 rm -f conftest.$ac_objext
1808 if { (eval echo "$as_me:1808: \"$ac_compile\"") >&5
1809 (eval $ac_compile) 2>&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); } &&
1813 { ac_try='test -s conftest.$ac_objext'
1814 { (eval echo "$as_me:1814: \"$ac_try\"") >&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; }; then
1819 ac_cv_prog_cxx_g=yes
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1827 echo "$as_me:1827: result: $ac_cv_prog_cxx_g" >&5
1828 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1829 if test "$ac_test_CXXFLAGS" = set; then
1830 CXXFLAGS=$ac_save_CXXFLAGS
1831 elif test $ac_cv_prog_cxx_g = yes; then
1832 if test "$GXX" = yes; then
1838 if test "$GXX" = yes; then
1844 for ac_declaration in \
1846 '#include <stdlib.h>' \
1847 'extern "C" void std::exit (int) throw (); using std::exit;' \
1848 'extern "C" void std::exit (int); using std::exit;' \
1849 'extern "C" void exit (int) throw ();' \
1850 'extern "C" void exit (int);' \
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line 1854 "configure"
1855 #include "confdefs.h"
1866 rm -f conftest.$ac_objext
1867 if { (eval echo "$as_me:1867: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:1870: \$? = $ac_status" >&5
1871 (exit $ac_status); } &&
1872 { ac_try='test -s conftest.$ac_objext'
1873 { (eval echo "$as_me:1873: \"$ac_try\"") >&5
1876 echo "$as_me:1876: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1880 echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1884 rm -f conftest.$ac_objext conftest.$ac_ext
1885 cat >conftest.$ac_ext <<_ACEOF
1886 #line 1886 "configure"
1887 #include "confdefs.h"
1897 rm -f conftest.$ac_objext
1898 if { (eval echo "$as_me:1898: \"$ac_compile\"") >&5
1899 (eval $ac_compile) 2>&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); } &&
1903 { ac_try='test -s conftest.$ac_objext'
1904 { (eval echo "$as_me:1904: \"$ac_try\"") >&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); }; }; then
1911 echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 rm -f conftest.$ac_objext conftest.$ac_ext
1917 if test -n "$ac_declaration"; then
1918 echo '#ifdef __cplusplus' >>confdefs.h
1919 echo $ac_declaration >>confdefs.h
1920 echo '#endif' >>confdefs.h
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929 # Check whether --enable-shared or --disable-shared was given.
1930 if test "${enable_shared+set}" = set; then
1931 enableval="$enable_shared"
1932 p=${PACKAGE-default}
1934 yes) enable_shared=yes ;;
1935 no) enable_shared=no ;;
1938 # Look at the argument we got. We use all the common list separators.
1939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1940 for pkg in $enableval; do
1941 if test "X$pkg" = "X$p"; then
1951 # Check whether --enable-static or --disable-static was given.
1952 if test "${enable_static+set}" = set; then
1953 enableval="$enable_static"
1954 p=${PACKAGE-default}
1956 yes) enable_static=yes ;;
1957 no) enable_static=no ;;
1960 # Look at the argument we got. We use all the common list separators.
1961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1962 for pkg in $enableval; do
1963 if test "X$pkg" = "X$p"; then
1973 # Check whether --enable-fast-install or --disable-fast-install was given.
1974 if test "${enable_fast_install+set}" = set; then
1975 enableval="$enable_fast_install"
1976 p=${PACKAGE-default}
1978 yes) enable_fast_install=yes ;;
1979 no) enable_fast_install=no ;;
1981 enable_fast_install=no
1982 # Look at the argument we got. We use all the common list separators.
1983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1984 for pkg in $enableval; do
1985 if test "X$pkg" = "X$p"; then
1986 enable_fast_install=yes
1993 enable_fast_install=yes
1995 # Make sure we can run config.sub.
1996 $ac_config_sub sun4 >/dev/null 2>&1 ||
1997 { { echo "$as_me:1997: error: cannot run $ac_config_sub" >&5
1998 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1999 { (exit 1); exit 1; }; }
2001 echo "$as_me:2001: checking build system type" >&5
2002 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2003 if test "${ac_cv_build+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 ac_cv_build_alias=$build_alias
2007 test -z "$ac_cv_build_alias" &&
2008 ac_cv_build_alias=`$ac_config_guess`
2009 test -z "$ac_cv_build_alias" &&
2010 { { echo "$as_me:2010: error: cannot guess build type; you must specify one" >&5
2011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012 { (exit 1); exit 1; }; }
2013 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2014 { { echo "$as_me:2014: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2015 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2016 { (exit 1); exit 1; }; }
2019 echo "$as_me:2019: result: $ac_cv_build" >&5
2020 echo "${ECHO_T}$ac_cv_build" >&6
2022 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2023 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2024 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2026 test -z "$build_alias" &&
2027 build_alias=$ac_cv_build
2029 echo "$as_me:2029: checking host system type" >&5
2030 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2031 if test "${ac_cv_host+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 ac_cv_host_alias=$host_alias
2035 test -z "$ac_cv_host_alias" &&
2036 ac_cv_host_alias=$ac_cv_build_alias
2037 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2038 { { echo "$as_me:2038: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2039 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2040 { (exit 1); exit 1; }; }
2043 echo "$as_me:2043: result: $ac_cv_host" >&5
2044 echo "${ECHO_T}$ac_cv_host" >&6
2046 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2047 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2048 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2050 test -z "$host_alias" &&
2051 host_alias=$ac_cv_host
2054 ac_cpp='$CPP $CPPFLAGS'
2055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058 if test -n "$ac_tool_prefix"; then
2059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2061 echo "$as_me:2061: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
2069 ac_save_IFS=$IFS; IFS=$ac_path_separator
2071 for ac_dir in $ac_dummy; do
2073 test -z "$ac_dir" && ac_dir=.
2074 $as_executable_p "$ac_dir/$ac_word" || continue
2075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076 echo "$as_me:2076: found $ac_dir/$ac_word" >&5
2083 if test -n "$CC"; then
2084 echo "$as_me:2084: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2087 echo "$as_me:2087: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2092 if test -z "$ac_cv_prog_CC"; then
2094 # Extract the first word of "gcc", so it can be a program name with args.
2095 set dummy gcc; ac_word=$2
2096 echo "$as_me:2096: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 ac_save_IFS=$IFS; IFS=$ac_path_separator
2106 for ac_dir in $ac_dummy; do
2108 test -z "$ac_dir" && ac_dir=.
2109 $as_executable_p "$ac_dir/$ac_word" || continue
2110 ac_cv_prog_ac_ct_CC="gcc"
2111 echo "$as_me:2111: found $ac_dir/$ac_word" >&5
2117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118 if test -n "$ac_ct_CC"; then
2119 echo "$as_me:2119: result: $ac_ct_CC" >&5
2120 echo "${ECHO_T}$ac_ct_CC" >&6
2122 echo "$as_me:2122: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2131 if test -z "$CC"; then
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}cc; ac_word=$2
2135 echo "$as_me:2135: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 ac_save_IFS=$IFS; IFS=$ac_path_separator
2145 for ac_dir in $ac_dummy; do
2147 test -z "$ac_dir" && ac_dir=.
2148 $as_executable_p "$ac_dir/$ac_word" || continue
2149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 echo "$as_me:2150: found $ac_dir/$ac_word" >&5
2157 if test -n "$CC"; then
2158 echo "$as_me:2158: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2161 echo "$as_me:2161: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2166 if test -z "$ac_cv_prog_CC"; then
2168 # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 echo "$as_me:2170: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$ac_ct_CC"; then
2176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 ac_save_IFS=$IFS; IFS=$ac_path_separator
2180 for ac_dir in $ac_dummy; do
2182 test -z "$ac_dir" && ac_dir=.
2183 $as_executable_p "$ac_dir/$ac_word" || continue
2184 ac_cv_prog_ac_ct_CC="cc"
2185 echo "$as_me:2185: found $ac_dir/$ac_word" >&5
2191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192 if test -n "$ac_ct_CC"; then
2193 echo "$as_me:2193: result: $ac_ct_CC" >&5
2194 echo "${ECHO_T}$ac_ct_CC" >&6
2196 echo "$as_me:2196: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2206 if test -z "$CC"; then
2207 # Extract the first word of "cc", so it can be a program name with args.
2208 set dummy cc; ac_word=$2
2209 echo "$as_me:2209: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 ac_save_IFS=$IFS; IFS=$ac_path_separator
2220 for ac_dir in $ac_dummy; do
2222 test -z "$ac_dir" && ac_dir=.
2223 $as_executable_p "$ac_dir/$ac_word" || continue
2224 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2225 ac_prog_rejected=yes
2229 echo "$as_me:2229: found $ac_dir/$ac_word" >&5
2233 if test $ac_prog_rejected = yes; then
2234 # We found a bogon in the path, so make sure we never use it.
2235 set dummy $ac_cv_prog_CC
2237 if test $# != 0; then
2238 # We chose a different compiler from the bogus one.
2239 # However, it has the same basename, so the bogon will be chosen
2240 # first if we set CC to just the basename; use the full file name.
2242 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2250 if test -n "$CC"; then
2251 echo "$as_me:2251: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6
2254 echo "$as_me:2254: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2259 if test -z "$CC"; then
2260 if test -n "$ac_tool_prefix"; then
2263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2265 echo "$as_me:2265: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_CC+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 ac_save_IFS=$IFS; IFS=$ac_path_separator
2275 for ac_dir in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir=.
2278 $as_executable_p "$ac_dir/$ac_word" || continue
2279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2280 echo "$as_me:2280: found $ac_dir/$ac_word" >&5
2287 if test -n "$CC"; then
2288 echo "$as_me:2288: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6
2291 echo "$as_me:2291: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2295 test -n "$CC" && break
2298 if test -z "$CC"; then
2302 # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy $ac_prog; ac_word=$2
2304 echo "$as_me:2304: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 if test -n "$ac_ct_CC"; then
2310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312 ac_save_IFS=$IFS; IFS=$ac_path_separator
2314 for ac_dir in $ac_dummy; do
2316 test -z "$ac_dir" && ac_dir=.
2317 $as_executable_p "$ac_dir/$ac_word" || continue
2318 ac_cv_prog_ac_ct_CC="$ac_prog"
2319 echo "$as_me:2319: found $ac_dir/$ac_word" >&5
2325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2326 if test -n "$ac_ct_CC"; then
2327 echo "$as_me:2327: result: $ac_ct_CC" >&5
2328 echo "${ECHO_T}$ac_ct_CC" >&6
2330 echo "$as_me:2330: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2334 test -n "$ac_ct_CC" && break
2342 test -z "$CC" && { { echo "$as_me:2342: error: no acceptable cc found in \$PATH" >&5
2343 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2344 { (exit 1); exit 1; }; }
2346 # Provide some information about the compiler.
2347 echo "$as_me:2347:" \
2348 "checking for C compiler version" >&5
2349 ac_compiler=`set X $ac_compile; echo $2`
2350 { (eval echo "$as_me:2350: \"$ac_compiler --version </dev/null >&5\"") >&5
2351 (eval $ac_compiler --version </dev/null >&5) 2>&5
2353 echo "$as_me:2353: \$? = $ac_status" >&5
2354 (exit $ac_status); }
2355 { (eval echo "$as_me:2355: \"$ac_compiler -v </dev/null >&5\"") >&5
2356 (eval $ac_compiler -v </dev/null >&5) 2>&5
2358 echo "$as_me:2358: \$? = $ac_status" >&5
2359 (exit $ac_status); }
2360 { (eval echo "$as_me:2360: \"$ac_compiler -V </dev/null >&5\"") >&5
2361 (eval $ac_compiler -V </dev/null >&5) 2>&5
2363 echo "$as_me:2363: \$? = $ac_status" >&5
2364 (exit $ac_status); }
2366 echo "$as_me:2366: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 cat >conftest.$ac_ext <<_ACEOF
2372 #line 2372 "configure"
2373 #include "confdefs.h"
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:2387: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>&5
2390 echo "$as_me:2390: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:2393: \"$ac_try\"") >&5
2396 echo "$as_me:2396: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 echo "$as_me:2408: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2414 echo "$as_me:2414: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #line 2420 "configure"
2421 #include "confdefs.h"
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:2432: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>&5
2435 echo "$as_me:2435: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:2438: \"$ac_try\"") >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2451 echo "$as_me:2451: result: $ac_cv_prog_cc_g" >&5
2452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2453 if test "$ac_test_CFLAGS" = set; then
2454 CFLAGS=$ac_save_CFLAGS
2455 elif test $ac_cv_prog_cc_g = yes; then
2456 if test "$GCC" = yes; then
2462 if test "$GCC" = yes; then
2468 # Some people use a C++ compiler to compile C. Since we use `exit',
2469 # in C++ we need to declare it. In case someone uses the same compiler
2470 # for both compiling C and C++ we need to have the C++ compiler decide
2471 # the declaration of exit, since it's the most demanding environment.
2472 cat >conftest.$ac_ext <<_ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:2478: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>&5
2481 echo "$as_me:2481: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:2484: \"$ac_try\"") >&5
2487 echo "$as_me:2487: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 for ac_declaration in \
2491 '#include <stdlib.h>' \
2492 'extern "C" void std::exit (int) throw (); using std::exit;' \
2493 'extern "C" void std::exit (int); using std::exit;' \
2494 'extern "C" void exit (int) throw ();' \
2495 'extern "C" void exit (int);' \
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line 2499 "configure"
2500 #include "confdefs.h"
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:2512: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>&5
2515 echo "$as_me:2515: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:2518: \"$ac_try\"") >&5
2521 echo "$as_me:2521: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2525 echo "$as_me: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2529 rm -f conftest.$ac_objext conftest.$ac_ext
2530 cat >conftest.$ac_ext <<_ACEOF
2531 #line 2531 "configure"
2532 #include "confdefs.h"
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:2543: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>&5
2546 echo "$as_me:2546: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:2549: \"$ac_try\"") >&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2556 echo "$as_me: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2559 rm -f conftest.$ac_objext conftest.$ac_ext
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2569 echo "$as_me: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2572 rm -f conftest.$ac_objext conftest.$ac_ext
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2580 if test "${with_gnu_ld+set}" = set; then
2581 withval="$with_gnu_ld"
2582 test "$withval" = no || with_gnu_ld=yes
2587 if test "$GCC" = yes; then
2588 # Check if gcc -print-prog-name=ld gives a path.
2589 echo "$as_me:2589: checking for ld used by GCC" >&5
2590 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2593 # gcc leaves a trailing carriage return which upsets mingw
2594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2599 # Accept absolute paths.
2600 [\\/]* | [A-Za-z]:[\\/]*)
2601 re_direlt='/[^/][^/]*/\.\./'
2602 # Canonicalize the path of ld
2603 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2604 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2605 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2607 test -z "$LD" && LD="$ac_prog"
2610 # If it fails, then pretend we aren't using GCC.
2614 # If it is relative, then search for the first ld in PATH.
2618 elif test "$with_gnu_ld" = yes; then
2619 echo "$as_me:2619: checking for GNU ld" >&5
2620 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2622 echo "$as_me:2622: checking for non-GNU ld" >&5
2623 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2625 if test "${lt_cv_path_LD+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -z "$LD"; then
2629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2630 for ac_dir in $PATH; do
2631 test -z "$ac_dir" && ac_dir=.
2632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2633 lt_cv_path_LD="$ac_dir/$ac_prog"
2634 # Check to see if the program is GNU ld. I'd rather use --version,
2635 # but apparently some GNU ld's only accept -v.
2636 # Break only if it was the GNU/non-GNU ld that we prefer.
2637 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2638 test "$with_gnu_ld" != no && break
2640 test "$with_gnu_ld" != yes && break
2646 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2651 if test -n "$LD"; then
2652 echo "$as_me:2652: result: $LD" >&5
2653 echo "${ECHO_T}$LD" >&6
2655 echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2658 test -z "$LD" && { { echo "$as_me:2658: error: no acceptable ld found in \$PATH" >&5
2659 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2660 { (exit 1); exit 1; }; }
2661 echo "$as_me:2661: checking if the linker ($LD) is GNU ld" >&5
2662 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2663 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2667 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2668 lt_cv_prog_gnu_ld=yes
2670 lt_cv_prog_gnu_ld=no
2673 echo "$as_me:2673: result: $lt_cv_prog_gnu_ld" >&5
2674 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2675 with_gnu_ld=$lt_cv_prog_gnu_ld
2677 echo "$as_me:2677: checking for $LD option to reload object files" >&5
2678 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2679 if test "${lt_cv_ld_reload_flag+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 lt_cv_ld_reload_flag='-r'
2684 echo "$as_me:2684: result: $lt_cv_ld_reload_flag" >&5
2685 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2686 reload_flag=$lt_cv_ld_reload_flag
2687 test -n "$reload_flag" && reload_flag=" $reload_flag"
2689 echo "$as_me:2689: checking for BSD-compatible nm" >&5
2690 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2691 if test "${lt_cv_path_NM+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 if test -n "$NM"; then
2695 # Let the user override the test.
2698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2699 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2700 test -z "$ac_dir" && ac_dir=.
2701 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2702 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2703 # Check to see if the nm accepts a BSD-compat flag.
2704 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2705 # nm: unknown option "B" ignored
2706 # Tru64's nm complains that /dev/null is an invalid object file
2707 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2708 lt_cv_path_NM="$tmp_nm -B"
2710 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2711 lt_cv_path_NM="$tmp_nm -p"
2714 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2715 continue # so that we can try to find one that supports BSD flags
2720 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2725 echo "$as_me:2725: result: $NM" >&5
2726 echo "${ECHO_T}$NM" >&6
2728 echo "$as_me:2728: checking whether ln -s works" >&5
2729 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2731 if test "$LN_S" = "ln -s"; then
2732 echo "$as_me:2732: result: yes" >&5
2733 echo "${ECHO_T}yes" >&6
2735 echo "$as_me:2735: result: no, using $LN_S" >&5
2736 echo "${ECHO_T}no, using $LN_S" >&6
2739 echo "$as_me:2739: checking how to recognise dependant libraries" >&5
2740 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2741 if test "${lt_cv_deplibs_check_method+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 lt_cv_file_magic_cmd='$MAGIC_CMD'
2745 lt_cv_file_magic_test_file=
2746 lt_cv_deplibs_check_method='unknown'
2747 # Need to set the preceding variable on all platforms that support
2748 # interlibrary dependencies.
2749 # 'none' -- dependencies not supported.
2750 # `unknown' -- same as none, but documents that we really don't know.
2751 # 'pass_all' -- all dependencies passed with no checks.
2752 # 'test_compile' -- check by making test program.
2753 # ['file_magic [regex]'] -- check by looking for files in library path
2754 # which responds to the $file_magic_cmd with a given egrep regex.
2755 # If you have `file' or equivalent on your system and you're not sure
2756 # whether `pass_all' will *always* work, you probably want this one.
2760 lt_cv_deplibs_check_method=pass_all
2764 lt_cv_deplibs_check_method=pass_all
2768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2769 lt_cv_file_magic_cmd='/usr/bin/file -L'
2770 lt_cv_file_magic_test_file=/shlib/libc.so
2773 cygwin* | mingw* | pw32*)
2774 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2775 lt_cv_file_magic_cmd='$OBJDUMP -f'
2778 darwin* | rhapsody*)
2779 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2780 lt_cv_file_magic_cmd='/usr/bin/file -L'
2782 rhapsody* | darwin1.[012])
2783 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2786 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2792 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2795 # Not sure whether the presence of OpenBSD here was a mistake.
2796 # Let's accept both of them until this is cleared up.
2797 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2798 lt_cv_file_magic_cmd=/usr/bin/file
2799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2803 lt_cv_deplibs_check_method=pass_all
2808 lt_cv_deplibs_check_method=pass_all
2812 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2813 lt_cv_file_magic_cmd=/usr/bin/file
2814 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2820 # this will be overridden with pass_all, but let us keep it just in case
2821 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2825 *-32|*"-32 ") libmagic=32-bit;;
2826 *-n32|*"-n32 ") libmagic=N32;;
2827 *-64|*"-64 ") libmagic=64-bit;;
2828 *) libmagic=never-match;;
2830 # this will be overridden with pass_all, but let us keep it just in case
2831 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2834 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2835 lt_cv_deplibs_check_method=pass_all
2838 # This must be Linux ELF.
2841 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* | m68* )
2842 lt_cv_deplibs_check_method=pass_all ;;
2844 # glibc up to 2.1.1 does not perform some relocations on ARM
2845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2847 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2851 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2852 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2854 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2860 lt_cv_file_magic_cmd=/usr/bin/file
2861 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2865 lt_cv_file_magic_cmd=/usr/bin/file
2866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2870 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2874 osf3* | osf4* | osf5*)
2875 # this will be overridden with pass_all, but let us keep it just in case
2876 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2877 lt_cv_file_magic_test_file=/shlib/libc.so
2878 lt_cv_deplibs_check_method=pass_all
2882 lt_cv_deplibs_check_method=pass_all
2886 lt_cv_deplibs_check_method=pass_all
2887 lt_cv_file_magic_test_file=/lib/libc.so
2890 sysv5uw[78]* | sysv4*uw2*)
2891 lt_cv_deplibs_check_method=pass_all
2894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2895 case $host_vendor in
2897 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]'
2898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2901 lt_cv_deplibs_check_method=pass_all
2904 lt_cv_file_magic_cmd='/bin/file'
2905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2908 lt_cv_file_magic_cmd='/bin/file'
2909 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2910 lt_cv_file_magic_test_file=/lib/libc.so
2917 echo "$as_me:2917: result: $lt_cv_deplibs_check_method" >&5
2918 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2919 file_magic_cmd=$lt_cv_file_magic_cmd
2920 deplibs_check_method=$lt_cv_deplibs_check_method
2922 # Check for command to grab the raw symbol name followed by C symbol from nm.
2923 echo "$as_me:2923: checking command to parse $NM output" >&5
2924 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2925 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 # These are sane defaults that work on at least a few old systems.
2930 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2932 # Character class describing NM global symbol codes.
2933 symcode='[BCDEGRST]'
2935 # Regexp to match symbols that can be accessed directly from C.
2936 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2938 # Transform the above into a raw symbol and a C symbol.
2939 symxfrm='\1 \2\3 \3'
2941 # Transform an extracted symbol line into a proper C declaration
2942 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2944 # Transform an extracted symbol line into symbol name and symbol address
2945 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2947 # Define system-specific variables.
2952 cygwin* | mingw* | pw32*)
2953 symcode='[ABCDGISTW]'
2955 hpux*) # Its linker distinguishes data from code symbols
2956 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2957 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2960 symcode='[BCDEGRST]'
2970 # Handle CRLF in mingw tool chain
2974 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2978 # If we're using GNU nm, then use its standard symbol codes.
2979 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2980 symcode='[ABCDGISTW]'
2983 # Try without a prefix undercore, then with it.
2984 for ac_symprfx in "" "_"; do
2986 # Write the raw and C identifiers.
2987 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2989 # Check to see that the pipe works correctly.
2992 cat > conftest.$ac_ext <<EOF
2997 void nm_test_func(){}
3001 int main(){nm_test_var='a';nm_test_func();return(0);}
3004 if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5
3005 (eval $ac_compile) 2>&5
3007 echo "$as_me:3007: \$? = $ac_status" >&5
3008 (exit $ac_status); }; then
3009 # Now try to grab the symbols.
3011 if { (eval echo "$as_me:3011: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3012 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3014 echo "$as_me:3014: \$? = $ac_status" >&5
3015 (exit $ac_status); } && test -s "$nlist"; then
3016 # Try sorting and uniquifying the output.
3017 if sort "$nlist" | uniq > "$nlist"T; then
3018 mv -f "$nlist"T "$nlist"
3023 # Make sure that we snagged all the symbols we need.
3024 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3025 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3026 cat <<EOF > conftest.$ac_ext
3032 # Now generate the symbol file.
3033 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3035 cat <<EOF >> conftest.$ac_ext
3036 #if defined (__STDC__) && __STDC__
3037 # define lt_ptr void *
3039 # define lt_ptr char *
3043 /* The mapping between symbol names and symbols. */
3048 lt_preloaded_symbols[] =
3051 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3052 cat <<\EOF >> conftest.$ac_ext
3060 # Now try linking the two files.
3061 mv conftest.$ac_objext conftstm.$ac_objext
3063 save_CFLAGS="$CFLAGS"
3064 LIBS="conftstm.$ac_objext"
3065 CFLAGS="$CFLAGS$no_builtin_flag"
3066 if { (eval echo "$as_me:3066: \"$ac_link\"") >&5
3067 (eval $ac_link) 2>&5
3069 echo "$as_me:3069: \$? = $ac_status" >&5
3070 (exit $ac_status); } && test -s conftest; then
3074 CFLAGS="$save_CFLAGS"
3076 echo "cannot find nm_test_func in $nlist" >&5
3079 echo "cannot find nm_test_var in $nlist" >&5
3082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3085 echo "$progname: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3088 rm -f conftest* conftst*
3090 # Do not use the global_symbol_pipe unless it works.
3091 if test "$pipe_works" = yes; then
3094 lt_cv_sys_global_symbol_pipe=
3100 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3101 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3102 global_symbol_to_cdecl=
3103 global_symbol_to_c_name_address=
3105 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3106 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3108 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3110 echo "$as_me:3110: result: failed" >&5
3111 echo "${ECHO_T}failed" >&6
3113 echo "$as_me:3113: result: ok" >&5
3114 echo "${ECHO_T}ok" >&6
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 echo "$as_me:3122: checking how to run the C preprocessor" >&5
3123 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3124 # On Suns, sometimes $CPP names a directory.
3125 if test -n "$CPP" && test -d "$CPP"; then
3128 if test -z "$CPP"; then
3129 if test "${ac_cv_prog_CPP+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 # Double quotes because CPP needs to be expanded
3133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3136 for ac_c_preproc_warn_flag in '' yes
3138 # Use a header file that comes with gcc, so configuring glibc
3139 # with a fresh cross-compiler works.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3143 #line 3143 "configure"
3144 #include "confdefs.h"
3148 if { (eval echo "$as_me:3148: \"$ac_cpp conftest.$ac_ext\"") >&5
3149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3151 egrep -v '^ *\+' conftest.er1 >conftest.err
3153 cat conftest.err >&5
3154 echo "$as_me:3154: \$? = $ac_status" >&5
3155 (exit $ac_status); } >/dev/null; then
3156 if test -s conftest.err; then
3157 ac_cpp_err=$ac_c_preproc_warn_flag
3164 if test -z "$ac_cpp_err"; then
3167 echo "$as_me: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3169 # Broken: fails on valid input.
3172 rm -f conftest.err conftest.$ac_ext
3174 # OK, works on sane cases. Now check whether non-existent headers
3175 # can be detected and how.
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line 3177 "configure"
3178 #include "confdefs.h"
3179 #include <ac_nonexistent.h>
3181 if { (eval echo "$as_me:3181: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3184 egrep -v '^ *\+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:3187: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3197 if test -z "$ac_cpp_err"; then
3198 # Broken: success on invalid input.
3201 echo "$as_me: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3203 # Passes both tests.
3207 rm -f conftest.err conftest.$ac_ext
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.$ac_ext
3212 if $ac_preproc_ok; then
3224 echo "$as_me:3224: result: $CPP" >&5
3225 echo "${ECHO_T}$CPP" >&6
3227 for ac_c_preproc_warn_flag in '' yes
3229 # Use a header file that comes with gcc, so configuring glibc
3230 # with a fresh cross-compiler works.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3234 #line 3234 "configure"
3235 #include "confdefs.h"
3239 if { (eval echo "$as_me:3239: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242 egrep -v '^ *\+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:3245: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3255 if test -z "$ac_cpp_err"; then
3258 echo "$as_me: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 # Broken: fails on valid input.
3263 rm -f conftest.err conftest.$ac_ext
3265 # OK, works on sane cases. Now check whether non-existent headers
3266 # can be detected and how.
3267 cat >conftest.$ac_ext <<_ACEOF
3268 #line 3268 "configure"
3269 #include "confdefs.h"
3270 #include <ac_nonexistent.h>
3272 if { (eval echo "$as_me:3272: \"$ac_cpp conftest.$ac_ext\"") >&5
3273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3275 egrep -v '^ *\+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 echo "$as_me:3278: \$? = $ac_status" >&5
3279 (exit $ac_status); } >/dev/null; then
3280 if test -s conftest.err; then
3281 ac_cpp_err=$ac_c_preproc_warn_flag
3288 if test -z "$ac_cpp_err"; then
3289 # Broken: success on invalid input.
3292 echo "$as_me: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3294 # Passes both tests.
3298 rm -f conftest.err conftest.$ac_ext
3301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3302 rm -f conftest.err conftest.$ac_ext
3303 if $ac_preproc_ok; then
3306 { { echo "$as_me:3306: error: C preprocessor \"$CPP\" fails sanity check" >&5
3307 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3308 { (exit 1); exit 1; }; }
3312 ac_cpp='$CPP $CPPFLAGS'
3313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317 for ac_header in dlfcn.h
3319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3320 echo "$as_me:3320: checking for $ac_header" >&5
3321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 cat >conftest.$ac_ext <<_ACEOF
3326 #line 3326 "configure"
3327 #include "confdefs.h"
3328 #include <$ac_header>
3330 if { (eval echo "$as_me:3330: \"$ac_cpp conftest.$ac_ext\"") >&5
3331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3333 egrep -v '^ *\+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:3336: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_c_preproc_warn_flag
3346 if test -z "$ac_cpp_err"; then
3347 eval "$as_ac_Header=yes"
3349 echo "$as_me: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 eval "$as_ac_Header=no"
3353 rm -f conftest.err conftest.$ac_ext
3355 echo "$as_me:3355: result: `eval echo '${'$as_ac_Header'}'`" >&5
3356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3358 cat >>confdefs.h <<EOF
3359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3365 # Only perform the check for file, if the check method requires it
3366 case $deplibs_check_method in
3368 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3369 echo "$as_me:3369: checking for ${ac_tool_prefix}file" >&5
3370 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3382 ac_save_MAGIC_CMD="$MAGIC_CMD"
3383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3384 ac_dummy="/usr/bin:$PATH"
3385 for ac_dir in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/${ac_tool_prefix}file; then
3388 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3389 if test -n "$file_magic_test_file"; then
3390 case $deplibs_check_method in
3392 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3395 egrep "$file_magic_regex" > /dev/null; then
3400 *** Warning: the command libtool uses to detect shared libraries,
3401 *** $file_magic_cmd, produces output that libtool cannot recognize.
3402 *** The result is that libtool may fail to recognize shared libraries
3403 *** as such. This will affect the creation of libtool libraries that
3404 *** depend on shared libraries, but programs linked with such libtool
3405 *** libraries will work regardless of this problem. Nevertheless, you
3406 *** may want to report the problem to your system manager and/or to
3407 *** bug-libtool@gnu.org
3417 MAGIC_CMD="$ac_save_MAGIC_CMD"
3422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3423 if test -n "$MAGIC_CMD"; then
3424 echo "$as_me:3424: result: $MAGIC_CMD" >&5
3425 echo "${ECHO_T}$MAGIC_CMD" >&6
3427 echo "$as_me:3427: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3431 if test -z "$lt_cv_path_MAGIC_CMD"; then
3432 if test -n "$ac_tool_prefix"; then
3433 echo "$as_me:3433: checking for file" >&5
3434 echo $ECHO_N "checking for file... $ECHO_C" >&6
3435 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3446 ac_save_MAGIC_CMD="$MAGIC_CMD"
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3448 ac_dummy="/usr/bin:$PATH"
3449 for ac_dir in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f $ac_dir/file; then
3452 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3453 if test -n "$file_magic_test_file"; then
3454 case $deplibs_check_method in
3456 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3459 egrep "$file_magic_regex" > /dev/null; then
3464 *** Warning: the command libtool uses to detect shared libraries,
3465 *** $file_magic_cmd, produces output that libtool cannot recognize.
3466 *** The result is that libtool may fail to recognize shared libraries
3467 *** as such. This will affect the creation of libtool libraries that
3468 *** depend on shared libraries, but programs linked with such libtool
3469 *** libraries will work regardless of this problem. Nevertheless, you
3470 *** may want to report the problem to your system manager and/or to
3471 *** bug-libtool@gnu.org
3481 MAGIC_CMD="$ac_save_MAGIC_CMD"
3486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3487 if test -n "$MAGIC_CMD"; then
3488 echo "$as_me:3488: result: $MAGIC_CMD" >&5
3489 echo "${ECHO_T}$MAGIC_CMD" >&6
3491 echo "$as_me:3491: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3507 echo "$as_me:3507: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_prog_RANLIB+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 if test -n "$RANLIB"; then
3513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3515 ac_save_IFS=$IFS; IFS=$ac_path_separator
3517 for ac_dir in $ac_dummy; do
3519 test -z "$ac_dir" && ac_dir=.
3520 $as_executable_p "$ac_dir/$ac_word" || continue
3521 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3522 echo "$as_me:3522: found $ac_dir/$ac_word" >&5
3528 RANLIB=$ac_cv_prog_RANLIB
3529 if test -n "$RANLIB"; then
3530 echo "$as_me:3530: result: $RANLIB" >&5
3531 echo "${ECHO_T}$RANLIB" >&6
3533 echo "$as_me:3533: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3538 if test -z "$ac_cv_prog_RANLIB"; then
3539 ac_ct_RANLIB=$RANLIB
3540 # Extract the first word of "ranlib", so it can be a program name with args.
3541 set dummy ranlib; ac_word=$2
3542 echo "$as_me:3542: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -n "$ac_ct_RANLIB"; then
3548 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3550 ac_save_IFS=$IFS; IFS=$ac_path_separator
3552 for ac_dir in $ac_dummy; do
3554 test -z "$ac_dir" && ac_dir=.
3555 $as_executable_p "$ac_dir/$ac_word" || continue
3556 ac_cv_prog_ac_ct_RANLIB="ranlib"
3557 echo "$as_me:3557: found $ac_dir/$ac_word" >&5
3561 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3565 if test -n "$ac_ct_RANLIB"; then
3566 echo "$as_me:3566: result: $ac_ct_RANLIB" >&5
3567 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3569 echo "$as_me:3569: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 RANLIB=$ac_ct_RANLIB
3575 RANLIB="$ac_cv_prog_RANLIB"
3578 if test -n "$ac_tool_prefix"; then
3579 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3580 set dummy ${ac_tool_prefix}strip; ac_word=$2
3581 echo "$as_me:3581: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_STRIP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test -n "$STRIP"; then
3587 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3589 ac_save_IFS=$IFS; IFS=$ac_path_separator
3591 for ac_dir in $ac_dummy; do
3593 test -z "$ac_dir" && ac_dir=.
3594 $as_executable_p "$ac_dir/$ac_word" || continue
3595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3596 echo "$as_me:3596: found $ac_dir/$ac_word" >&5
3602 STRIP=$ac_cv_prog_STRIP
3603 if test -n "$STRIP"; then
3604 echo "$as_me:3604: result: $STRIP" >&5
3605 echo "${ECHO_T}$STRIP" >&6
3607 echo "$as_me:3607: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3612 if test -z "$ac_cv_prog_STRIP"; then
3614 # Extract the first word of "strip", so it can be a program name with args.
3615 set dummy strip; ac_word=$2
3616 echo "$as_me:3616: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if test -n "$ac_ct_STRIP"; then
3622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3624 ac_save_IFS=$IFS; IFS=$ac_path_separator
3626 for ac_dir in $ac_dummy; do
3628 test -z "$ac_dir" && ac_dir=.
3629 $as_executable_p "$ac_dir/$ac_word" || continue
3630 ac_cv_prog_ac_ct_STRIP="strip"
3631 echo "$as_me:3631: found $ac_dir/$ac_word" >&5
3635 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3639 if test -n "$ac_ct_STRIP"; then
3640 echo "$as_me:3640: result: $ac_ct_STRIP" >&5
3641 echo "${ECHO_T}$ac_ct_STRIP" >&6
3643 echo "$as_me:3643: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3649 STRIP="$ac_cv_prog_STRIP"
3655 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3656 if test "${enable_libtool_lock+set}" = set; then
3657 enableval="$enable_libtool_lock"
3660 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3662 # Some flags need to be propagated to the compiler or linker for good
3666 # Find out which ABI we are using.
3667 echo '#line 3667 "configure"' > conftest.$ac_ext
3668 if { (eval echo "$as_me:3668: \"$ac_compile\"") >&5
3669 (eval $ac_compile) 2>&5
3671 echo "$as_me:3671: \$? = $ac_status" >&5
3672 (exit $ac_status); }; then
3673 case `/usr/bin/file conftest.$ac_objext` in
3689 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3690 SAVE_CFLAGS="$CFLAGS"
3691 CFLAGS="$CFLAGS -belf"
3692 echo "$as_me:3692: checking whether the C compiler needs -belf" >&5
3693 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3694 if test "${lt_cv_cc_needs_belf+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 cat >conftest.$ac_ext <<_ACEOF
3705 #line 3705 "configure"
3706 #include "confdefs.h"
3716 rm -f conftest.$ac_objext conftest$ac_exeext
3717 if { (eval echo "$as_me:3717: \"$ac_link\"") >&5
3718 (eval $ac_link) 2>&5
3720 echo "$as_me:3720: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -s conftest$ac_exeext'
3723 { (eval echo "$as_me:3723: \"$ac_try\"") >&5
3726 echo "$as_me:3726: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 lt_cv_cc_needs_belf=yes
3730 echo "$as_me: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 lt_cv_cc_needs_belf=no
3734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 echo "$as_me:3742: result: $lt_cv_cc_needs_belf" >&5
3743 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3744 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3745 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3746 CFLAGS="$SAVE_CFLAGS"
3752 # Sed substitution that helps us do robust quoting. It backslashifies
3753 # metacharacters that are still active within double-quoted strings.
3754 Xsed='sed -e s/^X//'
3755 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3757 # Same as above, but do not quote variable references.
3758 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3760 # Sed substitution to delay expansion of an escaped shell variable in a
3761 # double_quote_subst'ed string.
3762 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3768 default_ofile=libtool
3769 can_build_shared=yes
3771 # All known linkers require a `.a' archive for static linking (except M$VC,
3772 # which needs '.lib').
3774 ltmain="$ac_aux_dir/ltmain.sh"
3775 ofile="$default_ofile"
3776 with_gnu_ld="$lt_cv_prog_gnu_ld"
3777 need_locks="$enable_libtool_lock"
3780 old_CFLAGS="$CFLAGS"
3782 # Set sane defaults for various variables
3783 test -z "$AR" && AR=ar
3784 test -z "$AR_FLAGS" && AR_FLAGS=cru
3785 test -z "$AS" && AS=as
3786 test -z "$CC" && CC=cc
3787 test -z "$DLLTOOL" && DLLTOOL=dlltool
3788 test -z "$LD" && LD=ld
3789 test -z "$LN_S" && LN_S="ln -s"
3790 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3791 test -z "$NM" && NM=nm
3792 test -z "$OBJDUMP" && OBJDUMP=objdump
3793 test -z "$RANLIB" && RANLIB=:
3794 test -z "$STRIP" && STRIP=:
3795 test -z "$ac_objext" && ac_objext=o
3797 if test x"$host" != x"$build"; then
3798 ac_tool_prefix=${host_alias}-
3805 # AIX sometimes has problems with the GCC collect2 program. For some
3806 # reason, if we set the COLLECT_NAMES environment variable, the problems
3807 # vanish in a puff of smoke.
3808 if test "X${COLLECT_NAMES+set}" != Xset; then
3810 export COLLECT_NAMES
3815 # Determine commands to create old-style static archives.
3816 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3817 old_postinstall_cmds='chmod 644 $oldlib'
3818 old_postuninstall_cmds=
3820 if test -n "$RANLIB"; then
3823 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3826 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3829 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3832 # Allow CC to be a program name with arguments.
3836 echo "$as_me:3836: checking for objdir" >&5
3837 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3838 rm -f .libs 2>/dev/null
3839 mkdir .libs 2>/dev/null
3840 if test -d .libs; then
3843 # MS-DOS does not allow filenames that begin with a dot.
3846 rmdir .libs 2>/dev/null
3847 echo "$as_me:3847: result: $objdir" >&5
3848 echo "${ECHO_T}$objdir" >&6
3850 # Check whether --with-pic or --without-pic was given.
3851 if test "${with_pic+set}" = set; then
3857 test -z "$pic_mode" && pic_mode=default
3859 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3860 # in isolation, and that seeing it set (from the cache) indicates that
3861 # the associated values are set (in the cache) correctly too.
3862 echo "$as_me:3862: checking for $compiler option to produce PIC" >&5
3863 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3864 if test "${lt_cv_prog_cc_pic+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 lt_cv_prog_cc_shlib=
3870 lt_cv_prog_cc_static=
3871 lt_cv_prog_cc_no_builtin=
3872 lt_cv_prog_cc_can_build_shared=$can_build_shared
3874 if test "$GCC" = yes; then
3875 lt_cv_prog_cc_wl='-Wl,'
3876 lt_cv_prog_cc_static='-static'
3880 # Below there is a dirty hack to force normal static linking with -ldl
3881 # The problem is because libdl dynamically linked with both libc and
3882 # libC (AIX C++ library), which obviously doesn't included in libraries
3883 # list by gcc. This cause undefined symbols with -static flags.
3884 # This hack allows C programs to be linked with "-static -ldl", but
3885 # not sure about C++ programs.
3886 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3889 # FIXME: we need at least 68020 code to build shared libraries, but
3890 # adding the `-m68020' flag to GCC prevents building anything better,
3892 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3894 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3895 # PIC is the default for these OSes.
3897 darwin* | rhapsody*)
3898 # PIC is the default on this platform
3899 # Common symbols not allowed in MH_DYLIB files
3900 lt_cv_prog_cc_pic='-fno-common'
3902 cygwin* | mingw* | pw32* | os2*)
3903 # This hack is so that the source file can tell whether it is being
3904 # built for inclusion in a dll (and should export symbols for example).
3905 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3908 if test -d /usr/nec; then
3909 lt_cv_prog_cc_pic=-Kconform_pic
3913 lt_cv_prog_cc_pic='-fPIC'
3917 # PORTME Check for PIC flags for the system compiler.
3919 aix3* | aix4* | aix5*)
3920 lt_cv_prog_cc_wl='-Wl,'
3921 # All AIX code is PIC.
3922 if test "$host_cpu" = ia64; then
3923 # AIX 5 now supports IA64 processor
3924 lt_cv_prog_cc_static='-Bstatic'
3926 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3930 hpux9* | hpux10* | hpux11*)
3931 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3932 lt_cv_prog_cc_wl='-Wl,'
3933 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3934 lt_cv_prog_cc_pic='+Z'
3938 lt_cv_prog_cc_wl='-Wl,'
3939 lt_cv_prog_cc_static='-non_shared'
3940 # PIC (with -KPIC) is the default.
3943 cygwin* | mingw* | pw32* | os2*)
3944 # This hack is so that the source file can tell whether it is being
3945 # built for inclusion in a dll (and should export symbols for example).
3946 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3950 lt_cv_prog_cc_pic='-KPIC'
3951 lt_cv_prog_cc_static='-Bstatic'
3954 osf3* | osf4* | osf5*)
3955 # All OSF/1 code is PIC.
3956 lt_cv_prog_cc_wl='-Wl,'
3957 lt_cv_prog_cc_static='-non_shared'
3961 lt_cv_prog_cc_pic='-Kpic'
3962 lt_cv_prog_cc_static='-dn'
3963 lt_cv_prog_cc_shlib='-belf'
3967 lt_cv_prog_cc_pic='-KPIC'
3968 lt_cv_prog_cc_static='-Bstatic'
3969 lt_cv_prog_cc_wl='-Wl,'
3973 lt_cv_prog_cc_pic='-PIC'
3974 lt_cv_prog_cc_static='-Bstatic'
3975 lt_cv_prog_cc_wl='-Qoption ld '
3978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3979 lt_cv_prog_cc_pic='-KPIC'
3980 lt_cv_prog_cc_static='-Bstatic'
3981 if test "x$host_vendor" = xsni; then
3982 lt_cv_prog_cc_wl='-LD'
3984 lt_cv_prog_cc_wl='-Wl,'
3989 lt_cv_prog_cc_pic='-pic'
3990 lt_cv_prog_cc_static='-Bstatic'
3994 if test -d /usr/nec ;then
3995 lt_cv_prog_cc_pic='-Kconform_pic'
3996 lt_cv_prog_cc_static='-Bstatic'
4001 lt_cv_prog_cc_can_build_shared=no
4008 if test -z "$lt_cv_prog_cc_pic"; then
4009 echo "$as_me:4009: result: none" >&5
4010 echo "${ECHO_T}none" >&6
4012 echo "$as_me:4012: result: $lt_cv_prog_cc_pic" >&5
4013 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4015 # Check to make sure the pic_flag actually works.
4016 echo "$as_me:4016: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4017 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4018 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 save_CFLAGS="$CFLAGS"
4022 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4023 cat >conftest.$ac_ext <<_ACEOF
4024 #line 4024 "configure"
4025 #include "confdefs.h"
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:4036: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4039 echo "$as_me:4039: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:4042: \"$ac_try\"") >&5
4045 echo "$as_me:4045: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4048 hpux9* | hpux10* | hpux11*)
4049 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4050 # they create non-PIC objects. So, if there were any warnings, we
4051 # assume that PIC is not supported.
4052 if test -s conftest.err; then
4053 lt_cv_prog_cc_pic_works=no
4055 lt_cv_prog_cc_pic_works=yes
4059 lt_cv_prog_cc_pic_works=yes
4064 echo "$as_me: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066 lt_cv_prog_cc_pic_works=no
4069 rm -f conftest.$ac_objext conftest.$ac_ext
4070 CFLAGS="$save_CFLAGS"
4074 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4076 lt_cv_prog_cc_can_build_shared=no
4078 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4081 echo "$as_me:4081: result: $lt_cv_prog_cc_pic_works" >&5
4082 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4085 # Check for any special shared library compilation flags.
4086 if test -n "$lt_cv_prog_cc_shlib"; then
4087 { echo "$as_me:4087: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4088 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4089 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4091 { echo "$as_me:4091: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4092 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4093 lt_cv_prog_cc_can_build_shared=no
4097 echo "$as_me:4097: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4098 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4099 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 lt_cv_prog_cc_static_works=no
4103 save_LDFLAGS="$LDFLAGS"
4104 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4105 cat >conftest.$ac_ext <<_ACEOF
4106 #line 4106 "configure"
4107 #include "confdefs.h"
4117 rm -f conftest.$ac_objext conftest$ac_exeext
4118 if { (eval echo "$as_me:4118: \"$ac_link\"") >&5
4119 (eval $ac_link) 2>&5
4121 echo "$as_me:4121: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest$ac_exeext'
4124 { (eval echo "$as_me:4124: \"$ac_try\"") >&5
4127 echo "$as_me:4127: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 lt_cv_prog_cc_static_works=yes
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4135 LDFLAGS="$save_LDFLAGS"
4139 # Belt *and* braces to stop my trousers falling down:
4140 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4141 echo "$as_me:4141: result: $lt_cv_prog_cc_static_works" >&5
4142 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4144 pic_flag="$lt_cv_prog_cc_pic"
4145 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4146 wl="$lt_cv_prog_cc_wl"
4147 link_static_flag="$lt_cv_prog_cc_static"
4148 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4149 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4151 # Check to see if options -o and -c are simultaneously supported by compiler
4152 echo "$as_me:4152: checking if $compiler supports -c -o file.$ac_objext" >&5
4153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4154 if test "${lt_cv_compiler_c_o+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 $rm -r conftest 2>/dev/null
4161 echo "int some_variable = 0;" > conftest.$ac_ext
4163 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4164 # that will create temporary files in the current directory regardless of
4165 # the output directory. Thus, making CWD read-only will cause this test
4166 # to fail, enabling locking or at least warning the user not to do parallel
4169 save_CFLAGS="$CFLAGS"
4170 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4172 if { (eval echo configure:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4173 # The compiler can only warn and ignore the option if not recognized
4174 # So say no if there are warnings
4175 if test -s out/conftest.err; then
4176 lt_cv_compiler_c_o=no
4178 lt_cv_compiler_c_o=yes
4181 # Append any errors to the config.log.
4182 cat out/conftest.err 1>&5
4183 lt_cv_compiler_c_o=no
4185 CFLAGS="$save_CFLAGS"
4191 $rm -r conftest 2>/dev/null
4195 compiler_c_o=$lt_cv_compiler_c_o
4196 echo "$as_me:4196: result: $compiler_c_o" >&5
4197 echo "${ECHO_T}$compiler_c_o" >&6
4199 if test x"$compiler_c_o" = x"yes"; then
4200 # Check to see if we can write to a .lo
4201 echo "$as_me:4201: checking if $compiler supports -c -o file.lo" >&5
4202 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4203 if test "${lt_cv_compiler_o_lo+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 lt_cv_compiler_o_lo=no
4208 save_CFLAGS="$CFLAGS"
4209 CFLAGS="$CFLAGS -c -o conftest.lo"
4210 save_objext="$ac_objext"
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line 4213 "configure"
4214 #include "confdefs.h"
4219 int some_variable = 0;
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:4225: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>&5
4228 echo "$as_me:4228: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (eval echo "$as_me:4231: \"$ac_try\"") >&5
4234 echo "$as_me:4234: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 # The compiler can only warn and ignore the option if not recognized
4237 # So say no if there are warnings
4238 if test -s conftest.err; then
4239 lt_cv_compiler_o_lo=no
4241 lt_cv_compiler_o_lo=yes
4245 echo "$as_me: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 rm -f conftest.$ac_objext conftest.$ac_ext
4249 ac_objext="$save_objext"
4250 CFLAGS="$save_CFLAGS"
4254 compiler_o_lo=$lt_cv_compiler_o_lo
4255 echo "$as_me:4255: result: $compiler_o_lo" >&5
4256 echo "${ECHO_T}$compiler_o_lo" >&6
4261 # Check to see if we can do hard links to lock some files if needed
4262 hard_links="nottested"
4263 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4264 # do not overwrite the value of need_locks provided by the user
4265 echo "$as_me:4265: checking if we can lock with hard links" >&5
4266 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4271 ln conftest.a conftest.b 2>&5 || hard_links=no
4272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4273 echo "$as_me:4273: result: $hard_links" >&5
4274 echo "${ECHO_T}$hard_links" >&6
4275 if test "$hard_links" = no; then
4276 { echo "$as_me:4276: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4277 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4284 if test "$GCC" = yes; then
4285 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4286 echo "$as_me:4286: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4287 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4288 echo "int some_variable = 0;" > conftest.$ac_ext
4289 save_CFLAGS="$CFLAGS"
4290 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4291 compiler_rtti_exceptions=no
4292 cat >conftest.$ac_ext <<_ACEOF
4293 #line 4293 "configure"
4294 #include "confdefs.h"
4299 int some_variable = 0;
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:4305: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>&5
4308 echo "$as_me:4308: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -s conftest.$ac_objext'
4311 { (eval echo "$as_me:4311: \"$ac_try\"") >&5
4314 echo "$as_me:4314: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 # The compiler can only warn and ignore the option if not recognized
4317 # So say no if there are warnings
4318 if test -s conftest.err; then
4319 compiler_rtti_exceptions=no
4321 compiler_rtti_exceptions=yes
4325 echo "$as_me: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4328 rm -f conftest.$ac_objext conftest.$ac_ext
4329 CFLAGS="$save_CFLAGS"
4330 echo "$as_me:4330: result: $compiler_rtti_exceptions" >&5
4331 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4333 if test "$compiler_rtti_exceptions" = "yes"; then
4334 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4336 no_builtin_flag=' -fno-builtin'
4340 # See if the linker supports building shared libraries.
4341 echo "$as_me:4341: checking whether the linker ($LD) supports shared libraries" >&5
4342 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4344 allow_undefined_flag=
4346 need_lib_prefix=unknown
4347 need_version=unknown
4348 # when you set need_version to no, make sure it does not cause -set_version
4349 # flags to be left without arguments
4351 archive_expsym_cmds=
4352 old_archive_from_new_cmds=
4353 old_archive_from_expsyms_cmds=
4354 export_dynamic_flag_spec=
4355 whole_archive_flag_spec=
4356 thread_safe_flag_spec=
4357 hardcode_into_libs=no
4358 hardcode_libdir_flag_spec=
4359 hardcode_libdir_separator=
4362 hardcode_shlibpath_var=unsupported
4364 link_all_deplibs=unknown
4365 always_export_symbols=no
4366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4367 # include_expsyms should be a list of space-separated symbols to be *always*
4368 # included in the symbol list
4370 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4371 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4372 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4373 # as well as any symbol that contains `d'.
4374 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4376 # platforms (ab)use it in PIC code, but their linkers get confused if
4377 # the symbol is explicitly referenced. Since portable code cannot
4378 # rely on this symbol name, it's probably fine to never include it in
4379 # preloaded symbol tables.
4380 extract_expsyms_cmds=
4383 cygwin* | mingw* | pw32*)
4384 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4385 # When not using gcc, we currently assume that we are using
4386 # Microsoft Visual C++.
4387 if test "$GCC" != yes; then
4397 if test "$with_gnu_ld" = yes; then
4398 # If archive_cmds runs LD, not CC, wlarc should be empty
4401 # See if GNU ld supports shared libraries.
4403 aix3* | aix4* | aix5*)
4404 # On AIX, the GNU linker is very broken
4405 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4409 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4410 *** to be unable to reliably create shared libraries on AIX.
4411 *** Therefore, libtool is disabling shared libraries support. If you
4412 *** really care for shared libraries, you may want to modify your PATH
4413 *** so that a non-GNU linker is found, and then restart.
4419 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)'
4420 hardcode_libdir_flag_spec='-L$libdir'
4421 hardcode_minus_L=yes
4423 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4424 # that the semantics of dynamic libraries on AmigaOS, at least up
4425 # to version 4, is to share data among multiple programs linked
4426 # with the same dynamic library. Since this doesn't match the
4427 # behavior of shared libraries on other platforms, we can use
4433 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4434 allow_undefined_flag=unsupported
4435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4436 # support --undefined. This deserves some investigation. FIXME
4437 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4443 cygwin* | mingw* | pw32*)
4444 # hardcode_libdir_flag_spec is actually meaningless, as there is
4445 # no search path for DLLs.
4446 hardcode_libdir_flag_spec='-L$libdir'
4447 allow_undefined_flag=unsupported
4448 always_export_symbols=yes
4450 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4451 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4452 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4453 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4454 else $CC -o impgen impgen.c ; fi)~
4455 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4457 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4459 # cygwin and mingw dlls have different entry points and sets of symbols
4461 # FIXME: what about values for MSVC?
4462 dll_entry=__cygwin_dll_entry@12
4463 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4467 dll_entry=_DllMainCRTStartup@12
4468 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4472 # mingw and cygwin differ, and it's simplest to just exclude the union
4473 # of the two symbol sets.
4474 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4476 # recent cygwin and mingw systems supply a stub DllMain which the user
4477 # can override, but on older systems we have to supply one (in ltdll.c)
4478 if test "x$lt_cv_need_dllmain" = "xyes"; then
4479 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4480 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~
4481 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4487 # Extract the symbol export list from an `--export-all' def file,
4488 # then regenerate the def file from the symbol export list, so that
4489 # the compiled dll only exports the symbol export list.
4490 # Be careful not to strip the DATA tag left be newer dlltools.
4491 export_symbols_cmds="$ltdll_cmds"'
4492 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4493 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4495 # If the export-symbols file already is a .def file (1st line
4496 # is EXPORTS), use it as is.
4497 # If DATA tags from a recent dlltool are present, honour them!
4498 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4499 cp $export_symbols $output_objdir/$soname-def;
4501 echo EXPORTS > $output_objdir/$soname-def;
4503 cat $export_symbols | while read symbol; do
4506 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4507 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4509 _lt_hint=`expr 1 + \$_lt_hint`;
4513 $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~
4514 $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~
4515 $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~
4516 $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~
4517 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4522 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4525 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4526 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4531 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4535 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4536 *** create shared libraries on Solaris systems. Therefore, libtool
4537 *** is disabling shared libraries support. We urge you to upgrade GNU
4538 *** binutils to release 2.9.1 or newer. Another option is to modify
4539 *** your PATH or compiler configuration so that the native linker is
4540 *** used, and then restart.
4543 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4545 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4552 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4555 hardcode_shlibpath_var=no
4559 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4568 if test "$ld_shlibs" = yes; then
4569 runpath_var=LD_RUN_PATH
4570 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4571 export_dynamic_flag_spec='${wl}--export-dynamic'
4573 cygwin* | mingw* | pw32*)
4574 # dlltool doesn't understand --whole-archive et. al.
4575 whole_archive_flag_spec=
4578 # ancient GNU ld didn't support --whole-archive et. al.
4579 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4580 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4582 whole_archive_flag_spec=
4588 # PORTME fill in a description of your system's linker (not GNU ld)
4591 allow_undefined_flag=unsupported
4592 always_export_symbols=yes
4593 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'
4594 # Note: this linker hardcodes the directories in LIBPATH if there
4595 # are no directories specified by -L.
4596 hardcode_minus_L=yes
4597 if test "$GCC" = yes && test -z "$link_static_flag"; then
4598 # Neither direct hardcoding nor static linking is supported with a
4600 hardcode_direct=unsupported
4605 if test "$host_cpu" = ia64; then
4606 # On IA64, the linker does run time linking by default, so we don't
4607 # have to do anything special.
4608 aix_use_runtimelinking=no
4609 exp_sym_flag='-Bexport'
4612 aix_use_runtimelinking=no
4614 # Test if we are trying to use run time linking or normal
4615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4616 # need to do runtime linking.
4617 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4618 for ld_flag in $LDFLAGS; do
4619 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4620 aix_use_runtimelinking=yes
4626 exp_sym_flag='-bexport'
4627 no_entry_flag='-bnoentry'
4630 # When large executables or shared objects are built, AIX ld can
4631 # have problems creating the table of contents. If linking a library
4632 # or program results in "error TOC overflow" add -mminimal-toc to
4633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4638 hardcode_libdir_separator=':'
4639 if test "$GCC" = yes; then
4640 case $host_os in aix4.[012]|aix4.[012].*)
4641 collect2name=`${CC} -print-prog-name=collect2`
4642 if test -f "$collect2name" && \
4643 strings "$collect2name" | grep resolve_lib_name >/dev/null
4645 # We have reworked collect2
4648 # We have old collect2
4649 hardcode_direct=unsupported
4650 # It fails to find uninstalled libraries when the uninstalled
4651 # path is not listed in the libpath. Setting hardcode_minus_L
4652 # to unsupported forces relinking
4653 hardcode_minus_L=yes
4654 hardcode_libdir_flag_spec='-L$libdir'
4655 hardcode_libdir_separator=
4659 shared_flag='-shared'
4662 if test "$host_cpu" = ia64; then
4663 shared_flag='${wl}-G'
4665 if test "$aix_use_runtimelinking" = yes; then
4666 shared_flag='${wl}-G'
4668 shared_flag='${wl}-bM:SRE'
4673 # It seems that -bexpall can do strange things, so it is better to
4674 # generate a list of symbols to export.
4675 always_export_symbols=yes
4676 if test "$aix_use_runtimelinking" = yes; then
4677 # Warning - without using the other runtime loading flags (-brtl),
4678 # -berok will link without error, but may produce a broken library.
4679 allow_undefined_flag='-berok'
4680 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4681 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4683 if test "$host_cpu" = ia64; then
4684 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4685 allow_undefined_flag="-z nodefs"
4686 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"
4688 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4689 # Warning - without using the other run time loading flags,
4690 # -berok will link without error, but may produce a broken library.
4691 allow_undefined_flag='${wl}-berok'
4692 # This is a bit strange, but is similar to how AIX traditionally builds
4693 # it's shared libraries.
4694 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'
4700 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)'
4701 hardcode_libdir_flag_spec='-L$libdir'
4702 hardcode_minus_L=yes
4703 # see comment about different semantics on the GNU ld section
4707 cygwin* | mingw* | pw32*)
4708 # When not using gcc, we currently assume that we are using
4709 # Microsoft Visual C++.
4710 # hardcode_libdir_flag_spec is actually meaningless, as there is
4711 # no search path for DLLs.
4712 hardcode_libdir_flag_spec=' '
4713 allow_undefined_flag=unsupported
4714 # Tell ltmain to make .lib files, not .a files.
4716 # FIXME: Setting linknames here is a bad hack.
4717 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4718 # The linker will automatically build a .lib file if we build a DLL.
4719 old_archive_from_new_cmds='true'
4720 # FIXME: Should let the user specify the lib program.
4721 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4722 fix_srcfile_path='`cygpath -w "$srcfile"`'
4725 darwin* | rhapsody*)
4727 rhapsody* | darwin1.[012])
4728 allow_undefined_flag='-undefined suppress'
4731 allow_undefined_flag='-flat_namespace -undefined suppress'
4734 # FIXME: Relying on posixy $() will cause problems for
4735 # cross-compilation, but unfortunately the echo tests do not
4736 # yet detect zsh echo's removal of \ escapes.
4737 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4738 # We need to add '_' to the symbols in $export_symbols first
4739 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4741 hardcode_shlibpath_var=no
4742 whole_archive_flag_spec='-all_load $convenience'
4749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4750 # support. Future versions do this automatically, but an explicit c++rt0.o
4751 # does not break anything, and helps significantly (at the cost of a little
4754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4755 hardcode_libdir_flag_spec='-R$libdir'
4757 hardcode_shlibpath_var=no
4760 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4764 hardcode_minus_L=yes
4765 hardcode_shlibpath_var=no
4768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4770 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4771 hardcode_libdir_flag_spec='-R$libdir'
4773 hardcode_shlibpath_var=no
4776 hpux9* | hpux10* | hpux11*)
4778 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' ;;
4779 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4782 hardcode_libdir_separator=:
4784 hardcode_minus_L=yes # Not in the search PATH, but as the default
4785 # location of the library.
4786 export_dynamic_flag_spec='${wl}-E'
4790 if test "$GCC" = yes; then
4791 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'
4793 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'
4795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4796 hardcode_libdir_separator=:
4797 link_all_deplibs=yes
4801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4804 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4806 hardcode_libdir_flag_spec='-R$libdir'
4808 hardcode_shlibpath_var=no
4812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4815 hardcode_libdir_separator=:
4816 hardcode_shlibpath_var=no
4821 hardcode_shlibpath_var=no
4822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4824 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4825 export_dynamic_flag_spec='${wl}-E'
4828 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4830 hardcode_libdir_flag_spec='-R$libdir'
4833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4841 hardcode_libdir_flag_spec='-L$libdir'
4842 hardcode_minus_L=yes
4843 allow_undefined_flag=unsupported
4844 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'
4845 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4849 if test "$GCC" = yes; then
4850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4851 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'
4853 allow_undefined_flag=' -expect_unresolved \*'
4854 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'
4856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4857 hardcode_libdir_separator=:
4860 osf4* | osf5*) # as osf3* with the addition of -msym flag
4861 if test "$GCC" = yes; then
4862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4863 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'
4864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4866 allow_undefined_flag=' -expect_unresolved \*'
4867 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'
4868 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4869 $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'
4871 #Both c and cxx compiler support -rpath directly
4872 hardcode_libdir_flag_spec='-rpath $libdir'
4874 hardcode_libdir_separator=:
4878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4879 hardcode_shlibpath_var=no
4880 runpath_var=LD_RUN_PATH
4881 hardcode_runpath_var=yes
4882 export_dynamic_flag_spec='${wl}-Bexport'
4886 no_undefined_flag=' -z defs'
4887 # $CC -shared without GNU ld will not create a library from C++
4888 # object files and a static libstdc++, better avoid it by now
4889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4890 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4892 hardcode_libdir_flag_spec='-R$libdir'
4893 hardcode_shlibpath_var=no
4895 solaris2.[0-5] | solaris2.[0-5].*) ;;
4896 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4899 link_all_deplibs=yes
4903 if test "x$host_vendor" = xsequent; then
4904 # Use $CC to link under sequent, because it throws in some extra .o
4905 # files that make .init and .fini sections work.
4906 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4908 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4910 hardcode_libdir_flag_spec='-L$libdir'
4912 hardcode_minus_L=yes
4913 hardcode_shlibpath_var=no
4917 if test "x$host_vendor" = xsno; then
4918 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4919 hardcode_direct=yes # is this really true???
4921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4922 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4924 runpath_var='LD_RUN_PATH'
4925 hardcode_shlibpath_var=no
4929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4930 hardcode_shlibpath_var=no
4931 export_dynamic_flag_spec='-Bexport'
4935 no_undefined_flag=' -z text'
4936 # $CC -shared without GNU ld will not create a library from C++
4937 # object files and a static libstdc++, better avoid it by now
4938 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4939 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4941 hardcode_libdir_flag_spec=
4942 hardcode_shlibpath_var=no
4943 runpath_var='LD_RUN_PATH'
4947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4948 hardcode_libdir_flag_spec='-L$libdir'
4949 hardcode_shlibpath_var=no
4953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4954 hardcode_libdir_flag_spec='-L$libdir'
4955 hardcode_shlibpath_var=no
4959 if test -d /usr/nec; then
4960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4961 hardcode_shlibpath_var=no
4962 runpath_var=LD_RUN_PATH
4963 hardcode_runpath_var=yes
4969 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4972 hardcode_shlibpath_var=no
4973 hardcode_runpath_var=yes
4974 runpath_var=LD_RUN_PATH
4977 sysv5uw7* | unixware7*)
4978 no_undefined_flag='${wl}-z ${wl}text'
4979 if test "$GCC" = yes; then
4980 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4982 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4984 runpath_var='LD_RUN_PATH'
4985 hardcode_shlibpath_var=no
4993 echo "$as_me:4993: result: $ld_shlibs" >&5
4994 echo "${ECHO_T}$ld_shlibs" >&6
4995 test "$ld_shlibs" = no && can_build_shared=no
4997 # Check hardcoding attributes.
4998 echo "$as_me:4998: checking how to hardcode library paths into programs" >&5
4999 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5001 if test -n "$hardcode_libdir_flag_spec" || \
5002 test -n "$runpath_var"; then
5004 # We can hardcode non-existant directories.
5005 if test "$hardcode_direct" != no &&
5006 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5007 # have to relink, otherwise we might link with an installed library
5008 # when we should be linking with a yet-to-be-installed one
5009 ## test "$hardcode_shlibpath_var" != no &&
5010 test "$hardcode_minus_L" != no; then
5011 # Linking always hardcodes the temporary library directory.
5012 hardcode_action=relink
5014 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5015 hardcode_action=immediate
5018 # We cannot hardcode anything, or else we can only hardcode existing
5020 hardcode_action=unsupported
5022 echo "$as_me:5022: result: $hardcode_action" >&5
5023 echo "${ECHO_T}$hardcode_action" >&6
5027 echo "$as_me:5027: checking whether stripping libraries is possible" >&5
5028 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5029 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5030 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5031 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5032 echo "$as_me:5032: result: yes" >&5
5033 echo "${ECHO_T}yes" >&6
5035 echo "$as_me:5035: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5042 # PORTME Fill in your ld.so characteristics
5043 echo "$as_me:5043: checking dynamic linker characteristics" >&5
5044 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5046 libname_spec='lib$name'
5053 shlibpath_overrides_runpath=unknown
5055 dynamic_linker="$host_os ld.so"
5056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5062 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5063 shlibpath_var=LIBPATH
5065 # AIX has no versioning support, so we append a major version to the name.
5066 soname_spec='${libname}${release}.so$major'
5071 if test "$host_cpu" = ia64; then
5072 # AIX 5 supports IA64
5073 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5074 shlibpath_var=LD_LIBRARY_PATH
5076 # With GCC up to 2.95.x, collect2 would create an import file
5077 # for dependence libraries. The import file would start with
5078 # the line `#! .'. This would cause the generated library to
5079 # depend on `.', always an invalid library. This was fixed in
5080 # development snapshots of GCC prior to 3.0.
5082 aix4 | aix4.[01] | aix4.[01].*)
5083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5085 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5092 # AIX (on Power*) has no versioning support, so currently we can
5093 # not hardcode correct soname into executable. Probably we can
5094 # add versioning support to collect2, so additional links can
5095 # be useful in future.
5096 if test "$aix_use_runtimelinking" = yes; then
5097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5098 # instead of lib<name>.a to let people know that these are not
5099 # typical AIX shared libraries.
5100 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5102 # We preserve .a as extension for shared libraries through AIX4.2
5103 # and later when we are not doing run time linking.
5104 library_names_spec='${libname}${release}.a $libname.a'
5105 soname_spec='${libname}${release}.so$major'
5107 shlibpath_var=LIBPATH
5112 library_names_spec='$libname.ixlibrary $libname.a'
5113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5114 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'
5118 library_names_spec='${libname}.so'
5119 dynamic_linker="$host_os ld.so"
5120 shlibpath_var=LIBRARY_PATH
5126 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5127 soname_spec='${libname}${release}.so$major'
5128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5129 shlibpath_var=LD_LIBRARY_PATH
5130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5132 export_dynamic_flag_spec=-rdynamic
5133 # the default ld.so.conf also contains /usr/contrib/lib and
5134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5135 # libtool to hard-code these into programs
5138 cygwin* | mingw* | pw32*)
5139 version_type=windows
5142 case $GCC,$host_os in
5144 library_names_spec='$libname.dll.a'
5145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5146 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5147 dldir=$destdir/`dirname \$dlpath`~
5148 test -d \$dldir || mkdir -p \$dldir~
5149 $install_prog .libs/$dlname \$dldir/$dlname'
5150 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5151 dlpath=$dir/\$dldll~
5155 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5159 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5162 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5165 dynamic_linker='Win32 ld.exe'
5166 # FIXME: first we should search . and the directory the executable is in
5170 darwin* | rhapsody*)
5171 dynamic_linker="$host_os dyld"
5175 # FIXME: Relying on posixy $() will cause problems for
5176 # cross-compilation, but unfortunately the echo tests do not
5177 # yet detect zsh echo's removal of \ escapes.
5178 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)'
5179 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5180 shlibpath_overrides_runpath=yes
5181 shlibpath_var=DYLD_LIBRARY_PATH
5189 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5190 version_type=freebsd-$objformat
5191 case $version_type in
5193 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5198 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5202 shlibpath_var=LD_LIBRARY_PATH
5205 shlibpath_overrides_runpath=yes
5208 shlibpath_overrides_runpath=no
5209 hardcode_into_libs=yes
5218 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5219 soname_spec='${libname}${release}.so$major'
5220 shlibpath_var=LD_LIBRARY_PATH
5221 hardcode_into_libs=yes
5224 hpux9* | hpux10* | hpux11*)
5225 # Give a soname corresponding to the major version so that dld.sl refuses to
5226 # link against other versions.
5227 dynamic_linker="$host_os dld.sl"
5231 shlibpath_var=SHLIB_PATH
5232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5233 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5234 soname_spec='${libname}${release}.sl$major'
5235 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5236 postinstall_cmds='chmod 555 $lib'
5243 soname_spec='${libname}${release}.so$major'
5244 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5250 case $LD in # libtool.m4 will add one of these switches to LD
5251 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5252 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5253 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5254 *) libsuff= shlibsuff= libmagic=never-match;;
5258 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5259 shlibpath_overrides_runpath=no
5260 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5261 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5264 # No shared lib support for Linux oldld, aout, or coff.
5265 linux*oldld* | linux*aout* | linux*coff*)
5269 # This must be Linux ELF.
5274 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5275 soname_spec='${libname}${release}.so$major'
5276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5277 shlibpath_var=LD_LIBRARY_PATH
5278 shlibpath_overrides_runpath=no
5279 # This implies no fast_install, which is unacceptable.
5280 # Some rework will be needed to allow for fast_install
5281 # before this can be enabled.
5282 hardcode_into_libs=yes
5284 # We used to test for /lib/ld.so.1 and disable shared libraries on
5285 # powerpc, because MkLinux only supported shared libraries with the
5286 # GNU dynamic linker. Since this was broken with cross compilers,
5287 # most powerpc-linux boxes support dynamic linking these days and
5288 # people can always --disable-shared, the test was removed, and we
5289 # assume the GNU/Linux dynamic linker is in use.
5290 dynamic_linker='GNU/Linux ld.so'
5297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5298 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5300 dynamic_linker='NetBSD (a.out) ld.so'
5302 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5303 soname_spec='${libname}${release}.so$major'
5304 dynamic_linker='NetBSD ld.elf_so'
5306 shlibpath_var=LD_LIBRARY_PATH
5307 shlibpath_overrides_runpath=yes
5308 hardcode_into_libs=yes
5313 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5314 shlibpath_var=LD_LIBRARY_PATH
5315 shlibpath_overrides_runpath=yes
5322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5324 openbsd2.[89] | openbsd2.[89].*)
5325 shlibpath_overrides_runpath=no
5328 shlibpath_overrides_runpath=yes
5332 shlibpath_overrides_runpath=yes
5334 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5336 shlibpath_var=LD_LIBRARY_PATH
5340 libname_spec='$name'
5342 library_names_spec='$libname.dll $libname.a'
5343 dynamic_linker='OS/2 ld.exe'
5344 shlibpath_var=LIBPATH
5347 osf3* | osf4* | osf5*)
5350 soname_spec='${libname}${release}.so'
5351 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5352 shlibpath_var=LD_LIBRARY_PATH
5353 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5354 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5359 soname_spec='${libname}${release}.so$major'
5360 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5361 shlibpath_var=LD_LIBRARY_PATH
5368 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5369 soname_spec='${libname}${release}.so$major'
5370 shlibpath_var=LD_LIBRARY_PATH
5371 shlibpath_overrides_runpath=yes
5372 hardcode_into_libs=yes
5373 # ldd complains unless libraries are executable
5374 postinstall_cmds='chmod +x $lib'
5379 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5381 shlibpath_var=LD_LIBRARY_PATH
5382 shlibpath_overrides_runpath=yes
5383 if test "$with_gnu_ld" = yes; then
5389 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5391 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5392 soname_spec='${libname}${release}.so$major'
5393 shlibpath_var=LD_LIBRARY_PATH
5394 case $host_vendor in
5396 shlibpath_overrides_runpath=no
5401 shlibpath_overrides_runpath=no
5402 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5410 soname_spec='${libname}${release}.so$major'
5411 shlibpath_var=LD_LIBRARY_PATH
5418 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5419 soname_spec='${libname}${release}.so$major'
5420 shlibpath_var=LD_LIBRARY_PATH
5424 if test -d /usr/nec ;then
5426 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5427 soname_spec='$libname.so.$major'
5428 shlibpath_var=LD_LIBRARY_PATH
5436 echo "$as_me:5436: result: $dynamic_linker" >&5
5437 echo "${ECHO_T}$dynamic_linker" >&6
5438 test "$dynamic_linker" = no && can_build_shared=no
5440 # Report the final consequences.
5441 echo "$as_me:5441: checking if libtool supports shared libraries" >&5
5442 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5443 echo "$as_me:5443: result: $can_build_shared" >&5
5444 echo "${ECHO_T}$can_build_shared" >&6
5446 echo "$as_me:5446: checking whether to build shared libraries" >&5
5447 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5448 test "$can_build_shared" = "no" && enable_shared=no
5450 # On AIX, shared libraries and static libraries use the same namespace, and
5451 # are all built from PIC.
5454 test "$enable_shared" = yes && enable_static=no
5455 if test -n "$RANLIB"; then
5456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5457 postinstall_cmds='$RANLIB $lib'
5462 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5463 test "$enable_shared" = yes && enable_static=no
5467 echo "$as_me:5467: result: $enable_shared" >&5
5468 echo "${ECHO_T}$enable_shared" >&6
5470 echo "$as_me:5470: checking whether to build static libraries" >&5
5471 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5472 # Make sure either enable_shared or enable_static is yes.
5473 test "$enable_shared" = yes || enable_static=yes
5474 echo "$as_me:5474: result: $enable_static" >&5
5475 echo "${ECHO_T}$enable_static" >&6
5477 if test "$hardcode_action" = relink; then
5478 # Fast installation is not supported
5479 enable_fast_install=no
5480 elif test "$shlibpath_overrides_runpath" = yes ||
5481 test "$enable_shared" = no; then
5482 # Fast installation is not necessary
5483 enable_fast_install=needless
5486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5487 if test "$GCC" = yes; then
5488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5491 if test "x$enable_dlopen" != xyes; then
5492 enable_dlopen=unknown
5493 enable_dlopen_self=unknown
5494 enable_dlopen_self_static=unknown
5501 lt_cv_dlopen="load_add_on"
5503 lt_cv_dlopen_self=yes
5506 cygwin* | mingw* | pw32*)
5507 lt_cv_dlopen="LoadLibrary"
5512 echo "$as_me:5512: checking for shl_load" >&5
5513 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5514 if test "${ac_cv_func_shl_load+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line 5518 "configure"
5519 #include "confdefs.h"
5520 /* System header to define __stub macros and hopefully few prototypes,
5521 which can conflict with char shl_load (); below. */
5523 /* Override any gcc2 internal prototype to avoid an error. */
5527 /* We use char because int might match the return type of a gcc2
5528 builtin and then its argument prototype would still apply. */
5535 /* The GNU C library defines this for functions which it implements
5536 to always fail with ENOSYS. Some functions are actually named
5537 something starting with __ and the normal name is an alias. */
5538 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5548 rm -f conftest.$ac_objext conftest$ac_exeext
5549 if { (eval echo "$as_me:5549: \"$ac_link\"") >&5
5550 (eval $ac_link) 2>&5
5552 echo "$as_me:5552: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
5554 { ac_try='test -s conftest$ac_exeext'
5555 { (eval echo "$as_me:5555: \"$ac_try\"") >&5
5558 echo "$as_me:5558: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 ac_cv_func_shl_load=yes
5562 echo "$as_me: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 ac_cv_func_shl_load=no
5566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5568 echo "$as_me:5568: result: $ac_cv_func_shl_load" >&5
5569 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5570 if test $ac_cv_func_shl_load = yes; then
5571 lt_cv_dlopen="shl_load"
5573 echo "$as_me:5573: checking for shl_load in -ldld" >&5
5574 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5575 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 ac_check_lib_save_LIBS=$LIBS
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line 5581 "configure"
5582 #include "confdefs.h"
5584 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5599 rm -f conftest.$ac_objext conftest$ac_exeext
5600 if { (eval echo "$as_me:5600: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5603 echo "$as_me:5603: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:5606: \"$ac_try\"") >&5
5609 echo "$as_me:5609: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_lib_dld_shl_load=yes
5613 echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_cv_lib_dld_shl_load=no
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5620 echo "$as_me:5620: result: $ac_cv_lib_dld_shl_load" >&5
5621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5622 if test $ac_cv_lib_dld_shl_load = yes; then
5623 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5625 echo "$as_me:5625: checking for dlopen" >&5
5626 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5627 if test "${ac_cv_func_dlopen+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line 5631 "configure"
5632 #include "confdefs.h"
5633 /* System header to define __stub macros and hopefully few prototypes,
5634 which can conflict with char dlopen (); below. */
5636 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5648 /* The GNU C library defines this for functions which it implements
5649 to always fail with ENOSYS. Some functions are actually named
5650 something starting with __ and the normal name is an alias. */
5651 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5661 rm -f conftest.$ac_objext conftest$ac_exeext
5662 if { (eval echo "$as_me:5662: \"$ac_link\"") >&5
5663 (eval $ac_link) 2>&5
5665 echo "$as_me:5665: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:5668: \"$ac_try\"") >&5
5671 echo "$as_me:5671: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_func_dlopen=yes
5675 echo "$as_me: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 ac_cv_func_dlopen=no
5679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 echo "$as_me:5681: result: $ac_cv_func_dlopen" >&5
5682 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5683 if test $ac_cv_func_dlopen = yes; then
5684 lt_cv_dlopen="dlopen"
5686 echo "$as_me:5686: checking for dlopen in -ldl" >&5
5687 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 ac_check_lib_save_LIBS=$LIBS
5693 cat >conftest.$ac_ext <<_ACEOF
5694 #line 5694 "configure"
5695 #include "confdefs.h"
5697 /* Override any gcc2 internal prototype to avoid an error. */
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5712 rm -f conftest.$ac_objext conftest$ac_exeext
5713 if { (eval echo "$as_me:5713: \"$ac_link\"") >&5
5714 (eval $ac_link) 2>&5
5716 echo "$as_me:5716: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:5719: \"$ac_try\"") >&5
5722 echo "$as_me:5722: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_cv_lib_dl_dlopen=yes
5726 echo "$as_me: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5728 ac_cv_lib_dl_dlopen=no
5730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5731 LIBS=$ac_check_lib_save_LIBS
5733 echo "$as_me:5733: result: $ac_cv_lib_dl_dlopen" >&5
5734 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5735 if test $ac_cv_lib_dl_dlopen = yes; then
5736 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5738 echo "$as_me:5738: checking for dlopen in -lsvld" >&5
5739 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5740 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 ac_check_lib_save_LIBS=$LIBS
5745 cat >conftest.$ac_ext <<_ACEOF
5746 #line 5746 "configure"
5747 #include "confdefs.h"
5749 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5764 rm -f conftest.$ac_objext conftest$ac_exeext
5765 if { (eval echo "$as_me:5765: \"$ac_link\"") >&5
5766 (eval $ac_link) 2>&5
5768 echo "$as_me:5768: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:5771: \"$ac_try\"") >&5
5774 echo "$as_me:5774: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_cv_lib_svld_dlopen=yes
5778 echo "$as_me: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5780 ac_cv_lib_svld_dlopen=no
5782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5783 LIBS=$ac_check_lib_save_LIBS
5785 echo "$as_me:5785: result: $ac_cv_lib_svld_dlopen" >&5
5786 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5787 if test $ac_cv_lib_svld_dlopen = yes; then
5788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5790 echo "$as_me:5790: checking for dld_link in -ldld" >&5
5791 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5792 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_check_lib_save_LIBS=$LIBS
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line 5798 "configure"
5799 #include "confdefs.h"
5801 /* Override any gcc2 internal prototype to avoid an error. */
5805 /* We use char because int might match the return type of a gcc2
5806 builtin and then its argument prototype would still apply. */
5816 rm -f conftest.$ac_objext conftest$ac_exeext
5817 if { (eval echo "$as_me:5817: \"$ac_link\"") >&5
5818 (eval $ac_link) 2>&5
5820 echo "$as_me:5820: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5822 { ac_try='test -s conftest$ac_exeext'
5823 { (eval echo "$as_me:5823: \"$ac_try\"") >&5
5826 echo "$as_me:5826: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_lib_dld_dld_link=yes
5830 echo "$as_me: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5832 ac_cv_lib_dld_dld_link=no
5834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5835 LIBS=$ac_check_lib_save_LIBS
5837 echo "$as_me:5837: result: $ac_cv_lib_dld_dld_link" >&5
5838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5839 if test $ac_cv_lib_dld_dld_link = yes; then
5840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5856 if test "x$lt_cv_dlopen" != xno; then
5862 case $lt_cv_dlopen in
5864 save_CPPFLAGS="$CPPFLAGS"
5865 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5867 save_LDFLAGS="$LDFLAGS"
5868 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5871 LIBS="$lt_cv_dlopen_libs $LIBS"
5873 echo "$as_me:5873: checking whether a program can dlopen itself" >&5
5874 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5875 if test "${lt_cv_dlopen_self+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test "$cross_compiling" = yes; then :
5879 lt_cv_dlopen_self=cross
5881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5882 lt_status=$lt_dlunknown
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5884 "configure"
5885 #include "confdefs.h"
5894 # define LT_DLGLOBAL RTLD_GLOBAL
5897 # define LT_DLGLOBAL DL_GLOBAL
5899 # define LT_DLGLOBAL 0
5903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5904 find out it does not work in some platform. */
5905 #ifndef LT_DLLAZY_OR_NOW
5907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5910 # define LT_DLLAZY_OR_NOW DL_LAZY
5913 # define LT_DLLAZY_OR_NOW RTLD_NOW
5916 # define LT_DLLAZY_OR_NOW DL_NOW
5918 # define LT_DLLAZY_OR_NOW 0
5926 extern "C" void exit (int);
5929 void fnord() { int i=42;}
5932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5933 int status = $lt_dlunknown;
5937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5939 /* dlclose (self); */
5945 if { (eval echo "$as_me:5945: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>&5
5948 echo "$as_me:5948: \$? = $ac_status" >&5
5949 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5950 (./conftest; exit; ) 2>/dev/null
5953 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5954 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5955 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5958 # compilation failed
5959 lt_cv_dlopen_self=no
5965 echo "$as_me:5965: result: $lt_cv_dlopen_self" >&5
5966 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5968 if test "x$lt_cv_dlopen_self" = xyes; then
5969 LDFLAGS="$LDFLAGS $link_static_flag"
5970 echo "$as_me:5970: checking whether a statically linked program can dlopen itself" >&5
5971 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5972 if test "${lt_cv_dlopen_self_static+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 if test "$cross_compiling" = yes; then :
5976 lt_cv_dlopen_self_static=cross
5978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5979 lt_status=$lt_dlunknown
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5981 "configure"
5982 #include "confdefs.h"
5991 # define LT_DLGLOBAL RTLD_GLOBAL
5994 # define LT_DLGLOBAL DL_GLOBAL
5996 # define LT_DLGLOBAL 0
6000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6001 find out it does not work in some platform. */
6002 #ifndef LT_DLLAZY_OR_NOW
6004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6007 # define LT_DLLAZY_OR_NOW DL_LAZY
6010 # define LT_DLLAZY_OR_NOW RTLD_NOW
6013 # define LT_DLLAZY_OR_NOW DL_NOW
6015 # define LT_DLLAZY_OR_NOW 0
6023 extern "C" void exit (int);
6026 void fnord() { int i=42;}
6029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6030 int status = $lt_dlunknown;
6034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6035 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6036 /* dlclose (self); */
6042 if { (eval echo "$as_me:6042: \"$ac_link\"") >&5
6043 (eval $ac_link) 2>&5
6045 echo "$as_me:6045: \$? = $ac_status" >&5
6046 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6047 (./conftest; exit; ) 2>/dev/null
6050 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6051 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6052 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6055 # compilation failed
6056 lt_cv_dlopen_self_static=no
6062 echo "$as_me:6062: result: $lt_cv_dlopen_self_static" >&5
6063 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6066 CPPFLAGS="$save_CPPFLAGS"
6067 LDFLAGS="$save_LDFLAGS"
6072 case $lt_cv_dlopen_self in
6073 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6074 *) enable_dlopen_self=unknown ;;
6077 case $lt_cv_dlopen_self_static in
6078 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6079 *) enable_dlopen_self_static=unknown ;;
6083 if test "$enable_shared" = yes && test "$GCC" = yes; then
6084 case $archive_cmds in
6086 # FIXME: we may have to deal with multi-command sequences.
6089 # Test whether the compiler implicitly links with -lc since on some
6090 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6091 # to ld, don't add -lc before -lgcc.
6092 echo "$as_me:6092: checking whether -lc should be explicitly linked in" >&5
6093 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6094 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 echo 'static int dummy;' > conftest.$ac_ext
6100 if { (eval echo "$as_me:6100: \"$ac_compile\"") >&5
6101 (eval $ac_compile) 2>&5
6103 echo "$as_me:6103: \$? = $ac_status" >&5
6104 (exit $ac_status); }; then
6107 libobjs=conftest.$ac_objext
6109 wl=$lt_cv_prog_cc_wl
6115 save_allow_undefined_flag=$allow_undefined_flag
6116 allow_undefined_flag=
6117 if { (eval echo "$as_me:6117: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6118 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6120 echo "$as_me:6120: \$? = $ac_status" >&5
6121 (exit $ac_status); }
6123 lt_cv_archive_cmds_need_lc=no
6125 lt_cv_archive_cmds_need_lc=yes
6127 allow_undefined_flag=$save_allow_undefined_flag
6129 cat conftest.err 1>&5
6133 echo "$as_me:6133: result: $lt_cv_archive_cmds_need_lc" >&5
6134 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6138 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6140 # The second clause should only fire when bootstrapping the
6141 # libtool distribution, otherwise you forgot to ship ltmain.sh
6142 # with your package, and you will get complaints that there are
6143 # no rules to generate ltmain.sh.
6144 if test -f "$ltmain"; then
6147 # If there is no Makefile yet, we rely on a make rule to execute
6148 # `config.status --recheck' to rerun these tests and create the
6149 # libtool script then.
6150 test -f Makefile && make "$ltmain"
6153 if test -f "$ltmain"; then
6154 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6157 echo creating $ofile
6159 # Now quote all the things that may contain metacharacters while being
6160 # careful not to overquote the AC_SUBSTed values. We take copies of the
6161 # variables and quote the copies for generation of the libtool script.
6162 for var in echo old_CC old_CFLAGS \
6163 AR AR_FLAGS CC LD LN_S NM SHELL \
6164 reload_flag reload_cmds wl \
6165 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6166 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6167 library_names_spec soname_spec \
6168 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6169 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6170 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6171 old_striplib striplib file_magic_cmd export_symbols_cmds \
6172 deplibs_check_method allow_undefined_flag no_undefined_flag \
6173 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6174 global_symbol_to_c_name_address \
6175 hardcode_libdir_flag_spec hardcode_libdir_separator \
6176 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6177 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6180 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6181 old_postinstall_cmds | old_postuninstall_cmds | \
6182 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6183 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6184 postinstall_cmds | postuninstall_cmds | \
6185 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6186 # Double-quote double-evaled strings.
6187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6195 cat <<__EOF__ > "${ofile}T"
6198 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6199 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6200 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6202 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6203 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6205 # This program is free software; you can redistribute it and/or modify
6206 # it under the terms of the GNU General Public License as published by
6207 # the Free Software Foundation; either version 2 of the License, or
6208 # (at your option) any later version.
6210 # This program is distributed in the hope that it will be useful, but
6211 # WITHOUT ANY WARRANTY; without even the implied warranty of
6212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6213 # General Public License for more details.
6215 # You should have received a copy of the GNU General Public License
6216 # along with this program; if not, write to the Free Software
6217 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6219 # As a special exception to the GNU General Public License, if you
6220 # distribute this file as part of a program that contains a
6221 # configuration script generated by Autoconf, you may include it under
6222 # the same distribution terms that you use for the rest of that program.
6224 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6225 Xsed="sed -e s/^X//"
6227 # The HP-UX ksh and POSIX shell print the target directory to stdout
6229 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6231 # ### BEGIN LIBTOOL CONFIG
6233 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6235 # Shell to use when invoking shell scripts.
6238 # Whether or not to build shared libraries.
6239 build_libtool_libs=$enable_shared
6241 # Whether or not to build static libraries.
6242 build_old_libs=$enable_static
6244 # Whether or not to add -lc for building shared libraries.
6245 build_libtool_need_lc=$need_lc
6247 # Whether or not to optimize for fast installation.
6248 fast_install=$enable_fast_install
6251 host_alias=$host_alias
6254 # An echo program that does not interpret backslashes.
6259 AR_FLAGS=$lt_AR_FLAGS
6261 # The default C compiler.
6264 # Is the compiler the GNU C compiler?
6267 # The linker used to build libraries.
6270 # Whether we need hard or soft links.
6273 # A BSD-compatible nm program.
6276 # A symbol stripping program
6279 # Used to examine libraries when file_magic_cmd begins "file"
6280 MAGIC_CMD=$MAGIC_CMD
6282 # Used on cygwin: DLL creation program.
6285 # Used on cygwin: object dumper.
6288 # Used on cygwin: assembler.
6291 # The name of the directory that contains temporary libtool files.
6294 # How to create reloadable object files.
6295 reload_flag=$lt_reload_flag
6296 reload_cmds=$lt_reload_cmds
6298 # How to pass a linker flag through the compiler.
6301 # Object file suffix (normally "o").
6304 # Old archive suffix (normally "a").
6307 # Executable file suffix (normally "").
6310 # Additional compiler flags for building library objects.
6311 pic_flag=$lt_pic_flag
6314 # Does compiler simultaneously support -c and -o options?
6315 compiler_c_o=$lt_compiler_c_o
6317 # Can we write directly to a .lo ?
6318 compiler_o_lo=$lt_compiler_o_lo
6320 # Must we lock files when doing compilation ?
6321 need_locks=$lt_need_locks
6323 # Do we need the lib prefix for modules?
6324 need_lib_prefix=$need_lib_prefix
6326 # Do we need a version for libraries?
6327 need_version=$need_version
6329 # Whether dlopen is supported.
6330 dlopen_support=$enable_dlopen
6332 # Whether dlopen of programs is supported.
6333 dlopen_self=$enable_dlopen_self
6335 # Whether dlopen of statically linked programs is supported.
6336 dlopen_self_static=$enable_dlopen_self_static
6338 # Compiler flag to prevent dynamic linking.
6339 link_static_flag=$lt_link_static_flag
6341 # Compiler flag to turn off builtin functions.
6342 no_builtin_flag=$lt_no_builtin_flag
6344 # Compiler flag to allow reflexive dlopens.
6345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6347 # Compiler flag to generate shared objects directly from archives.
6348 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6350 # Compiler flag to generate thread-safe objects.
6351 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6353 # Library versioning type.
6354 version_type=$version_type
6356 # Format of library name prefix.
6357 libname_spec=$lt_libname_spec
6359 # List of archive names. First name is the real one, the rest are links.
6360 # The last name is the one that the linker finds with -lNAME.
6361 library_names_spec=$lt_library_names_spec
6363 # The coded name of the library, if different from the real name.
6364 soname_spec=$lt_soname_spec
6366 # Commands used to build and install an old-style archive.
6368 old_archive_cmds=$lt_old_archive_cmds
6369 old_postinstall_cmds=$lt_old_postinstall_cmds
6370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6372 # Create an old-style archive from a shared archive.
6373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6375 # Create a temporary old-style archive to link instead of a shared archive.
6376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6378 # Commands used to build and install a shared archive.
6379 archive_cmds=$lt_archive_cmds
6380 archive_expsym_cmds=$lt_archive_expsym_cmds
6381 postinstall_cmds=$lt_postinstall_cmds
6382 postuninstall_cmds=$lt_postuninstall_cmds
6384 # Commands to strip libraries.
6385 old_striplib=$lt_old_striplib
6386 striplib=$lt_striplib
6388 # Method to check whether dependent libraries are shared objects.
6389 deplibs_check_method=$lt_deplibs_check_method
6391 # Command to use when deplibs_check_method == file_magic.
6392 file_magic_cmd=$lt_file_magic_cmd
6394 # Flag that allows shared libraries with undefined symbols to be built.
6395 allow_undefined_flag=$lt_allow_undefined_flag
6397 # Flag that forces no undefined symbols.
6398 no_undefined_flag=$lt_no_undefined_flag
6400 # Commands used to finish a libtool library installation in a directory.
6401 finish_cmds=$lt_finish_cmds
6403 # Same as above, but a single script fragment to be evaled but not shown.
6404 finish_eval=$lt_finish_eval
6406 # Take the output of nm and produce a listing of raw symbols and C names.
6407 global_symbol_pipe=$lt_global_symbol_pipe
6409 # Transform the output of nm in a proper C declaration
6410 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6412 # Transform the output of nm in a C name address pair
6413 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6415 # This is the shared library runtime path variable.
6416 runpath_var=$runpath_var
6418 # This is the shared library path variable.
6419 shlibpath_var=$shlibpath_var
6421 # Is shlibpath searched before the hard-coded library search path?
6422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6424 # How to hardcode a shared library path into an executable.
6425 hardcode_action=$hardcode_action
6427 # Whether we should hardcode library paths into libraries.
6428 hardcode_into_libs=$hardcode_into_libs
6430 # Flag to hardcode \$libdir into a binary during linking.
6431 # This must work even if \$libdir does not exist.
6432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6434 # Whether we need a single -rpath flag with a separated argument.
6435 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6437 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6439 hardcode_direct=$hardcode_direct
6441 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6443 hardcode_minus_L=$hardcode_minus_L
6445 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6446 # the resulting binary.
6447 hardcode_shlibpath_var=$hardcode_shlibpath_var
6449 # Variables whose values should be saved in libtool wrapper scripts and
6450 # restored at relink time.
6451 variables_saved_for_relink="$variables_saved_for_relink"
6453 # Whether libtool must link a program against all its dependency libraries.
6454 link_all_deplibs=$link_all_deplibs
6456 # Compile-time system search path for libraries
6457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6459 # Run-time system search path for libraries
6460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6462 # Fix the shell variable \$srcfile for the compiler.
6463 fix_srcfile_path="$fix_srcfile_path"
6465 # Set to yes if exported symbols are required.
6466 always_export_symbols=$always_export_symbols
6468 # The commands to list exported symbols.
6469 export_symbols_cmds=$lt_export_symbols_cmds
6471 # The commands to extract the exported symbol list from a shared archive.
6472 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6474 # Symbols that should not be listed in the preloaded symbols.
6475 exclude_expsyms=$lt_exclude_expsyms
6477 # Symbols that must always be exported.
6478 include_expsyms=$lt_include_expsyms
6480 # ### END LIBTOOL CONFIG
6486 cat <<\EOF >> "${ofile}T"
6488 # AIX sometimes has problems with the GCC collect2 program. For some
6489 # reason, if we set the COLLECT_NAMES environment variable, the problems
6490 # vanish in a puff of smoke.
6491 if test "X${COLLECT_NAMES+set}" != Xset; then
6493 export COLLECT_NAMES
6500 cygwin* | mingw* | pw32* | os2*)
6501 cat <<'EOF' >> "${ofile}T"
6502 # This is a source program that is used to create dlls on Windows
6503 # Don't remove nor modify the starting and closing comments
6504 # /* ltdll.c starts here */
6505 # #define WIN32_LEAN_AND_MEAN
6506 # #include <windows.h>
6507 # #undef WIN32_LEAN_AND_MEAN
6508 # #include <stdio.h>
6510 # #ifndef __CYGWIN__
6511 # # ifdef __CYGWIN32__
6512 # # define __CYGWIN__ __CYGWIN32__
6516 # #ifdef __cplusplus
6519 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6520 # #ifdef __cplusplus
6525 # #include <cygwin/cygwin_dll.h>
6526 # DECLARE_CYGWIN_DLL( DllMain );
6528 # HINSTANCE __hDllInstance_base;
6531 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6533 # __hDllInstance_base = hInst;
6536 # /* ltdll.c ends here */
6537 # This is a source program that is used to create import libraries
6538 # on Windows for dlls which lack them. Don't remove nor modify the
6539 # starting and closing comments
6540 # /* impgen.c starts here */
6541 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6543 # This file is part of GNU libtool.
6545 # This program is free software; you can redistribute it and/or modify
6546 # it under the terms of the GNU General Public License as published by
6547 # the Free Software Foundation; either version 2 of the License, or
6548 # (at your option) any later version.
6550 # This program is distributed in the hope that it will be useful,
6551 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6552 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6553 # GNU General Public License for more details.
6555 # You should have received a copy of the GNU General Public License
6556 # along with this program; if not, write to the Free Software
6557 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6560 # #include <stdio.h> /* for printf() */
6561 # #include <unistd.h> /* for open(), lseek(), read() */
6562 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6563 # #include <string.h> /* for strdup() */
6565 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6567 # #define O_BINARY 0
6570 # static unsigned int
6571 # pe_get16 (fd, offset)
6575 # unsigned char b[2];
6576 # lseek (fd, offset, SEEK_SET);
6578 # return b[0] + (b[1]<<8);
6581 # static unsigned int
6582 # pe_get32 (fd, offset)
6586 # unsigned char b[4];
6587 # lseek (fd, offset, SEEK_SET);
6589 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6592 # static unsigned int
6596 # unsigned char *b = ptr;
6597 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6606 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6607 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6608 # unsigned long name_rvas, nexp;
6609 # unsigned char *expdata, *erva;
6610 # char *filename, *dll_name;
6612 # filename = argv[1];
6614 # dll = open(filename, O_RDONLY|O_BINARY);
6618 # dll_name = filename;
6620 # for (i=0; filename[i]; i++)
6621 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6622 # dll_name = filename + i +1;
6624 # pe_header_offset = pe_get32 (dll, 0x3c);
6625 # opthdr_ofs = pe_header_offset + 4 + 20;
6626 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6628 # if (num_entries < 1) /* no exports */
6631 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6632 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6633 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6634 # secptr = (pe_header_offset + 4 + 20 +
6635 # pe_get16 (dll, pe_header_offset + 4 + 16));
6638 # for (i = 0; i < nsections; i++)
6641 # unsigned long secptr1 = secptr + 40 * i;
6642 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6643 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6644 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6645 # lseek(dll, secptr1, SEEK_SET);
6646 # read(dll, sname, 8);
6647 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6649 # expptr = fptr + (export_rva - vaddr);
6650 # if (export_rva + export_size > vaddr + vsize)
6651 # export_size = vsize - (export_rva - vaddr);
6656 # expdata = (unsigned char*)malloc(export_size);
6657 # lseek (dll, expptr, SEEK_SET);
6658 # read (dll, expdata, export_size);
6659 # erva = expdata - export_rva;
6661 # nexp = pe_as32 (expdata+24);
6662 # name_rvas = pe_as32 (expdata+32);
6664 # printf ("EXPORTS\n");
6665 # for (i = 0; i<nexp; i++)
6667 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6668 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6673 # /* impgen.c ends here */
6679 # We use sed instead of cat because bash on DJGPP gets confused if
6680 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6681 # text mode, it properly converts lines to CR/LF. This bash problem
6682 # is reportedly fixed, but why not run on old versions too?
6683 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6685 mv -f "${ofile}T" "$ofile" || \
6686 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6690 # This can be used to rebuild libtool when needed
6691 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6693 # Always use our own libtool.
6694 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6696 # Prevent multiple expansion
6698 # Check whether --enable-debug or --disable-debug was given.
6699 if test "${enable_debug+set}" = set; then
6700 enableval="$enable_debug"
6702 CXXFLAGS="-g -O0 -Wall"
6703 cat >>confdefs.h <<\EOF
6704 #define WITH_DEBUG 1
6713 # Check whether --with-libldap or --without-libldap was given.
6714 if test "${with_libldap+set}" = set; then
6715 withval="$with_libldap"
6717 LIBS="-L$with_libldap $LIBS "
6721 LIBS="-L/usr/local/lib $LIBS "
6725 # Check whether --with-ldap-includes or --without-ldap-includes was given.
6726 if test "${with_ldap_includes+set}" = set; then
6727 withval="$with_ldap_includes"
6729 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
6733 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
6737 echo "$as_me:6737: checking for main in -lresolv" >&5
6738 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
6739 if test "${ac_cv_lib_resolv_main+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 ac_check_lib_save_LIBS=$LIBS
6743 LIBS="-lresolv $LIBS"
6744 cat >conftest.$ac_ext <<_ACEOF
6745 #line 6745 "configure"
6746 #include "confdefs.h"
6756 rm -f conftest.$ac_objext conftest$ac_exeext
6757 if { (eval echo "$as_me:6757: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>&5
6760 echo "$as_me:6760: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -s conftest$ac_exeext'
6763 { (eval echo "$as_me:6763: \"$ac_try\"") >&5
6766 echo "$as_me:6766: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 ac_cv_lib_resolv_main=yes
6770 echo "$as_me: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6772 ac_cv_lib_resolv_main=no
6774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6775 LIBS=$ac_check_lib_save_LIBS
6777 echo "$as_me:6777: result: $ac_cv_lib_resolv_main" >&5
6778 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6779 if test $ac_cv_lib_resolv_main = yes; then
6780 cat >>confdefs.h <<EOF
6781 #define HAVE_LIBRESOLV 1
6784 LIBS="-lresolv $LIBS"
6788 echo "$as_me:6788: checking for ber_strdup in -llber" >&5
6789 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
6790 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_check_lib_save_LIBS=$LIBS
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6799 /* Override any gcc2 internal prototype to avoid an error. */
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6814 rm -f conftest.$ac_objext conftest$ac_exeext
6815 if { (eval echo "$as_me:6815: \"$ac_link\"") >&5
6816 (eval $ac_link) 2>&5
6818 echo "$as_me:6818: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -s conftest$ac_exeext'
6821 { (eval echo "$as_me:6821: \"$ac_try\"") >&5
6824 echo "$as_me:6824: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_cv_lib_lber_ber_strdup=yes
6828 echo "$as_me: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 ac_cv_lib_lber_ber_strdup=no
6832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6833 LIBS=$ac_check_lib_save_LIBS
6835 echo "$as_me:6835: result: $ac_cv_lib_lber_ber_strdup" >&5
6836 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
6837 if test $ac_cv_lib_lber_ber_strdup = yes; then
6843 echo " didn't find ber_strdup in liblber !";
6844 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
6845 echo " or try the --with-libldap option.";
6850 echo "$as_me:6850: checking for ldap_add_ext in -lldap" >&5
6851 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
6852 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 ac_check_lib_save_LIBS=$LIBS
6859 cat >conftest.$ac_ext <<_ACEOF
6860 #line 6860 "configure"
6861 #include "confdefs.h"
6863 /* Override any gcc2 internal prototype to avoid an error. */
6867 /* We use char because int might match the return type of a gcc2
6868 builtin and then its argument prototype would still apply. */
6869 char ldap_add_ext ();
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (eval echo "$as_me:6879: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>&5
6882 echo "$as_me:6882: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -s conftest$ac_exeext'
6885 { (eval echo "$as_me:6885: \"$ac_try\"") >&5
6888 echo "$as_me:6888: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_lib_ldap_ldap_add_ext=yes
6892 echo "$as_me: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6894 ac_cv_lib_ldap_ldap_add_ext=no
6896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6897 LIBS=$ac_check_lib_save_LIBS
6899 echo "$as_me:6899: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
6900 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
6901 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
6907 echo " didn't find ldap_add_ext in libldap !";
6908 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
6909 echo " or try the --with-libldap option.";
6914 echo "$as_me:6914: checking whether time.h and sys/time.h may both be included" >&5
6915 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6916 if test "${ac_cv_header_time+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 cat >conftest.$ac_ext <<_ACEOF
6920 #line 6920 "configure"
6921 #include "confdefs.h"
6922 #include <sys/types.h>
6923 #include <sys/time.h>
6929 if ((struct tm *) 0)
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:6936: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>&5
6939 echo "$as_me:6939: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:6942: \"$ac_try\"") >&5
6945 echo "$as_me:6945: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_header_time=yes
6949 echo "$as_me: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6951 ac_cv_header_time=no
6953 rm -f conftest.$ac_objext conftest.$ac_ext
6955 echo "$as_me:6955: result: $ac_cv_header_time" >&5
6956 echo "${ECHO_T}$ac_cv_header_time" >&6
6957 if test $ac_cv_header_time = yes; then
6959 cat >>confdefs.h <<\EOF
6960 #define TIME_WITH_SYS_TIME 1
6965 echo "$as_me:6965: checking for ldap.h" >&5
6966 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
6967 if test "${ac_cv_header_ldap_h+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 cat >conftest.$ac_ext <<_ACEOF
6971 #line 6971 "configure"
6972 #include "confdefs.h"
6975 if { (eval echo "$as_me:6975: \"$ac_cpp conftest.$ac_ext\"") >&5
6976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6978 egrep -v '^ *\+' conftest.er1 >conftest.err
6980 cat conftest.err >&5
6981 echo "$as_me:6981: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev/null; then
6983 if test -s conftest.err; then
6984 ac_cpp_err=$ac_c_preproc_warn_flag
6991 if test -z "$ac_cpp_err"; then
6992 ac_cv_header_ldap_h=yes
6994 echo "$as_me: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6996 ac_cv_header_ldap_h=no
6998 rm -f conftest.err conftest.$ac_ext
7000 echo "$as_me:7000: result: $ac_cv_header_ldap_h" >&5
7001 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
7003 cat >conftest.$ac_ext <<_ACEOF
7004 #line 7004 "configure"
7005 #include "confdefs.h"
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 egrep "ldap_add_ext" >/dev/null 2>&1; then
7016 echo " didn't find ldap_add_ext in ldap.h!";
7017 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
7018 echo " or try --with-ldap-includes option.";
7024 echo "$as_me:7024: checking for lber.h" >&5
7025 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
7026 if test "${ac_cv_header_lber_h+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 cat >conftest.$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7034 if { (eval echo "$as_me:7034: \"$ac_cpp conftest.$ac_ext\"") >&5
7035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7037 egrep -v '^ *\+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 (exit $ac_status); } >/dev/null; then
7042 if test -s conftest.err; then
7043 ac_cpp_err=$ac_c_preproc_warn_flag
7050 if test -z "$ac_cpp_err"; then
7051 ac_cv_header_lber_h=yes
7053 echo "$as_me: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 ac_cv_header_lber_h=no
7057 rm -f conftest.err conftest.$ac_ext
7059 echo "$as_me:7059: result: $ac_cv_header_lber_h" >&5
7060 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
7062 cat >conftest.$ac_ext <<_ACEOF
7063 #line 7063 "configure"
7064 #include "confdefs.h"
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 egrep "ber_strdup" >/dev/null 2>&1; then
7075 echo " didn't find ber_strdup in lber.h!";
7076 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
7077 echo " or try --with-ldap-includes option.";
7083 ac_config_files="$ac_config_files Makefile src/Makefile"
7084 cat >confcache <<\_ACEOF
7085 # This file is a shell script that caches the results of configure
7086 # tests run on this system so they can be shared between configure
7087 # scripts and configure runs, see configure's option --config-cache.
7088 # It is not useful on other systems. If it contains results you don't
7089 # want to keep, you may remove or edit it.
7091 # config.status only pays attention to the cache file if you give it
7092 # the --recheck option to rerun configure.
7094 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7095 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7100 # The following way of writing the cache mishandles newlines in values,
7101 # but we know of no workaround that is simple, portable, and efficient.
7102 # So, don't put newlines in cache variables' values.
7103 # Ultrix sh set writes to stderr and can't be redirected directly,
7104 # and sets the high bit in the cache file unless we assign to the vars.
7107 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7109 # `set' does not quote correctly, so add quotes (double-quote
7110 # substitution turns \\\\ into \\, and sed turns \\ into \).
7113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7116 # `set' quotes correctly as required by POSIX, so do not add quotes.
7118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7127 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7129 if cmp -s $cache_file confcache; then :; else
7130 if test -w $cache_file; then
7131 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7132 cat confcache >$cache_file
7134 echo "not updating unwritable cache $cache_file"
7139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7140 # Let make expand exec_prefix.
7141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7143 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7144 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7145 # trailing colons and then remove the whole line if VPATH becomes empty
7146 # (actually we leave an empty line to preserve line numbers).
7147 if test "x$srcdir" = x.; then
7148 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7149 s/:*\$(srcdir):*/:/;
7150 s/:*\${srcdir}:*/:/;
7152 s/^\([^=]*=[ ]*\):*/\1/;
7158 DEFS=-DHAVE_CONFIG_H
7160 : ${CONFIG_STATUS=./config.status}
7161 ac_clean_files_save=$ac_clean_files
7162 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7163 { echo "$as_me:7163: creating $CONFIG_STATUS" >&5
7164 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7165 cat >$CONFIG_STATUS <<_ACEOF
7167 # Generated automatically by configure.
7168 # Run this file to recreate the current configuration.
7169 # Compiler output produced by configure, useful for debugging
7170 # configure, is in config.log if it exists.
7173 SHELL=\${CONFIG_SHELL-$SHELL}
7174 ac_cs_invocation="\$0 \$@"
7178 cat >>$CONFIG_STATUS <<\_ACEOF
7179 # Be Bourne compatible
7180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7187 # Name of the executable.
7188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
7190 if expr a : '\(a\)' >/dev/null 2>&1; then
7196 rm -f conf$$ conf$$.exe conf$$.file
7198 if ln -s conf$$.file conf$$ 2>/dev/null; then
7199 # We could just check for DJGPP; but this test a) works b) is more generic
7200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7201 if test -f conf$$.exe; then
7202 # Don't use ln at all; we don't have any links
7207 elif ln conf$$.file conf$$ 2>/dev/null; then
7212 rm -f conf$$ conf$$.exe conf$$.file
7214 as_executable_p="test -f"
7216 # Support unset when possible.
7217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7234 # We need space, tab and new line, in precisely that order.
7240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7246 # Files that config.status was made for.
7247 if test -n "$ac_config_files"; then
7248 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7251 if test -n "$ac_config_headers"; then
7252 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7255 if test -n "$ac_config_links"; then
7256 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7259 if test -n "$ac_config_commands"; then
7260 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7263 cat >>$CONFIG_STATUS <<\EOF
7266 \`$as_me' instantiates files from templates according to the
7267 current configuration.
7269 Usage: $0 [OPTIONS] [FILE]...
7271 -h, --help print this help, then exit
7272 -V, --version print version number, then exit
7273 -d, --debug don't remove temporary files
7274 --recheck update $as_me by reconfiguring in the same conditions
7275 --file=FILE[:TEMPLATE]
7276 instantiate the configuration file FILE
7277 --header=FILE[:TEMPLATE]
7278 instantiate the configuration header FILE
7280 Configuration files:
7283 Configuration headers:
7286 Configuration commands:
7289 Report bugs to <bug-autoconf@gnu.org>."
7292 cat >>$CONFIG_STATUS <<EOF
7295 configured by $0, generated by GNU Autoconf 2.52,
7296 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7298 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7299 Free Software Foundation, Inc.
7300 This config.status script is free software; the Free Software Foundation
7301 gives unlimited permission to copy, distribute and modify it."
7306 cat >>$CONFIG_STATUS <<\EOF
7307 # If no file are specified by the user, then we need to provide default
7308 # value. By we need to know if files were specified by the user.
7314 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7315 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7317 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7321 *) # This is not an option, so the user has probably given explicit
7323 ac_need_defaults=false;;
7327 # Handling of the options.
7329 cat >>$CONFIG_STATUS <<EOF
7330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7331 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7332 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7334 cat >>$CONFIG_STATUS <<\EOF
7335 --version | --vers* | -V )
7336 echo "$ac_cs_version"; exit 0 ;;
7338 # Conflict between --help and --header
7339 { { echo "$as_me:7339: error: ambiguous option: $1
7340 Try \`$0 --help' for more information." >&5
7341 echo "$as_me: error: ambiguous option: $1
7342 Try \`$0 --help' for more information." >&2;}
7343 { (exit 1); exit 1; }; };;
7344 --help | --hel | -h )
7345 echo "$ac_cs_usage"; exit 0 ;;
7346 --debug | --d* | -d )
7348 --file | --fil | --fi | --f )
7350 CONFIG_FILES="$CONFIG_FILES $1"
7351 ac_need_defaults=false;;
7352 --header | --heade | --head | --hea )
7354 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7355 ac_need_defaults=false;;
7358 -*) { { echo "$as_me:7358: error: unrecognized option: $1
7359 Try \`$0 --help' for more information." >&5
7360 echo "$as_me: error: unrecognized option: $1
7361 Try \`$0 --help' for more information." >&2;}
7362 { (exit 1); exit 1; }; } ;;
7364 *) ac_config_targets="$ac_config_targets $1" ;;
7373 ## ----------------------- ##
7374 ## Running config.status. ##
7375 ## ----------------------- ##
7377 This file was extended by $as_me 2.52, executed with
7378 CONFIG_FILES = $CONFIG_FILES
7379 CONFIG_HEADERS = $CONFIG_HEADERS
7380 CONFIG_LINKS = $CONFIG_LINKS
7381 CONFIG_COMMANDS = $CONFIG_COMMANDS
7383 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7388 cat >>$CONFIG_STATUS <<EOF
7390 # INIT-COMMANDS section.
7395 cat >>$CONFIG_STATUS <<\EOF
7396 for ac_config_target in $ac_config_targets
7398 case "$ac_config_target" in
7399 # Handling of arguments.
7400 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7401 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7402 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7403 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
7404 *) { { echo "$as_me:7404: error: invalid argument: $ac_config_target" >&5
7405 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7406 { (exit 1); exit 1; }; };;
7410 # If the user did not use the arguments to specify the items to instantiate,
7411 # then the envvar interface is used. Set only those that are not.
7412 # We use the long form for the default assignment because of an extremely
7413 # bizarre bug on SunOS 4.1.3.
7414 if $ac_need_defaults; then
7415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7420 # Create a temporary directory, and hook for its removal unless debugging.
7423 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7424 trap '{ (exit 1); exit 1; }' 1 2 13 15
7427 # Create a (secure) tmp directory for tmp files.
7430 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7431 test -n "$tmp" && test -d "$tmp"
7434 tmp=$TMPDIR/cs$$-$RANDOM
7435 (umask 077 && mkdir $tmp)
7438 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7439 { (exit 1); exit 1; }
7444 cat >>$CONFIG_STATUS <<EOF
7447 # CONFIG_FILES section.
7450 # No need to generate the scripts if there are no CONFIG_FILES.
7451 # This happens for instance when ./config.status config.h
7452 if test -n "\$CONFIG_FILES"; then
7453 # Protect against being on the right side of a sed subst in config.status.
7454 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7455 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7456 s,@SHELL@,$SHELL,;t t
7457 s,@exec_prefix@,$exec_prefix,;t t
7458 s,@prefix@,$prefix,;t t
7459 s,@program_transform_name@,$program_transform_name,;t t
7460 s,@bindir@,$bindir,;t t
7461 s,@sbindir@,$sbindir,;t t
7462 s,@libexecdir@,$libexecdir,;t t
7463 s,@datadir@,$datadir,;t t
7464 s,@sysconfdir@,$sysconfdir,;t t
7465 s,@sharedstatedir@,$sharedstatedir,;t t
7466 s,@localstatedir@,$localstatedir,;t t
7467 s,@libdir@,$libdir,;t t
7468 s,@includedir@,$includedir,;t t
7469 s,@oldincludedir@,$oldincludedir,;t t
7470 s,@infodir@,$infodir,;t t
7471 s,@mandir@,$mandir,;t t
7472 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7473 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7474 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7475 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7476 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7477 s,@build_alias@,$build_alias,;t t
7478 s,@host_alias@,$host_alias,;t t
7479 s,@target_alias@,$target_alias,;t t
7480 s,@ECHO_C@,$ECHO_C,;t t
7481 s,@ECHO_N@,$ECHO_N,;t t
7482 s,@ECHO_T@,$ECHO_T,;t t
7483 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7486 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7487 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7488 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7489 s,@PACKAGE@,$PACKAGE,;t t
7490 s,@VERSION@,$VERSION,;t t
7491 s,@ACLOCAL@,$ACLOCAL,;t t
7492 s,@AUTOCONF@,$AUTOCONF,;t t
7493 s,@AUTOMAKE@,$AUTOMAKE,;t t
7494 s,@AUTOHEADER@,$AUTOHEADER,;t t
7495 s,@MAKEINFO@,$MAKEINFO,;t t
7496 s,@SET_MAKE@,$SET_MAKE,;t t
7498 s,@CXXFLAGS@,$CXXFLAGS,;t t
7499 s,@LDFLAGS@,$LDFLAGS,;t t
7500 s,@CPPFLAGS@,$CPPFLAGS,;t t
7501 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7502 s,@EXEEXT@,$EXEEXT,;t t
7503 s,@OBJEXT@,$OBJEXT,;t t
7504 s,@build@,$build,;t t
7505 s,@build_cpu@,$build_cpu,;t t
7506 s,@build_vendor@,$build_vendor,;t t
7507 s,@build_os@,$build_os,;t t
7509 s,@host_cpu@,$host_cpu,;t t
7510 s,@host_vendor@,$host_vendor,;t t
7511 s,@host_os@,$host_os,;t t
7513 s,@CFLAGS@,$CFLAGS,;t t
7514 s,@ac_ct_CC@,$ac_ct_CC,;t t
7517 s,@RANLIB@,$RANLIB,;t t
7518 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7519 s,@STRIP@,$STRIP,;t t
7520 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7522 s,@LIBTOOL@,$LIBTOOL,;t t
7527 cat >>$CONFIG_STATUS <<\EOF
7528 # Split the substitutions into bite-sized pieces for seds with
7529 # small command number limits, like on Digital OSF/1 and HP-UX.
7531 ac_sed_frag=1 # Number of current file.
7532 ac_beg=1 # First line for current file.
7533 ac_end=$ac_max_sed_lines # Line after last line for current file.
7536 while $ac_more_lines; do
7537 if test $ac_beg -gt 1; then
7538 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7540 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7542 if test ! -s $tmp/subs.frag; then
7545 # The purpose of the label and of the branching condition is to
7546 # speed up the sed processing (if there are no `@' at all, there
7547 # is no need to browse any of the substitutions).
7548 # These are the two extra sed commands mentioned above.
7550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7551 if test -z "$ac_sed_cmds"; then
7552 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7554 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7556 ac_sed_frag=`expr $ac_sed_frag + 1`
7558 ac_end=`expr $ac_end + $ac_max_sed_lines`
7561 if test -z "$ac_sed_cmds"; then
7564 fi # test -n "$CONFIG_FILES"
7567 cat >>$CONFIG_STATUS <<\EOF
7568 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7571 - | *:- | *:-:* ) # input from stdin
7573 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7575 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7577 * ) ac_file_in=$ac_file.in ;;
7580 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7581 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7582 X"$ac_file" : 'X\(//\)[^/]' \| \
7583 X"$ac_file" : 'X\(//\)$' \| \
7584 X"$ac_file" : 'X\(/\)' \| \
7585 . : '\(.\)' 2>/dev/null ||
7587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7589 /^X\(\/\/\)$/{ s//\1/; q; }
7590 /^X\(\/\).*/{ s//\1/; q; }
7592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7594 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7598 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7599 case $as_mkdir_dir in
7600 # Skip DOS drivespec
7601 ?:) as_incr_dir=$as_mkdir_dir ;;
7603 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7604 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7609 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7610 # A "../" for each directory in $ac_dir_suffix.
7611 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7613 ac_dir_suffix= ac_dots=
7618 if test -z "$ac_dots"; then
7621 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7624 ac_srcdir=$srcdir$ac_dir_suffix;
7625 ac_top_srcdir=$srcdir ;;
7627 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7628 ac_top_srcdir=$ac_dots$srcdir ;;
7632 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7633 *) ac_INSTALL=$ac_dots$INSTALL ;;
7636 if test x"$ac_file" != x-; then
7637 { echo "$as_me:7637: creating $ac_file" >&5
7638 echo "$as_me: creating $ac_file" >&6;}
7641 # Let's still pretend it is `configure' which instantiates (i.e., don't
7642 # use $as_me), people would be surprised to read:
7643 # /* config.h. Generated automatically by config.status. */
7644 configure_input="Generated automatically from `echo $ac_file_in |
7645 sed 's,.*/,,'` by configure."
7647 # First look for the input files in the build tree, otherwise in the
7649 ac_file_inputs=`IFS=:
7650 for f in $ac_file_in; do
7652 -) echo $tmp/stdin ;;
7654 # Absolute (can't be DOS-style, as IFS=:)
7655 test -f "$f" || { { echo "$as_me:7655: error: cannot find input file: $f" >&5
7656 echo "$as_me: error: cannot find input file: $f" >&2;}
7657 { (exit 1); exit 1; }; }
7660 if test -f "$f"; then
7663 elif test -f "$srcdir/$f"; then
7668 { { echo "$as_me:7668: error: cannot find input file: $f" >&5
7669 echo "$as_me: error: cannot find input file: $f" >&2;}
7670 { (exit 1); exit 1; }; }
7673 done` || { (exit 1); exit 1; }
7675 cat >>$CONFIG_STATUS <<EOF
7679 cat >>$CONFIG_STATUS <<\EOF
7681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7682 s,@configure_input@,$configure_input,;t t
7683 s,@srcdir@,$ac_srcdir,;t t
7684 s,@top_srcdir@,$ac_top_srcdir,;t t
7685 s,@INSTALL@,$ac_INSTALL,;t t
7686 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7688 if test x"$ac_file" != x-; then
7689 mv $tmp/out $ac_file
7697 cat >>$CONFIG_STATUS <<\EOF
7700 # CONFIG_HEADER section.
7703 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7704 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7706 # ac_d sets the value in "#define NAME VALUE" lines.
7707 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7708 ac_dB='[ ].*$,\1#\2'
7711 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7712 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7713 ac_uB='$,\1#\2define\3'
7717 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7720 - | *:- | *:-:* ) # input from stdin
7722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7726 * ) ac_file_in=$ac_file.in ;;
7729 test x"$ac_file" != x- && { echo "$as_me:7729: creating $ac_file" >&5
7730 echo "$as_me: creating $ac_file" >&6;}
7732 # First look for the input files in the build tree, otherwise in the
7734 ac_file_inputs=`IFS=:
7735 for f in $ac_file_in; do
7737 -) echo $tmp/stdin ;;
7739 # Absolute (can't be DOS-style, as IFS=:)
7740 test -f "$f" || { { echo "$as_me:7740: error: cannot find input file: $f" >&5
7741 echo "$as_me: error: cannot find input file: $f" >&2;}
7742 { (exit 1); exit 1; }; }
7745 if test -f "$f"; then
7748 elif test -f "$srcdir/$f"; then
7753 { { echo "$as_me:7753: error: cannot find input file: $f" >&5
7754 echo "$as_me: error: cannot find input file: $f" >&2;}
7755 { (exit 1); exit 1; }; }
7758 done` || { (exit 1); exit 1; }
7759 # Remove the trailing spaces.
7760 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7764 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7765 # `conftest.undefs', that substitutes the proper values into
7766 # config.h.in to produce config.h. The first handles `#define'
7767 # templates, and the second `#undef' templates.
7768 # And first: Protect against being on the right side of a sed subst in
7769 # config.status. Protect against being in an unquoted here document
7771 rm -f conftest.defines conftest.undefs
7772 # Using a here document instead of a string reduces the quoting nightmare.
7773 # Putting comments in sed scripts is not portable.
7775 # `end' is used to avoid that the second main sed command (meant for
7776 # 0-ary CPP macros) applies to n-ary macro definitions.
7777 # See the Autoconf documentation for `clear'.
7778 cat >confdef2sed.sed <<\EOF
7783 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7785 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7788 # If some macros were called several times there might be several times
7789 # the same #defines, which is useless. Nevertheless, we may not want to
7790 # sort them, since we want the *last* AC-DEFINE to be honored.
7791 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7792 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7793 rm -f confdef2sed.sed
7795 # This sed command replaces #undef with comments. This is necessary, for
7796 # example, in the case of _POSIX_SOURCE, which is predefined and required
7797 # on some systems where configure will not decide to define it.
7798 cat >>conftest.undefs <<\EOF
7799 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7802 # Break up conftest.defines because some shells have a limit on the size
7803 # of here documents, and old seds have small limits too (100 cmds).
7804 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7805 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7806 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7807 echo ' :' >>$CONFIG_STATUS
7809 while grep . conftest.defines >/dev/null
7811 # Write a limited-size here document to $tmp/defines.sed.
7812 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7813 # Speed up: don't consider the non `#define' lines.
7814 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7815 # Work around the forget-to-reset-the-flag bug.
7816 echo 't clr' >>$CONFIG_STATUS
7817 echo ': clr' >>$CONFIG_STATUS
7818 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7820 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7824 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7825 rm -f conftest.defines
7826 mv conftest.tail conftest.defines
7828 rm -f conftest.defines
7829 echo ' fi # egrep' >>$CONFIG_STATUS
7830 echo >>$CONFIG_STATUS
7832 # Break up conftest.undefs because some shells have a limit on the size
7833 # of here documents, and old seds have small limits too (100 cmds).
7834 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7836 while grep . conftest.undefs >/dev/null
7838 # Write a limited-size here document to $tmp/undefs.sed.
7839 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7840 # Speed up: don't consider the non `#undef'
7841 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7842 # Work around the forget-to-reset-the-flag bug.
7843 echo 't clr' >>$CONFIG_STATUS
7844 echo ': clr' >>$CONFIG_STATUS
7845 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7847 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7851 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7852 rm -f conftest.undefs
7853 mv conftest.tail conftest.undefs
7855 rm -f conftest.undefs
7857 cat >>$CONFIG_STATUS <<\EOF
7858 # Let's still pretend it is `configure' which instantiates (i.e., don't
7859 # use $as_me), people would be surprised to read:
7860 # /* config.h. Generated automatically by config.status. */
7861 if test x"$ac_file" = x-; then
7862 echo "/* Generated automatically by configure. */" >$tmp/config.h
7864 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7866 cat $tmp/in >>$tmp/config.h
7868 if test x"$ac_file" != x-; then
7869 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7870 { echo "$as_me:7870: $ac_file is unchanged" >&5
7871 echo "$as_me: $ac_file is unchanged" >&6;}
7873 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7874 X"$ac_file" : 'X\(//\)[^/]' \| \
7875 X"$ac_file" : 'X\(//\)$' \| \
7876 X"$ac_file" : 'X\(/\)' \| \
7877 . : '\(.\)' 2>/dev/null ||
7879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7881 /^X\(\/\/\)$/{ s//\1/; q; }
7882 /^X\(\/\).*/{ s//\1/; q; }
7884 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7886 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7890 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7891 case $as_mkdir_dir in
7892 # Skip DOS drivespec
7893 ?:) as_incr_dir=$as_mkdir_dir ;;
7895 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7896 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7903 mv $tmp/config.h $ac_file
7911 cat >>$CONFIG_STATUS <<\EOF
7914 # CONFIG_COMMANDS section.
7916 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7917 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7918 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7921 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
7926 cat >>$CONFIG_STATUS <<\EOF
7928 { (exit 0); exit 0; }
7930 chmod +x $CONFIG_STATUS
7931 ac_clean_files=$ac_clean_files_save
7933 # configure is writing to config.log, and then calls config.status.
7934 # config.status does its own redirection, appending to config.log.
7935 # Unfortunately, on DOS this fails, as config.log is still kept open
7936 # by configure, so config.status won't be able to write to it; its
7937 # output is simply discarded. So we exec the FD to /dev/null,
7938 # effectively closing config.log, so it can be properly (re)opened and
7939 # appended to by config.status. When coming back to configure, we
7940 # need to make the FD available again.
7941 if test "$no_create" != yes; then
7944 $SHELL $CONFIG_STATUS || ac_cs_success=false
7946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7947 # would make configure fail if this is the last instruction.
7948 $ac_cs_success || { (exit 1); exit 1; }