]> git.ipfire.org Git - thirdparty/gcc.git/blob - libobjc/configure
configure: Regenerate for new libtool.
[thirdparty/gcc.git] / libobjc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274 $*
275 _LT_EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='package-unused'
418 PACKAGE_TARNAME='libobjc'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='package-unused version-unused'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="objc/objc.h"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC OBJC_BOEHM_GC_INCLUDES multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libsuffix CC ac_ct_CC EXEEXT OBJEXT extra_ldflags_libobjc CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS SET_MAKE LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
791 *)
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 ;;
798
799 esac
800 done
801
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911
912 #
913 # Report the --help message.
914 #
915 if test "$ac_init_help" = "long"; then
916 # Omit some internal or obsolete options to make the list less imposing.
917 # This message is too long to be a string in the A/UX 3.1 sh.
918 cat <<_ACEOF
919 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
920
921 Usage: $0 [OPTION]... [VAR=VALUE]...
922
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE. See below for descriptions of some of the useful variables.
925
926 Defaults for the options are specified in brackets.
927
928 Configuration:
929 -h, --help display this help and exit
930 --help=short display options specific to this package
931 --help=recursive display the short help of all the included packages
932 -V, --version display version information and exit
933 -q, --quiet, --silent do not print \`checking...' messages
934 --cache-file=FILE cache test results in FILE [disabled]
935 -C, --config-cache alias for \`--cache-file=config.cache'
936 -n, --no-create do not create output files
937 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938
939 _ACEOF
940
941 cat <<_ACEOF
942 Installation directories:
943 --prefix=PREFIX install architecture-independent files in PREFIX
944 [$ac_default_prefix]
945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
946 [PREFIX]
947
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
952
953 For better control, use the options below.
954
955 Fine tuning of the installation directories:
956 --bindir=DIR user executables [EPREFIX/bin]
957 --sbindir=DIR system admin executables [EPREFIX/sbin]
958 --libexecdir=DIR program executables [EPREFIX/libexec]
959 --datadir=DIR read-only architecture-independent data [PREFIX/share]
960 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
961 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
962 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
963 --libdir=DIR object code libraries [EPREFIX/lib]
964 --includedir=DIR C header files [PREFIX/include]
965 --oldincludedir=DIR C header files for non-gcc [/usr/include]
966 --infodir=DIR info documentation [PREFIX/info]
967 --mandir=DIR man documentation [PREFIX/man]
968 _ACEOF
969
970 cat <<\_ACEOF
971
972 System types:
973 --build=BUILD configure for building on BUILD [guessed]
974 --host=HOST cross-compile to build programs to run on HOST [BUILD]
975 --target=TARGET configure for building compilers for TARGET [HOST]
976 _ACEOF
977 fi
978
979 if test -n "$ac_init_help"; then
980 case $ac_init_help in
981 short | recursive ) echo "Configuration of package-unused version-unused:";;
982 esac
983 cat <<\_ACEOF
984
985 Optional Features:
986 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
987 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
988 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
989 --enable-objc-gc enable the use of Boehm's garbage collector with
990 the GNU Objective-C runtime.
991 --enable-multilib build many library versions (default)
992 --enable-maintainer-mode enable make rules and dependencies not useful
993 (and sometimes confusing) to the casual installer
994 --enable-shared[=PKGS]
995 build shared libraries [default=yes]
996 --enable-static[=PKGS]
997 build static libraries [default=yes]
998 --enable-fast-install[=PKGS]
999 optimize for fast installation [default=yes]
1000 --disable-libtool-lock avoid locking (might break parallel builds)
1001 --enable-sjlj-exceptions
1002 force use of builtin_setjmp for exceptions
1003
1004 Optional Packages:
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1007 --with-build-libsubdir=DIR Directory where to find libraries for build system
1008 --with-target-subdir=SUBDIR
1009 configuring in a subdirectory
1010 --with-cross-host=HOST configuring with a cross compiler
1011 --with-pic try to use only PIC/non-PIC objects [default=use
1012 both]
1013 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1014
1015 Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1022 CPP C preprocessor
1023
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1026
1027 _ACEOF
1028 fi
1029
1030 if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1032 ac_popdir=`pwd`
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1035 ac_builddir=.
1036
1037 if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042 ac_dir_suffix= ac_top_builddir=
1043 fi
1044
1045 case $srcdir in
1046 .) # No --srcdir option. We are building in place.
1047 ac_srcdir=.
1048 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=.
1050 else
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 fi ;;
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1056 *) # Relative path.
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1060
1061 # Do not use `cd foo && pwd` to compute absolute paths, because
1062 # the directories may not exist.
1063 case `pwd` in
1064 .) ac_abs_builddir="$ac_dir";;
1065 *)
1066 case "$ac_dir" in
1067 .) ac_abs_builddir=`pwd`;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070 esac;;
1071 esac
1072 case $ac_abs_builddir in
1073 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1074 *)
1075 case ${ac_top_builddir}. in
1076 .) ac_abs_top_builddir=$ac_abs_builddir;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079 esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_srcdir=$ac_srcdir;;
1083 *)
1084 case $ac_srcdir in
1085 .) ac_abs_srcdir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088 esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1092 *)
1093 case $ac_top_srcdir in
1094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097 esac;;
1098 esac
1099
1100 cd $ac_dir
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1103 echo
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1106 echo
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1110 echo
1111 $ac_configure --help
1112 else
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114 fi
1115 cd $ac_popdir
1116 done
1117 fi
1118
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121 cat <<\_ACEOF
1122 package-unused configure version-unused
1123 generated by GNU Autoconf 2.59
1124
1125 Copyright (C) 2003 Free Software Foundation, Inc.
1126 This configure script is free software; the Free Software Foundation
1127 gives unlimited permission to copy, distribute and modify it.
1128 _ACEOF
1129 exit 0
1130 fi
1131 exec 5>config.log
1132 cat >&5 <<_ACEOF
1133 This file contains any messages produced by compilers while
1134 running configure, to aid debugging if configure makes a mistake.
1135
1136 It was created by package-unused $as_me version-unused, which was
1137 generated by GNU Autoconf 2.59. Invocation command line was
1138
1139 $ $0 $@
1140
1141 _ACEOF
1142 {
1143 cat <<_ASUNAME
1144 ## --------- ##
1145 ## Platform. ##
1146 ## --------- ##
1147
1148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1153
1154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1156
1157 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1158 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1161 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1162 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1163 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1164
1165 _ASUNAME
1166
1167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 for as_dir in $PATH
1169 do
1170 IFS=$as_save_IFS
1171 test -z "$as_dir" && as_dir=.
1172 echo "PATH: $as_dir"
1173 done
1174
1175 } >&5
1176
1177 cat >&5 <<_ACEOF
1178
1179
1180 ## ----------- ##
1181 ## Core tests. ##
1182 ## ----------- ##
1183
1184 _ACEOF
1185
1186
1187 # Keep a trace of the command line.
1188 # Strip out --no-create and --no-recursion so they do not pile up.
1189 # Strip out --silent because we don't want to record it for future runs.
1190 # Also quote any args containing shell meta-characters.
1191 # Make two passes to allow for proper duplicate-argument suppression.
1192 ac_configure_args=
1193 ac_configure_args0=
1194 ac_configure_args1=
1195 ac_sep=
1196 ac_must_keep_next=false
1197 for ac_pass in 1 2
1198 do
1199 for ac_arg
1200 do
1201 case $ac_arg in
1202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 continue ;;
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 esac
1209 case $ac_pass in
1210 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1211 2)
1212 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213 if test $ac_must_keep_next = true; then
1214 ac_must_keep_next=false # Got value, back to normal.
1215 else
1216 case $ac_arg in
1217 *=* | --config-cache | -C | -disable-* | --disable-* \
1218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220 | -with-* | --with-* | -without-* | --without-* | --x)
1221 case "$ac_configure_args0 " in
1222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223 esac
1224 ;;
1225 -* ) ac_must_keep_next=true ;;
1226 esac
1227 fi
1228 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229 # Get rid of the leading space.
1230 ac_sep=" "
1231 ;;
1232 esac
1233 done
1234 done
1235 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1237
1238 # When interrupted or exit'd, cleanup temporary files, and complete
1239 # config.log. We remove comments because anyway the quotes in there
1240 # would cause problems or look ugly.
1241 # WARNING: Be sure not to use single quotes in there, as some shells,
1242 # such as our DU 5.0 friend, will then `close' the trap.
1243 trap 'exit_status=$?
1244 # Save into config.log some information that might help in debugging.
1245 {
1246 echo
1247
1248 cat <<\_ASBOX
1249 ## ---------------- ##
1250 ## Cache variables. ##
1251 ## ---------------- ##
1252 _ASBOX
1253 echo
1254 # The following way of writing the cache mishandles newlines in values,
1255 {
1256 (set) 2>&1 |
1257 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258 *ac_space=\ *)
1259 sed -n \
1260 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262 ;;
1263 *)
1264 sed -n \
1265 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266 ;;
1267 esac;
1268 }
1269 echo
1270
1271 cat <<\_ASBOX
1272 ## ----------------- ##
1273 ## Output variables. ##
1274 ## ----------------- ##
1275 _ASBOX
1276 echo
1277 for ac_var in $ac_subst_vars
1278 do
1279 eval ac_val=$`echo $ac_var`
1280 echo "$ac_var='"'"'$ac_val'"'"'"
1281 done | sort
1282 echo
1283
1284 if test -n "$ac_subst_files"; then
1285 cat <<\_ASBOX
1286 ## ------------- ##
1287 ## Output files. ##
1288 ## ------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_files
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297 fi
1298
1299 if test -s confdefs.h; then
1300 cat <<\_ASBOX
1301 ## ----------- ##
1302 ## confdefs.h. ##
1303 ## ----------- ##
1304 _ASBOX
1305 echo
1306 sed "/^$/d" confdefs.h | sort
1307 echo
1308 fi
1309 test "$ac_signal" != 0 &&
1310 echo "$as_me: caught signal $ac_signal"
1311 echo "$as_me: exit $exit_status"
1312 } >&5
1313 rm -f core *.core &&
1314 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315 exit $exit_status
1316 ' 0
1317 for ac_signal in 1 2 13 15; do
1318 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319 done
1320 ac_signal=0
1321
1322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1323 rm -rf conftest* confdefs.h
1324 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1325 echo >confdefs.h
1326
1327 # Predefined preprocessor variables.
1328
1329 cat >>confdefs.h <<_ACEOF
1330 #define PACKAGE_NAME "$PACKAGE_NAME"
1331 _ACEOF
1332
1333
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336 _ACEOF
1337
1338
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1341 _ACEOF
1342
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_STRING "$PACKAGE_STRING"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351 _ACEOF
1352
1353
1354 # Let the site file select an alternate cache file if it wants to.
1355 # Prefer explicitly selected file to automatically selected ones.
1356 if test -z "$CONFIG_SITE"; then
1357 if test "x$prefix" != xNONE; then
1358 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1359 else
1360 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1361 fi
1362 fi
1363 for ac_site_file in $CONFIG_SITE; do
1364 if test -r "$ac_site_file"; then
1365 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366 echo "$as_me: loading site script $ac_site_file" >&6;}
1367 sed 's/^/| /' "$ac_site_file" >&5
1368 . "$ac_site_file"
1369 fi
1370 done
1371
1372 if test -r "$cache_file"; then
1373 # Some versions of bash will fail to source /dev/null (special
1374 # files actually), so we avoid doing that.
1375 if test -f "$cache_file"; then
1376 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377 echo "$as_me: loading cache $cache_file" >&6;}
1378 case $cache_file in
1379 [\\/]* | ?:[\\/]* ) . $cache_file;;
1380 *) . ./$cache_file;;
1381 esac
1382 fi
1383 else
1384 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385 echo "$as_me: creating cache $cache_file" >&6;}
1386 >$cache_file
1387 fi
1388
1389 # Check that the precious variables saved in the cache have kept the same
1390 # value.
1391 ac_cache_corrupted=false
1392 for ac_var in `(set) 2>&1 |
1393 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395 eval ac_new_set=\$ac_env_${ac_var}_set
1396 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397 eval ac_new_val="\$ac_env_${ac_var}_value"
1398 case $ac_old_set,$ac_new_set in
1399 set,)
1400 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402 ac_cache_corrupted=: ;;
1403 ,set)
1404 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406 ac_cache_corrupted=: ;;
1407 ,);;
1408 *)
1409 if test "x$ac_old_val" != "x$ac_new_val"; then
1410 # differences in whitespace do not lead to failure.
1411 ac_old_val_w=`echo x $ac_old_val`
1412 ac_new_val_w=`echo x $ac_new_val`
1413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1414 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416 ac_cache_corrupted=:
1417 else
1418 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1419 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1420 eval $ac_var=\$ac_old_val
1421 fi
1422 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1423 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1424 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1425 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1426 fi;;
1427 esac
1428 # Pass precious variables to config.status.
1429 if test "$ac_new_set" = set; then
1430 case $ac_new_val in
1431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1432 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1433 *) ac_arg=$ac_var=$ac_new_val ;;
1434 esac
1435 case " $ac_configure_args " in
1436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1437 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1438 esac
1439 fi
1440 done
1441 if $ac_cache_corrupted; then
1442 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449 fi
1450
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502 done
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1507 fi
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1517
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 ac_cv_build_alias=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1534
1535 fi
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1538 build=$ac_cv_build
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542
1543
1544 case ${build_alias} in
1545 "") build_noncanonical=${build} ;;
1546 *) build_noncanonical=${build_alias} ;;
1547 esac
1548
1549 case ${host_alias} in
1550 "") host_noncanonical=${build_noncanonical} ;;
1551 *) host_noncanonical=${host_alias} ;;
1552 esac
1553
1554 case ${target_alias} in
1555 "") target_noncanonical=${host_noncanonical} ;;
1556 *) target_noncanonical=${target_alias} ;;
1557 esac
1558
1559
1560 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1561 # have matching libraries, they should use host libraries: Makefile.tpl
1562 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1563 # However, they still use the build modules, because the corresponding
1564 # host modules (e.g. bison) are only built for the host when bootstrap
1565 # finishes. So:
1566 # - build_subdir is where we find build modules, and never changes.
1567 # - build_libsubdir is where we find build libraries, and can be overridden.
1568
1569 # Prefix 'build-' so this never conflicts with target_subdir.
1570 build_subdir="build-${build_noncanonical}"
1571
1572 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1573 if test "${with_build_libsubdir+set}" = set; then
1574 withval="$with_build_libsubdir"
1575 build_libsubdir="$withval"
1576 else
1577 build_libsubdir="$build_subdir"
1578 fi;
1579 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1580 if ( test $srcdir = . && test -d gcc ) \
1581 || test -d $srcdir/../host-${host_noncanonical}; then
1582 host_subdir="host-${host_noncanonical}"
1583 else
1584 host_subdir=.
1585 fi
1586 # No prefix.
1587 target_subdir=${target_noncanonical}
1588
1589
1590 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1591 PACKAGE=libobjc
1592 # Version is pulled out to make it a bit easier to change using sed.
1593 VERSION=2:0:0
1594
1595
1596 # This works around the fact that libtool configuration may change LD
1597 # for this particular configuration, but some shells, instead of
1598 # keeping the changes in LD private, export them just because LD is
1599 # exported.
1600 ORIGINAL_LD_FOR_MULTILIBS=$LD
1601
1602 # -------
1603 # Options
1604 # -------
1605
1606 # We use these options to decide which functions to include.
1607
1608 # Check whether --with-target-subdir or --without-target-subdir was given.
1609 if test "${with_target_subdir+set}" = set; then
1610 withval="$with_target_subdir"
1611
1612 fi;
1613
1614 # Check whether --with-cross-host or --without-cross-host was given.
1615 if test "${with_cross_host+set}" = set; then
1616 withval="$with_cross_host"
1617
1618 fi;
1619
1620 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1621 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1622 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1623 if test "${enable_version_specific_runtime_libs+set}" = set; then
1624 enableval="$enable_version_specific_runtime_libs"
1625 case "$enableval" in
1626 yes) version_specific_libs=yes ;;
1627 no) version_specific_libs=no ;;
1628 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1629 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1630 { (exit 1); exit 1; }; };;
1631 esac
1632 else
1633 version_specific_libs=no
1634 fi;
1635 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1636 echo "${ECHO_T}$version_specific_libs" >&6
1637
1638 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1639 if test "${enable_objc_gc+set}" = set; then
1640 enableval="$enable_objc_gc"
1641 case $enable_objc_gc in
1642 no)
1643 OBJC_BOEHM_GC=''
1644 OBJC_BOEHM_GC_INCLUDES=''
1645 ;;
1646 *)
1647 OBJC_BOEHM_GC=libobjc_gc.la
1648 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1649 ;;
1650 esac
1651 else
1652 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1653 fi;
1654
1655
1656
1657 # -----------
1658 # Directories
1659 # -----------
1660
1661 # Find the rest of the source tree framework.
1662 # Default to --enable-multilib
1663 # Check whether --enable-multilib or --disable-multilib was given.
1664 if test "${enable_multilib+set}" = set; then
1665 enableval="$enable_multilib"
1666 case "$enableval" in
1667 yes) multilib=yes ;;
1668 no) multilib=no ;;
1669 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1670 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1671 { (exit 1); exit 1; }; } ;;
1672 esac
1673 else
1674 multilib=yes
1675 fi;
1676
1677 # We may get other options which we leave undocumented:
1678 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1679 # See config-ml.in if you want the gory details.
1680
1681 if test "$srcdir" = "."; then
1682 if test "$with_target_subdir" != "."; then
1683 multi_basedir="$srcdir/$with_multisrctop../.."
1684 else
1685 multi_basedir="$srcdir/$with_multisrctop.."
1686 fi
1687 else
1688 multi_basedir="$srcdir/.."
1689 fi
1690
1691
1692 # Even if the default multilib is not a cross compilation,
1693 # it may be that some of the other multilibs are.
1694 if test $cross_compiling = no && test $multilib = yes \
1695 && test "x${with_multisubdir}" != x ; then
1696 cross_compiling=maybe
1697 fi
1698
1699 ac_config_commands="$ac_config_commands default-1"
1700
1701
1702 echo "$as_me:$LINENO: checking host system type" >&5
1703 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1704 if test "${ac_cv_host+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 ac_cv_host_alias=$host_alias
1708 test -z "$ac_cv_host_alias" &&
1709 ac_cv_host_alias=$ac_cv_build_alias
1710 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1712 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1713 { (exit 1); exit 1; }; }
1714
1715 fi
1716 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1717 echo "${ECHO_T}$ac_cv_host" >&6
1718 host=$ac_cv_host
1719 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1722
1723
1724 echo "$as_me:$LINENO: checking target system type" >&5
1725 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1726 if test "${ac_cv_target+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 ac_cv_target_alias=$target_alias
1730 test "x$ac_cv_target_alias" = "x" &&
1731 ac_cv_target_alias=$ac_cv_host_alias
1732 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1733 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1734 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1735 { (exit 1); exit 1; }; }
1736
1737 fi
1738 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1739 echo "${ECHO_T}$ac_cv_target" >&6
1740 target=$ac_cv_target
1741 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744
1745
1746 # The aliases save the names the user supplied, while $host etc.
1747 # will get canonicalized.
1748 test -n "$target_alias" &&
1749 test "$program_prefix$program_suffix$program_transform_name" = \
1750 NONENONEs,x,x, &&
1751 program_prefix=${target_alias}-
1752
1753
1754
1755 # Export source directory.
1756 # These need to be absolute paths, yet at the same time need to
1757 # canonicalize only relative paths, because then amd will not unmount
1758 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1759 case $srcdir in
1760 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1761 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1762 esac
1763
1764
1765 # Calculate toolexeclibdir
1766 # Also toolexecdir, though it's only used in toolexeclibdir
1767 case ${version_specific_libs} in
1768 yes)
1769 # Need the gcc compiler version to know where to install libraries
1770 # and header files if --enable-version-specific-runtime-libs option
1771 # is selected.
1772 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1773 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1774 ;;
1775 no)
1776 if test -n "$with_cross_host" &&
1777 test x"$with_cross_host" != x"no"; then
1778 # Install a library built with a cross compiler in tooldir, not libdir.
1779 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1780 toolexeclibdir='$(toolexecdir)/lib'
1781 else
1782 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1783 toolexeclibdir='$(libdir)'
1784 fi
1785 multi_os_directory=`$CC -print-multi-os-directory`
1786 case $multi_os_directory in
1787 .) ;; # Avoid trailing /.
1788 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1789 esac
1790 ;;
1791 esac
1792
1793
1794
1795 # Figure out if we want to name the include directory and the
1796 # library name changes differently.
1797 includedirname=include
1798 libsuffix=
1799 case "${host}" in
1800 *-darwin*)
1801 # Darwin is the only target so far that needs a different include directory.
1802 includedirname=include-gnu-runtime
1803 libsuffix=-gnu
1804 ;;
1805 esac
1806
1807
1808
1809 ac_config_headers="$ac_config_headers config.h"
1810
1811
1812 # --------
1813 # Programs
1814 # --------
1815
1816
1817
1818 # We must force CC to /not/ be a precious variable; otherwise
1819 # the wrong, non-multilib-adjusted value will be used in multilibs.
1820 # As a side effect, we have to subst CFLAGS ourselves.
1821
1822
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1849 fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 CC=$ac_cv_prog_CC
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1859 else
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864 fi
1865 if test -z "$ac_cv_prog_CC"; then
1866 ac_ct_CC=$CC
1867 # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="gcc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888 done
1889 done
1890
1891 fi
1892 fi
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902 CC=$ac_ct_CC
1903 else
1904 CC="$ac_cv_prog_CC"
1905 fi
1906
1907 if test -z "$CC"; then
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1910 set dummy ${ac_tool_prefix}cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_CC="${ac_tool_prefix}cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1929 fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 CC=$ac_cv_prog_CC
1936 if test -n "$CC"; then
1937 echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1939 else
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944 fi
1945 if test -z "$ac_cv_prog_CC"; then
1946 ac_ct_CC=$CC
1947 # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 if test -n "$ac_ct_CC"; then
1955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1959 do
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_ac_ct_CC="cc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 break 2
1967 fi
1968 done
1969 done
1970
1971 fi
1972 fi
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6
1977 else
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1980 fi
1981
1982 CC=$ac_ct_CC
1983 else
1984 CC="$ac_cv_prog_CC"
1985 fi
1986
1987 fi
1988 if test -z "$CC"; then
1989 # Extract the first word of "cc", so it can be a program name with args.
1990 set dummy cc; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 ac_prog_rejected=no
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008 ac_prog_rejected=yes
2009 continue
2010 fi
2011 ac_cv_prog_CC="cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015 done
2016 done
2017
2018 if test $ac_prog_rejected = yes; then
2019 # We found a bogon in the path, so make sure we never use it.
2020 set dummy $ac_cv_prog_CC
2021 shift
2022 if test $# != 0; then
2023 # We chose a different compiler from the bogus one.
2024 # However, it has the same basename, so the bogon will be chosen
2025 # first if we set CC to just the basename; use the full file name.
2026 shift
2027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2028 fi
2029 fi
2030 fi
2031 fi
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041 fi
2042 if test -z "$CC"; then
2043 if test -n "$ac_tool_prefix"; then
2044 for ac_prog in cl
2045 do
2046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2066 fi
2067 done
2068 done
2069
2070 fi
2071 fi
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2076 else
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2079 fi
2080
2081 test -n "$CC" && break
2082 done
2083 fi
2084 if test -z "$CC"; then
2085 ac_ct_CC=$CC
2086 for ac_prog in cl
2087 do
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089 set dummy $ac_prog; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC="$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
2108 fi
2109 done
2110 done
2111
2112 fi
2113 fi
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2118 else
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2121 fi
2122
2123 test -n "$ac_ct_CC" && break
2124 done
2125
2126 CC=$ac_ct_CC
2127 fi
2128
2129 fi
2130
2131
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }; }
2139
2140 # Provide some information about the compiler.
2141 echo "$as_me:$LINENO:" \
2142 "checking for C compiler version" >&5
2143 ac_compiler=`set X $ac_compile; echo $2`
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2145 (eval $ac_compiler --version </dev/null >&5) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2150 (eval $ac_compiler -v </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2155 (eval $ac_compiler -V </dev/null >&5) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2166
2167 int
2168 main ()
2169 {
2170
2171 ;
2172 return 0;
2173 }
2174 _ACEOF
2175 # FIXME: Cleanup?
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177 (eval $ac_link) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 gcc_no_link=no
2182 else
2183 gcc_no_link=yes
2184 fi
2185
2186 if test x$gcc_no_link = xyes; then
2187 # Setting cross_compile will disable run tests; it will
2188 # also disable AC_CHECK_FILE but that's generally
2189 # correct if we can't link.
2190 cross_compiling=yes
2191 EXEEXT=
2192 else
2193 cat >conftest.$ac_ext <<_ACEOF
2194 /* confdefs.h. */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2199
2200 int
2201 main ()
2202 {
2203
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 ac_clean_files_save=$ac_clean_files
2209 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2210 # Try to create an executable without -o first, disregard a.out.
2211 # It will help us diagnose broken compilers, and finding out an intuition
2212 # of exeext.
2213 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2214 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2215 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2217 (eval $ac_link_default) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # Find the output, starting from the most likely. This scheme is
2222 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2223 # resort.
2224
2225 # Be careful to initialize this variable, since it used to be cached.
2226 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2227 ac_cv_exeext=
2228 # b.out is created by i960 compilers.
2229 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2230 do
2231 test -f "$ac_file" || continue
2232 case $ac_file in
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2234 ;;
2235 conftest.$ac_ext )
2236 # This is the source file.
2237 ;;
2238 [ab].out )
2239 # We found the default executable, but exeext='' is most
2240 # certainly right.
2241 break;;
2242 *.* )
2243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244 # FIXME: I believe we export ac_cv_exeext for Libtool,
2245 # but it would be cool to find out if it's true. Does anybody
2246 # maintain Libtool? --akim.
2247 export ac_cv_exeext
2248 break;;
2249 * )
2250 break;;
2251 esac
2252 done
2253 else
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2258 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: C compiler cannot create executables
2262 See \`config.log' for more details." >&2;}
2263 { (exit 77); exit 77; }; }; }
2264 fi
2265
2266 ac_exeext=$ac_cv_exeext
2267 echo "$as_me:$LINENO: result: $ac_file" >&5
2268 echo "${ECHO_T}$ac_file" >&6
2269
2270 # Check the compiler produces executables we can run. If not, either
2271 # the compiler is broken, or we cross compile.
2272 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2273 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2274 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2275 # If not cross compiling, check that we can run a simple program.
2276 if test "$cross_compiling" != yes; then
2277 if { ac_try='./$ac_file'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 cross_compiling=no
2284 else
2285 if test "$cross_compiling" = maybe; then
2286 cross_compiling=yes
2287 else
2288 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2291 If you meant to cross compile, use \`--host'.
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot run C compiled programs.
2294 If you meant to cross compile, use \`--host'.
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }; }
2297 fi
2298 fi
2299 fi
2300 echo "$as_me:$LINENO: result: yes" >&5
2301 echo "${ECHO_T}yes" >&6
2302
2303 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2304 ac_clean_files=$ac_clean_files_save
2305 # Check the compiler produces executables we can run. If not, either
2306 # the compiler is broken, or we cross compile.
2307 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2308 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2309 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2310 echo "${ECHO_T}$cross_compiling" >&6
2311
2312 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2313 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2315 (eval $ac_link) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2321 # work properly (i.e., refer to `conftest.exe'), while it won't with
2322 # `rm'.
2323 for ac_file in conftest.exe conftest conftest.*; do
2324 test -f "$ac_file" || continue
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 export ac_cv_exeext
2329 break;;
2330 * ) break;;
2331 esac
2332 done
2333 else
2334 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2335 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }; }
2341 fi
2342
2343 rm -f conftest$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345 echo "${ECHO_T}$ac_cv_exeext" >&6
2346
2347 rm -f conftest.$ac_ext
2348 EXEEXT=$ac_cv_exeext
2349 ac_exeext=$EXEEXT
2350 fi
2351 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2353 if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h. */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2362
2363 int
2364 main ()
2365 {
2366
2367 ;
2368 return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.o conftest.obj
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; then
2377 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2378 case $ac_file in
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2381 break;;
2382 esac
2383 done
2384 else
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2389 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }; }
2395 fi
2396
2397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398 fi
2399 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400 echo "${ECHO_T}$ac_cv_objext" >&6
2401 OBJEXT=$ac_cv_objext
2402 ac_objext=$OBJEXT
2403 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2414
2415 int
2416 main ()
2417 {
2418 #ifndef __GNUC__
2419 choke me
2420 #endif
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -z "$ac_c_werror_flag"
2436 || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 ac_compiler_gnu=yes
2449 else
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_compiler_gnu=no
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458 fi
2459 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461 GCC=`test $ac_compiler_gnu = yes && echo yes`
2462 ac_test_CFLAGS=${CFLAGS+set}
2463 ac_save_CFLAGS=$CFLAGS
2464 CFLAGS="-g"
2465 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467 if test "${ac_cv_prog_cc_g+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2476
2477 int
2478 main ()
2479 {
2480
2481 ;
2482 return 0;
2483 }
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag"
2495 || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_cv_prog_cc_g=yes
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 ac_cv_prog_cc_g=no
2513 fi
2514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515 fi
2516 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518 if test "$ac_test_CFLAGS" = set; then
2519 CFLAGS=$ac_save_CFLAGS
2520 elif test $ac_cv_prog_cc_g = yes; then
2521 if test "$GCC" = yes; then
2522 CFLAGS="-g -O2"
2523 else
2524 CFLAGS="-g"
2525 fi
2526 else
2527 if test "$GCC" = yes; then
2528 CFLAGS="-O2"
2529 else
2530 CFLAGS=
2531 fi
2532 fi
2533 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 ac_cv_prog_cc_stdc=no
2539 ac_save_CC=$CC
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2546 #include <stdarg.h>
2547 #include <stdio.h>
2548 #include <sys/types.h>
2549 #include <sys/stat.h>
2550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2551 struct buf { int x; };
2552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553 static char *e (p, i)
2554 char **p;
2555 int i;
2556 {
2557 return p[i];
2558 }
2559 static char *f (char * (*g) (char **, int), char **p, ...)
2560 {
2561 char *s;
2562 va_list v;
2563 va_start (v,p);
2564 s = g (p, va_arg (v,int));
2565 va_end (v);
2566 return s;
2567 }
2568
2569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2570 function prototypes and stuff, but not '\xHH' hex character constants.
2571 These don't provoke an error unfortunately, instead are silently treated
2572 as 'x'. The following induces an error, until -std1 is added to get
2573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2574 array size at least. It's necessary to write '\x00'==0 to get something
2575 that's true only with -std1. */
2576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577
2578 int test (int i, double x);
2579 struct s1 {int (*f) (int a);};
2580 struct s2 {int (*f) (double a);};
2581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582 int argc;
2583 char **argv;
2584 int
2585 main ()
2586 {
2587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2588 ;
2589 return 0;
2590 }
2591 _ACEOF
2592 # Don't try gcc -ansi; that turns off useful extensions and
2593 # breaks some systems' header files.
2594 # AIX -qlanglvl=ansi
2595 # Ultrix and OSF/1 -std1
2596 # HP-UX 10.20 and later -Ae
2597 # HP-UX older versions -Aa -D_HPUX_SOURCE
2598 # SVR4 -Xc -D__EXTENSIONS__
2599 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600 do
2601 CC="$ac_save_CC $ac_arg"
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 ac_cv_prog_cc_stdc=$ac_arg
2625 break
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630 fi
2631 rm -f conftest.err conftest.$ac_objext
2632 done
2633 rm -f conftest.$ac_ext conftest.$ac_objext
2634 CC=$ac_save_CC
2635
2636 fi
2637
2638 case "x$ac_cv_prog_cc_stdc" in
2639 x|xno)
2640 echo "$as_me:$LINENO: result: none needed" >&5
2641 echo "${ECHO_T}none needed" >&6 ;;
2642 *)
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645 CC="$CC $ac_cv_prog_cc_stdc" ;;
2646 esac
2647
2648 # Some people use a C++ compiler to compile C. Since we use `exit',
2649 # in C++ we need to declare it. In case someone uses the same compiler
2650 # for both compiling C and C++ we need to have the C++ compiler decide
2651 # the declaration of exit, since it's the most demanding environment.
2652 cat >conftest.$ac_ext <<_ACEOF
2653 #ifndef __cplusplus
2654 choke me
2655 #endif
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 for ac_declaration in \
2680 '' \
2681 'extern "C" void std::exit (int) throw (); using std::exit;' \
2682 'extern "C" void std::exit (int); using std::exit;' \
2683 'extern "C" void exit (int) throw ();' \
2684 'extern "C" void exit (int);' \
2685 'void exit (int);'
2686 do
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2693 $ac_declaration
2694 #include <stdlib.h>
2695 int
2696 main ()
2697 {
2698 exit (42);
2699 ;
2700 return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 :
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 continue
2731 fi
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2739 $ac_declaration
2740 int
2741 main ()
2742 {
2743 exit (42);
2744 ;
2745 return 0;
2746 }
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -z "$ac_c_werror_flag"
2758 || test ! -s conftest.err'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 break
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 fi
2776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777 done
2778 rm -f conftest*
2779 if test -n "$ac_declaration"; then
2780 echo '#ifdef __cplusplus' >>confdefs.h
2781 echo $ac_declaration >>confdefs.h
2782 echo '#endif' >>confdefs.h
2783 fi
2784
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 fi
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797
2798
2799 # extra LD Flags which are required for targets
2800 case "${host}" in
2801 *-darwin*)
2802 # Darwin needs -single_module when linking libobjc
2803 extra_ldflags_libobjc=-Wl,-single_module
2804 ;;
2805 esac
2806
2807
2808
2809
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}as; ac_word=$2
2813 echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_prog_AS+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 if test -n "$AS"; then
2819 ac_cv_prog_AS="$AS" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_AS="${ac_tool_prefix}as"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834
2835 fi
2836 fi
2837 AS=$ac_cv_prog_AS
2838 if test -n "$AS"; then
2839 echo "$as_me:$LINENO: result: $AS" >&5
2840 echo "${ECHO_T}$AS" >&6
2841 else
2842 echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2844 fi
2845
2846 fi
2847 if test -z "$ac_cv_prog_AS"; then
2848 ac_ct_AS=$AS
2849 # Extract the first word of "as", so it can be a program name with args.
2850 set dummy as; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 if test -n "$ac_ct_AS"; then
2857 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_AS="as"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872
2873 fi
2874 fi
2875 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2876 if test -n "$ac_ct_AS"; then
2877 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2878 echo "${ECHO_T}$ac_ct_AS" >&6
2879 else
2880 echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2882 fi
2883
2884 AS=$ac_ct_AS
2885 else
2886 AS="$ac_cv_prog_AS"
2887 fi
2888
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}ar; ac_word=$2
2892 echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2894 if test "${ac_cv_prog_AR+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897 if test -n "$AR"; then
2898 ac_cv_prog_AR="$AR" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_AR="${ac_tool_prefix}ar"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911 done
2912 done
2913
2914 fi
2915 fi
2916 AR=$ac_cv_prog_AR
2917 if test -n "$AR"; then
2918 echo "$as_me:$LINENO: result: $AR" >&5
2919 echo "${ECHO_T}$AR" >&6
2920 else
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2923 fi
2924
2925 fi
2926 if test -z "$ac_cv_prog_AR"; then
2927 ac_ct_AR=$AR
2928 # Extract the first word of "ar", so it can be a program name with args.
2929 set dummy ar; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 if test -n "$ac_ct_AR"; then
2936 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_AR="ar"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951
2952 fi
2953 fi
2954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2955 if test -n "$ac_ct_AR"; then
2956 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2957 echo "${ECHO_T}$ac_ct_AR" >&6
2958 else
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2961 fi
2962
2963 AR=$ac_ct_AR
2964 else
2965 AR="$ac_cv_prog_AR"
2966 fi
2967
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2971 echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973 if test "${ac_cv_prog_RANLIB+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 if test -n "$RANLIB"; then
2977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990 done
2991 done
2992
2993 fi
2994 fi
2995 RANLIB=$ac_cv_prog_RANLIB
2996 if test -n "$RANLIB"; then
2997 echo "$as_me:$LINENO: result: $RANLIB" >&5
2998 echo "${ECHO_T}$RANLIB" >&6
2999 else
3000 echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6
3002 fi
3003
3004 fi
3005 if test -z "$ac_cv_prog_RANLIB"; then
3006 ac_ct_RANLIB=$RANLIB
3007 # Extract the first word of "ranlib", so it can be a program name with args.
3008 set dummy ranlib; ac_word=$2
3009 echo "$as_me:$LINENO: checking for $ac_word" >&5
3010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 if test -n "$ac_ct_RANLIB"; then
3015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_RANLIB="ranlib"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030
3031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3032 fi
3033 fi
3034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3035 if test -n "$ac_ct_RANLIB"; then
3036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3038 else
3039 echo "$as_me:$LINENO: result: no" >&5
3040 echo "${ECHO_T}no" >&6
3041 fi
3042
3043 RANLIB=$ac_ct_RANLIB
3044 else
3045 RANLIB="$ac_cv_prog_RANLIB"
3046 fi
3047
3048 # Find a good install program. We prefer a C program (faster),
3049 # so one script is as good as another. But avoid the broken or
3050 # incompatible versions:
3051 # SysV /etc/install, /usr/sbin/install
3052 # SunOS /usr/etc/install
3053 # IRIX /sbin/install
3054 # AIX /bin/install
3055 # AmigaOS /C/install, which installs bootblocks on floppy discs
3056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3059 # OS/2's system install, which has a completely different semantic
3060 # ./install, which can be erroneously created by make from ./install.sh.
3061 # Reject install programs that cannot install multiple files.
3062 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3063 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3064 if test -z "$INSTALL"; then
3065 if test "${ac_cv_path_install+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 # Account for people who put trailing slashes in PATH elements.
3074 case $as_dir/ in
3075 ./ | .// | /cC/* | \
3076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3078 /usr/ucb/* ) ;;
3079 *)
3080 # OSF1 and SCO ODT 3.0 have their own names for install.
3081 # Don't use installbsd from OSF since it installs stuff as root
3082 # by default.
3083 for ac_prog in ginstall scoinst install; do
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3086 if test $ac_prog = install &&
3087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # AIX install. It has an incompatible calling convention.
3089 :
3090 elif test $ac_prog = install &&
3091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3092 # program-specific install script used by HP pwplus--don't use.
3093 :
3094 else
3095 rm -rf conftest.one conftest.two conftest.dir
3096 echo one > conftest.one
3097 echo two > conftest.two
3098 mkdir conftest.dir
3099 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3100 test -s conftest.one && test -s conftest.two &&
3101 test -s conftest.dir/conftest.one &&
3102 test -s conftest.dir/conftest.two
3103 then
3104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3105 break 3
3106 fi
3107 fi
3108 fi
3109 done
3110 done
3111 ;;
3112 esac
3113 done
3114
3115 rm -rf conftest.one conftest.two conftest.dir
3116
3117 fi
3118 if test "${ac_cv_path_install+set}" = set; then
3119 INSTALL=$ac_cv_path_install
3120 else
3121 # As a last resort, use the slow shell script. Don't cache a
3122 # value for INSTALL within a source directory, because that will
3123 # break other packages using the cache if that directory is
3124 # removed, or if the value is a relative name.
3125 INSTALL=$ac_install_sh
3126 fi
3127 fi
3128 echo "$as_me:$LINENO: result: $INSTALL" >&5
3129 echo "${ECHO_T}$INSTALL" >&6
3130
3131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3132 # It thinks the first close brace ends the variable substitution.
3133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3134
3135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3136
3137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3138
3139
3140 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3141 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3142 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3143 if test "${enable_maintainer_mode+set}" = set; then
3144 enableval="$enable_maintainer_mode"
3145 USE_MAINTAINER_MODE=$enableval
3146 else
3147 USE_MAINTAINER_MODE=no
3148 fi;
3149 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3150 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3151
3152
3153 if test $USE_MAINTAINER_MODE = yes; then
3154 MAINTAINER_MODE_TRUE=
3155 MAINTAINER_MODE_FALSE='#'
3156 else
3157 MAINTAINER_MODE_TRUE='#'
3158 MAINTAINER_MODE_FALSE=
3159 fi
3160
3161 MAINT=$MAINTAINER_MODE_TRUE
3162
3163
3164
3165 # Enable Win32 DLL on MS Windows - FIXME
3166 enable_win32_dll=yes
3167
3168 case $host in
3169 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}as; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_AS+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 if test -n "$AS"; then
3179 ac_cv_prog_AS="$AS" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_AS="${ac_tool_prefix}as"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194
3195 fi
3196 fi
3197 AS=$ac_cv_prog_AS
3198 if test -n "$AS"; then
3199 echo "$as_me:$LINENO: result: $AS" >&5
3200 echo "${ECHO_T}$AS" >&6
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 fi
3205
3206 fi
3207 if test -z "$ac_cv_prog_AS"; then
3208 ac_ct_AS=$AS
3209 # Extract the first word of "as", so it can be a program name with args.
3210 set dummy as; ac_word=$2
3211 echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 if test -n "$ac_ct_AS"; then
3217 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_AS="as"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232
3233 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3234 fi
3235 fi
3236 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3237 if test -n "$ac_ct_AS"; then
3238 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3239 echo "${ECHO_T}$ac_ct_AS" >&6
3240 else
3241 echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3243 fi
3244
3245 AS=$ac_ct_AS
3246 else
3247 AS="$ac_cv_prog_AS"
3248 fi
3249
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$DLLTOOL"; then
3259 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274
3275 fi
3276 fi
3277 DLLTOOL=$ac_cv_prog_DLLTOOL
3278 if test -n "$DLLTOOL"; then
3279 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3280 echo "${ECHO_T}$DLLTOOL" >&6
3281 else
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3284 fi
3285
3286 fi
3287 if test -z "$ac_cv_prog_DLLTOOL"; then
3288 ac_ct_DLLTOOL=$DLLTOOL
3289 # Extract the first word of "dlltool", so it can be a program name with args.
3290 set dummy dlltool; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 if test -n "$ac_ct_DLLTOOL"; then
3297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310 done
3311 done
3312
3313 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3314 fi
3315 fi
3316 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3317 if test -n "$ac_ct_DLLTOOL"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3319 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3320 else
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 fi
3324
3325 DLLTOOL=$ac_ct_DLLTOOL
3326 else
3327 DLLTOOL="$ac_cv_prog_DLLTOOL"
3328 fi
3329
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 if test -n "$OBJDUMP"; then
3339 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354
3355 fi
3356 fi
3357 OBJDUMP=$ac_cv_prog_OBJDUMP
3358 if test -n "$OBJDUMP"; then
3359 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3360 echo "${ECHO_T}$OBJDUMP" >&6
3361 else
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 fi
3365
3366 fi
3367 if test -z "$ac_cv_prog_OBJDUMP"; then
3368 ac_ct_OBJDUMP=$OBJDUMP
3369 # Extract the first word of "objdump", so it can be a program name with args.
3370 set dummy objdump; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 if test -n "$ac_ct_OBJDUMP"; then
3377 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3389 fi
3390 done
3391 done
3392
3393 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3394 fi
3395 fi
3396 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3397 if test -n "$ac_ct_OBJDUMP"; then
3398 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3399 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3400 else
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3403 fi
3404
3405 OBJDUMP=$ac_ct_OBJDUMP
3406 else
3407 OBJDUMP="$ac_cv_prog_OBJDUMP"
3408 fi
3409
3410 ;;
3411 esac
3412
3413 test -z "$AS" && AS=as
3414
3415
3416
3417
3418
3419 test -z "$DLLTOOL" && DLLTOOL=dlltool
3420
3421
3422
3423
3424
3425 test -z "$OBJDUMP" && OBJDUMP=objdump
3426
3427
3428
3429
3430
3431
3432
3433
3434 case `pwd` in
3435 *\ * | *\ *)
3436 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3437 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3438 esac
3439
3440
3441
3442 macro_version='2.2.6'
3443 macro_revision='1.3012'
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457 ltmain="$ac_aux_dir/ltmain.sh"
3458
3459 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3460 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3461 if test "${lt_cv_path_SED+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 # Loop through the user's path and test for sed and gsed.
3465 # Then use that list of sed's as ones to test for truncation.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for lt_ac_prog in sed gsed; do
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3474 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3475 fi
3476 done
3477 done
3478 done
3479 IFS=$as_save_IFS
3480 lt_ac_max=0
3481 lt_ac_count=0
3482 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3483 # along with /bin/sed that truncates output.
3484 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3485 test ! -f $lt_ac_sed && continue
3486 cat /dev/null > conftest.in
3487 lt_ac_count=0
3488 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3489 # Check for GNU sed and select it if it is found.
3490 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3491 lt_cv_path_SED=$lt_ac_sed
3492 break
3493 fi
3494 while true; do
3495 cat conftest.in conftest.in >conftest.tmp
3496 mv conftest.tmp conftest.in
3497 cp conftest.in conftest.nl
3498 echo >>conftest.nl
3499 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3500 cmp -s conftest.out conftest.nl || break
3501 # 10000 chars as input seems more than enough
3502 test $lt_ac_count -gt 10 && break
3503 lt_ac_count=`expr $lt_ac_count + 1`
3504 if test $lt_ac_count -gt $lt_ac_max; then
3505 lt_ac_max=$lt_ac_count
3506 lt_cv_path_SED=$lt_ac_sed
3507 fi
3508 done
3509 done
3510
3511 fi
3512
3513 SED=$lt_cv_path_SED
3514
3515 echo "$as_me:$LINENO: result: $SED" >&5
3516 echo "${ECHO_T}$SED" >&6
3517
3518 test -z "$SED" && SED=sed
3519 Xsed="$SED -e 1s/^X//"
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531 echo "$as_me:$LINENO: checking for egrep" >&5
3532 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3533 if test "${ac_cv_prog_egrep+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3537 then ac_cv_prog_egrep='grep -E'
3538 else ac_cv_prog_egrep='egrep'
3539 fi
3540 fi
3541 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3542 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3543 EGREP=$ac_cv_prog_egrep
3544
3545
3546 echo "$as_me:$LINENO: checking for fgrep" >&5
3547 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3548 if test "${ac_cv_prog_fgrep+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3552 then ac_cv_prog_fgrep='grep -F'
3553 else ac_cv_prog_fgrep='fgrep'
3554 fi
3555 fi
3556 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3557 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3558 FGREP=$ac_cv_prog_fgrep
3559
3560
3561 test -z "$GREP" && GREP=grep
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3582 if test "${with_gnu_ld+set}" = set; then
3583 withval="$with_gnu_ld"
3584 test "$withval" = no || with_gnu_ld=yes
3585 else
3586 with_gnu_ld=no
3587 fi;
3588 ac_prog=ld
3589 if test "$GCC" = yes; then
3590 # Check if gcc -print-prog-name=ld gives a path.
3591 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3592 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3593 case $host in
3594 *-*-mingw*)
3595 # gcc leaves a trailing carriage return which upsets mingw
3596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3597 *)
3598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3599 esac
3600 case $ac_prog in
3601 # Accept absolute paths.
3602 [\\/]* | ?:[\\/]*)
3603 re_direlt='/[^/][^/]*/\.\./'
3604 # Canonicalize the pathname of ld
3605 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3606 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3607 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3608 done
3609 test -z "$LD" && LD="$ac_prog"
3610 ;;
3611 "")
3612 # If it fails, then pretend we aren't using GCC.
3613 ac_prog=ld
3614 ;;
3615 *)
3616 # If it is relative, then search for the first ld in PATH.
3617 with_gnu_ld=unknown
3618 ;;
3619 esac
3620 elif test "$with_gnu_ld" = yes; then
3621 echo "$as_me:$LINENO: checking for GNU ld" >&5
3622 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3623 else
3624 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3625 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3626 fi
3627 if test "${lt_cv_path_LD+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 if test -z "$LD"; then
3631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3632 for ac_dir in $PATH; do
3633 IFS="$lt_save_ifs"
3634 test -z "$ac_dir" && ac_dir=.
3635 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3636 lt_cv_path_LD="$ac_dir/$ac_prog"
3637 # Check to see if the program is GNU ld. I'd rather use --version,
3638 # but apparently some variants of GNU ld only accept -v.
3639 # Break only if it was the GNU/non-GNU ld that we prefer.
3640 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3641 *GNU* | *'with BFD'*)
3642 test "$with_gnu_ld" != no && break
3643 ;;
3644 *)
3645 test "$with_gnu_ld" != yes && break
3646 ;;
3647 esac
3648 fi
3649 done
3650 IFS="$lt_save_ifs"
3651 else
3652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3653 fi
3654 fi
3655
3656 LD="$lt_cv_path_LD"
3657 if test -n "$LD"; then
3658 echo "$as_me:$LINENO: result: $LD" >&5
3659 echo "${ECHO_T}$LD" >&6
3660 else
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3663 fi
3664 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3665 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3666 { (exit 1); exit 1; }; }
3667 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3668 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3669 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3673 case `$LD -v 2>&1 </dev/null` in
3674 *GNU* | *'with BFD'*)
3675 lt_cv_prog_gnu_ld=yes
3676 ;;
3677 *)
3678 lt_cv_prog_gnu_ld=no
3679 ;;
3680 esac
3681 fi
3682 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3683 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3684 with_gnu_ld=$lt_cv_prog_gnu_ld
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3695 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3696 if test "${lt_cv_path_NM+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 if test -n "$NM"; then
3700 # Let the user override the test.
3701 lt_cv_path_NM="$NM"
3702 else
3703 lt_nm_to_check="${ac_tool_prefix}nm"
3704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3705 lt_nm_to_check="$lt_nm_to_check nm"
3706 fi
3707 for lt_tmp_nm in $lt_nm_to_check; do
3708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3709 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3710 IFS="$lt_save_ifs"
3711 test -z "$ac_dir" && ac_dir=.
3712 tmp_nm="$ac_dir/$lt_tmp_nm"
3713 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3714 # Check to see if the nm accepts a BSD-compat flag.
3715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3716 # nm: unknown option "B" ignored
3717 # Tru64's nm complains that /dev/null is an invalid object file
3718 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3719 */dev/null* | *'Invalid file or object type'*)
3720 lt_cv_path_NM="$tmp_nm -B"
3721 break
3722 ;;
3723 *)
3724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3725 */dev/null*)
3726 lt_cv_path_NM="$tmp_nm -p"
3727 break
3728 ;;
3729 *)
3730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3731 continue # so that we can try to find one that supports BSD flags
3732 ;;
3733 esac
3734 ;;
3735 esac
3736 fi
3737 done
3738 IFS="$lt_save_ifs"
3739 done
3740 : ${lt_cv_path_NM=no}
3741 fi
3742 fi
3743 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3744 echo "${ECHO_T}$lt_cv_path_NM" >&6
3745 if test "$lt_cv_path_NM" != "no"; then
3746 NM="$lt_cv_path_NM"
3747 else
3748 # Didn't find any BSD compatible name lister, look for dumpbin.
3749 if test -n "$ac_tool_prefix"; then
3750 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3751 do
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 if test -n "$DUMPBIN"; then
3760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773 done
3774 done
3775
3776 fi
3777 fi
3778 DUMPBIN=$ac_cv_prog_DUMPBIN
3779 if test -n "$DUMPBIN"; then
3780 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3781 echo "${ECHO_T}$DUMPBIN" >&6
3782 else
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3785 fi
3786
3787 test -n "$DUMPBIN" && break
3788 done
3789 fi
3790 if test -z "$DUMPBIN"; then
3791 ac_ct_DUMPBIN=$DUMPBIN
3792 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3793 do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 if test -n "$ac_ct_DUMPBIN"; then
3802 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817
3818 fi
3819 fi
3820 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3821 if test -n "$ac_ct_DUMPBIN"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3823 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829 test -n "$ac_ct_DUMPBIN" && break
3830 done
3831 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3832
3833 DUMPBIN=$ac_ct_DUMPBIN
3834 fi
3835
3836
3837 if test "$DUMPBIN" != ":"; then
3838 NM="$DUMPBIN"
3839 fi
3840 fi
3841 test -z "$NM" && NM=nm
3842
3843
3844
3845
3846
3847
3848 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3849 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3850 if test "${lt_cv_nm_interface+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 lt_cv_nm_interface="BSD nm"
3854 echo "int some_variable = 0;" > conftest.$ac_ext
3855 (eval echo "\"\$as_me:3855: $ac_compile\"" >&5)
3856 (eval "$ac_compile" 2>conftest.err)
3857 cat conftest.err >&5
3858 (eval echo "\"\$as_me:3858: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3859 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3860 cat conftest.err >&5
3861 (eval echo "\"\$as_me:3861: output\"" >&5)
3862 cat conftest.out >&5
3863 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3864 lt_cv_nm_interface="MS dumpbin"
3865 fi
3866 rm -f conftest*
3867 fi
3868 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3869 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3870
3871 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3872 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3873 LN_S=$as_ln_s
3874 if test "$LN_S" = "ln -s"; then
3875 echo "$as_me:$LINENO: result: yes" >&5
3876 echo "${ECHO_T}yes" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3879 echo "${ECHO_T}no, using $LN_S" >&6
3880 fi
3881
3882 # find the maximum length of command line arguments
3883 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3884 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3885 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 i=0
3889 teststring="ABCD"
3890
3891 case $build_os in
3892 msdosdjgpp*)
3893 # On DJGPP, this test can blow up pretty badly due to problems in libc
3894 # (any single argument exceeding 2000 bytes causes a buffer overrun
3895 # during glob expansion). Even if it were fixed, the result of this
3896 # check would be larger than it should be.
3897 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3898 ;;
3899
3900 gnu*)
3901 # Under GNU Hurd, this test is not required because there is
3902 # no limit to the length of command line arguments.
3903 # Libtool will interpret -1 as no limit whatsoever
3904 lt_cv_sys_max_cmd_len=-1;
3905 ;;
3906
3907 cygwin* | mingw* | cegcc*)
3908 # On Win9x/ME, this test blows up -- it succeeds, but takes
3909 # about 5 minutes as the teststring grows exponentially.
3910 # Worse, since 9x/ME are not pre-emptively multitasking,
3911 # you end up with a "frozen" computer, even though with patience
3912 # the test eventually succeeds (with a max line length of 256k).
3913 # Instead, let's just punt: use the minimum linelength reported by
3914 # all of the supported platforms: 8192 (on NT/2K/XP).
3915 lt_cv_sys_max_cmd_len=8192;
3916 ;;
3917
3918 amigaos*)
3919 # On AmigaOS with pdksh, this test takes hours, literally.
3920 # So we just punt and use a minimum line length of 8192.
3921 lt_cv_sys_max_cmd_len=8192;
3922 ;;
3923
3924 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3925 # This has been around since 386BSD, at least. Likely further.
3926 if test -x /sbin/sysctl; then
3927 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3928 elif test -x /usr/sbin/sysctl; then
3929 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3930 else
3931 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3932 fi
3933 # And add a safety zone
3934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3936 ;;
3937
3938 interix*)
3939 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3940 lt_cv_sys_max_cmd_len=196608
3941 ;;
3942
3943 osf*)
3944 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3945 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3946 # nice to cause kernel panics so lets avoid the loop below.
3947 # First set a reasonable default.
3948 lt_cv_sys_max_cmd_len=16384
3949 #
3950 if test -x /sbin/sysconfig; then
3951 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3952 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3953 esac
3954 fi
3955 ;;
3956 sco3.2v5*)
3957 lt_cv_sys_max_cmd_len=102400
3958 ;;
3959 sysv5* | sco5v6* | sysv4.2uw2*)
3960 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3961 if test -n "$kargmax"; then
3962 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3963 else
3964 lt_cv_sys_max_cmd_len=32768
3965 fi
3966 ;;
3967 *)
3968 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3969 if test -n "$lt_cv_sys_max_cmd_len"; then
3970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3972 else
3973 # Make teststring a little bigger before we do anything with it.
3974 # a 1K string should be a reasonable start.
3975 for i in 1 2 3 4 5 6 7 8 ; do
3976 teststring=$teststring$teststring
3977 done
3978 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3979 # If test is not a shell built-in, we'll probably end up computing a
3980 # maximum length that is only half of the actual maximum length, but
3981 # we can't tell.
3982 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3983 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3984 test $i != 17 # 1/2 MB should be enough
3985 do
3986 i=`expr $i + 1`
3987 teststring=$teststring$teststring
3988 done
3989 # Only check the string length outside the loop.
3990 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3991 teststring=
3992 # Add a significant safety factor because C++ compilers can tack on
3993 # massive amounts of additional arguments before passing them to the
3994 # linker. It appears as though 1/2 is a usable value.
3995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3996 fi
3997 ;;
3998 esac
3999
4000 fi
4001
4002 if test -n $lt_cv_sys_max_cmd_len ; then
4003 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4004 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4005 else
4006 echo "$as_me:$LINENO: result: none" >&5
4007 echo "${ECHO_T}none" >&6
4008 fi
4009 max_cmd_len=$lt_cv_sys_max_cmd_len
4010
4011
4012
4013
4014
4015
4016 : ${CP="cp -f"}
4017 : ${MV="mv -f"}
4018 : ${RM="rm -f"}
4019
4020 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4021 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4022 # Try some XSI features
4023 xsi_shell=no
4024 ( _lt_dummy="a/b/c"
4025 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4026 = c,a/b,, \
4027 && eval 'test $(( 1 + 1 )) -eq 2 \
4028 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4029 && xsi_shell=yes
4030 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4031 echo "${ECHO_T}$xsi_shell" >&6
4032
4033
4034 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4035 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4036 lt_shell_append=no
4037 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4038 >/dev/null 2>&1 \
4039 && lt_shell_append=yes
4040 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4041 echo "${ECHO_T}$lt_shell_append" >&6
4042
4043
4044 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4045 lt_unset=unset
4046 else
4047 lt_unset=false
4048 fi
4049
4050
4051
4052
4053
4054 # test EBCDIC or ASCII
4055 case `echo X|tr X '\101'` in
4056 A) # ASCII based system
4057 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4058 lt_SP2NL='tr \040 \012'
4059 lt_NL2SP='tr \015\012 \040\040'
4060 ;;
4061 *) # EBCDIC based system
4062 lt_SP2NL='tr \100 \n'
4063 lt_NL2SP='tr \r\n \100\100'
4064 ;;
4065 esac
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4076 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4077 if test "${lt_cv_ld_reload_flag+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 lt_cv_ld_reload_flag='-r'
4081 fi
4082 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4083 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4084 reload_flag=$lt_cv_ld_reload_flag
4085 case $reload_flag in
4086 "" | " "*) ;;
4087 *) reload_flag=" $reload_flag" ;;
4088 esac
4089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4090 case $host_os in
4091 darwin*)
4092 if test "$GCC" = yes; then
4093 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4094 else
4095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4096 fi
4097 ;;
4098 esac
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 if test -n "$OBJDUMP"; then
4117 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130 done
4131 done
4132
4133 fi
4134 fi
4135 OBJDUMP=$ac_cv_prog_OBJDUMP
4136 if test -n "$OBJDUMP"; then
4137 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4138 echo "${ECHO_T}$OBJDUMP" >&6
4139 else
4140 echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4142 fi
4143
4144 fi
4145 if test -z "$ac_cv_prog_OBJDUMP"; then
4146 ac_ct_OBJDUMP=$OBJDUMP
4147 # Extract the first word of "objdump", so it can be a program name with args.
4148 set dummy objdump; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 if test -n "$ac_ct_OBJDUMP"; then
4155 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168 done
4169 done
4170
4171 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4172 fi
4173 fi
4174 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4175 if test -n "$ac_ct_OBJDUMP"; then
4176 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4177 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4178 else
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 fi
4182
4183 OBJDUMP=$ac_ct_OBJDUMP
4184 else
4185 OBJDUMP="$ac_cv_prog_OBJDUMP"
4186 fi
4187
4188 test -z "$OBJDUMP" && OBJDUMP=objdump
4189
4190
4191
4192
4193
4194
4195 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4196 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4197 if test "${lt_cv_deplibs_check_method+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 lt_cv_file_magic_cmd='$MAGIC_CMD'
4201 lt_cv_file_magic_test_file=
4202 lt_cv_deplibs_check_method='unknown'
4203 # Need to set the preceding variable on all platforms that support
4204 # interlibrary dependencies.
4205 # 'none' -- dependencies not supported.
4206 # `unknown' -- same as none, but documents that we really don't know.
4207 # 'pass_all' -- all dependencies passed with no checks.
4208 # 'test_compile' -- check by making test program.
4209 # 'file_magic [[regex]]' -- check by looking for files in library path
4210 # which responds to the $file_magic_cmd with a given extended regex.
4211 # If you have `file' or equivalent on your system and you're not sure
4212 # whether `pass_all' will *always* work, you probably want this one.
4213
4214 case $host_os in
4215 aix[4-9]*)
4216 lt_cv_deplibs_check_method=pass_all
4217 ;;
4218
4219 beos*)
4220 lt_cv_deplibs_check_method=pass_all
4221 ;;
4222
4223 bsdi[45]*)
4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4225 lt_cv_file_magic_cmd='/usr/bin/file -L'
4226 lt_cv_file_magic_test_file=/shlib/libc.so
4227 ;;
4228
4229 cygwin*)
4230 # func_win32_libid is a shell function defined in ltmain.sh
4231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4232 lt_cv_file_magic_cmd='func_win32_libid'
4233 ;;
4234
4235 mingw* | pw32*)
4236 # Base MSYS/MinGW do not provide the 'file' command needed by
4237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4238 # unless we find 'file', for example because we are cross-compiling.
4239 if ( file / ) >/dev/null 2>&1; then
4240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4241 lt_cv_file_magic_cmd='func_win32_libid'
4242 else
4243 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4244 lt_cv_file_magic_cmd='$OBJDUMP -f'
4245 fi
4246 ;;
4247
4248 cegcc)
4249 # use the weaker test based on 'objdump'. See mingw*.
4250 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4251 lt_cv_file_magic_cmd='$OBJDUMP -f'
4252 ;;
4253
4254 darwin* | rhapsody*)
4255 lt_cv_deplibs_check_method=pass_all
4256 ;;
4257
4258 freebsd* | dragonfly*)
4259 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4260 case $host_cpu in
4261 i*86 )
4262 # Not sure whether the presence of OpenBSD here was a mistake.
4263 # Let's accept both of them until this is cleared up.
4264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4265 lt_cv_file_magic_cmd=/usr/bin/file
4266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4267 ;;
4268 esac
4269 else
4270 lt_cv_deplibs_check_method=pass_all
4271 fi
4272 ;;
4273
4274 gnu*)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278 hpux10.20* | hpux11*)
4279 lt_cv_file_magic_cmd=/usr/bin/file
4280 case $host_cpu in
4281 ia64*)
4282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4284 ;;
4285 hppa*64*)
4286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4288 ;;
4289 *)
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4292 ;;
4293 esac
4294 ;;
4295
4296 interix[3-9]*)
4297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4299 ;;
4300
4301 irix5* | irix6* | nonstopux*)
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311 # This must be Linux ELF.
4312 linux* | k*bsd*-gnu)
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316 netbsd*)
4317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319 else
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4321 fi
4322 ;;
4323
4324 newos6*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4328 ;;
4329
4330 *nto* | *qnx*)
4331 lt_cv_deplibs_check_method=pass_all
4332 ;;
4333
4334 openbsd*)
4335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4337 else
4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4339 fi
4340 ;;
4341
4342 osf3* | osf4* | osf5*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345
4346 rdos*)
4347 lt_cv_deplibs_check_method=pass_all
4348 ;;
4349
4350 solaris*)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353
4354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4355 lt_cv_deplibs_check_method=pass_all
4356 ;;
4357
4358 sysv4 | sysv4.3*)
4359 case $host_vendor in
4360 motorola)
4361 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]'
4362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4363 ;;
4364 ncr)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367 sequent)
4368 lt_cv_file_magic_cmd='/bin/file'
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4370 ;;
4371 sni)
4372 lt_cv_file_magic_cmd='/bin/file'
4373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4374 lt_cv_file_magic_test_file=/lib/libc.so
4375 ;;
4376 siemens)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379 pc)
4380 lt_cv_deplibs_check_method=pass_all
4381 ;;
4382 esac
4383 ;;
4384
4385 tpf*)
4386 lt_cv_deplibs_check_method=pass_all
4387 ;;
4388 esac
4389
4390 fi
4391 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4392 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4393 file_magic_cmd=$lt_cv_file_magic_cmd
4394 deplibs_check_method=$lt_cv_deplibs_check_method
4395 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4410 set dummy ${ac_tool_prefix}ar; ac_word=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_AR+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 if test -n "$AR"; then
4417 ac_cv_prog_AR="$AR" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4421 do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_AR="${ac_tool_prefix}ar"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430 done
4431 done
4432
4433 fi
4434 fi
4435 AR=$ac_cv_prog_AR
4436 if test -n "$AR"; then
4437 echo "$as_me:$LINENO: result: $AR" >&5
4438 echo "${ECHO_T}$AR" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4442 fi
4443
4444 fi
4445 if test -z "$ac_cv_prog_AR"; then
4446 ac_ct_AR=$AR
4447 # Extract the first word of "ar", so it can be a program name with args.
4448 set dummy ar; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 if test -n "$ac_ct_AR"; then
4455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_ac_ct_AR="ar"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468 done
4469 done
4470
4471 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4472 fi
4473 fi
4474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4475 if test -n "$ac_ct_AR"; then
4476 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4477 echo "${ECHO_T}$ac_ct_AR" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4481 fi
4482
4483 AR=$ac_ct_AR
4484 else
4485 AR="$ac_cv_prog_AR"
4486 fi
4487
4488 test -z "$AR" && AR=ar
4489 test -z "$AR_FLAGS" && AR_FLAGS=cru
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501 if test -n "$ac_tool_prefix"; then
4502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4503 set dummy ${ac_tool_prefix}strip; ac_word=$2
4504 echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_prog_STRIP+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 if test -n "$STRIP"; then
4510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523 done
4524 done
4525
4526 fi
4527 fi
4528 STRIP=$ac_cv_prog_STRIP
4529 if test -n "$STRIP"; then
4530 echo "$as_me:$LINENO: result: $STRIP" >&5
4531 echo "${ECHO_T}$STRIP" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4535 fi
4536
4537 fi
4538 if test -z "$ac_cv_prog_STRIP"; then
4539 ac_ct_STRIP=$STRIP
4540 # Extract the first word of "strip", so it can be a program name with args.
4541 set dummy strip; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 if test -n "$ac_ct_STRIP"; then
4548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_ac_ct_STRIP="strip"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561 done
4562 done
4563
4564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4565 fi
4566 fi
4567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4568 if test -n "$ac_ct_STRIP"; then
4569 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4570 echo "${ECHO_T}$ac_ct_STRIP" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4574 fi
4575
4576 STRIP=$ac_ct_STRIP
4577 else
4578 STRIP="$ac_cv_prog_STRIP"
4579 fi
4580
4581 test -z "$STRIP" && STRIP=:
4582
4583
4584
4585
4586
4587
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_RANLIB+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 if test -n "$RANLIB"; then
4597 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610 done
4611 done
4612
4613 fi
4614 fi
4615 RANLIB=$ac_cv_prog_RANLIB
4616 if test -n "$RANLIB"; then
4617 echo "$as_me:$LINENO: result: $RANLIB" >&5
4618 echo "${ECHO_T}$RANLIB" >&6
4619 else
4620 echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4622 fi
4623
4624 fi
4625 if test -z "$ac_cv_prog_RANLIB"; then
4626 ac_ct_RANLIB=$RANLIB
4627 # Extract the first word of "ranlib", so it can be a program name with args.
4628 set dummy ranlib; ac_word=$2
4629 echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4631 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 if test -n "$ac_ct_RANLIB"; then
4635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_ac_ct_RANLIB="ranlib"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648 done
4649 done
4650
4651 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4652 fi
4653 fi
4654 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4655 if test -n "$ac_ct_RANLIB"; then
4656 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4657 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4658 else
4659 echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4661 fi
4662
4663 RANLIB=$ac_ct_RANLIB
4664 else
4665 RANLIB="$ac_cv_prog_RANLIB"
4666 fi
4667
4668 test -z "$RANLIB" && RANLIB=:
4669
4670
4671
4672
4673
4674
4675 # Determine commands to create old-style static archives.
4676 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4677 old_postinstall_cmds='chmod 644 $oldlib'
4678 old_postuninstall_cmds=
4679
4680 if test -n "$RANLIB"; then
4681 case $host_os in
4682 openbsd*)
4683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4684 ;;
4685 *)
4686 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4687 ;;
4688 esac
4689 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4690 fi
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 # If no C compiler was specified, use CC.
4726 LTCC=${LTCC-"$CC"}
4727
4728 # If no C compiler flags were specified, use CFLAGS.
4729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4730
4731 # Allow CC to be a program name with arguments.
4732 compiler=$CC
4733
4734
4735 # Check for command to grab the raw symbol name followed by C symbol from nm.
4736 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4737 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4738 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741
4742 # These are sane defaults that work on at least a few old systems.
4743 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4744
4745 # Character class describing NM global symbol codes.
4746 symcode='[BCDEGRST]'
4747
4748 # Regexp to match symbols that can be accessed directly from C.
4749 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4750
4751 # Define system-specific variables.
4752 case $host_os in
4753 aix*)
4754 symcode='[BCDT]'
4755 ;;
4756 cygwin* | mingw* | pw32* | cegcc*)
4757 symcode='[ABCDGISTW]'
4758 ;;
4759 hpux*)
4760 if test "$host_cpu" = ia64; then
4761 symcode='[ABCDEGRST]'
4762 fi
4763 ;;
4764 irix* | nonstopux*)
4765 symcode='[BCDEGRST]'
4766 ;;
4767 osf*)
4768 symcode='[BCDEGQRST]'
4769 ;;
4770 solaris*)
4771 symcode='[BDRT]'
4772 ;;
4773 sco3.2v5*)
4774 symcode='[DT]'
4775 ;;
4776 sysv4.2uw2*)
4777 symcode='[DT]'
4778 ;;
4779 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4780 symcode='[ABDT]'
4781 ;;
4782 sysv4)
4783 symcode='[DFNSTU]'
4784 ;;
4785 esac
4786
4787 # If we're using GNU nm, then use its standard symbol codes.
4788 case `$NM -V 2>&1` in
4789 *GNU* | *'with BFD'*)
4790 symcode='[ABCDGIRSTW]' ;;
4791 esac
4792
4793 # Transform an extracted symbol line into a proper C declaration.
4794 # Some systems (esp. on ia64) link data and code symbols differently,
4795 # so use this general approach.
4796 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4797
4798 # Transform an extracted symbol line into symbol name and symbol address
4799 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4801
4802 # Handle CRLF in mingw tool chain
4803 opt_cr=
4804 case $build_os in
4805 mingw*)
4806 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4807 ;;
4808 esac
4809
4810 # Try without a prefix underscore, then with it.
4811 for ac_symprfx in "" "_"; do
4812
4813 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4814 symxfrm="\\1 $ac_symprfx\\2 \\2"
4815
4816 # Write the raw and C identifiers.
4817 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4818 # Fake it for dumpbin and say T for any non-static function
4819 # and D for any global variable.
4820 # Also find C++ and __fastcall symbols from MSVC++,
4821 # which start with @ or ?.
4822 lt_cv_sys_global_symbol_pipe="$AWK '"\
4823 " {last_section=section; section=\$ 3};"\
4824 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4825 " \$ 0!~/External *\|/{next};"\
4826 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4827 " {if(hide[section]) next};"\
4828 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4829 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4830 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4831 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4832 " ' prfx=^$ac_symprfx"
4833 else
4834 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4835 fi
4836
4837 # Check to see that the pipe works correctly.
4838 pipe_works=no
4839
4840 rm -f conftest*
4841 cat > conftest.$ac_ext <<_LT_EOF
4842 #ifdef __cplusplus
4843 extern "C" {
4844 #endif
4845 char nm_test_var;
4846 void nm_test_func(void);
4847 void nm_test_func(void){}
4848 #ifdef __cplusplus
4849 }
4850 #endif
4851 int main(){nm_test_var='a';nm_test_func();return(0);}
4852 _LT_EOF
4853
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; then
4859 # Now try to grab the symbols.
4860 nlist=conftest.nm
4861 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4862 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && test -s "$nlist"; then
4866 # Try sorting and uniquifying the output.
4867 if sort "$nlist" | uniq > "$nlist"T; then
4868 mv -f "$nlist"T "$nlist"
4869 else
4870 rm -f "$nlist"T
4871 fi
4872
4873 # Make sure that we snagged all the symbols we need.
4874 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4875 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4876 cat <<_LT_EOF > conftest.$ac_ext
4877 #ifdef __cplusplus
4878 extern "C" {
4879 #endif
4880
4881 _LT_EOF
4882 # Now generate the symbol file.
4883 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4884
4885 cat <<_LT_EOF >> conftest.$ac_ext
4886
4887 /* The mapping between symbol names and symbols. */
4888 const struct {
4889 const char *name;
4890 void *address;
4891 }
4892 lt__PROGRAM__LTX_preloaded_symbols[] =
4893 {
4894 { "@PROGRAM@", (void *) 0 },
4895 _LT_EOF
4896 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4897 cat <<\_LT_EOF >> conftest.$ac_ext
4898 {0, (void *) 0}
4899 };
4900
4901 /* This works around a problem in FreeBSD linker */
4902 #ifdef FREEBSD_WORKAROUND
4903 static const void *lt_preloaded_setup() {
4904 return lt__PROGRAM__LTX_preloaded_symbols;
4905 }
4906 #endif
4907
4908 #ifdef __cplusplus
4909 }
4910 #endif
4911 _LT_EOF
4912 # Now try linking the two files.
4913 mv conftest.$ac_objext conftstm.$ac_objext
4914 lt_save_LIBS="$LIBS"
4915 lt_save_CFLAGS="$CFLAGS"
4916 LIBS="conftstm.$ac_objext"
4917 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4919 (eval $ac_link) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4923 pipe_works=yes
4924 fi
4925 LIBS="$lt_save_LIBS"
4926 CFLAGS="$lt_save_CFLAGS"
4927 else
4928 echo "cannot find nm_test_func in $nlist" >&5
4929 fi
4930 else
4931 echo "cannot find nm_test_var in $nlist" >&5
4932 fi
4933 else
4934 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4935 fi
4936 else
4937 echo "$progname: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 fi
4940 rm -rf conftest* conftst*
4941
4942 # Do not use the global_symbol_pipe unless it works.
4943 if test "$pipe_works" = yes; then
4944 break
4945 else
4946 lt_cv_sys_global_symbol_pipe=
4947 fi
4948 done
4949
4950 fi
4951
4952 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4953 lt_cv_sys_global_symbol_to_cdecl=
4954 fi
4955 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4956 echo "$as_me:$LINENO: result: failed" >&5
4957 echo "${ECHO_T}failed" >&6
4958 else
4959 echo "$as_me:$LINENO: result: ok" >&5
4960 echo "${ECHO_T}ok" >&6
4961 fi
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4986 if test "${enable_libtool_lock+set}" = set; then
4987 enableval="$enable_libtool_lock"
4988
4989 fi;
4990 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4991
4992 # Some flags need to be propagated to the compiler or linker for good
4993 # libtool support.
4994 case $host in
4995 ia64-*-hpux*)
4996 # Find out which ABI we are using.
4997 echo 'int i;' > conftest.$ac_ext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; then
5003 case `/usr/bin/file conftest.$ac_objext` in
5004 *ELF-32*)
5005 HPUX_IA64_MODE="32"
5006 ;;
5007 *ELF-64*)
5008 HPUX_IA64_MODE="64"
5009 ;;
5010 esac
5011 fi
5012 rm -rf conftest*
5013 ;;
5014 *-*-irix6*)
5015 # Find out which ABI we are using.
5016 echo '#line 5016 "configure"' > conftest.$ac_ext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; then
5022 if test "$lt_cv_prog_gnu_ld" = yes; then
5023 case `/usr/bin/file conftest.$ac_objext` in
5024 *32-bit*)
5025 LD="${LD-ld} -melf32bsmip"
5026 ;;
5027 *N32*)
5028 LD="${LD-ld} -melf32bmipn32"
5029 ;;
5030 *64-bit*)
5031 LD="${LD-ld} -melf64bmip"
5032 ;;
5033 esac
5034 else
5035 case `/usr/bin/file conftest.$ac_objext` in
5036 *32-bit*)
5037 LD="${LD-ld} -32"
5038 ;;
5039 *N32*)
5040 LD="${LD-ld} -n32"
5041 ;;
5042 *64-bit*)
5043 LD="${LD-ld} -64"
5044 ;;
5045 esac
5046 fi
5047 fi
5048 rm -rf conftest*
5049 ;;
5050
5051 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5052 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5053 # Find out which ABI we are using.
5054 echo 'int i;' > conftest.$ac_ext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; then
5060 case `/usr/bin/file conftest.o` in
5061 *32-bit*)
5062 case $host in
5063 x86_64-*kfreebsd*-gnu)
5064 LD="${LD-ld} -m elf_i386_fbsd"
5065 ;;
5066 x86_64-*linux*)
5067 LD="${LD-ld} -m elf_i386"
5068 ;;
5069 ppc64-*linux*|powerpc64-*linux*)
5070 LD="${LD-ld} -m elf32ppclinux"
5071 ;;
5072 s390x-*linux*)
5073 LD="${LD-ld} -m elf_s390"
5074 ;;
5075 sparc64-*linux*)
5076 LD="${LD-ld} -m elf32_sparc"
5077 ;;
5078 esac
5079 ;;
5080 *64-bit*)
5081 case $host in
5082 x86_64-*kfreebsd*-gnu)
5083 LD="${LD-ld} -m elf_x86_64_fbsd"
5084 ;;
5085 x86_64-*linux*)
5086 LD="${LD-ld} -m elf_x86_64"
5087 ;;
5088 ppc*-*linux*|powerpc*-*linux*)
5089 LD="${LD-ld} -m elf64ppc"
5090 ;;
5091 s390*-*linux*|s390*-*tpf*)
5092 LD="${LD-ld} -m elf64_s390"
5093 ;;
5094 sparc*-*linux*)
5095 LD="${LD-ld} -m elf64_sparc"
5096 ;;
5097 esac
5098 ;;
5099 esac
5100 fi
5101 rm -rf conftest*
5102 ;;
5103
5104 *-*-sco3.2v5*)
5105 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5106 SAVE_CFLAGS="$CFLAGS"
5107 CFLAGS="$CFLAGS -belf"
5108 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5109 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5110 if test "${lt_cv_cc_needs_belf+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119 if test x$gcc_no_link = xyes; then
5120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5122 { (exit 1); exit 1; }; }
5123 fi
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130
5131 int
5132 main ()
5133 {
5134
5135 ;
5136 return 0;
5137 }
5138 _ACEOF
5139 rm -f conftest.$ac_objext conftest$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141 (eval $ac_link) 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -z "$ac_c_werror_flag"
5149 || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try='test -s conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 lt_cv_cc_needs_belf=yes
5162 else
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166 lt_cv_cc_needs_belf=no
5167 fi
5168 rm -f conftest.err conftest.$ac_objext \
5169 conftest$ac_exeext conftest.$ac_ext
5170 ac_ext=c
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175
5176 fi
5177 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5178 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5179 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5180 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5181 CFLAGS="$SAVE_CFLAGS"
5182 fi
5183 ;;
5184 sparc*-*solaris*)
5185 # Find out which ABI we are using.
5186 echo 'int i;' > conftest.$ac_ext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; then
5192 case `/usr/bin/file conftest.o` in
5193 *64-bit*)
5194 case $lt_cv_prog_gnu_ld in
5195 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5196 *)
5197 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5198 LD="${LD-ld} -64"
5199 fi
5200 ;;
5201 esac
5202 ;;
5203 esac
5204 fi
5205 rm -rf conftest*
5206 ;;
5207 esac
5208
5209 need_locks="$enable_libtool_lock"
5210
5211
5212 case $host_os in
5213 rhapsody* | darwin*)
5214 if test -n "$ac_tool_prefix"; then
5215 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5216 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 if test -n "$DSYMUTIL"; then
5223 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236 done
5237 done
5238
5239 fi
5240 fi
5241 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5242 if test -n "$DSYMUTIL"; then
5243 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5244 echo "${ECHO_T}$DSYMUTIL" >&6
5245 else
5246 echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6
5248 fi
5249
5250 fi
5251 if test -z "$ac_cv_prog_DSYMUTIL"; then
5252 ac_ct_DSYMUTIL=$DSYMUTIL
5253 # Extract the first word of "dsymutil", so it can be a program name with args.
5254 set dummy dsymutil; ac_word=$2
5255 echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 if test -n "$ac_ct_DSYMUTIL"; then
5261 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274 done
5275 done
5276
5277 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5278 fi
5279 fi
5280 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5281 if test -n "$ac_ct_DSYMUTIL"; then
5282 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5283 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287 fi
5288
5289 DSYMUTIL=$ac_ct_DSYMUTIL
5290 else
5291 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5292 fi
5293
5294 if test -n "$ac_tool_prefix"; then
5295 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5296 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5297 echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 if test -n "$NMEDIT"; then
5303 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316 done
5317 done
5318
5319 fi
5320 fi
5321 NMEDIT=$ac_cv_prog_NMEDIT
5322 if test -n "$NMEDIT"; then
5323 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5324 echo "${ECHO_T}$NMEDIT" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328 fi
5329
5330 fi
5331 if test -z "$ac_cv_prog_NMEDIT"; then
5332 ac_ct_NMEDIT=$NMEDIT
5333 # Extract the first word of "nmedit", so it can be a program name with args.
5334 set dummy nmedit; ac_word=$2
5335 echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 if test -n "$ac_ct_NMEDIT"; then
5341 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354 done
5355 done
5356
5357 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5358 fi
5359 fi
5360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5361 if test -n "$ac_ct_NMEDIT"; then
5362 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5363 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5364 else
5365 echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5367 fi
5368
5369 NMEDIT=$ac_ct_NMEDIT
5370 else
5371 NMEDIT="$ac_cv_prog_NMEDIT"
5372 fi
5373
5374 if test -n "$ac_tool_prefix"; then
5375 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5376 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5377 echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379 if test "${ac_cv_prog_LIPO+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382 if test -n "$LIPO"; then
5383 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396 done
5397 done
5398
5399 fi
5400 fi
5401 LIPO=$ac_cv_prog_LIPO
5402 if test -n "$LIPO"; then
5403 echo "$as_me:$LINENO: result: $LIPO" >&5
5404 echo "${ECHO_T}$LIPO" >&6
5405 else
5406 echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6
5408 fi
5409
5410 fi
5411 if test -z "$ac_cv_prog_LIPO"; then
5412 ac_ct_LIPO=$LIPO
5413 # Extract the first word of "lipo", so it can be a program name with args.
5414 set dummy lipo; ac_word=$2
5415 echo "$as_me:$LINENO: checking for $ac_word" >&5
5416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5417 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 if test -n "$ac_ct_LIPO"; then
5421 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_ac_ct_LIPO="lipo"
5431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5433 fi
5434 done
5435 done
5436
5437 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5438 fi
5439 fi
5440 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5441 if test -n "$ac_ct_LIPO"; then
5442 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5443 echo "${ECHO_T}$ac_ct_LIPO" >&6
5444 else
5445 echo "$as_me:$LINENO: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5447 fi
5448
5449 LIPO=$ac_ct_LIPO
5450 else
5451 LIPO="$ac_cv_prog_LIPO"
5452 fi
5453
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}otool; ac_word=$2
5457 echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459 if test "${ac_cv_prog_OTOOL+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 if test -n "$OTOOL"; then
5463 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476 done
5477 done
5478
5479 fi
5480 fi
5481 OTOOL=$ac_cv_prog_OTOOL
5482 if test -n "$OTOOL"; then
5483 echo "$as_me:$LINENO: result: $OTOOL" >&5
5484 echo "${ECHO_T}$OTOOL" >&6
5485 else
5486 echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5488 fi
5489
5490 fi
5491 if test -z "$ac_cv_prog_OTOOL"; then
5492 ac_ct_OTOOL=$OTOOL
5493 # Extract the first word of "otool", so it can be a program name with args.
5494 set dummy otool; ac_word=$2
5495 echo "$as_me:$LINENO: checking for $ac_word" >&5
5496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5497 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 if test -n "$ac_ct_OTOOL"; then
5501 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_ac_ct_OTOOL="otool"
5511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514 done
5515 done
5516
5517 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5518 fi
5519 fi
5520 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5521 if test -n "$ac_ct_OTOOL"; then
5522 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5523 echo "${ECHO_T}$ac_ct_OTOOL" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6
5527 fi
5528
5529 OTOOL=$ac_ct_OTOOL
5530 else
5531 OTOOL="$ac_cv_prog_OTOOL"
5532 fi
5533
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5536 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5537 echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5539 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 if test -n "$OTOOL64"; then
5543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558
5559 fi
5560 fi
5561 OTOOL64=$ac_cv_prog_OTOOL64
5562 if test -n "$OTOOL64"; then
5563 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5564 echo "${ECHO_T}$OTOOL64" >&6
5565 else
5566 echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5568 fi
5569
5570 fi
5571 if test -z "$ac_cv_prog_OTOOL64"; then
5572 ac_ct_OTOOL64=$OTOOL64
5573 # Extract the first word of "otool64", so it can be a program name with args.
5574 set dummy otool64; ac_word=$2
5575 echo "$as_me:$LINENO: checking for $ac_word" >&5
5576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5577 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 if test -n "$ac_ct_OTOOL64"; then
5581 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_ac_ct_OTOOL64="otool64"
5591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5596
5597 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5598 fi
5599 fi
5600 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5601 if test -n "$ac_ct_OTOOL64"; then
5602 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5603 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5604 else
5605 echo "$as_me:$LINENO: result: no" >&5
5606 echo "${ECHO_T}no" >&6
5607 fi
5608
5609 OTOOL64=$ac_ct_OTOOL64
5610 else
5611 OTOOL64="$ac_cv_prog_OTOOL64"
5612 fi
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5641 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5642 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 lt_cv_apple_cc_single_mod=no
5646 if test -z "${LT_MULTI_MODULE}"; then
5647 # By default we will add the -single_module flag. You can override
5648 # by either setting the environment variable LT_MULTI_MODULE
5649 # non-empty at configure time, or by adding -multi_module to the
5650 # link flags.
5651 rm -rf libconftest.dylib*
5652 echo "int foo(void){return 1;}" > conftest.c
5653 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5654 -dynamiclib -Wl,-single_module conftest.c" >&5
5655 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5656 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5657 _lt_result=$?
5658 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5659 lt_cv_apple_cc_single_mod=yes
5660 else
5661 cat conftest.err >&5
5662 fi
5663 rm -rf libconftest.dylib*
5664 rm -f conftest.*
5665 fi
5666 fi
5667 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5668 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5669 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5670 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5671 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 lt_cv_ld_exported_symbols_list=no
5675 save_LDFLAGS=$LDFLAGS
5676 echo "_main" > conftest.sym
5677 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5678 if test x$gcc_no_link = xyes; then
5679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5681 { (exit 1); exit 1; }; }
5682 fi
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689
5690 int
5691 main ()
5692 {
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 lt_cv_ld_exported_symbols_list=yes
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725 lt_cv_ld_exported_symbols_list=no
5726 fi
5727 rm -f conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 LDFLAGS="$save_LDFLAGS"
5730
5731 fi
5732 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5733 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
5734 case $host_os in
5735 rhapsody* | darwin1.[012])
5736 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5737 darwin1.*)
5738 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5739 darwin*) # darwin 5.x on
5740 # if running on 10.5 or later, the deployment target defaults
5741 # to the OS version, if on x86, and 10.4, the deployment
5742 # target defaults to 10.4. Don't you love it?
5743 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5744 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5745 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5746 10.[012]*)
5747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5748 10.*)
5749 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5750 esac
5751 ;;
5752 esac
5753 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5754 _lt_dar_single_mod='$single_module'
5755 fi
5756 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5757 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5758 else
5759 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5760 fi
5761 if test "$DSYMUTIL" != ":"; then
5762 _lt_dsymutil='~$DSYMUTIL $lib || :'
5763 else
5764 _lt_dsymutil=
5765 fi
5766 ;;
5767 esac
5768
5769 ac_ext=c
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5776 # On Suns, sometimes $CPP names a directory.
5777 if test -n "$CPP" && test -d "$CPP"; then
5778 CPP=
5779 fi
5780 if test -z "$CPP"; then
5781 if test "${ac_cv_prog_CPP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 # Double quotes because CPP needs to be expanded
5785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5786 do
5787 ac_preproc_ok=false
5788 for ac_c_preproc_warn_flag in '' yes
5789 do
5790 # Use a header file that comes with gcc, so configuring glibc
5791 # with a fresh cross-compiler works.
5792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 # <limits.h> exists even on freestanding compilers.
5794 # On the NeXT, cc -E runs the code through the compiler's parser,
5795 # not just through cpp. "Syntax error" is here to catch this case.
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #ifdef __STDC__
5803 # include <limits.h>
5804 #else
5805 # include <assert.h>
5806 #endif
5807 Syntax error
5808 _ACEOF
5809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } >/dev/null; then
5817 if test -s conftest.err; then
5818 ac_cpp_err=$ac_c_preproc_warn_flag
5819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5820 else
5821 ac_cpp_err=
5822 fi
5823 else
5824 ac_cpp_err=yes
5825 fi
5826 if test -z "$ac_cpp_err"; then
5827 :
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 # Broken: fails on valid input.
5833 continue
5834 fi
5835 rm -f conftest.err conftest.$ac_ext
5836
5837 # OK, works on sane cases. Now check whether non-existent headers
5838 # can be detected and how.
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5846 _ACEOF
5847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null; then
5855 if test -s conftest.err; then
5856 ac_cpp_err=$ac_c_preproc_warn_flag
5857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5858 else
5859 ac_cpp_err=
5860 fi
5861 else
5862 ac_cpp_err=yes
5863 fi
5864 if test -z "$ac_cpp_err"; then
5865 # Broken: success on invalid input.
5866 continue
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 # Passes both tests.
5872 ac_preproc_ok=:
5873 break
5874 fi
5875 rm -f conftest.err conftest.$ac_ext
5876
5877 done
5878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5879 rm -f conftest.err conftest.$ac_ext
5880 if $ac_preproc_ok; then
5881 break
5882 fi
5883
5884 done
5885 ac_cv_prog_CPP=$CPP
5886
5887 fi
5888 CPP=$ac_cv_prog_CPP
5889 else
5890 ac_cv_prog_CPP=$CPP
5891 fi
5892 echo "$as_me:$LINENO: result: $CPP" >&5
5893 echo "${ECHO_T}$CPP" >&6
5894 ac_preproc_ok=false
5895 for ac_c_preproc_warn_flag in '' yes
5896 do
5897 # Use a header file that comes with gcc, so configuring glibc
5898 # with a fresh cross-compiler works.
5899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900 # <limits.h> exists even on freestanding compilers.
5901 # On the NeXT, cc -E runs the code through the compiler's parser,
5902 # not just through cpp. "Syntax error" is here to catch this case.
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 #ifdef __STDC__
5910 # include <limits.h>
5911 #else
5912 # include <assert.h>
5913 #endif
5914 Syntax error
5915 _ACEOF
5916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } >/dev/null; then
5924 if test -s conftest.err; then
5925 ac_cpp_err=$ac_c_preproc_warn_flag
5926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5927 else
5928 ac_cpp_err=
5929 fi
5930 else
5931 ac_cpp_err=yes
5932 fi
5933 if test -z "$ac_cpp_err"; then
5934 :
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 # Broken: fails on valid input.
5940 continue
5941 fi
5942 rm -f conftest.err conftest.$ac_ext
5943
5944 # OK, works on sane cases. Now check whether non-existent headers
5945 # can be detected and how.
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <ac_nonexistent.h>
5953 _ACEOF
5954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null; then
5962 if test -s conftest.err; then
5963 ac_cpp_err=$ac_c_preproc_warn_flag
5964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5965 else
5966 ac_cpp_err=
5967 fi
5968 else
5969 ac_cpp_err=yes
5970 fi
5971 if test -z "$ac_cpp_err"; then
5972 # Broken: success on invalid input.
5973 continue
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 # Passes both tests.
5979 ac_preproc_ok=:
5980 break
5981 fi
5982 rm -f conftest.err conftest.$ac_ext
5983
5984 done
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.err conftest.$ac_ext
5987 if $ac_preproc_ok; then
5988 :
5989 else
5990 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5991 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5992 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5993 See \`config.log' for more details." >&5
5994 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5995 See \`config.log' for more details." >&2;}
5996 { (exit 1); exit 1; }; }; }
5997 fi
5998
5999 ac_ext=c
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004
6005
6006 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6007 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6008 if test "${ac_cv_header_stdc+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #include <stdlib.h>
6018 #include <stdarg.h>
6019 #include <string.h>
6020 #include <float.h>
6021
6022 int
6023 main ()
6024 {
6025
6026 ;
6027 return 0;
6028 }
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest.$ac_objext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_header_stdc=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 ac_cv_header_stdc=no
6058 fi
6059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6060
6061 if test $ac_cv_header_stdc = yes; then
6062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <string.h>
6070
6071 _ACEOF
6072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6073 $EGREP "memchr" >/dev/null 2>&1; then
6074 :
6075 else
6076 ac_cv_header_stdc=no
6077 fi
6078 rm -f conftest*
6079
6080 fi
6081
6082 if test $ac_cv_header_stdc = yes; then
6083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <stdlib.h>
6091
6092 _ACEOF
6093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094 $EGREP "free" >/dev/null 2>&1; then
6095 :
6096 else
6097 ac_cv_header_stdc=no
6098 fi
6099 rm -f conftest*
6100
6101 fi
6102
6103 if test $ac_cv_header_stdc = yes; then
6104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6105 if test "$cross_compiling" = yes; then
6106 :
6107 else
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 #include <ctype.h>
6115 #if ((' ' & 0x0FF) == 0x020)
6116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6118 #else
6119 # define ISLOWER(c) \
6120 (('a' <= (c) && (c) <= 'i') \
6121 || ('j' <= (c) && (c) <= 'r') \
6122 || ('s' <= (c) && (c) <= 'z'))
6123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6124 #endif
6125
6126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6127 int
6128 main ()
6129 {
6130 int i;
6131 for (i = 0; i < 256; i++)
6132 if (XOR (islower (i), ISLOWER (i))
6133 || toupper (i) != TOUPPER (i))
6134 exit(2);
6135 exit (0);
6136 }
6137 _ACEOF
6138 rm -f conftest$ac_exeext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6140 (eval $ac_link) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 :
6150 else
6151 echo "$as_me: program exited with status $ac_status" >&5
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ( exit $ac_status )
6156 ac_cv_header_stdc=no
6157 fi
6158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6159 fi
6160 fi
6161 fi
6162 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6163 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6164 if test $ac_cv_header_stdc = yes; then
6165
6166 cat >>confdefs.h <<\_ACEOF
6167 #define STDC_HEADERS 1
6168 _ACEOF
6169
6170 fi
6171
6172 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6183 inttypes.h stdint.h unistd.h
6184 do
6185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6186 echo "$as_me:$LINENO: checking for $ac_header" >&5
6187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6198
6199 #include <$ac_header>
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 eval "$as_ac_Header=yes"
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 eval "$as_ac_Header=no"
6229 fi
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231 fi
6232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235 cat >>confdefs.h <<_ACEOF
6236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6237 _ACEOF
6238
6239 fi
6240
6241 done
6242
6243
6244
6245 for ac_header in dlfcn.h
6246 do
6247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6248 echo "$as_me:$LINENO: checking for $ac_header" >&5
6249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 $ac_includes_default
6260
6261 #include <$ac_header>
6262 _ACEOF
6263 rm -f conftest.$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 eval "$as_ac_Header=yes"
6286 else
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290 eval "$as_ac_Header=no"
6291 fi
6292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6293 fi
6294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6297 cat >>confdefs.h <<_ACEOF
6298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6299 _ACEOF
6300
6301 fi
6302
6303 done
6304
6305
6306
6307 # Set options
6308
6309
6310
6311 enable_dlopen=no
6312
6313
6314
6315 # Check whether --enable-shared or --disable-shared was given.
6316 if test "${enable_shared+set}" = set; then
6317 enableval="$enable_shared"
6318 p=${PACKAGE-default}
6319 case $enableval in
6320 yes) enable_shared=yes ;;
6321 no) enable_shared=no ;;
6322 *)
6323 enable_shared=no
6324 # Look at the argument we got. We use all the common list separators.
6325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6326 for pkg in $enableval; do
6327 IFS="$lt_save_ifs"
6328 if test "X$pkg" = "X$p"; then
6329 enable_shared=yes
6330 fi
6331 done
6332 IFS="$lt_save_ifs"
6333 ;;
6334 esac
6335 else
6336 enable_shared=yes
6337 fi;
6338
6339
6340
6341
6342
6343
6344
6345
6346 # Check whether --enable-static or --disable-static was given.
6347 if test "${enable_static+set}" = set; then
6348 enableval="$enable_static"
6349 p=${PACKAGE-default}
6350 case $enableval in
6351 yes) enable_static=yes ;;
6352 no) enable_static=no ;;
6353 *)
6354 enable_static=no
6355 # Look at the argument we got. We use all the common list separators.
6356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6357 for pkg in $enableval; do
6358 IFS="$lt_save_ifs"
6359 if test "X$pkg" = "X$p"; then
6360 enable_static=yes
6361 fi
6362 done
6363 IFS="$lt_save_ifs"
6364 ;;
6365 esac
6366 else
6367 enable_static=yes
6368 fi;
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 # Check whether --with-pic or --without-pic was given.
6379 if test "${with_pic+set}" = set; then
6380 withval="$with_pic"
6381 pic_mode="$withval"
6382 else
6383 pic_mode=default
6384 fi;
6385
6386 test -z "$pic_mode" && pic_mode=default
6387
6388
6389
6390
6391
6392
6393
6394 # Check whether --enable-fast-install or --disable-fast-install was given.
6395 if test "${enable_fast_install+set}" = set; then
6396 enableval="$enable_fast_install"
6397 p=${PACKAGE-default}
6398 case $enableval in
6399 yes) enable_fast_install=yes ;;
6400 no) enable_fast_install=no ;;
6401 *)
6402 enable_fast_install=no
6403 # Look at the argument we got. We use all the common list separators.
6404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6405 for pkg in $enableval; do
6406 IFS="$lt_save_ifs"
6407 if test "X$pkg" = "X$p"; then
6408 enable_fast_install=yes
6409 fi
6410 done
6411 IFS="$lt_save_ifs"
6412 ;;
6413 esac
6414 else
6415 enable_fast_install=yes
6416 fi;
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427 # This can be used to rebuild libtool when needed
6428 LIBTOOL_DEPS="$ltmain"
6429
6430 # Always use our own libtool.
6431 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457 test -z "$LN_S" && LN_S="ln -s"
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 if test -n "${ZSH_VERSION+set}" ; then
6473 setopt NO_GLOB_SUBST
6474 fi
6475
6476 echo "$as_me:$LINENO: checking for objdir" >&5
6477 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6478 if test "${lt_cv_objdir+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 rm -f .libs 2>/dev/null
6482 mkdir .libs 2>/dev/null
6483 if test -d .libs; then
6484 lt_cv_objdir=.libs
6485 else
6486 # MS-DOS does not allow filenames that begin with a dot.
6487 lt_cv_objdir=_libs
6488 fi
6489 rmdir .libs 2>/dev/null
6490 fi
6491 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6492 echo "${ECHO_T}$lt_cv_objdir" >&6
6493 objdir=$lt_cv_objdir
6494
6495
6496
6497
6498
6499 cat >>confdefs.h <<_ACEOF
6500 #define LT_OBJDIR "$lt_cv_objdir/"
6501 _ACEOF
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 case $host_os in
6520 aix3*)
6521 # AIX sometimes has problems with the GCC collect2 program. For some
6522 # reason, if we set the COLLECT_NAMES environment variable, the problems
6523 # vanish in a puff of smoke.
6524 if test "X${COLLECT_NAMES+set}" != Xset; then
6525 COLLECT_NAMES=
6526 export COLLECT_NAMES
6527 fi
6528 ;;
6529 esac
6530
6531 # Sed substitution that helps us do robust quoting. It backslashifies
6532 # metacharacters that are still active within double-quoted strings.
6533 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6534
6535 # Same as above, but do not quote variable references.
6536 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6537
6538 # Sed substitution to delay expansion of an escaped shell variable in a
6539 # double_quote_subst'ed string.
6540 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6541
6542 # Sed substitution to delay expansion of an escaped single quote.
6543 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6544
6545 # Sed substitution to avoid accidental globbing in evaled expressions
6546 no_glob_subst='s/\*/\\\*/g'
6547
6548 # Global variables:
6549 ofile=libtool
6550 can_build_shared=yes
6551
6552 # All known linkers require a `.a' archive for static linking (except MSVC,
6553 # which needs '.lib').
6554 libext=a
6555
6556 with_gnu_ld="$lt_cv_prog_gnu_ld"
6557
6558 old_CC="$CC"
6559 old_CFLAGS="$CFLAGS"
6560
6561 # Set sane defaults for various variables
6562 test -z "$CC" && CC=cc
6563 test -z "$LTCC" && LTCC=$CC
6564 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6565 test -z "$LD" && LD=ld
6566 test -z "$ac_objext" && ac_objext=o
6567
6568 for cc_temp in $compiler""; do
6569 case $cc_temp in
6570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6572 \-*) ;;
6573 *) break;;
6574 esac
6575 done
6576 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6577
6578
6579 # Only perform the check for file, if the check method requires it
6580 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6581 case $deplibs_check_method in
6582 file_magic*)
6583 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6584 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6585 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6586 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 case $MAGIC_CMD in
6590 [\\/*] | ?:[\\/]*)
6591 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6592 ;;
6593 *)
6594 lt_save_MAGIC_CMD="$MAGIC_CMD"
6595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6596 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6597 for ac_dir in $ac_dummy; do
6598 IFS="$lt_save_ifs"
6599 test -z "$ac_dir" && ac_dir=.
6600 if test -f $ac_dir/${ac_tool_prefix}file; then
6601 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6602 if test -n "$file_magic_test_file"; then
6603 case $deplibs_check_method in
6604 "file_magic "*)
6605 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6607 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6608 $EGREP "$file_magic_regex" > /dev/null; then
6609 :
6610 else
6611 cat <<_LT_EOF 1>&2
6612
6613 *** Warning: the command libtool uses to detect shared libraries,
6614 *** $file_magic_cmd, produces output that libtool cannot recognize.
6615 *** The result is that libtool may fail to recognize shared libraries
6616 *** as such. This will affect the creation of libtool libraries that
6617 *** depend on shared libraries, but programs linked with such libtool
6618 *** libraries will work regardless of this problem. Nevertheless, you
6619 *** may want to report the problem to your system manager and/or to
6620 *** bug-libtool@gnu.org
6621
6622 _LT_EOF
6623 fi ;;
6624 esac
6625 fi
6626 break
6627 fi
6628 done
6629 IFS="$lt_save_ifs"
6630 MAGIC_CMD="$lt_save_MAGIC_CMD"
6631 ;;
6632 esac
6633 fi
6634
6635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6636 if test -n "$MAGIC_CMD"; then
6637 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6638 echo "${ECHO_T}$MAGIC_CMD" >&6
6639 else
6640 echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6
6642 fi
6643
6644
6645
6646
6647
6648 if test -z "$lt_cv_path_MAGIC_CMD"; then
6649 if test -n "$ac_tool_prefix"; then
6650 echo "$as_me:$LINENO: checking for file" >&5
6651 echo $ECHO_N "checking for file... $ECHO_C" >&6
6652 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655 case $MAGIC_CMD in
6656 [\\/*] | ?:[\\/]*)
6657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6658 ;;
6659 *)
6660 lt_save_MAGIC_CMD="$MAGIC_CMD"
6661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6663 for ac_dir in $ac_dummy; do
6664 IFS="$lt_save_ifs"
6665 test -z "$ac_dir" && ac_dir=.
6666 if test -f $ac_dir/file; then
6667 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6668 if test -n "$file_magic_test_file"; then
6669 case $deplibs_check_method in
6670 "file_magic "*)
6671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6674 $EGREP "$file_magic_regex" > /dev/null; then
6675 :
6676 else
6677 cat <<_LT_EOF 1>&2
6678
6679 *** Warning: the command libtool uses to detect shared libraries,
6680 *** $file_magic_cmd, produces output that libtool cannot recognize.
6681 *** The result is that libtool may fail to recognize shared libraries
6682 *** as such. This will affect the creation of libtool libraries that
6683 *** depend on shared libraries, but programs linked with such libtool
6684 *** libraries will work regardless of this problem. Nevertheless, you
6685 *** may want to report the problem to your system manager and/or to
6686 *** bug-libtool@gnu.org
6687
6688 _LT_EOF
6689 fi ;;
6690 esac
6691 fi
6692 break
6693 fi
6694 done
6695 IFS="$lt_save_ifs"
6696 MAGIC_CMD="$lt_save_MAGIC_CMD"
6697 ;;
6698 esac
6699 fi
6700
6701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6702 if test -n "$MAGIC_CMD"; then
6703 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6704 echo "${ECHO_T}$MAGIC_CMD" >&6
6705 else
6706 echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6
6708 fi
6709
6710
6711 else
6712 MAGIC_CMD=:
6713 fi
6714 fi
6715
6716 fi
6717 ;;
6718 esac
6719
6720 # Use C for the default configuration in the libtool script
6721
6722 lt_save_CC="$CC"
6723 ac_ext=c
6724 ac_cpp='$CPP $CPPFLAGS'
6725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728
6729
6730 # Source file extension for C test sources.
6731 ac_ext=c
6732
6733 # Object file extension for compiled C test sources.
6734 objext=o
6735 objext=$objext
6736
6737 # Code to be used in simple compile tests
6738 lt_simple_compile_test_code="int some_variable = 0;"
6739
6740 # Code to be used in simple link tests
6741 lt_simple_link_test_code='int main(){return(0);}'
6742
6743
6744
6745
6746
6747
6748
6749 # If no C compiler was specified, use CC.
6750 LTCC=${LTCC-"$CC"}
6751
6752 # If no C compiler flags were specified, use CFLAGS.
6753 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6754
6755 # Allow CC to be a program name with arguments.
6756 compiler=$CC
6757
6758 # Save the default compiler, since it gets overwritten when the other
6759 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6760 compiler_DEFAULT=$CC
6761
6762 # save warnings/boilerplate of simple test code
6763 ac_outfile=conftest.$ac_objext
6764 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6765 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6766 _lt_compiler_boilerplate=`cat conftest.err`
6767 $RM conftest*
6768
6769 ac_outfile=conftest.$ac_objext
6770 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6771 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6772 _lt_linker_boilerplate=`cat conftest.err`
6773 $RM -r conftest*
6774
6775
6776 ## CAVEAT EMPTOR:
6777 ## There is no encapsulation within the following macros, do not change
6778 ## the running order or otherwise move them around unless you know exactly
6779 ## what you are doing...
6780 if test -n "$compiler"; then
6781
6782 lt_prog_compiler_no_builtin_flag=
6783
6784 if test "$GCC" = yes; then
6785 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6786
6787 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6788 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6789 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 lt_cv_prog_compiler_rtti_exceptions=no
6793 ac_outfile=conftest.$ac_objext
6794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6795 lt_compiler_flag="-fno-rtti -fno-exceptions"
6796 # Insert the option either (1) after the last *FLAGS variable, or
6797 # (2) before a word containing "conftest.", or (3) at the end.
6798 # Note that $ac_compile itself does not contain backslashes and begins
6799 # with a dollar sign (not a hyphen), so the echo should work correctly.
6800 # The option is referenced via a variable to avoid confusing sed.
6801 lt_compile=`echo "$ac_compile" | $SED \
6802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6804 -e 's:$: $lt_compiler_flag:'`
6805 (eval echo "\"\$as_me:6805: $lt_compile\"" >&5)
6806 (eval "$lt_compile" 2>conftest.err)
6807 ac_status=$?
6808 cat conftest.err >&5
6809 echo "$as_me:6809: \$? = $ac_status" >&5
6810 if (exit $ac_status) && test -s "$ac_outfile"; then
6811 # The compiler can only warn and ignore the option if not recognized
6812 # So say no if there are warnings other than the usual output.
6813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_cv_prog_compiler_rtti_exceptions=yes
6817 fi
6818 fi
6819 $RM conftest*
6820
6821 fi
6822 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6823 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6824
6825 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6827 else
6828 :
6829 fi
6830
6831 fi
6832
6833
6834
6835
6836
6837
6838 lt_prog_compiler_wl=
6839 lt_prog_compiler_pic=
6840 lt_prog_compiler_static=
6841
6842 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6843 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6844
6845 if test "$GCC" = yes; then
6846 lt_prog_compiler_wl='-Wl,'
6847 lt_prog_compiler_static='-static'
6848
6849 case $host_os in
6850 aix*)
6851 # All AIX code is PIC.
6852 if test "$host_cpu" = ia64; then
6853 # AIX 5 now supports IA64 processor
6854 lt_prog_compiler_static='-Bstatic'
6855 fi
6856 ;;
6857
6858 amigaos*)
6859 case $host_cpu in
6860 powerpc)
6861 # see comment about AmigaOS4 .so support
6862 lt_prog_compiler_pic='-fPIC'
6863 ;;
6864 m68k)
6865 # FIXME: we need at least 68020 code to build shared libraries, but
6866 # adding the `-m68020' flag to GCC prevents building anything better,
6867 # like `-m68040'.
6868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6869 ;;
6870 esac
6871 ;;
6872
6873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6874 # PIC is the default for these OSes.
6875 ;;
6876
6877 mingw* | cygwin* | pw32* | os2* | cegcc*)
6878 # This hack is so that the source file can tell whether it is being
6879 # built for inclusion in a dll (and should export symbols for example).
6880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6881 # (--disable-auto-import) libraries
6882 lt_prog_compiler_pic='-DDLL_EXPORT'
6883 ;;
6884
6885 darwin* | rhapsody*)
6886 # PIC is the default on this platform
6887 # Common symbols not allowed in MH_DYLIB files
6888 lt_prog_compiler_pic='-fno-common'
6889 ;;
6890
6891 hpux*)
6892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6894 # sets the default TLS model and affects inlining.
6895 case $host_cpu in
6896 hppa*64*)
6897 # +Z the default
6898 ;;
6899 *)
6900 lt_prog_compiler_pic='-fPIC'
6901 ;;
6902 esac
6903 ;;
6904
6905 interix[3-9]*)
6906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6907 # Instead, we relocate shared libraries at runtime.
6908 ;;
6909
6910 msdosdjgpp*)
6911 # Just because we use GCC doesn't mean we suddenly get shared libraries
6912 # on systems that don't support them.
6913 lt_prog_compiler_can_build_shared=no
6914 enable_shared=no
6915 ;;
6916
6917 *nto* | *qnx*)
6918 # QNX uses GNU C++, but need to define -shared option too, otherwise
6919 # it will coredump.
6920 lt_prog_compiler_pic='-fPIC -shared'
6921 ;;
6922
6923 sysv4*MP*)
6924 if test -d /usr/nec; then
6925 lt_prog_compiler_pic=-Kconform_pic
6926 fi
6927 ;;
6928
6929 *)
6930 lt_prog_compiler_pic='-fPIC'
6931 ;;
6932 esac
6933 else
6934 # PORTME Check for flag to pass linker flags through the system compiler.
6935 case $host_os in
6936 aix*)
6937 lt_prog_compiler_wl='-Wl,'
6938 if test "$host_cpu" = ia64; then
6939 # AIX 5 now supports IA64 processor
6940 lt_prog_compiler_static='-Bstatic'
6941 else
6942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6943 fi
6944 ;;
6945
6946 mingw* | cygwin* | pw32* | os2* | cegcc*)
6947 # This hack is so that the source file can tell whether it is being
6948 # built for inclusion in a dll (and should export symbols for example).
6949 lt_prog_compiler_pic='-DDLL_EXPORT'
6950 ;;
6951
6952 hpux9* | hpux10* | hpux11*)
6953 lt_prog_compiler_wl='-Wl,'
6954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6955 # not for PA HP-UX.
6956 case $host_cpu in
6957 hppa*64*|ia64*)
6958 # +Z the default
6959 ;;
6960 *)
6961 lt_prog_compiler_pic='+Z'
6962 ;;
6963 esac
6964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6965 lt_prog_compiler_static='${wl}-a ${wl}archive'
6966 ;;
6967
6968 irix5* | irix6* | nonstopux*)
6969 lt_prog_compiler_wl='-Wl,'
6970 # PIC (with -KPIC) is the default.
6971 lt_prog_compiler_static='-non_shared'
6972 ;;
6973
6974 linux* | k*bsd*-gnu)
6975 case $cc_basename in
6976 # old Intel for x86_64 which still supported -KPIC.
6977 ecc*)
6978 lt_prog_compiler_wl='-Wl,'
6979 lt_prog_compiler_pic='-KPIC'
6980 lt_prog_compiler_static='-static'
6981 ;;
6982 # icc used to be incompatible with GCC.
6983 # ICC 10 doesn't accept -KPIC any more.
6984 icc* | ifort*)
6985 lt_prog_compiler_wl='-Wl,'
6986 lt_prog_compiler_pic='-fPIC'
6987 lt_prog_compiler_static='-static'
6988 ;;
6989 # Lahey Fortran 8.1.
6990 lf95*)
6991 lt_prog_compiler_wl='-Wl,'
6992 lt_prog_compiler_pic='--shared'
6993 lt_prog_compiler_static='--static'
6994 ;;
6995 pgcc* | pgf77* | pgf90* | pgf95*)
6996 # Portland Group compilers (*not* the Pentium gcc compiler,
6997 # which looks to be a dead project)
6998 lt_prog_compiler_wl='-Wl,'
6999 lt_prog_compiler_pic='-fpic'
7000 lt_prog_compiler_static='-Bstatic'
7001 ;;
7002 ccc*)
7003 lt_prog_compiler_wl='-Wl,'
7004 # All Alpha code is PIC.
7005 lt_prog_compiler_static='-non_shared'
7006 ;;
7007 xl*)
7008 # IBM XL C 8.0/Fortran 10.1 on PPC
7009 lt_prog_compiler_wl='-Wl,'
7010 lt_prog_compiler_pic='-qpic'
7011 lt_prog_compiler_static='-qstaticlink'
7012 ;;
7013 *)
7014 case `$CC -V 2>&1 | sed 5q` in
7015 *Sun\ C*)
7016 # Sun C 5.9
7017 lt_prog_compiler_pic='-KPIC'
7018 lt_prog_compiler_static='-Bstatic'
7019 lt_prog_compiler_wl='-Wl,'
7020 ;;
7021 *Sun\ F*)
7022 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-Bstatic'
7025 lt_prog_compiler_wl=''
7026 ;;
7027 esac
7028 ;;
7029 esac
7030 ;;
7031
7032 newsos6)
7033 lt_prog_compiler_pic='-KPIC'
7034 lt_prog_compiler_static='-Bstatic'
7035 ;;
7036
7037 *nto* | *qnx*)
7038 # QNX uses GNU C++, but need to define -shared option too, otherwise
7039 # it will coredump.
7040 lt_prog_compiler_pic='-fPIC -shared'
7041 ;;
7042
7043 osf3* | osf4* | osf5*)
7044 lt_prog_compiler_wl='-Wl,'
7045 # All OSF/1 code is PIC.
7046 lt_prog_compiler_static='-non_shared'
7047 ;;
7048
7049 rdos*)
7050 lt_prog_compiler_static='-non_shared'
7051 ;;
7052
7053 solaris*)
7054 lt_prog_compiler_pic='-KPIC'
7055 lt_prog_compiler_static='-Bstatic'
7056 case $cc_basename in
7057 f77* | f90* | f95*)
7058 lt_prog_compiler_wl='-Qoption ld ';;
7059 *)
7060 lt_prog_compiler_wl='-Wl,';;
7061 esac
7062 ;;
7063
7064 sunos4*)
7065 lt_prog_compiler_wl='-Qoption ld '
7066 lt_prog_compiler_pic='-PIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 ;;
7069
7070 sysv4 | sysv4.2uw2* | sysv4.3*)
7071 lt_prog_compiler_wl='-Wl,'
7072 lt_prog_compiler_pic='-KPIC'
7073 lt_prog_compiler_static='-Bstatic'
7074 ;;
7075
7076 sysv4*MP*)
7077 if test -d /usr/nec ;then
7078 lt_prog_compiler_pic='-Kconform_pic'
7079 lt_prog_compiler_static='-Bstatic'
7080 fi
7081 ;;
7082
7083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7084 lt_prog_compiler_wl='-Wl,'
7085 lt_prog_compiler_pic='-KPIC'
7086 lt_prog_compiler_static='-Bstatic'
7087 ;;
7088
7089 unicos*)
7090 lt_prog_compiler_wl='-Wl,'
7091 lt_prog_compiler_can_build_shared=no
7092 ;;
7093
7094 uts4*)
7095 lt_prog_compiler_pic='-pic'
7096 lt_prog_compiler_static='-Bstatic'
7097 ;;
7098
7099 *)
7100 lt_prog_compiler_can_build_shared=no
7101 ;;
7102 esac
7103 fi
7104
7105 case $host_os in
7106 # For platforms which do not support PIC, -DPIC is meaningless:
7107 *djgpp*)
7108 lt_prog_compiler_pic=
7109 ;;
7110 *)
7111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7112 ;;
7113 esac
7114 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7115 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7116
7117
7118
7119
7120
7121
7122 #
7123 # Check to make sure the PIC flag actually works.
7124 #
7125 if test -n "$lt_prog_compiler_pic"; then
7126 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7127 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7128 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 lt_cv_prog_compiler_pic_works=no
7132 ac_outfile=conftest.$ac_objext
7133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7135 # Insert the option either (1) after the last *FLAGS variable, or
7136 # (2) before a word containing "conftest.", or (3) at the end.
7137 # Note that $ac_compile itself does not contain backslashes and begins
7138 # with a dollar sign (not a hyphen), so the echo should work correctly.
7139 # The option is referenced via a variable to avoid confusing sed.
7140 lt_compile=`echo "$ac_compile" | $SED \
7141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7143 -e 's:$: $lt_compiler_flag:'`
7144 (eval echo "\"\$as_me:7144: $lt_compile\"" >&5)
7145 (eval "$lt_compile" 2>conftest.err)
7146 ac_status=$?
7147 cat conftest.err >&5
7148 echo "$as_me:7148: \$? = $ac_status" >&5
7149 if (exit $ac_status) && test -s "$ac_outfile"; then
7150 # The compiler can only warn and ignore the option if not recognized
7151 # So say no if there are warnings other than the usual output.
7152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7155 lt_cv_prog_compiler_pic_works=yes
7156 fi
7157 fi
7158 $RM conftest*
7159
7160 fi
7161 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7162 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
7163
7164 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7165 case $lt_prog_compiler_pic in
7166 "" | " "*) ;;
7167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7168 esac
7169 else
7170 lt_prog_compiler_pic=
7171 lt_prog_compiler_can_build_shared=no
7172 fi
7173
7174 fi
7175
7176
7177
7178
7179
7180
7181 #
7182 # Check to make sure the static flag actually works.
7183 #
7184 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7185 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7186 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7187 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 lt_cv_prog_compiler_static_works=no
7191 save_LDFLAGS="$LDFLAGS"
7192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7195 # The linker can only warn and ignore the option if not recognized
7196 # So say no if there are warnings
7197 if test -s conftest.err; then
7198 # Append any errors to the config.log.
7199 cat conftest.err 1>&5
7200 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7202 if diff conftest.exp conftest.er2 >/dev/null; then
7203 lt_cv_prog_compiler_static_works=yes
7204 fi
7205 else
7206 lt_cv_prog_compiler_static_works=yes
7207 fi
7208 fi
7209 $RM -r conftest*
7210 LDFLAGS="$save_LDFLAGS"
7211
7212 fi
7213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7214 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7215
7216 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7217 :
7218 else
7219 lt_prog_compiler_static=
7220 fi
7221
7222
7223
7224
7225
7226
7227
7228 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7229 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7230 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 lt_cv_prog_compiler_c_o=no
7234 $RM -r conftest 2>/dev/null
7235 mkdir conftest
7236 cd conftest
7237 mkdir out
7238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7239
7240 lt_compiler_flag="-o out/conftest2.$ac_objext"
7241 # Insert the option either (1) after the last *FLAGS variable, or
7242 # (2) before a word containing "conftest.", or (3) at the end.
7243 # Note that $ac_compile itself does not contain backslashes and begins
7244 # with a dollar sign (not a hyphen), so the echo should work correctly.
7245 lt_compile=`echo "$ac_compile" | $SED \
7246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7248 -e 's:$: $lt_compiler_flag:'`
7249 (eval echo "\"\$as_me:7249: $lt_compile\"" >&5)
7250 (eval "$lt_compile" 2>out/conftest.err)
7251 ac_status=$?
7252 cat out/conftest.err >&5
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7255 then
7256 # The compiler can only warn and ignore the option if not recognized
7257 # So say no if there are warnings
7258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7261 lt_cv_prog_compiler_c_o=yes
7262 fi
7263 fi
7264 chmod u+w . 2>&5
7265 $RM conftest*
7266 # SGI C++ compiler will create directory out/ii_files/ for
7267 # template instantiation
7268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7269 $RM out/* && rmdir out
7270 cd ..
7271 $RM -r conftest
7272 $RM conftest*
7273
7274 fi
7275 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7276 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7277
7278
7279
7280
7281
7282
7283 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7284 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 lt_cv_prog_compiler_c_o=no
7289 $RM -r conftest 2>/dev/null
7290 mkdir conftest
7291 cd conftest
7292 mkdir out
7293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7294
7295 lt_compiler_flag="-o out/conftest2.$ac_objext"
7296 # Insert the option either (1) after the last *FLAGS variable, or
7297 # (2) before a word containing "conftest.", or (3) at the end.
7298 # Note that $ac_compile itself does not contain backslashes and begins
7299 # with a dollar sign (not a hyphen), so the echo should work correctly.
7300 lt_compile=`echo "$ac_compile" | $SED \
7301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7303 -e 's:$: $lt_compiler_flag:'`
7304 (eval echo "\"\$as_me:7304: $lt_compile\"" >&5)
7305 (eval "$lt_compile" 2>out/conftest.err)
7306 ac_status=$?
7307 cat out/conftest.err >&5
7308 echo "$as_me:7308: \$? = $ac_status" >&5
7309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7310 then
7311 # The compiler can only warn and ignore the option if not recognized
7312 # So say no if there are warnings
7313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7316 lt_cv_prog_compiler_c_o=yes
7317 fi
7318 fi
7319 chmod u+w . 2>&5
7320 $RM conftest*
7321 # SGI C++ compiler will create directory out/ii_files/ for
7322 # template instantiation
7323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7324 $RM out/* && rmdir out
7325 cd ..
7326 $RM -r conftest
7327 $RM conftest*
7328
7329 fi
7330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7331 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7332
7333
7334
7335
7336 hard_links="nottested"
7337 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7338 # do not overwrite the value of need_locks provided by the user
7339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7341 hard_links=yes
7342 $RM conftest*
7343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7344 touch conftest.a
7345 ln conftest.a conftest.b 2>&5 || hard_links=no
7346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7347 echo "$as_me:$LINENO: result: $hard_links" >&5
7348 echo "${ECHO_T}$hard_links" >&6
7349 if test "$hard_links" = no; then
7350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7352 need_locks=warn
7353 fi
7354 else
7355 need_locks=no
7356 fi
7357
7358
7359
7360
7361
7362
7363 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7364 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7365
7366 runpath_var=
7367 allow_undefined_flag=
7368 always_export_symbols=no
7369 archive_cmds=
7370 archive_expsym_cmds=
7371 compiler_needs_object=no
7372 enable_shared_with_static_runtimes=no
7373 export_dynamic_flag_spec=
7374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7375 hardcode_automatic=no
7376 hardcode_direct=no
7377 hardcode_direct_absolute=no
7378 hardcode_libdir_flag_spec=
7379 hardcode_libdir_flag_spec_ld=
7380 hardcode_libdir_separator=
7381 hardcode_minus_L=no
7382 hardcode_shlibpath_var=unsupported
7383 inherit_rpath=no
7384 link_all_deplibs=unknown
7385 module_cmds=
7386 module_expsym_cmds=
7387 old_archive_from_new_cmds=
7388 old_archive_from_expsyms_cmds=
7389 thread_safe_flag_spec=
7390 whole_archive_flag_spec=
7391 # include_expsyms should be a list of space-separated symbols to be *always*
7392 # included in the symbol list
7393 include_expsyms=
7394 # exclude_expsyms can be an extended regexp of symbols to exclude
7395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7397 # as well as any symbol that contains `d'.
7398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7400 # platforms (ab)use it in PIC code, but their linkers get confused if
7401 # the symbol is explicitly referenced. Since portable code cannot
7402 # rely on this symbol name, it's probably fine to never include it in
7403 # preloaded symbol tables.
7404 # Exclude shared library initialization/finalization symbols.
7405 extract_expsyms_cmds=
7406
7407 case $host_os in
7408 cygwin* | mingw* | pw32* | cegcc*)
7409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7410 # When not using gcc, we currently assume that we are using
7411 # Microsoft Visual C++.
7412 if test "$GCC" != yes; then
7413 with_gnu_ld=no
7414 fi
7415 ;;
7416 interix*)
7417 # we just hope/assume this is gcc and not c89 (= MSVC++)
7418 with_gnu_ld=yes
7419 ;;
7420 openbsd*)
7421 with_gnu_ld=no
7422 ;;
7423 esac
7424
7425 ld_shlibs=yes
7426 if test "$with_gnu_ld" = yes; then
7427 # If archive_cmds runs LD, not CC, wlarc should be empty
7428 wlarc='${wl}'
7429
7430 # Set some defaults for GNU ld with shared library support. These
7431 # are reset later if shared libraries are not supported. Putting them
7432 # here allows them to be overridden if necessary.
7433 runpath_var=LD_RUN_PATH
7434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7435 export_dynamic_flag_spec='${wl}--export-dynamic'
7436 # ancient GNU ld didn't support --whole-archive et. al.
7437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7438 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7439 else
7440 whole_archive_flag_spec=
7441 fi
7442 supports_anon_versioning=no
7443 case `$LD -v 2>&1` in
7444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7447 *\ 2.11.*) ;; # other 2.11 versions
7448 *) supports_anon_versioning=yes ;;
7449 esac
7450
7451 # See if GNU ld supports shared libraries.
7452 case $host_os in
7453 aix[3-9]*)
7454 # On AIX/PPC, the GNU linker is very broken
7455 if test "$host_cpu" != ia64; then
7456 ld_shlibs=no
7457 cat <<_LT_EOF 1>&2
7458
7459 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7460 *** to be unable to reliably create shared libraries on AIX.
7461 *** Therefore, libtool is disabling shared libraries support. If you
7462 *** really care for shared libraries, you may want to modify your PATH
7463 *** so that a non-GNU linker is found, and then restart.
7464
7465 _LT_EOF
7466 fi
7467 ;;
7468
7469 amigaos*)
7470 case $host_cpu in
7471 powerpc)
7472 # see comment about AmigaOS4 .so support
7473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7474 archive_expsym_cmds=''
7475 ;;
7476 m68k)
7477 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 hardcode_minus_L=yes
7480 ;;
7481 esac
7482 ;;
7483
7484 beos*)
7485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7486 allow_undefined_flag=unsupported
7487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7488 # support --undefined. This deserves some investigation. FIXME
7489 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7490 else
7491 ld_shlibs=no
7492 fi
7493 ;;
7494
7495 cygwin* | mingw* | pw32* | cegcc*)
7496 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7497 # as there is no search path for DLLs.
7498 hardcode_libdir_flag_spec='-L$libdir'
7499 allow_undefined_flag=unsupported
7500 always_export_symbols=no
7501 enable_shared_with_static_runtimes=yes
7502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7503
7504 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7506 # If the export-symbols file already is a .def file (1st line
7507 # is EXPORTS), use it as is; otherwise, prepend...
7508 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7509 cp $export_symbols $output_objdir/$soname.def;
7510 else
7511 echo EXPORTS > $output_objdir/$soname.def;
7512 cat $export_symbols >> $output_objdir/$soname.def;
7513 fi~
7514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7515 else
7516 ld_shlibs=no
7517 fi
7518 ;;
7519
7520 interix[3-9]*)
7521 hardcode_direct=no
7522 hardcode_shlibpath_var=no
7523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7524 export_dynamic_flag_spec='${wl}-E'
7525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7526 # Instead, shared libraries are loaded at an image base (0x10000000 by
7527 # default) and relocated if they conflict, which is a slow very memory
7528 # consuming and fragmenting process. To avoid this, we pick a random,
7529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7530 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7532 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7533 ;;
7534
7535 gnu* | linux* | tpf* | k*bsd*-gnu)
7536 tmp_diet=no
7537 if test "$host_os" = linux-dietlibc; then
7538 case $cc_basename in
7539 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7540 esac
7541 fi
7542 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7543 && test "$tmp_diet" = no
7544 then
7545 tmp_addflag=
7546 tmp_sharedflag='-shared'
7547 case $cc_basename,$host_cpu in
7548 pgcc*) # Portland Group C compiler
7549 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7550 tmp_addflag=' $pic_flag'
7551 ;;
7552 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7553 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7554 tmp_addflag=' $pic_flag -Mnomain' ;;
7555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7556 tmp_addflag=' -i_dynamic' ;;
7557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7558 tmp_addflag=' -i_dynamic -nofor_main' ;;
7559 ifc* | ifort*) # Intel Fortran compiler
7560 tmp_addflag=' -nofor_main' ;;
7561 lf95*) # Lahey Fortran 8.1
7562 whole_archive_flag_spec=
7563 tmp_sharedflag='--shared' ;;
7564 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7565 tmp_sharedflag='-qmkshrobj'
7566 tmp_addflag= ;;
7567 esac
7568 case `$CC -V 2>&1 | sed 5q` in
7569 *Sun\ C*) # Sun C 5.9
7570 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7571 compiler_needs_object=yes
7572 tmp_sharedflag='-G' ;;
7573 *Sun\ F*) # Sun Fortran 8.3
7574 tmp_sharedflag='-G' ;;
7575 esac
7576 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7577
7578 if test "x$supports_anon_versioning" = xyes; then
7579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7581 echo "local: *; };" >> $output_objdir/$libname.ver~
7582 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7583 fi
7584
7585 case $cc_basename in
7586 xlf*)
7587 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7588 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7589 hardcode_libdir_flag_spec=
7590 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7591 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7592 if test "x$supports_anon_versioning" = xyes; then
7593 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7595 echo "local: *; };" >> $output_objdir/$libname.ver~
7596 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7597 fi
7598 ;;
7599 esac
7600 else
7601 ld_shlibs=no
7602 fi
7603 ;;
7604
7605 netbsd*)
7606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7607 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7608 wlarc=
7609 else
7610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7611 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7612 fi
7613 ;;
7614
7615 solaris*)
7616 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7617 ld_shlibs=no
7618 cat <<_LT_EOF 1>&2
7619
7620 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7621 *** create shared libraries on Solaris systems. Therefore, libtool
7622 *** is disabling shared libraries support. We urge you to upgrade GNU
7623 *** binutils to release 2.9.1 or newer. Another option is to modify
7624 *** your PATH or compiler configuration so that the native linker is
7625 *** used, and then restart.
7626
7627 _LT_EOF
7628 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7631 else
7632 ld_shlibs=no
7633 fi
7634 ;;
7635
7636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7637 case `$LD -v 2>&1` in
7638 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7639 ld_shlibs=no
7640 cat <<_LT_EOF 1>&2
7641
7642 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7643 *** reliably create shared libraries on SCO systems. Therefore, libtool
7644 *** is disabling shared libraries support. We urge you to upgrade GNU
7645 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7646 *** your PATH or compiler configuration so that the native linker is
7647 *** used, and then restart.
7648
7649 _LT_EOF
7650 ;;
7651 *)
7652 # For security reasons, it is highly recommended that you always
7653 # use absolute paths for naming shared libraries, and exclude the
7654 # DT_RUNPATH tag from executables and libraries. But doing so
7655 # requires that you compile everything twice, which is a pain.
7656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7660 else
7661 ld_shlibs=no
7662 fi
7663 ;;
7664 esac
7665 ;;
7666
7667 sunos4*)
7668 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7669 wlarc=
7670 hardcode_direct=yes
7671 hardcode_shlibpath_var=no
7672 ;;
7673
7674 *)
7675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7678 else
7679 ld_shlibs=no
7680 fi
7681 ;;
7682 esac
7683
7684 if test "$ld_shlibs" = no; then
7685 runpath_var=
7686 hardcode_libdir_flag_spec=
7687 export_dynamic_flag_spec=
7688 whole_archive_flag_spec=
7689 fi
7690 else
7691 # PORTME fill in a description of your system's linker (not GNU ld)
7692 case $host_os in
7693 aix3*)
7694 allow_undefined_flag=unsupported
7695 always_export_symbols=yes
7696 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7697 # Note: this linker hardcodes the directories in LIBPATH if there
7698 # are no directories specified by -L.
7699 hardcode_minus_L=yes
7700 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7701 # Neither direct hardcoding nor static linking is supported with a
7702 # broken collect2.
7703 hardcode_direct=unsupported
7704 fi
7705 ;;
7706
7707 aix[4-9]*)
7708 if test "$host_cpu" = ia64; then
7709 # On IA64, the linker does run time linking by default, so we don't
7710 # have to do anything special.
7711 aix_use_runtimelinking=no
7712 exp_sym_flag='-Bexport'
7713 no_entry_flag=""
7714 else
7715 # If we're using GNU nm, then we don't want the "-C" option.
7716 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7717 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7718 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7719 else
7720 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7721 fi
7722 aix_use_runtimelinking=no
7723
7724 # Test if we are trying to use run time linking or normal
7725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7726 # need to do runtime linking.
7727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7728 for ld_flag in $LDFLAGS; do
7729 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7730 aix_use_runtimelinking=yes
7731 break
7732 fi
7733 done
7734 ;;
7735 esac
7736
7737 exp_sym_flag='-bexport'
7738 no_entry_flag='-bnoentry'
7739 fi
7740
7741 # When large executables or shared objects are built, AIX ld can
7742 # have problems creating the table of contents. If linking a library
7743 # or program results in "error TOC overflow" add -mminimal-toc to
7744 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7745 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7746
7747 archive_cmds=''
7748 hardcode_direct=yes
7749 hardcode_direct_absolute=yes
7750 hardcode_libdir_separator=':'
7751 link_all_deplibs=yes
7752 file_list_spec='${wl}-f,'
7753
7754 if test "$GCC" = yes; then
7755 case $host_os in aix4.[012]|aix4.[012].*)
7756 # We only want to do this on AIX 4.2 and lower, the check
7757 # below for broken collect2 doesn't work under 4.3+
7758 collect2name=`${CC} -print-prog-name=collect2`
7759 if test -f "$collect2name" &&
7760 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7761 then
7762 # We have reworked collect2
7763 :
7764 else
7765 # We have old collect2
7766 hardcode_direct=unsupported
7767 # It fails to find uninstalled libraries when the uninstalled
7768 # path is not listed in the libpath. Setting hardcode_minus_L
7769 # to unsupported forces relinking
7770 hardcode_minus_L=yes
7771 hardcode_libdir_flag_spec='-L$libdir'
7772 hardcode_libdir_separator=
7773 fi
7774 ;;
7775 esac
7776 shared_flag='-shared'
7777 if test "$aix_use_runtimelinking" = yes; then
7778 shared_flag="$shared_flag "'${wl}-G'
7779 fi
7780 else
7781 # not using gcc
7782 if test "$host_cpu" = ia64; then
7783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7784 # chokes on -Wl,-G. The following line is correct:
7785 shared_flag='-G'
7786 else
7787 if test "$aix_use_runtimelinking" = yes; then
7788 shared_flag='${wl}-G'
7789 else
7790 shared_flag='${wl}-bM:SRE'
7791 fi
7792 fi
7793 fi
7794
7795 export_dynamic_flag_spec='${wl}-bexpall'
7796 # It seems that -bexpall does not export symbols beginning with
7797 # underscore (_), so it is better to generate a list of symbols to export.
7798 always_export_symbols=yes
7799 if test "$aix_use_runtimelinking" = yes; then
7800 # Warning - without using the other runtime loading flags (-brtl),
7801 # -berok will link without error, but may produce a broken library.
7802 allow_undefined_flag='-berok'
7803 # Determine the default libpath from the value encoded in an
7804 # empty executable.
7805 if test x$gcc_no_link = xyes; then
7806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7808 { (exit 1); exit 1; }; }
7809 fi
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h. */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816
7817 int
7818 main ()
7819 {
7820
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847
7848 lt_aix_libpath_sed='
7849 /Import File Strings/,/^$/ {
7850 /^0/ {
7851 s/^0 *\(.*\)$/\1/
7852 p
7853 }
7854 }'
7855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7856 # Check for a 64-bit object if we didn't find anything.
7857 if test -z "$aix_libpath"; then
7858 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7859 fi
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 fi
7865 rm -f conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7868
7869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7870 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7871 else
7872 if test "$host_cpu" = ia64; then
7873 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7874 allow_undefined_flag="-z nodefs"
7875 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7876 else
7877 # Determine the default libpath from the value encoded in an
7878 # empty executable.
7879 if test x$gcc_no_link = xyes; then
7880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7882 { (exit 1); exit 1; }; }
7883 fi
7884 cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h. */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890
7891 int
7892 main ()
7893 {
7894
7895 ;
7896 return 0;
7897 }
7898 _ACEOF
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901 (eval $ac_link) 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -z "$ac_c_werror_flag"
7909 || test ! -s conftest.err'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921
7922 lt_aix_libpath_sed='
7923 /Import File Strings/,/^$/ {
7924 /^0/ {
7925 s/^0 *\(.*\)$/\1/
7926 p
7927 }
7928 }'
7929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7930 # Check for a 64-bit object if we didn't find anything.
7931 if test -z "$aix_libpath"; then
7932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7933 fi
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 fi
7939 rm -f conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7942
7943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7944 # Warning - without using the other run time loading flags,
7945 # -berok will link without error, but may produce a broken library.
7946 no_undefined_flag=' ${wl}-bernotok'
7947 allow_undefined_flag=' ${wl}-berok'
7948 # Exported symbols can be pulled into shared objects from archives
7949 whole_archive_flag_spec='$convenience'
7950 archive_cmds_need_lc=yes
7951 # This is similar to how AIX traditionally builds its shared libraries.
7952 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7953 fi
7954 fi
7955 ;;
7956
7957 amigaos*)
7958 case $host_cpu in
7959 powerpc)
7960 # see comment about AmigaOS4 .so support
7961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962 archive_expsym_cmds=''
7963 ;;
7964 m68k)
7965 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7966 hardcode_libdir_flag_spec='-L$libdir'
7967 hardcode_minus_L=yes
7968 ;;
7969 esac
7970 ;;
7971
7972 bsdi[45]*)
7973 export_dynamic_flag_spec=-rdynamic
7974 ;;
7975
7976 cygwin* | mingw* | pw32* | cegcc*)
7977 # When not using gcc, we currently assume that we are using
7978 # Microsoft Visual C++.
7979 # hardcode_libdir_flag_spec is actually meaningless, as there is
7980 # no search path for DLLs.
7981 hardcode_libdir_flag_spec=' '
7982 allow_undefined_flag=unsupported
7983 # Tell ltmain to make .lib files, not .a files.
7984 libext=lib
7985 # Tell ltmain to make .dll files, not .so files.
7986 shrext_cmds=".dll"
7987 # FIXME: Setting linknames here is a bad hack.
7988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7989 # The linker will automatically build a .lib file if we build a DLL.
7990 old_archive_from_new_cmds='true'
7991 # FIXME: Should let the user specify the lib program.
7992 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7993 fix_srcfile_path='`cygpath -w "$srcfile"`'
7994 enable_shared_with_static_runtimes=yes
7995 ;;
7996
7997 darwin* | rhapsody*)
7998
7999
8000 archive_cmds_need_lc=no
8001 hardcode_direct=no
8002 hardcode_automatic=yes
8003 hardcode_shlibpath_var=unsupported
8004 whole_archive_flag_spec=''
8005 link_all_deplibs=yes
8006 allow_undefined_flag="$_lt_dar_allow_undefined"
8007 case $cc_basename in
8008 ifort*) _lt_dar_can_shared=yes ;;
8009 *) _lt_dar_can_shared=$GCC ;;
8010 esac
8011 if test "$_lt_dar_can_shared" = "yes"; then
8012 output_verbose_link_cmd=echo
8013 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8014 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8015 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8016 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8017
8018 else
8019 ld_shlibs=no
8020 fi
8021
8022 ;;
8023
8024 dgux*)
8025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8026 hardcode_libdir_flag_spec='-L$libdir'
8027 hardcode_shlibpath_var=no
8028 ;;
8029
8030 freebsd1*)
8031 ld_shlibs=no
8032 ;;
8033
8034 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8035 # support. Future versions do this automatically, but an explicit c++rt0.o
8036 # does not break anything, and helps significantly (at the cost of a little
8037 # extra space).
8038 freebsd2.2*)
8039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8040 hardcode_libdir_flag_spec='-R$libdir'
8041 hardcode_direct=yes
8042 hardcode_shlibpath_var=no
8043 ;;
8044
8045 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8046 freebsd2*)
8047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8048 hardcode_direct=yes
8049 hardcode_minus_L=yes
8050 hardcode_shlibpath_var=no
8051 ;;
8052
8053 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8054 freebsd* | dragonfly*)
8055 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8056 hardcode_libdir_flag_spec='-R$libdir'
8057 hardcode_direct=yes
8058 hardcode_shlibpath_var=no
8059 ;;
8060
8061 hpux9*)
8062 if test "$GCC" = yes; then
8063 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8064 else
8065 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8066 fi
8067 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8068 hardcode_libdir_separator=:
8069 hardcode_direct=yes
8070
8071 # hardcode_minus_L: Not really in the search PATH,
8072 # but as the default location of the library.
8073 hardcode_minus_L=yes
8074 export_dynamic_flag_spec='${wl}-E'
8075 ;;
8076
8077 hpux10*)
8078 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8079 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8080 else
8081 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8082 fi
8083 if test "$with_gnu_ld" = no; then
8084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8085 hardcode_libdir_flag_spec_ld='+b $libdir'
8086 hardcode_libdir_separator=:
8087 hardcode_direct=yes
8088 hardcode_direct_absolute=yes
8089 export_dynamic_flag_spec='${wl}-E'
8090 # hardcode_minus_L: Not really in the search PATH,
8091 # but as the default location of the library.
8092 hardcode_minus_L=yes
8093 fi
8094 ;;
8095
8096 hpux11*)
8097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8098 case $host_cpu in
8099 hppa*64*)
8100 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8101 ;;
8102 ia64*)
8103 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8104 ;;
8105 *)
8106 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8107 ;;
8108 esac
8109 else
8110 case $host_cpu in
8111 hppa*64*)
8112 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8113 ;;
8114 ia64*)
8115 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8116 ;;
8117 *)
8118 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8119 ;;
8120 esac
8121 fi
8122 if test "$with_gnu_ld" = no; then
8123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8124 hardcode_libdir_separator=:
8125
8126 case $host_cpu in
8127 hppa*64*|ia64*)
8128 hardcode_direct=no
8129 hardcode_shlibpath_var=no
8130 ;;
8131 *)
8132 hardcode_direct=yes
8133 hardcode_direct_absolute=yes
8134 export_dynamic_flag_spec='${wl}-E'
8135
8136 # hardcode_minus_L: Not really in the search PATH,
8137 # but as the default location of the library.
8138 hardcode_minus_L=yes
8139 ;;
8140 esac
8141 fi
8142 ;;
8143
8144 irix5* | irix6* | nonstopux*)
8145 if test "$GCC" = yes; then
8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8147 # Try to use the -exported_symbol ld option, if it does not
8148 # work, assume that -exports_file does not work either and
8149 # implicitly export all symbols.
8150 save_LDFLAGS="$LDFLAGS"
8151 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8152 if test x$gcc_no_link = xyes; then
8153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8155 { (exit 1); exit 1; }; }
8156 fi
8157 cat >conftest.$ac_ext <<_ACEOF
8158 int foo(void) {}
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8183
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 fi
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191 LDFLAGS="$save_LDFLAGS"
8192 else
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8195 fi
8196 archive_cmds_need_lc='no'
8197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8198 hardcode_libdir_separator=:
8199 inherit_rpath=yes
8200 link_all_deplibs=yes
8201 ;;
8202
8203 netbsd*)
8204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8206 else
8207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8208 fi
8209 hardcode_libdir_flag_spec='-R$libdir'
8210 hardcode_direct=yes
8211 hardcode_shlibpath_var=no
8212 ;;
8213
8214 newsos6)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_direct=yes
8217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218 hardcode_libdir_separator=:
8219 hardcode_shlibpath_var=no
8220 ;;
8221
8222 *nto* | *qnx*)
8223 ;;
8224
8225 openbsd*)
8226 if test -f /usr/libexec/ld.so; then
8227 hardcode_direct=yes
8228 hardcode_shlibpath_var=no
8229 hardcode_direct_absolute=yes
8230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8234 export_dynamic_flag_spec='${wl}-E'
8235 else
8236 case $host_os in
8237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8239 hardcode_libdir_flag_spec='-R$libdir'
8240 ;;
8241 *)
8242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244 ;;
8245 esac
8246 fi
8247 else
8248 ld_shlibs=no
8249 fi
8250 ;;
8251
8252 os2*)
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 hardcode_minus_L=yes
8255 allow_undefined_flag=unsupported
8256 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8258 ;;
8259
8260 osf3*)
8261 if test "$GCC" = yes; then
8262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8263 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8264 else
8265 allow_undefined_flag=' -expect_unresolved \*'
8266 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8267 fi
8268 archive_cmds_need_lc='no'
8269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8270 hardcode_libdir_separator=:
8271 ;;
8272
8273 osf4* | osf5*) # as osf3* with the addition of -msym flag
8274 if test "$GCC" = yes; then
8275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8276 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8278 else
8279 allow_undefined_flag=' -expect_unresolved \*'
8280 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8281 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8282 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8283
8284 # Both c and cxx compiler support -rpath directly
8285 hardcode_libdir_flag_spec='-rpath $libdir'
8286 fi
8287 archive_cmds_need_lc='no'
8288 hardcode_libdir_separator=:
8289 ;;
8290
8291 solaris*)
8292 no_undefined_flag=' -z defs'
8293 if test "$GCC" = yes; then
8294 wlarc='${wl}'
8295 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8297 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8298 else
8299 case `$CC -V 2>&1` in
8300 *"Compilers 5.0"*)
8301 wlarc=''
8302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8305 ;;
8306 *)
8307 wlarc='${wl}'
8308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8311 ;;
8312 esac
8313 fi
8314 hardcode_libdir_flag_spec='-R$libdir'
8315 hardcode_shlibpath_var=no
8316 case $host_os in
8317 solaris2.[0-5] | solaris2.[0-5].*) ;;
8318 *)
8319 # The compiler driver will combine and reorder linker options,
8320 # but understands `-z linker_flag'. GCC discards it without `$wl',
8321 # but is careful enough not to reorder.
8322 # Supported since Solaris 2.6 (maybe 2.5.1?)
8323 if test "$GCC" = yes; then
8324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8325 else
8326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8327 fi
8328 ;;
8329 esac
8330 link_all_deplibs=yes
8331 ;;
8332
8333 sunos4*)
8334 if test "x$host_vendor" = xsequent; then
8335 # Use $CC to link under sequent, because it throws in some extra .o
8336 # files that make .init and .fini sections work.
8337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8338 else
8339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8340 fi
8341 hardcode_libdir_flag_spec='-L$libdir'
8342 hardcode_direct=yes
8343 hardcode_minus_L=yes
8344 hardcode_shlibpath_var=no
8345 ;;
8346
8347 sysv4)
8348 case $host_vendor in
8349 sni)
8350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351 hardcode_direct=yes # is this really true???
8352 ;;
8353 siemens)
8354 ## LD is ld it makes a PLAMLIB
8355 ## CC just makes a GrossModule.
8356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8357 reload_cmds='$CC -r -o $output$reload_objs'
8358 hardcode_direct=no
8359 ;;
8360 motorola)
8361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8363 ;;
8364 esac
8365 runpath_var='LD_RUN_PATH'
8366 hardcode_shlibpath_var=no
8367 ;;
8368
8369 sysv4.3*)
8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371 hardcode_shlibpath_var=no
8372 export_dynamic_flag_spec='-Bexport'
8373 ;;
8374
8375 sysv4*MP*)
8376 if test -d /usr/nec; then
8377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378 hardcode_shlibpath_var=no
8379 runpath_var=LD_RUN_PATH
8380 hardcode_runpath_var=yes
8381 ld_shlibs=yes
8382 fi
8383 ;;
8384
8385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8386 no_undefined_flag='${wl}-z,text'
8387 archive_cmds_need_lc=no
8388 hardcode_shlibpath_var=no
8389 runpath_var='LD_RUN_PATH'
8390
8391 if test "$GCC" = yes; then
8392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8394 else
8395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 fi
8398 ;;
8399
8400 sysv5* | sco3.2v5* | sco5v6*)
8401 # Note: We can NOT use -z defs as we might desire, because we do not
8402 # link with -lc, and that would cause any symbols used from libc to
8403 # always be unresolved, which means just about no library would
8404 # ever link correctly. If we're not using GNU ld we use -z text
8405 # though, which does catch some bad symbols but isn't as heavy-handed
8406 # as -z defs.
8407 no_undefined_flag='${wl}-z,text'
8408 allow_undefined_flag='${wl}-z,nodefs'
8409 archive_cmds_need_lc=no
8410 hardcode_shlibpath_var=no
8411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8412 hardcode_libdir_separator=':'
8413 link_all_deplibs=yes
8414 export_dynamic_flag_spec='${wl}-Bexport'
8415 runpath_var='LD_RUN_PATH'
8416
8417 if test "$GCC" = yes; then
8418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420 else
8421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 fi
8424 ;;
8425
8426 uts4*)
8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_libdir_flag_spec='-L$libdir'
8429 hardcode_shlibpath_var=no
8430 ;;
8431
8432 *)
8433 ld_shlibs=no
8434 ;;
8435 esac
8436
8437 if test x$host_vendor = xsni; then
8438 case $host in
8439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8440 export_dynamic_flag_spec='${wl}-Blargedynsym'
8441 ;;
8442 esac
8443 fi
8444 fi
8445
8446 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8447 echo "${ECHO_T}$ld_shlibs" >&6
8448 test "$ld_shlibs" = no && can_build_shared=no
8449
8450 with_gnu_ld=$with_gnu_ld
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466 #
8467 # Do we need to explicitly link libc?
8468 #
8469 case "x$archive_cmds_need_lc" in
8470 x|xyes)
8471 # Assume -lc should be added
8472 archive_cmds_need_lc=yes
8473
8474 if test "$enable_shared" = yes && test "$GCC" = yes; then
8475 case $archive_cmds in
8476 *'~'*)
8477 # FIXME: we may have to deal with multi-command sequences.
8478 ;;
8479 '$CC '*)
8480 # Test whether the compiler implicitly links with -lc since on some
8481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8482 # to ld, don't add -lc before -lgcc.
8483 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8485 $RM conftest*
8486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } 2>conftest.err; then
8493 soname=conftest
8494 lib=conftest
8495 libobjs=conftest.$ac_objext
8496 deplibs=
8497 wl=$lt_prog_compiler_wl
8498 pic_flag=$lt_prog_compiler_pic
8499 compiler_flags=-v
8500 linker_flags=-v
8501 verstring=
8502 output_objdir=.
8503 libname=conftest
8504 lt_save_allow_undefined_flag=$allow_undefined_flag
8505 allow_undefined_flag=
8506 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8507 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }
8511 then
8512 archive_cmds_need_lc=no
8513 else
8514 archive_cmds_need_lc=yes
8515 fi
8516 allow_undefined_flag=$lt_save_allow_undefined_flag
8517 else
8518 cat conftest.err 1>&5
8519 fi
8520 $RM conftest*
8521 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8522 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8523 ;;
8524 esac
8525 fi
8526 ;;
8527 esac
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8686 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8687
8688 if test "$GCC" = yes; then
8689 case $host_os in
8690 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8691 *) lt_awk_arg="/^libraries:/" ;;
8692 esac
8693 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8694 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8695 # if the path contains ";" then we assume it to be the separator
8696 # otherwise default to the standard path separator (i.e. ":") - it is
8697 # assumed that no part of a normal pathname contains ";" but that should
8698 # okay in the real world where ";" in dirpaths is itself problematic.
8699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8700 else
8701 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8702 fi
8703 # Ok, now we have the path, separated by spaces, we can step through it
8704 # and add multilib dir if necessary.
8705 lt_tmp_lt_search_path_spec=
8706 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8707 for lt_sys_path in $lt_search_path_spec; do
8708 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8710 else
8711 test -d "$lt_sys_path" && \
8712 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8713 fi
8714 done
8715 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8716 BEGIN {RS=" "; FS="/|\n";} {
8717 lt_foo="";
8718 lt_count=0;
8719 for (lt_i = NF; lt_i > 0; lt_i--) {
8720 if ($lt_i != "" && $lt_i != ".") {
8721 if ($lt_i == "..") {
8722 lt_count++;
8723 } else {
8724 if (lt_count == 0) {
8725 lt_foo="/" $lt_i lt_foo;
8726 } else {
8727 lt_count--;
8728 }
8729 }
8730 }
8731 }
8732 if (lt_foo != "") { lt_freq[lt_foo]++; }
8733 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8734 }'`
8735 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8736 else
8737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8738 fi
8739 library_names_spec=
8740 libname_spec='lib$name'
8741 soname_spec=
8742 shrext_cmds=".so"
8743 postinstall_cmds=
8744 postuninstall_cmds=
8745 finish_cmds=
8746 finish_eval=
8747 shlibpath_var=
8748 shlibpath_overrides_runpath=unknown
8749 version_type=none
8750 dynamic_linker="$host_os ld.so"
8751 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8752 need_lib_prefix=unknown
8753 hardcode_into_libs=no
8754
8755 # when you set need_version to no, make sure it does not cause -set_version
8756 # flags to be left without arguments
8757 need_version=unknown
8758
8759 case $host_os in
8760 aix3*)
8761 version_type=linux
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8763 shlibpath_var=LIBPATH
8764
8765 # AIX 3 has no versioning support, so we append a major version to the name.
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 ;;
8768
8769 aix[4-9]*)
8770 version_type=linux
8771 need_lib_prefix=no
8772 need_version=no
8773 hardcode_into_libs=yes
8774 if test "$host_cpu" = ia64; then
8775 # AIX 5 supports IA64
8776 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8777 shlibpath_var=LD_LIBRARY_PATH
8778 else
8779 # With GCC up to 2.95.x, collect2 would create an import file
8780 # for dependence libraries. The import file would start with
8781 # the line `#! .'. This would cause the generated library to
8782 # depend on `.', always an invalid library. This was fixed in
8783 # development snapshots of GCC prior to 3.0.
8784 case $host_os in
8785 aix4 | aix4.[01] | aix4.[01].*)
8786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8787 echo ' yes '
8788 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8789 :
8790 else
8791 can_build_shared=no
8792 fi
8793 ;;
8794 esac
8795 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8796 # soname into executable. Probably we can add versioning support to
8797 # collect2, so additional links can be useful in future.
8798 if test "$aix_use_runtimelinking" = yes; then
8799 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8800 # instead of lib<name>.a to let people know that these are not
8801 # typical AIX shared libraries.
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803 else
8804 # We preserve .a as extension for shared libraries through AIX4.2
8805 # and later when we are not doing run time linking.
8806 library_names_spec='${libname}${release}.a $libname.a'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 fi
8809 shlibpath_var=LIBPATH
8810 fi
8811 ;;
8812
8813 amigaos*)
8814 case $host_cpu in
8815 powerpc)
8816 # Since July 2007 AmigaOS4 officially supports .so libraries.
8817 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819 ;;
8820 m68k)
8821 library_names_spec='$libname.ixlibrary $libname.a'
8822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8823 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8824 ;;
8825 esac
8826 ;;
8827
8828 beos*)
8829 library_names_spec='${libname}${shared_ext}'
8830 dynamic_linker="$host_os ld.so"
8831 shlibpath_var=LIBRARY_PATH
8832 ;;
8833
8834 bsdi[45]*)
8835 version_type=linux
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843 # the default ld.so.conf also contains /usr/contrib/lib and
8844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845 # libtool to hard-code these into programs
8846 ;;
8847
8848 cygwin* | mingw* | pw32* | cegcc*)
8849 version_type=windows
8850 shrext_cmds=".dll"
8851 need_version=no
8852 need_lib_prefix=no
8853
8854 case $GCC,$host_os in
8855 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8856 library_names_spec='$libname.dll.a'
8857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8858 postinstall_cmds='base_file=`basename \${file}`~
8859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8860 dldir=$destdir/`dirname \$dlpath`~
8861 test -d \$dldir || mkdir -p \$dldir~
8862 $install_prog $dir/$dlname \$dldir/$dlname~
8863 chmod a+x \$dldir/$dlname~
8864 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8865 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8866 fi'
8867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8868 dlpath=$dir/\$dldll~
8869 $RM \$dlpath'
8870 shlibpath_overrides_runpath=yes
8871
8872 case $host_os in
8873 cygwin*)
8874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8877 ;;
8878 mingw* | cegcc*)
8879 # MinGW DLLs use traditional 'lib' prefix
8880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8882 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8883 # It is most probably a Windows format PATH printed by
8884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8885 # path with ; separators, and with drive letters. We can handle the
8886 # drive letters (cygwin fileutils understands them), so leave them,
8887 # especially as we might pass files found there to a mingw objdump,
8888 # which wouldn't understand a cygwinified path. Ahh.
8889 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8890 else
8891 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8892 fi
8893 ;;
8894 pw32*)
8895 # pw32 DLLs use 'pw' prefix rather than 'lib'
8896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897 ;;
8898 esac
8899 ;;
8900
8901 *)
8902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8903 ;;
8904 esac
8905 dynamic_linker='Win32 ld.exe'
8906 # FIXME: first we should search . and the directory the executable is in
8907 shlibpath_var=PATH
8908 ;;
8909
8910 darwin* | rhapsody*)
8911 dynamic_linker="$host_os dyld"
8912 version_type=darwin
8913 need_lib_prefix=no
8914 need_version=no
8915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8916 soname_spec='${libname}${release}${major}$shared_ext'
8917 shlibpath_overrides_runpath=yes
8918 shlibpath_var=DYLD_LIBRARY_PATH
8919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8920
8921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8923 ;;
8924
8925 dgux*)
8926 version_type=linux
8927 need_lib_prefix=no
8928 need_version=no
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 ;;
8933
8934 freebsd1*)
8935 dynamic_linker=no
8936 ;;
8937
8938 freebsd* | dragonfly*)
8939 # DragonFly does not have aout. When/if they implement a new
8940 # versioning mechanism, adjust this.
8941 if test -x /usr/bin/objformat; then
8942 objformat=`/usr/bin/objformat`
8943 else
8944 case $host_os in
8945 freebsd[123]*) objformat=aout ;;
8946 *) objformat=elf ;;
8947 esac
8948 fi
8949 version_type=freebsd-$objformat
8950 case $version_type in
8951 freebsd-elf*)
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8953 need_version=no
8954 need_lib_prefix=no
8955 ;;
8956 freebsd-*)
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8958 need_version=yes
8959 ;;
8960 esac
8961 shlibpath_var=LD_LIBRARY_PATH
8962 case $host_os in
8963 freebsd2*)
8964 shlibpath_overrides_runpath=yes
8965 ;;
8966 freebsd3.[01]* | freebsdelf3.[01]*)
8967 shlibpath_overrides_runpath=yes
8968 hardcode_into_libs=yes
8969 ;;
8970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8972 shlibpath_overrides_runpath=no
8973 hardcode_into_libs=yes
8974 ;;
8975 *) # from 4.6 on, and DragonFly
8976 shlibpath_overrides_runpath=yes
8977 hardcode_into_libs=yes
8978 ;;
8979 esac
8980 ;;
8981
8982 gnu*)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 hardcode_into_libs=yes
8990 ;;
8991
8992 hpux9* | hpux10* | hpux11*)
8993 # Give a soname corresponding to the major version so that dld.sl refuses to
8994 # link against other versions.
8995 version_type=sunos
8996 need_lib_prefix=no
8997 need_version=no
8998 case $host_cpu in
8999 ia64*)
9000 shrext_cmds='.so'
9001 hardcode_into_libs=yes
9002 dynamic_linker="$host_os dld.so"
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 if test "X$HPUX_IA64_MODE" = X32; then
9008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9009 else
9010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9011 fi
9012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013 ;;
9014 hppa*64*)
9015 shrext_cmds='.sl'
9016 hardcode_into_libs=yes
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9024 ;;
9025 *)
9026 shrext_cmds='.sl'
9027 dynamic_linker="$host_os dld.sl"
9028 shlibpath_var=SHLIB_PATH
9029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 ;;
9033 esac
9034 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9035 postinstall_cmds='chmod 555 $lib'
9036 ;;
9037
9038 interix[3-9]*)
9039 version_type=linux
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=no
9047 hardcode_into_libs=yes
9048 ;;
9049
9050 irix5* | irix6* | nonstopux*)
9051 case $host_os in
9052 nonstopux*) version_type=nonstopux ;;
9053 *)
9054 if test "$lt_cv_prog_gnu_ld" = yes; then
9055 version_type=linux
9056 else
9057 version_type=irix
9058 fi ;;
9059 esac
9060 need_lib_prefix=no
9061 need_version=no
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 case $host_os in
9065 irix5* | nonstopux*)
9066 libsuff= shlibsuff=
9067 ;;
9068 *)
9069 case $LD in # libtool.m4 will add one of these switches to LD
9070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9071 libsuff= shlibsuff= libmagic=32-bit;;
9072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9073 libsuff=32 shlibsuff=N32 libmagic=N32;;
9074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9076 *) libsuff= shlibsuff= libmagic=never-match;;
9077 esac
9078 ;;
9079 esac
9080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9081 shlibpath_overrides_runpath=no
9082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9084 hardcode_into_libs=yes
9085 ;;
9086
9087 # No shared lib support for Linux oldld, aout, or coff.
9088 linux*oldld* | linux*aout* | linux*coff*)
9089 dynamic_linker=no
9090 ;;
9091
9092 # This must be Linux ELF.
9093 linux* | k*bsd*-gnu)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=no
9102 # Some binutils ld are patched to set DT_RUNPATH
9103 save_LDFLAGS=$LDFLAGS
9104 save_libdir=$libdir
9105 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9106 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9107 if test x$gcc_no_link = xyes; then
9108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9110 { (exit 1); exit 1; }; }
9111 fi
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118
9119 int
9120 main ()
9121 {
9122
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 rm -f conftest.$ac_objext conftest$ac_exeext
9128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9129 (eval $ac_link) 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try='test -z "$ac_c_werror_flag"
9137 || test ! -s conftest.err'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; } &&
9143 { ac_try='test -s conftest$ac_exeext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 (eval $ac_try) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9150 shlibpath_overrides_runpath=yes
9151 fi
9152
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 fi
9158 rm -f conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
9160 LDFLAGS=$save_LDFLAGS
9161 libdir=$save_libdir
9162
9163 # This implies no fast_install, which is unacceptable.
9164 # Some rework will be needed to allow for fast_install
9165 # before this can be enabled.
9166 hardcode_into_libs=yes
9167
9168 # Append ld.so.conf contents to the search path
9169 if test -f /etc/ld.so.conf; then
9170 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9172 fi
9173
9174 # We used to test for /lib/ld.so.1 and disable shared libraries on
9175 # powerpc, because MkLinux only supported shared libraries with the
9176 # GNU dynamic linker. Since this was broken with cross compilers,
9177 # most powerpc-linux boxes support dynamic linking these days and
9178 # people can always --disable-shared, the test was removed, and we
9179 # assume the GNU/Linux dynamic linker is in use.
9180 dynamic_linker='GNU/Linux ld.so'
9181 ;;
9182
9183 netbsd*)
9184 version_type=sunos
9185 need_lib_prefix=no
9186 need_version=no
9187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9190 dynamic_linker='NetBSD (a.out) ld.so'
9191 else
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 dynamic_linker='NetBSD ld.elf_so'
9195 fi
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=yes
9198 hardcode_into_libs=yes
9199 ;;
9200
9201 newsos6)
9202 version_type=linux
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=yes
9206 ;;
9207
9208 *nto* | *qnx*)
9209 version_type=qnx
9210 need_lib_prefix=no
9211 need_version=no
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 shlibpath_overrides_runpath=no
9216 hardcode_into_libs=yes
9217 dynamic_linker='ldqnx.so'
9218 ;;
9219
9220 openbsd*)
9221 version_type=sunos
9222 sys_lib_dlsearch_path_spec="/usr/lib"
9223 need_lib_prefix=no
9224 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9225 case $host_os in
9226 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9227 *) need_version=no ;;
9228 esac
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9233 case $host_os in
9234 openbsd2.[89] | openbsd2.[89].*)
9235 shlibpath_overrides_runpath=no
9236 ;;
9237 *)
9238 shlibpath_overrides_runpath=yes
9239 ;;
9240 esac
9241 else
9242 shlibpath_overrides_runpath=yes
9243 fi
9244 ;;
9245
9246 os2*)
9247 libname_spec='$name'
9248 shrext_cmds=".dll"
9249 need_lib_prefix=no
9250 library_names_spec='$libname${shared_ext} $libname.a'
9251 dynamic_linker='OS/2 ld.exe'
9252 shlibpath_var=LIBPATH
9253 ;;
9254
9255 osf3* | osf4* | osf5*)
9256 version_type=osf
9257 need_lib_prefix=no
9258 need_version=no
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9264 ;;
9265
9266 rdos*)
9267 dynamic_linker=no
9268 ;;
9269
9270 solaris*)
9271 version_type=linux
9272 need_lib_prefix=no
9273 need_version=no
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9278 hardcode_into_libs=yes
9279 # ldd complains unless libraries are executable
9280 postinstall_cmds='chmod +x $lib'
9281 ;;
9282
9283 sunos4*)
9284 version_type=sunos
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=yes
9289 if test "$with_gnu_ld" = yes; then
9290 need_lib_prefix=no
9291 fi
9292 need_version=yes
9293 ;;
9294
9295 sysv4 | sysv4.3*)
9296 version_type=linux
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 case $host_vendor in
9301 sni)
9302 shlibpath_overrides_runpath=no
9303 need_lib_prefix=no
9304 runpath_var=LD_RUN_PATH
9305 ;;
9306 siemens)
9307 need_lib_prefix=no
9308 ;;
9309 motorola)
9310 need_lib_prefix=no
9311 need_version=no
9312 shlibpath_overrides_runpath=no
9313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9314 ;;
9315 esac
9316 ;;
9317
9318 sysv4*MP*)
9319 if test -d /usr/nec ;then
9320 version_type=linux
9321 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9322 soname_spec='$libname${shared_ext}.$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9324 fi
9325 ;;
9326
9327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9328 version_type=freebsd-elf
9329 need_lib_prefix=no
9330 need_version=no
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 shlibpath_overrides_runpath=yes
9335 hardcode_into_libs=yes
9336 if test "$with_gnu_ld" = yes; then
9337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9338 else
9339 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9340 case $host_os in
9341 sco3.2v5*)
9342 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9343 ;;
9344 esac
9345 fi
9346 sys_lib_dlsearch_path_spec='/usr/lib'
9347 ;;
9348
9349 tpf*)
9350 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9351 version_type=linux
9352 need_lib_prefix=no
9353 need_version=no
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 shlibpath_overrides_runpath=no
9357 hardcode_into_libs=yes
9358 ;;
9359
9360 uts4*)
9361 version_type=linux
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 ;;
9366
9367 *)
9368 dynamic_linker=no
9369 ;;
9370 esac
9371 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9372 echo "${ECHO_T}$dynamic_linker" >&6
9373 test "$dynamic_linker" = no && can_build_shared=no
9374
9375 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9376 if test "$GCC" = yes; then
9377 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9378 fi
9379
9380 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9381 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9382 fi
9383 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9384 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9385 fi
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9474 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9475 hardcode_action=
9476 if test -n "$hardcode_libdir_flag_spec" ||
9477 test -n "$runpath_var" ||
9478 test "X$hardcode_automatic" = "Xyes" ; then
9479
9480 # We can hardcode non-existent directories.
9481 if test "$hardcode_direct" != no &&
9482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9483 # have to relink, otherwise we might link with an installed library
9484 # when we should be linking with a yet-to-be-installed one
9485 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9486 test "$hardcode_minus_L" != no; then
9487 # Linking always hardcodes the temporary library directory.
9488 hardcode_action=relink
9489 else
9490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9491 hardcode_action=immediate
9492 fi
9493 else
9494 # We cannot hardcode anything, or else we can only hardcode existing
9495 # directories.
9496 hardcode_action=unsupported
9497 fi
9498 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9499 echo "${ECHO_T}$hardcode_action" >&6
9500
9501 if test "$hardcode_action" = relink ||
9502 test "$inherit_rpath" = yes; then
9503 # Fast installation is not supported
9504 enable_fast_install=no
9505 elif test "$shlibpath_overrides_runpath" = yes ||
9506 test "$enable_shared" = no; then
9507 # Fast installation is not necessary
9508 enable_fast_install=needless
9509 fi
9510
9511
9512
9513
9514
9515
9516 if test "x$enable_dlopen" != xyes; then
9517 enable_dlopen=unknown
9518 enable_dlopen_self=unknown
9519 enable_dlopen_self_static=unknown
9520 else
9521 lt_cv_dlopen=no
9522 lt_cv_dlopen_libs=
9523
9524 case $host_os in
9525 beos*)
9526 lt_cv_dlopen="load_add_on"
9527 lt_cv_dlopen_libs=
9528 lt_cv_dlopen_self=yes
9529 ;;
9530
9531 mingw* | pw32* | cegcc*)
9532 lt_cv_dlopen="LoadLibrary"
9533 lt_cv_dlopen_libs=
9534 ;;
9535
9536 cygwin*)
9537 lt_cv_dlopen="dlopen"
9538 lt_cv_dlopen_libs=
9539 ;;
9540
9541 darwin*)
9542 # if libdl is installed we need to link against it
9543 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9544 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9545 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-ldl $LIBS"
9550 if test x$gcc_no_link = xyes; then
9551 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9553 { (exit 1); exit 1; }; }
9554 fi
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h. */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561
9562 /* Override any gcc2 internal prototype to avoid an error. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 /* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9568 char dlopen ();
9569 int
9570 main ()
9571 {
9572 dlopen ();
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest$ac_exeext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_cv_lib_dl_dlopen=yes
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ac_cv_lib_dl_dlopen=no
9605 fi
9606 rm -f conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 LIBS=$ac_check_lib_save_LIBS
9609 fi
9610 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9611 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9612 if test $ac_cv_lib_dl_dlopen = yes; then
9613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9614 else
9615
9616 lt_cv_dlopen="dyld"
9617 lt_cv_dlopen_libs=
9618 lt_cv_dlopen_self=yes
9619
9620 fi
9621
9622 ;;
9623
9624 *)
9625 echo "$as_me:$LINENO: checking for shl_load" >&5
9626 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9627 if test "${ac_cv_func_shl_load+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630 if test x$gcc_no_link = xyes; then
9631 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9632 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9633 { (exit 1); exit 1; }; }
9634 fi
9635 cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h. */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9641 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9643 #define shl_load innocuous_shl_load
9644
9645 /* System header to define __stub macros and hopefully few prototypes,
9646 which can conflict with char shl_load (); below.
9647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9648 <limits.h> exists even on freestanding compilers. */
9649
9650 #ifdef __STDC__
9651 # include <limits.h>
9652 #else
9653 # include <assert.h>
9654 #endif
9655
9656 #undef shl_load
9657
9658 /* Override any gcc2 internal prototype to avoid an error. */
9659 #ifdef __cplusplus
9660 extern "C"
9661 {
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char shl_load ();
9666 /* The GNU C library defines this for functions which it implements
9667 to always fail with ENOSYS. Some functions are actually named
9668 something starting with __ and the normal name is an alias. */
9669 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9670 choke me
9671 #else
9672 char (*f) () = shl_load;
9673 #endif
9674 #ifdef __cplusplus
9675 }
9676 #endif
9677
9678 int
9679 main ()
9680 {
9681 return f != shl_load;
9682 ;
9683 return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -z "$ac_c_werror_flag"
9696 || test ! -s conftest.err'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; } &&
9702 { ac_try='test -s conftest$ac_exeext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 ac_cv_func_shl_load=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ac_cv_func_shl_load=no
9714 fi
9715 rm -f conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717 fi
9718 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9719 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9720 if test $ac_cv_func_shl_load = yes; then
9721 lt_cv_dlopen="shl_load"
9722 else
9723 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9724 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9725 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-ldld $LIBS"
9730 if test x$gcc_no_link = xyes; then
9731 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9733 { (exit 1); exit 1; }; }
9734 fi
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9748 char shl_load ();
9749 int
9750 main ()
9751 {
9752 shl_load ();
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 ac_cv_lib_dld_shl_load=yes
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_cv_lib_dld_shl_load=no
9785 fi
9786 rm -f conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 LIBS=$ac_check_lib_save_LIBS
9789 fi
9790 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9791 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9792 if test $ac_cv_lib_dld_shl_load = yes; then
9793 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9794 else
9795 echo "$as_me:$LINENO: checking for dlopen" >&5
9796 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9797 if test "${ac_cv_func_dlopen+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800 if test x$gcc_no_link = xyes; then
9801 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9803 { (exit 1); exit 1; }; }
9804 fi
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h. */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9813 #define dlopen innocuous_dlopen
9814
9815 /* System header to define __stub macros and hopefully few prototypes,
9816 which can conflict with char dlopen (); below.
9817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818 <limits.h> exists even on freestanding compilers. */
9819
9820 #ifdef __STDC__
9821 # include <limits.h>
9822 #else
9823 # include <assert.h>
9824 #endif
9825
9826 #undef dlopen
9827
9828 /* Override any gcc2 internal prototype to avoid an error. */
9829 #ifdef __cplusplus
9830 extern "C"
9831 {
9832 #endif
9833 /* We use char because int might match the return type of a gcc2
9834 builtin and then its argument prototype would still apply. */
9835 char dlopen ();
9836 /* The GNU C library defines this for functions which it implements
9837 to always fail with ENOSYS. Some functions are actually named
9838 something starting with __ and the normal name is an alias. */
9839 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9840 choke me
9841 #else
9842 char (*f) () = dlopen;
9843 #endif
9844 #ifdef __cplusplus
9845 }
9846 #endif
9847
9848 int
9849 main ()
9850 {
9851 return f != dlopen;
9852 ;
9853 return 0;
9854 }
9855 _ACEOF
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9858 (eval $ac_link) 2>conftest.er1
9859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -z "$ac_c_werror_flag"
9866 || test ! -s conftest.err'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 (eval $ac_try) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_func_dlopen=yes
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883 ac_cv_func_dlopen=no
9884 fi
9885 rm -f conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 fi
9888 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9889 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9890 if test $ac_cv_func_dlopen = yes; then
9891 lt_cv_dlopen="dlopen"
9892 else
9893 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 ac_check_lib_save_LIBS=$LIBS
9899 LIBS="-ldl $LIBS"
9900 if test x$gcc_no_link = xyes; then
9901 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9902 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9903 { (exit 1); exit 1; }; }
9904 fi
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911
9912 /* Override any gcc2 internal prototype to avoid an error. */
9913 #ifdef __cplusplus
9914 extern "C"
9915 #endif
9916 /* We use char because int might match the return type of a gcc2
9917 builtin and then its argument prototype would still apply. */
9918 char dlopen ();
9919 int
9920 main ()
9921 {
9922 dlopen ();
9923 ;
9924 return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest$ac_exeext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_dl_dlopen=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954 ac_cv_lib_dl_dlopen=no
9955 fi
9956 rm -f conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_lib_save_LIBS
9959 fi
9960 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9961 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9962 if test $ac_cv_lib_dl_dlopen = yes; then
9963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9964 else
9965 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9966 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 ac_check_lib_save_LIBS=$LIBS
9971 LIBS="-lsvld $LIBS"
9972 if test x$gcc_no_link = xyes; then
9973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9975 { (exit 1); exit 1; }; }
9976 fi
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h. */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983
9984 /* Override any gcc2 internal prototype to avoid an error. */
9985 #ifdef __cplusplus
9986 extern "C"
9987 #endif
9988 /* We use char because int might match the return type of a gcc2
9989 builtin and then its argument prototype would still apply. */
9990 char dlopen ();
9991 int
9992 main ()
9993 {
9994 dlopen ();
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -z "$ac_c_werror_flag"
10009 || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_svld_dlopen=yes
10022 else
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_cv_lib_svld_dlopen=no
10027 fi
10028 rm -f conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10031 fi
10032 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10033 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10034 if test $ac_cv_lib_svld_dlopen = yes; then
10035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10036 else
10037 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10038 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10039 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 ac_check_lib_save_LIBS=$LIBS
10043 LIBS="-ldld $LIBS"
10044 if test x$gcc_no_link = xyes; then
10045 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10047 { (exit 1); exit 1; }; }
10048 fi
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h. */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055
10056 /* Override any gcc2 internal prototype to avoid an error. */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10062 char dld_link ();
10063 int
10064 main ()
10065 {
10066 dld_link ();
10067 ;
10068 return 0;
10069 }
10070 _ACEOF
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073 (eval $ac_link) 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -z "$ac_c_werror_flag"
10081 || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_lib_dld_dld_link=yes
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098 ac_cv_lib_dld_dld_link=no
10099 fi
10100 rm -f conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 LIBS=$ac_check_lib_save_LIBS
10103 fi
10104 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10105 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10106 if test $ac_cv_lib_dld_dld_link = yes; then
10107 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10108 fi
10109
10110
10111 fi
10112
10113
10114 fi
10115
10116
10117 fi
10118
10119
10120 fi
10121
10122
10123 fi
10124
10125 ;;
10126 esac
10127
10128 if test "x$lt_cv_dlopen" != xno; then
10129 enable_dlopen=yes
10130 else
10131 enable_dlopen=no
10132 fi
10133
10134 case $lt_cv_dlopen in
10135 dlopen)
10136 save_CPPFLAGS="$CPPFLAGS"
10137 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10138
10139 save_LDFLAGS="$LDFLAGS"
10140 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10141
10142 save_LIBS="$LIBS"
10143 LIBS="$lt_cv_dlopen_libs $LIBS"
10144
10145 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10146 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10147 if test "${lt_cv_dlopen_self+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150 if test "$cross_compiling" = yes; then :
10151 lt_cv_dlopen_self=cross
10152 else
10153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10154 lt_status=$lt_dlunknown
10155 cat > conftest.$ac_ext <<_LT_EOF
10156 #line 10156 "configure"
10157 #include "confdefs.h"
10158
10159 #if HAVE_DLFCN_H
10160 #include <dlfcn.h>
10161 #endif
10162
10163 #include <stdio.h>
10164
10165 #ifdef RTLD_GLOBAL
10166 # define LT_DLGLOBAL RTLD_GLOBAL
10167 #else
10168 # ifdef DL_GLOBAL
10169 # define LT_DLGLOBAL DL_GLOBAL
10170 # else
10171 # define LT_DLGLOBAL 0
10172 # endif
10173 #endif
10174
10175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10176 find out it does not work in some platform. */
10177 #ifndef LT_DLLAZY_OR_NOW
10178 # ifdef RTLD_LAZY
10179 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10180 # else
10181 # ifdef DL_LAZY
10182 # define LT_DLLAZY_OR_NOW DL_LAZY
10183 # else
10184 # ifdef RTLD_NOW
10185 # define LT_DLLAZY_OR_NOW RTLD_NOW
10186 # else
10187 # ifdef DL_NOW
10188 # define LT_DLLAZY_OR_NOW DL_NOW
10189 # else
10190 # define LT_DLLAZY_OR_NOW 0
10191 # endif
10192 # endif
10193 # endif
10194 # endif
10195 #endif
10196
10197 void fnord() { int i=42;}
10198 int main ()
10199 {
10200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10201 int status = $lt_dlunknown;
10202
10203 if (self)
10204 {
10205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10206 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10207 /* dlclose (self); */
10208 }
10209 else
10210 puts (dlerror ());
10211
10212 return status;
10213 }
10214 _LT_EOF
10215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216 (eval $ac_link) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10220 (./conftest; exit; ) >&5 2>/dev/null
10221 lt_status=$?
10222 case x$lt_status in
10223 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10224 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10225 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10226 esac
10227 else :
10228 # compilation failed
10229 lt_cv_dlopen_self=no
10230 fi
10231 fi
10232 rm -fr conftest*
10233
10234
10235 fi
10236 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10237 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10238
10239 if test "x$lt_cv_dlopen_self" = xyes; then
10240 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10241 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10242 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10243 if test "${lt_cv_dlopen_self_static+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 if test "$cross_compiling" = yes; then :
10247 lt_cv_dlopen_self_static=cross
10248 else
10249 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10250 lt_status=$lt_dlunknown
10251 cat > conftest.$ac_ext <<_LT_EOF
10252 #line 10252 "configure"
10253 #include "confdefs.h"
10254
10255 #if HAVE_DLFCN_H
10256 #include <dlfcn.h>
10257 #endif
10258
10259 #include <stdio.h>
10260
10261 #ifdef RTLD_GLOBAL
10262 # define LT_DLGLOBAL RTLD_GLOBAL
10263 #else
10264 # ifdef DL_GLOBAL
10265 # define LT_DLGLOBAL DL_GLOBAL
10266 # else
10267 # define LT_DLGLOBAL 0
10268 # endif
10269 #endif
10270
10271 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10272 find out it does not work in some platform. */
10273 #ifndef LT_DLLAZY_OR_NOW
10274 # ifdef RTLD_LAZY
10275 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10276 # else
10277 # ifdef DL_LAZY
10278 # define LT_DLLAZY_OR_NOW DL_LAZY
10279 # else
10280 # ifdef RTLD_NOW
10281 # define LT_DLLAZY_OR_NOW RTLD_NOW
10282 # else
10283 # ifdef DL_NOW
10284 # define LT_DLLAZY_OR_NOW DL_NOW
10285 # else
10286 # define LT_DLLAZY_OR_NOW 0
10287 # endif
10288 # endif
10289 # endif
10290 # endif
10291 #endif
10292
10293 void fnord() { int i=42;}
10294 int main ()
10295 {
10296 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10297 int status = $lt_dlunknown;
10298
10299 if (self)
10300 {
10301 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10302 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10303 /* dlclose (self); */
10304 }
10305 else
10306 puts (dlerror ());
10307
10308 return status;
10309 }
10310 _LT_EOF
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10316 (./conftest; exit; ) >&5 2>/dev/null
10317 lt_status=$?
10318 case x$lt_status in
10319 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10320 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10321 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10322 esac
10323 else :
10324 # compilation failed
10325 lt_cv_dlopen_self_static=no
10326 fi
10327 fi
10328 rm -fr conftest*
10329
10330
10331 fi
10332 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10333 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10334 fi
10335
10336 CPPFLAGS="$save_CPPFLAGS"
10337 LDFLAGS="$save_LDFLAGS"
10338 LIBS="$save_LIBS"
10339 ;;
10340 esac
10341
10342 case $lt_cv_dlopen_self in
10343 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10344 *) enable_dlopen_self=unknown ;;
10345 esac
10346
10347 case $lt_cv_dlopen_self_static in
10348 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10349 *) enable_dlopen_self_static=unknown ;;
10350 esac
10351 fi
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 striplib=
10370 old_striplib=
10371 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10372 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10375 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10376 echo "$as_me:$LINENO: result: yes" >&5
10377 echo "${ECHO_T}yes" >&6
10378 else
10379 # FIXME - insert some real tests, host_os isn't really good enough
10380 case $host_os in
10381 darwin*)
10382 if test -n "$STRIP" ; then
10383 striplib="$STRIP -x"
10384 old_striplib="$STRIP -S"
10385 echo "$as_me:$LINENO: result: yes" >&5
10386 echo "${ECHO_T}yes" >&6
10387 else
10388 echo "$as_me:$LINENO: result: no" >&5
10389 echo "${ECHO_T}no" >&6
10390 fi
10391 ;;
10392 *)
10393 echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6
10395 ;;
10396 esac
10397 fi
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410 # Report which library types will actually be built
10411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10414 echo "${ECHO_T}$can_build_shared" >&6
10415
10416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10418 test "$can_build_shared" = "no" && enable_shared=no
10419
10420 # On AIX, shared libraries and static libraries use the same namespace, and
10421 # are all built from PIC.
10422 case $host_os in
10423 aix3*)
10424 test "$enable_shared" = yes && enable_static=no
10425 if test -n "$RANLIB"; then
10426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10427 postinstall_cmds='$RANLIB $lib'
10428 fi
10429 ;;
10430
10431 aix[4-9]*)
10432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10433 test "$enable_shared" = yes && enable_static=no
10434 fi
10435 ;;
10436 esac
10437 echo "$as_me:$LINENO: result: $enable_shared" >&5
10438 echo "${ECHO_T}$enable_shared" >&6
10439
10440 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10441 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10442 # Make sure either enable_shared or enable_static is yes.
10443 test "$enable_shared" = yes || enable_static=yes
10444 echo "$as_me:$LINENO: result: $enable_static" >&5
10445 echo "${ECHO_T}$enable_static" >&6
10446
10447
10448
10449
10450 fi
10451 ac_ext=c
10452 ac_cpp='$CPP $CPPFLAGS'
10453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10456
10457 CC="$lt_save_CC"
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471 ac_config_commands="$ac_config_commands libtool"
10472
10473
10474
10475
10476 # Only expand once:
10477
10478
10479
10480 if test "x$CC" != xcc; then
10481 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
10482 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
10483 else
10484 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
10485 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
10486 fi
10487 set dummy $CC; ac_cc=`echo $2 |
10488 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10489 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492 cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h. */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498
10499 int
10500 main ()
10501 {
10502
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 # Make sure it works both with $CC and with simple cc.
10508 # We do the test twice because some compilers refuse to overwrite an
10509 # existing .o file with -o, though they will create one.
10510 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
10511 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); };
10521 then
10522 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10523 if test "x$CC" != xcc; then
10524 # Test first that cc exists at all.
10525 if { ac_try='cc -c conftest.$ac_ext >&5'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
10532 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); };
10542 then
10543 # cc works too.
10544 :
10545 else
10546 # cc exists but doesn't like -o.
10547 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10548 fi
10549 fi
10550 fi
10551 else
10552 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10553 fi
10554 rm -f conftest*
10555
10556 fi
10557 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
10558 echo "$as_me:$LINENO: result: yes" >&5
10559 echo "${ECHO_T}yes" >&6
10560 else
10561 echo "$as_me:$LINENO: result: no" >&5
10562 echo "${ECHO_T}no" >&6
10563
10564 cat >>confdefs.h <<\_ACEOF
10565 #define NO_MINUS_C_MINUS_O 1
10566 _ACEOF
10567
10568 fi
10569
10570 # expand $ac_aux_dir to an absolute path
10571 am_aux_dir=`cd $ac_aux_dir && pwd`
10572
10573 # FIXME: we rely on the cache variable name because
10574 # there is no other way.
10575 set dummy $CC
10576 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10577 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
10578 # Losing compiler, so override with the script.
10579 # FIXME: It is wrong to rewrite CC.
10580 # But if we don't then we get into trouble of one sort or another.
10581 # A longer-term fix would be to have automake use am__CC in this case,
10582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10583 CC="$am_aux_dir/compile $CC"
10584 fi
10585
10586
10587 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10588 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
10589 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
10590 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593 cat >conftest.make <<\_ACEOF
10594 all:
10595 @echo 'ac_maketemp="$(MAKE)"'
10596 _ACEOF
10597 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10598 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10599 if test -n "$ac_maketemp"; then
10600 eval ac_cv_prog_make_${ac_make}_set=yes
10601 else
10602 eval ac_cv_prog_make_${ac_make}_set=no
10603 fi
10604 rm -f conftest.make
10605 fi
10606 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
10607 echo "$as_me:$LINENO: result: yes" >&5
10608 echo "${ECHO_T}yes" >&6
10609 SET_MAKE=
10610 else
10611 echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10613 SET_MAKE="MAKE=${MAKE-make}"
10614 fi
10615
10616
10617 # -------
10618 # Headers
10619 # -------
10620
10621 # Sanity check for the cross-compilation case:
10622 if test "${ac_cv_header_stdio_h+set}" = set; then
10623 echo "$as_me:$LINENO: checking for stdio.h" >&5
10624 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10625 if test "${ac_cv_header_stdio_h+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 fi
10628 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10629 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10630 else
10631 # Is the header compilable?
10632 echo "$as_me:$LINENO: checking stdio.h usability" >&5
10633 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 #include <stdio.h>
10642 _ACEOF
10643 rm -f conftest.$ac_objext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10645 (eval $ac_compile) 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag"
10653 || test ! -s conftest.err'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest.$ac_objext'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 ac_header_compiler=yes
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670 ac_header_compiler=no
10671 fi
10672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10674 echo "${ECHO_T}$ac_header_compiler" >&6
10675
10676 # Is the header present?
10677 echo "$as_me:$LINENO: checking stdio.h presence" >&5
10678 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 #include <stdio.h>
10686 _ACEOF
10687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } >/dev/null; then
10695 if test -s conftest.err; then
10696 ac_cpp_err=$ac_c_preproc_warn_flag
10697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10698 else
10699 ac_cpp_err=
10700 fi
10701 else
10702 ac_cpp_err=yes
10703 fi
10704 if test -z "$ac_cpp_err"; then
10705 ac_header_preproc=yes
10706 else
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710 ac_header_preproc=no
10711 fi
10712 rm -f conftest.err conftest.$ac_ext
10713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10714 echo "${ECHO_T}$ac_header_preproc" >&6
10715
10716 # So? What about this header?
10717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10718 yes:no: )
10719 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10720 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
10722 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
10723 ac_header_preproc=yes
10724 ;;
10725 no:yes:* )
10726 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
10727 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
10729 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
10731 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
10733 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
10735 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
10737 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
10738 (
10739 cat <<\_ASBOX
10740 ## ----------------------------------------- ##
10741 ## Report this to the package-unused lists. ##
10742 ## ----------------------------------------- ##
10743 _ASBOX
10744 ) |
10745 sed "s/^/$as_me: WARNING: /" >&2
10746 ;;
10747 esac
10748 echo "$as_me:$LINENO: checking for stdio.h" >&5
10749 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10750 if test "${ac_cv_header_stdio_h+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 ac_cv_header_stdio_h=$ac_header_preproc
10754 fi
10755 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10756 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10757
10758 fi
10759 if test $ac_cv_header_stdio_h = yes; then
10760 :
10761 else
10762 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
10763 You must have a usable C system for the target already installed, at least
10764 including headers and, preferably, the library, before you can configure
10765 the Objective C runtime system. If necessary, install gcc now with
10766 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
10767 echo "$as_me: error: Can't find stdio.h.
10768 You must have a usable C system for the target already installed, at least
10769 including headers and, preferably, the library, before you can configure
10770 the Objective C runtime system. If necessary, install gcc now with
10771 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
10772 { (exit 1); exit 1; }; }
10773 fi
10774
10775
10776
10777 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10779 if test "${ac_cv_header_stdc+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10782 cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h. */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 #include <stdlib.h>
10789 #include <stdarg.h>
10790 #include <string.h>
10791 #include <float.h>
10792
10793 int
10794 main ()
10795 {
10796
10797 ;
10798 return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag"
10811 || test ! -s conftest.err'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; } &&
10817 { ac_try='test -s conftest.$ac_objext'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_header_stdc=yes
10824 else
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 ac_cv_header_stdc=no
10829 fi
10830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10831
10832 if test $ac_cv_header_stdc = yes; then
10833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 #include <string.h>
10841
10842 _ACEOF
10843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10844 $EGREP "memchr" >/dev/null 2>&1; then
10845 :
10846 else
10847 ac_cv_header_stdc=no
10848 fi
10849 rm -f conftest*
10850
10851 fi
10852
10853 if test $ac_cv_header_stdc = yes; then
10854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 #include <stdlib.h>
10862
10863 _ACEOF
10864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10865 $EGREP "free" >/dev/null 2>&1; then
10866 :
10867 else
10868 ac_cv_header_stdc=no
10869 fi
10870 rm -f conftest*
10871
10872 fi
10873
10874 if test $ac_cv_header_stdc = yes; then
10875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10876 if test "$cross_compiling" = yes; then
10877 :
10878 else
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <ctype.h>
10886 #if ((' ' & 0x0FF) == 0x020)
10887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10889 #else
10890 # define ISLOWER(c) \
10891 (('a' <= (c) && (c) <= 'i') \
10892 || ('j' <= (c) && (c) <= 'r') \
10893 || ('s' <= (c) && (c) <= 'z'))
10894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10895 #endif
10896
10897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10898 int
10899 main ()
10900 {
10901 int i;
10902 for (i = 0; i < 256; i++)
10903 if (XOR (islower (i), ISLOWER (i))
10904 || toupper (i) != TOUPPER (i))
10905 exit(2);
10906 exit (0);
10907 }
10908 _ACEOF
10909 rm -f conftest$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; }; then
10920 :
10921 else
10922 echo "$as_me: program exited with status $ac_status" >&5
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926 ( exit $ac_status )
10927 ac_cv_header_stdc=no
10928 fi
10929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10930 fi
10931 fi
10932 fi
10933 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10934 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10935 if test $ac_cv_header_stdc = yes; then
10936
10937 cat >>confdefs.h <<\_ACEOF
10938 #define STDC_HEADERS 1
10939 _ACEOF
10940
10941 fi
10942
10943
10944
10945 for ac_header in sched.h
10946 do
10947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10949 echo "$as_me:$LINENO: checking for $ac_header" >&5
10950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 fi
10954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10956 else
10957 # Is the header compilable?
10958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10960 cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h. */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 $ac_includes_default
10967 #include <$ac_header>
10968 _ACEOF
10969 rm -f conftest.$ac_objext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10971 (eval $ac_compile) 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag"
10979 || test ! -s conftest.err'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest.$ac_objext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_header_compiler=yes
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996 ac_header_compiler=no
10997 fi
10998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11000 echo "${ECHO_T}$ac_header_compiler" >&6
11001
11002 # Is the header present?
11003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h. */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 #include <$ac_header>
11012 _ACEOF
11013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } >/dev/null; then
11021 if test -s conftest.err; then
11022 ac_cpp_err=$ac_c_preproc_warn_flag
11023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11024 else
11025 ac_cpp_err=
11026 fi
11027 else
11028 ac_cpp_err=yes
11029 fi
11030 if test -z "$ac_cpp_err"; then
11031 ac_header_preproc=yes
11032 else
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 ac_header_preproc=no
11037 fi
11038 rm -f conftest.err conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11040 echo "${ECHO_T}$ac_header_preproc" >&6
11041
11042 # So? What about this header?
11043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11044 yes:no: )
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11048 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11049 ac_header_preproc=yes
11050 ;;
11051 no:yes:* )
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11057 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11059 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11063 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11064 (
11065 cat <<\_ASBOX
11066 ## ----------------------------------------- ##
11067 ## Report this to the package-unused lists. ##
11068 ## ----------------------------------------- ##
11069 _ASBOX
11070 ) |
11071 sed "s/^/$as_me: WARNING: /" >&2
11072 ;;
11073 esac
11074 echo "$as_me:$LINENO: checking for $ac_header" >&5
11075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 eval "$as_ac_Header=\$ac_header_preproc"
11080 fi
11081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11083
11084 fi
11085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11086 cat >>confdefs.h <<_ACEOF
11087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11088 _ACEOF
11089
11090 fi
11091
11092 done
11093
11094
11095 # -----------
11096 # Miscellanea
11097 # -----------
11098
11099 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11100 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11101 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11102 echo "$as_me:$LINENO: result: $target_thread_file" >&5
11103 echo "${ECHO_T}$target_thread_file" >&6
11104
11105 if test $target_thread_file != single; then
11106
11107 cat >>confdefs.h <<\_ACEOF
11108 #define HAVE_GTHR_DEFAULT 1
11109 _ACEOF
11110
11111 fi
11112
11113
11114 echo "$as_me:$LINENO: checking for exception model to use" >&5
11115 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
11116 ac_ext=c
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11121
11122 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11123 if test "${enable_sjlj_exceptions+set}" = set; then
11124 enableval="$enable_sjlj_exceptions"
11125 :
11126 else
11127 cat > conftest.$ac_ext << EOF
11128 #line 11128 "configure"
11129 @interface Frob
11130 @end
11131 @implementation Frob
11132 @end
11133 int proc();
11134 int foo()
11135 {
11136 @try {
11137 return proc();
11138 }
11139 @catch (Frob* ex) {
11140 return 0;
11141 }
11142 }
11143 EOF
11144 old_CFLAGS="$CFLAGS"
11145 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; then
11151 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
11152 enable_sjlj_exceptions=yes
11153 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
11154 enable_sjlj_exceptions=no
11155 fi
11156 fi
11157 CFLAGS="$old_CFLAGS"
11158 rm -f conftest*
11159 fi;
11160 if test x$enable_sjlj_exceptions = xyes; then
11161
11162 cat >>confdefs.h <<\_ACEOF
11163 #define SJLJ_EXCEPTIONS 1
11164 _ACEOF
11165
11166 ac_exception_model_name=sjlj
11167 elif test x$enable_sjlj_exceptions = xno; then
11168 ac_exception_model_name="call frame"
11169 else
11170 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
11171 echo "$as_me: error: unable to detect exception model" >&2;}
11172 { (exit 1); exit 1; }; }
11173 fi
11174 ac_ext=c
11175 ac_cpp='$CPP $CPPFLAGS'
11176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11179
11180 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
11181 echo "${ECHO_T}$ac_exception_model_name" >&6
11182
11183 # ------
11184 # Output
11185 # ------
11186
11187 if test ${multilib} = yes; then
11188 multilib_arg="--enable-multilib"
11189 else
11190 multilib_arg=
11191 fi
11192
11193 ac_config_files="$ac_config_files Makefile"
11194
11195 cat >confcache <<\_ACEOF
11196 # This file is a shell script that caches the results of configure
11197 # tests run on this system so they can be shared between configure
11198 # scripts and configure runs, see configure's option --config-cache.
11199 # It is not useful on other systems. If it contains results you don't
11200 # want to keep, you may remove or edit it.
11201 #
11202 # config.status only pays attention to the cache file if you give it
11203 # the --recheck option to rerun configure.
11204 #
11205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11207 # following values.
11208
11209 _ACEOF
11210
11211 # The following way of writing the cache mishandles newlines in values,
11212 # but we know of no workaround that is simple, portable, and efficient.
11213 # So, don't put newlines in cache variables' values.
11214 # Ultrix sh set writes to stderr and can't be redirected directly,
11215 # and sets the high bit in the cache file unless we assign to the vars.
11216 {
11217 (set) 2>&1 |
11218 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11219 *ac_space=\ *)
11220 # `set' does not quote correctly, so add quotes (double-quote
11221 # substitution turns \\\\ into \\, and sed turns \\ into \).
11222 sed -n \
11223 "s/'/'\\\\''/g;
11224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11225 ;;
11226 *)
11227 # `set' quotes correctly as required by POSIX, so do not add quotes.
11228 sed -n \
11229 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11230 ;;
11231 esac;
11232 } |
11233 sed '
11234 t clear
11235 : clear
11236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11237 t end
11238 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11239 : end' >>confcache
11240 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11241 if test -w $cache_file; then
11242 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11243 cat confcache >$cache_file
11244 else
11245 echo "not updating unwritable cache $cache_file"
11246 fi
11247 fi
11248 rm -f confcache
11249
11250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11251 # Let make expand exec_prefix.
11252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11253
11254 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11255 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11256 # trailing colons and then remove the whole line if VPATH becomes empty
11257 # (actually we leave an empty line to preserve line numbers).
11258 if test "x$srcdir" = x.; then
11259 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11260 s/:*\$(srcdir):*/:/;
11261 s/:*\${srcdir}:*/:/;
11262 s/:*@srcdir@:*/:/;
11263 s/^\([^=]*=[ ]*\):*/\1/;
11264 s/:*$//;
11265 s/^[^=]*=[ ]*$//;
11266 }'
11267 fi
11268
11269 DEFS=-DHAVE_CONFIG_H
11270
11271 ac_libobjs=
11272 ac_ltlibobjs=
11273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11274 # 1. Remove the extension, and $U if already installed.
11275 ac_i=`echo "$ac_i" |
11276 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11277 # 2. Add them.
11278 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11279 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11280 done
11281 LIBOBJS=$ac_libobjs
11282
11283 LTLIBOBJS=$ac_ltlibobjs
11284
11285
11286 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11287 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11288 Usually this means the macro was only invoked conditionally." >&5
11289 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11290 Usually this means the macro was only invoked conditionally." >&2;}
11291 { (exit 1); exit 1; }; }
11292 fi
11293
11294 : ${CONFIG_STATUS=./config.status}
11295 ac_clean_files_save=$ac_clean_files
11296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11299 cat >$CONFIG_STATUS <<_ACEOF
11300 #! $SHELL
11301 # Generated by $as_me.
11302 # Run this file to recreate the current configuration.
11303 # Compiler output produced by configure, useful for debugging
11304 # configure, is in config.log if it exists.
11305
11306 debug=false
11307 ac_cs_recheck=false
11308 ac_cs_silent=false
11309 SHELL=\${CONFIG_SHELL-$SHELL}
11310 _ACEOF
11311
11312 cat >>$CONFIG_STATUS <<\_ACEOF
11313 ## --------------------- ##
11314 ## M4sh Initialization. ##
11315 ## --------------------- ##
11316
11317 # Be Bourne compatible
11318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11319 emulate sh
11320 NULLCMD=:
11321 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11322 # is contrary to our usage. Disable this feature.
11323 alias -g '${1+"$@"}'='"$@"'
11324 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11325 set -o posix
11326 fi
11327 DUALCASE=1; export DUALCASE # for MKS sh
11328
11329 # Support unset when possible.
11330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11331 as_unset=unset
11332 else
11333 as_unset=false
11334 fi
11335
11336
11337 # Work around bugs in pre-3.0 UWIN ksh.
11338 $as_unset ENV MAIL MAILPATH
11339 PS1='$ '
11340 PS2='> '
11341 PS4='+ '
11342
11343 # NLS nuisances.
11344 for as_var in \
11345 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11346 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11347 LC_TELEPHONE LC_TIME
11348 do
11349 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11350 eval $as_var=C; export $as_var
11351 else
11352 $as_unset $as_var
11353 fi
11354 done
11355
11356 # Required to use basename.
11357 if expr a : '\(a\)' >/dev/null 2>&1; then
11358 as_expr=expr
11359 else
11360 as_expr=false
11361 fi
11362
11363 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11364 as_basename=basename
11365 else
11366 as_basename=false
11367 fi
11368
11369
11370 # Name of the executable.
11371 as_me=`$as_basename "$0" ||
11372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11373 X"$0" : 'X\(//\)$' \| \
11374 X"$0" : 'X\(/\)$' \| \
11375 . : '\(.\)' 2>/dev/null ||
11376 echo X/"$0" |
11377 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11378 /^X\/\(\/\/\)$/{ s//\1/; q; }
11379 /^X\/\(\/\).*/{ s//\1/; q; }
11380 s/.*/./; q'`
11381
11382
11383 # PATH needs CR, and LINENO needs CR and PATH.
11384 # Avoid depending upon Character Ranges.
11385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11388 as_cr_digits='0123456789'
11389 as_cr_alnum=$as_cr_Letters$as_cr_digits
11390
11391 # The user is always right.
11392 if test "${PATH_SEPARATOR+set}" != set; then
11393 echo "#! /bin/sh" >conf$$.sh
11394 echo "exit 0" >>conf$$.sh
11395 chmod +x conf$$.sh
11396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11397 PATH_SEPARATOR=';'
11398 else
11399 PATH_SEPARATOR=:
11400 fi
11401 rm -f conf$$.sh
11402 fi
11403
11404
11405 as_lineno_1=$LINENO
11406 as_lineno_2=$LINENO
11407 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11408 test "x$as_lineno_1" != "x$as_lineno_2" &&
11409 test "x$as_lineno_3" = "x$as_lineno_2" || {
11410 # Find who we are. Look in the path if we contain no path at all
11411 # relative or not.
11412 case $0 in
11413 *[\\/]* ) as_myself=$0 ;;
11414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11416 do
11417 IFS=$as_save_IFS
11418 test -z "$as_dir" && as_dir=.
11419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11420 done
11421
11422 ;;
11423 esac
11424 # We did not find ourselves, most probably we were run as `sh COMMAND'
11425 # in which case we are not to be found in the path.
11426 if test "x$as_myself" = x; then
11427 as_myself=$0
11428 fi
11429 if test ! -f "$as_myself"; then
11430 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11431 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11432 { (exit 1); exit 1; }; }
11433 fi
11434 case $CONFIG_SHELL in
11435 '')
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11438 do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
11441 for as_base in sh bash ksh sh5; do
11442 case $as_dir in
11443 /*)
11444 if ("$as_dir/$as_base" -c '
11445 as_lineno_1=$LINENO
11446 as_lineno_2=$LINENO
11447 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11448 test "x$as_lineno_1" != "x$as_lineno_2" &&
11449 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11450 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11451 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11452 CONFIG_SHELL=$as_dir/$as_base
11453 export CONFIG_SHELL
11454 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11455 fi;;
11456 esac
11457 done
11458 done
11459 ;;
11460 esac
11461
11462 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11463 # uniformly replaced by the line number. The first 'sed' inserts a
11464 # line-number line before each line; the second 'sed' does the real
11465 # work. The second script uses 'N' to pair each line-number line
11466 # with the numbered line, and appends trailing '-' during
11467 # substitution so that $LINENO is not a special case at line end.
11468 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11469 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11470 sed '=' <$as_myself |
11471 sed '
11472 N
11473 s,$,-,
11474 : loop
11475 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11476 t loop
11477 s,-$,,
11478 s,^['$as_cr_digits']*\n,,
11479 ' >$as_me.lineno &&
11480 chmod +x $as_me.lineno ||
11481 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11482 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11483 { (exit 1); exit 1; }; }
11484
11485 # Don't try to exec as it changes $[0], causing all sort of problems
11486 # (the dirname of $[0] is not the place where we might find the
11487 # original and so on. Autoconf is especially sensible to this).
11488 . ./$as_me.lineno
11489 # Exit status is that of the last command.
11490 exit
11491 }
11492
11493
11494 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11495 *c*,-n*) ECHO_N= ECHO_C='
11496 ' ECHO_T=' ' ;;
11497 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11498 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11499 esac
11500
11501 if expr a : '\(a\)' >/dev/null 2>&1; then
11502 as_expr=expr
11503 else
11504 as_expr=false
11505 fi
11506
11507 rm -f conf$$ conf$$.exe conf$$.file
11508 echo >conf$$.file
11509 if ln -s conf$$.file conf$$ 2>/dev/null; then
11510 # We could just check for DJGPP; but this test a) works b) is more generic
11511 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11512 if test -f conf$$.exe; then
11513 # Don't use ln at all; we don't have any links
11514 as_ln_s='cp -p'
11515 else
11516 as_ln_s='ln -s'
11517 fi
11518 elif ln conf$$.file conf$$ 2>/dev/null; then
11519 as_ln_s=ln
11520 else
11521 as_ln_s='cp -p'
11522 fi
11523 rm -f conf$$ conf$$.exe conf$$.file
11524
11525 if mkdir -p . 2>/dev/null; then
11526 as_mkdir_p=:
11527 else
11528 test -d ./-p && rmdir ./-p
11529 as_mkdir_p=false
11530 fi
11531
11532 as_executable_p="test -f"
11533
11534 # Sed expression to map a string onto a valid CPP name.
11535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11536
11537 # Sed expression to map a string onto a valid variable name.
11538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11539
11540
11541 # IFS
11542 # We need space, tab and new line, in precisely that order.
11543 as_nl='
11544 '
11545 IFS=" $as_nl"
11546
11547 # CDPATH.
11548 $as_unset CDPATH
11549
11550 exec 6>&1
11551
11552 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11553 # report actual input values of CONFIG_FILES etc. instead of their
11554 # values after options handling. Logging --version etc. is OK.
11555 exec 5>>config.log
11556 {
11557 echo
11558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11559 ## Running $as_me. ##
11560 _ASBOX
11561 } >&5
11562 cat >&5 <<_CSEOF
11563
11564 This file was extended by package-unused $as_me version-unused, which was
11565 generated by GNU Autoconf 2.59. Invocation command line was
11566
11567 CONFIG_FILES = $CONFIG_FILES
11568 CONFIG_HEADERS = $CONFIG_HEADERS
11569 CONFIG_LINKS = $CONFIG_LINKS
11570 CONFIG_COMMANDS = $CONFIG_COMMANDS
11571 $ $0 $@
11572
11573 _CSEOF
11574 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11575 echo >&5
11576 _ACEOF
11577
11578 # Files that config.status was made for.
11579 if test -n "$ac_config_files"; then
11580 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11581 fi
11582
11583 if test -n "$ac_config_headers"; then
11584 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11585 fi
11586
11587 if test -n "$ac_config_links"; then
11588 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11589 fi
11590
11591 if test -n "$ac_config_commands"; then
11592 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11593 fi
11594
11595 cat >>$CONFIG_STATUS <<\_ACEOF
11596
11597 ac_cs_usage="\
11598 \`$as_me' instantiates files from templates according to the
11599 current configuration.
11600
11601 Usage: $0 [OPTIONS] [FILE]...
11602
11603 -h, --help print this help, then exit
11604 -V, --version print version number, then exit
11605 -q, --quiet do not print progress messages
11606 -d, --debug don't remove temporary files
11607 --recheck update $as_me by reconfiguring in the same conditions
11608 --file=FILE[:TEMPLATE]
11609 instantiate the configuration file FILE
11610 --header=FILE[:TEMPLATE]
11611 instantiate the configuration header FILE
11612
11613 Configuration files:
11614 $config_files
11615
11616 Configuration headers:
11617 $config_headers
11618
11619 Configuration commands:
11620 $config_commands
11621
11622 Report bugs to <bug-autoconf@gnu.org>."
11623 _ACEOF
11624
11625 cat >>$CONFIG_STATUS <<_ACEOF
11626 ac_cs_version="\\
11627 package-unused config.status version-unused
11628 configured by $0, generated by GNU Autoconf 2.59,
11629 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11630
11631 Copyright (C) 2003 Free Software Foundation, Inc.
11632 This config.status script is free software; the Free Software Foundation
11633 gives unlimited permission to copy, distribute and modify it."
11634 srcdir=$srcdir
11635 INSTALL="$INSTALL"
11636 _ACEOF
11637
11638 cat >>$CONFIG_STATUS <<\_ACEOF
11639 # If no file are specified by the user, then we need to provide default
11640 # value. By we need to know if files were specified by the user.
11641 ac_need_defaults=:
11642 while test $# != 0
11643 do
11644 case $1 in
11645 --*=*)
11646 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11647 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11648 ac_shift=:
11649 ;;
11650 -*)
11651 ac_option=$1
11652 ac_optarg=$2
11653 ac_shift=shift
11654 ;;
11655 *) # This is not an option, so the user has probably given explicit
11656 # arguments.
11657 ac_option=$1
11658 ac_need_defaults=false;;
11659 esac
11660
11661 case $ac_option in
11662 # Handling of the options.
11663 _ACEOF
11664 cat >>$CONFIG_STATUS <<\_ACEOF
11665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11666 ac_cs_recheck=: ;;
11667 --version | --vers* | -V )
11668 echo "$ac_cs_version"; exit 0 ;;
11669 --he | --h)
11670 # Conflict between --help and --header
11671 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11672 Try \`$0 --help' for more information." >&5
11673 echo "$as_me: error: ambiguous option: $1
11674 Try \`$0 --help' for more information." >&2;}
11675 { (exit 1); exit 1; }; };;
11676 --help | --hel | -h )
11677 echo "$ac_cs_usage"; exit 0 ;;
11678 --debug | --d* | -d )
11679 debug=: ;;
11680 --file | --fil | --fi | --f )
11681 $ac_shift
11682 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11683 ac_need_defaults=false;;
11684 --header | --heade | --head | --hea )
11685 $ac_shift
11686 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11687 ac_need_defaults=false;;
11688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11690 ac_cs_silent=: ;;
11691
11692 # This is an error.
11693 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11694 Try \`$0 --help' for more information." >&5
11695 echo "$as_me: error: unrecognized option: $1
11696 Try \`$0 --help' for more information." >&2;}
11697 { (exit 1); exit 1; }; } ;;
11698
11699 *) ac_config_targets="$ac_config_targets $1" ;;
11700
11701 esac
11702 shift
11703 done
11704
11705 ac_configure_extra_args=
11706
11707 if $ac_cs_silent; then
11708 exec 6>/dev/null
11709 ac_configure_extra_args="$ac_configure_extra_args --silent"
11710 fi
11711
11712 _ACEOF
11713 cat >>$CONFIG_STATUS <<_ACEOF
11714 if \$ac_cs_recheck; then
11715 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11716 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11717 fi
11718
11719 _ACEOF
11720
11721 cat >>$CONFIG_STATUS <<_ACEOF
11722 #
11723 # INIT-COMMANDS section.
11724 #
11725
11726
11727 srcdir="$srcdir"
11728 host="$host"
11729 target="$target"
11730 with_multisubdir="$with_multisubdir"
11731 with_multisrctop="$with_multisrctop"
11732 with_target_subdir="$with_target_subdir"
11733 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11734 multi_basedir="$multi_basedir"
11735 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11736 CC="$CC"
11737
11738
11739 # The HP-UX ksh and POSIX shell print the target directory to stdout
11740 # if CDPATH is set.
11741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11742
11743 sed_quote_subst='$sed_quote_subst'
11744 double_quote_subst='$double_quote_subst'
11745 delay_variable_subst='$delay_variable_subst'
11746 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11747 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11748 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11749 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11750 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11751 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11752 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11753 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11754 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11755 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11756 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11757 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11758 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11759 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11760 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11761 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11762 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11763 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11764 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11765 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11766 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11767 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11768 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11769 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11770 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11771 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11772 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11773 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11774 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11775 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11776 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11777 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11778 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11779 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11780 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11781 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11782 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11783 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11784 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11785 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11786 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11787 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11788 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11789 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11790 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11791 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11792 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11793 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11794 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11795 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11796 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11797 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11798 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11799 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11800 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11801 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11802 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11803 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11804 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11805 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11806 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11807 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11808 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11809 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11810 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11811 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11812 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11813 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11814 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11815 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11816 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11817 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11818 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11819 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11820 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11821 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11822 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11823 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11824 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11825 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11826 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11827 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11828 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11829 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11830 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11831 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11832 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11833 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11834 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11835 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11836 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11837 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11838 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11839 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11840 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11841 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11842 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11843 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11844 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11845 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11846 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11847 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11848 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11849 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11850 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11851 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11852 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11853 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11854 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11855 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11856 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11857 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11858 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11859 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11860 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11861 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11862 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11863 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11864 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11865 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11866
11867 LTCC='$LTCC'
11868 LTCFLAGS='$LTCFLAGS'
11869 compiler='$compiler_DEFAULT'
11870
11871 # Quote evaled strings.
11872 for var in SED \
11873 GREP \
11874 EGREP \
11875 FGREP \
11876 LD \
11877 NM \
11878 LN_S \
11879 lt_SP2NL \
11880 lt_NL2SP \
11881 reload_flag \
11882 deplibs_check_method \
11883 file_magic_cmd \
11884 AR \
11885 AR_FLAGS \
11886 STRIP \
11887 RANLIB \
11888 CC \
11889 CFLAGS \
11890 compiler \
11891 lt_cv_sys_global_symbol_pipe \
11892 lt_cv_sys_global_symbol_to_cdecl \
11893 lt_cv_sys_global_symbol_to_c_name_address \
11894 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11895 SHELL \
11896 ECHO \
11897 lt_prog_compiler_no_builtin_flag \
11898 lt_prog_compiler_wl \
11899 lt_prog_compiler_pic \
11900 lt_prog_compiler_static \
11901 lt_cv_prog_compiler_c_o \
11902 need_locks \
11903 DSYMUTIL \
11904 NMEDIT \
11905 LIPO \
11906 OTOOL \
11907 OTOOL64 \
11908 shrext_cmds \
11909 export_dynamic_flag_spec \
11910 whole_archive_flag_spec \
11911 compiler_needs_object \
11912 with_gnu_ld \
11913 allow_undefined_flag \
11914 no_undefined_flag \
11915 hardcode_libdir_flag_spec \
11916 hardcode_libdir_flag_spec_ld \
11917 hardcode_libdir_separator \
11918 fix_srcfile_path \
11919 exclude_expsyms \
11920 include_expsyms \
11921 file_list_spec \
11922 variables_saved_for_relink \
11923 libname_spec \
11924 library_names_spec \
11925 soname_spec \
11926 finish_eval \
11927 old_striplib \
11928 striplib; do
11929 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11930 *[\\\\\\\`\\"\\\$]*)
11931 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11932 ;;
11933 *)
11934 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11935 ;;
11936 esac
11937 done
11938
11939 # Double-quote double-evaled strings.
11940 for var in reload_cmds \
11941 old_postinstall_cmds \
11942 old_postuninstall_cmds \
11943 old_archive_cmds \
11944 extract_expsyms_cmds \
11945 old_archive_from_new_cmds \
11946 old_archive_from_expsyms_cmds \
11947 archive_cmds \
11948 archive_expsym_cmds \
11949 module_cmds \
11950 module_expsym_cmds \
11951 export_symbols_cmds \
11952 prelink_cmds \
11953 postinstall_cmds \
11954 postuninstall_cmds \
11955 finish_cmds \
11956 sys_lib_search_path_spec \
11957 sys_lib_dlsearch_path_spec; do
11958 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11959 *[\\\\\\\`\\"\\\$]*)
11960 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11961 ;;
11962 *)
11963 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11964 ;;
11965 esac
11966 done
11967
11968 # Fix-up fallback echo if it was mangled by the above quoting rules.
11969 case \$lt_ECHO in
11970 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11971 ;;
11972 esac
11973
11974 ac_aux_dir='$ac_aux_dir'
11975 xsi_shell='$xsi_shell'
11976 lt_shell_append='$lt_shell_append'
11977
11978 # See if we are running on zsh, and set the options which allow our
11979 # commands through without removal of \ escapes INIT.
11980 if test -n "\${ZSH_VERSION+set}" ; then
11981 setopt NO_GLOB_SUBST
11982 fi
11983
11984
11985 PACKAGE='$PACKAGE'
11986 VERSION='$VERSION'
11987 TIMESTAMP='$TIMESTAMP'
11988 RM='$RM'
11989 ofile='$ofile'
11990
11991
11992
11993
11994 _ACEOF
11995
11996
11997
11998 cat >>$CONFIG_STATUS <<\_ACEOF
11999 for ac_config_target in $ac_config_targets
12000 do
12001 case "$ac_config_target" in
12002 # Handling of arguments.
12003 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12004 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12005 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12006 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12007 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12008 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12009 { (exit 1); exit 1; }; };;
12010 esac
12011 done
12012
12013 # If the user did not use the arguments to specify the items to instantiate,
12014 # then the envvar interface is used. Set only those that are not.
12015 # We use the long form for the default assignment because of an extremely
12016 # bizarre bug on SunOS 4.1.3.
12017 if $ac_need_defaults; then
12018 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12019 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12020 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12021 fi
12022
12023 # Have a temporary directory for convenience. Make it in the build tree
12024 # simply because there is no reason to put it here, and in addition,
12025 # creating and moving files from /tmp can sometimes cause problems.
12026 # Create a temporary directory, and hook for its removal unless debugging.
12027 $debug ||
12028 {
12029 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12030 trap '{ (exit 1); exit 1; }' 1 2 13 15
12031 }
12032
12033 # Create a (secure) tmp directory for tmp files.
12034
12035 {
12036 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12037 test -n "$tmp" && test -d "$tmp"
12038 } ||
12039 {
12040 tmp=./confstat$$-$RANDOM
12041 (umask 077 && mkdir $tmp)
12042 } ||
12043 {
12044 echo "$me: cannot create a temporary directory in ." >&2
12045 { (exit 1); exit 1; }
12046 }
12047
12048 _ACEOF
12049
12050 cat >>$CONFIG_STATUS <<_ACEOF
12051
12052 #
12053 # CONFIG_FILES section.
12054 #
12055
12056 # No need to generate the scripts if there are no CONFIG_FILES.
12057 # This happens for instance when ./config.status config.h
12058 if test -n "\$CONFIG_FILES"; then
12059 # Protect against being on the right side of a sed subst in config.status.
12060 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12061 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12062 s,@SHELL@,$SHELL,;t t
12063 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12064 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12065 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12066 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12067 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12068 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12069 s,@exec_prefix@,$exec_prefix,;t t
12070 s,@prefix@,$prefix,;t t
12071 s,@program_transform_name@,$program_transform_name,;t t
12072 s,@bindir@,$bindir,;t t
12073 s,@sbindir@,$sbindir,;t t
12074 s,@libexecdir@,$libexecdir,;t t
12075 s,@datadir@,$datadir,;t t
12076 s,@sysconfdir@,$sysconfdir,;t t
12077 s,@sharedstatedir@,$sharedstatedir,;t t
12078 s,@localstatedir@,$localstatedir,;t t
12079 s,@libdir@,$libdir,;t t
12080 s,@includedir@,$includedir,;t t
12081 s,@oldincludedir@,$oldincludedir,;t t
12082 s,@infodir@,$infodir,;t t
12083 s,@mandir@,$mandir,;t t
12084 s,@build_alias@,$build_alias,;t t
12085 s,@host_alias@,$host_alias,;t t
12086 s,@target_alias@,$target_alias,;t t
12087 s,@DEFS@,$DEFS,;t t
12088 s,@ECHO_C@,$ECHO_C,;t t
12089 s,@ECHO_N@,$ECHO_N,;t t
12090 s,@ECHO_T@,$ECHO_T,;t t
12091 s,@LIBS@,$LIBS,;t t
12092 s,@build@,$build,;t t
12093 s,@build_cpu@,$build_cpu,;t t
12094 s,@build_vendor@,$build_vendor,;t t
12095 s,@build_os@,$build_os,;t t
12096 s,@build_libsubdir@,$build_libsubdir,;t t
12097 s,@build_subdir@,$build_subdir,;t t
12098 s,@host_subdir@,$host_subdir,;t t
12099 s,@target_subdir@,$target_subdir,;t t
12100 s,@VERSION@,$VERSION,;t t
12101 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
12102 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
12103 s,@multi_basedir@,$multi_basedir,;t t
12104 s,@host@,$host,;t t
12105 s,@host_cpu@,$host_cpu,;t t
12106 s,@host_vendor@,$host_vendor,;t t
12107 s,@host_os@,$host_os,;t t
12108 s,@target@,$target,;t t
12109 s,@target_cpu@,$target_cpu,;t t
12110 s,@target_vendor@,$target_vendor,;t t
12111 s,@target_os@,$target_os,;t t
12112 s,@target_noncanonical@,$target_noncanonical,;t t
12113 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
12114 s,@toolexecdir@,$toolexecdir,;t t
12115 s,@toolexeclibdir@,$toolexeclibdir,;t t
12116 s,@includedirname@,$includedirname,;t t
12117 s,@libsuffix@,$libsuffix,;t t
12118 s,@CC@,$CC,;t t
12119 s,@ac_ct_CC@,$ac_ct_CC,;t t
12120 s,@EXEEXT@,$EXEEXT,;t t
12121 s,@OBJEXT@,$OBJEXT,;t t
12122 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
12123 s,@CFLAGS@,$CFLAGS,;t t
12124 s,@AS@,$AS,;t t
12125 s,@ac_ct_AS@,$ac_ct_AS,;t t
12126 s,@AR@,$AR,;t t
12127 s,@ac_ct_AR@,$ac_ct_AR,;t t
12128 s,@RANLIB@,$RANLIB,;t t
12129 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12130 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12131 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12132 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12133 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12134 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12135 s,@MAINT@,$MAINT,;t t
12136 s,@DLLTOOL@,$DLLTOOL,;t t
12137 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12138 s,@OBJDUMP@,$OBJDUMP,;t t
12139 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12140 s,@LIBTOOL@,$LIBTOOL,;t t
12141 s,@SED@,$SED,;t t
12142 s,@EGREP@,$EGREP,;t t
12143 s,@FGREP@,$FGREP,;t t
12144 s,@GREP@,$GREP,;t t
12145 s,@LD@,$LD,;t t
12146 s,@DUMPBIN@,$DUMPBIN,;t t
12147 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12148 s,@NM@,$NM,;t t
12149 s,@LN_S@,$LN_S,;t t
12150 s,@STRIP@,$STRIP,;t t
12151 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12152 s,@lt_ECHO@,$lt_ECHO,;t t
12153 s,@DSYMUTIL@,$DSYMUTIL,;t t
12154 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12155 s,@NMEDIT@,$NMEDIT,;t t
12156 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12157 s,@LIPO@,$LIPO,;t t
12158 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12159 s,@OTOOL@,$OTOOL,;t t
12160 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12161 s,@OTOOL64@,$OTOOL64,;t t
12162 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12163 s,@CPP@,$CPP,;t t
12164 s,@CPPFLAGS@,$CPPFLAGS,;t t
12165 s,@SET_MAKE@,$SET_MAKE,;t t
12166 s,@LIBOBJS@,$LIBOBJS,;t t
12167 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12168 CEOF
12169
12170 _ACEOF
12171
12172 cat >>$CONFIG_STATUS <<\_ACEOF
12173 # Split the substitutions into bite-sized pieces for seds with
12174 # small command number limits, like on Digital OSF/1 and HP-UX.
12175 ac_max_sed_lines=48
12176 ac_sed_frag=1 # Number of current file.
12177 ac_beg=1 # First line for current file.
12178 ac_end=$ac_max_sed_lines # Line after last line for current file.
12179 ac_more_lines=:
12180 ac_sed_cmds=
12181 while $ac_more_lines; do
12182 if test $ac_beg -gt 1; then
12183 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12184 else
12185 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12186 fi
12187 if test ! -s $tmp/subs.frag; then
12188 ac_more_lines=false
12189 else
12190 # The purpose of the label and of the branching condition is to
12191 # speed up the sed processing (if there are no `@' at all, there
12192 # is no need to browse any of the substitutions).
12193 # These are the two extra sed commands mentioned above.
12194 (echo ':t
12195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12196 if test -z "$ac_sed_cmds"; then
12197 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12198 else
12199 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12200 fi
12201 ac_sed_frag=`expr $ac_sed_frag + 1`
12202 ac_beg=$ac_end
12203 ac_end=`expr $ac_end + $ac_max_sed_lines`
12204 fi
12205 done
12206 if test -z "$ac_sed_cmds"; then
12207 ac_sed_cmds=cat
12208 fi
12209 fi # test -n "$CONFIG_FILES"
12210
12211 _ACEOF
12212 cat >>$CONFIG_STATUS <<\_ACEOF
12213 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12214 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12215 case $ac_file in
12216 - | *:- | *:-:* ) # input from stdin
12217 cat >$tmp/stdin
12218 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12219 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12220 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12221 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12222 * ) ac_file_in=$ac_file.in ;;
12223 esac
12224
12225 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12226 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12228 X"$ac_file" : 'X\(//\)[^/]' \| \
12229 X"$ac_file" : 'X\(//\)$' \| \
12230 X"$ac_file" : 'X\(/\)' \| \
12231 . : '\(.\)' 2>/dev/null ||
12232 echo X"$ac_file" |
12233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12235 /^X\(\/\/\)$/{ s//\1/; q; }
12236 /^X\(\/\).*/{ s//\1/; q; }
12237 s/.*/./; q'`
12238 { if $as_mkdir_p; then
12239 mkdir -p "$ac_dir"
12240 else
12241 as_dir="$ac_dir"
12242 as_dirs=
12243 while test ! -d "$as_dir"; do
12244 as_dirs="$as_dir $as_dirs"
12245 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12247 X"$as_dir" : 'X\(//\)[^/]' \| \
12248 X"$as_dir" : 'X\(//\)$' \| \
12249 X"$as_dir" : 'X\(/\)' \| \
12250 . : '\(.\)' 2>/dev/null ||
12251 echo X"$as_dir" |
12252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12254 /^X\(\/\/\)$/{ s//\1/; q; }
12255 /^X\(\/\).*/{ s//\1/; q; }
12256 s/.*/./; q'`
12257 done
12258 test ! -n "$as_dirs" || mkdir $as_dirs
12259 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12260 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12261 { (exit 1); exit 1; }; }; }
12262
12263 ac_builddir=.
12264
12265 if test "$ac_dir" != .; then
12266 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12267 # A "../" for each directory in $ac_dir_suffix.
12268 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12269 else
12270 ac_dir_suffix= ac_top_builddir=
12271 fi
12272
12273 case $srcdir in
12274 .) # No --srcdir option. We are building in place.
12275 ac_srcdir=.
12276 if test -z "$ac_top_builddir"; then
12277 ac_top_srcdir=.
12278 else
12279 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12280 fi ;;
12281 [\\/]* | ?:[\\/]* ) # Absolute path.
12282 ac_srcdir=$srcdir$ac_dir_suffix;
12283 ac_top_srcdir=$srcdir ;;
12284 *) # Relative path.
12285 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12286 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12287 esac
12288
12289 # Do not use `cd foo && pwd` to compute absolute paths, because
12290 # the directories may not exist.
12291 case `pwd` in
12292 .) ac_abs_builddir="$ac_dir";;
12293 *)
12294 case "$ac_dir" in
12295 .) ac_abs_builddir=`pwd`;;
12296 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12297 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12298 esac;;
12299 esac
12300 case $ac_abs_builddir in
12301 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12302 *)
12303 case ${ac_top_builddir}. in
12304 .) ac_abs_top_builddir=$ac_abs_builddir;;
12305 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12306 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12307 esac;;
12308 esac
12309 case $ac_abs_builddir in
12310 .) ac_abs_srcdir=$ac_srcdir;;
12311 *)
12312 case $ac_srcdir in
12313 .) ac_abs_srcdir=$ac_abs_builddir;;
12314 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12315 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12316 esac;;
12317 esac
12318 case $ac_abs_builddir in
12319 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12320 *)
12321 case $ac_top_srcdir in
12322 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12323 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12324 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12325 esac;;
12326 esac
12327
12328
12329 case $INSTALL in
12330 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12331 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12332 esac
12333
12334 if test x"$ac_file" != x-; then
12335 { echo "$as_me:$LINENO: creating $ac_file" >&5
12336 echo "$as_me: creating $ac_file" >&6;}
12337 rm -f "$ac_file"
12338 fi
12339 # Let's still pretend it is `configure' which instantiates (i.e., don't
12340 # use $as_me), people would be surprised to read:
12341 # /* config.h. Generated by config.status. */
12342 if test x"$ac_file" = x-; then
12343 configure_input=
12344 else
12345 configure_input="$ac_file. "
12346 fi
12347 configure_input=$configure_input"Generated from `echo $ac_file_in |
12348 sed 's,.*/,,'` by configure."
12349
12350 # First look for the input files in the build tree, otherwise in the
12351 # src tree.
12352 ac_file_inputs=`IFS=:
12353 for f in $ac_file_in; do
12354 case $f in
12355 -) echo $tmp/stdin ;;
12356 [\\/$]*)
12357 # Absolute (can't be DOS-style, as IFS=:)
12358 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12359 echo "$as_me: error: cannot find input file: $f" >&2;}
12360 { (exit 1); exit 1; }; }
12361 echo "$f";;
12362 *) # Relative
12363 if test -f "$f"; then
12364 # Build tree
12365 echo "$f"
12366 elif test -f "$srcdir/$f"; then
12367 # Source tree
12368 echo "$srcdir/$f"
12369 else
12370 # /dev/null tree
12371 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12372 echo "$as_me: error: cannot find input file: $f" >&2;}
12373 { (exit 1); exit 1; }; }
12374 fi;;
12375 esac
12376 done` || { (exit 1); exit 1; }
12377 _ACEOF
12378 cat >>$CONFIG_STATUS <<_ACEOF
12379 sed "$ac_vpsub
12380 $extrasub
12381 _ACEOF
12382 cat >>$CONFIG_STATUS <<\_ACEOF
12383 :t
12384 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12385 s,@configure_input@,$configure_input,;t t
12386 s,@srcdir@,$ac_srcdir,;t t
12387 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12388 s,@top_srcdir@,$ac_top_srcdir,;t t
12389 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12390 s,@builddir@,$ac_builddir,;t t
12391 s,@abs_builddir@,$ac_abs_builddir,;t t
12392 s,@top_builddir@,$ac_top_builddir,;t t
12393 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12394 s,@INSTALL@,$ac_INSTALL,;t t
12395 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12396 rm -f $tmp/stdin
12397 if test x"$ac_file" != x-; then
12398 mv $tmp/out $ac_file
12399 else
12400 cat $tmp/out
12401 rm -f $tmp/out
12402 fi
12403
12404 done
12405 _ACEOF
12406 cat >>$CONFIG_STATUS <<\_ACEOF
12407
12408 #
12409 # CONFIG_HEADER section.
12410 #
12411
12412 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12413 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12414 #
12415 # ac_d sets the value in "#define NAME VALUE" lines.
12416 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12417 ac_dB='[ ].*$,\1#\2'
12418 ac_dC=' '
12419 ac_dD=',;t'
12420 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12421 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12422 ac_uB='$,\1#\2define\3'
12423 ac_uC=' '
12424 ac_uD=',;t'
12425
12426 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12428 case $ac_file in
12429 - | *:- | *:-:* ) # input from stdin
12430 cat >$tmp/stdin
12431 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12433 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12435 * ) ac_file_in=$ac_file.in ;;
12436 esac
12437
12438 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12439 echo "$as_me: creating $ac_file" >&6;}
12440
12441 # First look for the input files in the build tree, otherwise in the
12442 # src tree.
12443 ac_file_inputs=`IFS=:
12444 for f in $ac_file_in; do
12445 case $f in
12446 -) echo $tmp/stdin ;;
12447 [\\/$]*)
12448 # Absolute (can't be DOS-style, as IFS=:)
12449 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12450 echo "$as_me: error: cannot find input file: $f" >&2;}
12451 { (exit 1); exit 1; }; }
12452 # Do quote $f, to prevent DOS paths from being IFS'd.
12453 echo "$f";;
12454 *) # Relative
12455 if test -f "$f"; then
12456 # Build tree
12457 echo "$f"
12458 elif test -f "$srcdir/$f"; then
12459 # Source tree
12460 echo "$srcdir/$f"
12461 else
12462 # /dev/null tree
12463 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12464 echo "$as_me: error: cannot find input file: $f" >&2;}
12465 { (exit 1); exit 1; }; }
12466 fi;;
12467 esac
12468 done` || { (exit 1); exit 1; }
12469 # Remove the trailing spaces.
12470 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12471
12472 _ACEOF
12473
12474 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12475 # `conftest.undefs', that substitutes the proper values into
12476 # config.h.in to produce config.h. The first handles `#define'
12477 # templates, and the second `#undef' templates.
12478 # And first: Protect against being on the right side of a sed subst in
12479 # config.status. Protect against being in an unquoted here document
12480 # in config.status.
12481 rm -f conftest.defines conftest.undefs
12482 # Using a here document instead of a string reduces the quoting nightmare.
12483 # Putting comments in sed scripts is not portable.
12484 #
12485 # `end' is used to avoid that the second main sed command (meant for
12486 # 0-ary CPP macros) applies to n-ary macro definitions.
12487 # See the Autoconf documentation for `clear'.
12488 cat >confdef2sed.sed <<\_ACEOF
12489 s/[\\&,]/\\&/g
12490 s,[\\$`],\\&,g
12491 t clear
12492 : clear
12493 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12494 t end
12495 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12496 : end
12497 _ACEOF
12498 # If some macros were called several times there might be several times
12499 # the same #defines, which is useless. Nevertheless, we may not want to
12500 # sort them, since we want the *last* AC-DEFINE to be honored.
12501 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12502 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12503 rm -f confdef2sed.sed
12504
12505 # This sed command replaces #undef with comments. This is necessary, for
12506 # example, in the case of _POSIX_SOURCE, which is predefined and required
12507 # on some systems where configure will not decide to define it.
12508 cat >>conftest.undefs <<\_ACEOF
12509 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12510 _ACEOF
12511
12512 # Break up conftest.defines because some shells have a limit on the size
12513 # of here documents, and old seds have small limits too (100 cmds).
12514 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12515 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12516 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12517 echo ' :' >>$CONFIG_STATUS
12518 rm -f conftest.tail
12519 while grep . conftest.defines >/dev/null
12520 do
12521 # Write a limited-size here document to $tmp/defines.sed.
12522 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12523 # Speed up: don't consider the non `#define' lines.
12524 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12525 # Work around the forget-to-reset-the-flag bug.
12526 echo 't clr' >>$CONFIG_STATUS
12527 echo ': clr' >>$CONFIG_STATUS
12528 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12529 echo 'CEOF
12530 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12531 rm -f $tmp/in
12532 mv $tmp/out $tmp/in
12533 ' >>$CONFIG_STATUS
12534 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12535 rm -f conftest.defines
12536 mv conftest.tail conftest.defines
12537 done
12538 rm -f conftest.defines
12539 echo ' fi # grep' >>$CONFIG_STATUS
12540 echo >>$CONFIG_STATUS
12541
12542 # Break up conftest.undefs because some shells have a limit on the size
12543 # of here documents, and old seds have small limits too (100 cmds).
12544 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12545 rm -f conftest.tail
12546 while grep . conftest.undefs >/dev/null
12547 do
12548 # Write a limited-size here document to $tmp/undefs.sed.
12549 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12550 # Speed up: don't consider the non `#undef'
12551 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12552 # Work around the forget-to-reset-the-flag bug.
12553 echo 't clr' >>$CONFIG_STATUS
12554 echo ': clr' >>$CONFIG_STATUS
12555 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12556 echo 'CEOF
12557 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12558 rm -f $tmp/in
12559 mv $tmp/out $tmp/in
12560 ' >>$CONFIG_STATUS
12561 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12562 rm -f conftest.undefs
12563 mv conftest.tail conftest.undefs
12564 done
12565 rm -f conftest.undefs
12566
12567 cat >>$CONFIG_STATUS <<\_ACEOF
12568 # Let's still pretend it is `configure' which instantiates (i.e., don't
12569 # use $as_me), people would be surprised to read:
12570 # /* config.h. Generated by config.status. */
12571 if test x"$ac_file" = x-; then
12572 echo "/* Generated by configure. */" >$tmp/config.h
12573 else
12574 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12575 fi
12576 cat $tmp/in >>$tmp/config.h
12577 rm -f $tmp/in
12578 if test x"$ac_file" != x-; then
12579 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12581 echo "$as_me: $ac_file is unchanged" >&6;}
12582 else
12583 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12585 X"$ac_file" : 'X\(//\)[^/]' \| \
12586 X"$ac_file" : 'X\(//\)$' \| \
12587 X"$ac_file" : 'X\(/\)' \| \
12588 . : '\(.\)' 2>/dev/null ||
12589 echo X"$ac_file" |
12590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12592 /^X\(\/\/\)$/{ s//\1/; q; }
12593 /^X\(\/\).*/{ s//\1/; q; }
12594 s/.*/./; q'`
12595 { if $as_mkdir_p; then
12596 mkdir -p "$ac_dir"
12597 else
12598 as_dir="$ac_dir"
12599 as_dirs=
12600 while test ! -d "$as_dir"; do
12601 as_dirs="$as_dir $as_dirs"
12602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12604 X"$as_dir" : 'X\(//\)[^/]' \| \
12605 X"$as_dir" : 'X\(//\)$' \| \
12606 X"$as_dir" : 'X\(/\)' \| \
12607 . : '\(.\)' 2>/dev/null ||
12608 echo X"$as_dir" |
12609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12611 /^X\(\/\/\)$/{ s//\1/; q; }
12612 /^X\(\/\).*/{ s//\1/; q; }
12613 s/.*/./; q'`
12614 done
12615 test ! -n "$as_dirs" || mkdir $as_dirs
12616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12618 { (exit 1); exit 1; }; }; }
12619
12620 rm -f $ac_file
12621 mv $tmp/config.h $ac_file
12622 fi
12623 else
12624 cat $tmp/config.h
12625 rm -f $tmp/config.h
12626 fi
12627 done
12628 _ACEOF
12629 cat >>$CONFIG_STATUS <<\_ACEOF
12630
12631 #
12632 # CONFIG_COMMANDS section.
12633 #
12634 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12635 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12636 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12637 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12638 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12639 X"$ac_dest" : 'X\(//\)[^/]' \| \
12640 X"$ac_dest" : 'X\(//\)$' \| \
12641 X"$ac_dest" : 'X\(/\)' \| \
12642 . : '\(.\)' 2>/dev/null ||
12643 echo X"$ac_dest" |
12644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12646 /^X\(\/\/\)$/{ s//\1/; q; }
12647 /^X\(\/\).*/{ s//\1/; q; }
12648 s/.*/./; q'`
12649 { if $as_mkdir_p; then
12650 mkdir -p "$ac_dir"
12651 else
12652 as_dir="$ac_dir"
12653 as_dirs=
12654 while test ! -d "$as_dir"; do
12655 as_dirs="$as_dir $as_dirs"
12656 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12658 X"$as_dir" : 'X\(//\)[^/]' \| \
12659 X"$as_dir" : 'X\(//\)$' \| \
12660 X"$as_dir" : 'X\(/\)' \| \
12661 . : '\(.\)' 2>/dev/null ||
12662 echo X"$as_dir" |
12663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12665 /^X\(\/\/\)$/{ s//\1/; q; }
12666 /^X\(\/\).*/{ s//\1/; q; }
12667 s/.*/./; q'`
12668 done
12669 test ! -n "$as_dirs" || mkdir $as_dirs
12670 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12671 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12672 { (exit 1); exit 1; }; }; }
12673
12674 ac_builddir=.
12675
12676 if test "$ac_dir" != .; then
12677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12678 # A "../" for each directory in $ac_dir_suffix.
12679 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12680 else
12681 ac_dir_suffix= ac_top_builddir=
12682 fi
12683
12684 case $srcdir in
12685 .) # No --srcdir option. We are building in place.
12686 ac_srcdir=.
12687 if test -z "$ac_top_builddir"; then
12688 ac_top_srcdir=.
12689 else
12690 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12691 fi ;;
12692 [\\/]* | ?:[\\/]* ) # Absolute path.
12693 ac_srcdir=$srcdir$ac_dir_suffix;
12694 ac_top_srcdir=$srcdir ;;
12695 *) # Relative path.
12696 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12697 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12698 esac
12699
12700 # Do not use `cd foo && pwd` to compute absolute paths, because
12701 # the directories may not exist.
12702 case `pwd` in
12703 .) ac_abs_builddir="$ac_dir";;
12704 *)
12705 case "$ac_dir" in
12706 .) ac_abs_builddir=`pwd`;;
12707 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12708 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12709 esac;;
12710 esac
12711 case $ac_abs_builddir in
12712 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12713 *)
12714 case ${ac_top_builddir}. in
12715 .) ac_abs_top_builddir=$ac_abs_builddir;;
12716 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12717 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12718 esac;;
12719 esac
12720 case $ac_abs_builddir in
12721 .) ac_abs_srcdir=$ac_srcdir;;
12722 *)
12723 case $ac_srcdir in
12724 .) ac_abs_srcdir=$ac_abs_builddir;;
12725 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12726 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12727 esac;;
12728 esac
12729 case $ac_abs_builddir in
12730 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12731 *)
12732 case $ac_top_srcdir in
12733 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12734 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12735 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12736 esac;;
12737 esac
12738
12739
12740 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12741 echo "$as_me: executing $ac_dest commands" >&6;}
12742 case $ac_dest in
12743 default-1 )
12744 # Only add multilib support code if we just rebuilt the top-level
12745 # Makefile.
12746 case " $CONFIG_FILES " in
12747 *" Makefile "*)
12748 ac_file=Makefile . ${multi_basedir}/config-ml.in
12749 ;;
12750 esac ;;
12751 libtool )
12752
12753 # See if we are running on zsh, and set the options which allow our
12754 # commands through without removal of \ escapes.
12755 if test -n "${ZSH_VERSION+set}" ; then
12756 setopt NO_GLOB_SUBST
12757 fi
12758
12759 cfgfile="${ofile}T"
12760 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12761 $RM "$cfgfile"
12762
12763 cat <<_LT_EOF >> "$cfgfile"
12764 #! $SHELL
12765
12766 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12767 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12769 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12770 #
12771 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12772 # 2006, 2007, 2008 Free Software Foundation, Inc.
12773 # Written by Gordon Matzigkeit, 1996
12774 #
12775 # This file is part of GNU Libtool.
12776 #
12777 # GNU Libtool is free software; you can redistribute it and/or
12778 # modify it under the terms of the GNU General Public License as
12779 # published by the Free Software Foundation; either version 2 of
12780 # the License, or (at your option) any later version.
12781 #
12782 # As a special exception to the GNU General Public License,
12783 # if you distribute this file as part of a program or library that
12784 # is built using GNU Libtool, you may include this file under the
12785 # same distribution terms that you use for the rest of that program.
12786 #
12787 # GNU Libtool is distributed in the hope that it will be useful,
12788 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12789 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12790 # GNU General Public License for more details.
12791 #
12792 # You should have received a copy of the GNU General Public License
12793 # along with GNU Libtool; see the file COPYING. If not, a copy
12794 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12795 # obtained by writing to the Free Software Foundation, Inc.,
12796 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12797
12798
12799 # The names of the tagged configurations supported by this script.
12800 available_tags=""
12801
12802 # ### BEGIN LIBTOOL CONFIG
12803
12804 # Assembler program.
12805 AS=$AS
12806
12807 # DLL creation program.
12808 DLLTOOL=$DLLTOOL
12809
12810 # Object dumper program.
12811 OBJDUMP=$OBJDUMP
12812
12813 # Which release of libtool.m4 was used?
12814 macro_version=$macro_version
12815 macro_revision=$macro_revision
12816
12817 # Whether or not to build shared libraries.
12818 build_libtool_libs=$enable_shared
12819
12820 # Whether or not to build static libraries.
12821 build_old_libs=$enable_static
12822
12823 # What type of objects to build.
12824 pic_mode=$pic_mode
12825
12826 # Whether or not to optimize for fast installation.
12827 fast_install=$enable_fast_install
12828
12829 # The host system.
12830 host_alias=$host_alias
12831 host=$host
12832 host_os=$host_os
12833
12834 # The build system.
12835 build_alias=$build_alias
12836 build=$build
12837 build_os=$build_os
12838
12839 # A sed program that does not truncate output.
12840 SED=$lt_SED
12841
12842 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12843 Xsed="\$SED -e 1s/^X//"
12844
12845 # A grep program that handles long lines.
12846 GREP=$lt_GREP
12847
12848 # An ERE matcher.
12849 EGREP=$lt_EGREP
12850
12851 # A literal string matcher.
12852 FGREP=$lt_FGREP
12853
12854 # A BSD- or MS-compatible name lister.
12855 NM=$lt_NM
12856
12857 # Whether we need soft or hard links.
12858 LN_S=$lt_LN_S
12859
12860 # What is the maximum length of a command?
12861 max_cmd_len=$max_cmd_len
12862
12863 # Object file suffix (normally "o").
12864 objext=$ac_objext
12865
12866 # Executable file suffix (normally "").
12867 exeext=$exeext
12868
12869 # whether the shell understands "unset".
12870 lt_unset=$lt_unset
12871
12872 # turn spaces into newlines.
12873 SP2NL=$lt_lt_SP2NL
12874
12875 # turn newlines into spaces.
12876 NL2SP=$lt_lt_NL2SP
12877
12878 # How to create reloadable object files.
12879 reload_flag=$lt_reload_flag
12880 reload_cmds=$lt_reload_cmds
12881
12882 # Method to check whether dependent libraries are shared objects.
12883 deplibs_check_method=$lt_deplibs_check_method
12884
12885 # Command to use when deplibs_check_method == "file_magic".
12886 file_magic_cmd=$lt_file_magic_cmd
12887
12888 # The archiver.
12889 AR=$lt_AR
12890 AR_FLAGS=$lt_AR_FLAGS
12891
12892 # A symbol stripping program.
12893 STRIP=$lt_STRIP
12894
12895 # Commands used to install an old-style archive.
12896 RANLIB=$lt_RANLIB
12897 old_postinstall_cmds=$lt_old_postinstall_cmds
12898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12899
12900 # A C compiler.
12901 LTCC=$lt_CC
12902
12903 # LTCC compiler flags.
12904 LTCFLAGS=$lt_CFLAGS
12905
12906 # Take the output of nm and produce a listing of raw symbols and C names.
12907 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12908
12909 # Transform the output of nm in a proper C declaration.
12910 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12911
12912 # Transform the output of nm in a C name address pair.
12913 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12914
12915 # Transform the output of nm in a C name address pair when lib prefix is needed.
12916 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12917
12918 # The name of the directory that contains temporary libtool files.
12919 objdir=$objdir
12920
12921 # Shell to use when invoking shell scripts.
12922 SHELL=$lt_SHELL
12923
12924 # An echo program that does not interpret backslashes.
12925 ECHO=$lt_ECHO
12926
12927 # Used to examine libraries when file_magic_cmd begins with "file".
12928 MAGIC_CMD=$MAGIC_CMD
12929
12930 # Must we lock files when doing compilation?
12931 need_locks=$lt_need_locks
12932
12933 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12934 DSYMUTIL=$lt_DSYMUTIL
12935
12936 # Tool to change global to local symbols on Mac OS X.
12937 NMEDIT=$lt_NMEDIT
12938
12939 # Tool to manipulate fat objects and archives on Mac OS X.
12940 LIPO=$lt_LIPO
12941
12942 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12943 OTOOL=$lt_OTOOL
12944
12945 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12946 OTOOL64=$lt_OTOOL64
12947
12948 # Old archive suffix (normally "a").
12949 libext=$libext
12950
12951 # Shared library suffix (normally ".so").
12952 shrext_cmds=$lt_shrext_cmds
12953
12954 # The commands to extract the exported symbol list from a shared archive.
12955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12956
12957 # Variables whose values should be saved in libtool wrapper scripts and
12958 # restored at link time.
12959 variables_saved_for_relink=$lt_variables_saved_for_relink
12960
12961 # Do we need the "lib" prefix for modules?
12962 need_lib_prefix=$need_lib_prefix
12963
12964 # Do we need a version for libraries?
12965 need_version=$need_version
12966
12967 # Library versioning type.
12968 version_type=$version_type
12969
12970 # Shared library runtime path variable.
12971 runpath_var=$runpath_var
12972
12973 # Shared library path variable.
12974 shlibpath_var=$shlibpath_var
12975
12976 # Is shlibpath searched before the hard-coded library search path?
12977 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12978
12979 # Format of library name prefix.
12980 libname_spec=$lt_libname_spec
12981
12982 # List of archive names. First name is the real one, the rest are links.
12983 # The last name is the one that the linker finds with -lNAME
12984 library_names_spec=$lt_library_names_spec
12985
12986 # The coded name of the library, if different from the real name.
12987 soname_spec=$lt_soname_spec
12988
12989 # Command to use after installation of a shared archive.
12990 postinstall_cmds=$lt_postinstall_cmds
12991
12992 # Command to use after uninstallation of a shared archive.
12993 postuninstall_cmds=$lt_postuninstall_cmds
12994
12995 # Commands used to finish a libtool library installation in a directory.
12996 finish_cmds=$lt_finish_cmds
12997
12998 # As "finish_cmds", except a single script fragment to be evaled but
12999 # not shown.
13000 finish_eval=$lt_finish_eval
13001
13002 # Whether we should hardcode library paths into libraries.
13003 hardcode_into_libs=$hardcode_into_libs
13004
13005 # Compile-time system search path for libraries.
13006 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13007
13008 # Run-time system search path for libraries.
13009 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13010
13011 # Whether dlopen is supported.
13012 dlopen_support=$enable_dlopen
13013
13014 # Whether dlopen of programs is supported.
13015 dlopen_self=$enable_dlopen_self
13016
13017 # Whether dlopen of statically linked programs is supported.
13018 dlopen_self_static=$enable_dlopen_self_static
13019
13020 # Commands to strip libraries.
13021 old_striplib=$lt_old_striplib
13022 striplib=$lt_striplib
13023
13024
13025 # The linker used to build libraries.
13026 LD=$lt_LD
13027
13028 # Commands used to build an old-style archive.
13029 old_archive_cmds=$lt_old_archive_cmds
13030
13031 # A language specific compiler.
13032 CC=$lt_compiler
13033
13034 # Is the compiler the GNU compiler?
13035 with_gcc=$GCC
13036
13037 # Compiler flag to turn off builtin functions.
13038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13039
13040 # How to pass a linker flag through the compiler.
13041 wl=$lt_lt_prog_compiler_wl
13042
13043 # Additional compiler flags for building library objects.
13044 pic_flag=$lt_lt_prog_compiler_pic
13045
13046 # Compiler flag to prevent dynamic linking.
13047 link_static_flag=$lt_lt_prog_compiler_static
13048
13049 # Does compiler simultaneously support -c and -o options?
13050 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13051
13052 # Whether or not to add -lc for building shared libraries.
13053 build_libtool_need_lc=$archive_cmds_need_lc
13054
13055 # Whether or not to disallow shared libs when runtime libs are static.
13056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13057
13058 # Compiler flag to allow reflexive dlopens.
13059 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13060
13061 # Compiler flag to generate shared objects directly from archives.
13062 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13063
13064 # Whether the compiler copes with passing no objects directly.
13065 compiler_needs_object=$lt_compiler_needs_object
13066
13067 # Create an old-style archive from a shared archive.
13068 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13069
13070 # Create a temporary old-style archive to link instead of a shared archive.
13071 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13072
13073 # Commands used to build a shared archive.
13074 archive_cmds=$lt_archive_cmds
13075 archive_expsym_cmds=$lt_archive_expsym_cmds
13076
13077 # Commands used to build a loadable module if different from building
13078 # a shared archive.
13079 module_cmds=$lt_module_cmds
13080 module_expsym_cmds=$lt_module_expsym_cmds
13081
13082 # Whether we are building with GNU ld or not.
13083 with_gnu_ld=$lt_with_gnu_ld
13084
13085 # Flag that allows shared libraries with undefined symbols to be built.
13086 allow_undefined_flag=$lt_allow_undefined_flag
13087
13088 # Flag that enforces no undefined symbols.
13089 no_undefined_flag=$lt_no_undefined_flag
13090
13091 # Flag to hardcode \$libdir into a binary during linking.
13092 # This must work even if \$libdir does not exist
13093 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13094
13095 # If ld is used when linking, flag to hardcode \$libdir into a binary
13096 # during linking. This must work even if \$libdir does not exist.
13097 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13098
13099 # Whether we need a single "-rpath" flag with a separated argument.
13100 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13101
13102 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13103 # DIR into the resulting binary.
13104 hardcode_direct=$hardcode_direct
13105
13106 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13107 # DIR into the resulting binary and the resulting library dependency is
13108 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13109 # library is relocated.
13110 hardcode_direct_absolute=$hardcode_direct_absolute
13111
13112 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13113 # into the resulting binary.
13114 hardcode_minus_L=$hardcode_minus_L
13115
13116 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13117 # into the resulting binary.
13118 hardcode_shlibpath_var=$hardcode_shlibpath_var
13119
13120 # Set to "yes" if building a shared library automatically hardcodes DIR
13121 # into the library and all subsequent libraries and executables linked
13122 # against it.
13123 hardcode_automatic=$hardcode_automatic
13124
13125 # Set to yes if linker adds runtime paths of dependent libraries
13126 # to runtime path list.
13127 inherit_rpath=$inherit_rpath
13128
13129 # Whether libtool must link a program against all its dependency libraries.
13130 link_all_deplibs=$link_all_deplibs
13131
13132 # Fix the shell variable \$srcfile for the compiler.
13133 fix_srcfile_path=$lt_fix_srcfile_path
13134
13135 # Set to "yes" if exported symbols are required.
13136 always_export_symbols=$always_export_symbols
13137
13138 # The commands to list exported symbols.
13139 export_symbols_cmds=$lt_export_symbols_cmds
13140
13141 # Symbols that should not be listed in the preloaded symbols.
13142 exclude_expsyms=$lt_exclude_expsyms
13143
13144 # Symbols that must always be exported.
13145 include_expsyms=$lt_include_expsyms
13146
13147 # Commands necessary for linking programs (against libraries) with templates.
13148 prelink_cmds=$lt_prelink_cmds
13149
13150 # Specify filename containing input files.
13151 file_list_spec=$lt_file_list_spec
13152
13153 # How to hardcode a shared library path into an executable.
13154 hardcode_action=$hardcode_action
13155
13156 # ### END LIBTOOL CONFIG
13157
13158 _LT_EOF
13159
13160 case $host_os in
13161 aix3*)
13162 cat <<\_LT_EOF >> "$cfgfile"
13163 # AIX sometimes has problems with the GCC collect2 program. For some
13164 # reason, if we set the COLLECT_NAMES environment variable, the problems
13165 # vanish in a puff of smoke.
13166 if test "X${COLLECT_NAMES+set}" != Xset; then
13167 COLLECT_NAMES=
13168 export COLLECT_NAMES
13169 fi
13170 _LT_EOF
13171 ;;
13172 esac
13173
13174
13175 ltmain="$ac_aux_dir/ltmain.sh"
13176
13177
13178 # We use sed instead of cat because bash on DJGPP gets confused if
13179 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13180 # text mode, it properly converts lines to CR/LF. This bash problem
13181 # is reportedly fixed, but why not run on old versions too?
13182 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13183 || (rm -f "$cfgfile"; exit 1)
13184
13185 case $xsi_shell in
13186 yes)
13187 cat << \_LT_EOF >> "$cfgfile"
13188
13189 # func_dirname file append nondir_replacement
13190 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13191 # otherwise set result to NONDIR_REPLACEMENT.
13192 func_dirname ()
13193 {
13194 case ${1} in
13195 */*) func_dirname_result="${1%/*}${2}" ;;
13196 * ) func_dirname_result="${3}" ;;
13197 esac
13198 }
13199
13200 # func_basename file
13201 func_basename ()
13202 {
13203 func_basename_result="${1##*/}"
13204 }
13205
13206 # func_dirname_and_basename file append nondir_replacement
13207 # perform func_basename and func_dirname in a single function
13208 # call:
13209 # dirname: Compute the dirname of FILE. If nonempty,
13210 # add APPEND to the result, otherwise set result
13211 # to NONDIR_REPLACEMENT.
13212 # value returned in "$func_dirname_result"
13213 # basename: Compute filename of FILE.
13214 # value retuned in "$func_basename_result"
13215 # Implementation must be kept synchronized with func_dirname
13216 # and func_basename. For efficiency, we do not delegate to
13217 # those functions but instead duplicate the functionality here.
13218 func_dirname_and_basename ()
13219 {
13220 case ${1} in
13221 */*) func_dirname_result="${1%/*}${2}" ;;
13222 * ) func_dirname_result="${3}" ;;
13223 esac
13224 func_basename_result="${1##*/}"
13225 }
13226
13227 # func_stripname prefix suffix name
13228 # strip PREFIX and SUFFIX off of NAME.
13229 # PREFIX and SUFFIX must not contain globbing or regex special
13230 # characters, hashes, percent signs, but SUFFIX may contain a leading
13231 # dot (in which case that matches only a dot).
13232 func_stripname ()
13233 {
13234 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13235 # positional parameters, so assign one to ordinary parameter first.
13236 func_stripname_result=${3}
13237 func_stripname_result=${func_stripname_result#"${1}"}
13238 func_stripname_result=${func_stripname_result%"${2}"}
13239 }
13240
13241 # func_opt_split
13242 func_opt_split ()
13243 {
13244 func_opt_split_opt=${1%%=*}
13245 func_opt_split_arg=${1#*=}
13246 }
13247
13248 # func_lo2o object
13249 func_lo2o ()
13250 {
13251 case ${1} in
13252 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13253 *) func_lo2o_result=${1} ;;
13254 esac
13255 }
13256
13257 # func_xform libobj-or-source
13258 func_xform ()
13259 {
13260 func_xform_result=${1%.*}.lo
13261 }
13262
13263 # func_arith arithmetic-term...
13264 func_arith ()
13265 {
13266 func_arith_result=$(( $* ))
13267 }
13268
13269 # func_len string
13270 # STRING may not start with a hyphen.
13271 func_len ()
13272 {
13273 func_len_result=${#1}
13274 }
13275
13276 _LT_EOF
13277 ;;
13278 *) # Bourne compatible functions.
13279 cat << \_LT_EOF >> "$cfgfile"
13280
13281 # func_dirname file append nondir_replacement
13282 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13283 # otherwise set result to NONDIR_REPLACEMENT.
13284 func_dirname ()
13285 {
13286 # Extract subdirectory from the argument.
13287 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13288 if test "X$func_dirname_result" = "X${1}"; then
13289 func_dirname_result="${3}"
13290 else
13291 func_dirname_result="$func_dirname_result${2}"
13292 fi
13293 }
13294
13295 # func_basename file
13296 func_basename ()
13297 {
13298 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13299 }
13300
13301
13302 # func_stripname prefix suffix name
13303 # strip PREFIX and SUFFIX off of NAME.
13304 # PREFIX and SUFFIX must not contain globbing or regex special
13305 # characters, hashes, percent signs, but SUFFIX may contain a leading
13306 # dot (in which case that matches only a dot).
13307 # func_strip_suffix prefix name
13308 func_stripname ()
13309 {
13310 case ${2} in
13311 .*) func_stripname_result=`$ECHO "X${3}" \
13312 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13313 *) func_stripname_result=`$ECHO "X${3}" \
13314 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13315 esac
13316 }
13317
13318 # sed scripts:
13319 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13320 my_sed_long_arg='1s/^-[^=]*=//'
13321
13322 # func_opt_split
13323 func_opt_split ()
13324 {
13325 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13326 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13327 }
13328
13329 # func_lo2o object
13330 func_lo2o ()
13331 {
13332 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13333 }
13334
13335 # func_xform libobj-or-source
13336 func_xform ()
13337 {
13338 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13339 }
13340
13341 # func_arith arithmetic-term...
13342 func_arith ()
13343 {
13344 func_arith_result=`expr "$@"`
13345 }
13346
13347 # func_len string
13348 # STRING may not start with a hyphen.
13349 func_len ()
13350 {
13351 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13352 }
13353
13354 _LT_EOF
13355 esac
13356
13357 case $lt_shell_append in
13358 yes)
13359 cat << \_LT_EOF >> "$cfgfile"
13360
13361 # func_append var value
13362 # Append VALUE to the end of shell variable VAR.
13363 func_append ()
13364 {
13365 eval "$1+=\$2"
13366 }
13367 _LT_EOF
13368 ;;
13369 *)
13370 cat << \_LT_EOF >> "$cfgfile"
13371
13372 # func_append var value
13373 # Append VALUE to the end of shell variable VAR.
13374 func_append ()
13375 {
13376 eval "$1=\$$1\$2"
13377 }
13378
13379 _LT_EOF
13380 ;;
13381 esac
13382
13383
13384 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13385 || (rm -f "$cfgfile"; exit 1)
13386
13387 mv -f "$cfgfile" "$ofile" ||
13388 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13389 chmod +x "$ofile"
13390
13391 ;;
13392 esac
13393 done
13394 _ACEOF
13395
13396 cat >>$CONFIG_STATUS <<\_ACEOF
13397
13398 { (exit 0); exit 0; }
13399 _ACEOF
13400 chmod +x $CONFIG_STATUS
13401 ac_clean_files=$ac_clean_files_save
13402
13403
13404 # configure is writing to config.log, and then calls config.status.
13405 # config.status does its own redirection, appending to config.log.
13406 # Unfortunately, on DOS this fails, as config.log is still kept open
13407 # by configure, so config.status won't be able to write to it; its
13408 # output is simply discarded. So we exec the FD to /dev/null,
13409 # effectively closing config.log, so it can be properly (re)opened and
13410 # appended to by config.status. When coming back to configure, we
13411 # need to make the FD available again.
13412 if test "$no_create" != yes; then
13413 ac_cs_success=:
13414 ac_config_status_args=
13415 test "$silent" = yes &&
13416 ac_config_status_args="$ac_config_status_args --quiet"
13417 exec 5>/dev/null
13418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13419 exec 5>>config.log
13420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13421 # would make configure fail if this is the last instruction.
13422 $ac_cs_success || { (exit 1); exit 1; }
13423 fi
13424