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=':' ;;
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
21 # Check that we are running under the correct shell.
22 SHELL=${CONFIG_SHELL-/bin/sh}
26 # Remove one level of quotation (which was required for Make).
27 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32 if test "X$1" = X--no-reexec; then
33 # Discard the --no-reexec flag, and continue.
35 elif test "X$1" = X--fallback-echo; then
36 # Avoid inline document here, it may be left over
38 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39 # Yippee, $echo works!
42 # Restart under the correct shell.
43 exec $SHELL "$0" --no-reexec ${1+"$@"}
46 if test "X$1" = X--fallback-echo; then
47 # used as fallback echo
55 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59 if test -z "$ECHO"; then
60 if test "X${echo_test_string+set}" != Xset; then
61 # find a string as large as possible, as long as the shell can cope with it
62 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65 echo_test_string="`eval $cmd`" &&
66 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
73 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75 test "X$echo_testing_string" = "X$echo_test_string"; then
78 # The Solaris, AIX, and Digital Unix default echo programs unquote
79 # backslashes. This makes it impossible to quote backslashes using
80 # echo "$something" | sed 's/\\/\\\\/g'
82 # So, first we look for a working echo in the user's PATH.
84 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85 for dir in $PATH /usr/ucb; do
86 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
96 if test "X$echo" = Xecho; then
97 # We didn't find a better echo, so look for alternatives.
98 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100 test "X$echo_testing_string" = "X$echo_test_string"; then
101 # This shell has a builtin print -r that does the trick.
103 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104 test "X$CONFIG_SHELL" != X/bin/ksh; then
105 # If we have ksh, try running configure again with it.
106 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107 export ORIGINAL_CONFIG_SHELL
108 CONFIG_SHELL=/bin/ksh
110 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116 test "X$echo_testing_string" = "X$echo_test_string"; then
119 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 SHELL="$CONFIG_SHELL"
127 echo="$CONFIG_SHELL $0 --fallback-echo"
128 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129 test "X$echo_testing_string" = 'X\t' &&
130 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131 test "X$echo_testing_string" = "X$echo_test_string"; then
132 echo="$CONFIG_SHELL $0 --fallback-echo"
134 # maybe with a smaller string...
137 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
145 if test "$prev" != 'sed 50q "$0"'; then
146 echo_test_string=`eval $prev`
147 export echo_test_string
148 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 # Oops. We lost completely, so just stick with echo.
159 # Copy echo and quote the copy suitably for passing to libtool from
160 # the Makefile, instead of quoting the original, which is used later.
162 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
166 # Avoid depending upon Character Ranges.
167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170 as_cr_digits='0123456789'
171 as_cr_alnum=$as_cr_Letters$as_cr_digits
173 # Sed expression to map a string onto a valid variable name.
174 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
176 # Sed expression to map a string onto a valid CPP name.
177 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
179 # Be Bourne compatible
180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187 # Name of the executable.
188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Support unset when possible.
217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
234 # We need space, tab and new line, in precisely that order.
240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 ac_default_prefix=/usr/local
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 ac_unique_file="configure.in"
265 # Initialize some variables set by options.
267 ac_init_version=false
268 # The variables have the same names as the options, with
269 # dashes changed to underlines.
277 program_transform_name=s,x,x,
285 # Installation directory options.
286 # These are left unexpanded so users can "make install exec_prefix=/foo"
287 # and all the variables that are supposed to be based on exec_prefix
288 # by default will actually change.
289 # Use braces instead of parens because sh, perl, etc. also accept them.
290 bindir='${exec_prefix}/bin'
291 sbindir='${exec_prefix}/sbin'
292 libexecdir='${exec_prefix}/libexec'
293 datadir='${prefix}/share'
294 sysconfdir='${prefix}/etc'
295 sharedstatedir='${prefix}/com'
296 localstatedir='${prefix}/var'
297 libdir='${exec_prefix}/lib'
298 includedir='${prefix}/include'
299 oldincludedir='/usr/include'
300 infodir='${prefix}/info'
301 mandir='${prefix}/man'
303 # Identity of this package.
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
320 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
322 # Accept the important Cygnus configure options, so we can diagnose typos.
326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
331 -build | --build | --buil | --bui | --bu)
332 ac_prev=build_alias ;;
333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
334 build_alias=$ac_optarg ;;
336 -cache-file | --cache-file | --cache-fil | --cache-fi \
337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
338 ac_prev=cache_file ;;
339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
341 cache_file=$ac_optarg ;;
344 cache_file=config.cache ;;
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
350 datadir=$ac_optarg ;;
352 -disable-* | --disable-*)
353 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
354 # Reject names that are not valid shell variable names.
355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
359 eval "enable_$ac_feature=no" ;;
361 -enable-* | --enable-*)
362 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
363 # Reject names that are not valid shell variable names.
364 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
365 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366 { (exit 1); exit 1; }; }
367 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
369 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
372 eval "enable_$ac_feature='$ac_optarg'" ;;
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix=$ac_optarg ;;
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
387 -help | --help | --hel | --he | -h)
389 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
390 ac_init_help=recursive ;;
391 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
392 ac_init_help=short ;;
394 -host | --host | --hos | --ho)
395 ac_prev=host_alias ;;
396 -host=* | --host=* | --hos=* | --ho=*)
397 host_alias=$ac_optarg ;;
399 -includedir | --includedir | --includedi | --included | --include \
400 | --includ | --inclu | --incl | --inc)
401 ac_prev=includedir ;;
402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
403 | --includ=* | --inclu=* | --incl=* | --inc=*)
404 includedir=$ac_optarg ;;
406 -infodir | --infodir | --infodi | --infod | --info | --inf)
408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
409 infodir=$ac_optarg ;;
411 -libdir | --libdir | --libdi | --libd)
413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
417 | --libexe | --libex | --libe)
418 ac_prev=libexecdir ;;
419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
420 | --libexe=* | --libex=* | --libe=*)
421 libexecdir=$ac_optarg ;;
423 -localstatedir | --localstatedir | --localstatedi | --localstated \
424 | --localstate | --localstat | --localsta | --localst \
425 | --locals | --local | --loca | --loc | --lo)
426 ac_prev=localstatedir ;;
427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
428 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
429 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
430 localstatedir=$ac_optarg ;;
432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
438 # Obsolete; use --without-fp.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
451 | --oldin | --oldi | --old | --ol | --o)
452 ac_prev=oldincludedir ;;
453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
456 oldincludedir=$ac_optarg ;;
458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
464 | --program-pre | --program-pr | --program-p)
465 ac_prev=program_prefix ;;
466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
468 program_prefix=$ac_optarg ;;
470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
471 | --program-suf | --program-su | --program-s)
472 ac_prev=program_suffix ;;
473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
475 program_suffix=$ac_optarg ;;
477 -program-transform-name | --program-transform-name \
478 | --program-transform-nam | --program-transform-na \
479 | --program-transform-n | --program-transform- \
480 | --program-transform | --program-transfor \
481 | --program-transfo | --program-transf \
482 | --program-trans | --program-tran \
483 | --progr-tra | --program-tr | --program-t)
484 ac_prev=program_transform_name ;;
485 -program-transform-name=* | --program-transform-name=* \
486 | --program-transform-nam=* | --program-transform-na=* \
487 | --program-transform-n=* | --program-transform-=* \
488 | --program-transform=* | --program-transfor=* \
489 | --program-transfo=* | --program-transf=* \
490 | --program-trans=* | --program-tran=* \
491 | --progr-tra=* | --program-tr=* | --program-t=*)
492 program_transform_name=$ac_optarg ;;
494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495 | -silent | --silent | --silen | --sile | --sil)
498 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
500 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
502 sbindir=$ac_optarg ;;
504 -sharedstatedir | --sharedstatedir | --sharedstatedi \
505 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
506 | --sharedst | --shareds | --shared | --share | --shar \
508 ac_prev=sharedstatedir ;;
509 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
510 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
511 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
513 sharedstatedir=$ac_optarg ;;
515 -site | --site | --sit)
517 -site=* | --site=* | --sit=*)
520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
525 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
526 | --syscon | --sysco | --sysc | --sys | --sy)
527 ac_prev=sysconfdir ;;
528 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
529 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
530 sysconfdir=$ac_optarg ;;
532 -target | --target | --targe | --targ | --tar | --ta | --t)
533 ac_prev=target_alias ;;
534 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
535 target_alias=$ac_optarg ;;
537 -v | -verbose | --verbose | --verbos | --verbo | --verb)
540 -version | --version | --versio | --versi | --vers | -V)
544 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid package name: $ac_package" >&2
548 { (exit 1); exit 1; }; }
549 ac_package=`echo $ac_package| sed 's/-/_/g'`
551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554 eval "with_$ac_package='$ac_optarg'" ;;
556 -without-* | --without-*)
557 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid package name: $ac_package" >&2
561 { (exit 1); exit 1; }; }
562 ac_package=`echo $ac_package | sed 's/-/_/g'`
563 eval "with_$ac_package=no" ;;
566 # Obsolete; use --with-x.
569 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
570 | --x-incl | --x-inc | --x-in | --x-i)
571 ac_prev=x_includes ;;
572 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
573 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
574 x_includes=$ac_optarg ;;
576 -x-libraries | --x-libraries | --x-librarie | --x-librari \
577 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
578 ac_prev=x_libraries ;;
579 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
580 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
581 x_libraries=$ac_optarg ;;
583 -*) { echo "$as_me: error: unrecognized option: $ac_option
584 Try \`$0 --help' for more information." >&2
585 { (exit 1); exit 1; }; }
589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593 { (exit 1); exit 1; }; }
594 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595 eval "$ac_envvar='$ac_optarg'"
599 # FIXME: should be removed in autoconf 3.0.
600 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
602 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 if test -n "$ac_prev"; then
610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
611 { echo "$as_me: error: missing argument to $ac_option" >&2
612 { (exit 1); exit 1; }; }
615 # Be sure to have absolute paths.
616 for ac_var in exec_prefix prefix
618 eval ac_val=$`echo $ac_var`
620 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
621 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622 { (exit 1); exit 1; }; };;
626 # Be sure to have absolute paths.
627 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628 localstatedir libdir includedir oldincludedir infodir mandir
630 eval ac_val=$`echo $ac_var`
632 [\\/$]* | ?:[\\/]* ) ;;
633 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634 { (exit 1); exit 1; }; };;
638 # There might be people who depend on the old broken behavior: `$host'
639 # used to hold the argument of --host etc.
644 # FIXME: should be removed in autoconf 3.0.
645 if test "x$host_alias" != x; then
646 if test "x$build_alias" = x; then
647 cross_compiling=maybe
648 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649 If a cross compiler is detected then cross compile mode will be used." >&2
650 elif test "x$build_alias" != "x$host_alias"; then
656 test -n "$host_alias" && ac_tool_prefix=$host_alias-
658 test "$silent" = yes && exec 6>/dev/null
660 # Find the source files, if location was not specified.
661 if test -z "$srcdir"; then
662 ac_srcdir_defaulted=yes
663 # Try the directory containing this script, then its parent.
665 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
666 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
668 if test ! -r $srcdir/$ac_unique_file; then
672 ac_srcdir_defaulted=no
674 if test ! -r $srcdir/$ac_unique_file; then
675 if test "$ac_srcdir_defaulted" = yes; then
676 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
677 { (exit 1); exit 1; }; }
679 { echo "$as_me: error: cannot find sources in $srcdir" >&2
680 { (exit 1); exit 1; }; }
683 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
684 ac_env_build_alias_set=${build_alias+set}
685 ac_env_build_alias_value=$build_alias
686 ac_cv_env_build_alias_set=${build_alias+set}
687 ac_cv_env_build_alias_value=$build_alias
688 ac_env_host_alias_set=${host_alias+set}
689 ac_env_host_alias_value=$host_alias
690 ac_cv_env_host_alias_set=${host_alias+set}
691 ac_cv_env_host_alias_value=$host_alias
692 ac_env_target_alias_set=${target_alias+set}
693 ac_env_target_alias_value=$target_alias
694 ac_cv_env_target_alias_set=${target_alias+set}
695 ac_cv_env_target_alias_value=$target_alias
696 ac_env_CXX_set=${CXX+set}
697 ac_env_CXX_value=$CXX
698 ac_cv_env_CXX_set=${CXX+set}
699 ac_cv_env_CXX_value=$CXX
700 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
701 ac_env_CXXFLAGS_value=$CXXFLAGS
702 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
703 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
704 ac_env_LDFLAGS_set=${LDFLAGS+set}
705 ac_env_LDFLAGS_value=$LDFLAGS
706 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
707 ac_cv_env_LDFLAGS_value=$LDFLAGS
708 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
709 ac_env_CPPFLAGS_value=$CPPFLAGS
710 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
711 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
712 ac_env_CC_set=${CC+set}
714 ac_cv_env_CC_set=${CC+set}
715 ac_cv_env_CC_value=$CC
716 ac_env_CFLAGS_set=${CFLAGS+set}
717 ac_env_CFLAGS_value=$CFLAGS
718 ac_cv_env_CFLAGS_set=${CFLAGS+set}
719 ac_cv_env_CFLAGS_value=$CFLAGS
720 ac_env_CXXCPP_set=${CXXCPP+set}
721 ac_env_CXXCPP_value=$CXXCPP
722 ac_cv_env_CXXCPP_set=${CXXCPP+set}
723 ac_cv_env_CXXCPP_value=$CXXCPP
726 # Report the --help message.
728 if test "$ac_init_help" = "long"; then
729 # Omit some internal or obsolete options to make the list less imposing.
730 # This message is too long to be a string in the A/UX 3.1 sh.
732 \`configure' configures this package to adapt to many kinds of systems.
734 Usage: $0 [OPTION]... [VAR=VALUE]...
736 To assign environment variables (e.g., CC, CFLAGS...), specify them as
737 VAR=VALUE. See below for descriptions of some of the useful variables.
739 Defaults for the options are specified in brackets.
742 -h, --help display this help and exit
743 --help=short display options specific to this package
744 --help=recursive display the short help of all the included packages
745 -V, --version display version information and exit
746 -q, --quiet, --silent do not print \`checking...' messages
747 --cache-file=FILE cache test results in FILE [disabled]
748 -C, --config-cache alias for \`--cache-file=config.cache'
749 -n, --no-create do not create output files
750 --srcdir=DIR find the sources in DIR [configure dir or \`..']
755 Installation directories:
756 --prefix=PREFIX install architecture-independent files in PREFIX
758 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
761 By default, \`make install' will install all the files in
762 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
763 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
764 for instance \`--prefix=\$HOME'.
766 For better control, use the options below.
768 Fine tuning of the installation directories:
769 --bindir=DIR user executables [EPREFIX/bin]
770 --sbindir=DIR system admin executables [EPREFIX/sbin]
771 --libexecdir=DIR program executables [EPREFIX/libexec]
772 --datadir=DIR read-only architecture-independent data [PREFIX/share]
773 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
774 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
775 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
776 --libdir=DIR object code libraries [EPREFIX/lib]
777 --includedir=DIR C header files [PREFIX/include]
778 --oldincludedir=DIR C header files for non-gcc [/usr/include]
779 --infodir=DIR info documentation [PREFIX/info]
780 --mandir=DIR man documentation [PREFIX/man]
786 --program-prefix=PREFIX prepend PREFIX to installed program names
787 --program-suffix=SUFFIX append SUFFIX to installed program names
788 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
791 --build=BUILD configure for building on BUILD [guessed]
792 --host=HOST build programs to run on HOST [BUILD]
796 if test -n "$ac_init_help"; then
801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
803 --enable-shared=PKGS build shared libraries default=yes
804 --enable-static=PKGS build static libraries default=yes
805 --enable-fast-install=PKGS optimize for fast installation default=yes
806 --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
814 Some influential environment variables:
815 CXX C++ compiler command
816 CXXFLAGS C++ compiler flags
817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
818 nonstandard directory <lib dir>
819 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
820 headers in a nonstandard directory <include dir>
821 CC C compiler command
822 CFLAGS C compiler flags
823 CXXCPP C++ preprocessor
825 Use these variables to override the choices made by `configure' or to help
826 it to find libraries and programs with nonstandard names/locations.
831 if test "$ac_init_help" = "recursive"; then
832 # If there are subdirs, report their specific --help.
834 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
836 # A "../" for each directory in /$ac_subdir.
837 ac_dots=`echo $ac_subdir |
838 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
841 .) # No --srcdir option. We are building in place.
842 ac_sub_srcdir=$srcdir ;;
843 [\\/]* | ?:[\\/]* ) # Absolute path.
844 ac_sub_srcdir=$srcdir/$ac_subdir ;;
846 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
849 # Check for guested configure; otherwise get Cygnus style configure.
850 if test -f $ac_sub_srcdir/configure.gnu; then
852 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
853 elif test -f $ac_sub_srcdir/configure; then
855 $SHELL $ac_sub_srcdir/configure --help=recursive
856 elif test -f $ac_sub_srcdir/configure.ac ||
857 test -f $ac_sub_srcdir/configure.in; then
861 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
867 test -n "$ac_init_help" && exit 0
868 if $ac_init_version; then
871 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
872 Free Software Foundation, Inc.
873 This configure script is free software; the Free Software Foundation
874 gives unlimited permission to copy, distribute and modify it.
880 This file contains any messages produced by compilers while
881 running configure, to aid debugging if configure makes a mistake.
883 It was created by $as_me, which was
884 generated by GNU Autoconf 2.52. Invocation command line was
895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
907 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
924 # Keep a trace of the command line.
925 # Strip out --no-create and --no-recursion so they do not pile up.
926 # Also quote any args containing shell meta-characters.
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933 | --no-cr | --no-c) ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
936 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
937 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
938 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
940 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
943 # Get rid of the leading space.
946 # When interrupted or exit'd, cleanup temporary files, and complete
947 # config.log. We remove comments because anyway the quotes in there
948 # would cause problems or look ugly.
950 # Save into config.log some information that might help in debugging.
952 echo "## ----------------- ##" >&5
953 echo "## Cache variables. ##" >&5
954 echo "## ----------------- ##" >&5
956 # The following way of writing the cache mishandles newlines in values,
959 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
962 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
971 sed "/^$/d" confdefs.h >conftest.log
972 if test -s conftest.log; then
974 echo "## ------------ ##" >&5
975 echo "## confdefs.h. ##" >&5
976 echo "## ------------ ##" >&5
981 test "$ac_signal" != 0 &&
982 echo "$as_me: caught signal $ac_signal" >&5
983 echo "$as_me: exit $exit_status" >&5
984 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
987 for ac_signal in 1 2 13 15; do
988 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
992 # confdefs.h avoids OS command line length limits that DEFS can exceed.
993 rm -rf conftest* confdefs.h
994 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
997 # Let the site file select an alternate cache file if it wants to.
998 # Prefer explicitly selected file to automatically selected ones.
999 if test -z "$CONFIG_SITE"; then
1000 if test "x$prefix" != xNONE; then
1001 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1003 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1006 for ac_site_file in $CONFIG_SITE; do
1007 if test -r "$ac_site_file"; then
1008 { echo "$as_me:1008: loading site script $ac_site_file" >&5
1009 echo "$as_me: loading site script $ac_site_file" >&6;}
1010 cat "$ac_site_file" >&5
1015 if test -r "$cache_file"; then
1016 # Some versions of bash will fail to source /dev/null (special
1017 # files actually), so we avoid doing that.
1018 if test -f "$cache_file"; then
1019 { echo "$as_me:1019: loading cache $cache_file" >&5
1020 echo "$as_me: loading cache $cache_file" >&6;}
1022 [\\/]* | ?:[\\/]* ) . $cache_file;;
1023 *) . ./$cache_file;;
1027 { echo "$as_me:1027: creating cache $cache_file" >&5
1028 echo "$as_me: creating cache $cache_file" >&6;}
1032 # Check that the precious variables saved in the cache have kept the same
1034 ac_cache_corrupted=false
1035 for ac_var in `(set) 2>&1 |
1036 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1038 eval ac_new_set=\$ac_env_${ac_var}_set
1039 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1040 eval ac_new_val="\$ac_env_${ac_var}_value"
1041 case $ac_old_set,$ac_new_set in
1043 { echo "$as_me:1043: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1044 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1045 ac_cache_corrupted=: ;;
1047 { echo "$as_me:1047: error: \`$ac_var' was not set in the previous run" >&5
1048 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1049 ac_cache_corrupted=: ;;
1052 if test "x$ac_old_val" != "x$ac_new_val"; then
1053 { echo "$as_me:1053: error: \`$ac_var' has changed since the previous run:" >&5
1054 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1055 { echo "$as_me:1055: former value: $ac_old_val" >&5
1056 echo "$as_me: former value: $ac_old_val" >&2;}
1057 { echo "$as_me:1057: current value: $ac_new_val" >&5
1058 echo "$as_me: current value: $ac_new_val" >&2;}
1059 ac_cache_corrupted=:
1062 # Pass precious variables to config.status. It doesn't matter if
1063 # we pass some twice (in addition to the command line arguments).
1064 if test "$ac_new_set" = set; then
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1068 ac_configure_args="$ac_configure_args '$ac_arg'"
1070 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1075 if $ac_cache_corrupted; then
1076 { echo "$as_me:1076: error: changes in the environment can compromise the build" >&5
1077 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1078 { { echo "$as_me:1078: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1079 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1080 { (exit 1); exit 1; }; }
1084 ac_cpp='$CPP $CPPFLAGS'
1085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1089 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1090 *c*,-n*) ECHO_N= ECHO_C='
1092 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1093 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1095 echo "#! $SHELL" >conftest.sh
1096 echo "exit 0" >>conftest.sh
1097 chmod +x conftest.sh
1098 if { (echo "$as_me:1098: PATH=\".;.\"; conftest.sh") >&5
1099 (PATH=".;."; conftest.sh) 2>&5
1101 echo "$as_me:1101: \$? = $ac_status" >&5
1102 (exit $ac_status); }; then
1103 ac_path_separator=';'
1107 PATH_SEPARATOR="$ac_path_separator"
1111 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1112 if test -f $ac_dir/install-sh; then
1114 ac_install_sh="$ac_aux_dir/install-sh -c"
1116 elif test -f $ac_dir/install.sh; then
1118 ac_install_sh="$ac_aux_dir/install.sh -c"
1120 elif test -f $ac_dir/shtool; then
1122 ac_install_sh="$ac_aux_dir/shtool install -c"
1126 if test -z "$ac_aux_dir"; then
1127 { { echo "$as_me:1127: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1128 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1129 { (exit 1); exit 1; }; }
1131 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1132 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1133 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1135 # Find a good install program. We prefer a C program (faster),
1136 # so one script is as good as another. But avoid the broken or
1137 # incompatible versions:
1138 # SysV /etc/install, /usr/sbin/install
1139 # SunOS /usr/etc/install
1140 # IRIX /sbin/install
1142 # AmigaOS /C/install, which installs bootblocks on floppy discs
1143 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1144 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1145 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1146 # ./install, which can be erroneously created by make from ./install.sh.
1147 echo "$as_me:1147: checking for a BSD compatible install" >&5
1148 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1149 if test -z "$INSTALL"; then
1150 if test "${ac_cv_path_install+set}" = set; then
1151 echo $ECHO_N "(cached) $ECHO_C" >&6
1153 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $PATH; do
1156 # Account for people who put trailing slashes in PATH elements.
1158 / | ./ | .// | /cC/* \
1159 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1162 # OSF1 and SCO ODT 3.0 have their own names for install.
1163 # Don't use installbsd from OSF since it installs stuff as root
1165 for ac_prog in ginstall scoinst install; do
1166 if $as_executable_p "$ac_dir/$ac_prog"; then
1167 if test $ac_prog = install &&
1168 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1169 # AIX install. It has an incompatible calling convention.
1171 elif test $ac_prog = install &&
1172 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1173 # program-specific install script used by HP pwplus--don't use.
1176 ac_cv_path_install="$ac_dir/$ac_prog -c"
1186 if test "${ac_cv_path_install+set}" = set; then
1187 INSTALL=$ac_cv_path_install
1189 # As a last resort, use the slow shell script. We don't cache a
1190 # path for INSTALL within a source directory, because that will
1191 # break other packages using the cache if that directory is
1192 # removed, or if the path is relative.
1193 INSTALL=$ac_install_sh
1196 echo "$as_me:1196: result: $INSTALL" >&5
1197 echo "${ECHO_T}$INSTALL" >&6
1199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1200 # It thinks the first close brace ends the variable substitution.
1201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1203 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1205 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1207 echo "$as_me:1207: checking whether build environment is sane" >&5
1208 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1211 echo timestamp > conftestfile
1212 # Do `set' in a subshell so we don't clobber the current shell's
1213 # arguments. Must try -L first in case configure is actually a
1214 # symlink; some systems play weird games with the mod time of symlinks
1215 # (eg FreeBSD returns the mod time of the symlink's containing
1218 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1219 if test "$*" = "X"; then
1221 set X `ls -t $srcdir/configure conftestfile`
1223 if test "$*" != "X $srcdir/configure conftestfile" \
1224 && test "$*" != "X conftestfile $srcdir/configure"; then
1226 # If neither matched, then we have a broken ls. This can happen
1227 # if, for instance, CONFIG_SHELL is bash and it inherits a
1228 # broken ls alias from the environment. This has actually
1229 # happened. Such a system could not be considered "sane".
1230 { { echo "$as_me:1230: error: ls -t appears to fail. Make sure there is not a broken
1231 alias in your environment" >&5
1232 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1233 alias in your environment" >&2;}
1234 { (exit 1); exit 1; }; }
1237 test "$2" = conftestfile
1243 { { echo "$as_me:1243: error: newly created file is older than distributed files!
1244 Check your system clock" >&5
1245 echo "$as_me: error: newly created file is older than distributed files!
1246 Check your system clock" >&2;}
1247 { (exit 1); exit 1; }; }
1250 echo "$as_me:1250: result: yes" >&5
1251 echo "${ECHO_T}yes" >&6
1252 test "$program_prefix" != NONE &&
1253 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1254 # Use a double $ so make ignores it.
1255 test "$program_suffix" != NONE &&
1256 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1257 # Double any \ or $. echo might interpret backslashes.
1258 # By default was `s,x,x', remove it if useless.
1259 cat <<\_ACEOF >conftest.sed
1260 s/[\\$]/&&/g;s/;s,x,x,$//
1262 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1265 echo "$as_me:1265: checking whether ${MAKE-make} sets \${MAKE}" >&5
1266 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1267 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1268 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1271 cat >conftest.make <<\EOF
1273 @echo 'ac_maketemp="${MAKE}"'
1275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1276 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1277 if test -n "$ac_maketemp"; then
1278 eval ac_cv_prog_make_${ac_make}_set=yes
1280 eval ac_cv_prog_make_${ac_make}_set=no
1284 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1285 echo "$as_me:1285: result: yes" >&5
1286 echo "${ECHO_T}yes" >&6
1289 echo "$as_me:1289: result: no" >&5
1290 echo "${ECHO_T}no" >&6
1291 SET_MAKE="MAKE=${MAKE-make}"
1294 PACKAGE=libt2n-example1-client
1298 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1299 { { echo "$as_me:1299: error: source directory already configured; run \"make distclean\" there first" >&5
1300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1301 { (exit 1); exit 1; }; }
1304 cat >>confdefs.h <<EOF
1305 #define PACKAGE "$PACKAGE"
1308 cat >>confdefs.h <<EOF
1309 #define VERSION "$VERSION"
1312 missing_dir=`cd $ac_aux_dir && pwd`
1313 echo "$as_me:1313: checking for working aclocal" >&5
1314 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1315 # Run test in a subshell; some versions of sh will print an error if
1316 # an executable is not found, even if stderr is redirected.
1317 # Redirect stdin to placate older versions of autoconf. Sigh.
1318 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1320 echo "$as_me:1320: result: found" >&5
1321 echo "${ECHO_T}found" >&6
1323 ACLOCAL="$missing_dir/missing aclocal"
1324 echo "$as_me:1324: result: missing" >&5
1325 echo "${ECHO_T}missing" >&6
1328 echo "$as_me:1328: checking for working autoconf" >&5
1329 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1330 # Run test in a subshell; some versions of sh will print an error if
1331 # an executable is not found, even if stderr is redirected.
1332 # Redirect stdin to placate older versions of autoconf. Sigh.
1333 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1335 echo "$as_me:1335: result: found" >&5
1336 echo "${ECHO_T}found" >&6
1338 AUTOCONF="$missing_dir/missing autoconf"
1339 echo "$as_me:1339: result: missing" >&5
1340 echo "${ECHO_T}missing" >&6
1343 echo "$as_me:1343: checking for working automake" >&5
1344 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1345 # Run test in a subshell; some versions of sh will print an error if
1346 # an executable is not found, even if stderr is redirected.
1347 # Redirect stdin to placate older versions of autoconf. Sigh.
1348 if (automake --version) < /dev/null > /dev/null 2>&1; then
1350 echo "$as_me:1350: result: found" >&5
1351 echo "${ECHO_T}found" >&6
1353 AUTOMAKE="$missing_dir/missing automake"
1354 echo "$as_me:1354: result: missing" >&5
1355 echo "${ECHO_T}missing" >&6
1358 echo "$as_me:1358: checking for working autoheader" >&5
1359 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1360 # Run test in a subshell; some versions of sh will print an error if
1361 # an executable is not found, even if stderr is redirected.
1362 # Redirect stdin to placate older versions of autoconf. Sigh.
1363 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1364 AUTOHEADER=autoheader
1365 echo "$as_me:1365: result: found" >&5
1366 echo "${ECHO_T}found" >&6
1368 AUTOHEADER="$missing_dir/missing autoheader"
1369 echo "$as_me:1369: result: missing" >&5
1370 echo "${ECHO_T}missing" >&6
1373 echo "$as_me:1373: checking for working makeinfo" >&5
1374 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1375 # Run test in a subshell; some versions of sh will print an error if
1376 # an executable is not found, even if stderr is redirected.
1377 # Redirect stdin to placate older versions of autoconf. Sigh.
1378 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1380 echo "$as_me:1380: result: found" >&5
1381 echo "${ECHO_T}found" >&6
1383 MAKEINFO="$missing_dir/missing makeinfo"
1384 echo "$as_me:1384: result: missing" >&5
1385 echo "${ECHO_T}missing" >&6
1389 ac_cpp='$CXXCPP $CPPFLAGS'
1390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1395 ac_cpp='$CXXCPP $CPPFLAGS'
1396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1399 if test -n "$ac_tool_prefix"; then
1400 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1404 echo "$as_me:1404: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_CXX+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 if test -n "$CXX"; then
1410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1414 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 $as_executable_p "$ac_dir/$ac_word" || continue
1418 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1419 echo "$as_me:1419: found $ac_dir/$ac_word" >&5
1426 if test -n "$CXX"; then
1427 echo "$as_me:1427: result: $CXX" >&5
1428 echo "${ECHO_T}$CXX" >&6
1430 echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1434 test -n "$CXX" && break
1437 if test -z "$CXX"; then
1439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1441 # Extract the first word of "$ac_prog", so it can be a program name with args.
1442 set dummy $ac_prog; ac_word=$2
1443 echo "$as_me:1443: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$ac_ct_CXX"; then
1449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1451 ac_save_IFS=$IFS; IFS=$ac_path_separator
1453 for ac_dir in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir=.
1456 $as_executable_p "$ac_dir/$ac_word" || continue
1457 ac_cv_prog_ac_ct_CXX="$ac_prog"
1458 echo "$as_me:1458: found $ac_dir/$ac_word" >&5
1464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1465 if test -n "$ac_ct_CXX"; then
1466 echo "$as_me:1466: result: $ac_ct_CXX" >&5
1467 echo "${ECHO_T}$ac_ct_CXX" >&6
1469 echo "$as_me:1469: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1473 test -n "$ac_ct_CXX" && break
1475 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1480 # Provide some information about the compiler.
1481 echo "$as_me:1481:" \
1482 "checking for C++ compiler version" >&5
1483 ac_compiler=`set X $ac_compile; echo $2`
1484 { (eval echo "$as_me:1484: \"$ac_compiler --version </dev/null >&5\"") >&5
1485 (eval $ac_compiler --version </dev/null >&5) 2>&5
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }
1489 { (eval echo "$as_me:1489: \"$ac_compiler -v </dev/null >&5\"") >&5
1490 (eval $ac_compiler -v </dev/null >&5) 2>&5
1492 echo "$as_me:1492: \$? = $ac_status" >&5
1493 (exit $ac_status); }
1494 { (eval echo "$as_me:1494: \"$ac_compiler -V </dev/null >&5\"") >&5
1495 (eval $ac_compiler -V </dev/null >&5) 2>&5
1497 echo "$as_me:1497: \$? = $ac_status" >&5
1498 (exit $ac_status); }
1500 cat >conftest.$ac_ext <<_ACEOF
1501 #line 1501 "configure"
1502 #include "confdefs.h"
1512 ac_clean_files_save=$ac_clean_files
1513 ac_clean_files="$ac_clean_files a.out a.exe"
1514 # Try to create an executable without -o first, disregard a.out.
1515 # It will help us diagnose broken compilers, and finding out an intuition
1517 echo "$as_me:1517: checking for C++ compiler default output" >&5
1518 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1520 if { (eval echo "$as_me:1520: \"$ac_link_default\"") >&5
1521 (eval $ac_link_default) 2>&5
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); }; then
1525 # Find the output, starting from the most likely. This scheme is
1526 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1528 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1529 ls a.out conftest 2>/dev/null;
1530 ls a.* conftest.* 2>/dev/null`; do
1532 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1533 a.out ) # We found the default executable, but exeext='' is most
1536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1537 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1544 echo "$as_me: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 { { echo "$as_me:1546: error: C++ compiler cannot create executables" >&5
1547 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1548 { (exit 77); exit 77; }; }
1551 ac_exeext=$ac_cv_exeext
1552 echo "$as_me:1552: result: $ac_file" >&5
1553 echo "${ECHO_T}$ac_file" >&6
1555 # Check the compiler produces executables we can run. If not, either
1556 # the compiler is broken, or we cross compile.
1557 echo "$as_me:1557: checking whether the C++ compiler works" >&5
1558 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1559 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1560 # If not cross compiling, check that we can run a simple program.
1561 if test "$cross_compiling" != yes; then
1562 if { ac_try='./$ac_file'
1563 { (eval echo "$as_me:1563: \"$ac_try\"") >&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }; }; then
1570 if test "$cross_compiling" = maybe; then
1573 { { echo "$as_me:1573: error: cannot run C++ compiled programs.
1574 If you meant to cross compile, use \`--host'." >&5
1575 echo "$as_me: error: cannot run C++ compiled programs.
1576 If you meant to cross compile, use \`--host'." >&2;}
1577 { (exit 1); exit 1; }; }
1581 echo "$as_me:1581: result: yes" >&5
1582 echo "${ECHO_T}yes" >&6
1584 rm -f a.out a.exe conftest$ac_cv_exeext
1585 ac_clean_files=$ac_clean_files_save
1586 # Check the compiler produces executables we can run. If not, either
1587 # the compiler is broken, or we cross compile.
1588 echo "$as_me:1588: checking whether we are cross compiling" >&5
1589 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1590 echo "$as_me:1590: result: $cross_compiling" >&5
1591 echo "${ECHO_T}$cross_compiling" >&6
1593 echo "$as_me:1593: checking for executable suffix" >&5
1594 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1595 if { (eval echo "$as_me:1595: \"$ac_link\"") >&5
1596 (eval $ac_link) 2>&5
1598 echo "$as_me:1598: \$? = $ac_status" >&5
1599 (exit $ac_status); }; then
1600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1602 # work properly (i.e., refer to `conftest.exe'), while it won't with
1604 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1606 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1607 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1614 { { echo "$as_me:1614: error: cannot compute EXEEXT: cannot compile and link" >&5
1615 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1616 { (exit 1); exit 1; }; }
1619 rm -f conftest$ac_cv_exeext
1620 echo "$as_me:1620: result: $ac_cv_exeext" >&5
1621 echo "${ECHO_T}$ac_cv_exeext" >&6
1623 rm -f conftest.$ac_ext
1624 EXEEXT=$ac_cv_exeext
1626 echo "$as_me:1626: checking for object suffix" >&5
1627 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1628 if test "${ac_cv_objext+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 cat >conftest.$ac_ext <<_ACEOF
1632 #line 1632 "configure"
1633 #include "confdefs.h"
1643 rm -f conftest.o conftest.obj
1644 if { (eval echo "$as_me:1644: \"$ac_compile\"") >&5
1645 (eval $ac_compile) 2>&5
1647 echo "$as_me:1647: \$? = $ac_status" >&5
1648 (exit $ac_status); }; then
1649 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1657 echo "$as_me: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 { { echo "$as_me:1659: error: cannot compute OBJEXT: cannot compile" >&5
1660 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1661 { (exit 1); exit 1; }; }
1664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1666 echo "$as_me:1666: result: $ac_cv_objext" >&5
1667 echo "${ECHO_T}$ac_cv_objext" >&6
1668 OBJEXT=$ac_cv_objext
1670 echo "$as_me:1670: checking whether we are using the GNU C++ compiler" >&5
1671 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1672 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 cat >conftest.$ac_ext <<_ACEOF
1676 #line 1676 "configure"
1677 #include "confdefs.h"
1690 rm -f conftest.$ac_objext
1691 if { (eval echo "$as_me:1691: \"$ac_compile\"") >&5
1692 (eval $ac_compile) 2>&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); } &&
1696 { ac_try='test -s conftest.$ac_objext'
1697 { (eval echo "$as_me:1697: \"$ac_try\"") >&5
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }; }; then
1704 echo "$as_me: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1708 rm -f conftest.$ac_objext conftest.$ac_ext
1709 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1712 echo "$as_me:1712: result: $ac_cv_cxx_compiler_gnu" >&5
1713 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1714 GXX=`test $ac_compiler_gnu = yes && echo yes`
1715 ac_test_CXXFLAGS=${CXXFLAGS+set}
1716 ac_save_CXXFLAGS=$CXXFLAGS
1718 echo "$as_me:1718: checking whether $CXX accepts -g" >&5
1719 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1720 if test "${ac_cv_prog_cxx_g+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1735 rm -f conftest.$ac_objext
1736 if { (eval echo "$as_me:1736: \"$ac_compile\"") >&5
1737 (eval $ac_compile) 2>&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); } &&
1741 { ac_try='test -s conftest.$ac_objext'
1742 { (eval echo "$as_me:1742: \"$ac_try\"") >&5
1745 echo "$as_me:1745: \$? = $ac_status" >&5
1746 (exit $ac_status); }; }; then
1747 ac_cv_prog_cxx_g=yes
1749 echo "$as_me: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1753 rm -f conftest.$ac_objext conftest.$ac_ext
1755 echo "$as_me:1755: result: $ac_cv_prog_cxx_g" >&5
1756 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1757 if test "$ac_test_CXXFLAGS" = set; then
1758 CXXFLAGS=$ac_save_CXXFLAGS
1759 elif test $ac_cv_prog_cxx_g = yes; then
1760 if test "$GXX" = yes; then
1766 if test "$GXX" = yes; then
1772 for ac_declaration in \
1774 '#include <stdlib.h>' \
1775 'extern "C" void std::exit (int) throw (); using std::exit;' \
1776 'extern "C" void std::exit (int); using std::exit;' \
1777 'extern "C" void exit (int) throw ();' \
1778 'extern "C" void exit (int);' \
1781 cat >conftest.$ac_ext <<_ACEOF
1782 #line 1782 "configure"
1783 #include "confdefs.h"
1794 rm -f conftest.$ac_objext
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1812 rm -f conftest.$ac_objext conftest.$ac_ext
1813 cat >conftest.$ac_ext <<_ACEOF
1814 #line 1814 "configure"
1815 #include "confdefs.h"
1825 rm -f conftest.$ac_objext
1826 if { (eval echo "$as_me:1826: \"$ac_compile\"") >&5
1827 (eval $ac_compile) 2>&5
1829 echo "$as_me:1829: \$? = $ac_status" >&5
1830 (exit $ac_status); } &&
1831 { ac_try='test -s conftest.$ac_objext'
1832 { (eval echo "$as_me:1832: \"$ac_try\"") >&5
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 rm -f conftest.$ac_objext conftest.$ac_ext
1845 if test -n "$ac_declaration"; then
1846 echo '#ifdef __cplusplus' >>confdefs.h
1847 echo $ac_declaration >>confdefs.h
1848 echo '#endif' >>confdefs.h
1852 ac_cpp='$CXXCPP $CPPFLAGS'
1853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1857 # Check whether --enable-shared or --disable-shared was given.
1858 if test "${enable_shared+set}" = set; then
1859 enableval="$enable_shared"
1860 p=${PACKAGE-default}
1862 yes) enable_shared=yes ;;
1863 no) enable_shared=no ;;
1866 # Look at the argument we got. We use all the common list separators.
1867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1868 for pkg in $enableval; do
1869 if test "X$pkg" = "X$p"; then
1879 # Check whether --enable-static or --disable-static was given.
1880 if test "${enable_static+set}" = set; then
1881 enableval="$enable_static"
1882 p=${PACKAGE-default}
1884 yes) enable_static=yes ;;
1885 no) enable_static=no ;;
1888 # Look at the argument we got. We use all the common list separators.
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1890 for pkg in $enableval; do
1891 if test "X$pkg" = "X$p"; then
1901 # Check whether --enable-fast-install or --disable-fast-install was given.
1902 if test "${enable_fast_install+set}" = set; then
1903 enableval="$enable_fast_install"
1904 p=${PACKAGE-default}
1906 yes) enable_fast_install=yes ;;
1907 no) enable_fast_install=no ;;
1909 enable_fast_install=no
1910 # Look at the argument we got. We use all the common list separators.
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1912 for pkg in $enableval; do
1913 if test "X$pkg" = "X$p"; then
1914 enable_fast_install=yes
1921 enable_fast_install=yes
1923 # Make sure we can run config.sub.
1924 $ac_config_sub sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:1925: error: cannot run $ac_config_sub" >&5
1926 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 echo "$as_me:1929: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_cv_build_alias=$build_alias
1935 test -z "$ac_cv_build_alias" &&
1936 ac_cv_build_alias=`$ac_config_guess`
1937 test -z "$ac_cv_build_alias" &&
1938 { { echo "$as_me:1938: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1942 { { echo "$as_me:1942: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1943 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1944 { (exit 1); exit 1; }; }
1947 echo "$as_me:1947: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6
1950 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1951 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1952 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1954 echo "$as_me:1954: checking host system type" >&5
1955 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1956 if test "${ac_cv_host+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 ac_cv_host_alias=$host_alias
1960 test -z "$ac_cv_host_alias" &&
1961 ac_cv_host_alias=$ac_cv_build_alias
1962 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1963 { { echo "$as_me:1963: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1964 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1965 { (exit 1); exit 1; }; }
1968 echo "$as_me:1968: result: $ac_cv_host" >&5
1969 echo "${ECHO_T}$ac_cv_host" >&6
1971 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1972 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1973 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1983 echo "$as_me:1983: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 ac_save_IFS=$IFS; IFS=$ac_path_separator
1993 for ac_dir in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir=.
1996 $as_executable_p "$ac_dir/$ac_word" || continue
1997 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1998 echo "$as_me:1998: found $ac_dir/$ac_word" >&5
2005 if test -n "$CC"; then
2006 echo "$as_me:2006: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2009 echo "$as_me:2009: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2014 if test -z "$ac_cv_prog_CC"; then
2016 # Extract the first word of "gcc", so it can be a program name with args.
2017 set dummy gcc; ac_word=$2
2018 echo "$as_me:2018: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 ac_save_IFS=$IFS; IFS=$ac_path_separator
2028 for ac_dir in $ac_dummy; do
2030 test -z "$ac_dir" && ac_dir=.
2031 $as_executable_p "$ac_dir/$ac_word" || continue
2032 ac_cv_prog_ac_ct_CC="gcc"
2033 echo "$as_me:2033: found $ac_dir/$ac_word" >&5
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041 echo "$as_me:2041: result: $ac_ct_CC" >&5
2042 echo "${ECHO_T}$ac_ct_CC" >&6
2044 echo "$as_me:2044: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2053 if test -z "$CC"; then
2054 if test -n "$ac_tool_prefix"; then
2055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056 set dummy ${ac_tool_prefix}cc; ac_word=$2
2057 echo "$as_me:2057: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$CC"; then
2063 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 ac_save_IFS=$IFS; IFS=$ac_path_separator
2067 for ac_dir in $ac_dummy; do
2069 test -z "$ac_dir" && ac_dir=.
2070 $as_executable_p "$ac_dir/$ac_word" || continue
2071 ac_cv_prog_CC="${ac_tool_prefix}cc"
2072 echo "$as_me:2072: found $ac_dir/$ac_word" >&5
2079 if test -n "$CC"; then
2080 echo "$as_me:2080: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6
2083 echo "$as_me:2083: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2088 if test -z "$ac_cv_prog_CC"; then
2090 # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 echo "$as_me:2092: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100 ac_save_IFS=$IFS; IFS=$ac_path_separator
2102 for ac_dir in $ac_dummy; do
2104 test -z "$ac_dir" && ac_dir=.
2105 $as_executable_p "$ac_dir/$ac_word" || continue
2106 ac_cv_prog_ac_ct_CC="cc"
2107 echo "$as_me:2107: found $ac_dir/$ac_word" >&5
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:2115: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:2118: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2128 if test -z "$CC"; then
2129 # Extract the first word of "cc", so it can be a program name with args.
2130 set dummy cc; ac_word=$2
2131 echo "$as_me:2131: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 ac_save_IFS=$IFS; IFS=$ac_path_separator
2142 for ac_dir in $ac_dummy; do
2144 test -z "$ac_dir" && ac_dir=.
2145 $as_executable_p "$ac_dir/$ac_word" || continue
2146 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2147 ac_prog_rejected=yes
2151 echo "$as_me:2151: found $ac_dir/$ac_word" >&5
2155 if test $ac_prog_rejected = yes; then
2156 # We found a bogon in the path, so make sure we never use it.
2157 set dummy $ac_cv_prog_CC
2159 if test $# != 0; then
2160 # We chose a different compiler from the bogus one.
2161 # However, it has the same basename, so the bogon will be chosen
2162 # first if we set CC to just the basename; use the full file name.
2164 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2172 if test -n "$CC"; then
2173 echo "$as_me:2173: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6
2176 echo "$as_me:2176: result: no" >&5
2177 echo "${ECHO_T}no" >&6
2181 if test -z "$CC"; then
2182 if test -n "$ac_tool_prefix"; then
2185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2187 echo "$as_me:2187: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test -n "$CC"; then
2193 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 ac_save_IFS=$IFS; IFS=$ac_path_separator
2197 for ac_dir in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir=.
2200 $as_executable_p "$ac_dir/$ac_word" || continue
2201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2202 echo "$as_me:2202: found $ac_dir/$ac_word" >&5
2209 if test -n "$CC"; then
2210 echo "$as_me:2210: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2213 echo "$as_me:2213: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2217 test -n "$CC" && break
2220 if test -z "$CC"; then
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:2226: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 ac_save_IFS=$IFS; IFS=$ac_path_separator
2236 for ac_dir in $ac_dummy; do
2238 test -z "$ac_dir" && ac_dir=.
2239 $as_executable_p "$ac_dir/$ac_word" || continue
2240 ac_cv_prog_ac_ct_CC="$ac_prog"
2241 echo "$as_me:2241: found $ac_dir/$ac_word" >&5
2247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248 if test -n "$ac_ct_CC"; then
2249 echo "$as_me:2249: result: $ac_ct_CC" >&5
2250 echo "${ECHO_T}$ac_ct_CC" >&6
2252 echo "$as_me:2252: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2256 test -n "$ac_ct_CC" && break
2264 test -z "$CC" && { { echo "$as_me:2264: error: no acceptable cc found in \$PATH" >&5
2265 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2266 { (exit 1); exit 1; }; }
2268 # Provide some information about the compiler.
2269 echo "$as_me:2269:" \
2270 "checking for C compiler version" >&5
2271 ac_compiler=`set X $ac_compile; echo $2`
2272 { (eval echo "$as_me:2272: \"$ac_compiler --version </dev/null >&5\"") >&5
2273 (eval $ac_compiler --version </dev/null >&5) 2>&5
2275 echo "$as_me:2275: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2277 { (eval echo "$as_me:2277: \"$ac_compiler -v </dev/null >&5\"") >&5
2278 (eval $ac_compiler -v </dev/null >&5) 2>&5
2280 echo "$as_me:2280: \$? = $ac_status" >&5
2281 (exit $ac_status); }
2282 { (eval echo "$as_me:2282: \"$ac_compiler -V </dev/null >&5\"") >&5
2283 (eval $ac_compiler -V </dev/null >&5) 2>&5
2285 echo "$as_me:2285: \$? = $ac_status" >&5
2286 (exit $ac_status); }
2288 echo "$as_me:2288: checking whether we are using the GNU C compiler" >&5
2289 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2290 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #line 2294 "configure"
2295 #include "confdefs.h"
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:2309: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2312 echo "$as_me:2312: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:2315: \"$ac_try\"") >&5
2318 echo "$as_me:2318: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2330 echo "$as_me:2330: result: $ac_cv_c_compiler_gnu" >&5
2331 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2332 GCC=`test $ac_compiler_gnu = yes && echo yes`
2333 ac_test_CFLAGS=${CFLAGS+set}
2334 ac_save_CFLAGS=$CFLAGS
2336 echo "$as_me:2336: checking whether $CC accepts -g" >&5
2337 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2338 if test "${ac_cv_prog_cc_g+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line 2342 "configure"
2343 #include "confdefs.h"
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:2354: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2357 echo "$as_me:2357: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:2360: \"$ac_try\"") >&5
2363 echo "$as_me:2363: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2371 rm -f conftest.$ac_objext conftest.$ac_ext
2373 echo "$as_me:2373: result: $ac_cv_prog_cc_g" >&5
2374 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2375 if test "$ac_test_CFLAGS" = set; then
2376 CFLAGS=$ac_save_CFLAGS
2377 elif test $ac_cv_prog_cc_g = yes; then
2378 if test "$GCC" = yes; then
2384 if test "$GCC" = yes; then
2390 # Some people use a C++ compiler to compile C. Since we use `exit',
2391 # in C++ we need to declare it. In case someone uses the same compiler
2392 # for both compiling C and C++ we need to have the C++ compiler decide
2393 # the declaration of exit, since it's the most demanding environment.
2394 cat >conftest.$ac_ext <<_ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:2400: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>&5
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:2406: \"$ac_try\"") >&5
2409 echo "$as_me:2409: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 for ac_declaration in \
2413 '#include <stdlib.h>' \
2414 'extern "C" void std::exit (int) throw (); using std::exit;' \
2415 'extern "C" void std::exit (int); using std::exit;' \
2416 'extern "C" void exit (int) throw ();' \
2417 'extern "C" void exit (int);' \
2420 cat >conftest.$ac_ext <<_ACEOF
2421 #line 2421 "configure"
2422 #include "confdefs.h"
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:2434: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2437 echo "$as_me:2437: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:2440: \"$ac_try\"") >&5
2443 echo "$as_me:2443: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2447 echo "$as_me: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2451 rm -f conftest.$ac_objext conftest.$ac_ext
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line 2453 "configure"
2454 #include "confdefs.h"
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:2465: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:2471: \"$ac_try\"") >&5
2474 echo "$as_me:2474: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2484 if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2496 ac_cpp='$CXXCPP $CPPFLAGS'
2497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2501 # Find the correct PATH separator. Usually this is `:', but
2502 # DJGPP uses `;' like DOS.
2503 if test "X${PATH_SEPARATOR+set}" != Xset; then
2504 UNAME=${UNAME-`uname 2>/dev/null`}
2506 *-DOS) lt_cv_sys_path_separator=';' ;;
2507 *) lt_cv_sys_path_separator=':' ;;
2509 PATH_SEPARATOR=$lt_cv_sys_path_separator
2512 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2513 if test "${with_gnu_ld+set}" = set; then
2514 withval="$with_gnu_ld"
2515 test "$withval" = no || with_gnu_ld=yes
2520 if test "$GCC" = yes; then
2521 # Check if gcc -print-prog-name=ld gives a path.
2522 echo "$as_me:2522: checking for ld used by GCC" >&5
2523 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2526 # gcc leaves a trailing carriage return which upsets mingw
2527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2532 # Accept absolute paths.
2533 [\\/]* | [A-Za-z]:[\\/]*)
2534 re_direlt='/[^/][^/]*/\.\./'
2535 # Canonicalize the path of ld
2536 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2537 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2538 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2540 test -z "$LD" && LD="$ac_prog"
2543 # If it fails, then pretend we aren't using GCC.
2547 # If it is relative, then search for the first ld in PATH.
2551 elif test "$with_gnu_ld" = yes; then
2552 echo "$as_me:2552: checking for GNU ld" >&5
2553 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2555 echo "$as_me:2555: checking for non-GNU ld" >&5
2556 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2558 if test "${lt_cv_path_LD+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -z "$LD"; then
2562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2563 for ac_dir in $PATH; do
2564 test -z "$ac_dir" && ac_dir=.
2565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2566 lt_cv_path_LD="$ac_dir/$ac_prog"
2567 # Check to see if the program is GNU ld. I'd rather use --version,
2568 # but apparently some GNU ld's only accept -v.
2569 # Break only if it was the GNU/non-GNU ld that we prefer.
2570 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2571 test "$with_gnu_ld" != no && break
2573 test "$with_gnu_ld" != yes && break
2579 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2584 if test -n "$LD"; then
2585 echo "$as_me:2585: result: $LD" >&5
2586 echo "${ECHO_T}$LD" >&6
2588 echo "$as_me:2588: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2591 test -z "$LD" && { { echo "$as_me:2591: error: no acceptable ld found in \$PATH" >&5
2592 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2593 { (exit 1); exit 1; }; }
2594 echo "$as_me:2594: checking if the linker ($LD) is GNU ld" >&5
2595 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2596 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2600 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2601 lt_cv_prog_gnu_ld=yes
2603 lt_cv_prog_gnu_ld=no
2606 echo "$as_me:2606: result: $lt_cv_prog_gnu_ld" >&5
2607 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2608 with_gnu_ld=$lt_cv_prog_gnu_ld
2610 echo "$as_me:2610: checking for $LD option to reload object files" >&5
2611 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2612 if test "${lt_cv_ld_reload_flag+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 lt_cv_ld_reload_flag='-r'
2617 echo "$as_me:2617: result: $lt_cv_ld_reload_flag" >&5
2618 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2619 reload_flag=$lt_cv_ld_reload_flag
2620 test -n "$reload_flag" && reload_flag=" $reload_flag"
2622 echo "$as_me:2622: checking for BSD-compatible nm" >&5
2623 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2624 if test "${lt_cv_path_NM+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 if test -n "$NM"; then
2628 # Let the user override the test.
2631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2632 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2633 test -z "$ac_dir" && ac_dir=.
2634 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2635 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2636 # Check to see if the nm accepts a BSD-compat flag.
2637 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2638 # nm: unknown option "B" ignored
2639 # Tru64's nm complains that /dev/null is an invalid object file
2640 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2641 lt_cv_path_NM="$tmp_nm -B"
2643 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2644 lt_cv_path_NM="$tmp_nm -p"
2647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2648 continue # so that we can try to find one that supports BSD flags
2653 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2658 echo "$as_me:2658: result: $NM" >&5
2659 echo "${ECHO_T}$NM" >&6
2661 echo "$as_me:2661: checking whether ln -s works" >&5
2662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2664 if test "$LN_S" = "ln -s"; then
2665 echo "$as_me:2665: result: yes" >&5
2666 echo "${ECHO_T}yes" >&6
2668 echo "$as_me:2668: result: no, using $LN_S" >&5
2669 echo "${ECHO_T}no, using $LN_S" >&6
2672 echo "$as_me:2672: checking how to recognise dependant libraries" >&5
2673 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2674 if test "${lt_cv_deplibs_check_method+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 lt_cv_file_magic_cmd='$MAGIC_CMD'
2678 lt_cv_file_magic_test_file=
2679 lt_cv_deplibs_check_method='unknown'
2680 # Need to set the preceding variable on all platforms that support
2681 # interlibrary dependencies.
2682 # 'none' -- dependencies not supported.
2683 # `unknown' -- same as none, but documents that we really don't know.
2684 # 'pass_all' -- all dependencies passed with no checks.
2685 # 'test_compile' -- check by making test program.
2686 # 'file_magic [[regex]]' -- check by looking for files in library path
2687 # which responds to the $file_magic_cmd with a given egrep regex.
2688 # If you have `file' or equivalent on your system and you're not sure
2689 # whether `pass_all' will *always* work, you probably want this one.
2693 lt_cv_deplibs_check_method=pass_all
2697 lt_cv_deplibs_check_method=pass_all
2701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2702 lt_cv_file_magic_cmd='/usr/bin/file -L'
2703 lt_cv_file_magic_test_file=/shlib/libc.so
2706 cygwin* | mingw* | pw32*)
2707 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2708 lt_cv_file_magic_cmd='$OBJDUMP -f'
2711 darwin* | rhapsody*)
2712 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2713 lt_cv_file_magic_cmd='/usr/bin/file -L'
2715 rhapsody* | darwin1.[012])
2716 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2719 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2725 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2728 # Not sure whether the presence of OpenBSD here was a mistake.
2729 # Let's accept both of them until this is cleared up.
2730 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2731 lt_cv_file_magic_cmd=/usr/bin/file
2732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2736 lt_cv_deplibs_check_method=pass_all
2741 lt_cv_deplibs_check_method=pass_all
2745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2746 lt_cv_file_magic_cmd=/usr/bin/file
2747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2753 # this will be overridden with pass_all, but let us keep it just in case
2754 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2758 *-32|*"-32 ") libmagic=32-bit;;
2759 *-n32|*"-n32 ") libmagic=N32;;
2760 *-64|*"-64 ") libmagic=64-bit;;
2761 *) libmagic=never-match;;
2763 # this will be overridden with pass_all, but let us keep it just in case
2764 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2767 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2768 lt_cv_deplibs_check_method=pass_all
2771 # This must be Linux ELF.
2774 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2775 lt_cv_deplibs_check_method=pass_all ;;
2777 # glibc up to 2.1.1 does not perform some relocations on ARM
2778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2780 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2784 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2785 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2787 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2793 lt_cv_file_magic_cmd=/usr/bin/file
2794 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2798 lt_cv_file_magic_cmd=/usr/bin/file
2799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2803 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2807 osf3* | osf4* | osf5*)
2808 # this will be overridden with pass_all, but let us keep it just in case
2809 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2810 lt_cv_file_magic_test_file=/shlib/libc.so
2811 lt_cv_deplibs_check_method=pass_all
2815 lt_cv_deplibs_check_method=pass_all
2819 lt_cv_deplibs_check_method=pass_all
2820 lt_cv_file_magic_test_file=/lib/libc.so
2823 sysv5uw[78]* | sysv4*uw2*)
2824 lt_cv_deplibs_check_method=pass_all
2827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2828 case $host_vendor in
2830 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]'
2831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2834 lt_cv_deplibs_check_method=pass_all
2837 lt_cv_file_magic_cmd='/bin/file'
2838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2841 lt_cv_file_magic_cmd='/bin/file'
2842 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2843 lt_cv_file_magic_test_file=/lib/libc.so
2850 echo "$as_me:2850: result: $lt_cv_deplibs_check_method" >&5
2851 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2852 file_magic_cmd=$lt_cv_file_magic_cmd
2853 deplibs_check_method=$lt_cv_deplibs_check_method
2855 # Check for command to grab the raw symbol name followed by C symbol from nm.
2856 echo "$as_me:2856: checking command to parse $NM output" >&5
2857 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2858 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 # These are sane defaults that work on at least a few old systems.
2863 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2865 # Character class describing NM global symbol codes.
2866 symcode='[BCDEGRST]'
2868 # Regexp to match symbols that can be accessed directly from C.
2869 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2871 # Transform the above into a raw symbol and a C symbol.
2872 symxfrm='\1 \2\3 \3'
2874 # Transform an extracted symbol line into a proper C declaration
2875 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2877 # Transform an extracted symbol line into symbol name and symbol address
2878 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'"
2880 # Define system-specific variables.
2885 cygwin* | mingw* | pw32*)
2886 symcode='[ABCDGISTW]'
2888 hpux*) # Its linker distinguishes data from code symbols
2889 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2890 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'"
2893 symcode='[BCDEGRST]'
2903 # Handle CRLF in mingw tool chain
2907 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2911 # If we're using GNU nm, then use its standard symbol codes.
2912 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2913 symcode='[ABCDGISTW]'
2916 # Try without a prefix undercore, then with it.
2917 for ac_symprfx in "" "_"; do
2919 # Write the raw and C identifiers.
2920 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2922 # Check to see that the pipe works correctly.
2925 cat > conftest.$ac_ext <<EOF
2930 void nm_test_func(){}
2934 int main(){nm_test_var='a';nm_test_func();return(0);}
2937 if { (eval echo "$as_me:2937: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>&5
2940 echo "$as_me:2940: \$? = $ac_status" >&5
2941 (exit $ac_status); }; then
2942 # Now try to grab the symbols.
2944 if { (eval echo "$as_me:2944: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); } && test -s "$nlist"; then
2949 # Try sorting and uniquifying the output.
2950 if sort "$nlist" | uniq > "$nlist"T; then
2951 mv -f "$nlist"T "$nlist"
2956 # Make sure that we snagged all the symbols we need.
2957 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2958 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2959 cat <<EOF > conftest.$ac_ext
2965 # Now generate the symbol file.
2966 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2968 cat <<EOF >> conftest.$ac_ext
2969 #if defined (__STDC__) && __STDC__
2970 # define lt_ptr void *
2972 # define lt_ptr char *
2976 /* The mapping between symbol names and symbols. */
2981 lt_preloaded_symbols[] =
2984 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2985 cat <<\EOF >> conftest.$ac_ext
2993 # Now try linking the two files.
2994 mv conftest.$ac_objext conftstm.$ac_objext
2996 save_CFLAGS="$CFLAGS"
2997 LIBS="conftstm.$ac_objext"
2998 CFLAGS="$CFLAGS$no_builtin_flag"
2999 if { (eval echo "$as_me:2999: \"$ac_link\"") >&5
3000 (eval $ac_link) 2>&5
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); } && test -s conftest; then
3007 CFLAGS="$save_CFLAGS"
3009 echo "cannot find nm_test_func in $nlist" >&5
3012 echo "cannot find nm_test_var in $nlist" >&5
3015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3018 echo "$progname: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3021 rm -f conftest* conftst*
3023 # Do not use the global_symbol_pipe unless it works.
3024 if test "$pipe_works" = yes; then
3027 lt_cv_sys_global_symbol_pipe=
3033 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3035 global_symbol_to_cdecl=
3036 global_symbol_to_c_name_address=
3038 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3039 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3041 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3043 echo "$as_me:3043: result: failed" >&5
3044 echo "${ECHO_T}failed" >&6
3046 echo "$as_me:3046: result: ok" >&5
3047 echo "${ECHO_T}ok" >&6
3051 ac_cpp='$CXXCPP $CPPFLAGS'
3052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3055 echo "$as_me:3055: checking how to run the C++ preprocessor" >&5
3056 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3057 if test -z "$CXXCPP"; then
3058 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 # Double quotes because CXXCPP needs to be expanded
3062 for CXXCPP in "$CXX -E" "/lib/cpp"
3065 for ac_cxx_preproc_warn_flag in '' yes
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # On the NeXT, cc -E runs the code through the compiler's parser,
3070 # not just through cpp. "Syntax error" is here to catch this case.
3071 cat >conftest.$ac_ext <<_ACEOF
3072 #line 3072 "configure"
3073 #include "confdefs.h"
3077 if { (eval echo "$as_me:3077: \"$ac_cpp conftest.$ac_ext\"") >&5
3078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3080 egrep -v '^ *\+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_cxx_preproc_warn_flag
3093 if test -z "$ac_cpp_err"; then
3096 echo "$as_me: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3098 # Broken: fails on valid input.
3101 rm -f conftest.err conftest.$ac_ext
3103 # OK, works on sane cases. Now check whether non-existent headers
3104 # can be detected and how.
3105 cat >conftest.$ac_ext <<_ACEOF
3106 #line 3106 "configure"
3107 #include "confdefs.h"
3108 #include <ac_nonexistent.h>
3110 if { (eval echo "$as_me:3110: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3113 egrep -v '^ *\+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:3116: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_cxx_preproc_warn_flag
3126 if test -z "$ac_cpp_err"; then
3127 # Broken: success on invalid input.
3130 echo "$as_me: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3132 # Passes both tests.
3136 rm -f conftest.err conftest.$ac_ext
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then
3146 ac_cv_prog_CXXCPP=$CXXCPP
3149 CXXCPP=$ac_cv_prog_CXXCPP
3151 ac_cv_prog_CXXCPP=$CXXCPP
3153 echo "$as_me:3153: result: $CXXCPP" >&5
3154 echo "${ECHO_T}$CXXCPP" >&6
3156 for ac_cxx_preproc_warn_flag in '' yes
3158 # Use a header file that comes with gcc, so configuring glibc
3159 # with a fresh cross-compiler works.
3160 # On the NeXT, cc -E runs the code through the compiler's parser,
3161 # not just through cpp. "Syntax error" is here to catch this case.
3162 cat >conftest.$ac_ext <<_ACEOF
3163 #line 3163 "configure"
3164 #include "confdefs.h"
3168 if { (eval echo "$as_me:3168: \"$ac_cpp conftest.$ac_ext\"") >&5
3169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171 egrep -v '^ *\+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:3174: \$? = $ac_status" >&5
3175 (exit $ac_status); } >/dev/null; then
3176 if test -s conftest.err; then
3177 ac_cpp_err=$ac_cxx_preproc_warn_flag
3184 if test -z "$ac_cpp_err"; then
3187 echo "$as_me: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 # Broken: fails on valid input.
3192 rm -f conftest.err conftest.$ac_ext
3194 # OK, works on sane cases. Now check whether non-existent headers
3195 # can be detected and how.
3196 cat >conftest.$ac_ext <<_ACEOF
3197 #line 3197 "configure"
3198 #include "confdefs.h"
3199 #include <ac_nonexistent.h>
3201 if { (eval echo "$as_me:3201: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 egrep -v '^ *\+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:3207: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_cxx_preproc_warn_flag
3217 if test -z "$ac_cpp_err"; then
3218 # Broken: success on invalid input.
3221 echo "$as_me: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 # Passes both tests.
3227 rm -f conftest.err conftest.$ac_ext
3230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231 rm -f conftest.err conftest.$ac_ext
3232 if $ac_preproc_ok; then
3235 { { echo "$as_me:3235: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3236 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3237 { (exit 1); exit 1; }; }
3241 ac_cpp='$CXXCPP $CPPFLAGS'
3242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3246 for ac_header in dlfcn.h
3248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3249 echo "$as_me:3249: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3255 #line 3255 "configure"
3256 #include "confdefs.h"
3257 #include <$ac_header>
3259 if { (eval echo "$as_me:3259: \"$ac_cpp conftest.$ac_ext\"") >&5
3260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3262 egrep -v '^ *\+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:3265: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null; then
3267 if test -s conftest.err; then
3268 ac_cpp_err=$ac_cxx_preproc_warn_flag
3275 if test -z "$ac_cpp_err"; then
3276 eval "$as_ac_Header=yes"
3278 echo "$as_me: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 eval "$as_ac_Header=no"
3282 rm -f conftest.err conftest.$ac_ext
3284 echo "$as_me:3284: result: `eval echo '${'$as_ac_Header'}'`" >&5
3285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<EOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3294 # Only perform the check for file, if the check method requires it
3295 case $deplibs_check_method in
3297 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3298 echo "$as_me:3298: checking for ${ac_tool_prefix}file" >&5
3299 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3300 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3311 ac_save_MAGIC_CMD="$MAGIC_CMD"
3312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3313 ac_dummy="/usr/bin:$PATH"
3314 for ac_dir in $ac_dummy; do
3315 test -z "$ac_dir" && ac_dir=.
3316 if test -f $ac_dir/${ac_tool_prefix}file; then
3317 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3318 if test -n "$file_magic_test_file"; then
3319 case $deplibs_check_method in
3321 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3324 egrep "$file_magic_regex" > /dev/null; then
3329 *** Warning: the command libtool uses to detect shared libraries,
3330 *** $file_magic_cmd, produces output that libtool cannot recognize.
3331 *** The result is that libtool may fail to recognize shared libraries
3332 *** as such. This will affect the creation of libtool libraries that
3333 *** depend on shared libraries, but programs linked with such libtool
3334 *** libraries will work regardless of this problem. Nevertheless, you
3335 *** may want to report the problem to your system manager and/or to
3336 *** bug-libtool@gnu.org
3346 MAGIC_CMD="$ac_save_MAGIC_CMD"
3351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3352 if test -n "$MAGIC_CMD"; then
3353 echo "$as_me:3353: result: $MAGIC_CMD" >&5
3354 echo "${ECHO_T}$MAGIC_CMD" >&6
3356 echo "$as_me:3356: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3360 if test -z "$lt_cv_path_MAGIC_CMD"; then
3361 if test -n "$ac_tool_prefix"; then
3362 echo "$as_me:3362: checking for file" >&5
3363 echo $ECHO_N "checking for file... $ECHO_C" >&6
3364 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3375 ac_save_MAGIC_CMD="$MAGIC_CMD"
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3377 ac_dummy="/usr/bin:$PATH"
3378 for ac_dir in $ac_dummy; do
3379 test -z "$ac_dir" && ac_dir=.
3380 if test -f $ac_dir/file; then
3381 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3382 if test -n "$file_magic_test_file"; then
3383 case $deplibs_check_method in
3385 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3388 egrep "$file_magic_regex" > /dev/null; then
3393 *** Warning: the command libtool uses to detect shared libraries,
3394 *** $file_magic_cmd, produces output that libtool cannot recognize.
3395 *** The result is that libtool may fail to recognize shared libraries
3396 *** as such. This will affect the creation of libtool libraries that
3397 *** depend on shared libraries, but programs linked with such libtool
3398 *** libraries will work regardless of this problem. Nevertheless, you
3399 *** may want to report the problem to your system manager and/or to
3400 *** bug-libtool@gnu.org
3410 MAGIC_CMD="$ac_save_MAGIC_CMD"
3415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3416 if test -n "$MAGIC_CMD"; then
3417 echo "$as_me:3417: result: $MAGIC_CMD" >&5
3418 echo "${ECHO_T}$MAGIC_CMD" >&6
3420 echo "$as_me:3420: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3433 if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3436 echo "$as_me:3436: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_prog_RANLIB+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 if test -n "$RANLIB"; then
3442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3444 ac_save_IFS=$IFS; IFS=$ac_path_separator
3446 for ac_dir in $ac_dummy; do
3448 test -z "$ac_dir" && ac_dir=.
3449 $as_executable_p "$ac_dir/$ac_word" || continue
3450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3451 echo "$as_me:3451: found $ac_dir/$ac_word" >&5
3457 RANLIB=$ac_cv_prog_RANLIB
3458 if test -n "$RANLIB"; then
3459 echo "$as_me:3459: result: $RANLIB" >&5
3460 echo "${ECHO_T}$RANLIB" >&6
3462 echo "$as_me:3462: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3467 if test -z "$ac_cv_prog_RANLIB"; then
3468 ac_ct_RANLIB=$RANLIB
3469 # Extract the first word of "ranlib", so it can be a program name with args.
3470 set dummy ranlib; ac_word=$2
3471 echo "$as_me:3471: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$ac_ct_RANLIB"; then
3477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3479 ac_save_IFS=$IFS; IFS=$ac_path_separator
3481 for ac_dir in $ac_dummy; do
3483 test -z "$ac_dir" && ac_dir=.
3484 $as_executable_p "$ac_dir/$ac_word" || continue
3485 ac_cv_prog_ac_ct_RANLIB="ranlib"
3486 echo "$as_me:3486: found $ac_dir/$ac_word" >&5
3490 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3493 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3494 if test -n "$ac_ct_RANLIB"; then
3495 echo "$as_me:3495: result: $ac_ct_RANLIB" >&5
3496 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3498 echo "$as_me:3498: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3502 RANLIB=$ac_ct_RANLIB
3504 RANLIB="$ac_cv_prog_RANLIB"
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}strip; ac_word=$2
3510 echo "$as_me:3510: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_prog_STRIP+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if test -n "$STRIP"; then
3516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3518 ac_save_IFS=$IFS; IFS=$ac_path_separator
3520 for ac_dir in $ac_dummy; do
3522 test -z "$ac_dir" && ac_dir=.
3523 $as_executable_p "$ac_dir/$ac_word" || continue
3524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3525 echo "$as_me:3525: found $ac_dir/$ac_word" >&5
3531 STRIP=$ac_cv_prog_STRIP
3532 if test -n "$STRIP"; then
3533 echo "$as_me:3533: result: $STRIP" >&5
3534 echo "${ECHO_T}$STRIP" >&6
3536 echo "$as_me:3536: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3541 if test -z "$ac_cv_prog_STRIP"; then
3543 # Extract the first word of "strip", so it can be a program name with args.
3544 set dummy strip; ac_word=$2
3545 echo "$as_me:3545: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test -n "$ac_ct_STRIP"; then
3551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3553 ac_save_IFS=$IFS; IFS=$ac_path_separator
3555 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 $as_executable_p "$ac_dir/$ac_word" || continue
3559 ac_cv_prog_ac_ct_STRIP="strip"
3560 echo "$as_me:3560: found $ac_dir/$ac_word" >&5
3564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3568 if test -n "$ac_ct_STRIP"; then
3569 echo "$as_me:3569: result: $ac_ct_STRIP" >&5
3570 echo "${ECHO_T}$ac_ct_STRIP" >&6
3572 echo "$as_me:3572: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3578 STRIP="$ac_cv_prog_STRIP"
3584 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3585 if test "${enable_libtool_lock+set}" = set; then
3586 enableval="$enable_libtool_lock"
3589 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3591 # Some flags need to be propagated to the compiler or linker for good
3595 # Find out which ABI we are using.
3596 echo '#line 3596 "configure"' > conftest.$ac_ext
3597 if { (eval echo "$as_me:3597: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>&5
3600 echo "$as_me:3600: \$? = $ac_status" >&5
3601 (exit $ac_status); }; then
3602 case `/usr/bin/file conftest.$ac_objext` in
3618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3619 SAVE_CFLAGS="$CFLAGS"
3620 CFLAGS="$CFLAGS -belf"
3621 echo "$as_me:3621: checking whether the C compiler needs -belf" >&5
3622 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3623 if test "${lt_cv_cc_needs_belf+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 cat >conftest.$ac_ext <<_ACEOF
3634 #line 3634 "configure"
3635 #include "confdefs.h"
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:3646: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>&5
3649 echo "$as_me:3649: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -s conftest$ac_exeext'
3652 { (eval echo "$as_me:3652: \"$ac_try\"") >&5
3655 echo "$as_me:3655: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 lt_cv_cc_needs_belf=yes
3659 echo "$as_me: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 lt_cv_cc_needs_belf=no
3663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3665 ac_cpp='$CXXCPP $CPPFLAGS'
3666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671 echo "$as_me:3671: result: $lt_cv_cc_needs_belf" >&5
3672 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3673 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3674 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3675 CFLAGS="$SAVE_CFLAGS"
3681 # Sed substitution that helps us do robust quoting. It backslashifies
3682 # metacharacters that are still active within double-quoted strings.
3683 Xsed='sed -e s/^X//'
3684 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3686 # Same as above, but do not quote variable references.
3687 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3689 # Sed substitution to delay expansion of an escaped shell variable in a
3690 # double_quote_subst'ed string.
3691 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3697 default_ofile=libtool
3698 can_build_shared=yes
3700 # All known linkers require a `.a' archive for static linking (except M$VC,
3701 # which needs '.lib').
3703 ltmain="$ac_aux_dir/ltmain.sh"
3704 ofile="$default_ofile"
3705 with_gnu_ld="$lt_cv_prog_gnu_ld"
3706 need_locks="$enable_libtool_lock"
3709 old_CFLAGS="$CFLAGS"
3711 # Set sane defaults for various variables
3712 test -z "$AR" && AR=ar
3713 test -z "$AR_FLAGS" && AR_FLAGS=cru
3714 test -z "$AS" && AS=as
3715 test -z "$CC" && CC=cc
3716 test -z "$DLLTOOL" && DLLTOOL=dlltool
3717 test -z "$LD" && LD=ld
3718 test -z "$LN_S" && LN_S="ln -s"
3719 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3720 test -z "$NM" && NM=nm
3721 test -z "$OBJDUMP" && OBJDUMP=objdump
3722 test -z "$RANLIB" && RANLIB=:
3723 test -z "$STRIP" && STRIP=:
3724 test -z "$ac_objext" && ac_objext=o
3726 if test x"$host" != x"$build"; then
3727 ac_tool_prefix=${host_alias}-
3732 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3735 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3740 # AIX sometimes has problems with the GCC collect2 program. For some
3741 # reason, if we set the COLLECT_NAMES environment variable, the problems
3742 # vanish in a puff of smoke.
3743 if test "X${COLLECT_NAMES+set}" != Xset; then
3745 export COLLECT_NAMES
3750 # Determine commands to create old-style static archives.
3751 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3752 old_postinstall_cmds='chmod 644 $oldlib'
3753 old_postuninstall_cmds=
3755 if test -n "$RANLIB"; then
3758 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3761 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3764 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3767 # Allow CC to be a program name with arguments.
3771 echo "$as_me:3771: checking for objdir" >&5
3772 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3773 rm -f .libs 2>/dev/null
3774 mkdir .libs 2>/dev/null
3775 if test -d .libs; then
3778 # MS-DOS does not allow filenames that begin with a dot.
3781 rmdir .libs 2>/dev/null
3782 echo "$as_me:3782: result: $objdir" >&5
3783 echo "${ECHO_T}$objdir" >&6
3785 # Check whether --with-pic or --without-pic was given.
3786 if test "${with_pic+set}" = set; then
3792 test -z "$pic_mode" && pic_mode=default
3794 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3795 # in isolation, and that seeing it set (from the cache) indicates that
3796 # the associated values are set (in the cache) correctly too.
3797 echo "$as_me:3797: checking for $compiler option to produce PIC" >&5
3798 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3799 if test "${lt_cv_prog_cc_pic+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 lt_cv_prog_cc_shlib=
3805 lt_cv_prog_cc_static=
3806 lt_cv_prog_cc_no_builtin=
3807 lt_cv_prog_cc_can_build_shared=$can_build_shared
3809 if test "$GCC" = yes; then
3810 lt_cv_prog_cc_wl='-Wl,'
3811 lt_cv_prog_cc_static='-static'
3815 # Below there is a dirty hack to force normal static linking with -ldl
3816 # The problem is because libdl dynamically linked with both libc and
3817 # libC (AIX C++ library), which obviously doesn't included in libraries
3818 # list by gcc. This cause undefined symbols with -static flags.
3819 # This hack allows C programs to be linked with "-static -ldl", but
3820 # not sure about C++ programs.
3821 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3824 # FIXME: we need at least 68020 code to build shared libraries, but
3825 # adding the `-m68020' flag to GCC prevents building anything better,
3827 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3829 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3830 # PIC is the default for these OSes.
3832 darwin* | rhapsody*)
3833 # PIC is the default on this platform
3834 # Common symbols not allowed in MH_DYLIB files
3835 lt_cv_prog_cc_pic='-fno-common'
3837 cygwin* | mingw* | pw32* | os2*)
3838 # This hack is so that the source file can tell whether it is being
3839 # built for inclusion in a dll (and should export symbols for example).
3840 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3843 if test -d /usr/nec; then
3844 lt_cv_prog_cc_pic=-Kconform_pic
3848 lt_cv_prog_cc_pic='-fPIC'
3852 # PORTME Check for PIC flags for the system compiler.
3854 aix3* | aix4* | aix5*)
3855 lt_cv_prog_cc_wl='-Wl,'
3856 # All AIX code is PIC.
3857 if test "$host_cpu" = ia64; then
3858 # AIX 5 now supports IA64 processor
3859 lt_cv_prog_cc_static='-Bstatic'
3861 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3865 hpux9* | hpux10* | hpux11*)
3866 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3867 lt_cv_prog_cc_wl='-Wl,'
3868 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3869 lt_cv_prog_cc_pic='+Z'
3873 lt_cv_prog_cc_wl='-Wl,'
3874 lt_cv_prog_cc_static='-non_shared'
3875 # PIC (with -KPIC) is the default.
3878 cygwin* | mingw* | pw32* | os2*)
3879 # This hack is so that the source file can tell whether it is being
3880 # built for inclusion in a dll (and should export symbols for example).
3881 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3885 lt_cv_prog_cc_pic='-KPIC'
3886 lt_cv_prog_cc_static='-Bstatic'
3889 osf3* | osf4* | osf5*)
3890 # All OSF/1 code is PIC.
3891 lt_cv_prog_cc_wl='-Wl,'
3892 lt_cv_prog_cc_static='-non_shared'
3896 lt_cv_prog_cc_pic='-Kpic'
3897 lt_cv_prog_cc_static='-dn'
3898 lt_cv_prog_cc_shlib='-belf'
3902 lt_cv_prog_cc_pic='-KPIC'
3903 lt_cv_prog_cc_static='-Bstatic'
3904 lt_cv_prog_cc_wl='-Wl,'
3908 lt_cv_prog_cc_pic='-PIC'
3909 lt_cv_prog_cc_static='-Bstatic'
3910 lt_cv_prog_cc_wl='-Qoption ld '
3913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3914 lt_cv_prog_cc_pic='-KPIC'
3915 lt_cv_prog_cc_static='-Bstatic'
3916 if test "x$host_vendor" = xsni; then
3917 lt_cv_prog_cc_wl='-LD'
3919 lt_cv_prog_cc_wl='-Wl,'
3924 lt_cv_prog_cc_pic='-pic'
3925 lt_cv_prog_cc_static='-Bstatic'
3929 if test -d /usr/nec ;then
3930 lt_cv_prog_cc_pic='-Kconform_pic'
3931 lt_cv_prog_cc_static='-Bstatic'
3936 lt_cv_prog_cc_can_build_shared=no
3943 if test -z "$lt_cv_prog_cc_pic"; then
3944 echo "$as_me:3944: result: none" >&5
3945 echo "${ECHO_T}none" >&6
3947 echo "$as_me:3947: result: $lt_cv_prog_cc_pic" >&5
3948 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3950 # Check to make sure the pic_flag actually works.
3951 echo "$as_me:3951: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3952 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3953 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 save_CFLAGS="$CFLAGS"
3957 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line 3959 "configure"
3960 #include "confdefs.h"
3970 rm -f conftest.$ac_objext
3971 if { (eval echo "$as_me:3971: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>&5
3974 echo "$as_me:3974: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:3977: \"$ac_try\"") >&5
3980 echo "$as_me:3980: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3983 hpux9* | hpux10* | hpux11*)
3984 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3985 # they create non-PIC objects. So, if there were any warnings, we
3986 # assume that PIC is not supported.
3987 if test -s conftest.err; then
3988 lt_cv_prog_cc_pic_works=no
3990 lt_cv_prog_cc_pic_works=yes
3994 lt_cv_prog_cc_pic_works=yes
3999 echo "$as_me: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4001 lt_cv_prog_cc_pic_works=no
4004 rm -f conftest.$ac_objext conftest.$ac_ext
4005 CFLAGS="$save_CFLAGS"
4009 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4011 lt_cv_prog_cc_can_build_shared=no
4013 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4016 echo "$as_me:4016: result: $lt_cv_prog_cc_pic_works" >&5
4017 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4020 # Check for any special shared library compilation flags.
4021 if test -n "$lt_cv_prog_cc_shlib"; then
4022 { echo "$as_me:4022: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4023 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4024 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4026 { echo "$as_me:4026: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4027 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4028 lt_cv_prog_cc_can_build_shared=no
4032 echo "$as_me:4032: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4033 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4034 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 lt_cv_prog_cc_static_works=no
4038 save_LDFLAGS="$LDFLAGS"
4039 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4040 cat >conftest.$ac_ext <<_ACEOF
4041 #line 4041 "configure"
4042 #include "confdefs.h"
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:4053: \"$ac_link\"") >&5
4054 (eval $ac_link) 2>&5
4056 echo "$as_me:4056: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -s conftest$ac_exeext'
4059 { (eval echo "$as_me:4059: \"$ac_try\"") >&5
4062 echo "$as_me:4062: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 lt_cv_prog_cc_static_works=yes
4066 echo "$as_me: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4070 LDFLAGS="$save_LDFLAGS"
4074 # Belt *and* braces to stop my trousers falling down:
4075 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4076 echo "$as_me:4076: result: $lt_cv_prog_cc_static_works" >&5
4077 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4079 pic_flag="$lt_cv_prog_cc_pic"
4080 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4081 wl="$lt_cv_prog_cc_wl"
4082 link_static_flag="$lt_cv_prog_cc_static"
4083 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4084 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4086 # Check to see if options -o and -c are simultaneously supported by compiler
4087 echo "$as_me:4087: checking if $compiler supports -c -o file.$ac_objext" >&5
4088 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4089 if test "${lt_cv_compiler_c_o+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 $rm -r conftest 2>/dev/null
4096 echo "int some_variable = 0;" > conftest.$ac_ext
4098 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4099 # that will create temporary files in the current directory regardless of
4100 # the output directory. Thus, making CWD read-only will cause this test
4101 # to fail, enabling locking or at least warning the user not to do parallel
4104 save_CFLAGS="$CFLAGS"
4105 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4107 if { (eval echo configure:4107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4108 # The compiler can only warn and ignore the option if not recognized
4109 # So say no if there are warnings
4110 if test -s out/conftest.err; then
4111 lt_cv_compiler_c_o=no
4113 lt_cv_compiler_c_o=yes
4116 # Append any errors to the config.log.
4117 cat out/conftest.err 1>&5
4118 lt_cv_compiler_c_o=no
4120 CFLAGS="$save_CFLAGS"
4126 $rm -r conftest 2>/dev/null
4130 compiler_c_o=$lt_cv_compiler_c_o
4131 echo "$as_me:4131: result: $compiler_c_o" >&5
4132 echo "${ECHO_T}$compiler_c_o" >&6
4134 if test x"$compiler_c_o" = x"yes"; then
4135 # Check to see if we can write to a .lo
4136 echo "$as_me:4136: checking if $compiler supports -c -o file.lo" >&5
4137 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4138 if test "${lt_cv_compiler_o_lo+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 lt_cv_compiler_o_lo=no
4143 save_CFLAGS="$CFLAGS"
4144 CFLAGS="$CFLAGS -c -o conftest.lo"
4145 save_objext="$ac_objext"
4147 cat >conftest.$ac_ext <<_ACEOF
4148 #line 4148 "configure"
4149 #include "confdefs.h"
4154 int some_variable = 0;
4159 rm -f conftest.$ac_objext
4160 if { (eval echo "$as_me:4160: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>&5
4163 echo "$as_me:4163: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:4166: \"$ac_try\"") >&5
4169 echo "$as_me:4169: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 # The compiler can only warn and ignore the option if not recognized
4172 # So say no if there are warnings
4173 if test -s conftest.err; then
4174 lt_cv_compiler_o_lo=no
4176 lt_cv_compiler_o_lo=yes
4180 echo "$as_me: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4183 rm -f conftest.$ac_objext conftest.$ac_ext
4184 ac_objext="$save_objext"
4185 CFLAGS="$save_CFLAGS"
4189 compiler_o_lo=$lt_cv_compiler_o_lo
4190 echo "$as_me:4190: result: $compiler_o_lo" >&5
4191 echo "${ECHO_T}$compiler_o_lo" >&6
4196 # Check to see if we can do hard links to lock some files if needed
4197 hard_links="nottested"
4198 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4199 # do not overwrite the value of need_locks provided by the user
4200 echo "$as_me:4200: checking if we can lock with hard links" >&5
4201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4206 ln conftest.a conftest.b 2>&5 || hard_links=no
4207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4208 echo "$as_me:4208: result: $hard_links" >&5
4209 echo "${ECHO_T}$hard_links" >&6
4210 if test "$hard_links" = no; then
4211 { echo "$as_me:4211: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4219 if test "$GCC" = yes; then
4220 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4221 echo "$as_me:4221: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4222 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4223 echo "int some_variable = 0;" > conftest.$ac_ext
4224 save_CFLAGS="$CFLAGS"
4225 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4226 compiler_rtti_exceptions=no
4227 cat >conftest.$ac_ext <<_ACEOF
4228 #line 4228 "configure"
4229 #include "confdefs.h"
4234 int some_variable = 0;
4239 rm -f conftest.$ac_objext
4240 if { (eval echo "$as_me:4240: \"$ac_compile\"") >&5
4241 (eval $ac_compile) 2>&5
4243 echo "$as_me:4243: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (eval echo "$as_me:4246: \"$ac_try\"") >&5
4249 echo "$as_me:4249: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 # The compiler can only warn and ignore the option if not recognized
4252 # So say no if there are warnings
4253 if test -s conftest.err; then
4254 compiler_rtti_exceptions=no
4256 compiler_rtti_exceptions=yes
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4263 rm -f conftest.$ac_objext conftest.$ac_ext
4264 CFLAGS="$save_CFLAGS"
4265 echo "$as_me:4265: result: $compiler_rtti_exceptions" >&5
4266 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4268 if test "$compiler_rtti_exceptions" = "yes"; then
4269 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4271 no_builtin_flag=' -fno-builtin'
4275 # See if the linker supports building shared libraries.
4276 echo "$as_me:4276: checking whether the linker ($LD) supports shared libraries" >&5
4277 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4279 allow_undefined_flag=
4281 need_lib_prefix=unknown
4282 need_version=unknown
4283 # when you set need_version to no, make sure it does not cause -set_version
4284 # flags to be left without arguments
4286 archive_expsym_cmds=
4287 old_archive_from_new_cmds=
4288 old_archive_from_expsyms_cmds=
4289 export_dynamic_flag_spec=
4290 whole_archive_flag_spec=
4291 thread_safe_flag_spec=
4292 hardcode_into_libs=no
4293 hardcode_libdir_flag_spec=
4294 hardcode_libdir_separator=
4297 hardcode_shlibpath_var=unsupported
4299 link_all_deplibs=unknown
4300 always_export_symbols=no
4301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4302 # include_expsyms should be a list of space-separated symbols to be *always*
4303 # included in the symbol list
4305 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4308 # as well as any symbol that contains `d'.
4309 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4310 # Although _GLOBAL_OF