1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for tina-libs 6.0rcbuild008.
4 #
5 # Report bugs to <bugs@tina-vision.net>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='tina-libs'
425 PACKAGE_TARNAME='tina-libs'
426 PACKAGE_VERSION='6.0rcbuild008'
427 PACKAGE_STRING='tina-libs 6.0rcbuild008'
428 PACKAGE_BUGREPORT='bugs@tina-vision.net'
429
430 ac_unique_file="tina/vision/visDef.h"
431 ac_default_prefix=`pwd`
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 # include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 # include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 # include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807 done
808
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829 do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882 else
883 ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958 \`configure' configures tina-libs 6.0rcbuild008 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980 cat <<_ACEOF
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007 _ACEOF
1008
1009 cat <<\_ACEOF
1010
1011 Program names:
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
1016 System types:
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 --target=TARGET configure for building compilers for TARGET [HOST]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024 case $ac_init_help in
1025 short | recursive ) echo "Configuration of tina-libs 6.0rcbuild008:";;
1026 esac
1027 cat <<\_ACEOF
1028
1029 Optional Features:
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1032 --enable-maintainer-mode enable make rules and dependencies not useful
1033 (and sometimes confusing) to the casual installer
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=no]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-dependency-tracking speeds up one-time build
1041 --enable-dependency-tracking do not reject slow dependency extractors
1042 --disable-libtool-lock avoid locking (might break parallel builds)
1043
1044 Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
1052
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CPP C preprocessor
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1066
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1069
1070 Report bugs to <bugs@tina-vision.net>.
1071 _ACEOF
1072 fi
1073
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086 ac_dir_suffix= ac_top_builddir=
1087 fi
1088
1089 case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1107 case `pwd` in
1108 .) ac_abs_builddir="$ac_dir";;
1109 *)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1127 *)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142 esac
1143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
1159 cd $ac_popdir
1160 done
1161 fi
1162
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1165 cat <<\_ACEOF
1166 tina-libs configure 6.0rcbuild008
1167 generated by GNU Autoconf 2.59
1168
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1172 _ACEOF
1173 exit 0
1174 fi
1175 exec 5>config.log
1176 cat >&5 <<_ACEOF
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1179
1180 It was created by tina-libs $as_me 6.0rcbuild008, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1182
1183 $ $0 $@
1184
1185 _ACEOF
1186 {
1187 cat <<_ASUNAME
1188 ## --------- ##
1189 ## Platform. ##
1190 ## --------- ##
1191
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209 _ASUNAME
1210
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 for as_dir in $PATH
1213 do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217 done
1218
1219 } >&5
1220
1221 cat >&5 <<_ACEOF
1222
1223
1224 ## ----------- ##
1225 ## Core tests. ##
1226 ## ----------- ##
1227
1228 _ACEOF
1229
1230
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_configure_args=
1237 ac_configure_args0=
1238 ac_configure_args1=
1239 ac_sep=
1240 ac_must_keep_next=false
1241 for ac_pass in 1 2
1242 do
1243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1259 else
1260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
1271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
1278 done
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1296 _ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299 {
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 ;;
1307 *)
1308 sed -n \
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ;;
1311 esac;
1312 }
1313 echo
1314
1315 cat <<\_ASBOX
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1319 _ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330 ## ------------- ##
1331 ## Output files. ##
1332 ## ------------- ##
1333 _ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345 ## ----------- ##
1346 ## confdefs.h. ##
1347 ## ----------- ##
1348 _ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 done
1364 ac_signal=0
1365
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 echo >confdefs.h
1370
1371 # Predefined preprocessor variables.
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 _ACEOF
1396
1397
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406 fi
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414 done
1415
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427 else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431 fi
1432
1433 # Check that the precious variables saved in the cache have kept the same
1434 # value.
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475 done
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482 fi
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516 ac_aux_dir=
1517 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1518 if test -f $ac_dir/install-sh; then
1519 ac_aux_dir=$ac_dir
1520 ac_install_sh="$ac_aux_dir/install-sh -c"
1521 break
1522 elif test -f $ac_dir/install.sh; then
1523 ac_aux_dir=$ac_dir
1524 ac_install_sh="$ac_aux_dir/install.sh -c"
1525 break
1526 elif test -f $ac_dir/shtool; then
1527 ac_aux_dir=$ac_dir
1528 ac_install_sh="$ac_aux_dir/shtool install -c"
1529 break
1530 fi
1531 done
1532 if test -z "$ac_aux_dir"; then
1533 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1534 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1535 { (exit 1); exit 1; }; }
1536 fi
1537 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1538 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1539 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1540
1541 # Make sure we can run config.sub.
1542 $ac_config_sub sun4 >/dev/null 2>&1 ||
1543 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1544 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1545 { (exit 1); exit 1; }; }
1546
1547 echo "$as_me:$LINENO: checking build system type" >&5
1548 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1549 if test "${ac_cv_build+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 ac_cv_build_alias=$build_alias
1553 test -z "$ac_cv_build_alias" &&
1554 ac_cv_build_alias=`$ac_config_guess`
1555 test -z "$ac_cv_build_alias" &&
1556 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1557 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1558 { (exit 1); exit 1; }; }
1559 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1563
1564 fi
1565 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1566 echo "${ECHO_T}$ac_cv_build" >&6
1567 build=$ac_cv_build
1568 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573 echo "$as_me:$LINENO: checking host system type" >&5
1574 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1575 if test "${ac_cv_host+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 ac_cv_host_alias=$host_alias
1579 test -z "$ac_cv_host_alias" &&
1580 ac_cv_host_alias=$ac_cv_build_alias
1581 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586 fi
1587 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1588 echo "${ECHO_T}$ac_cv_host" >&6
1589 host=$ac_cv_host
1590 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595 echo "$as_me:$LINENO: checking target system type" >&5
1596 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1597 if test "${ac_cv_target+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 ac_cv_target_alias=$target_alias
1601 test "x$ac_cv_target_alias" = "x" &&
1602 ac_cv_target_alias=$ac_cv_host_alias
1603 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1604 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1605 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1606 { (exit 1); exit 1; }; }
1607
1608 fi
1609 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1610 echo "${ECHO_T}$ac_cv_target" >&6
1611 target=$ac_cv_target
1612 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615
1616
1617 # The aliases save the names the user supplied, while $host etc.
1618 # will get canonicalized.
1619 test -n "$target_alias" &&
1620 test "$program_prefix$program_suffix$program_transform_name" = \
1621 NONENONEs,x,x, &&
1622 program_prefix=${target_alias}-
1623 cat >>confdefs.h <<\_ACEOF
1624 #define _GNU_SOURCE 1
1625 _ACEOF
1626
1627
1628 am__api_version="1.8"
1629 # Find a good install program. We prefer a C program (faster),
1630 # so one script is as good as another. But avoid the broken or
1631 # incompatible versions:
1632 # SysV /etc/install, /usr/sbin/install
1633 # SunOS /usr/etc/install
1634 # IRIX /sbin/install
1635 # AIX /bin/install
1636 # AmigaOS /C/install, which installs bootblocks on floppy discs
1637 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1640 # OS/2's system install, which has a completely different semantic
1641 # ./install, which can be erroneously created by make from ./install.sh.
1642 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1643 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1644 if test -z "$INSTALL"; then
1645 if test "${ac_cv_path_install+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 # Account for people who put trailing slashes in PATH elements.
1654 case $as_dir/ in
1655 ./ | .// | /cC/* | \
1656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1657 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1658 /usr/ucb/* ) ;;
1659 *)
1660 # OSF1 and SCO ODT 3.0 have their own names for install.
1661 # Don't use installbsd from OSF since it installs stuff as root
1662 # by default.
1663 for ac_prog in ginstall scoinst install; do
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1666 if test $ac_prog = install &&
1667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1668 # AIX install. It has an incompatible calling convention.
1669 :
1670 elif test $ac_prog = install &&
1671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1672 # program-specific install script used by HP pwplus--don't use.
1673 :
1674 else
1675 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1676 break 3
1677 fi
1678 fi
1679 done
1680 done
1681 ;;
1682 esac
1683 done
1684
1685
1686 fi
1687 if test "${ac_cv_path_install+set}" = set; then
1688 INSTALL=$ac_cv_path_install
1689 else
1690 # As a last resort, use the slow shell script. We don't cache a
1691 # path for INSTALL within a source directory, because that will
1692 # break other packages using the cache if that directory is
1693 # removed, or if the path is relative.
1694 INSTALL=$ac_install_sh
1695 fi
1696 fi
1697 echo "$as_me:$LINENO: result: $INSTALL" >&5
1698 echo "${ECHO_T}$INSTALL" >&6
1699
1700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1701 # It thinks the first close brace ends the variable substitution.
1702 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1703
1704 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1705
1706 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1707
1708 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1709 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1710 # Just in case
1711 sleep 1
1712 echo timestamp > conftest.file
1713 # Do `set' in a subshell so we don't clobber the current shell's
1714 # arguments. Must try -L first in case configure is actually a
1715 # symlink; some systems play weird games with the mod time of symlinks
1716 # (eg FreeBSD returns the mod time of the symlink's containing
1717 # directory).
1718 if (
1719 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1720 if test "$*" = "X"; then
1721 # -L didn't work.
1722 set X `ls -t $srcdir/configure conftest.file`
1723 fi
1724 rm -f conftest.file
1725 if test "$*" != "X $srcdir/configure conftest.file" \
1726 && test "$*" != "X conftest.file $srcdir/configure"; then
1727
1728 # If neither matched, then we have a broken ls. This can happen
1729 # if, for instance, CONFIG_SHELL is bash and it inherits a
1730 # broken ls alias from the environment. This has actually
1731 # happened. Such a system could not be considered "sane".
1732 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1733 alias in your environment" >&5
1734 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1735 alias in your environment" >&2;}
1736 { (exit 1); exit 1; }; }
1737 fi
1738
1739 test "$2" = conftest.file
1740 )
1741 then
1742 # Ok.
1743 :
1744 else
1745 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1746 Check your system clock" >&5
1747 echo "$as_me: error: newly created file is older than distributed files!
1748 Check your system clock" >&2;}
1749 { (exit 1); exit 1; }; }
1750 fi
1751 echo "$as_me:$LINENO: result: yes" >&5
1752 echo "${ECHO_T}yes" >&6
1753 test "$program_prefix" != NONE &&
1754 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1755 # Use a double $ so make ignores it.
1756 test "$program_suffix" != NONE &&
1757 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1758 # Double any \ or $. echo might interpret backslashes.
1759 # By default was `s,x,x', remove it if useless.
1760 cat <<\_ACEOF >conftest.sed
1761 s/[\\$]/&&/g;s/;s,x,x,$//
1762 _ACEOF
1763 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1764 rm conftest.sed
1765
1766 # expand $ac_aux_dir to an absolute path
1767 am_aux_dir=`cd $ac_aux_dir && pwd`
1768
1769 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1770 # Use eval to expand $SHELL
1771 if eval "$MISSING --run true"; then
1772 am_missing_run="$MISSING --run "
1773 else
1774 am_missing_run=
1775 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1776 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1777 fi
1778
1779 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1780 # Keeping the `.' argument allows $(mkdir_p) to be used without
1781 # argument. Indeed, we sometimes output rules like
1782 # $(mkdir_p) $(somedir)
1783 # where $(somedir) is conditionally defined.
1784 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1785 # expensive solution, as it forces Make to start a sub-shell.)
1786 mkdir_p='mkdir -p -- .'
1787 else
1788 # On NextStep and OpenStep, the `mkdir' command does not
1789 # recognize any option. It will interpret all options as
1790 # directories to create, and then abort because `.' already
1791 # exists.
1792 for d in ./-p ./--version;
1793 do
1794 test -d $d && rmdir $d
1795 done
1796 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1797 if test -f "$ac_aux_dir/mkinstalldirs"; then
1798 mkdir_p='$(mkinstalldirs)'
1799 else
1800 mkdir_p='$(install_sh) -d'
1801 fi
1802 fi
1803
1804 for ac_prog in gawk mawk nawk awk
1805 do
1806 # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_AWK+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813 if test -n "$AWK"; then
1814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_AWK="$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 AWK=$ac_cv_prog_AWK
1833 if test -n "$AWK"; then
1834 echo "$as_me:$LINENO: result: $AWK" >&5
1835 echo "${ECHO_T}$AWK" >&6
1836 else
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841 test -n "$AWK" && break
1842 done
1843
1844 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1845 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1846 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1847 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 cat >conftest.make <<\_ACEOF
1851 all:
1852 @echo 'ac_maketemp="$(MAKE)"'
1853 _ACEOF
1854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1855 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1856 if test -n "$ac_maketemp"; then
1857 eval ac_cv_prog_make_${ac_make}_set=yes
1858 else
1859 eval ac_cv_prog_make_${ac_make}_set=no
1860 fi
1861 rm -f conftest.make
1862 fi
1863 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1866 SET_MAKE=
1867 else
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1870 SET_MAKE="MAKE=${MAKE-make}"
1871 fi
1872
1873 rm -rf .tst 2>/dev/null
1874 mkdir .tst 2>/dev/null
1875 if test -d .tst; then
1876 am__leading_dot=.
1877 else
1878 am__leading_dot=_
1879 fi
1880 rmdir .tst 2>/dev/null
1881
1882 # test to see if srcdir already configured
1883 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1884 test -f $srcdir/config.status; then
1885 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1886 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1887 { (exit 1); exit 1; }; }
1888 fi
1889
1890 # test whether we have cygpath
1891 if test -z "$CYGPATH_W"; then
1892 if (cygpath --version) >/dev/null 2>/dev/null; then
1893 CYGPATH_W='cygpath -w'
1894 else
1895 CYGPATH_W=echo
1896 fi
1897 fi
1898
1899
1900 # Define the identity of the package.
1901 PACKAGE='tina-libs'
1902 VERSION='6.0rcbuild008'
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE "$PACKAGE"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define VERSION "$VERSION"
1912 _ACEOF
1913
1914 # Some tools Automake needs.
1915
1916 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1917
1918
1919 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1920
1921
1922 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1923
1924
1925 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1926
1927
1928 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1929
1930
1931 AMTAR=${AMTAR-"${am_missing_run}tar"}
1932
1933 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1934
1935 # Installed binaries are usually stripped using `strip' when the user
1936 # run `make install-strip'. However `strip' might not be the right
1937 # tool to use in cross-compilation environments, therefore Automake
1938 # will honor the `STRIP' environment variable to overrule this program.
1939 if test "$cross_compiling" != no; then
1940 if test -n "$ac_tool_prefix"; then
1941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1942 set dummy ${ac_tool_prefix}strip; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_STRIP+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 if test -n "$STRIP"; then
1949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 break 2
1961 fi
1962 done
1963 done
1964
1965 fi
1966 fi
1967 STRIP=$ac_cv_prog_STRIP
1968 if test -n "$STRIP"; then
1969 echo "$as_me:$LINENO: result: $STRIP" >&5
1970 echo "${ECHO_T}$STRIP" >&6
1971 else
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1974 fi
1975
1976 fi
1977 if test -z "$ac_cv_prog_STRIP"; then
1978 ac_ct_STRIP=$STRIP
1979 # Extract the first word of "strip", so it can be a program name with args.
1980 set dummy strip; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 if test -n "$ac_ct_STRIP"; then
1987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 ac_cv_prog_ac_ct_STRIP="strip"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000 done
2001 done
2002
2003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2004 fi
2005 fi
2006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2007 if test -n "$ac_ct_STRIP"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2009 echo "${ECHO_T}$ac_ct_STRIP" >&6
2010 else
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015 STRIP=$ac_ct_STRIP
2016 else
2017 STRIP="$ac_cv_prog_STRIP"
2018 fi
2019
2020 fi
2021 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2022
2023 # We need awk for the "check" target. The system "awk" is bad on
2024 # some platforms.
2025
2026
2027
2028
2029 ac_config_headers="$ac_config_headers config.h"
2030
2031 # prefix location for libraries is within build directory
2032
2033 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2034 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2035 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2036 if test "${enable_maintainer_mode+set}" = set; then
2037 enableval="$enable_maintainer_mode"
2038 USE_MAINTAINER_MODE=$enableval
2039 else
2040 USE_MAINTAINER_MODE=no
2041 fi;
2042 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2043 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2044
2045
2046 if test $USE_MAINTAINER_MODE = yes; then
2047 MAINTAINER_MODE_TRUE=
2048 MAINTAINER_MODE_FALSE='#'
2049 else
2050 MAINTAINER_MODE_TRUE='#'
2051 MAINTAINER_MODE_FALSE=
2052 fi
2053
2054 MAINT=$MAINTAINER_MODE_TRUE
2055
2056
2057
2058 # Check system
2059
2060 # This used to use AC_CYGWIN, AC_MINGw32, which test the host,
2061 # not the target.
2062 CYGWIN=no; MINGW32=no
2063 case $target_os in
2064 *cygwin*) CYGWIN=yes;;
2065 *mingw32*) MINGW32=yes;;
2066 esac
2067
2068 # Checks for programs.
2069 # Check whether --enable-shared or --disable-shared was given.
2070 if test "${enable_shared+set}" = set; then
2071 enableval="$enable_shared"
2072 p=${PACKAGE-default}
2073 case $enableval in
2074 yes) enable_shared=yes ;;
2075 no) enable_shared=no ;;
2076 *)
2077 enable_shared=no
2078 # Look at the argument we got. We use all the common list separators.
2079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2080 for pkg in $enableval; do
2081 IFS="$lt_save_ifs"
2082 if test "X$pkg" = "X$p"; then
2083 enable_shared=yes
2084 fi
2085 done
2086 IFS="$lt_save_ifs"
2087 ;;
2088 esac
2089 else
2090 enable_shared=no
2091 fi;
2092
2093
2094 # Check whether --enable-static or --disable-static was given.
2095 if test "${enable_static+set}" = set; then
2096 enableval="$enable_static"
2097 p=${PACKAGE-default}
2098 case $enableval in
2099 yes) enable_static=yes ;;
2100 no) enable_static=no ;;
2101 *)
2102 enable_static=no
2103 # Look at the argument we got. We use all the common list separators.
2104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2105 for pkg in $enableval; do
2106 IFS="$lt_save_ifs"
2107 if test "X$pkg" = "X$p"; then
2108 enable_static=yes
2109 fi
2110 done
2111 IFS="$lt_save_ifs"
2112 ;;
2113 esac
2114 else
2115 enable_static=yes
2116 fi;
2117
2118 # Check whether --enable-fast-install or --disable-fast-install was given.
2119 if test "${enable_fast_install+set}" = set; then
2120 enableval="$enable_fast_install"
2121 p=${PACKAGE-default}
2122 case $enableval in
2123 yes) enable_fast_install=yes ;;
2124 no) enable_fast_install=no ;;
2125 *)
2126 enable_fast_install=no
2127 # Look at the argument we got. We use all the common list separators.
2128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2129 for pkg in $enableval; do
2130 IFS="$lt_save_ifs"
2131 if test "X$pkg" = "X$p"; then
2132 enable_fast_install=yes
2133 fi
2134 done
2135 IFS="$lt_save_ifs"
2136 ;;
2137 esac
2138 else
2139 enable_fast_install=yes
2140 fi;
2141
2142 DEPDIR="${am__leading_dot}deps"
2143
2144 ac_config_commands="$ac_config_commands depfiles"
2145
2146
2147 am_make=${MAKE-make}
2148 cat > confinc << 'END'
2149 am__doit:
2150 @echo done
2151 .PHONY: am__doit
2152 END
2153 # If we don't find an include directive, just comment out the code.
2154 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2155 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2156 am__include="#"
2157 am__quote=
2158 _am_result=none
2159 # First try GNU make style include.
2160 echo "include confinc" > confmf
2161 # We grep out `Entering directory' and `Leaving directory'
2162 # messages which can occur if `w' ends up in MAKEFLAGS.
2163 # In particular we don't look at `^make:' because GNU make might
2164 # be invoked under some other name (usually "gmake"), in which
2165 # case it prints its new name instead of `make'.
2166 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2167 am__include=include
2168 am__quote=
2169 _am_result=GNU
2170 fi
2171 # Now try BSD make style include.
2172 if test "$am__include" = "#"; then
2173 echo '.include "confinc"' > confmf
2174 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2175 am__include=.include
2176 am__quote="\""
2177 _am_result=BSD
2178 fi
2179 fi
2180
2181
2182 echo "$as_me:$LINENO: result: $_am_result" >&5
2183 echo "${ECHO_T}$_am_result" >&6
2184 rm -f confinc confmf
2185
2186 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2187 if test "${enable_dependency_tracking+set}" = set; then
2188 enableval="$enable_dependency_tracking"
2189
2190 fi;
2191 if test "x$enable_dependency_tracking" != xno; then
2192 am_depcomp="$ac_aux_dir/depcomp"
2193 AMDEPBACKSLASH='\'
2194 fi
2195
2196
2197 if test "x$enable_dependency_tracking" != xno; then
2198 AMDEP_TRUE=
2199 AMDEP_FALSE='#'
2200 else
2201 AMDEP_TRUE='#'
2202 AMDEP_FALSE=
2203 fi
2204
2205
2206
2207 ac_ext=c
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 if test -n "$ac_tool_prefix"; then
2213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2233 fi
2234 done
2235 done
2236
2237 fi
2238 fi
2239 CC=$ac_cv_prog_CC
2240 if test -n "$CC"; then
2241 echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6
2243 else
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2246 fi
2247
2248 fi
2249 if test -z "$ac_cv_prog_CC"; then
2250 ac_ct_CC=$CC
2251 # Extract the first word of "gcc", so it can be a program name with args.
2252 set dummy gcc; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 if test -n "$ac_ct_CC"; then
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268 ac_cv_prog_ac_ct_CC="gcc"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 break 2
2271 fi
2272 done
2273 done
2274
2275 fi
2276 fi
2277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2278 if test -n "$ac_ct_CC"; then
2279 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2280 echo "${ECHO_T}$ac_ct_CC" >&6
2281 else
2282 echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2284 fi
2285
2286 CC=$ac_ct_CC
2287 else
2288 CC="$ac_cv_prog_CC"
2289 fi
2290
2291 if test -z "$CC"; then
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}cc; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_CC="${ac_tool_prefix}cc"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 break 2
2313 fi
2314 done
2315 done
2316
2317 fi
2318 fi
2319 CC=$ac_cv_prog_CC
2320 if test -n "$CC"; then
2321 echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2323 else
2324 echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2326 fi
2327
2328 fi
2329 if test -z "$ac_cv_prog_CC"; then
2330 ac_ct_CC=$CC
2331 # Extract the first word of "cc", so it can be a program name with args.
2332 set dummy cc; ac_word=$2
2333 echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 if test -n "$ac_ct_CC"; then
2339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348 ac_cv_prog_ac_ct_CC="cc"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2351 fi
2352 done
2353 done
2354
2355 fi
2356 fi
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360 echo "${ECHO_T}$ac_ct_CC" >&6
2361 else
2362 echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2364 fi
2365
2366 CC=$ac_ct_CC
2367 else
2368 CC="$ac_cv_prog_CC"
2369 fi
2370
2371 fi
2372 if test -z "$CC"; then
2373 # Extract the first word of "cc", so it can be a program name with args.
2374 set dummy cc; ac_word=$2
2375 echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383 ac_prog_rejected=no
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2392 ac_prog_rejected=yes
2393 continue
2394 fi
2395 ac_cv_prog_CC="cc"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2398 fi
2399 done
2400 done
2401
2402 if test $ac_prog_rejected = yes; then
2403 # We found a bogon in the path, so make sure we never use it.
2404 set dummy $ac_cv_prog_CC
2405 shift
2406 if test $# != 0; then
2407 # We chose a different compiler from the bogus one.
2408 # However, it has the same basename, so the bogon will be chosen
2409 # first if we set CC to just the basename; use the full file name.
2410 shift
2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2412 fi
2413 fi
2414 fi
2415 fi
2416 CC=$ac_cv_prog_CC
2417 if test -n "$CC"; then
2418 echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6
2420 else
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425 fi
2426 if test -z "$CC"; then
2427 if test -n "$ac_tool_prefix"; then
2428 for ac_prog in cl
2429 do
2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451 done
2452 done
2453
2454 fi
2455 fi
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458 echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6
2460 else
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2463 fi
2464
2465 test -n "$CC" && break
2466 done
2467 fi
2468 if test -z "$CC"; then
2469 ac_ct_CC=$CC
2470 for ac_prog in cl
2471 do
2472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_ac_ct_CC="$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495
2496 fi
2497 fi
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501 echo "${ECHO_T}$ac_ct_CC" >&6
2502 else
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2505 fi
2506
2507 test -n "$ac_ct_CC" && break
2508 done
2509
2510 CC=$ac_ct_CC
2511 fi
2512
2513 fi
2514
2515
2516 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&5
2518 echo "$as_me: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&2;}
2520 { (exit 1); exit 1; }; }
2521
2522 # Provide some information about the compiler.
2523 echo "$as_me:$LINENO:" \
2524 "checking for C compiler version" >&5
2525 ac_compiler=`set X $ac_compile; echo $2`
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2527 (eval $ac_compiler --version </dev/null >&5) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2532 (eval $ac_compiler -v </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2537 (eval $ac_compiler -V </dev/null >&5) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548
2549 int
2550 main ()
2551 {
2552
2553 ;
2554 return 0;
2555 }
2556 _ACEOF
2557 ac_clean_files_save=$ac_clean_files
2558 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2559 # Try to create an executable without -o first, disregard a.out.
2560 # It will help us diagnose broken compilers, and finding out an intuition
2561 # of exeext.
2562 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2563 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2564 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2565 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2566 (eval $ac_link_default) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 # Find the output, starting from the most likely. This scheme is
2571 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2572 # resort.
2573
2574 # Be careful to initialize this variable, since it used to be cached.
2575 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2576 ac_cv_exeext=
2577 # b.out is created by i960 compilers.
2578 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2579 do
2580 test -f "$ac_file" || continue
2581 case $ac_file in
2582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2583 ;;
2584 conftest.$ac_ext )
2585 # This is the source file.
2586 ;;
2587 [ab].out )
2588 # We found the default executable, but exeext='' is most
2589 # certainly right.
2590 break;;
2591 *.* )
2592 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593 # FIXME: I believe we export ac_cv_exeext for Libtool,
2594 # but it would be cool to find out if it's true. Does anybody
2595 # maintain Libtool? --akim.
2596 export ac_cv_exeext
2597 break;;
2598 * )
2599 break;;
2600 esac
2601 done
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: C compiler cannot create executables
2609 See \`config.log' for more details." >&2;}
2610 { (exit 77); exit 77; }; }
2611 fi
2612
2613 ac_exeext=$ac_cv_exeext
2614 echo "$as_me:$LINENO: result: $ac_file" >&5
2615 echo "${ECHO_T}$ac_file" >&6
2616
2617 # Check the compiler produces executables we can run. If not, either
2618 # the compiler is broken, or we cross compile.
2619 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2620 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2621 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2622 # If not cross compiling, check that we can run a simple program.
2623 if test "$cross_compiling" != yes; then
2624 if { ac_try='./$ac_file'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 cross_compiling=no
2631 else
2632 if test "$cross_compiling" = maybe; then
2633 cross_compiling=yes
2634 else
2635 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2636 If you meant to cross compile, use \`--host'.
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot run C compiled programs.
2639 If you meant to cross compile, use \`--host'.
2640 See \`config.log' for more details." >&2;}
2641 { (exit 1); exit 1; }; }
2642 fi
2643 fi
2644 fi
2645 echo "$as_me:$LINENO: result: yes" >&5
2646 echo "${ECHO_T}yes" >&6
2647
2648 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2649 ac_clean_files=$ac_clean_files_save
2650 # Check the compiler produces executables we can run. If not, either
2651 # the compiler is broken, or we cross compile.
2652 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2653 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2654 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2655 echo "${ECHO_T}$cross_compiling" >&6
2656
2657 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2658 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660 (eval $ac_link) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; then
2664 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2665 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2666 # work properly (i.e., refer to `conftest.exe'), while it won't with
2667 # `rm'.
2668 for ac_file in conftest.exe conftest conftest.*; do
2669 test -f "$ac_file" || continue
2670 case $ac_file in
2671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2672 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2673 export ac_cv_exeext
2674 break;;
2675 * ) break;;
2676 esac
2677 done
2678 else
2679 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2680 See \`config.log' for more details." >&5
2681 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2682 See \`config.log' for more details." >&2;}
2683 { (exit 1); exit 1; }; }
2684 fi
2685
2686 rm -f conftest$ac_cv_exeext
2687 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2688 echo "${ECHO_T}$ac_cv_exeext" >&6
2689
2690 rm -f conftest.$ac_ext
2691 EXEEXT=$ac_cv_exeext
2692 ac_exeext=$EXEEXT
2693 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2694 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2695 if test "${ac_cv_objext+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h. */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2704
2705 int
2706 main ()
2707 {
2708
2709 ;
2710 return 0;
2711 }
2712 _ACEOF
2713 rm -f conftest.o conftest.obj
2714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715 (eval $ac_compile) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; then
2719 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2720 case $ac_file in
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2723 break;;
2724 esac
2725 done
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2733 See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2735 fi
2736
2737 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2740 echo "${ECHO_T}$ac_cv_objext" >&6
2741 OBJEXT=$ac_cv_objext
2742 ac_objext=$OBJEXT
2743 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2744 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2745 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h. */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2754
2755 int
2756 main ()
2757 {
2758 #ifndef __GNUC__
2759 choke me
2760 #endif
2761
2762 ;
2763 return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 ac_compiler_gnu=yes
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 ac_compiler_gnu=no
2794 fi
2795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2797
2798 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2800 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2801 GCC=`test $ac_compiler_gnu = yes && echo yes`
2802 ac_test_CFLAGS=${CFLAGS+set}
2803 ac_save_CFLAGS=$CFLAGS
2804 CFLAGS="-g"
2805 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2806 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2807 if test "${ac_cv_prog_cc_g+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816
2817 int
2818 main ()
2819 {
2820
2821 ;
2822 return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_cv_prog_cc_g=yes
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 ac_cv_prog_cc_g=no
2853 fi
2854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 fi
2856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2858 if test "$ac_test_CFLAGS" = set; then
2859 CFLAGS=$ac_save_CFLAGS
2860 elif test $ac_cv_prog_cc_g = yes; then
2861 if test "$GCC" = yes; then
2862 CFLAGS="-g -O2"
2863 else
2864 CFLAGS="-g"
2865 fi
2866 else
2867 if test "$GCC" = yes; then
2868 CFLAGS="-O2"
2869 else
2870 CFLAGS=
2871 fi
2872 fi
2873 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2874 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2875 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 ac_cv_prog_cc_stdc=no
2879 ac_save_CC=$CC
2880 cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 #include <stdarg.h>
2887 #include <stdio.h>
2888 #include <sys/types.h>
2889 #include <sys/stat.h>
2890 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2891 struct buf { int x; };
2892 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2893 static char *e (p, i)
2894 char **p;
2895 int i;
2896 {
2897 return p[i];
2898 }
2899 static char *f (char * (*g) (char **, int), char **p, ...)
2900 {
2901 char *s;
2902 va_list v;
2903 va_start (v,p);
2904 s = g (p, va_arg (v,int));
2905 va_end (v);
2906 return s;
2907 }
2908
2909 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2910 function prototypes and stuff, but not '\xHH' hex character constants.
2911 These don't provoke an error unfortunately, instead are silently treated
2912 as 'x'. The following induces an error, until -std1 is added to get
2913 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2914 array size at least. It's necessary to write '\x00'==0 to get something
2915 that's true only with -std1. */
2916 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2917
2918 int test (int i, double x);
2919 struct s1 {int (*f) (int a);};
2920 struct s2 {int (*f) (double a);};
2921 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2922 int argc;
2923 char **argv;
2924 int
2925 main ()
2926 {
2927 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 # Don't try gcc -ansi; that turns off useful extensions and
2933 # breaks some systems' header files.
2934 # AIX -qlanglvl=ansi
2935 # Ultrix and OSF/1 -std1
2936 # HP-UX 10.20 and later -Ae
2937 # HP-UX older versions -Aa -D_HPUX_SOURCE
2938 # SVR4 -Xc -D__EXTENSIONS__
2939 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2940 do
2941 CC="$ac_save_CC $ac_arg"
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag"
2952 || test ! -s conftest.err'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 (eval $ac_try) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 ac_cv_prog_cc_stdc=$ac_arg
2965 break
2966 else
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 fi
2971 rm -f conftest.err conftest.$ac_objext
2972 done
2973 rm -f conftest.$ac_ext conftest.$ac_objext
2974 CC=$ac_save_CC
2975
2976 fi
2977
2978 case "x$ac_cv_prog_cc_stdc" in
2979 x|xno)
2980 echo "$as_me:$LINENO: result: none needed" >&5
2981 echo "${ECHO_T}none needed" >&6 ;;
2982 *)
2983 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2984 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2985 CC="$CC $ac_cv_prog_cc_stdc" ;;
2986 esac
2987
2988 # Some people use a C++ compiler to compile C. Since we use `exit',
2989 # in C++ we need to declare it. In case someone uses the same compiler
2990 # for both compiling C and C++ we need to have the C++ compiler decide
2991 # the declaration of exit, since it's the most demanding environment.
2992 cat >conftest.$ac_ext <<_ACEOF
2993 #ifndef __cplusplus
2994 choke me
2995 #endif
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 for ac_declaration in \
3020 '' \
3021 'extern "C" void std::exit (int) throw (); using std::exit;' \
3022 'extern "C" void std::exit (int); using std::exit;' \
3023 'extern "C" void exit (int) throw ();' \
3024 'extern "C" void exit (int);' \
3025 'void exit (int);'
3026 do
3027 cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h. */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3033 $ac_declaration
3034 #include <stdlib.h>
3035 int
3036 main ()
3037 {
3038 exit (42);
3039 ;
3040 return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag"
3053 || test ! -s conftest.err'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 :
3066 else
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 continue
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 $ac_declaration
3080 int
3081 main ()
3082 {
3083 exit (42);
3084 ;
3085 return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 break
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 fi
3116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117 done
3118 rm -f conftest*
3119 if test -n "$ac_declaration"; then
3120 echo '#ifdef __cplusplus' >>confdefs.h
3121 echo $ac_declaration >>confdefs.h
3122 echo '#endif' >>confdefs.h
3123 fi
3124
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 fi
3130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 ac_ext=c
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136
3137 depcc="$CC" am_compiler_list=
3138
3139 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3140 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3141 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3145 # We make a subdir and do the tests there. Otherwise we can end up
3146 # making bogus files that we don't know about and never remove. For
3147 # instance it was reported that on HP-UX the gcc test will end up
3148 # making a dummy file named `D' -- because `-MD' means `put the output
3149 # in D'.
3150 mkdir conftest.dir
3151 # Copy depcomp to subdir because otherwise we won't find it if we're
3152 # using a relative directory.
3153 cp "$am_depcomp" conftest.dir
3154 cd conftest.dir
3155 # We will build objects and dependencies in a subdirectory because
3156 # it helps to detect inapplicable dependency modes. For instance
3157 # both Tru64's cc and ICC support -MD to output dependencies as a
3158 # side effect of compilation, but ICC will put the dependencies in
3159 # the current directory while Tru64 will put them in the object
3160 # directory.
3161 mkdir sub
3162
3163 am_cv_CC_dependencies_compiler_type=none
3164 if test "$am_compiler_list" = ""; then
3165 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3166 fi
3167 for depmode in $am_compiler_list; do
3168 # Setup a source with many dependencies, because some compilers
3169 # like to wrap large dependency lists on column 80 (with \), and
3170 # we should not choose a depcomp mode which is confused by this.
3171 #
3172 # We need to recreate these files for each test, as the compiler may
3173 # overwrite some of them when testing with obscure command lines.
3174 # This happens at least with the AIX C compiler.
3175 : > sub/conftest.c
3176 for i in 1 2 3 4 5 6; do
3177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3178 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3179 # Solaris 8's {/usr,}/bin/sh.
3180 touch sub/conftst$i.h
3181 done
3182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3183
3184 case $depmode in
3185 nosideeffect)
3186 # after this tag, mechanisms are not by side-effect, so they'll
3187 # only be used when explicitly requested
3188 if test "x$enable_dependency_tracking" = xyes; then
3189 continue
3190 else
3191 break
3192 fi
3193 ;;
3194 none) break ;;
3195 esac
3196 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3197 # mode. It turns out that the SunPro C++ compiler does not properly
3198 # handle `-M -o', and we need to detect this.
3199 if depmode=$depmode \
3200 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3201 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3202 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3203 >/dev/null 2>conftest.err &&
3204 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3205 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3206 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3207 # icc doesn't choke on unknown options, it will just issue warnings
3208 # (even with -Werror). So we grep stderr for any message
3209 # that says an option was ignored.
3210 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3211 am_cv_CC_dependencies_compiler_type=$depmode
3212 break
3213 fi
3214 fi
3215 done
3216
3217 cd ..
3218 rm -rf conftest.dir
3219 else
3220 am_cv_CC_dependencies_compiler_type=none
3221 fi
3222
3223 fi
3224 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3225 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3227
3228
3229
3230 if
3231 test "x$enable_dependency_tracking" != xno \
3232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3233 am__fastdepCC_TRUE=
3234 am__fastdepCC_FALSE='#'
3235 else
3236 am__fastdepCC_TRUE='#'
3237 am__fastdepCC_FALSE=
3238 fi
3239
3240
3241 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3242 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3243 if test "${lt_cv_path_SED+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 # Loop through the user's path and test for sed and gsed.
3247 # Then use that list of sed's as ones to test for truncation.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for lt_ac_prog in sed gsed; do
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3256 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3257 fi
3258 done
3259 done
3260 done
3261 lt_ac_max=0
3262 lt_ac_count=0
3263 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3264 # along with /bin/sed that truncates output.
3265 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3266 test ! -f $lt_ac_sed && break
3267 cat /dev/null > conftest.in
3268 lt_ac_count=0
3269 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3270 # Check for GNU sed and select it if it is found.
3271 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3272 lt_cv_path_SED=$lt_ac_sed
3273 break
3274 fi
3275 while true; do
3276 cat conftest.in conftest.in >conftest.tmp
3277 mv conftest.tmp conftest.in
3278 cp conftest.in conftest.nl
3279 echo >>conftest.nl
3280 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3281 cmp -s conftest.out conftest.nl || break
3282 # 10000 chars as input seems more than enough
3283 test $lt_ac_count -gt 10 && break
3284 lt_ac_count=`expr $lt_ac_count + 1`
3285 if test $lt_ac_count -gt $lt_ac_max; then
3286 lt_ac_max=$lt_ac_count
3287 lt_cv_path_SED=$lt_ac_sed
3288 fi
3289 done
3290 done
3291 SED=$lt_cv_path_SED
3292
3293 fi
3294
3295 echo "$as_me:$LINENO: result: $SED" >&5
3296 echo "${ECHO_T}$SED" >&6
3297
3298 echo "$as_me:$LINENO: checking for egrep" >&5
3299 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3300 if test "${ac_cv_prog_egrep+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3304 then ac_cv_prog_egrep='grep -E'
3305 else ac_cv_prog_egrep='egrep'
3306 fi
3307 fi
3308 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3309 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3310 EGREP=$ac_cv_prog_egrep
3311
3312
3313
3314 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3315 if test "${with_gnu_ld+set}" = set; then
3316 withval="$with_gnu_ld"
3317 test "$withval" = no || with_gnu_ld=yes
3318 else
3319 with_gnu_ld=no
3320 fi;
3321 ac_prog=ld
3322 if test "$GCC" = yes; then
3323 # Check if gcc -print-prog-name=ld gives a path.
3324 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3325 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3326 case $host in
3327 *-*-mingw*)
3328 # gcc leaves a trailing carriage return which upsets mingw
3329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3330 *)
3331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3332 esac
3333 case $ac_prog in
3334 # Accept absolute paths.
3335 [\\/]* | ?:[\\/]*)
3336 re_direlt='/[^/][^/]*/\.\./'
3337 # Canonicalize the pathname of ld
3338 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3339 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3340 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3341 done
3342 test -z "$LD" && LD="$ac_prog"
3343 ;;
3344 "")
3345 # If it fails, then pretend we aren't using GCC.
3346 ac_prog=ld
3347 ;;
3348 *)
3349 # If it is relative, then search for the first ld in PATH.
3350 with_gnu_ld=unknown
3351 ;;
3352 esac
3353 elif test "$with_gnu_ld" = yes; then
3354 echo "$as_me:$LINENO: checking for GNU ld" >&5
3355 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3356 else
3357 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3358 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3359 fi
3360 if test "${lt_cv_path_LD+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -z "$LD"; then
3364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3365 for ac_dir in $PATH; do
3366 IFS="$lt_save_ifs"
3367 test -z "$ac_dir" && ac_dir=.
3368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3369 lt_cv_path_LD="$ac_dir/$ac_prog"
3370 # Check to see if the program is GNU ld. I'd rather use --version,
3371 # but apparently some GNU ld's only accept -v.
3372 # Break only if it was the GNU/non-GNU ld that we prefer.
3373 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3374 *GNU* | *'with BFD'*)
3375 test "$with_gnu_ld" != no && break
3376 ;;
3377 *)
3378 test "$with_gnu_ld" != yes && break
3379 ;;
3380 esac
3381 fi
3382 done
3383 IFS="$lt_save_ifs"
3384 else
3385 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3386 fi
3387 fi
3388
3389 LD="$lt_cv_path_LD"
3390 if test -n "$LD"; then
3391 echo "$as_me:$LINENO: result: $LD" >&5
3392 echo "${ECHO_T}$LD" >&6
3393 else
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396 fi
3397 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3398 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3399 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3401 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3402 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3406 case `$LD -v 2>&1 </dev/null` in
3407 *GNU* | *'with BFD'*)
3408 lt_cv_prog_gnu_ld=yes
3409 ;;
3410 *)
3411 lt_cv_prog_gnu_ld=no
3412 ;;
3413 esac
3414 fi
3415 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3416 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3417 with_gnu_ld=$lt_cv_prog_gnu_ld
3418
3419
3420 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3421 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3422 if test "${lt_cv_ld_reload_flag+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 lt_cv_ld_reload_flag='-r'
3426 fi
3427 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3428 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3429 reload_flag=$lt_cv_ld_reload_flag
3430 case $reload_flag in
3431 "" | " "*) ;;
3432 *) reload_flag=" $reload_flag" ;;
3433 esac
3434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3435
3436 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3437 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3438 if test "${lt_cv_path_NM+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 if test -n "$NM"; then
3442 # Let the user override the test.
3443 lt_cv_path_NM="$NM"
3444 else
3445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3446 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3447 IFS="$lt_save_ifs"
3448 test -z "$ac_dir" && ac_dir=.
3449 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3451 # Check to see if the nm accepts a BSD-compat flag.
3452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3453 # nm: unknown option "B" ignored
3454 # Tru64's nm complains that /dev/null is an invalid object file
3455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3456 */dev/null* | *'Invalid file or object type'*)
3457 lt_cv_path_NM="$tmp_nm -B"
3458 break
3459 ;;
3460 *)
3461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3462 */dev/null*)
3463 lt_cv_path_NM="$tmp_nm -p"
3464 break
3465 ;;
3466 *)
3467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3468 continue # so that we can try to find one that supports BSD flags
3469 ;;
3470 esac
3471 esac
3472 fi
3473 done
3474 IFS="$lt_save_ifs"
3475 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3476 fi
3477 fi
3478 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3479 echo "${ECHO_T}$lt_cv_path_NM" >&6
3480 NM="$lt_cv_path_NM"
3481
3482 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3483 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3484 LN_S=$as_ln_s
3485 if test "$LN_S" = "ln -s"; then
3486 echo "$as_me:$LINENO: result: yes" >&5
3487 echo "${ECHO_T}yes" >&6
3488 else
3489 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3490 echo "${ECHO_T}no, using $LN_S" >&6
3491 fi
3492
3493 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3494 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3495 if test "${lt_cv_deplibs_check_method+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 lt_cv_file_magic_cmd='$MAGIC_CMD'
3499 lt_cv_file_magic_test_file=
3500 lt_cv_deplibs_check_method='unknown'
3501 # Need to set the preceding variable on all platforms that support
3502 # interlibrary dependencies.
3503 # 'none' -- dependencies not supported.
3504 # `unknown' -- same as none, but documents that we really don't know.
3505 # 'pass_all' -- all dependencies passed with no checks.
3506 # 'test_compile' -- check by making test program.
3507 # 'file_magic [[regex]]' -- check by looking for files in library path
3508 # which responds to the $file_magic_cmd with a given extended regex.
3509 # If you have `file' or equivalent on your system and you're not sure
3510 # whether `pass_all' will *always* work, you probably want this one.
3511
3512 case $host_os in
3513 aix4* | aix5*)
3514 lt_cv_deplibs_check_method=pass_all
3515 ;;
3516
3517 beos*)
3518 lt_cv_deplibs_check_method=pass_all
3519 ;;
3520
3521 bsdi4*)
3522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3523 lt_cv_file_magic_cmd='/usr/bin/file -L'
3524 lt_cv_file_magic_test_file=/shlib/libc.so
3525 ;;
3526
3527 cygwin*)
3528 # win32_libid is a shell function defined in ltmain.sh
3529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3530 lt_cv_file_magic_cmd='win32_libid'
3531 ;;
3532
3533 mingw* | pw32*)
3534 # Base MSYS/MinGW do not provide the 'file' command needed by
3535 # win32_libid shell function, so use a weaker test based on 'objdump'.
3536 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3537 lt_cv_file_magic_cmd='$OBJDUMP -f'
3538 ;;
3539
3540 darwin* | rhapsody*)
3541 lt_cv_deplibs_check_method=pass_all
3542 ;;
3543
3544 freebsd* | kfreebsd*-gnu)
3545 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3546 case $host_cpu in
3547 i*86 )
3548 # Not sure whether the presence of OpenBSD here was a mistake.
3549 # Let's accept both of them until this is cleared up.
3550 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3551 lt_cv_file_magic_cmd=/usr/bin/file
3552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3553 ;;
3554 esac
3555 else
3556 lt_cv_deplibs_check_method=pass_all
3557 fi
3558 ;;
3559
3560 gnu*)
3561 lt_cv_deplibs_check_method=pass_all
3562 ;;
3563
3564 hpux10.20* | hpux11*)
3565 lt_cv_file_magic_cmd=/usr/bin/file
3566 case "$host_cpu" in
3567 ia64*)
3568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3570 ;;
3571 hppa*64*)
3572 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]'
3573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3574 ;;
3575 *)
3576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3578 ;;
3579 esac
3580 ;;
3581
3582 irix5* | irix6* | nonstopux*)
3583 case $LD in
3584 *-32|*"-32 ") libmagic=32-bit;;
3585 *-n32|*"-n32 ") libmagic=N32;;
3586 *-64|*"-64 ") libmagic=64-bit;;
3587 *) libmagic=never-match;;
3588 esac
3589 lt_cv_deplibs_check_method=pass_all
3590 ;;
3591
3592 # This must be Linux ELF.
3593 linux*)
3594 case $host_cpu in
3595 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3596 lt_cv_deplibs_check_method=pass_all ;;
3597 *)
3598 # glibc up to 2.1.1 does not perform some relocations on ARM
3599 # this will be overridden with pass_all, but let us keep it just in case
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3601 esac
3602 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3603 lt_cv_deplibs_check_method=pass_all
3604 ;;
3605
3606 netbsd*)
3607 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3609 else
3610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3611 fi
3612 ;;
3613
3614 newos6*)
3615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3616 lt_cv_file_magic_cmd=/usr/bin/file
3617 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3618 ;;
3619
3620 nto-qnx*)
3621 lt_cv_deplibs_check_method=unknown
3622 ;;
3623
3624 openbsd*)
3625 lt_cv_file_magic_cmd=/usr/bin/file
3626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3629 else
3630 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3631 fi
3632 ;;
3633
3634 osf3* | osf4* | osf5*)
3635 lt_cv_deplibs_check_method=pass_all
3636 ;;
3637
3638 sco3.2v5*)
3639 lt_cv_deplibs_check_method=pass_all
3640 ;;
3641
3642 solaris*)
3643 lt_cv_deplibs_check_method=pass_all
3644 ;;
3645
3646 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3647 case $host_vendor in
3648 motorola)
3649 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]'
3650 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3651 ;;
3652 ncr)
3653 lt_cv_deplibs_check_method=pass_all
3654 ;;
3655 sequent)
3656 lt_cv_file_magic_cmd='/bin/file'
3657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3658 ;;
3659 sni)
3660 lt_cv_file_magic_cmd='/bin/file'
3661 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3662 lt_cv_file_magic_test_file=/lib/libc.so
3663 ;;
3664 siemens)
3665 lt_cv_deplibs_check_method=pass_all
3666 ;;
3667 esac
3668 ;;
3669
3670 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3671 lt_cv_deplibs_check_method=pass_all
3672 ;;
3673 esac
3674
3675 fi
3676 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3677 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3678 file_magic_cmd=$lt_cv_file_magic_cmd
3679 deplibs_check_method=$lt_cv_deplibs_check_method
3680 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3681
3682
3683
3684
3685 # If no C compiler was specified, use CC.
3686 LTCC=${LTCC-"$CC"}
3687
3688 # Allow CC to be a program name with arguments.
3689 compiler=$CC
3690
3691
3692 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3693 if test "${enable_libtool_lock+set}" = set; then
3694 enableval="$enable_libtool_lock"
3695
3696 fi;
3697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3698
3699 # Some flags need to be propagated to the compiler or linker for good
3700 # libtool support.
3701 case $host in
3702 ia64-*-hpux*)
3703 # Find out which ABI we are using.
3704 echo 'int i;' > conftest.$ac_ext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; then
3710 case `/usr/bin/file conftest.$ac_objext` in
3711 *ELF-32*)
3712 HPUX_IA64_MODE="32"
3713 ;;
3714 *ELF-64*)
3715 HPUX_IA64_MODE="64"
3716 ;;
3717 esac
3718 fi
3719 rm -rf conftest*
3720 ;;
3721 *-*-irix6*)
3722 # Find out which ABI we are using.
3723 echo '#line 3723 "configure"' > conftest.$ac_ext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; then
3729 if test "$lt_cv_prog_gnu_ld" = yes; then
3730 case `/usr/bin/file conftest.$ac_objext` in
3731 *32-bit*)
3732 LD="${LD-ld} -melf32bsmip"
3733 ;;
3734 *N32*)
3735 LD="${LD-ld} -melf32bmipn32"
3736 ;;
3737 *64-bit*)
3738 LD="${LD-ld} -melf64bmip"
3739 ;;
3740 esac
3741 else
3742 case `/usr/bin/file conftest.$ac_objext` in
3743 *32-bit*)
3744 LD="${LD-ld} -32"
3745 ;;
3746 *N32*)
3747 LD="${LD-ld} -n32"
3748 ;;
3749 *64-bit*)
3750 LD="${LD-ld} -64"
3751 ;;
3752 esac
3753 fi
3754 fi
3755 rm -rf conftest*
3756 ;;
3757
3758 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3759 # Find out which ABI we are using.
3760 echo 'int i;' > conftest.$ac_ext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; then
3766 case "`/usr/bin/file conftest.o`" in
3767 *32-bit*)
3768 case $host in
3769 x86_64-*linux*)
3770 LD="${LD-ld} -m elf_i386"
3771 ;;
3772 ppc64-*linux*|powerpc64-*linux*)
3773 LD="${LD-ld} -m elf32ppclinux"
3774 ;;
3775 s390x-*linux*)
3776 LD="${LD-ld} -m elf_s390"
3777 ;;
3778 sparc64-*linux*)
3779 LD="${LD-ld} -m elf32_sparc"
3780 ;;
3781 esac
3782 ;;
3783 *64-bit*)
3784 case $host in
3785 x86_64-*linux*)
3786 LD="${LD-ld} -m elf_x86_64"
3787 ;;
3788 ppc*-*linux*|powerpc*-*linux*)
3789 LD="${LD-ld} -m elf64ppc"
3790 ;;
3791 s390*-*linux*)
3792 LD="${LD-ld} -m elf64_s390"
3793 ;;
3794 sparc*-*linux*)
3795 LD="${LD-ld} -m elf64_sparc"
3796 ;;
3797 esac
3798 ;;
3799 esac
3800 fi
3801 rm -rf conftest*
3802 ;;
3803
3804 *-*-sco3.2v5*)
3805 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3806 SAVE_CFLAGS="$CFLAGS"
3807 CFLAGS="$CFLAGS -belf"
3808 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3809 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3810 if test "${lt_cv_cc_needs_belf+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825
3826 int
3827 main ()
3828 {
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -z "$ac_c_werror_flag"
3844 || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 lt_cv_cc_needs_belf=yes
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 lt_cv_cc_needs_belf=no
3862 fi
3863 rm -f conftest.err conftest.$ac_objext \
3864 conftest$ac_exeext conftest.$ac_ext
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3871 fi
3872 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3873 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3876 CFLAGS="$SAVE_CFLAGS"
3877 fi
3878 ;;
3879
3880 esac
3881
3882 need_locks="$enable_libtool_lock"
3883
3884
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3894 CPP=
3895 fi
3896 if test -z "$CPP"; then
3897 if test "${ac_cv_prog_CPP+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 # Double quotes because CPP needs to be expanded
3901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3902 do
3903 ac_preproc_ok=false
3904 for ac_c_preproc_warn_flag in '' yes
3905 do
3906 # Use a header file that comes with gcc, so configuring glibc
3907 # with a fresh cross-compiler works.
3908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909 # <limits.h> exists even on freestanding compilers.
3910 # On the NeXT, cc -E runs the code through the compiler's parser,
3911 # not just through cpp. "Syntax error" is here to catch this case.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #ifdef __STDC__
3919 # include <limits.h>
3920 #else
3921 # include <assert.h>
3922 #endif
3923 Syntax error
3924 _ACEOF
3925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } >/dev/null; then
3933 if test -s conftest.err; then
3934 ac_cpp_err=$ac_c_preproc_warn_flag
3935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3936 else
3937 ac_cpp_err=
3938 fi
3939 else
3940 ac_cpp_err=yes
3941 fi
3942 if test -z "$ac_cpp_err"; then
3943 :
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 # Broken: fails on valid input.
3949 continue
3950 fi
3951 rm -f conftest.err conftest.$ac_ext
3952
3953 # OK, works on sane cases. Now check whether non-existent headers
3954 # can be detected and how.
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 #include <ac_nonexistent.h>
3962 _ACEOF
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null; then
3971 if test -s conftest.err; then
3972 ac_cpp_err=$ac_c_preproc_warn_flag
3973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3974 else
3975 ac_cpp_err=
3976 fi
3977 else
3978 ac_cpp_err=yes
3979 fi
3980 if test -z "$ac_cpp_err"; then
3981 # Broken: success on invalid input.
3982 continue
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 # Passes both tests.
3988 ac_preproc_ok=:
3989 break
3990 fi
3991 rm -f conftest.err conftest.$ac_ext
3992
3993 done
3994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3995 rm -f conftest.err conftest.$ac_ext
3996 if $ac_preproc_ok; then
3997 break
3998 fi
3999
4000 done
4001 ac_cv_prog_CPP=$CPP
4002
4003 fi
4004 CPP=$ac_cv_prog_CPP
4005 else
4006 ac_cv_prog_CPP=$CPP
4007 fi
4008 echo "$as_me:$LINENO: result: $CPP" >&5
4009 echo "${ECHO_T}$CPP" >&6
4010 ac_preproc_ok=false
4011 for ac_c_preproc_warn_flag in '' yes
4012 do
4013 # Use a header file that comes with gcc, so configuring glibc
4014 # with a fresh cross-compiler works.
4015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4016 # <limits.h> exists even on freestanding compilers.
4017 # On the NeXT, cc -E runs the code through the compiler's parser,
4018 # not just through cpp. "Syntax error" is here to catch this case.
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #ifdef __STDC__
4026 # include <limits.h>
4027 #else
4028 # include <assert.h>
4029 #endif
4030 Syntax error
4031 _ACEOF
4032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } >/dev/null; then
4040 if test -s conftest.err; then
4041 ac_cpp_err=$ac_c_preproc_warn_flag
4042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4043 else
4044 ac_cpp_err=
4045 fi
4046 else
4047 ac_cpp_err=yes
4048 fi
4049 if test -z "$ac_cpp_err"; then
4050 :
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 # Broken: fails on valid input.
4056 continue
4057 fi
4058 rm -f conftest.err conftest.$ac_ext
4059
4060 # OK, works on sane cases. Now check whether non-existent headers
4061 # can be detected and how.
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #include <ac_nonexistent.h>
4069 _ACEOF
4070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } >/dev/null; then
4078 if test -s conftest.err; then
4079 ac_cpp_err=$ac_c_preproc_warn_flag
4080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4081 else
4082 ac_cpp_err=
4083 fi
4084 else
4085 ac_cpp_err=yes
4086 fi
4087 if test -z "$ac_cpp_err"; then
4088 # Broken: success on invalid input.
4089 continue
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 # Passes both tests.
4095 ac_preproc_ok=:
4096 break
4097 fi
4098 rm -f conftest.err conftest.$ac_ext
4099
4100 done
4101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4102 rm -f conftest.err conftest.$ac_ext
4103 if $ac_preproc_ok; then
4104 :
4105 else
4106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4107 See \`config.log' for more details." >&5
4108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4109 See \`config.log' for more details." >&2;}
4110 { (exit 1); exit 1; }; }
4111 fi
4112
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118
4119
4120 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4122 if test "${ac_cv_header_stdc+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #include <stdlib.h>
4132 #include <stdarg.h>
4133 #include <string.h>
4134 #include <float.h>
4135
4136 int
4137 main ()
4138 {
4139
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_c_werror_flag"
4154 || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_cv_header_stdc=yes
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 ac_cv_header_stdc=no
4172 fi
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174
4175 if test $ac_cv_header_stdc = yes; then
4176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4177 cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 #include <string.h>
4184
4185 _ACEOF
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187 $EGREP "memchr" >/dev/null 2>&1; then
4188 :
4189 else
4190 ac_cv_header_stdc=no
4191 fi
4192 rm -f conftest*
4193
4194 fi
4195
4196 if test $ac_cv_header_stdc = yes; then
4197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <stdlib.h>
4205
4206 _ACEOF
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 $EGREP "free" >/dev/null 2>&1; then
4209 :
4210 else
4211 ac_cv_header_stdc=no
4212 fi
4213 rm -f conftest*
4214
4215 fi
4216
4217 if test $ac_cv_header_stdc = yes; then
4218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4219 if test "$cross_compiling" = yes; then
4220 :
4221 else
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <ctype.h>
4229 #if ((' ' & 0x0FF) == 0x020)
4230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4232 #else
4233 # define ISLOWER(c) \
4234 (('a' <= (c) && (c) <= 'i') \
4235 || ('j' <= (c) && (c) <= 'r') \
4236 || ('s' <= (c) && (c) <= 'z'))
4237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4238 #endif
4239
4240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4241 int
4242 main ()
4243 {
4244 int i;
4245 for (i = 0; i < 256; i++)
4246 if (XOR (islower (i), ISLOWER (i))
4247 || toupper (i) != TOUPPER (i))
4248 exit(2);
4249 exit (0);
4250 }
4251 _ACEOF
4252 rm -f conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 :
4264 else
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ( exit $ac_status )
4270 ac_cv_header_stdc=no
4271 fi
4272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4273 fi
4274 fi
4275 fi
4276 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4277 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4278 if test $ac_cv_header_stdc = yes; then
4279
4280 cat >>confdefs.h <<\_ACEOF
4281 #define STDC_HEADERS 1
4282 _ACEOF
4283
4284 fi
4285
4286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4297 inttypes.h stdint.h unistd.h
4298 do
4299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4300 echo "$as_me:$LINENO: checking for $ac_header" >&5
4301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4312
4313 #include <$ac_header>
4314 _ACEOF
4315 rm -f conftest.$ac_objext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317 (eval $ac_compile) 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag"
4325 || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 eval "$as_ac_Header=yes"
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 eval "$as_ac_Header=no"
4343 fi
4344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4349 cat >>confdefs.h <<_ACEOF
4350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4351 _ACEOF
4352
4353 fi
4354
4355 done
4356
4357
4358
4359 for ac_header in dlfcn.h
4360 do
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4363 echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 fi
4368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370 else
4371 # Is the header compilable?
4372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 $ac_includes_default
4381 #include <$ac_header>
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385 (eval $ac_compile) 2>conftest.er1
4386 ac_status=$?
4387 grep -v '^ *+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -z "$ac_c_werror_flag"
4393 || test ! -s conftest.err'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 ac_header_compiler=yes
4406 else
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410 ac_header_compiler=no
4411 fi
4412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4414 echo "${ECHO_T}$ac_header_compiler" >&6
4415
4416 # Is the header present?
4417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <$ac_header>
4426 _ACEOF
4427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4429 ac_status=$?
4430 grep -v '^ *+' conftest.er1 >conftest.err
4431 rm -f conftest.er1
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } >/dev/null; then
4435 if test -s conftest.err; then
4436 ac_cpp_err=$ac_c_preproc_warn_flag
4437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4438 else
4439 ac_cpp_err=
4440 fi
4441 else
4442 ac_cpp_err=yes
4443 fi
4444 if test -z "$ac_cpp_err"; then
4445 ac_header_preproc=yes
4446 else
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4449
4450 ac_header_preproc=no
4451 fi
4452 rm -f conftest.err conftest.$ac_ext
4453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4454 echo "${ECHO_T}$ac_header_preproc" >&6
4455
4456 # So? What about this header?
4457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4458 yes:no: )
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4463 ac_header_preproc=yes
4464 ;;
4465 no:yes:* )
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4478 (
4479 cat <<\_ASBOX
4480 ## ----------------------------------- ##
4481 ## Report this to bugs@tina-vision.net ##
4482 ## ----------------------------------- ##
4483 _ASBOX
4484 ) |
4485 sed "s/^/$as_me: WARNING: /" >&2
4486 ;;
4487 esac
4488 echo "$as_me:$LINENO: checking for $ac_header" >&5
4489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493 eval "$as_ac_Header=\$ac_header_preproc"
4494 fi
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4497
4498 fi
4499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4500 cat >>confdefs.h <<_ACEOF
4501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502 _ACEOF
4503
4504 fi
4505
4506 done
4507
4508 ac_ext=cc
4509 ac_cpp='$CXXCPP $CPPFLAGS'
4510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4513 if test -n "$ac_tool_prefix"; then
4514 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4515 do
4516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_prog_CXX+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$CXX"; then
4524 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537 done
4538 done
4539
4540 fi
4541 fi
4542 CXX=$ac_cv_prog_CXX
4543 if test -n "$CXX"; then
4544 echo "$as_me:$LINENO: result: $CXX" >&5
4545 echo "${ECHO_T}$CXX" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551 test -n "$CXX" && break
4552 done
4553 fi
4554 if test -z "$CXX"; then
4555 ac_ct_CXX=$CXX
4556 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4557 do
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$ac_ct_CXX"; then
4566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_ac_ct_CXX="$ac_prog"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581
4582 fi
4583 fi
4584 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4585 if test -n "$ac_ct_CXX"; then
4586 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4587 echo "${ECHO_T}$ac_ct_CXX" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4591 fi
4592
4593 test -n "$ac_ct_CXX" && break
4594 done
4595 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4596
4597 CXX=$ac_ct_CXX
4598 fi
4599
4600
4601 # Provide some information about the compiler.
4602 echo "$as_me:$LINENO:" \
4603 "checking for C++ compiler version" >&5
4604 ac_compiler=`set X $ac_compile; echo $2`
4605 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4606 (eval $ac_compiler --version </dev/null >&5) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }
4610 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4611 (eval $ac_compiler -v </dev/null >&5) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }
4615 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4616 (eval $ac_compiler -V </dev/null >&5) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }
4620
4621 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4622 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4623 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h. */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632
4633 int
4634 main ()
4635 {
4636 #ifndef __GNUC__
4637 choke me
4638 #endif
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_cxx_werror_flag"
4654 || test ! -s conftest.err'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 ac_compiler_gnu=yes
4667 else
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4670
4671 ac_compiler_gnu=no
4672 fi
4673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4675
4676 fi
4677 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4678 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4679 GXX=`test $ac_compiler_gnu = yes && echo yes`
4680 ac_test_CXXFLAGS=${CXXFLAGS+set}
4681 ac_save_CXXFLAGS=$CXXFLAGS
4682 CXXFLAGS="-g"
4683 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4684 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4685 if test "${ac_cv_prog_cxx_g+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694
4695 int
4696 main ()
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_cxx_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_cv_prog_cxx_g=yes
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 ac_cv_prog_cxx_g=no
4731 fi
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4735 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4736 if test "$ac_test_CXXFLAGS" = set; then
4737 CXXFLAGS=$ac_save_CXXFLAGS
4738 elif test $ac_cv_prog_cxx_g = yes; then
4739 if test "$GXX" = yes; then
4740 CXXFLAGS="-g -O2"
4741 else
4742 CXXFLAGS="-g"
4743 fi
4744 else
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-O2"
4747 else
4748 CXXFLAGS=
4749 fi
4750 fi
4751 for ac_declaration in \
4752 '' \
4753 'extern "C" void std::exit (int) throw (); using std::exit;' \
4754 'extern "C" void std::exit (int); using std::exit;' \
4755 'extern "C" void exit (int) throw ();' \
4756 'extern "C" void exit (int);' \
4757 'void exit (int);'
4758 do
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h. */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 $ac_declaration
4766 #include <stdlib.h>
4767 int
4768 main ()
4769 {
4770 exit (42);
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_cxx_werror_flag"
4785 || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 :
4798 else
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4801
4802 continue
4803 fi
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 $ac_declaration
4812 int
4813 main ()
4814 {
4815 exit (42);
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_cxx_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 break
4843 else
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 fi
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849 done
4850 rm -f conftest*
4851 if test -n "$ac_declaration"; then
4852 echo '#ifdef __cplusplus' >>confdefs.h
4853 echo $ac_declaration >>confdefs.h
4854 echo '#endif' >>confdefs.h
4855 fi
4856
4857 ac_ext=cc
4858 ac_cpp='$CXXCPP $CPPFLAGS'
4859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4862
4863 depcc="$CXX" am_compiler_list=
4864
4865 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4866 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4867 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4871 # We make a subdir and do the tests there. Otherwise we can end up
4872 # making bogus files that we don't know about and never remove. For
4873 # instance it was reported that on HP-UX the gcc test will end up
4874 # making a dummy file named `D' -- because `-MD' means `put the output
4875 # in D'.
4876 mkdir conftest.dir
4877 # Copy depcomp to subdir because otherwise we won't find it if we're
4878 # using a relative directory.
4879 cp "$am_depcomp" conftest.dir
4880 cd conftest.dir
4881 # We will build objects and dependencies in a subdirectory because
4882 # it helps to detect inapplicable dependency modes. For instance
4883 # both Tru64's cc and ICC support -MD to output dependencies as a
4884 # side effect of compilation, but ICC will put the dependencies in
4885 # the current directory while Tru64 will put them in the object
4886 # directory.
4887 mkdir sub
4888
4889 am_cv_CXX_dependencies_compiler_type=none
4890 if test "$am_compiler_list" = ""; then
4891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4892 fi
4893 for depmode in $am_compiler_list; do
4894 # Setup a source with many dependencies, because some compilers
4895 # like to wrap large dependency lists on column 80 (with \), and
4896 # we should not choose a depcomp mode which is confused by this.
4897 #
4898 # We need to recreate these files for each test, as the compiler may
4899 # overwrite some of them when testing with obscure command lines.
4900 # This happens at least with the AIX C compiler.
4901 : > sub/conftest.c
4902 for i in 1 2 3 4 5 6; do
4903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4904 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4905 # Solaris 8's {/usr,}/bin/sh.
4906 touch sub/conftst$i.h
4907 done
4908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4909
4910 case $depmode in
4911 nosideeffect)
4912 # after this tag, mechanisms are not by side-effect, so they'll
4913 # only be used when explicitly requested
4914 if test "x$enable_dependency_tracking" = xyes; then
4915 continue
4916 else
4917 break
4918 fi
4919 ;;
4920 none) break ;;
4921 esac
4922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4923 # mode. It turns out that the SunPro C++ compiler does not properly
4924 # handle `-M -o', and we need to detect this.
4925 if depmode=$depmode \
4926 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4927 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4928 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4929 >/dev/null 2>conftest.err &&
4930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4931 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4933 # icc doesn't choke on unknown options, it will just issue warnings
4934 # (even with -Werror). So we grep stderr for any message
4935 # that says an option was ignored.
4936 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4937 am_cv_CXX_dependencies_compiler_type=$depmode
4938 break
4939 fi
4940 fi
4941 done
4942
4943 cd ..
4944 rm -rf conftest.dir
4945 else
4946 am_cv_CXX_dependencies_compiler_type=none
4947 fi
4948
4949 fi
4950 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4951 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4952 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4953
4954
4955
4956 if
4957 test "x$enable_dependency_tracking" != xno \
4958 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4959 am__fastdepCXX_TRUE=
4960 am__fastdepCXX_FALSE='#'
4961 else
4962 am__fastdepCXX_TRUE='#'
4963 am__fastdepCXX_FALSE=
4964 fi
4965
4966
4967 ac_ext=cc
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4974 if test -z "$CXXCPP"; then
4975 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 # Double quotes because CXXCPP needs to be expanded
4979 for CXXCPP in "$CXX -E" "/lib/cpp"
4980 do
4981 ac_preproc_ok=false
4982 for ac_cxx_preproc_warn_flag in '' yes
4983 do
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #ifdef __STDC__
4997 # include <limits.h>
4998 #else
4999 # include <assert.h>
5000 #endif
5001 Syntax error
5002 _ACEOF
5003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } >/dev/null; then
5011 if test -s conftest.err; then
5012 ac_cpp_err=$ac_cxx_preproc_warn_flag
5013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5014 else
5015 ac_cpp_err=
5016 fi
5017 else
5018 ac_cpp_err=yes
5019 fi
5020 if test -z "$ac_cpp_err"; then
5021 :
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 # Broken: fails on valid input.
5027 continue
5028 fi
5029 rm -f conftest.err conftest.$ac_ext
5030
5031 # OK, works on sane cases. Now check whether non-existent headers
5032 # can be detected and how.
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h. */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 #include <ac_nonexistent.h>
5040 _ACEOF
5041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null; then
5049 if test -s conftest.err; then
5050 ac_cpp_err=$ac_cxx_preproc_warn_flag
5051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5052 else
5053 ac_cpp_err=
5054 fi
5055 else
5056 ac_cpp_err=yes
5057 fi
5058 if test -z "$ac_cpp_err"; then
5059 # Broken: success on invalid input.
5060 continue
5061 else
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 # Passes both tests.
5066 ac_preproc_ok=:
5067 break
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071 done
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then
5075 break
5076 fi
5077
5078 done
5079 ac_cv_prog_CXXCPP=$CXXCPP
5080
5081 fi
5082 CXXCPP=$ac_cv_prog_CXXCPP
5083 else
5084 ac_cv_prog_CXXCPP=$CXXCPP
5085 fi
5086 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5087 echo "${ECHO_T}$CXXCPP" >&6
5088 ac_preproc_ok=false
5089 for ac_cxx_preproc_warn_flag in '' yes
5090 do
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error" is here to catch this case.
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #ifdef __STDC__
5104 # include <limits.h>
5105 #else
5106 # include <assert.h>
5107 #endif
5108 Syntax error
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_cxx_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5121 else
5122 ac_cpp_err=
5123 fi
5124 else
5125 ac_cpp_err=yes
5126 fi
5127 if test -z "$ac_cpp_err"; then
5128 :
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 # Broken: fails on valid input.
5134 continue
5135 fi
5136 rm -f conftest.err conftest.$ac_ext
5137
5138 # OK, works on sane cases. Now check whether non-existent headers
5139 # can be detected and how.
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 #include <ac_nonexistent.h>
5147 _ACEOF
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_cxx_preproc_warn_flag
5158 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5159 else
5160 ac_cpp_err=
5161 fi
5162 else
5163 ac_cpp_err=yes
5164 fi
5165 if test -z "$ac_cpp_err"; then
5166 # Broken: success on invalid input.
5167 continue
5168 else
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5171
5172 # Passes both tests.
5173 ac_preproc_ok=:
5174 break
5175 fi
5176 rm -f conftest.err conftest.$ac_ext
5177
5178 done
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5182 :
5183 else
5184 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5187 See \`config.log' for more details." >&2;}
5188 { (exit 1); exit 1; }; }
5189 fi
5190
5191 ac_ext=cc
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196
5197
5198 ac_ext=f
5199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5202 if test -n "$ac_tool_prefix"; then
5203 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5204 do
5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209 if test "${ac_cv_prog_F77+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 if test -n "$F77"; then
5213 ac_cv_prog_F77="$F77" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228
5229 fi
5230 fi
5231 F77=$ac_cv_prog_F77
5232 if test -n "$F77"; then
5233 echo "$as_me:$LINENO: result: $F77" >&5
5234 echo "${ECHO_T}$F77" >&6
5235 else
5236 echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6
5238 fi
5239
5240 test -n "$F77" && break
5241 done
5242 fi
5243 if test -z "$F77"; then
5244 ac_ct_F77=$F77
5245 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5246 do
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254 if test -n "$ac_ct_F77"; then
5255 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_ac_ct_F77="$ac_prog"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268 done
5269 done
5270
5271 fi
5272 fi
5273 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5274 if test -n "$ac_ct_F77"; then
5275 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5276 echo "${ECHO_T}$ac_ct_F77" >&6
5277 else
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5280 fi
5281
5282 test -n "$ac_ct_F77" && break
5283 done
5284
5285 F77=$ac_ct_F77
5286 fi
5287
5288
5289 # Provide some information about the compiler.
5290 echo "$as_me:5290:" \
5291 "checking for Fortran 77 compiler version" >&5
5292 ac_compiler=`set X $ac_compile; echo $2`
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5294 (eval $ac_compiler --version </dev/null >&5) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }
5298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5299 (eval $ac_compiler -v </dev/null >&5) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5304 (eval $ac_compiler -V </dev/null >&5) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }
5308 rm -f a.out
5309
5310 # If we don't use `.F' as extension, the preprocessor is not run on the
5311 # input file. (Note that this only needs to work for GNU compilers.)
5312 ac_save_ext=$ac_ext
5313 ac_ext=F
5314 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5315 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5316 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 cat >conftest.$ac_ext <<_ACEOF
5320 program main
5321 #ifndef __GNUC__
5322 choke me
5323 #endif
5324
5325 end
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329 (eval $ac_compile) 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try='test -z "$ac_f77_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_compiler_gnu=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_compiler_gnu=no
5355 fi
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5358
5359 fi
5360 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5361 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5362 ac_ext=$ac_save_ext
5363 ac_test_FFLAGS=${FFLAGS+set}
5364 ac_save_FFLAGS=$FFLAGS
5365 FFLAGS=
5366 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5367 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5368 if test "${ac_cv_prog_f77_g+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 FFLAGS=-g
5372 cat >conftest.$ac_ext <<_ACEOF
5373 program main
5374
5375 end
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -z "$ac_f77_werror_flag"
5387 || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 (eval $ac_try) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_cv_prog_f77_g=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_cv_prog_f77_g=no
5405 fi
5406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407
5408 fi
5409 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5410 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5411 if test "$ac_test_FFLAGS" = set; then
5412 FFLAGS=$ac_save_FFLAGS
5413 elif test $ac_cv_prog_f77_g = yes; then
5414 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5415 FFLAGS="-g -O2"
5416 else
5417 FFLAGS="-g"
5418 fi
5419 else
5420 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5421 FFLAGS="-O2"
5422 else
5423 FFLAGS=
5424 fi
5425 fi
5426
5427 G77=`test $ac_compiler_gnu = yes && echo yes`
5428 ac_ext=c
5429 ac_cpp='$CPP $CPPFLAGS'
5430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433
5434
5435
5436 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5437
5438 # find the maximum length of command line arguments
5439 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5440 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5441 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 i=0
5445 testring="ABCD"
5446
5447 case $build_os in
5448 msdosdjgpp*)
5449 # On DJGPP, this test can blow up pretty badly due to problems in libc
5450 # (any single argument exceeding 2000 bytes causes a buffer overrun
5451 # during glob expansion). Even if it were fixed, the result of this
5452 # check would be larger than it should be.
5453 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5454 ;;
5455
5456 gnu*)
5457 # Under GNU Hurd, this test is not required because there is
5458 # no limit to the length of command line arguments.
5459 # Libtool will interpret -1 as no limit whatsoever
5460 lt_cv_sys_max_cmd_len=-1;
5461 ;;
5462
5463 cygwin* | mingw*)
5464 # On Win9x/ME, this test blows up -- it succeeds, but takes
5465 # about 5 minutes as the teststring grows exponentially.
5466 # Worse, since 9x/ME are not pre-emptively multitasking,
5467 # you end up with a "frozen" computer, even though with patience
5468 # the test eventually succeeds (with a max line length of 256k).
5469 # Instead, let's just punt: use the minimum linelength reported by
5470 # all of the supported platforms: 8192 (on NT/2K/XP).
5471 lt_cv_sys_max_cmd_len=8192;
5472 ;;
5473
5474 amigaos*)
5475 # On AmigaOS with pdksh, this test takes hours, literally.
5476 # So we just punt and use a minimum line length of 8192.
5477 lt_cv_sys_max_cmd_len=8192;
5478 ;;
5479
5480 *)
5481 # If test is not a shell built-in, we'll probably end up computing a
5482 # maximum length that is only half of the actual maximum length, but
5483 # we can't tell.
5484 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5485 = "XX$testring") >/dev/null 2>&1 &&
5486 new_result=`expr "X$testring" : ".*" 2>&1` &&
5487 lt_cv_sys_max_cmd_len=$new_result &&
5488 test $i != 17 # 1/2 MB should be enough
5489 do
5490 i=`expr $i + 1`
5491 testring=$testring$testring
5492 done
5493 testring=
5494 # Add a significant safety factor because C++ compilers can tack on massive
5495 # amounts of additional arguments before passing them to the linker.
5496 # It appears as though 1/2 is a usable value.
5497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5498 ;;
5499 esac
5500
5501 fi
5502
5503 if test -n $lt_cv_sys_max_cmd_len ; then
5504 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5505 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5506 else
5507 echo "$as_me:$LINENO: result: none" >&5
5508 echo "${ECHO_T}none" >&6
5509 fi
5510
5511
5512
5513
5514 # Check for command to grab the raw symbol name followed by C symbol from nm.
5515 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5516 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5517 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520
5521 # These are sane defaults that work on at least a few old systems.
5522 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5523
5524 # Character class describing NM global symbol codes.
5525 symcode='[BCDEGRST]'
5526
5527 # Regexp to match symbols that can be accessed directly from C.
5528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5529
5530 # Transform the above into a raw symbol and a C symbol.
5531 symxfrm='\1 \2\3 \3'
5532
5533 # Transform an extracted symbol line into a proper C declaration
5534 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5535
5536 # Transform an extracted symbol line into symbol name and symbol address
5537 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5538
5539 # Define system-specific variables.
5540 case $host_os in
5541 aix*)
5542 symcode='[BCDT]'
5543 ;;
5544 cygwin* | mingw* | pw32*)
5545 symcode='[ABCDGISTW]'
5546 ;;
5547 hpux*) # Its linker distinguishes data from code symbols
5548 if test "$host_cpu" = ia64; then
5549 symcode='[ABCDEGRST]'
5550 fi
5551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5552 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5553 ;;
5554 irix* | nonstopux*)
5555 symcode='[BCDEGRST]'
5556 ;;
5557 osf*)
5558 symcode='[BCDEGQRST]'
5559 ;;
5560 solaris* | sysv5*)
5561 symcode='[BDRT]'
5562 ;;
5563 sysv4)
5564 symcode='[DFNSTU]'
5565 ;;
5566 esac
5567
5568 # Handle CRLF in mingw tool chain
5569 opt_cr=
5570 case $build_os in
5571 mingw*)
5572 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5573 ;;
5574 esac
5575
5576 # If we're using GNU nm, then use its standard symbol codes.
5577 case `$NM -V 2>&1` in
5578 *GNU* | *'with BFD'*)
5579 symcode='[ABCDGIRSTW]' ;;
5580 esac
5581
5582 # Try without a prefix undercore, then with it.
5583 for ac_symprfx in "" "_"; do
5584
5585 # Write the raw and C identifiers.
5586 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5587
5588 # Check to see that the pipe works correctly.
5589 pipe_works=no
5590
5591 rm -f conftest*
5592 cat > conftest.$ac_ext <<EOF
5593 #ifdef __cplusplus
5594 extern "C" {
5595 #endif
5596 char nm_test_var;
5597 void nm_test_func(){}
5598 #ifdef __cplusplus
5599 }
5600 #endif
5601 int main(){nm_test_var='a';nm_test_func();return(0);}
5602 EOF
5603
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; then
5609 # Now try to grab the symbols.
5610 nlist=conftest.nm
5611 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5612 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && test -s "$nlist"; then
5616 # Try sorting and uniquifying the output.
5617 if sort "$nlist" | uniq > "$nlist"T; then
5618 mv -f "$nlist"T "$nlist"
5619 else
5620 rm -f "$nlist"T
5621 fi
5622
5623 # Make sure that we snagged all the symbols we need.
5624 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5625 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5626 cat <<EOF > conftest.$ac_ext
5627 #ifdef __cplusplus
5628 extern "C" {
5629 #endif
5630
5631 EOF
5632 # Now generate the symbol file.
5633 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5634
5635 cat <<EOF >> conftest.$ac_ext
5636 #if defined (__STDC__) && __STDC__
5637 # define lt_ptr_t void *
5638 #else
5639 # define lt_ptr_t char *
5640 # define const
5641 #endif
5642
5643 /* The mapping between symbol names and symbols. */
5644 const struct {
5645 const char *name;
5646 lt_ptr_t address;
5647 }
5648 lt_preloaded_symbols[] =
5649 {
5650 EOF
5651 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5652 cat <<\EOF >> conftest.$ac_ext
5653 {0, (lt_ptr_t) 0}
5654 };
5655
5656 #ifdef __cplusplus
5657 }
5658 #endif
5659 EOF
5660 # Now try linking the two files.
5661 mv conftest.$ac_objext conftstm.$ac_objext
5662 lt_save_LIBS="$LIBS"
5663 lt_save_CFLAGS="$CFLAGS"
5664 LIBS="conftstm.$ac_objext"
5665 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5671 pipe_works=yes
5672 fi
5673 LIBS="$lt_save_LIBS"
5674 CFLAGS="$lt_save_CFLAGS"
5675 else
5676 echo "cannot find nm_test_func in $nlist" >&5
5677 fi
5678 else
5679 echo "cannot find nm_test_var in $nlist" >&5
5680 fi
5681 else
5682 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5683 fi
5684 else
5685 echo "$progname: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 fi
5688 rm -f conftest* conftst*
5689
5690 # Do not use the global_symbol_pipe unless it works.
5691 if test "$pipe_works" = yes; then
5692 break
5693 else
5694 lt_cv_sys_global_symbol_pipe=
5695 fi
5696 done
5697
5698 fi
5699
5700 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5701 lt_cv_sys_global_symbol_to_cdecl=
5702 fi
5703 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5704 echo "$as_me:$LINENO: result: failed" >&5
5705 echo "${ECHO_T}failed" >&6
5706 else
5707 echo "$as_me:$LINENO: result: ok" >&5
5708 echo "${ECHO_T}ok" >&6
5709 fi
5710
5711 echo "$as_me:$LINENO: checking for objdir" >&5
5712 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5713 if test "${lt_cv_objdir+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716 rm -f .libs 2>/dev/null
5717 mkdir .libs 2>/dev/null
5718 if test -d .libs; then
5719 lt_cv_objdir=.libs
5720 else
5721 # MS-DOS does not allow filenames that begin with a dot.
5722 lt_cv_objdir=_libs
5723 fi
5724 rmdir .libs 2>/dev/null
5725 fi
5726 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5727 echo "${ECHO_T}$lt_cv_objdir" >&6
5728 objdir=$lt_cv_objdir
5729
5730
5731
5732
5733
5734 case $host_os in
5735 aix3*)
5736 # AIX sometimes has problems with the GCC collect2 program. For some
5737 # reason, if we set the COLLECT_NAMES environment variable, the problems
5738 # vanish in a puff of smoke.
5739 if test "X${COLLECT_NAMES+set}" != Xset; then
5740 COLLECT_NAMES=
5741 export COLLECT_NAMES
5742 fi
5743 ;;
5744 esac
5745
5746 # Sed substitution that helps us do robust quoting. It backslashifies
5747 # metacharacters that are still active within double-quoted strings.
5748 Xsed='sed -e s/^X//'
5749 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5750
5751 # Same as above, but do not quote variable references.
5752 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5753
5754 # Sed substitution to delay expansion of an escaped shell variable in a
5755 # double_quote_subst'ed string.
5756 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5757
5758 # Sed substitution to avoid accidental globbing in evaled expressions
5759 no_glob_subst='s/\*/\\\*/g'
5760
5761 # Constants:
5762 rm="rm -f"
5763
5764 # Global variables:
5765 default_ofile=libtool
5766 can_build_shared=yes
5767
5768 # All known linkers require a `.a' archive for static linking (except M$VC,
5769 # which needs '.lib').
5770 libext=a
5771 ltmain="$ac_aux_dir/ltmain.sh"
5772 ofile="$default_ofile"
5773 with_gnu_ld="$lt_cv_prog_gnu_ld"
5774
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5777 set dummy ${ac_tool_prefix}ar; ac_word=$2
5778 echo "$as_me:$LINENO: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780 if test "${ac_cv_prog_AR+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 if test -n "$AR"; then
5784 ac_cv_prog_AR="$AR" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_AR="${ac_tool_prefix}ar"
5794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797 done
5798 done
5799
5800 fi
5801 fi
5802 AR=$ac_cv_prog_AR
5803 if test -n "$AR"; then
5804 echo "$as_me:$LINENO: result: $AR" >&5
5805 echo "${ECHO_T}$AR" >&6
5806 else
5807 echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6
5809 fi
5810
5811 fi
5812 if test -z "$ac_cv_prog_AR"; then
5813 ac_ct_AR=$AR
5814 # Extract the first word of "ar", so it can be a program name with args.
5815 set dummy ar; ac_word=$2
5816 echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5818 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821 if test -n "$ac_ct_AR"; then
5822 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_ac_ct_AR="ar"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837
5838 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5839 fi
5840 fi
5841 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5842 if test -n "$ac_ct_AR"; then
5843 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5844 echo "${ECHO_T}$ac_ct_AR" >&6
5845 else
5846 echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6
5848 fi
5849
5850 AR=$ac_ct_AR
5851 else
5852 AR="$ac_cv_prog_AR"
5853 fi
5854
5855 if test -n "$ac_tool_prefix"; then
5856 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5857 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5858 echo "$as_me:$LINENO: checking for $ac_word" >&5
5859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5860 if test "${ac_cv_prog_RANLIB+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 if test -n "$RANLIB"; then
5864 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877 done
5878 done
5879
5880 fi
5881 fi
5882 RANLIB=$ac_cv_prog_RANLIB
5883 if test -n "$RANLIB"; then
5884 echo "$as_me:$LINENO: result: $RANLIB" >&5
5885 echo "${ECHO_T}$RANLIB" >&6
5886 else
5887 echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6
5889 fi
5890
5891 fi
5892 if test -z "$ac_cv_prog_RANLIB"; then
5893 ac_ct_RANLIB=$RANLIB
5894 # Extract the first word of "ranlib", so it can be a program name with args.
5895 set dummy ranlib; ac_word=$2
5896 echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 if test -n "$ac_ct_RANLIB"; then
5902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_ac_ct_RANLIB="ranlib"
5912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917
5918 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5919 fi
5920 fi
5921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5922 if test -n "$ac_ct_RANLIB"; then
5923 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5924 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6
5928 fi
5929
5930 RANLIB=$ac_ct_RANLIB
5931 else
5932 RANLIB="$ac_cv_prog_RANLIB"
5933 fi
5934
5935 if test -n "$ac_tool_prefix"; then
5936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5937 set dummy ${ac_tool_prefix}strip; ac_word=$2
5938 echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5940 if test "${ac_cv_prog_STRIP+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943 if test -n "$STRIP"; then
5944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5945 else
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957 done
5958 done
5959
5960 fi
5961 fi
5962 STRIP=$ac_cv_prog_STRIP
5963 if test -n "$STRIP"; then
5964 echo "$as_me:$LINENO: result: $STRIP" >&5
5965 echo "${ECHO_T}$STRIP" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6
5969 fi
5970
5971 fi
5972 if test -z "$ac_cv_prog_STRIP"; then
5973 ac_ct_STRIP=$STRIP
5974 # Extract the first word of "strip", so it can be a program name with args.
5975 set dummy strip; ac_word=$2
5976 echo "$as_me:$LINENO: checking for $ac_word" >&5
5977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 if test -n "$ac_ct_STRIP"; then
5982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991 ac_cv_prog_ac_ct_STRIP="strip"
5992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995 done
5996 done
5997
5998 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5999 fi
6000 fi
6001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6002 if test -n "$ac_ct_STRIP"; then
6003 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6004 echo "${ECHO_T}$ac_ct_STRIP" >&6
6005 else
6006 echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6
6008 fi
6009
6010 STRIP=$ac_ct_STRIP
6011 else
6012 STRIP="$ac_cv_prog_STRIP"
6013 fi
6014
6015
6016 old_CC="$CC"
6017 old_CFLAGS="$CFLAGS"
6018
6019 # Set sane defaults for various variables
6020 test -z "$AR" && AR=ar
6021 test -z "$AR_FLAGS" && AR_FLAGS=cru
6022 test -z "$AS" && AS=as
6023 test -z "$CC" && CC=cc
6024 test -z "$LTCC" && LTCC=$CC
6025 test -z "$DLLTOOL" && DLLTOOL=dlltool
6026 test -z "$LD" && LD=ld
6027 test -z "$LN_S" && LN_S="ln -s"
6028 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6029 test -z "$NM" && NM=nm
6030 test -z "$SED" && SED=sed
6031 test -z "$OBJDUMP" && OBJDUMP=objdump
6032 test -z "$RANLIB" && RANLIB=:
6033 test -z "$STRIP" && STRIP=:
6034 test -z "$ac_objext" && ac_objext=o
6035
6036 # Determine commands to create old-style static archives.
6037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6038 old_postinstall_cmds='chmod 644 $oldlib'
6039 old_postuninstall_cmds=
6040
6041 if test -n "$RANLIB"; then
6042 case $host_os in
6043 openbsd*)
6044 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6045 ;;
6046 *)
6047 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6048 ;;
6049 esac
6050 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6051 fi
6052
6053 # Only perform the check for file, if the check method requires it
6054 case $deplibs_check_method in
6055 file_magic*)
6056 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6057 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6058 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 case $MAGIC_CMD in
6063 [\\/*] | ?:[\\/]*)
6064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6065 ;;
6066 *)
6067 lt_save_MAGIC_CMD="$MAGIC_CMD"
6068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6070 for ac_dir in $ac_dummy; do
6071 IFS="$lt_save_ifs"
6072 test -z "$ac_dir" && ac_dir=.
6073 if test -f $ac_dir/${ac_tool_prefix}file; then
6074 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6075 if test -n "$file_magic_test_file"; then
6076 case $deplibs_check_method in
6077 "file_magic "*)
6078 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6081 $EGREP "$file_magic_regex" > /dev/null; then
6082 :
6083 else
6084 cat <<EOF 1>&2
6085
6086 *** Warning: the command libtool uses to detect shared libraries,
6087 *** $file_magic_cmd, produces output that libtool cannot recognize.
6088 *** The result is that libtool may fail to recognize shared libraries
6089 *** as such. This will affect the creation of libtool libraries that
6090 *** depend on shared libraries, but programs linked with such libtool
6091 *** libraries will work regardless of this problem. Nevertheless, you
6092 *** may want to report the problem to your system manager and/or to
6093 *** bug-libtool@gnu.org
6094
6095 EOF
6096 fi ;;
6097 esac
6098 fi
6099 break
6100 fi
6101 done
6102 IFS="$lt_save_ifs"
6103 MAGIC_CMD="$lt_save_MAGIC_CMD"
6104 ;;
6105 esac
6106 fi
6107
6108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6109 if test -n "$MAGIC_CMD"; then
6110 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6111 echo "${ECHO_T}$MAGIC_CMD" >&6
6112 else
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6115 fi
6116
6117 if test -z "$lt_cv_path_MAGIC_CMD"; then
6118 if test -n "$ac_tool_prefix"; then
6119 echo "$as_me:$LINENO: checking for file" >&5
6120 echo $ECHO_N "checking for file... $ECHO_C" >&6
6121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 case $MAGIC_CMD in
6125 [\\/*] | ?:[\\/]*)
6126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6127 ;;
6128 *)
6129 lt_save_MAGIC_CMD="$MAGIC_CMD"
6130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6132 for ac_dir in $ac_dummy; do
6133 IFS="$lt_save_ifs"
6134 test -z "$ac_dir" && ac_dir=.
6135 if test -f $ac_dir/file; then
6136 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6137 if test -n "$file_magic_test_file"; then
6138 case $deplibs_check_method in
6139 "file_magic "*)
6140 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6143 $EGREP "$file_magic_regex" > /dev/null; then
6144 :
6145 else
6146 cat <<EOF 1>&2
6147
6148 *** Warning: the command libtool uses to detect shared libraries,
6149 *** $file_magic_cmd, produces output that libtool cannot recognize.
6150 *** The result is that libtool may fail to recognize shared libraries
6151 *** as such. This will affect the creation of libtool libraries that
6152 *** depend on shared libraries, but programs linked with such libtool
6153 *** libraries will work regardless of this problem. Nevertheless, you
6154 *** may want to report the problem to your system manager and/or to
6155 *** bug-libtool@gnu.org
6156
6157 EOF
6158 fi ;;
6159 esac
6160 fi
6161 break
6162 fi
6163 done
6164 IFS="$lt_save_ifs"
6165 MAGIC_CMD="$lt_save_MAGIC_CMD"
6166 ;;
6167 esac
6168 fi
6169
6170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6171 if test -n "$MAGIC_CMD"; then
6172 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6173 echo "${ECHO_T}$MAGIC_CMD" >&6
6174 else
6175 echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6
6177 fi
6178
6179 else
6180 MAGIC_CMD=:
6181 fi
6182 fi
6183
6184 fi
6185 ;;
6186 esac
6187
6188 enable_dlopen=no
6189 enable_win32_dll=no
6190
6191 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6192 if test "${enable_libtool_lock+set}" = set; then
6193 enableval="$enable_libtool_lock"
6194
6195 fi;
6196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6197
6198
6199 # Check whether --with-pic or --without-pic was given.
6200 if test "${with_pic+set}" = set; then
6201 withval="$with_pic"
6202 pic_mode="$withval"
6203 else
6204 pic_mode=default
6205 fi;
6206 test -z "$pic_mode" && pic_mode=default
6207
6208 # Use C for the default configuration in the libtool script
6209 tagname=
6210 lt_save_CC="$CC"
6211 ac_ext=c
6212 ac_cpp='$CPP $CPPFLAGS'
6213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216
6217
6218 # Source file extension for C test sources.
6219 ac_ext=c
6220
6221 # Object file extension for compiled C test sources.
6222 objext=o
6223 objext=$objext
6224
6225 # Code to be used in simple compile tests
6226 lt_simple_compile_test_code="int some_variable = 0;\n"
6227
6228 # Code to be used in simple link tests
6229 lt_simple_link_test_code='int main(){return(0);}\n'
6230
6231
6232 # If no C compiler was specified, use CC.
6233 LTCC=${LTCC-"$CC"}
6234
6235 # Allow CC to be a program name with arguments.
6236 compiler=$CC
6237
6238
6239 #
6240 # Check for any special shared library compilation flags.
6241 #
6242 lt_prog_cc_shlib=
6243 if test "$GCC" = no; then
6244 case $host_os in
6245 sco3.2v5*)
6246 lt_prog_cc_shlib='-belf'
6247 ;;
6248 esac
6249 fi
6250 if test -n "$lt_prog_cc_shlib"; then
6251 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6252 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6253 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6254 else
6255 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6256 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6257 lt_cv_prog_cc_can_build_shared=no
6258 fi
6259 fi
6260
6261
6262 #
6263 # Check to make sure the static flag actually works.
6264 #
6265 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6266 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6267 if test "${lt_prog_compiler_static_works+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 lt_prog_compiler_static_works=no
6271 save_LDFLAGS="$LDFLAGS"
6272 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6273 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6274 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6275 # The compiler can only warn and ignore the option if not recognized
6276 # So say no if there are warnings
6277 if test -s conftest.err; then
6278 # Append any errors to the config.log.
6279 cat conftest.err 1>&5
6280 else
6281 lt_prog_compiler_static_works=yes
6282 fi
6283 fi
6284 $rm conftest*
6285 LDFLAGS="$save_LDFLAGS"
6286
6287 fi
6288 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6289 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6290
6291 if test x"$lt_prog_compiler_static_works" = xyes; then
6292 :
6293 else
6294 lt_prog_compiler_static=
6295 fi
6296
6297
6298
6299
6300 lt_prog_compiler_no_builtin_flag=
6301
6302 if test "$GCC" = yes; then
6303 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6304
6305
6306 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6307 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6308 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 lt_cv_prog_compiler_rtti_exceptions=no
6312 ac_outfile=conftest.$ac_objext
6313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6314 lt_compiler_flag="-fno-rtti -fno-exceptions"
6315 # Insert the option either (1) after the last *FLAGS variable, or
6316 # (2) before a word containing "conftest.", or (3) at the end.
6317 # Note that $ac_compile itself does not contain backslashes and begins
6318 # with a dollar sign (not a hyphen), so the echo should work correctly.
6319 # The option is referenced via a variable to avoid confusing sed.
6320 lt_compile=`echo "$ac_compile" | $SED \
6321 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6323 -e 's:$: $lt_compiler_flag:'`
6324 (eval echo "\"\$as_me:6324: $lt_compile\"" >&5)
6325 (eval "$lt_compile" 2>conftest.err)
6326 ac_status=$?
6327 cat conftest.err >&5
6328 echo "$as_me:6328: \$? = $ac_status" >&5
6329 if (exit $ac_status) && test -s "$ac_outfile"; then
6330 # The compiler can only warn and ignore the option if not recognized
6331 # So say no if there are warnings
6332 if test ! -s conftest.err; then
6333 lt_cv_prog_compiler_rtti_exceptions=yes
6334 fi
6335 fi
6336 $rm conftest*
6337
6338 fi
6339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6340 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6341
6342 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6343 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6344 else
6345 :
6346 fi
6347
6348 fi
6349
6350 lt_prog_compiler_wl=
6351 lt_prog_compiler_pic=
6352 lt_prog_compiler_static=
6353
6354 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6355 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6356
6357 if test "$GCC" = yes; then
6358 lt_prog_compiler_wl='-Wl,'
6359 lt_prog_compiler_static='-static'
6360
6361 case $host_os in
6362 aix*)
6363 # All AIX code is PIC.
6364 if test "$host_cpu" = ia64; then
6365 # AIX 5 now supports IA64 processor
6366 lt_prog_compiler_static='-Bstatic'
6367 fi
6368 ;;
6369
6370 amigaos*)
6371 # FIXME: we need at least 68020 code to build shared libraries, but
6372 # adding the `-m68020' flag to GCC prevents building anything better,
6373 # like `-m68040'.
6374 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6375 ;;
6376
6377 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6378 # PIC is the default for these OSes.
6379 ;;
6380
6381 mingw* | pw32* | os2*)
6382 # This hack is so that the source file can tell whether it is being
6383 # built for inclusion in a dll (and should export symbols for example).
6384 lt_prog_compiler_pic='-DDLL_EXPORT'
6385 ;;
6386
6387 darwin* | rhapsody*)
6388 # PIC is the default on this platform
6389 # Common symbols not allowed in MH_DYLIB files
6390 lt_prog_compiler_pic='-fno-common'
6391 ;;
6392
6393 msdosdjgpp*)
6394 # Just because we use GCC doesn't mean we suddenly get shared libraries
6395 # on systems that don't support them.
6396 lt_prog_compiler_can_build_shared=no
6397 enable_shared=no
6398 ;;
6399
6400 sysv4*MP*)
6401 if test -d /usr/nec; then
6402 lt_prog_compiler_pic=-Kconform_pic
6403 fi
6404 ;;
6405
6406 hpux*)
6407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6408 # not for PA HP-UX.
6409 case "$host_cpu" in
6410 hppa*64*|ia64*)
6411 # +Z the default
6412 ;;
6413 *)
6414 lt_prog_compiler_pic='-fPIC'
6415 ;;
6416 esac
6417 ;;
6418
6419 *)
6420 lt_prog_compiler_pic='-fPIC'
6421 ;;
6422 esac
6423 else
6424 # PORTME Check for flag to pass linker flags through the system compiler.
6425 case $host_os in
6426 aix*)
6427 lt_prog_compiler_wl='-Wl,'
6428 if test "$host_cpu" = ia64; then
6429 # AIX 5 now supports IA64 processor
6430 lt_prog_compiler_static='-Bstatic'
6431 else
6432 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6433 fi
6434 ;;
6435
6436 mingw* | pw32* | os2*)
6437 # This hack is so that the source file can tell whether it is being
6438 # built for inclusion in a dll (and should export symbols for example).
6439 lt_prog_compiler_pic='-DDLL_EXPORT'
6440 ;;
6441
6442 hpux9* | hpux10* | hpux11*)
6443 lt_prog_compiler_wl='-Wl,'
6444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6445 # not for PA HP-UX.
6446 case "$host_cpu" in
6447 hppa*64*|ia64*)
6448 # +Z the default
6449 ;;
6450 *)
6451 lt_prog_compiler_pic='+Z'
6452 ;;
6453 esac
6454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6455 lt_prog_compiler_static='${wl}-a ${wl}archive'
6456 ;;
6457
6458 irix5* | irix6* | nonstopux*)
6459 lt_prog_compiler_wl='-Wl,'
6460 # PIC (with -KPIC) is the default.
6461 lt_prog_compiler_static='-non_shared'
6462 ;;
6463
6464 newsos6)
6465 lt_prog_compiler_pic='-KPIC'
6466 lt_prog_compiler_static='-Bstatic'
6467 ;;
6468
6469 linux*)
6470 case $CC in
6471 icc* | ecc*)
6472 lt_prog_compiler_wl='-Wl,'
6473 lt_prog_compiler_pic='-KPIC'
6474 lt_prog_compiler_static='-static'
6475 ;;
6476 ccc*)
6477 lt_prog_compiler_wl='-Wl,'
6478 # All Alpha code is PIC.
6479 lt_prog_compiler_static='-non_shared'
6480 ;;
6481 esac
6482 ;;
6483
6484 osf3* | osf4* | osf5*)
6485 lt_prog_compiler_wl='-Wl,'
6486 # All OSF/1 code is PIC.
6487 lt_prog_compiler_static='-non_shared'
6488 ;;
6489
6490 sco3.2v5*)
6491 lt_prog_compiler_pic='-Kpic'
6492 lt_prog_compiler_static='-dn'
6493 ;;
6494
6495 solaris*)
6496 lt_prog_compiler_wl='-Wl,'
6497 lt_prog_compiler_pic='-KPIC'
6498 lt_prog_compiler_static='-Bstatic'
6499 ;;
6500
6501 sunos4*)
6502 lt_prog_compiler_wl='-Qoption ld '
6503 lt_prog_compiler_pic='-PIC'
6504 lt_prog_compiler_static='-Bstatic'
6505 ;;
6506
6507 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6508 lt_prog_compiler_wl='-Wl,'
6509 lt_prog_compiler_pic='-KPIC'
6510 lt_prog_compiler_static='-Bstatic'
6511 ;;
6512
6513 sysv4*MP*)
6514 if test -d /usr/nec ;then
6515 lt_prog_compiler_pic='-Kconform_pic'
6516 lt_prog_compiler_static='-Bstatic'
6517 fi
6518 ;;
6519
6520 uts4*)
6521 lt_prog_compiler_pic='-pic'
6522 lt_prog_compiler_static='-Bstatic'
6523 ;;
6524
6525 *)
6526 lt_prog_compiler_can_build_shared=no
6527 ;;
6528 esac
6529 fi
6530
6531 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6532 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6533
6534 #
6535 # Check to make sure the PIC flag actually works.
6536 #
6537 if test -n "$lt_prog_compiler_pic"; then
6538
6539 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6540 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6541 if test "${lt_prog_compiler_pic_works+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544 lt_prog_compiler_pic_works=no
6545 ac_outfile=conftest.$ac_objext
6546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6547 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6548 # Insert the option either (1) after the last *FLAGS variable, or
6549 # (2) before a word containing "conftest.", or (3) at the end.
6550 # Note that $ac_compile itself does not contain backslashes and begins
6551 # with a dollar sign (not a hyphen), so the echo should work correctly.
6552 # The option is referenced via a variable to avoid confusing sed.
6553 lt_compile=`echo "$ac_compile" | $SED \
6554 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6556 -e 's:$: $lt_compiler_flag:'`
6557 (eval echo "\"\$as_me:6557: $lt_compile\"" >&5)
6558 (eval "$lt_compile" 2>conftest.err)
6559 ac_status=$?
6560 cat conftest.err >&5
6561 echo "$as_me:6561: \$? = $ac_status" >&5
6562 if (exit $ac_status) && test -s "$ac_outfile"; then
6563 # The compiler can only warn and ignore the option if not recognized
6564 # So say no if there are warnings
6565 if test ! -s conftest.err; then
6566 lt_prog_compiler_pic_works=yes
6567 fi
6568 fi
6569 $rm conftest*
6570
6571 fi
6572 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6573 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6574
6575 if test x"$lt_prog_compiler_pic_works" = xyes; then
6576 case $lt_prog_compiler_pic in
6577 "" | " "*) ;;
6578 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6579 esac
6580 else
6581 lt_prog_compiler_pic=
6582 lt_prog_compiler_can_build_shared=no
6583 fi
6584
6585 fi
6586 case "$host_os" in
6587 # For platforms which do not support PIC, -DPIC is meaningless:
6588 *djgpp*)
6589 lt_prog_compiler_pic=
6590 ;;
6591 *)
6592 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6593 ;;
6594 esac
6595
6596 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6597 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6598 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 lt_cv_prog_compiler_c_o=no
6602 $rm -r conftest 2>/dev/null
6603 mkdir conftest
6604 cd conftest
6605 mkdir out
6606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6607
6608 lt_compiler_flag="-o out/conftest2.$ac_objext"
6609 # Insert the option either (1) after the last *FLAGS variable, or
6610 # (2) before a word containing "conftest.", or (3) at the end.
6611 # Note that $ac_compile itself does not contain backslashes and begins
6612 # with a dollar sign (not a hyphen), so the echo should work correctly.
6613 lt_compile=`echo "$ac_compile" | $SED \
6614 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6616 -e 's:$: $lt_compiler_flag:'`
6617 (eval echo "\"\$as_me:6617: $lt_compile\"" >&5)
6618 (eval "$lt_compile" 2>out/conftest.err)
6619 ac_status=$?
6620 cat out/conftest.err >&5
6621 echo "$as_me:6621: \$? = $ac_status" >&5
6622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6623 then
6624 # The compiler can only warn and ignore the option if not recognized
6625 # So say no if there are warnings
6626 if test ! -s out/conftest.err; then
6627 lt_cv_prog_compiler_c_o=yes
6628 fi
6629 fi
6630 chmod u+w .
6631 $rm conftest*
6632 # SGI C++ compiler will create directory out/ii_files/ for
6633 # template instantiation
6634 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6635 $rm out/* && rmdir out
6636 cd ..
6637 rmdir conftest
6638 $rm conftest*
6639
6640 fi
6641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6643
6644
6645 hard_links="nottested"
6646 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6647 # do not overwrite the value of need_locks provided by the user
6648 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6650 hard_links=yes
6651 $rm conftest*
6652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6653 touch conftest.a
6654 ln conftest.a conftest.b 2>&5 || hard_links=no
6655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6656 echo "$as_me:$LINENO: result: $hard_links" >&5
6657 echo "${ECHO_T}$hard_links" >&6
6658 if test "$hard_links" = no; then
6659 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6661 need_locks=warn
6662 fi
6663 else
6664 need_locks=no
6665 fi
6666
6667 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6669
6670 runpath_var=
6671 allow_undefined_flag=
6672 enable_shared_with_static_runtimes=no
6673 archive_cmds=
6674 archive_expsym_cmds=
6675 old_archive_From_new_cmds=
6676 old_archive_from_expsyms_cmds=
6677 export_dynamic_flag_spec=
6678 whole_archive_flag_spec=
6679 thread_safe_flag_spec=
6680 hardcode_libdir_flag_spec=
6681 hardcode_libdir_flag_spec_ld=
6682 hardcode_libdir_separator=
6683 hardcode_direct=no
6684 hardcode_minus_L=no
6685 hardcode_shlibpath_var=unsupported
6686 link_all_deplibs=unknown
6687 hardcode_automatic=no
6688 module_cmds=
6689 module_expsym_cmds=
6690 always_export_symbols=no
6691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6692 # include_expsyms should be a list of space-separated symbols to be *always*
6693 # included in the symbol list
6694 include_expsyms=
6695 # exclude_expsyms can be an extended regexp of symbols to exclude
6696 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6697 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6698 # as well as any symbol that contains `d'.
6699 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6700 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6701 # platforms (ab)use it in PIC code, but their linkers get confused if
6702 # the symbol is explicitly referenced. Since portable code cannot
6703 # rely on this symbol name, it's probably fine to never include it in
6704 # preloaded symbol tables.
6705 extract_expsyms_cmds=
6706
6707 case $host_os in
6708 cygwin* | mingw* | pw32*)
6709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6710 # When not using gcc, we currently assume that we are using
6711 # Microsoft Visual C++.
6712 if test "$GCC" != yes; then
6713 with_gnu_ld=no
6714 fi
6715 ;;
6716 openbsd*)
6717 with_gnu_ld=no
6718 ;;
6719 esac
6720
6721 ld_shlibs=yes
6722 if test "$with_gnu_ld" = yes; then
6723 # If archive_cmds runs LD, not CC, wlarc should be empty
6724 wlarc='${wl}'
6725
6726 # See if GNU ld supports shared libraries.
6727 case $host_os in
6728 aix3* | aix4* | aix5*)
6729 # On AIX/PPC, the GNU linker is very broken
6730 if test "$host_cpu" != ia64; then
6731 ld_shlibs=no
6732 cat <<EOF 1>&2
6733
6734 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6735 *** to be unable to reliably create shared libraries on AIX.
6736 *** Therefore, libtool is disabling shared libraries support. If you
6737 *** really care for shared libraries, you may want to modify your PATH
6738 *** so that a non-GNU linker is found, and then restart.
6739
6740 EOF
6741 fi
6742 ;;
6743
6744 amigaos*)
6745 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)'
6746 hardcode_libdir_flag_spec='-L$libdir'
6747 hardcode_minus_L=yes
6748
6749 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6750 # that the semantics of dynamic libraries on AmigaOS, at least up
6751 # to version 4, is to share data among multiple programs linked
6752 # with the same dynamic library. Since this doesn't match the
6753 # behavior of shared libraries on other platforms, we can't use
6754 # them.
6755 ld_shlibs=no
6756 ;;
6757
6758 beos*)
6759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6760 allow_undefined_flag=unsupported
6761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6762 # support --undefined. This deserves some investigation. FIXME
6763 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6764 else
6765 ld_shlibs=no
6766 fi
6767 ;;
6768
6769 cygwin* | mingw* | pw32*)
6770 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6771 # as there is no search path for DLLs.
6772 hardcode_libdir_flag_spec='-L$libdir'
6773 allow_undefined_flag=unsupported
6774 always_export_symbols=no
6775 enable_shared_with_static_runtimes=yes
6776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6777
6778 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6780 # If the export-symbols file already is a .def file (1st line
6781 # is EXPORTS), use it as is; otherwise, prepend...
6782 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6783 cp $export_symbols $output_objdir/$soname.def;
6784 else
6785 echo EXPORTS > $output_objdir/$soname.def;
6786 cat $export_symbols >> $output_objdir/$soname.def;
6787 fi~
6788 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6789 else
6790 ld_shlibs=no
6791 fi
6792 ;;
6793
6794 netbsd*)
6795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6796 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6797 wlarc=
6798 else
6799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6801 fi
6802 ;;
6803
6804 solaris* | sysv5*)
6805 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6806 ld_shlibs=no
6807 cat <<EOF 1>&2
6808
6809 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6810 *** create shared libraries on Solaris systems. Therefore, libtool
6811 *** is disabling shared libraries support. We urge you to upgrade GNU
6812 *** binutils to release 2.9.1 or newer. Another option is to modify
6813 *** your PATH or compiler configuration so that the native linker is
6814 *** used, and then restart.
6815
6816 EOF
6817 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6820 else
6821 ld_shlibs=no
6822 fi
6823 ;;
6824
6825 sunos4*)
6826 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6827 wlarc=
6828 hardcode_direct=yes
6829 hardcode_shlibpath_var=no
6830 ;;
6831
6832 linux*)
6833 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6834 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6835 archive_cmds="$tmp_archive_cmds"
6836 supports_anon_versioning=no
6837 case `$LD -v 2>/dev/null` in
6838 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6839 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6840 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6841 *\ 2.11.*) ;; # other 2.11 versions
6842 *) supports_anon_versioning=yes ;;
6843 esac
6844 if test $supports_anon_versioning = yes; then
6845 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6847 $echo "local: *; };" >> $output_objdir/$libname.ver~
6848 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6849 else
6850 archive_expsym_cmds="$tmp_archive_cmds"
6851 fi
6852 else
6853 ld_shlibs=no
6854 fi
6855 ;;
6856
6857 *)
6858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6860 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6861 else
6862 ld_shlibs=no
6863 fi
6864 ;;
6865 esac
6866
6867 if test "$ld_shlibs" = yes; then
6868 runpath_var=LD_RUN_PATH
6869 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6870 export_dynamic_flag_spec='${wl}--export-dynamic'
6871 # ancient GNU ld didn't support --whole-archive et. al.
6872 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6873 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6874 else
6875 whole_archive_flag_spec=
6876 fi
6877 fi
6878 else
6879 # PORTME fill in a description of your system's linker (not GNU ld)
6880 case $host_os in
6881 aix3*)
6882 allow_undefined_flag=unsupported
6883 always_export_symbols=yes
6884 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'
6885 # Note: this linker hardcodes the directories in LIBPATH if there
6886 # are no directories specified by -L.
6887 hardcode_minus_L=yes
6888 if test "$GCC" = yes && test -z "$link_static_flag"; then
6889 # Neither direct hardcoding nor static linking is supported with a
6890 # broken collect2.
6891 hardcode_direct=unsupported
6892 fi
6893 ;;
6894
6895 aix4* | aix5*)
6896 if test "$host_cpu" = ia64; then
6897 # On IA64, the linker does run time linking by default, so we don't
6898 # have to do anything special.
6899 aix_use_runtimelinking=no
6900 exp_sym_flag='-Bexport'
6901 no_entry_flag=""
6902 else
6903 # If we're using GNU nm, then we don't want the "-C" option.
6904 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6905 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6906 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'
6907 else
6908 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'
6909 fi
6910 aix_use_runtimelinking=no
6911
6912 # Test if we are trying to use run time linking or normal
6913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6914 # need to do runtime linking.
6915 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6916 for ld_flag in $LDFLAGS; do
6917 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6918 aix_use_runtimelinking=yes
6919 break
6920 fi
6921 done
6922 esac
6923
6924 exp_sym_flag='-bexport'
6925 no_entry_flag='-bnoentry'
6926 fi
6927
6928 # When large executables or shared objects are built, AIX ld can
6929 # have problems creating the table of contents. If linking a library
6930 # or program results in "error TOC overflow" add -mminimal-toc to
6931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6933
6934 archive_cmds=''
6935 hardcode_direct=yes
6936 hardcode_libdir_separator=':'
6937 link_all_deplibs=yes
6938
6939 if test "$GCC" = yes; then
6940 case $host_os in aix4.012|aix4.012.*)
6941 # We only want to do this on AIX 4.2 and lower, the check
6942 # below for broken collect2 doesn't work under 4.3+
6943 collect2name=`${CC} -print-prog-name=collect2`
6944 if test -f "$collect2name" && \
6945 strings "$collect2name" | grep resolve_lib_name >/dev/null
6946 then
6947 # We have reworked collect2
6948 hardcode_direct=yes
6949 else
6950 # We have old collect2
6951 hardcode_direct=unsupported
6952 # It fails to find uninstalled libraries when the uninstalled
6953 # path is not listed in the libpath. Setting hardcode_minus_L
6954 # to unsupported forces relinking
6955 hardcode_minus_L=yes
6956 hardcode_libdir_flag_spec='-L$libdir'
6957 hardcode_libdir_separator=
6958 fi
6959 esac
6960 shared_flag='-shared'
6961 else
6962 # not using gcc
6963 if test "$host_cpu" = ia64; then
6964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6965 # chokes on -Wl,-G. The following line is correct:
6966 shared_flag='-G'
6967 else
6968 if test "$aix_use_runtimelinking" = yes; then
6969 shared_flag='${wl}-G'
6970 else
6971 shared_flag='${wl}-bM:SRE'
6972 fi
6973 fi
6974 fi
6975
6976 # It seems that -bexpall does not export symbols beginning with
6977 # underscore (_), so it is better to generate a list of symbols to export.
6978 always_export_symbols=yes
6979 if test "$aix_use_runtimelinking" = yes; then
6980 # Warning - without using the other runtime loading flags (-brtl),
6981 # -berok will link without error, but may produce a broken library.
6982 allow_undefined_flag='-berok'
6983 # Determine the default libpath from the value encoded in an empty executable.
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990
6991 int
6992 main ()
6993 {
6994
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 rm -f conftest.$ac_objext conftest$ac_exeext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_c_werror_flag"
7009 || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest$ac_exeext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021
7022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7023 }'`
7024 # Check for a 64-bit object if we didn't find anything.
7025 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7026 }'`; fi
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 fi
7032 rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7035
7036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7037 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7038 else
7039 if test "$host_cpu" = ia64; then
7040 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7041 allow_undefined_flag="-z nodefs"
7042 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7043 else
7044 # Determine the default libpath from the value encoded in an empty executable.
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051
7052 int
7053 main ()
7054 {
7055
7056 ;
7057 return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>conftest.er1
7063 ac_status=$?
7064 grep -v '^ *+' conftest.er1 >conftest.err
7065 rm -f conftest.er1
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -z "$ac_c_werror_flag"
7070 || test ! -s conftest.err'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; } &&
7076 { ac_try='test -s conftest$ac_exeext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082
7083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7084 }'`
7085 # Check for a 64-bit object if we didn't find anything.
7086 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7087 }'`; fi
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 fi
7093 rm -f conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7096
7097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7098 # Warning - without using the other run time loading flags,
7099 # -berok will link without error, but may produce a broken library.
7100 no_undefined_flag=' ${wl}-bernotok'
7101 allow_undefined_flag=' ${wl}-berok'
7102 # -bexpall does not export symbols beginning with underscore (_)
7103 always_export_symbols=yes
7104 # Exported symbols can be pulled into shared objects from archives
7105 whole_archive_flag_spec=' '
7106 archive_cmds_need_lc=yes
7107 # This is similar to how AIX traditionally builds it's shared libraries.
7108 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7109 fi
7110 fi
7111 ;;
7112
7113 amigaos*)
7114 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)'
7115 hardcode_libdir_flag_spec='-L$libdir'
7116 hardcode_minus_L=yes
7117 # see comment about different semantics on the GNU ld section
7118 ld_shlibs=no
7119 ;;
7120
7121 bsdi4*)
7122 export_dynamic_flag_spec=-rdynamic
7123 ;;
7124
7125 cygwin* | mingw* | pw32*)
7126 # When not using gcc, we currently assume that we are using
7127 # Microsoft Visual C++.
7128 # hardcode_libdir_flag_spec is actually meaningless, as there is
7129 # no search path for DLLs.
7130 hardcode_libdir_flag_spec=' '
7131 allow_undefined_flag=unsupported
7132 # Tell ltmain to make .lib files, not .a files.
7133 libext=lib
7134 # Tell ltmain to make .dll files, not .so files.
7135 shrext=".dll"
7136 # FIXME: Setting linknames here is a bad hack.
7137 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7138 # The linker will automatically build a .lib file if we build a DLL.
7139 old_archive_From_new_cmds='true'
7140 # FIXME: Should let the user specify the lib program.
7141 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7142 fix_srcfile_path='`cygpath -w "$srcfile"`'
7143 enable_shared_with_static_runtimes=yes
7144 ;;
7145
7146 darwin* | rhapsody*)
7147 if test "$GXX" = yes ; then
7148 archive_cmds_need_lc=no
7149 case "$host_os" in
7150 rhapsody* | darwin1.[012])
7151 allow_undefined_flag='-undefined suppress'
7152 ;;
7153 *) # Darwin 1.3 on
7154 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7155 allow_undefined_flag='-flat_namespace -undefined suppress'
7156 else
7157 case ${MACOSX_DEPLOYMENT_TARGET} in
7158 10.[012])
7159 allow_undefined_flag='-flat_namespace -undefined suppress'
7160 ;;
7161 10.*)
7162 allow_undefined_flag='-undefined dynamic_lookup'
7163 ;;
7164 esac
7165 fi
7166 ;;
7167 esac
7168 lt_int_apple_cc_single_mod=no
7169 output_verbose_link_cmd='echo'
7170 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7171 lt_int_apple_cc_single_mod=yes
7172 fi
7173 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7174 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7175 else
7176 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7177 fi
7178 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7179 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7180 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7181 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7182 else
7183 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7184 fi
7185 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7186 hardcode_direct=no
7187 hardcode_automatic=yes
7188 hardcode_shlibpath_var=unsupported
7189 whole_archive_flag_spec='-all_load $convenience'
7190 link_all_deplibs=yes
7191 else
7192 ld_shlibs=no
7193 fi
7194 ;;
7195
7196 dgux*)
7197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7198 hardcode_libdir_flag_spec='-L$libdir'
7199 hardcode_shlibpath_var=no
7200 ;;
7201
7202 freebsd1*)
7203 ld_shlibs=no
7204 ;;
7205
7206 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7207 # support. Future versions do this automatically, but an explicit c++rt0.o
7208 # does not break anything, and helps significantly (at the cost of a little
7209 # extra space).
7210 freebsd2.2*)
7211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7212 hardcode_libdir_flag_spec='-R$libdir'
7213 hardcode_direct=yes
7214 hardcode_shlibpath_var=no
7215 ;;
7216
7217 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7218 freebsd2*)
7219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7220 hardcode_direct=yes
7221 hardcode_minus_L=yes
7222 hardcode_shlibpath_var=no
7223 ;;
7224
7225 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7226 freebsd* | kfreebsd*-gnu)
7227 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7228 hardcode_libdir_flag_spec='-R$libdir'
7229 hardcode_direct=yes
7230 hardcode_shlibpath_var=no
7231 ;;
7232
7233 hpux9*)
7234 if test "$GCC" = yes; then
7235 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'
7236 else
7237 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'
7238 fi
7239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7240 hardcode_libdir_separator=:
7241 hardcode_direct=yes
7242
7243 # hardcode_minus_L: Not really in the search PATH,
7244 # but as the default location of the library.
7245 hardcode_minus_L=yes
7246 export_dynamic_flag_spec='${wl}-E'
7247 ;;
7248
7249 hpux10* | hpux11*)
7250 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7251 case "$host_cpu" in
7252 hppa*64*|ia64*)
7253 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7254 ;;
7255 *)
7256 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7257 ;;
7258 esac
7259 else
7260 case "$host_cpu" in
7261 hppa*64*|ia64*)
7262 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7263 ;;
7264 *)
7265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7266 ;;
7267 esac
7268 fi
7269 if test "$with_gnu_ld" = no; then
7270 case "$host_cpu" in
7271 hppa*64*)
7272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7273 hardcode_libdir_flag_spec_ld='+b $libdir'
7274 hardcode_libdir_separator=:
7275 hardcode_direct=no
7276 hardcode_shlibpath_var=no
7277 ;;
7278 ia64*)
7279 hardcode_libdir_flag_spec='-L$libdir'
7280 hardcode_direct=no
7281 hardcode_shlibpath_var=no
7282
7283 # hardcode_minus_L: Not really in the search PATH,
7284 # but as the default location of the library.
7285 hardcode_minus_L=yes
7286 ;;
7287 *)
7288 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7289 hardcode_libdir_separator=:
7290 hardcode_direct=yes
7291 export_dynamic_flag_spec='${wl}-E'
7292
7293 # hardcode_minus_L: Not really in the search PATH,
7294 # but as the default location of the library.
7295 hardcode_minus_L=yes
7296 ;;
7297 esac
7298 fi
7299 ;;
7300
7301 irix5* | irix6* | nonstopux*)
7302 if test "$GCC" = yes; then
7303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7304 else
7305 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7306 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7307 fi
7308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7309 hardcode_libdir_separator=:
7310 link_all_deplibs=yes
7311 ;;
7312
7313 netbsd*)
7314 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7316 else
7317 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7318 fi
7319 hardcode_libdir_flag_spec='-R$libdir'
7320 hardcode_direct=yes
7321 hardcode_shlibpath_var=no
7322 ;;
7323
7324 newsos6)
7325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7326 hardcode_direct=yes
7327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7328 hardcode_libdir_separator=:
7329 hardcode_shlibpath_var=no
7330 ;;
7331
7332 openbsd*)
7333 hardcode_direct=yes
7334 hardcode_shlibpath_var=no
7335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7338 export_dynamic_flag_spec='${wl}-E'
7339 else
7340 case $host_os in
7341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7343 hardcode_libdir_flag_spec='-R$libdir'
7344 ;;
7345 *)
7346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7348 ;;
7349 esac
7350 fi
7351 ;;
7352
7353 os2*)
7354 hardcode_libdir_flag_spec='-L$libdir'
7355 hardcode_minus_L=yes
7356 allow_undefined_flag=unsupported
7357 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'
7358 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7359 ;;
7360
7361 osf3*)
7362 if test "$GCC" = yes; then
7363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7364 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7365 else
7366 allow_undefined_flag=' -expect_unresolved \*'
7367 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7368 fi
7369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7370 hardcode_libdir_separator=:
7371 ;;
7372
7373 osf4* | osf5*) # as osf3* with the addition of -msym flag
7374 if test "$GCC" = yes; then
7375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7376 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7378 else
7379 allow_undefined_flag=' -expect_unresolved \*'
7380 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7381 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7382 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7383
7384 # Both c and cxx compiler support -rpath directly
7385 hardcode_libdir_flag_spec='-rpath $libdir'
7386 fi
7387 hardcode_libdir_separator=:
7388 ;;
7389
7390 sco3.2v5*)
7391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7392 hardcode_shlibpath_var=no
7393 export_dynamic_flag_spec='${wl}-Bexport'
7394 runpath_var=LD_RUN_PATH
7395 hardcode_runpath_var=yes
7396 ;;
7397
7398 solaris*)
7399 no_undefined_flag=' -z text'
7400 if test "$GCC" = yes; then
7401 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7402 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7403 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7404 else
7405 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7407 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7408 fi
7409 hardcode_libdir_flag_spec='-R$libdir'
7410 hardcode_shlibpath_var=no
7411 case $host_os in
7412 solaris2.[0-5] | solaris2.[0-5].*) ;;
7413 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7414 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7415 esac
7416 link_all_deplibs=yes
7417 ;;
7418
7419 sunos4*)
7420 if test "x$host_vendor" = xsequent; then
7421 # Use $CC to link under sequent, because it throws in some extra .o
7422 # files that make .init and .fini sections work.
7423 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7424 else
7425 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7426 fi
7427 hardcode_libdir_flag_spec='-L$libdir'
7428 hardcode_direct=yes
7429 hardcode_minus_L=yes
7430 hardcode_shlibpath_var=no
7431 ;;
7432
7433 sysv4)
7434 case $host_vendor in
7435 sni)
7436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7437 hardcode_direct=yes # is this really true???
7438 ;;
7439 siemens)
7440 ## LD is ld it makes a PLAMLIB
7441 ## CC just makes a GrossModule.
7442 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7443 reload_cmds='$CC -r -o $output$reload_objs'
7444 hardcode_direct=no
7445 ;;
7446 motorola)
7447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7449 ;;
7450 esac
7451 runpath_var='LD_RUN_PATH'
7452 hardcode_shlibpath_var=no
7453 ;;
7454
7455 sysv4.3*)
7456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7457 hardcode_shlibpath_var=no
7458 export_dynamic_flag_spec='-Bexport'
7459 ;;
7460
7461 sysv4*MP*)
7462 if test -d /usr/nec; then
7463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464 hardcode_shlibpath_var=no
7465 runpath_var=LD_RUN_PATH
7466 hardcode_runpath_var=yes
7467 ld_shlibs=yes
7468 fi
7469 ;;
7470
7471 sysv4.2uw2*)
7472 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7473 hardcode_direct=yes
7474 hardcode_minus_L=no
7475 hardcode_shlibpath_var=no
7476 hardcode_runpath_var=yes
7477 runpath_var=LD_RUN_PATH
7478 ;;
7479
7480 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7481 no_undefined_flag='${wl}-z ${wl}text'
7482 if test "$GCC" = yes; then
7483 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7484 else
7485 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7486 fi
7487 runpath_var='LD_RUN_PATH'
7488 hardcode_shlibpath_var=no
7489 ;;
7490
7491 sysv5*)
7492 no_undefined_flag=' -z text'
7493 # $CC -shared without GNU ld will not create a library from C++
7494 # object files and a static libstdc++, better avoid it by now
7495 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7496 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7497 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7498 hardcode_libdir_flag_spec=
7499 hardcode_shlibpath_var=no
7500 runpath_var='LD_RUN_PATH'
7501 ;;
7502
7503 uts4*)
7504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7505 hardcode_libdir_flag_spec='-L$libdir'
7506 hardcode_shlibpath_var=no
7507 ;;
7508
7509 *)
7510 ld_shlibs=no
7511 ;;
7512 esac
7513 fi
7514
7515 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7516 echo "${ECHO_T}$ld_shlibs" >&6
7517 test "$ld_shlibs" = no && can_build_shared=no
7518
7519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7520 if test "$GCC" = yes; then
7521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7522 fi
7523
7524 #
7525 # Do we need to explicitly link libc?
7526 #
7527 case "x$archive_cmds_need_lc" in
7528 x|xyes)
7529 # Assume -lc should be added
7530 archive_cmds_need_lc=yes
7531
7532 if test "$enable_shared" = yes && test "$GCC" = yes; then
7533 case $archive_cmds in
7534 *'~'*)
7535 # FIXME: we may have to deal with multi-command sequences.
7536 ;;
7537 '$CC '*)
7538 # Test whether the compiler implicitly links with -lc since on some
7539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7540 # to ld, don't add -lc before -lgcc.
7541 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7542 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7543 $rm conftest*
7544 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7545
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } 2>conftest.err; then
7551 soname=conftest
7552 lib=conftest
7553 libobjs=conftest.$ac_objext
7554 deplibs=
7555 wl=$lt_prog_compiler_wl
7556 compiler_flags=-v
7557 linker_flags=-v
7558 verstring=
7559 output_objdir=.
7560 libname=conftest
7561 lt_save_allow_undefined_flag=$allow_undefined_flag
7562 allow_undefined_flag=
7563 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7564 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }
7568 then
7569 archive_cmds_need_lc=no
7570 else
7571 archive_cmds_need_lc=yes
7572 fi
7573 allow_undefined_flag=$lt_save_allow_undefined_flag
7574 else
7575 cat conftest.err 1>&5
7576 fi
7577 $rm conftest*
7578 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7579 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7580 ;;
7581 esac
7582 fi
7583 ;;
7584 esac
7585
7586 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7587 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7588 library_names_spec=
7589 libname_spec='lib$name'
7590 soname_spec=
7591 shrext=".so"
7592 postinstall_cmds=
7593 postuninstall_cmds=
7594 finish_cmds=
7595 finish_eval=
7596 shlibpath_var=
7597 shlibpath_overrides_runpath=unknown
7598 version_type=none
7599 dynamic_linker="$host_os ld.so"
7600 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7601 if test "$GCC" = yes; then
7602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7603 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7604 # if the path contains ";" then we assume it to be the separator
7605 # otherwise default to the standard path separator (i.e. ":") - it is
7606 # assumed that no part of a normal pathname contains ";" but that should
7607 # okay in the real world where ";" in dirpaths is itself problematic.
7608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7609 else
7610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7611 fi
7612 else
7613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7614 fi
7615 need_lib_prefix=unknown
7616 hardcode_into_libs=no
7617
7618 # when you set need_version to no, make sure it does not cause -set_version
7619 # flags to be left without arguments
7620 need_version=unknown
7621
7622 case $host_os in
7623 aix3*)
7624 version_type=linux
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7626 shlibpath_var=LIBPATH
7627
7628 # AIX 3 has no versioning support, so we append a major version to the name.
7629 soname_spec='${libname}${release}${shared_ext}$major'
7630 ;;
7631
7632 aix4* | aix5*)
7633 version_type=linux
7634 need_lib_prefix=no
7635 need_version=no
7636 hardcode_into_libs=yes
7637 if test "$host_cpu" = ia64; then
7638 # AIX 5 supports IA64
7639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7640 shlibpath_var=LD_LIBRARY_PATH
7641 else
7642 # With GCC up to 2.95.x, collect2 would create an import file
7643 # for dependence libraries. The import file would start with
7644 # the line `#! .'. This would cause the generated library to
7645 # depend on `.', always an invalid library. This was fixed in
7646 # development snapshots of GCC prior to 3.0.
7647 case $host_os in
7648 aix4 | aix4.[01] | aix4.[01].*)
7649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7650 echo ' yes '
7651 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7652 :
7653 else
7654 can_build_shared=no
7655 fi
7656 ;;
7657 esac
7658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7659 # soname into executable. Probably we can add versioning support to
7660 # collect2, so additional links can be useful in future.
7661 if test "$aix_use_runtimelinking" = yes; then
7662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7663 # instead of lib<name>.a to let people know that these are not
7664 # typical AIX shared libraries.
7665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7666 else
7667 # We preserve .a as extension for shared libraries through AIX4.2
7668 # and later when we are not doing run time linking.
7669 library_names_spec='${libname}${release}.a $libname.a'
7670 soname_spec='${libname}${release}${shared_ext}$major'
7671 fi
7672 shlibpath_var=LIBPATH
7673 fi
7674 ;;
7675
7676 amigaos*)
7677 library_names_spec='$libname.ixlibrary $libname.a'
7678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7679 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'
7680 ;;
7681
7682 beos*)
7683 library_names_spec='${libname}${shared_ext}'
7684 dynamic_linker="$host_os ld.so"
7685 shlibpath_var=LIBRARY_PATH
7686 ;;
7687
7688 bsdi4*)
7689 version_type=linux
7690 need_version=no
7691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7692 soname_spec='${libname}${release}${shared_ext}$major'
7693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7694 shlibpath_var=LD_LIBRARY_PATH
7695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7697 # the default ld.so.conf also contains /usr/contrib/lib and
7698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7699 # libtool to hard-code these into programs
7700 ;;
7701
7702 cygwin* | mingw* | pw32*)
7703 version_type=windows
7704 shrext=".dll"
7705 need_version=no
7706 need_lib_prefix=no
7707
7708 case $GCC,$host_os in
7709 yes,cygwin* | yes,mingw* | yes,pw32*)
7710 library_names_spec='$libname.dll.a'
7711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7712 postinstall_cmds='base_file=`basename \${file}`~
7713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7714 dldir=$destdir/`dirname \$dlpath`~
7715 test -d \$dldir || mkdir -p \$dldir~
7716 $install_prog $dir/$dlname \$dldir/$dlname'
7717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7718 dlpath=$dir/\$dldll~
7719 $rm \$dlpath'
7720 shlibpath_overrides_runpath=yes
7721
7722 case $host_os in
7723 cygwin*)
7724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7727 ;;
7728 mingw*)
7729 # MinGW DLLs use traditional 'lib' prefix
7730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7732 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7733 # It is most probably a Windows format PATH printed by
7734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7735 # path with ; separators, and with drive letters. We can handle the
7736 # drive letters (cygwin fileutils understands them), so leave them,
7737 # especially as we might pass files found there to a mingw objdump,
7738 # which wouldn't understand a cygwinified path. Ahh.
7739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7740 else
7741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7742 fi
7743 ;;
7744 pw32*)
7745 # pw32 DLLs use 'pw' prefix rather than 'lib'
7746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7747 ;;
7748 esac
7749 ;;
7750
7751 *)
7752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7753 ;;
7754 esac
7755 dynamic_linker='Win32 ld.exe'
7756 # FIXME: first we should search . and the directory the executable is in
7757 shlibpath_var=PATH
7758 ;;
7759
7760 darwin* | rhapsody*)
7761 dynamic_linker="$host_os dyld"
7762 version_type=darwin
7763 need_lib_prefix=no
7764 need_version=no
7765 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7766 soname_spec='${libname}${release}${major}$shared_ext'
7767 shlibpath_overrides_runpath=yes
7768 shlibpath_var=DYLD_LIBRARY_PATH
7769 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7770 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7771 if test "$GCC" = yes; then
7772 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7773 else
7774 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7775 fi
7776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7777 ;;
7778
7779 dgux*)
7780 version_type=linux
7781 need_lib_prefix=no
7782 need_version=no
7783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7784 soname_spec='${libname}${release}${shared_ext}$major'
7785 shlibpath_var=LD_LIBRARY_PATH
7786 ;;
7787
7788 freebsd1*)
7789 dynamic_linker=no
7790 ;;
7791
7792 kfreebsd*-gnu)
7793 version_type=linux
7794 need_lib_prefix=no
7795 need_version=no
7796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7797 soname_spec='${libname}${release}${shared_ext}$major'
7798 shlibpath_var=LD_LIBRARY_PATH
7799 shlibpath_overrides_runpath=no
7800 hardcode_into_libs=yes
7801 dynamic_linker='GNU ld.so'
7802 ;;
7803
7804 freebsd*)
7805 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7806 version_type=freebsd-$objformat
7807 case $version_type in
7808 freebsd-elf*)
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7810 need_version=no
7811 need_lib_prefix=no
7812 ;;
7813 freebsd-*)
7814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7815 need_version=yes
7816 ;;
7817 esac
7818 shlibpath_var=LD_LIBRARY_PATH
7819 case $host_os in
7820 freebsd2*)
7821 shlibpath_overrides_runpath=yes
7822 ;;
7823 freebsd3.01* | freebsdelf3.01*)
7824 shlibpath_overrides_runpath=yes
7825 hardcode_into_libs=yes
7826 ;;
7827 *) # from 3.2 on
7828 shlibpath_overrides_runpath=no
7829 hardcode_into_libs=yes
7830 ;;
7831 esac
7832 ;;
7833
7834 gnu*)
7835 version_type=linux
7836 need_lib_prefix=no
7837 need_version=no
7838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7839 soname_spec='${libname}${release}${shared_ext}$major'
7840 shlibpath_var=LD_LIBRARY_PATH
7841 hardcode_into_libs=yes
7842 ;;
7843
7844 hpux9* | hpux10* | hpux11*)
7845 # Give a soname corresponding to the major version so that dld.sl refuses to
7846 # link against other versions.
7847 version_type=sunos
7848 need_lib_prefix=no
7849 need_version=no
7850 case "$host_cpu" in
7851 ia64*)
7852 shrext='.so'
7853 hardcode_into_libs=yes
7854 dynamic_linker="$host_os dld.so"
7855 shlibpath_var=LD_LIBRARY_PATH
7856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858 soname_spec='${libname}${release}${shared_ext}$major'
7859 if test "X$HPUX_IA64_MODE" = X32; then
7860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7861 else
7862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7863 fi
7864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7865 ;;
7866 hppa*64*)
7867 shrext='.sl'
7868 hardcode_into_libs=yes
7869 dynamic_linker="$host_os dld.sl"
7870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873 soname_spec='${libname}${release}${shared_ext}$major'
7874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7876 ;;
7877 *)
7878 shrext='.sl'
7879 dynamic_linker="$host_os dld.sl"
7880 shlibpath_var=SHLIB_PATH
7881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7883 soname_spec='${libname}${release}${shared_ext}$major'
7884 ;;
7885 esac
7886 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7887 postinstall_cmds='chmod 555 $lib'
7888 ;;
7889
7890 irix5* | irix6* | nonstopux*)
7891 case $host_os in
7892 nonstopux*) version_type=nonstopux ;;
7893 *)
7894 if test "$lt_cv_prog_gnu_ld" = yes; then
7895 version_type=linux
7896 else
7897 version_type=irix
7898 fi ;;
7899 esac
7900 need_lib_prefix=no
7901 need_version=no
7902 soname_spec='${libname}${release}${shared_ext}$major'
7903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7904 case $host_os in
7905 irix5* | nonstopux*)
7906 libsuff= shlibsuff=
7907 ;;
7908 *)
7909 case $LD in # libtool.m4 will add one of these switches to LD
7910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7911 libsuff= shlibsuff= libmagic=32-bit;;
7912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7913 libsuff=32 shlibsuff=N32 libmagic=N32;;
7914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7916 *) libsuff= shlibsuff= libmagic=never-match;;
7917 esac
7918 ;;
7919 esac
7920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7921 shlibpath_overrides_runpath=no
7922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7924 hardcode_into_libs=yes
7925 ;;
7926
7927 # No shared lib support for Linux oldld, aout, or coff.
7928 linux*oldld* | linux*aout* | linux*coff*)
7929 dynamic_linker=no
7930 ;;
7931
7932 # This must be Linux ELF.
7933 linux*)
7934 version_type=linux
7935 need_lib_prefix=no
7936 need_version=no
7937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7938 soname_spec='${libname}${release}${shared_ext}$major'
7939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7940 shlibpath_var=LD_LIBRARY_PATH
7941 shlibpath_overrides_runpath=no
7942 # This implies no fast_install, which is unacceptable.
7943 # Some rework will be needed to allow for fast_install
7944 # before this can be enabled.
7945 hardcode_into_libs=yes
7946
7947 # Append ld.so.conf contents to the search path
7948 if test -f /etc/ld.so.conf; then
7949 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7950 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7951 fi
7952
7953 # We used to test for /lib/ld.so.1 and disable shared libraries on
7954 # powerpc, because MkLinux only supported shared libraries with the
7955 # GNU dynamic linker. Since this was broken with cross compilers,
7956 # most powerpc-linux boxes support dynamic linking these days and
7957 # people can always --disable-shared, the test was removed, and we
7958 # assume the GNU/Linux dynamic linker is in use.
7959 dynamic_linker='GNU/Linux ld.so'
7960 ;;
7961
7962 knetbsd*-gnu)
7963 version_type=linux
7964 need_lib_prefix=no
7965 need_version=no
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7967 soname_spec='${libname}${release}${shared_ext}$major'
7968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=no
7970 hardcode_into_libs=yes
7971 dynamic_linker='GNU ld.so'
7972 ;;
7973
7974 netbsd*)
7975 version_type=sunos
7976 need_lib_prefix=no
7977 need_version=no
7978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7981 dynamic_linker='NetBSD (a.out) ld.so'
7982 else
7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7984 soname_spec='${libname}${release}${shared_ext}$major'
7985 dynamic_linker='NetBSD ld.elf_so'
7986 fi
7987 shlibpath_var=LD_LIBRARY_PATH
7988 shlibpath_overrides_runpath=yes
7989 hardcode_into_libs=yes
7990 ;;
7991
7992 newsos6)
7993 version_type=linux
7994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7995 shlibpath_var=LD_LIBRARY_PATH
7996 shlibpath_overrides_runpath=yes
7997 ;;
7998
7999 nto-qnx*)
8000 version_type=linux
8001 need_lib_prefix=no
8002 need_version=no
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 soname_spec='${libname}${release}${shared_ext}$major'
8005 shlibpath_var=LD_LIBRARY_PATH
8006 shlibpath_overrides_runpath=yes
8007 ;;
8008
8009 openbsd*)
8010 version_type=sunos
8011 need_lib_prefix=no
8012 need_version=yes
8013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8015 shlibpath_var=LD_LIBRARY_PATH
8016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8017 case $host_os in
8018 openbsd2.[89] | openbsd2.[89].*)
8019 shlibpath_overrides_runpath=no
8020 ;;
8021 *)
8022 shlibpath_overrides_runpath=yes
8023 ;;
8024 esac
8025 else
8026 shlibpath_overrides_runpath=yes
8027 fi
8028 ;;
8029
8030 os2*)
8031 libname_spec='$name'
8032 shrext=".dll"
8033 need_lib_prefix=no
8034 library_names_spec='$libname${shared_ext} $libname.a'
8035 dynamic_linker='OS/2 ld.exe'
8036 shlibpath_var=LIBPATH
8037 ;;
8038
8039 osf3* | osf4* | osf5*)
8040 version_type=osf
8041 need_lib_prefix=no
8042 need_version=no
8043 soname_spec='${libname}${release}${shared_ext}$major'
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8045 shlibpath_var=LD_LIBRARY_PATH
8046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8047 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8048 ;;
8049
8050 sco3.2v5*)
8051 version_type=osf
8052 soname_spec='${libname}${release}${shared_ext}$major'
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054 shlibpath_var=LD_LIBRARY_PATH
8055 ;;
8056
8057 solaris*)
8058 version_type=linux
8059 need_lib_prefix=no
8060 need_version=no
8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8062 soname_spec='${libname}${release}${shared_ext}$major'
8063 shlibpath_var=LD_LIBRARY_PATH
8064 shlibpath_overrides_runpath=yes
8065 hardcode_into_libs=yes
8066 # ldd complains unless libraries are executable
8067 postinstall_cmds='chmod +x $lib'
8068 ;;
8069
8070 sunos4*)
8071 version_type=sunos
8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8074 shlibpath_var=LD_LIBRARY_PATH
8075 shlibpath_overrides_runpath=yes
8076 if test "$with_gnu_ld" = yes; then
8077 need_lib_prefix=no
8078 fi
8079 need_version=yes
8080 ;;
8081
8082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8083 version_type=linux
8084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8085 soname_spec='${libname}${release}${shared_ext}$major'
8086 shlibpath_var=LD_LIBRARY_PATH
8087 case $host_vendor in
8088 sni)
8089 shlibpath_overrides_runpath=no
8090 need_lib_prefix=no
8091 export_dynamic_flag_spec='${wl}-Blargedynsym'
8092 runpath_var=LD_RUN_PATH
8093 ;;
8094 siemens)
8095 need_lib_prefix=no
8096 ;;
8097 motorola)
8098 need_lib_prefix=no
8099 need_version=no
8100 shlibpath_overrides_runpath=no
8101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8102 ;;
8103 esac
8104 ;;
8105
8106 sysv4*MP*)
8107 if test -d /usr/nec ;then
8108 version_type=linux
8109 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8110 soname_spec='$libname${shared_ext}.$major'
8111 shlibpath_var=LD_LIBRARY_PATH
8112 fi
8113 ;;
8114
8115 uts4*)
8116 version_type=linux
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
8119 shlibpath_var=LD_LIBRARY_PATH
8120 ;;
8121
8122 *)
8123 dynamic_linker=no
8124 ;;
8125 esac
8126 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8127 echo "${ECHO_T}$dynamic_linker" >&6
8128 test "$dynamic_linker" = no && can_build_shared=no
8129
8130 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8131 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8132 hardcode_action=
8133 if test -n "$hardcode_libdir_flag_spec" || \
8134 test -n "$runpath_var " || \
8135 test "X$hardcode_automatic"="Xyes" ; then
8136
8137 # We can hardcode non-existant directories.
8138 if test "$hardcode_direct" != no &&
8139 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8140 # have to relink, otherwise we might link with an installed library
8141 # when we should be linking with a yet-to-be-installed one
8142 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8143 test "$hardcode_minus_L" != no; then
8144 # Linking always hardcodes the temporary library directory.
8145 hardcode_action=relink
8146 else
8147 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8148 hardcode_action=immediate
8149 fi
8150 else
8151 # We cannot hardcode anything, or else we can only hardcode existing
8152 # directories.
8153 hardcode_action=unsupported
8154 fi
8155 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8156 echo "${ECHO_T}$hardcode_action" >&6
8157
8158 if test "$hardcode_action" = relink; then
8159 # Fast installation is not supported
8160 enable_fast_install=no
8161 elif test "$shlibpath_overrides_runpath" = yes ||
8162 test "$enable_shared" = no; then
8163 # Fast installation is not necessary
8164 enable_fast_install=needless
8165 fi
8166
8167 striplib=
8168 old_striplib=
8169 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8170 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8171 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8172 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8173 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8174 echo "$as_me:$LINENO: result: yes" >&5
8175 echo "${ECHO_T}yes" >&6
8176 else
8177 # FIXME - insert some real tests, host_os isn't really good enough
8178 case $host_os in
8179 darwin*)
8180 if test -n "$STRIP" ; then
8181 striplib="$STRIP -x"
8182 echo "$as_me:$LINENO: result: yes" >&5
8183 echo "${ECHO_T}yes" >&6
8184 else
8185 echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6
8187 fi
8188 ;;
8189 *)
8190 echo "$as_me:$LINENO: result: no" >&5
8191 echo "${ECHO_T}no" >&6
8192 ;;
8193 esac
8194 fi
8195
8196 if test "x$enable_dlopen" != xyes; then
8197 enable_dlopen=unknown
8198 enable_dlopen_self=unknown
8199 enable_dlopen_self_static=unknown
8200 else
8201 lt_cv_dlopen=no
8202 lt_cv_dlopen_libs=
8203
8204 case $host_os in
8205 beos*)
8206 lt_cv_dlopen="load_add_on"
8207 lt_cv_dlopen_libs=
8208 lt_cv_dlopen_self=yes
8209 ;;
8210
8211 mingw* | pw32*)
8212 lt_cv_dlopen="LoadLibrary"
8213 lt_cv_dlopen_libs=
8214 ;;
8215
8216 cygwin*)
8217 lt_cv_dlopen="dlopen"
8218 lt_cv_dlopen_libs=
8219 ;;
8220
8221 darwin*)
8222 # if libdl is installed we need to link against it
8223 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8224 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8225 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 ac_check_lib_save_LIBS=$LIBS
8229 LIBS="-ldl $LIBS"
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236
8237 /* Override any gcc2 internal prototype to avoid an error. */
8238 #ifdef __cplusplus
8239 extern "C"
8240 #endif
8241 /* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8243 char dlopen ();
8244 int
8245 main ()
8246 {
8247 dlopen ();
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -z "$ac_c_werror_flag"
8262 || test ! -s conftest.err'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; } &&
8268 { ac_try='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 ac_cv_lib_dl_dlopen=yes
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279 ac_cv_lib_dl_dlopen=no
8280 fi
8281 rm -f conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 LIBS=$ac_check_lib_save_LIBS
8284 fi
8285 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8286 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8287 if test $ac_cv_lib_dl_dlopen = yes; then
8288 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8289 else
8290
8291 lt_cv_dlopen="dyld"
8292 lt_cv_dlopen_libs=
8293 lt_cv_dlopen_self=yes
8294
8295 fi
8296
8297 ;;
8298
8299 *)
8300 echo "$as_me:$LINENO: checking for shl_load" >&5
8301 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8302 if test "${ac_cv_func_shl_load+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8313 #define shl_load innocuous_shl_load
8314
8315 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char shl_load (); below.
8317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318 <limits.h> exists even on freestanding compilers. */
8319
8320 #ifdef __STDC__
8321 # include <limits.h>
8322 #else
8323 # include <assert.h>
8324 #endif
8325
8326 #undef shl_load
8327
8328 /* Override any gcc2 internal prototype to avoid an error. */
8329 #ifdef __cplusplus
8330 extern "C"
8331 {
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8335 char shl_load ();
8336 /* The GNU C library defines this for functions which it implements
8337 to always fail with ENOSYS. Some functions are actually named
8338 something starting with __ and the normal name is an alias. */
8339 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8340 choke me
8341 #else
8342 char (*f) () = shl_load;
8343 #endif
8344 #ifdef __cplusplus
8345 }
8346 #endif
8347
8348 int
8349 main ()
8350 {
8351 return f != shl_load;
8352 ;
8353 return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag"
8366 || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_func_shl_load=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_func_shl_load=no
8384 fi
8385 rm -f conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8389 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8390 if test $ac_cv_func_shl_load = yes; then
8391 lt_cv_dlopen="shl_load"
8392 else
8393 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8394 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8395 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398 ac_check_lib_save_LIBS=$LIBS
8399 LIBS="-ldld $LIBS"
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406
8407 /* Override any gcc2 internal prototype to avoid an error. */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8413 char shl_load ();
8414 int
8415 main ()
8416 {
8417 shl_load ();
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_lib_dld_shl_load=yes
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_cv_lib_dld_shl_load=no
8450 fi
8451 rm -f conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8454 fi
8455 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8456 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8457 if test $ac_cv_lib_dld_shl_load = yes; then
8458 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8459 else
8460 echo "$as_me:$LINENO: checking for dlopen" >&5
8461 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8462 if test "${ac_cv_func_dlopen+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8473 #define dlopen innocuous_dlopen
8474
8475 /* System header to define __stub macros and hopefully few prototypes,
8476 which can conflict with char dlopen (); below.
8477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8478 <limits.h> exists even on freestanding compilers. */
8479
8480 #ifdef __STDC__
8481 # include <limits.h>
8482 #else
8483 # include <assert.h>
8484 #endif
8485
8486 #undef dlopen
8487
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 #ifdef __cplusplus
8490 extern "C"
8491 {
8492 #endif
8493 /* We use char because int might match the return type of a gcc2
8494 builtin and then its argument prototype would still apply. */
8495 char dlopen ();
8496 /* The GNU C library defines this for functions which it implements
8497 to always fail with ENOSYS. Some functions are actually named
8498 something starting with __ and the normal name is an alias. */
8499 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8500 choke me
8501 #else
8502 char (*f) () = dlopen;
8503 #endif
8504 #ifdef __cplusplus
8505 }
8506 #endif
8507
8508 int
8509 main ()
8510 {
8511 return f != dlopen;
8512 ;
8513 return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_func_dlopen=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543 ac_cv_func_dlopen=no
8544 fi
8545 rm -f conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 fi
8548 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8549 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8550 if test $ac_cv_func_dlopen = yes; then
8551 lt_cv_dlopen="dlopen"
8552 else
8553 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8554 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8555 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 ac_check_lib_save_LIBS=$LIBS
8559 LIBS="-ldl $LIBS"
8560 cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566
8567 /* Override any gcc2 internal prototype to avoid an error. */
8568 #ifdef __cplusplus
8569 extern "C"
8570 #endif
8571 /* We use char because int might match the return type of a gcc2
8572 builtin and then its argument prototype would still apply. */
8573 char dlopen ();
8574 int
8575 main ()
8576 {
8577 dlopen ();
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest.$ac_objext conftest$ac_exeext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584 (eval $ac_link) 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag"
8592 || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest$ac_exeext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_cv_lib_dl_dlopen=yes
8605 else
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8608
8609 ac_cv_lib_dl_dlopen=no
8610 fi
8611 rm -f conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613 LIBS=$ac_check_lib_save_LIBS
8614 fi
8615 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8616 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8617 if test $ac_cv_lib_dl_dlopen = yes; then
8618 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8619 else
8620 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8621 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8622 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625 ac_check_lib_save_LIBS=$LIBS
8626 LIBS="-lsvld $LIBS"
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633
8634 /* Override any gcc2 internal prototype to avoid an error. */
8635 #ifdef __cplusplus
8636 extern "C"
8637 #endif
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8640 char dlopen ();
8641 int
8642 main ()
8643 {
8644 dlopen ();
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_lib_svld_dlopen=yes
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 ac_cv_lib_svld_dlopen=no
8677 fi
8678 rm -f conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8680 LIBS=$ac_check_lib_save_LIBS
8681 fi
8682 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8683 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8684 if test $ac_cv_lib_svld_dlopen = yes; then
8685 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8686 else
8687 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8688 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8689 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 ac_check_lib_save_LIBS=$LIBS
8693 LIBS="-ldld $LIBS"
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 #ifdef __cplusplus
8703 extern "C"
8704 #endif
8705 /* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8707 char dld_link ();
8708 int
8709 main ()
8710 {
8711 dld_link ();
8712 ;
8713 return 0;
8714 }
8715 _ACEOF
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718 (eval $ac_link) 2>conftest.er1
8719 ac_status=$?
8720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_c_werror_flag"
8726 || test ! -s conftest.err'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest$ac_exeext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 (eval $ac_try) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 ac_cv_lib_dld_dld_link=yes
8739 else
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743 ac_cv_lib_dld_dld_link=no
8744 fi
8745 rm -f conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8747 LIBS=$ac_check_lib_save_LIBS
8748 fi
8749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8750 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8751 if test $ac_cv_lib_dld_dld_link = yes; then
8752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8753 fi
8754
8755
8756 fi
8757
8758
8759 fi
8760
8761
8762 fi
8763
8764
8765 fi
8766
8767
8768 fi
8769
8770 ;;
8771 esac
8772
8773 if test "x$lt_cv_dlopen" != xno; then
8774 enable_dlopen=yes
8775 else
8776 enable_dlopen=no
8777 fi
8778
8779 case $lt_cv_dlopen in
8780 dlopen)
8781 save_CPPFLAGS="$CPPFLAGS"
8782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8783
8784 save_LDFLAGS="$LDFLAGS"
8785 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8786
8787 save_LIBS="$LIBS"
8788 LIBS="$lt_cv_dlopen_libs $LIBS"
8789
8790 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8791 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8792 if test "${lt_cv_dlopen_self+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795 if test "$cross_compiling" = yes; then :
8796 lt_cv_dlopen_self=cross
8797 else
8798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8799 lt_status=$lt_dlunknown
8800 cat > conftest.$ac_ext <<EOF
8801 #line 8801 "configure"
8802 #include "confdefs.h"
8803
8804 #if HAVE_DLFCN_H
8805 #include <dlfcn.h>
8806 #endif
8807
8808 #include <stdio.h>
8809
8810 #ifdef RTLD_GLOBAL
8811 # define LT_DLGLOBAL RTLD_GLOBAL
8812 #else
8813 # ifdef DL_GLOBAL
8814 # define LT_DLGLOBAL DL_GLOBAL
8815 # else
8816 # define LT_DLGLOBAL 0
8817 # endif
8818 #endif
8819
8820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8821 find out it does not work in some platform. */
8822 #ifndef LT_DLLAZY_OR_NOW
8823 # ifdef RTLD_LAZY
8824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8825 # else
8826 # ifdef DL_LAZY
8827 # define LT_DLLAZY_OR_NOW DL_LAZY
8828 # else
8829 # ifdef RTLD_NOW
8830 # define LT_DLLAZY_OR_NOW RTLD_NOW
8831 # else
8832 # ifdef DL_NOW
8833 # define LT_DLLAZY_OR_NOW DL_NOW
8834 # else
8835 # define LT_DLLAZY_OR_NOW 0
8836 # endif
8837 # endif
8838 # endif
8839 # endif
8840 #endif
8841
8842 #ifdef __cplusplus
8843 extern "C" void exit (int);
8844 #endif
8845
8846 void fnord() { int i=42;}
8847 int main ()
8848 {
8849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8850 int status = $lt_dlunknown;
8851
8852 if (self)
8853 {
8854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8856 /* dlclose (self); */
8857 }
8858
8859 exit (status);
8860 }
8861 EOF
8862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8867 (./conftest; exit; ) 2>/dev/null
8868 lt_status=$?
8869 case x$lt_status in
8870 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8871 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8872 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8873 esac
8874 else :
8875 # compilation failed
8876 lt_cv_dlopen_self=no
8877 fi
8878 fi
8879 rm -fr conftest*
8880
8881
8882 fi
8883 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8884 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8885
8886 if test "x$lt_cv_dlopen_self" = xyes; then
8887 LDFLAGS="$LDFLAGS $link_static_flag"
8888 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8889 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8890 if test "${lt_cv_dlopen_self_static+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 if test "$cross_compiling" = yes; then :
8894 lt_cv_dlopen_self_static=cross
8895 else
8896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8897 lt_status=$lt_dlunknown
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8899 "configure"
8900 #include "confdefs.h"
8901
8902 #if HAVE_DLFCN_H
8903 #include <dlfcn.h>
8904 #endif
8905
8906 #include <stdio.h>
8907
8908 #ifdef RTLD_GLOBAL
8909 # define LT_DLGLOBAL RTLD_GLOBAL
8910 #else
8911 # ifdef DL_GLOBAL
8912 # define LT_DLGLOBAL DL_GLOBAL
8913 # else
8914 # define LT_DLGLOBAL 0
8915 # endif
8916 #endif
8917
8918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8919 find out it does not work in some platform. */
8920 #ifndef LT_DLLAZY_OR_NOW
8921 # ifdef RTLD_LAZY
8922 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8923 # else
8924 # ifdef DL_LAZY
8925 # define LT_DLLAZY_OR_NOW DL_LAZY
8926 # else
8927 # ifdef RTLD_NOW
8928 # define LT_DLLAZY_OR_NOW RTLD_NOW
8929 # else
8930 # ifdef DL_NOW
8931 # define LT_DLLAZY_OR_NOW DL_NOW
8932 # else
8933 # define LT_DLLAZY_OR_NOW 0
8934 # endif
8935 # endif
8936 # endif
8937 # endif
8938 #endif
8939
8940 #ifdef __cplusplus
8941 extern "C" void exit (int);
8942 #endif
8943
8944 void fnord() { int i=42;}
8945 int main ()
8946 {
8947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8948 int status = $lt_dlunknown;
8949
8950 if (self)
8951 {
8952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8954 /* dlclose (self); */
8955 }
8956
8957 exit (status);
8958 }
8959 EOF
8960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8961 (eval $ac_link) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8965 (./conftest; exit; ) 2>/dev/null
8966 lt_status=$?
8967 case x$lt_status in
8968 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8969 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8970 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8971 esac
8972 else :
8973 # compilation failed
8974 lt_cv_dlopen_self_static=no
8975 fi
8976 fi
8977 rm -fr conftest*
8978
8979
8980 fi
8981 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8982 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8983 fi
8984
8985 CPPFLAGS="$save_CPPFLAGS"
8986 LDFLAGS="$save_LDFLAGS"
8987 LIBS="$save_LIBS"
8988 ;;
8989 esac
8990
8991 case $lt_cv_dlopen_self in
8992 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8993 *) enable_dlopen_self=unknown ;;
8994 esac
8995
8996 case $lt_cv_dlopen_self_static in
8997 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8998 *) enable_dlopen_self_static=unknown ;;
8999 esac
9000 fi
9001
9002
9003 # Report which librarie types wil actually be built
9004 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9005 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9006 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9007 echo "${ECHO_T}$can_build_shared" >&6
9008
9009 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9010 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9011 test "$can_build_shared" = "no" && enable_shared=no
9012
9013 # On AIX, shared libraries and static libraries use the same namespace, and
9014 # are all built from PIC.
9015 case "$host_os" in
9016 aix3*)
9017 test "$enable_shared" = yes && enable_static=no
9018 if test -n "$RANLIB"; then
9019 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9020 postinstall_cmds='$RANLIB $lib'
9021 fi
9022 ;;
9023
9024 aix4*)
9025 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9026 test "$enable_shared" = yes && enable_static=no
9027 fi
9028 ;;
9029 darwin* | rhapsody*)
9030 if test "$GCC" = yes; then
9031 archive_cmds_need_lc=no
9032 case "$host_os" in
9033 rhapsody* | darwin1.[012])
9034 allow_undefined_flag='-undefined suppress'
9035 ;;
9036 *) # Darwin 1.3 on
9037 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9038 allow_undefined_flag='-flat_namespace -undefined suppress'
9039 else
9040 case ${MACOSX_DEPLOYMENT_TARGET} in
9041 10.[012])
9042 allow_undefined_flag='-flat_namespace -undefined suppress'
9043 ;;
9044 10.*)
9045 allow_undefined_flag='-undefined dynamic_lookup'
9046 ;;
9047 esac
9048 fi
9049 ;;
9050 esac
9051 output_verbose_link_cmd='echo'
9052 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9053 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9054 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9055 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9056 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9057 hardcode_direct=no
9058 hardcode_automatic=yes
9059 hardcode_shlibpath_var=unsupported
9060 whole_archive_flag_spec='-all_load $convenience'
9061 link_all_deplibs=yes
9062 else
9063 ld_shlibs=no
9064 fi
9065 ;;
9066 esac
9067 echo "$as_me:$LINENO: result: $enable_shared" >&5
9068 echo "${ECHO_T}$enable_shared" >&6
9069
9070 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9071 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9072 # Make sure either enable_shared or enable_static is yes.
9073 test "$enable_shared" = yes || enable_static=yes
9074 echo "$as_me:$LINENO: result: $enable_static" >&5
9075 echo "${ECHO_T}$enable_static" >&6
9076
9077 # The else clause should only fire when bootstrapping the
9078 # libtool distribution, otherwise you forgot to ship ltmain.sh
9079 # with your package, and you will get complaints that there are
9080 # no rules to generate ltmain.sh.
9081 if test -f "$ltmain"; then
9082 # See if we are running on zsh, and set the options which allow our commands through
9083 # without removal of \ escapes.
9084 if test -n "${ZSH_VERSION+set}" ; then
9085 setopt NO_GLOB_SUBST
9086 fi
9087 # Now quote all the things that may contain metacharacters while being
9088 # careful not to overquote the AC_SUBSTed values. We take copies of the
9089 # variables and quote the copies for generation of the libtool script.
9090 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9091 SED SHELL STRIP \
9092 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9093 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9094 deplibs_check_method reload_flag reload_cmds need_locks \
9095 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9096 lt_cv_sys_global_symbol_to_c_name_address \
9097 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9098 old_postinstall_cmds old_postuninstall_cmds \
9099 compiler \
9100 CC \
9101 LD \
9102 lt_prog_compiler_wl \
9103 lt_prog_compiler_pic \
9104 lt_prog_compiler_static \
9105 lt_prog_compiler_no_builtin_flag \
9106 export_dynamic_flag_spec \
9107 thread_safe_flag_spec \
9108 whole_archive_flag_spec \
9109 enable_shared_with_static_runtimes \
9110 old_archive_cmds \
9111 old_archive_from_new_cmds \
9112 predep_objects \
9113 postdep_objects \
9114 predeps \
9115 postdeps \
9116 compiler_lib_search_path \
9117 archive_cmds \
9118 archive_expsym_cmds \
9119 postinstall_cmds \
9120 postuninstall_cmds \
9121 old_archive_from_expsyms_cmds \
9122 allow_undefined_flag \
9123 no_undefined_flag \
9124 export_symbols_cmds \
9125 hardcode_libdir_flag_spec \
9126 hardcode_libdir_flag_spec_ld \
9127 hardcode_libdir_separator \
9128 hardcode_automatic \
9129 module_cmds \
9130 module_expsym_cmds \
9131 lt_cv_prog_compiler_c_o \
9132 exclude_expsyms \
9133 include_expsyms; do
9134
9135 case $var in
9136 old_archive_cmds | \
9137 old_archive_from_new_cmds | \
9138 archive_cmds | \
9139 archive_expsym_cmds | \
9140 module_cmds | \
9141 module_expsym_cmds | \
9142 old_archive_from_expsyms_cmds | \
9143 export_symbols_cmds | \
9144 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9145 postinstall_cmds | postuninstall_cmds | \
9146 old_postinstall_cmds | old_postuninstall_cmds | \
9147 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9148 # Double-quote double-evaled strings.
9149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9150 ;;
9151 *)
9152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9153 ;;
9154 esac
9155 done
9156
9157 case $lt_echo in
9158 *'\$0 --fallback-echo"')
9159 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9160 ;;
9161 esac
9162
9163 cfgfile="${ofile}T"
9164 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9165 $rm -f "$cfgfile"
9166 { echo "$as_me:$LINENO: creating $ofile" >&5
9167 echo "$as_me: creating $ofile" >&6;}
9168
9169 cat <<__EOF__ >> "$cfgfile"
9170 #! $SHELL
9171
9172 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9173 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9174 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9175 #
9176 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9177 # Free Software Foundation, Inc.
9178 #
9179 # This file is part of GNU Libtool:
9180 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9181 #
9182 # This program is free software; you can redistribute it and/or modify
9183 # it under the terms of the GNU General Public License as published by
9184 # the Free Software Foundation; either version 2 of the License, or
9185 # (at your option) any later version.
9186 #
9187 # This program is distributed in the hope that it will be useful, but
9188 # WITHOUT ANY WARRANTY; without even the implied warranty of
9189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9190 # General Public License for more details.
9191 #
9192 # You should have received a copy of the GNU General Public License
9193 # along with this program; if not, write to the Free Software
9194 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9195 #
9196 # As a special exception to the GNU General Public License, if you
9197 # distribute this file as part of a program that contains a
9198 # configuration script generated by Autoconf, you may include it under
9199 # the same distribution terms that you use for the rest of that program.
9200
9201 # A sed program that does not truncate output.
9202 SED=$lt_SED
9203
9204 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9205 Xsed="$SED -e s/^X//"
9206
9207 # The HP-UX ksh and POSIX shell print the target directory to stdout
9208 # if CDPATH is set.
9209 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9210
9211 # The names of the tagged configurations supported by this script.
9212 available_tags=
9213
9214 # ### BEGIN LIBTOOL CONFIG
9215
9216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9217
9218 # Shell to use when invoking shell scripts.
9219 SHELL=$lt_SHELL
9220
9221 # Whether or not to build shared libraries.
9222 build_libtool_libs=$enable_shared
9223
9224 # Whether or not to build static libraries.
9225 build_old_libs=$enable_static
9226
9227 # Whether or not to add -lc for building shared libraries.
9228 build_libtool_need_lc=$archive_cmds_need_lc
9229
9230 # Whether or not to disallow shared libs when runtime libs are static
9231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9232
9233 # Whether or not to optimize for fast installation.
9234 fast_install=$enable_fast_install
9235
9236 # The host system.
9237 host_alias=$host_alias
9238 host=$host
9239
9240 # An echo program that does not interpret backslashes.
9241 echo=$lt_echo
9242
9243 # The archiver.
9244 AR=$lt_AR
9245 AR_FLAGS=$lt_AR_FLAGS
9246
9247 # A C compiler.
9248 LTCC=$lt_LTCC
9249
9250 # A language-specific compiler.
9251 CC=$lt_compiler
9252
9253 # Is the compiler the GNU C compiler?
9254 with_gcc=$GCC
9255
9256 # An ERE matcher.
9257 EGREP=$lt_EGREP
9258
9259 # The linker used to build libraries.
9260 LD=$lt_LD
9261
9262 # Whether we need hard or soft links.
9263 LN_S=$lt_LN_S
9264
9265 # A BSD-compatible nm program.
9266 NM=$lt_NM
9267
9268 # A symbol stripping program
9269 STRIP=$lt_STRIP
9270
9271 # Used to examine libraries when file_magic_cmd begins "file"
9272 MAGIC_CMD=$MAGIC_CMD
9273
9274 # Used on cygwin: DLL creation program.
9275 DLLTOOL="$DLLTOOL"
9276
9277 # Used on cygwin: object dumper.
9278 OBJDUMP="$OBJDUMP"
9279
9280 # Used on cygwin: assembler.
9281 AS="$AS"
9282
9283 # The name of the directory that contains temporary libtool files.
9284 objdir=$objdir
9285
9286 # How to create reloadable object files.
9287 reload_flag=$lt_reload_flag
9288 reload_cmds=$lt_reload_cmds
9289
9290 # How to pass a linker flag through the compiler.
9291 wl=$lt_lt_prog_compiler_wl
9292
9293 # Object file suffix (normally "o").
9294 objext="$ac_objext"
9295
9296 # Old archive suffix (normally "a").
9297 libext="$libext"
9298
9299 # Shared library suffix (normally ".so").
9300 shrext='$shrext'
9301
9302 # Executable file suffix (normally "").
9303 exeext="$exeext"
9304
9305 # Additional compiler flags for building library objects.
9306 pic_flag=$lt_lt_prog_compiler_pic
9307 pic_mode=$pic_mode
9308
9309 # What is the maximum length of a command?
9310 max_cmd_len=$lt_cv_sys_max_cmd_len
9311
9312 # Does compiler simultaneously support -c and -o options?
9313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9314
9315 # Must we lock files when doing compilation ?
9316 need_locks=$lt_need_locks
9317
9318 # Do we need the lib prefix for modules?
9319 need_lib_prefix=$need_lib_prefix
9320
9321 # Do we need a version for libraries?
9322 need_version=$need_version
9323
9324 # Whether dlopen is supported.
9325 dlopen_support=$enable_dlopen
9326
9327 # Whether dlopen of programs is supported.
9328 dlopen_self=$enable_dlopen_self
9329
9330 # Whether dlopen of statically linked programs is supported.
9331 dlopen_self_static=$enable_dlopen_self_static
9332
9333 # Compiler flag to prevent dynamic linking.
9334 link_static_flag=$lt_lt_prog_compiler_static
9335
9336 # Compiler flag to turn off builtin functions.
9337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9338
9339 # Compiler flag to allow reflexive dlopens.
9340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9341
9342 # Compiler flag to generate shared objects directly from archives.
9343 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9344
9345 # Compiler flag to generate thread-safe objects.
9346 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9347
9348 # Library versioning type.
9349 version_type=$version_type
9350
9351 # Format of library name prefix.
9352 libname_spec=$lt_libname_spec
9353
9354 # List of archive names. First name is the real one, the rest are links.
9355 # The last name is the one that the linker finds with -lNAME.
9356 library_names_spec=$lt_library_names_spec
9357
9358 # The coded name of the library, if different from the real name.
9359 soname_spec=$lt_soname_spec
9360
9361 # Commands used to build and install an old-style archive.
9362 RANLIB=$lt_RANLIB
9363 old_archive_cmds=$lt_old_archive_cmds
9364 old_postinstall_cmds=$lt_old_postinstall_cmds
9365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9366
9367 # Create an old-style archive from a shared archive.
9368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9369
9370 # Create a temporary old-style archive to link instead of a shared archive.
9371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9372
9373 # Commands used to build and install a shared archive.
9374 archive_cmds=$lt_archive_cmds
9375 archive_expsym_cmds=$lt_archive_expsym_cmds
9376 postinstall_cmds=$lt_postinstall_cmds
9377 postuninstall_cmds=$lt_postuninstall_cmds
9378
9379 # Commands used to build a loadable module (assumed same as above if empty)
9380 module_cmds=$lt_module_cmds
9381 module_expsym_cmds=$lt_module_expsym_cmds
9382
9383 # Commands to strip libraries.
9384 old_striplib=$lt_old_striplib
9385 striplib=$lt_striplib
9386
9387 # Dependencies to place before the objects being linked to create a
9388 # shared library.
9389 predep_objects=$lt_predep_objects
9390
9391 # Dependencies to place after the objects being linked to create a
9392 # shared library.
9393 postdep_objects=$lt_postdep_objects
9394
9395 # Dependencies to place before the objects being linked to create a
9396 # shared library.
9397 predeps=$lt_predeps
9398
9399 # Dependencies to place after the objects being linked to create a
9400 # shared library.
9401 postdeps=$lt_postdeps
9402
9403 # The library search path used internally by the compiler when linking
9404 # a shared library.
9405 compiler_lib_search_path=$lt_compiler_lib_search_path
9406
9407 # Method to check whether dependent libraries are shared objects.
9408 deplibs_check_method=$lt_deplibs_check_method
9409
9410 # Command to use when deplibs_check_method == file_magic.
9411 file_magic_cmd=$lt_file_magic_cmd
9412
9413 # Flag that allows shared libraries with undefined symbols to be built.
9414 allow_undefined_flag=$lt_allow_undefined_flag
9415
9416 # Flag that forces no undefined symbols.
9417 no_undefined_flag=$lt_no_undefined_flag
9418
9419 # Commands used to finish a libtool library installation in a directory.
9420 finish_cmds=$lt_finish_cmds
9421
9422 # Same as above, but a single script fragment to be evaled but not shown.
9423 finish_eval=$lt_finish_eval
9424
9425 # Take the output of nm and produce a listing of raw symbols and C names.
9426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9427
9428 # Transform the output of nm in a proper C declaration
9429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9430
9431 # Transform the output of nm in a C name address pair
9432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9433
9434 # This is the shared library runtime path variable.
9435 runpath_var=$runpath_var
9436
9437 # This is the shared library path variable.
9438 shlibpath_var=$shlibpath_var
9439
9440 # Is shlibpath searched before the hard-coded library search path?
9441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9442
9443 # How to hardcode a shared library path into an executable.
9444 hardcode_action=$hardcode_action
9445
9446 # Whether we should hardcode library paths into libraries.
9447 hardcode_into_libs=$hardcode_into_libs
9448
9449 # Flag to hardcode \$libdir into a binary during linking.
9450 # This must work even if \$libdir does not exist.
9451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9452
9453 # If ld is used when linking, flag to hardcode \$libdir into
9454 # a binary during linking. This must work even if \$libdir does
9455 # not exist.
9456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9457
9458 # Whether we need a single -rpath flag with a separated argument.
9459 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9460
9461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9462 # resulting binary.
9463 hardcode_direct=$hardcode_direct
9464
9465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9466 # resulting binary.
9467 hardcode_minus_L=$hardcode_minus_L
9468
9469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9470 # the resulting binary.
9471 hardcode_shlibpath_var=$hardcode_shlibpath_var
9472
9473 # Set to yes if building a shared library automatically hardcodes DIR into the library
9474 # and all subsequent libraries and executables linked against it.
9475 hardcode_automatic=$hardcode_automatic
9476
9477 # Variables whose values should be saved in libtool wrapper scripts and
9478 # restored at relink time.
9479 variables_saved_for_relink="$variables_saved_for_relink"
9480
9481 # Whether libtool must link a program against all its dependency libraries.
9482 link_all_deplibs=$link_all_deplibs
9483
9484 # Compile-time system search path for libraries
9485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9486
9487 # Run-time system search path for libraries
9488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9489
9490 # Fix the shell variable \$srcfile for the compiler.
9491 fix_srcfile_path="$fix_srcfile_path"
9492
9493 # Set to yes if exported symbols are required.
9494 always_export_symbols=$always_export_symbols
9495
9496 # The commands to list exported symbols.
9497 export_symbols_cmds=$lt_export_symbols_cmds
9498
9499 # The commands to extract the exported symbol list from a shared archive.
9500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9501
9502 # Symbols that should not be listed in the preloaded symbols.
9503 exclude_expsyms=$lt_exclude_expsyms
9504
9505 # Symbols that must always be exported.
9506 include_expsyms=$lt_include_expsyms
9507
9508 # ### END LIBTOOL CONFIG
9509
9510 __EOF__
9511
9512
9513 case $host_os in
9514 aix3*)
9515 cat <<\EOF >> "$cfgfile"
9516
9517 # AIX sometimes has problems with the GCC collect2 program. For some
9518 # reason, if we set the COLLECT_NAMES environment variable, the problems
9519 # vanish in a puff of smoke.
9520 if test "X${COLLECT_NAMES+set}" != Xset; then
9521 COLLECT_NAMES=
9522 export COLLECT_NAMES
9523 fi
9524 EOF
9525 ;;
9526 esac
9527
9528 # We use sed instead of cat because bash on DJGPP gets confused if
9529 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9530 # text mode, it properly converts lines to CR/LF. This bash problem
9531 # is reportedly fixed, but why not run on old versions too?
9532 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9533
9534 mv -f "$cfgfile" "$ofile" || \
9535 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9536 chmod +x "$ofile"
9537
9538 else
9539 # If there is no Makefile yet, we rely on a make rule to execute
9540 # `config.status --recheck' to rerun these tests and create the
9541 # libtool script then.
9542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9543 if test -f "$ltmain_in"; then
9544 test -f Makefile && make "$ltmain"
9545 fi
9546 fi
9547
9548
9549 ac_ext=c
9550 ac_cpp='$CPP $CPPFLAGS'
9551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9554
9555 CC="$lt_save_CC"
9556
9557
9558 # Check whether --with-tags or --without-tags was given.
9559 if test "${with_tags+set}" = set; then
9560 withval="$with_tags"
9561 tagnames="$withval"
9562 fi;
9563
9564 if test -f "$ltmain" && test -n "$tagnames"; then
9565 if test ! -f "${ofile}"; then
9566 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9567 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9568 fi
9569
9570 if test -z "$LTCC"; then
9571 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9572 if test -z "$LTCC"; then
9573 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9574 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9575 else
9576 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9577 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9578 fi
9579 fi
9580
9581 # Extract list of available tagged configurations in $ofile.
9582 # Note that this assumes the entire list is on one line.
9583 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9584
9585 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9586 for tagname in $tagnames; do
9587 IFS="$lt_save_ifs"
9588 # Check whether tagname contains only valid characters
9589 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9590 "") ;;
9591 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9592 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9593 { (exit 1); exit 1; }; }
9594 ;;
9595 esac
9596
9597 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9598 then
9599 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9600 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9601 { (exit 1); exit 1; }; }
9602 fi
9603
9604 # Update the list of available tags.
9605 if test -n "$tagname"; then
9606 echo appending configuration tag \"$tagname\" to $ofile
9607
9608 case $tagname in
9609 CXX)
9610 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9611 ac_ext=cc
9612 ac_cpp='$CXXCPP $CPPFLAGS'
9613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9616
9617
9618
9619
9620 archive_cmds_need_lc_CXX=no
9621 allow_undefined_flag_CXX=
9622 always_export_symbols_CXX=no
9623 archive_expsym_cmds_CXX=
9624 export_dynamic_flag_spec_CXX=
9625 hardcode_direct_CXX=no
9626 hardcode_libdir_flag_spec_CXX=
9627 hardcode_libdir_flag_spec_ld_CXX=
9628 hardcode_libdir_separator_CXX=
9629 hardcode_minus_L_CXX=no
9630 hardcode_automatic_CXX=no
9631 module_cmds_CXX=
9632 module_expsym_cmds_CXX=
9633 link_all_deplibs_CXX=unknown
9634 old_archive_cmds_CXX=$old_archive_cmds
9635 no_undefined_flag_CXX=
9636 whole_archive_flag_spec_CXX=
9637 enable_shared_with_static_runtimes_CXX=no
9638
9639 # Dependencies to place before and after the object being linked:
9640 predep_objects_CXX=
9641 postdep_objects_CXX=
9642 predeps_CXX=
9643 postdeps_CXX=
9644 compiler_lib_search_path_CXX=
9645
9646 # Source file extension for C++ test sources.
9647 ac_ext=cc
9648
9649 # Object file extension for compiled C++ test sources.
9650 objext=o
9651 objext_CXX=$objext
9652
9653 # Code to be used in simple compile tests
9654 lt_simple_compile_test_code="int some_variable = 0;\n"
9655
9656 # Code to be used in simple link tests
9657 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9658
9659 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9660
9661 # If no C compiler was specified, use CC.
9662 LTCC=${LTCC-"$CC"}
9663
9664 # Allow CC to be a program name with arguments.
9665 compiler=$CC
9666
9667
9668 # Allow CC to be a program name with arguments.
9669 lt_save_CC=$CC
9670 lt_save_LD=$LD
9671 lt_save_GCC=$GCC
9672 GCC=$GXX
9673 lt_save_with_gnu_ld=$with_gnu_ld
9674 lt_save_path_LD=$lt_cv_path_LD
9675 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9676 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9677 else
9678 unset lt_cv_prog_gnu_ld
9679 fi
9680 if test -n "${lt_cv_path_LDCXX+set}"; then
9681 lt_cv_path_LD=$lt_cv_path_LDCXX
9682 else
9683 unset lt_cv_path_LD
9684 fi
9685 test -z "${LDCXX+set}" || LD=$LDCXX
9686 CC=${CXX-"c++"}
9687 compiler=$CC
9688 compiler_CXX=$CC
9689 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9690
9691 # We don't want -fno-exception wen compiling C++ code, so set the
9692 # no_builtin_flag separately
9693 if test "$GXX" = yes; then
9694 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9695 else
9696 lt_prog_compiler_no_builtin_flag_CXX=
9697 fi
9698
9699 if test "$GXX" = yes; then
9700 # Set up default GNU C++ configuration
9701
9702
9703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9704 if test "${with_gnu_ld+set}" = set; then
9705 withval="$with_gnu_ld"
9706 test "$withval" = no || with_gnu_ld=yes
9707 else
9708 with_gnu_ld=no
9709 fi;
9710 ac_prog=ld
9711 if test "$GCC" = yes; then
9712 # Check if gcc -print-prog-name=ld gives a path.
9713 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9714 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9715 case $host in
9716 *-*-mingw*)
9717 # gcc leaves a trailing carriage return which upsets mingw
9718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9719 *)
9720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9721 esac
9722 case $ac_prog in
9723 # Accept absolute paths.
9724 [\\/]* | ?:[\\/]*)
9725 re_direlt='/[^/][^/]*/\.\./'
9726 # Canonicalize the pathname of ld
9727 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9728 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9729 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9730 done
9731 test -z "$LD" && LD="$ac_prog"
9732 ;;
9733 "")
9734 # If it fails, then pretend we aren't using GCC.
9735 ac_prog=ld
9736 ;;
9737 *)
9738 # If it is relative, then search for the first ld in PATH.
9739 with_gnu_ld=unknown
9740 ;;
9741 esac
9742 elif test "$with_gnu_ld" = yes; then
9743 echo "$as_me:$LINENO: checking for GNU ld" >&5
9744 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9745 else
9746 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9747 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9748 fi
9749 if test "${lt_cv_path_LD+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 if test -z "$LD"; then
9753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9754 for ac_dir in $PATH; do
9755 IFS="$lt_save_ifs"
9756 test -z "$ac_dir" && ac_dir=.
9757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9758 lt_cv_path_LD="$ac_dir/$ac_prog"
9759 # Check to see if the program is GNU ld. I'd rather use --version,
9760 # but apparently some GNU ld's only accept -v.
9761 # Break only if it was the GNU/non-GNU ld that we prefer.
9762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9763 *GNU* | *'with BFD'*)
9764 test "$with_gnu_ld" != no && break
9765 ;;
9766 *)
9767 test "$with_gnu_ld" != yes && break
9768 ;;
9769 esac
9770 fi
9771 done
9772 IFS="$lt_save_ifs"
9773 else
9774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9775 fi
9776 fi
9777
9778 LD="$lt_cv_path_LD"
9779 if test -n "$LD"; then
9780 echo "$as_me:$LINENO: result: $LD" >&5
9781 echo "${ECHO_T}$LD" >&6
9782 else
9783 echo "$as_me:$LINENO: result: no" >&5
9784 echo "${ECHO_T}no" >&6
9785 fi
9786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9788 { (exit 1); exit 1; }; }
9789 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9791 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9795 case `$LD -v 2>&1 </dev/null` in
9796 *GNU* | *'with BFD'*)
9797 lt_cv_prog_gnu_ld=yes
9798 ;;
9799 *)
9800 lt_cv_prog_gnu_ld=no
9801 ;;
9802 esac
9803 fi
9804 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9805 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9806 with_gnu_ld=$lt_cv_prog_gnu_ld
9807
9808
9809
9810 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9811 # archiving commands below assume that GNU ld is being used.
9812 if test "$with_gnu_ld" = yes; then
9813 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9814 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9815
9816 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9817 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9818
9819 # If archive_cmds runs LD, not CC, wlarc should be empty
9820 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9821 # investigate it a little bit more. (MM)
9822 wlarc='${wl}'
9823
9824 # ancient GNU ld didn't support --whole-archive et. al.
9825 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9826 grep 'no-whole-archive' > /dev/null; then
9827 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9828 else
9829 whole_archive_flag_spec_CXX=
9830 fi
9831 else
9832 with_gnu_ld=no
9833 wlarc=
9834
9835 # A generic and very simple default shared library creation
9836 # command for GNU C++ for the case where it uses the native
9837 # linker, instead of GNU ld. If possible, this setting should
9838 # overridden to take advantage of the native linker features on
9839 # the platform it is being used on.
9840 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9841 fi
9842
9843 # Commands to make compiler produce verbose output that lists
9844 # what "hidden" libraries, object files and flags are used when
9845 # linking a shared library.
9846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9847
9848 else
9849 GXX=no
9850 with_gnu_ld=no
9851 wlarc=
9852 fi
9853
9854 # PORTME: fill in a description of your system's C++ link characteristics
9855 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9856 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9857 ld_shlibs_CXX=yes
9858 case $host_os in
9859 aix3*)
9860 # FIXME: insert proper C++ library support
9861 ld_shlibs_CXX=no
9862 ;;
9863 aix4* | aix5*)
9864 if test "$host_cpu" = ia64; then
9865 # On IA64, the linker does run time linking by default, so we don't
9866 # have to do anything special.
9867 aix_use_runtimelinking=no
9868 exp_sym_flag='-Bexport'
9869 no_entry_flag=""
9870 else
9871 aix_use_runtimelinking=no
9872
9873 # Test if we are trying to use run time linking or normal
9874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9875 # need to do runtime linking.
9876 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9877 for ld_flag in $LDFLAGS; do
9878 case $ld_flag in
9879 *-brtl*)
9880 aix_use_runtimelinking=yes
9881 break
9882 ;;
9883 esac
9884 done
9885 esac
9886
9887 exp_sym_flag='-bexport'
9888 no_entry_flag='-bnoentry'
9889 fi
9890
9891 # When large executables or shared objects are built, AIX ld can
9892 # have problems creating the table of contents. If linking a library
9893 # or program results in "error TOC overflow" add -mminimal-toc to
9894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9896
9897 archive_cmds_CXX=''
9898 hardcode_direct_CXX=yes
9899 hardcode_libdir_separator_CXX=':'
9900 link_all_deplibs_CXX=yes
9901
9902 if test "$GXX" = yes; then
9903 case $host_os in aix4.012|aix4.012.*)
9904 # We only want to do this on AIX 4.2 and lower, the check
9905 # below for broken collect2 doesn't work under 4.3+
9906 collect2name=`${CC} -print-prog-name=collect2`
9907 if test -f "$collect2name" && \
9908 strings "$collect2name" | grep resolve_lib_name >/dev/null
9909 then
9910 # We have reworked collect2
9911 hardcode_direct_CXX=yes
9912 else
9913 # We have old collect2
9914 hardcode_direct_CXX=unsupported
9915 # It fails to find uninstalled libraries when the uninstalled
9916 # path is not listed in the libpath. Setting hardcode_minus_L
9917 # to unsupported forces relinking
9918 hardcode_minus_L_CXX=yes
9919 hardcode_libdir_flag_spec_CXX='-L$libdir'
9920 hardcode_libdir_separator_CXX=
9921 fi
9922 esac
9923 shared_flag='-shared'
9924 else
9925 # not using gcc
9926 if test "$host_cpu" = ia64; then
9927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9928 # chokes on -Wl,-G. The following line is correct:
9929 shared_flag='-G'
9930 else
9931 if test "$aix_use_runtimelinking" = yes; then
9932 shared_flag='${wl}-G'
9933 else
9934 shared_flag='${wl}-bM:SRE'
9935 fi
9936 fi
9937 fi
9938
9939 # It seems that -bexpall does not export symbols beginning with
9940 # underscore (_), so it is better to generate a list of symbols to export.
9941 always_export_symbols_CXX=yes
9942 if test "$aix_use_runtimelinking" = yes; then
9943 # Warning - without using the other runtime loading flags (-brtl),
9944 # -berok will link without error, but may produce a broken library.
9945 allow_undefined_flag_CXX='-berok'
9946 # Determine the default libpath from the value encoded in an empty executable.
9947 cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h. */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9953
9954 int
9955 main ()
9956 {
9957
9958 ;
9959 return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_cxx_werror_flag"
9972 || test ! -s conftest.err'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984
9985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9986 }'`
9987 # Check for a 64-bit object if we didn't find anything.
9988 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9989 }'`; fi
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 fi
9995 rm -f conftest.err conftest.$ac_objext \
9996 conftest$ac_exeext conftest.$ac_ext
9997 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9998
9999 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10000
10001 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10002 else
10003 if test "$host_cpu" = ia64; then
10004 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10005 allow_undefined_flag_CXX="-z nodefs"
10006 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10007 else
10008 # Determine the default libpath from the value encoded in an empty executable.
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015
10016 int
10017 main ()
10018 {
10019
10020 ;
10021 return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_cxx_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046
10047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10048 }'`
10049 # Check for a 64-bit object if we didn't find anything.
10050 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10051 }'`; fi
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056 fi
10057 rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10060
10061 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10062 # Warning - without using the other run time loading flags,
10063 # -berok will link without error, but may produce a broken library.
10064 no_undefined_flag_CXX=' ${wl}-bernotok'
10065 allow_undefined_flag_CXX=' ${wl}-berok'
10066 # -bexpall does not export symbols beginning with underscore (_)
10067 always_export_symbols_CXX=yes
10068 # Exported symbols can be pulled into shared objects from archives
10069 whole_archive_flag_spec_CXX=' '
10070 archive_cmds_need_lc_CXX=yes
10071 # This is similar to how AIX traditionally builds it's shared libraries.
10072 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10073 fi
10074 fi
10075 ;;
10076 chorus*)
10077 case $cc_basename in
10078 *)
10079 # FIXME: insert proper C++ library support
10080 ld_shlibs_CXX=no
10081 ;;
10082 esac
10083 ;;
10084
10085 cygwin* | mingw* | pw32*)
10086 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10087 # as there is no search path for DLLs.
10088 hardcode_libdir_flag_spec_CXX='-L$libdir'
10089 allow_undefined_flag_CXX=unsupported
10090 always_export_symbols_CXX=no
10091 enable_shared_with_static_runtimes_CXX=yes
10092
10093 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10094 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10095 # If the export-symbols file already is a .def file (1st line
10096 # is EXPORTS), use it as is; otherwise, prepend...
10097 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10098 cp $export_symbols $output_objdir/$soname.def;
10099 else
10100 echo EXPORTS > $output_objdir/$soname.def;
10101 cat $export_symbols >> $output_objdir/$soname.def;
10102 fi~
10103 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10104 else
10105 ld_shlibs_CXX=no
10106 fi
10107 ;;
10108
10109 darwin* | rhapsody*)
10110 if test "$GXX" = yes; then
10111 archive_cmds_need_lc_CXX=no
10112 case "$host_os" in
10113 rhapsody* | darwin1.[012])
10114 allow_undefined_flag_CXX='-undefined suppress'
10115 ;;
10116 *) # Darwin 1.3 on
10117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10118 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10119 else
10120 case ${MACOSX_DEPLOYMENT_TARGET} in
10121 10.[012])
10122 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10123 ;;
10124 10.*)
10125 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10126 ;;
10127 esac
10128 fi
10129 ;;
10130 esac
10131 lt_int_apple_cc_single_mod=no
10132 output_verbose_link_cmd='echo'
10133 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10134 lt_int_apple_cc_single_mod=yes
10135 fi
10136 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10137 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10138 else
10139 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10140 fi
10141 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10142
10143 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10144 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10145 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10146 else
10147 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10148 fi
10149 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10150 hardcode_direct_CXX=no
10151 hardcode_automatic_CXX=yes
10152 hardcode_shlibpath_var_CXX=unsupported
10153 whole_archive_flag_spec_CXX='-all_load $convenience'
10154 link_all_deplibs_CXX=yes
10155 else
10156 ld_shlibs_CXX=no
10157 fi
10158 ;;
10159
10160 dgux*)
10161 case $cc_basename in
10162 ec++)
10163 # FIXME: insert proper C++ library support
10164 ld_shlibs_CXX=no
10165 ;;
10166 ghcx)
10167 # Green Hills C++ Compiler
10168 # FIXME: insert proper C++ library support
10169 ld_shlibs_CXX=no
10170 ;;
10171 *)
10172 # FIXME: insert proper C++ library support
10173 ld_shlibs_CXX=no
10174 ;;
10175 esac
10176 ;;
10177 freebsd12*)
10178 # C++ shared libraries reported to be fairly broken before switch to ELF
10179 ld_shlibs_CXX=no
10180 ;;
10181 freebsd-elf*)
10182 archive_cmds_need_lc_CXX=no
10183 ;;
10184 freebsd* | kfreebsd*-gnu)
10185 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10186 # conventions
10187 ld_shlibs_CXX=yes
10188 ;;
10189 gnu*)
10190 ;;
10191 hpux9*)
10192 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10193 hardcode_libdir_separator_CXX=:
10194 export_dynamic_flag_spec_CXX='${wl}-E'
10195 hardcode_direct_CXX=yes
10196 hardcode_minus_L_CXX=yes # Not in the search PATH,
10197 # but as the default
10198 # location of the library.
10199
10200 case $cc_basename in
10201 CC)
10202 # FIXME: insert proper C++ library support
10203 ld_shlibs_CXX=no
10204 ;;
10205 aCC)
10206 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10207 # Commands to make compiler produce verbose output that lists
10208 # what "hidden" libraries, object files and flags are used when
10209 # linking a shared library.
10210 #
10211 # There doesn't appear to be a way to prevent this compiler from
10212 # explicitly linking system object files so we need to strip them
10213 # from the output so that they don't get included in the library
10214 # dependencies.
10215 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10216 ;;
10217 *)
10218 if test "$GXX" = yes; then
10219 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10220 else
10221 # FIXME: insert proper C++ library support
10222 ld_shlibs_CXX=no
10223 fi
10224 ;;
10225 esac
10226 ;;
10227 hpux10*|hpux11*)
10228 if test $with_gnu_ld = no; then
10229 case "$host_cpu" in
10230 hppa*64*)
10231 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10232 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10233 hardcode_libdir_separator_CXX=:
10234 ;;
10235 ia64*)
10236 hardcode_libdir_flag_spec_CXX='-L$libdir'
10237 ;;
10238 *)
10239 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10240 hardcode_libdir_separator_CXX=:
10241 export_dynamic_flag_spec_CXX='${wl}-E'
10242 ;;
10243 esac
10244 fi
10245 case "$host_cpu" in
10246 hppa*64*)
10247 hardcode_direct_CXX=no
10248 hardcode_shlibpath_var_CXX=no
10249 ;;
10250 ia64*)
10251 hardcode_direct_CXX=no
10252 hardcode_shlibpath_var_CXX=no
10253 hardcode_minus_L_CXX=yes # Not in the search PATH,
10254 # but as the default
10255 # location of the library.
10256 ;;
10257 *)
10258 hardcode_direct_CXX=yes
10259 hardcode_minus_L_CXX=yes # Not in the search PATH,
10260 # but as the default
10261 # location of the library.
10262 ;;
10263 esac
10264
10265 case $cc_basename in
10266 CC)
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 ;;
10270 aCC)
10271 case "$host_cpu" in
10272 hppa*64*|ia64*)
10273 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10274 ;;
10275 *)
10276 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10277 ;;
10278 esac
10279 # Commands to make compiler produce verbose output that lists
10280 # what "hidden" libraries, object files and flags are used when
10281 # linking a shared library.
10282 #
10283 # There doesn't appear to be a way to prevent this compiler from
10284 # explicitly linking system object files so we need to strip them
10285 # from the output so that they don't get included in the library
10286 # dependencies.
10287 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10288 ;;
10289 *)
10290 if test "$GXX" = yes; then
10291 if test $with_gnu_ld = no; then
10292 case "$host_cpu" in
10293 ia64*|hppa*64*)
10294 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10295 ;;
10296 *)
10297 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10298 ;;
10299 esac
10300 fi
10301 else
10302 # FIXME: insert proper C++ library support
10303 ld_shlibs_CXX=no
10304 fi
10305 ;;
10306 esac
10307 ;;
10308 irix5* | irix6*)
10309 case $cc_basename in
10310 CC)
10311 # SGI C++
10312 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10313
10314 # Archives containing C++ object files must be created using
10315 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10316 # necessary to make sure instantiated templates are included
10317 # in the archive.
10318 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10319 ;;
10320 *)
10321 if test "$GXX" = yes; then
10322 if test "$with_gnu_ld" = no; then
10323 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10324 else
10325 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10326 fi
10327 fi
10328 link_all_deplibs_CXX=yes
10329 ;;
10330 esac
10331 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10332 hardcode_libdir_separator_CXX=:
10333 ;;
10334 linux*)
10335 case $cc_basename in
10336 KCC)
10337 # Kuck and Associates, Inc. (KAI) C++ Compiler
10338
10339 # KCC will only create a shared library if the output file
10340 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10341 # to its proper name (with version) after linking.
10342 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10343 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10344 # Commands to make compiler produce verbose output that lists
10345 # what "hidden" libraries, object files and flags are used when
10346 # linking a shared library.
10347 #
10348 # There doesn't appear to be a way to prevent this compiler from
10349 # explicitly linking system object files so we need to strip them
10350 # from the output so that they don't get included in the library
10351 # dependencies.
10352 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10353
10354 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10355 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10356
10357 # Archives containing C++ object files must be created using
10358 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10359 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10360 ;;
10361 icpc)
10362 # Intel C++
10363 with_gnu_ld=yes
10364 archive_cmds_need_lc_CXX=no
10365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10366 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10368 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10369 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10370 ;;
10371 cxx)
10372 # Compaq C++
10373 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10374 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10375
10376 runpath_var=LD_RUN_PATH
10377 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10378 hardcode_libdir_separator_CXX=:
10379
10380 # Commands to make compiler produce verbose output that lists
10381 # what "hidden" libraries, object files and flags are used when
10382 # linking a shared library.
10383 #
10384 # There doesn't appear to be a way to prevent this compiler from
10385 # explicitly linking system object files so we need to strip them
10386 # from the output so that they don't get included in the library
10387 # dependencies.
10388 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10389 ;;
10390 esac
10391 ;;
10392 lynxos*)
10393 # FIXME: insert proper C++ library support
10394 ld_shlibs_CXX=no
10395 ;;
10396 m88k*)
10397 # FIXME: insert proper C++ library support
10398 ld_shlibs_CXX=no
10399 ;;
10400 mvs*)
10401 case $cc_basename in
10402 cxx)
10403 # FIXME: insert proper C++ library support
10404 ld_shlibs_CXX=no
10405 ;;
10406 *)
10407 # FIXME: insert proper C++ library support
10408 ld_shlibs_CXX=no
10409 ;;
10410 esac
10411 ;;
10412 netbsd*)
10413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10414 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10415 wlarc=
10416 hardcode_libdir_flag_spec_CXX='-R$libdir'
10417 hardcode_direct_CXX=yes
10418 hardcode_shlibpath_var_CXX=no
10419 fi
10420 # Workaround some broken pre-1.5 toolchains
10421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10422 ;;
10423 osf3*)
10424 case $cc_basename in
10425 KCC)
10426 # Kuck and Associates, Inc. (KAI) C++ Compiler
10427
10428 # KCC will only create a shared library if the output file
10429 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10430 # to its proper name (with version) after linking.
10431 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10432
10433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10434 hardcode_libdir_separator_CXX=:
10435
10436 # Archives containing C++ object files must be created using
10437 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10438 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10439
10440 ;;
10441 RCC)
10442 # Rational C++ 2.4.1
10443 # FIXME: insert proper C++ library support
10444 ld_shlibs_CXX=no
10445 ;;
10446 cxx)
10447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10448 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10449
10450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10451 hardcode_libdir_separator_CXX=:
10452
10453 # Commands to make compiler produce verbose output that lists
10454 # what "hidden" libraries, object files and flags are used when
10455 # linking a shared library.
10456 #
10457 # There doesn't appear to be a way to prevent this compiler from
10458 # explicitly linking system object files so we need to strip them
10459 # from the output so that they don't get included in the library
10460 # dependencies.
10461 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10462 ;;
10463 *)
10464 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10466 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10467
10468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10469 hardcode_libdir_separator_CXX=:
10470
10471 # Commands to make compiler produce verbose output that lists
10472 # what "hidden" libraries, object files and flags are used when
10473 # linking a shared library.
10474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10475
10476 else
10477 # FIXME: insert proper C++ library support
10478 ld_shlibs_CXX=no
10479 fi
10480 ;;
10481 esac
10482 ;;
10483 osf4* | osf5*)
10484 case $cc_basename in
10485 KCC)
10486 # Kuck and Associates, Inc. (KAI) C++ Compiler
10487
10488 # KCC will only create a shared library if the output file
10489 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10490 # to its proper name (with version) after linking.
10491 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10492
10493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10494 hardcode_libdir_separator_CXX=:
10495
10496 # Archives containing C++ object files must be created using
10497 # the KAI C++ compiler.
10498 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10499 ;;
10500 RCC)
10501 # Rational C++ 2.4.1
10502 # FIXME: insert proper C++ library support
10503 ld_shlibs_CXX=no
10504 ;;
10505 cxx)
10506 allow_undefined_flag_CXX=' -expect_unresolved \*'
10507 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10508 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10509 echo "-hidden">> $lib.exp~
10510 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10511 $rm $lib.exp'
10512
10513 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10514 hardcode_libdir_separator_CXX=:
10515
10516 # Commands to make compiler produce verbose output that lists
10517 # what "hidden" libraries, object files and flags are used when
10518 # linking a shared library.
10519 #
10520 # There doesn't appear to be a way to prevent this compiler from
10521 # explicitly linking system object files so we need to strip them
10522 # from the output so that they don't get included in the library
10523 # dependencies.
10524 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10525 ;;
10526 *)
10527 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10528 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10529 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10530
10531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10532 hardcode_libdir_separator_CXX=:
10533
10534 # Commands to make compiler produce verbose output that lists
10535 # what "hidden" libraries, object files and flags are used when
10536 # linking a shared library.
10537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10538
10539 else
10540 # FIXME: insert proper C++ library support
10541 ld_shlibs_CXX=no
10542 fi
10543 ;;
10544 esac
10545 ;;
10546 psos*)
10547 # FIXME: insert proper C++ library support
10548 ld_shlibs_CXX=no
10549 ;;
10550 sco*)
10551 archive_cmds_need_lc_CXX=no
10552 case $cc_basename in
10553 CC)
10554 # FIXME: insert proper C++ library support
10555 ld_shlibs_CXX=no
10556 ;;
10557 *)
10558 # FIXME: insert proper C++ library support
10559 ld_shlibs_CXX=no
10560 ;;
10561 esac
10562 ;;
10563 sunos4*)
10564 case $cc_basename in
10565 CC)
10566 # Sun C++ 4.x
10567 # FIXME: insert proper C++ library support
10568 ld_shlibs_CXX=no
10569 ;;
10570 lcc)
10571 # Lucid
10572 # FIXME: insert proper C++ library support
10573 ld_shlibs_CXX=no
10574 ;;
10575 *)
10576 # FIXME: insert proper C++ library support
10577 ld_shlibs_CXX=no
10578 ;;
10579 esac
10580 ;;
10581 solaris*)
10582 case $cc_basename in
10583 CC)
10584 # Sun C++ 4.2, 5.x and Centerline C++
10585 no_undefined_flag_CXX=' -zdefs'
10586 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10587 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10588 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10589
10590 hardcode_libdir_flag_spec_CXX='-R$libdir'
10591 hardcode_shlibpath_var_CXX=no
10592 case $host_os in
10593 solaris2.0-5 | solaris2.0-5.*) ;;
10594 *)
10595 # The C++ compiler is used as linker so we must use $wl
10596 # flag to pass the commands to the underlying system
10597 # linker.
10598 # Supported since Solaris 2.6 (maybe 2.5.1?)
10599 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10600 ;;
10601 esac
10602 link_all_deplibs_CXX=yes
10603
10604 # Commands to make compiler produce verbose output that lists
10605 # what "hidden" libraries, object files and flags are used when
10606 # linking a shared library.
10607 #
10608 # There doesn't appear to be a way to prevent this compiler from
10609 # explicitly linking system object files so we need to strip them
10610 # from the output so that they don't get included in the library
10611 # dependencies.
10612 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10613
10614 # Archives containing C++ object files must be created using
10615 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10616 # necessary to make sure instantiated templates are included
10617 # in the archive.
10618 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10619 ;;
10620 gcx)
10621 # Green Hills C++ Compiler
10622 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10623
10624 # The C++ compiler must be used to create the archive.
10625 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10626 ;;
10627 *)
10628 # GNU C++ compiler with Solaris linker
10629 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10630 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10631 if $CC --version | grep -v '^2\.7' > /dev/null; then
10632 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10633 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10634 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10635
10636 # Commands to make compiler produce verbose output that lists
10637 # what "hidden" libraries, object files and flags are used when
10638 # linking a shared library.
10639 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10640 else
10641 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10642 # platform.
10643 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10644 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10645 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10646
10647 # Commands to make compiler produce verbose output that lists
10648 # what "hidden" libraries, object files and flags are used when
10649 # linking a shared library.
10650 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10651 fi
10652
10653 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10654 fi
10655 ;;
10656 esac
10657 ;;
10658 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10659 archive_cmds_need_lc_CXX=no
10660 ;;
10661 tandem*)
10662 case $cc_basename in
10663 NCC)
10664 # NonStop-UX NCC 3.20
10665 # FIXME: insert proper C++ library support
10666 ld_shlibs_CXX=no
10667 ;;
10668 *)
10669 # FIXME: insert proper C++ library support
10670 ld_shlibs_CXX=no
10671 ;;
10672 esac
10673 ;;
10674 vxworks*)
10675 # FIXME: insert proper C++ library support
10676 ld_shlibs_CXX=no
10677 ;;
10678 *)
10679 # FIXME: insert proper C++ library support
10680 ld_shlibs_CXX=no
10681 ;;
10682 esac
10683 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10684 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10685 test "$ld_shlibs_CXX" = no && can_build_shared=no
10686
10687 GCC_CXX="$GXX"
10688 LD_CXX="$LD"
10689
10690
10691 cat > conftest.$ac_ext <<EOF
10692 class Foo
10693 {
10694 public:
10695 Foo (void) { a = 0; }
10696 private:
10697 int a;
10698 };
10699 EOF
10700
10701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10702 (eval $ac_compile) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; then
10706 # Parse the compiler output and extract the necessary
10707 # objects, libraries and library flags.
10708
10709 # Sentinel used to keep track of whether or not we are before
10710 # the conftest object file.
10711 pre_test_object_deps_done=no
10712
10713 # The `*' in the case matches for architectures that use `case' in
10714 # $output_verbose_cmd can trigger glob expansion during the loop
10715 # eval without this substitution.
10716 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10717
10718 for p in `eval $output_verbose_link_cmd`; do
10719 case $p in
10720
10721 -L* | -R* | -l*)
10722 # Some compilers place space between "-{L,R}" and the path.
10723 # Remove the space.
10724 if test $p = "-L" \
10725 || test $p = "-R"; then
10726 prev=$p
10727 continue
10728 else
10729 prev=
10730 fi
10731
10732 if test "$pre_test_object_deps_done" = no; then
10733 case $p in
10734 -L* | -R*)
10735 # Internal compiler library paths should come after those
10736 # provided the user. The postdeps already come after the
10737 # user supplied libs so there is no need to process them.
10738 if test -z "$compiler_lib_search_path_CXX"; then
10739 compiler_lib_search_path_CXX="${prev}${p}"
10740 else
10741 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10742 fi
10743 ;;
10744 # The "-l" case would never come before the object being
10745 # linked, so don't bother handling this case.
10746 esac
10747 else
10748 if test -z "$postdeps_CXX"; then
10749 postdeps_CXX="${prev}${p}"
10750 else
10751 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10752 fi
10753 fi
10754 ;;
10755
10756 *.$objext)
10757 # This assumes that the test object file only shows up
10758 # once in the compiler output.
10759 if test "$p" = "conftest.$objext"; then
10760 pre_test_object_deps_done=yes
10761 continue
10762 fi
10763
10764 if test "$pre_test_object_deps_done" = no; then
10765 if test -z "$predep_objects_CXX"; then
10766 predep_objects_CXX="$p"
10767 else
10768 predep_objects_CXX="$predep_objects_CXX $p"
10769 fi
10770 else
10771 if test -z "$postdep_objects_CXX"; then
10772 postdep_objects_CXX="$p"
10773 else
10774 postdep_objects_CXX="$postdep_objects_CXX $p"
10775 fi
10776 fi
10777 ;;
10778
10779 *) ;; # Ignore the rest.
10780
10781 esac
10782 done
10783
10784 # Clean up.
10785 rm -f a.out a.exe
10786 else
10787 echo "libtool.m4: error: problem compiling CXX test program"
10788 fi
10789
10790 $rm -f confest.$objext
10791
10792 case " $postdeps_CXX " in
10793 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10794 esac
10795
10796 lt_prog_compiler_wl_CXX=
10797 lt_prog_compiler_pic_CXX=
10798 lt_prog_compiler_static_CXX=
10799
10800 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10801 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10802
10803 # C++ specific cases for pic, static, wl, etc.
10804 if test "$GXX" = yes; then
10805 lt_prog_compiler_wl_CXX='-Wl,'
10806 lt_prog_compiler_static_CXX='-static'
10807
10808 case $host_os in
10809 aix*)
10810 # All AIX code is PIC.
10811 if test "$host_cpu" = ia64; then
10812 # AIX 5 now supports IA64 processor
10813 lt_prog_compiler_static_CXX='-Bstatic'
10814 fi
10815 ;;
10816 amigaos*)
10817 # FIXME: we need at least 68020 code to build shared libraries, but
10818 # adding the `-m68020' flag to GCC prevents building anything better,
10819 # like `-m68040'.
10820 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10821 ;;
10822 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10823 # PIC is the default for these OSes.
10824 ;;
10825 mingw* | os2* | pw32*)
10826 # This hack is so that the source file can tell whether it is being
10827 # built for inclusion in a dll (and should export symbols for example).
10828 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10829 ;;
10830 darwin* | rhapsody*)
10831 # PIC is the default on this platform
10832 # Common symbols not allowed in MH_DYLIB files
10833 lt_prog_compiler_pic_CXX='-fno-common'
10834 ;;
10835 *djgpp*)
10836 # DJGPP does not support shared libraries at all
10837 lt_prog_compiler_pic_CXX=
10838 ;;
10839 sysv4*MP*)
10840 if test -d /usr/nec; then
10841 lt_prog_compiler_pic_CXX=-Kconform_pic
10842 fi
10843 ;;
10844 hpux*)
10845 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10846 # not for PA HP-UX.
10847 case "$host_cpu" in
10848 hppa*64*|ia64*)
10849 ;;
10850 *)
10851 lt_prog_compiler_pic_CXX='-fPIC'
10852 ;;
10853 esac
10854 ;;
10855 *)
10856 lt_prog_compiler_pic_CXX='-fPIC'
10857 ;;
10858 esac
10859 else
10860 case $host_os in
10861 aix4* | aix5*)
10862 # All AIX code is PIC.
10863 if test "$host_cpu" = ia64; then
10864 # AIX 5 now supports IA64 processor
10865 lt_prog_compiler_static_CXX='-Bstatic'
10866 else
10867 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10868 fi
10869 ;;
10870 chorus*)
10871 case $cc_basename in
10872 cxch68)
10873 # Green Hills C++ Compiler
10874 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10875 ;;
10876 esac
10877 ;;
10878 dgux*)
10879 case $cc_basename in
10880 ec++)
10881 lt_prog_compiler_pic_CXX='-KPIC'
10882 ;;
10883 ghcx)
10884 # Green Hills C++ Compiler
10885 lt_prog_compiler_pic_CXX='-pic'
10886 ;;
10887 *)
10888 ;;
10889 esac
10890 ;;
10891 freebsd* | kfreebsd*-gnu)
10892 # FreeBSD uses GNU C++
10893 ;;
10894 hpux9* | hpux10* | hpux11*)
10895 case $cc_basename in
10896 CC)
10897 lt_prog_compiler_wl_CXX='-Wl,'
10898 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10899 if test "$host_cpu" != ia64; then
10900 lt_prog_compiler_pic_CXX='+Z'
10901 fi
10902 ;;
10903 aCC)
10904 lt_prog_compiler_wl_CXX='-Wl,'
10905 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10906 case "$host_cpu" in
10907 hppa*64*|ia64*)
10908 # +Z the default
10909 ;;
10910 *)
10911 lt_prog_compiler_pic_CXX='+Z'
10912 ;;
10913 esac
10914 ;;
10915 *)
10916 ;;
10917 esac
10918 ;;
10919 irix5* | irix6* | nonstopux*)
10920 case $cc_basename in
10921 CC)
10922 lt_prog_compiler_wl_CXX='-Wl,'
10923 lt_prog_compiler_static_CXX='-non_shared'
10924 # CC pic flag -KPIC is the default.
10925 ;;
10926 *)
10927 ;;
10928 esac
10929 ;;
10930 linux*)
10931 case $cc_basename in
10932 KCC)
10933 # KAI C++ Compiler
10934 lt_prog_compiler_wl_CXX='--backend -Wl,'
10935 lt_prog_compiler_pic_CXX='-fPIC'
10936 ;;
10937 icpc)
10938 # Intel C++
10939 lt_prog_compiler_wl_CXX='-Wl,'
10940 lt_prog_compiler_pic_CXX='-KPIC'
10941 lt_prog_compiler_static_CXX='-static'
10942 ;;
10943 cxx)
10944 # Compaq C++
10945 # Make sure the PIC flag is empty. It appears that all Alpha
10946 # Linux and Compaq Tru64 Unix objects are PIC.
10947 lt_prog_compiler_pic_CXX=
10948 lt_prog_compiler_static_CXX='-non_shared'
10949 ;;
10950 *)
10951 ;;
10952 esac
10953 ;;
10954 lynxos*)
10955 ;;
10956 m88k*)
10957 ;;
10958 mvs*)
10959 case $cc_basename in
10960 cxx)
10961 lt_prog_compiler_pic_CXX='-W c,exportall'
10962 ;;
10963 *)
10964 ;;
10965 esac
10966 ;;
10967 netbsd*)
10968 ;;
10969 osf3* | osf4* | osf5*)
10970 case $cc_basename in
10971 KCC)
10972 lt_prog_compiler_wl_CXX='--backend -Wl,'
10973 ;;
10974 RCC)
10975 # Rational C++ 2.4.1
10976 lt_prog_compiler_pic_CXX='-pic'
10977 ;;
10978 cxx)
10979 # Digital/Compaq C++
10980 lt_prog_compiler_wl_CXX='-Wl,'
10981 # Make sure the PIC flag is empty. It appears that all Alpha
10982 # Linux and Compaq Tru64 Unix objects are PIC.
10983 lt_prog_compiler_pic_CXX=
10984 lt_prog_compiler_static_CXX='-non_shared'
10985 ;;
10986 *)
10987 ;;
10988 esac
10989 ;;
10990 psos*)
10991 ;;
10992 sco*)
10993 case $cc_basename in
10994 CC)
10995 lt_prog_compiler_pic_CXX='-fPIC'
10996 ;;
10997 *)
10998 ;;
10999 esac
11000 ;;
11001 solaris*)
11002 case $cc_basename in
11003 CC)
11004 # Sun C++ 4.2, 5.x and Centerline C++
11005 lt_prog_compiler_pic_CXX='-KPIC'
11006 lt_prog_compiler_static_CXX='-Bstatic'
11007 lt_prog_compiler_wl_CXX='-Qoption ld '
11008 ;;
11009 gcx)
11010 # Green Hills C++ Compiler
11011 lt_prog_compiler_pic_CXX='-PIC'
11012 ;;
11013 *)
11014 ;;
11015 esac
11016 ;;
11017 sunos4*)
11018 case $cc_basename in
11019 CC)
11020 # Sun C++ 4.x
11021 lt_prog_compiler_pic_CXX='-pic'
11022 lt_prog_compiler_static_CXX='-Bstatic'
11023 ;;
11024 lcc)
11025 # Lucid
11026 lt_prog_compiler_pic_CXX='-pic'
11027 ;;
11028 *)
11029 ;;
11030 esac
11031 ;;
11032 tandem*)
11033 case $cc_basename in
11034 NCC)
11035 # NonStop-UX NCC 3.20
11036 lt_prog_compiler_pic_CXX='-KPIC'
11037 ;;
11038 *)
11039 ;;
11040 esac
11041 ;;
11042 unixware*)
11043 ;;
11044 vxworks*)
11045 ;;
11046 *)
11047 lt_prog_compiler_can_build_shared_CXX=no
11048 ;;
11049 esac
11050 fi
11051
11052 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11053 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11054
11055 #
11056 # Check to make sure the PIC flag actually works.
11057 #
11058 if test -n "$lt_prog_compiler_pic_CXX"; then
11059
11060 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11061 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11062 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065 lt_prog_compiler_pic_works_CXX=no
11066 ac_outfile=conftest.$ac_objext
11067 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11068 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11069 # Insert the option either (1) after the last *FLAGS variable, or
11070 # (2) before a word containing "conftest.", or (3) at the end.
11071 # Note that $ac_compile itself does not contain backslashes and begins
11072 # with a dollar sign (not a hyphen), so the echo should work correctly.
11073 # The option is referenced via a variable to avoid confusing sed.
11074 lt_compile=`echo "$ac_compile" | $SED \
11075 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11077 -e 's:$: $lt_compiler_flag:'`
11078 (eval echo "\"\$as_me:11078: $lt_compile\"" >&5)
11079 (eval "$lt_compile" 2>conftest.err)
11080 ac_status=$?
11081 cat conftest.err >&5
11082 echo "$as_me:11082: \$? = $ac_status" >&5
11083 if (exit $ac_status) && test -s "$ac_outfile"; then
11084 # The compiler can only warn and ignore the option if not recognized
11085 # So say no if there are warnings
11086 if test ! -s conftest.err; then
11087 lt_prog_compiler_pic_works_CXX=yes
11088 fi
11089 fi
11090 $rm conftest*
11091
11092 fi
11093 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11094 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11095
11096 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11097 case $lt_prog_compiler_pic_CXX in
11098 "" | " "*) ;;
11099 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11100 esac
11101 else
11102 lt_prog_compiler_pic_CXX=
11103 lt_prog_compiler_can_build_shared_CXX=no
11104 fi
11105
11106 fi
11107 case "$host_os" in
11108 # For platforms which do not support PIC, -DPIC is meaningless:
11109 *djgpp*)
11110 lt_prog_compiler_pic_CXX=
11111 ;;
11112 *)
11113 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11114 ;;
11115 esac
11116
11117 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11118 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11119 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 lt_cv_prog_compiler_c_o_CXX=no
11123 $rm -r conftest 2>/dev/null
11124 mkdir conftest
11125 cd conftest
11126 mkdir out
11127 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11128
11129 lt_compiler_flag="-o out/conftest2.$ac_objext"
11130 # Insert the option either (1) after the last *FLAGS variable, or
11131 # (2) before a word containing "conftest.", or (3) at the end.
11132 # Note that $ac_compile itself does not contain backslashes and begins
11133 # with a dollar sign (not a hyphen), so the echo should work correctly.
11134 lt_compile=`echo "$ac_compile" | $SED \
11135 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11137 -e 's:$: $lt_compiler_flag:'`
11138 (eval echo "\"\$as_me:11138: $lt_compile\"" >&5)
11139 (eval "$lt_compile" 2>out/conftest.err)
11140 ac_status=$?
11141 cat out/conftest.err >&5
11142 echo "$as_me:11142: \$? = $ac_status" >&5
11143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11144 then
11145 # The compiler can only warn and ignore the option if not recognized
11146 # So say no if there are warnings
11147 if test ! -s out/conftest.err; then
11148 lt_cv_prog_compiler_c_o_CXX=yes
11149 fi
11150 fi
11151 chmod u+w .
11152 $rm conftest*
11153 # SGI C++ compiler will create directory out/ii_files/ for
11154 # template instantiation
11155 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11156 $rm out/* && rmdir out
11157 cd ..
11158 rmdir conftest
11159 $rm conftest*
11160
11161 fi
11162 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11163 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11164
11165
11166 hard_links="nottested"
11167 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11168 # do not overwrite the value of need_locks provided by the user
11169 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11170 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11171 hard_links=yes
11172 $rm conftest*
11173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11174 touch conftest.a
11175 ln conftest.a conftest.b 2>&5 || hard_links=no
11176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11177 echo "$as_me:$LINENO: result: $hard_links" >&5
11178 echo "${ECHO_T}$hard_links" >&6
11179 if test "$hard_links" = no; then
11180 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11181 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11182 need_locks=warn
11183 fi
11184 else
11185 need_locks=no
11186 fi
11187
11188 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11189 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11190
11191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11192 case $host_os in
11193 aix4* | aix5*)
11194 # If we're using GNU nm, then we don't want the "-C" option.
11195 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11196 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11197 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11198 else
11199 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11200 fi
11201 ;;
11202 pw32*)
11203 export_symbols_cmds_CXX="$ltdll_cmds"
11204 ;;
11205 cygwin* | mingw*)
11206 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11207 ;;
11208 *)
11209 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11210 ;;
11211 esac
11212
11213 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11214 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11215 test "$ld_shlibs_CXX" = no && can_build_shared=no
11216
11217 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11218 if test "$GCC" = yes; then
11219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11220 fi
11221
11222 #
11223 # Do we need to explicitly link libc?
11224 #
11225 case "x$archive_cmds_need_lc_CXX" in
11226 x|xyes)
11227 # Assume -lc should be added
11228 archive_cmds_need_lc_CXX=yes
11229
11230 if test "$enable_shared" = yes && test "$GCC" = yes; then
11231 case $archive_cmds_CXX in
11232 *'~'*)
11233 # FIXME: we may have to deal with multi-command sequences.
11234 ;;
11235 '$CC '*)
11236 # Test whether the compiler implicitly links with -lc since on some
11237 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11238 # to ld, don't add -lc before -lgcc.
11239 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11240 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11241 $rm conftest*
11242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11243
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } 2>conftest.err; then
11249 soname=conftest
11250 lib=conftest
11251 libobjs=conftest.$ac_objext
11252 deplibs=
11253 wl=$lt_prog_compiler_wl_CXX
11254 compiler_flags=-v
11255 linker_flags=-v
11256 verstring=
11257 output_objdir=.
11258 libname=conftest
11259 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11260 allow_undefined_flag_CXX=
11261 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11262 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }
11266 then
11267 archive_cmds_need_lc_CXX=no
11268 else
11269 archive_cmds_need_lc_CXX=yes
11270 fi
11271 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11272 else
11273 cat conftest.err 1>&5
11274 fi
11275 $rm conftest*
11276 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11277 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11278 ;;
11279 esac
11280 fi
11281 ;;
11282 esac
11283
11284 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11285 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11286 library_names_spec=
11287 libname_spec='lib$name'
11288 soname_spec=
11289 shrext=".so"
11290 postinstall_cmds=
11291 postuninstall_cmds=
11292 finish_cmds=
11293 finish_eval=
11294 shlibpath_var=
11295 shlibpath_overrides_runpath=unknown
11296 version_type=none
11297 dynamic_linker="$host_os ld.so"
11298 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11299 if test "$GCC" = yes; then
11300 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11301 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11302 # if the path contains ";" then we assume it to be the separator
11303 # otherwise default to the standard path separator (i.e. ":") - it is
11304 # assumed that no part of a normal pathname contains ";" but that should
11305 # okay in the real world where ";" in dirpaths is itself problematic.
11306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11307 else
11308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11309 fi
11310 else
11311 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11312 fi
11313 need_lib_prefix=unknown
11314 hardcode_into_libs=no
11315
11316 # when you set need_version to no, make sure it does not cause -set_version
11317 # flags to be left without arguments
11318 need_version=unknown
11319
11320 case $host_os in
11321 aix3*)
11322 version_type=linux
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11324 shlibpath_var=LIBPATH
11325
11326 # AIX 3 has no versioning support, so we append a major version to the name.
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 ;;
11329
11330 aix4* | aix5*)
11331 version_type=linux
11332 need_lib_prefix=no
11333 need_version=no
11334 hardcode_into_libs=yes
11335 if test "$host_cpu" = ia64; then
11336 # AIX 5 supports IA64
11337 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 else
11340 # With GCC up to 2.95.x, collect2 would create an import file
11341 # for dependence libraries. The import file would start with
11342 # the line `#! .'. This would cause the generated library to
11343 # depend on `.', always an invalid library. This was fixed in
11344 # development snapshots of GCC prior to 3.0.
11345 case $host_os in
11346 aix4 | aix4.[01] | aix4.[01].*)
11347 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11348 echo ' yes '
11349 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11350 :
11351 else
11352 can_build_shared=no
11353 fi
11354 ;;
11355 esac
11356 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11357 # soname into executable. Probably we can add versioning support to
11358 # collect2, so additional links can be useful in future.
11359 if test "$aix_use_runtimelinking" = yes; then
11360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11361 # instead of lib<name>.a to let people know that these are not
11362 # typical AIX shared libraries.
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364 else
11365 # We preserve .a as extension for shared libraries through AIX4.2
11366 # and later when we are not doing run time linking.
11367 library_names_spec='${libname}${release}.a $libname.a'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 fi
11370 shlibpath_var=LIBPATH
11371 fi
11372 ;;
11373
11374 amigaos*)
11375 library_names_spec='$libname.ixlibrary $libname.a'
11376 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11377 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'
11378 ;;
11379
11380 beos*)
11381 library_names_spec='${libname}${shared_ext}'
11382 dynamic_linker="$host_os ld.so"
11383 shlibpath_var=LIBRARY_PATH
11384 ;;
11385
11386 bsdi4*)
11387 version_type=linux
11388 need_version=no
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11395 # the default ld.so.conf also contains /usr/contrib/lib and
11396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11397 # libtool to hard-code these into programs
11398 ;;
11399
11400 cygwin* | mingw* | pw32*)
11401 version_type=windows
11402 shrext=".dll"
11403 need_version=no
11404 need_lib_prefix=no
11405
11406 case $GCC,$host_os in
11407 yes,cygwin* | yes,mingw* | yes,pw32*)
11408 library_names_spec='$libname.dll.a'
11409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410 postinstall_cmds='base_file=`basename \${file}`~
11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11412 dldir=$destdir/`dirname \$dlpath`~
11413 test -d \$dldir || mkdir -p \$dldir~
11414 $install_prog $dir/$dlname \$dldir/$dlname'
11415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11416 dlpath=$dir/\$dldll~
11417 $rm \$dlpath'
11418 shlibpath_overrides_runpath=yes
11419
11420 case $host_os in
11421 cygwin*)
11422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11425 ;;
11426 mingw*)
11427 # MinGW DLLs use traditional 'lib' prefix
11428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11430 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11431 # It is most probably a Windows format PATH printed by
11432 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11433 # path with ; separators, and with drive letters. We can handle the
11434 # drive letters (cygwin fileutils understands them), so leave them,
11435 # especially as we might pass files found there to a mingw objdump,
11436 # which wouldn't understand a cygwinified path. Ahh.
11437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11438 else
11439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11440 fi
11441 ;;
11442 pw32*)
11443 # pw32 DLLs use 'pw' prefix rather than 'lib'
11444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11445 ;;
11446 esac
11447 ;;
11448
11449 *)
11450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11451 ;;
11452 esac
11453 dynamic_linker='Win32 ld.exe'
11454 # FIXME: first we should search . and the directory the executable is in
11455 shlibpath_var=PATH
11456 ;;
11457
11458 darwin* | rhapsody*)
11459 dynamic_linker="$host_os dyld"
11460 version_type=darwin
11461 need_lib_prefix=no
11462 need_version=no
11463 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11464 soname_spec='${libname}${release}${major}$shared_ext'
11465 shlibpath_overrides_runpath=yes
11466 shlibpath_var=DYLD_LIBRARY_PATH
11467 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11468 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11469 if test "$GCC" = yes; then
11470 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11471 else
11472 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11473 fi
11474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11475 ;;
11476
11477 dgux*)
11478 version_type=linux
11479 need_lib_prefix=no
11480 need_version=no
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 ;;
11485
11486 freebsd1*)
11487 dynamic_linker=no
11488 ;;
11489
11490 kfreebsd*-gnu)
11491 version_type=linux
11492 need_lib_prefix=no
11493 need_version=no
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=no
11498 hardcode_into_libs=yes
11499 dynamic_linker='GNU ld.so'
11500 ;;
11501
11502 freebsd*)
11503 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11504 version_type=freebsd-$objformat
11505 case $version_type in
11506 freebsd-elf*)
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11508 need_version=no
11509 need_lib_prefix=no
11510 ;;
11511 freebsd-*)
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11513 need_version=yes
11514 ;;
11515 esac
11516 shlibpath_var=LD_LIBRARY_PATH
11517 case $host_os in
11518 freebsd2*)
11519 shlibpath_overrides_runpath=yes
11520 ;;
11521 freebsd3.01* | freebsdelf3.01*)
11522 shlibpath_overrides_runpath=yes
11523 hardcode_into_libs=yes
11524 ;;
11525 *) # from 3.2 on
11526 shlibpath_overrides_runpath=no
11527 hardcode_into_libs=yes
11528 ;;
11529 esac
11530 ;;
11531
11532 gnu*)
11533 version_type=linux
11534 need_lib_prefix=no
11535 need_version=no
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 hardcode_into_libs=yes
11540 ;;
11541
11542 hpux9* | hpux10* | hpux11*)
11543 # Give a soname corresponding to the major version so that dld.sl refuses to
11544 # link against other versions.
11545 version_type=sunos
11546 need_lib_prefix=no
11547 need_version=no
11548 case "$host_cpu" in
11549 ia64*)
11550 shrext='.so'
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.so"
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 if test "X$HPUX_IA64_MODE" = X32; then
11558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11559 else
11560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11561 fi
11562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11563 ;;
11564 hppa*64*)
11565 shrext='.sl'
11566 hardcode_into_libs=yes
11567 dynamic_linker="$host_os dld.sl"
11568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11574 ;;
11575 *)
11576 shrext='.sl'
11577 dynamic_linker="$host_os dld.sl"
11578 shlibpath_var=SHLIB_PATH
11579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 ;;
11583 esac
11584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11585 postinstall_cmds='chmod 555 $lib'
11586 ;;
11587
11588 irix5* | irix6* | nonstopux*)
11589 case $host_os in
11590 nonstopux*) version_type=nonstopux ;;
11591 *)
11592 if test "$lt_cv_prog_gnu_ld" = yes; then
11593 version_type=linux
11594 else
11595 version_type=irix
11596 fi ;;
11597 esac
11598 need_lib_prefix=no
11599 need_version=no
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11602 case $host_os in
11603 irix5* | nonstopux*)
11604 libsuff= shlibsuff=
11605 ;;
11606 *)
11607 case $LD in # libtool.m4 will add one of these switches to LD
11608 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11609 libsuff= shlibsuff= libmagic=32-bit;;
11610 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11611 libsuff=32 shlibsuff=N32 libmagic=N32;;
11612 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11613 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11614 *) libsuff= shlibsuff= libmagic=never-match;;
11615 esac
11616 ;;
11617 esac
11618 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11619 shlibpath_overrides_runpath=no
11620 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11621 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11622 hardcode_into_libs=yes
11623 ;;
11624
11625 # No shared lib support for Linux oldld, aout, or coff.
11626 linux*oldld* | linux*aout* | linux*coff*)
11627 dynamic_linker=no
11628 ;;
11629
11630 # This must be Linux ELF.
11631 linux*)
11632 version_type=linux
11633 need_lib_prefix=no
11634 need_version=no
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11638 shlibpath_var=LD_LIBRARY_PATH
11639 shlibpath_overrides_runpath=no
11640 # This implies no fast_install, which is unacceptable.
11641 # Some rework will be needed to allow for fast_install
11642 # before this can be enabled.
11643 hardcode_into_libs=yes
11644
11645 # Append ld.so.conf contents to the search path
11646 if test -f /etc/ld.so.conf; then
11647 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11648 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11649 fi
11650
11651 # We used to test for /lib/ld.so.1 and disable shared libraries on
11652 # powerpc, because MkLinux only supported shared libraries with the
11653 # GNU dynamic linker. Since this was broken with cross compilers,
11654 # most powerpc-linux boxes support dynamic linking these days and
11655 # people can always --disable-shared, the test was removed, and we
11656 # assume the GNU/Linux dynamic linker is in use.
11657 dynamic_linker='GNU/Linux ld.so'
11658 ;;
11659
11660 knetbsd*-gnu)
11661 version_type=linux
11662 need_lib_prefix=no
11663 need_version=no
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=no
11668 hardcode_into_libs=yes
11669 dynamic_linker='GNU ld.so'
11670 ;;
11671
11672 netbsd*)
11673 version_type=sunos
11674 need_lib_prefix=no
11675 need_version=no
11676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11679 dynamic_linker='NetBSD (a.out) ld.so'
11680 else
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 dynamic_linker='NetBSD ld.elf_so'
11684 fi
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=yes
11687 hardcode_into_libs=yes
11688 ;;
11689
11690 newsos6)
11691 version_type=linux
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes
11695 ;;
11696
11697 nto-qnx*)
11698 version_type=linux
11699 need_lib_prefix=no
11700 need_version=no
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=yes
11705 ;;
11706
11707 openbsd*)
11708 version_type=sunos
11709 need_lib_prefix=no
11710 need_version=yes
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11715 case $host_os in
11716 openbsd2.[89] | openbsd2.[89].*)
11717 shlibpath_overrides_runpath=no
11718 ;;
11719 *)
11720 shlibpath_overrides_runpath=yes
11721 ;;
11722 esac
11723 else
11724 shlibpath_overrides_runpath=yes
11725 fi
11726 ;;
11727
11728 os2*)
11729 libname_spec='$name'
11730 shrext=".dll"
11731 need_lib_prefix=no
11732 library_names_spec='$libname${shared_ext} $libname.a'
11733 dynamic_linker='OS/2 ld.exe'
11734 shlibpath_var=LIBPATH
11735 ;;
11736
11737 osf3* | osf4* | osf5*)
11738 version_type=osf
11739 need_lib_prefix=no
11740 need_version=no
11741 soname_spec='${libname}${release}${shared_ext}$major'
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11745 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11746 ;;
11747
11748 sco3.2v5*)
11749 version_type=osf
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 ;;
11754
11755 solaris*)
11756 version_type=linux
11757 need_lib_prefix=no
11758 need_version=no
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes
11763 hardcode_into_libs=yes
11764 # ldd complains unless libraries are executable
11765 postinstall_cmds='chmod +x $lib'
11766 ;;
11767
11768 sunos4*)
11769 version_type=sunos
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=yes
11774 if test "$with_gnu_ld" = yes; then
11775 need_lib_prefix=no
11776 fi
11777 need_version=yes
11778 ;;
11779
11780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11781 version_type=linux
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783 soname_spec='${libname}${release}${shared_ext}$major'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 case $host_vendor in
11786 sni)
11787 shlibpath_overrides_runpath=no
11788 need_lib_prefix=no
11789 export_dynamic_flag_spec='${wl}-Blargedynsym'
11790 runpath_var=LD_RUN_PATH
11791 ;;
11792 siemens)
11793 need_lib_prefix=no
11794 ;;
11795 motorola)
11796 need_lib_prefix=no
11797 need_version=no
11798 shlibpath_overrides_runpath=no
11799 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11800 ;;
11801 esac
11802 ;;
11803
11804 sysv4*MP*)
11805 if test -d /usr/nec ;then
11806 version_type=linux
11807 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11808 soname_spec='$libname${shared_ext}.$major'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 fi
11811 ;;
11812
11813 uts4*)
11814 version_type=linux
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 ;;
11819
11820 *)
11821 dynamic_linker=no
11822 ;;
11823 esac
11824 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11825 echo "${ECHO_T}$dynamic_linker" >&6
11826 test "$dynamic_linker" = no && can_build_shared=no
11827
11828 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11829 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11830 hardcode_action_CXX=
11831 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11832 test -n "$runpath_var CXX" || \
11833 test "X$hardcode_automatic_CXX"="Xyes" ; then
11834
11835 # We can hardcode non-existant directories.
11836 if test "$hardcode_direct_CXX" != no &&
11837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11838 # have to relink, otherwise we might link with an installed library
11839 # when we should be linking with a yet-to-be-installed one
11840 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11841 test "$hardcode_minus_L_CXX" != no; then
11842 # Linking always hardcodes the temporary library directory.
11843 hardcode_action_CXX=relink
11844 else
11845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11846 hardcode_action_CXX=immediate
11847 fi
11848 else
11849 # We cannot hardcode anything, or else we can only hardcode existing
11850 # directories.
11851 hardcode_action_CXX=unsupported
11852 fi
11853 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11854 echo "${ECHO_T}$hardcode_action_CXX" >&6
11855
11856 if test "$hardcode_action_CXX" = relink; then
11857 # Fast installation is not supported
11858 enable_fast_install=no
11859 elif test "$shlibpath_overrides_runpath" = yes ||
11860 test "$enable_shared" = no; then
11861 # Fast installation is not necessary
11862 enable_fast_install=needless
11863 fi
11864
11865 striplib=
11866 old_striplib=
11867 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11868 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11869 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11870 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11871 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11872 echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6
11874 else
11875 # FIXME - insert some real tests, host_os isn't really good enough
11876 case $host_os in
11877 darwin*)
11878 if test -n "$STRIP" ; then
11879 striplib="$STRIP -x"
11880 echo "$as_me:$LINENO: result: yes" >&5
11881 echo "${ECHO_T}yes" >&6
11882 else
11883 echo "$as_me:$LINENO: result: no" >&5
11884 echo "${ECHO_T}no" >&6
11885 fi
11886 ;;
11887 *)
11888 echo "$as_me:$LINENO: result: no" >&5
11889 echo "${ECHO_T}no" >&6
11890 ;;
11891 esac
11892 fi
11893
11894 if test "x$enable_dlopen" != xyes; then
11895 enable_dlopen=unknown
11896 enable_dlopen_self=unknown
11897 enable_dlopen_self_static=unknown
11898 else
11899 lt_cv_dlopen=no
11900 lt_cv_dlopen_libs=
11901
11902 case $host_os in
11903 beos*)
11904 lt_cv_dlopen="load_add_on"
11905 lt_cv_dlopen_libs=
11906 lt_cv_dlopen_self=yes
11907 ;;
11908
11909 mingw* | pw32*)
11910 lt_cv_dlopen="LoadLibrary"
11911 lt_cv_dlopen_libs=
11912 ;;
11913
11914 cygwin*)
11915 lt_cv_dlopen="dlopen"
11916 lt_cv_dlopen_libs=
11917 ;;
11918
11919 darwin*)
11920 # if libdl is installed we need to link against it
11921 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11922 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11923 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-ldl $LIBS"
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h. */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934
11935 /* Override any gcc2 internal prototype to avoid an error. */
11936 #ifdef __cplusplus
11937 extern "C"
11938 #endif
11939 /* We use char because int might match the return type of a gcc2
11940 builtin and then its argument prototype would still apply. */
11941 char dlopen ();
11942 int
11943 main ()
11944 {
11945 dlopen ();
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11952 (eval $ac_link) 2>conftest.er1
11953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -z "$ac_cxx_werror_flag"
11960 || test ! -s conftest.err'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_cv_lib_dl_dlopen=yes
11973 else
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 ac_cv_lib_dl_dlopen=no
11978 fi
11979 rm -f conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11982 fi
11983 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11984 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11985 if test $ac_cv_lib_dl_dlopen = yes; then
11986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11987 else
11988
11989 lt_cv_dlopen="dyld"
11990 lt_cv_dlopen_libs=
11991 lt_cv_dlopen_self=yes
11992
11993 fi
11994
11995 ;;
11996
11997 *)
11998 echo "$as_me:$LINENO: checking for shl_load" >&5
11999 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12000 if test "${ac_cv_func_shl_load+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12011 #define shl_load innocuous_shl_load
12012
12013 /* System header to define __stub macros and hopefully few prototypes,
12014 which can conflict with char shl_load (); below.
12015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12016 <limits.h> exists even on freestanding compilers. */
12017
12018 #ifdef __STDC__
12019 # include <limits.h>
12020 #else
12021 # include <assert.h>
12022 #endif
12023
12024 #undef shl_load
12025
12026 /* Override any gcc2 internal prototype to avoid an error. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 {
12030 #endif
12031 /* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12033 char shl_load ();
12034 /* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
12037 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12038 choke me
12039 #else
12040 char (*f) () = shl_load;
12041 #endif
12042 #ifdef __cplusplus
12043 }
12044 #endif
12045
12046 int
12047 main ()
12048 {
12049 return f != shl_load;
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_cxx_werror_flag"
12064 || test ! -s conftest.err'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try='test -s conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_func_shl_load=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_cv_func_shl_load=no
12082 fi
12083 rm -f conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 fi
12086 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12087 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12088 if test $ac_cv_func_shl_load = yes; then
12089 lt_cv_dlopen="shl_load"
12090 else
12091 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12092 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12093 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-ldld $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104
12105 /* Override any gcc2 internal prototype to avoid an error. */
12106 #ifdef __cplusplus
12107 extern "C"
12108 #endif
12109 /* We use char because int might match the return type of a gcc2
12110 builtin and then its argument prototype would still apply. */
12111 char shl_load ();
12112 int
12113 main ()
12114 {
12115 shl_load ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try='test -z "$ac_cxx_werror_flag"
12130 || test ! -s conftest.err'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest$ac_exeext'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 ac_cv_lib_dld_shl_load=yes
12143 else
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12146
12147 ac_cv_lib_dld_shl_load=no
12148 fi
12149 rm -f conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12152 fi
12153 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12154 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12155 if test $ac_cv_lib_dld_shl_load = yes; then
12156 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12157 else
12158 echo "$as_me:$LINENO: checking for dlopen" >&5
12159 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12160 if test "${ac_cv_func_dlopen+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12171 #define dlopen innocuous_dlopen
12172
12173 /* System header to define __stub macros and hopefully few prototypes,
12174 which can conflict with char dlopen (); below.
12175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12176 <limits.h> exists even on freestanding compilers. */
12177
12178 #ifdef __STDC__
12179 # include <limits.h>
12180 #else
12181 # include <assert.h>
12182 #endif
12183
12184 #undef dlopen
12185
12186 /* Override any gcc2 internal prototype to avoid an error. */
12187 #ifdef __cplusplus
12188 extern "C"
12189 {
12190 #endif
12191 /* We use char because int might match the return type of a gcc2
12192 builtin and then its argument prototype would still apply. */
12193 char dlopen ();
12194 /* The GNU C library defines this for functions which it implements
12195 to always fail with ENOSYS. Some functions are actually named
12196 something starting with __ and the normal name is an alias. */
12197 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12198 choke me
12199 #else
12200 char (*f) () = dlopen;
12201 #endif
12202 #ifdef __cplusplus
12203 }
12204 #endif
12205
12206 int
12207 main ()
12208 {
12209 return f != dlopen;
12210 ;
12211 return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216 (eval $ac_link) 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_cxx_werror_flag"
12224 || test ! -s conftest.err'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest$ac_exeext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 ac_cv_func_dlopen=yes
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 ac_cv_func_dlopen=no
12242 fi
12243 rm -f conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245 fi
12246 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12247 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12248 if test $ac_cv_func_dlopen = yes; then
12249 lt_cv_dlopen="dlopen"
12250 else
12251 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12252 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12253 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256 ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-ldl $LIBS"
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264
12265 /* Override any gcc2 internal prototype to avoid an error. */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 /* We use char because int might match the return type of a gcc2
12270 builtin and then its argument prototype would still apply. */
12271 char dlopen ();
12272 int
12273 main ()
12274 {
12275 dlopen ();
12276 ;
12277 return 0;
12278 }
12279 _ACEOF
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_cxx_werror_flag"
12290 || test ! -s conftest.err'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 ac_cv_lib_dl_dlopen=yes
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12306
12307 ac_cv_lib_dl_dlopen=no
12308 fi
12309 rm -f conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12312 fi
12313 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12314 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12315 if test $ac_cv_lib_dl_dlopen = yes; then
12316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12317 else
12318 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12319 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12320 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-lsvld $LIBS"
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331
12332 /* Override any gcc2 internal prototype to avoid an error. */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 /* We use char because int might match the return type of a gcc2
12337 builtin and then its argument prototype would still apply. */
12338 char dlopen ();
12339 int
12340 main ()
12341 {
12342 dlopen ();
12343 ;
12344 return 0;
12345 }
12346 _ACEOF
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12349 (eval $ac_link) 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -z "$ac_cxx_werror_flag"
12357 || test ! -s conftest.err'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest$ac_exeext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 ac_cv_lib_svld_dlopen=yes
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 ac_cv_lib_svld_dlopen=no
12375 fi
12376 rm -f conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12379 fi
12380 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12381 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12382 if test $ac_cv_lib_svld_dlopen = yes; then
12383 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12384 else
12385 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12386 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12387 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390 ac_check_lib_save_LIBS=$LIBS
12391 LIBS="-ldld $LIBS"
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398
12399 /* Override any gcc2 internal prototype to avoid an error. */
12400 #ifdef __cplusplus
12401 extern "C"
12402 #endif
12403 /* We use char because int might match the return type of a gcc2
12404 builtin and then its argument prototype would still apply. */
12405 char dld_link ();
12406 int
12407 main ()
12408 {
12409 dld_link ();
12410 ;
12411 return 0;
12412 }
12413 _ACEOF
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12416 (eval $ac_link) 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_cxx_werror_flag"
12424 || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest$ac_exeext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_cv_lib_dld_dld_link=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ac_cv_lib_dld_dld_link=no
12442 fi
12443 rm -f conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12446 fi
12447 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12448 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12449 if test $ac_cv_lib_dld_dld_link = yes; then
12450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12451 fi
12452
12453
12454 fi
12455
12456
12457 fi
12458
12459
12460 fi
12461
12462
12463 fi
12464
12465
12466 fi
12467
12468 ;;
12469 esac
12470
12471 if test "x$lt_cv_dlopen" != xno; then
12472 enable_dlopen=yes
12473 else
12474 enable_dlopen=no
12475 fi
12476
12477 case $lt_cv_dlopen in
12478 dlopen)
12479 save_CPPFLAGS="$CPPFLAGS"
12480 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12481
12482 save_LDFLAGS="$LDFLAGS"
12483 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12484
12485 save_LIBS="$LIBS"
12486 LIBS="$lt_cv_dlopen_libs $LIBS"
12487
12488 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12489 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12490 if test "${lt_cv_dlopen_self+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493 if test "$cross_compiling" = yes; then :
12494 lt_cv_dlopen_self=cross
12495 else
12496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12497 lt_status=$lt_dlunknown
12498 cat > conftest.$ac_ext <<EOF
12499 #line 12499 "configure"
12500 #include "confdefs.h"
12501
12502 #if HAVE_DLFCN_H
12503 #include <dlfcn.h>
12504 #endif
12505
12506 #include <stdio.h>
12507
12508 #ifdef RTLD_GLOBAL
12509 # define LT_DLGLOBAL RTLD_GLOBAL
12510 #else
12511 # ifdef DL_GLOBAL
12512 # define LT_DLGLOBAL DL_GLOBAL
12513 # else
12514 # define LT_DLGLOBAL 0
12515 # endif
12516 #endif
12517
12518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12519 find out it does not work in some platform. */
12520 #ifndef LT_DLLAZY_OR_NOW
12521 # ifdef RTLD_LAZY
12522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12523 # else
12524 # ifdef DL_LAZY
12525 # define LT_DLLAZY_OR_NOW DL_LAZY
12526 # else
12527 # ifdef RTLD_NOW
12528 # define LT_DLLAZY_OR_NOW RTLD_NOW
12529 # else
12530 # ifdef DL_NOW
12531 # define LT_DLLAZY_OR_NOW DL_NOW
12532 # else
12533 # define LT_DLLAZY_OR_NOW 0
12534 # endif
12535 # endif
12536 # endif
12537 # endif
12538 #endif
12539
12540 #ifdef __cplusplus
12541 extern "C" void exit (int);
12542 #endif
12543
12544 void fnord() { int i=42;}
12545 int main ()
12546 {
12547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12548 int status = $lt_dlunknown;
12549
12550 if (self)
12551 {
12552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12554 /* dlclose (self); */
12555 }
12556
12557 exit (status);
12558 }
12559 EOF
12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12565 (./conftest; exit; ) 2>/dev/null
12566 lt_status=$?
12567 case x$lt_status in
12568 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12569 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12570 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12571 esac
12572 else :
12573 # compilation failed
12574 lt_cv_dlopen_self=no
12575 fi
12576 fi
12577 rm -fr conftest*
12578
12579
12580 fi
12581 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12582 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12583
12584 if test "x$lt_cv_dlopen_self" = xyes; then
12585 LDFLAGS="$LDFLAGS $link_static_flag"
12586 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12587 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12588 if test "${lt_cv_dlopen_self_static+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 if test "$cross_compiling" = yes; then :
12592 lt_cv_dlopen_self_static=cross
12593 else
12594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12595 lt_status=$lt_dlunknown
12596 cat > conftest.$ac_ext <<EOF
12597 #line 12597 "configure"
12598 #include "confdefs.h"
12599
12600 #if HAVE_DLFCN_H
12601 #include <dlfcn.h>
12602 #endif
12603
12604 #include <stdio.h>
12605
12606 #ifdef RTLD_GLOBAL
12607 # define LT_DLGLOBAL RTLD_GLOBAL
12608 #else
12609 # ifdef DL_GLOBAL
12610 # define LT_DLGLOBAL DL_GLOBAL
12611 # else
12612 # define LT_DLGLOBAL 0
12613 # endif
12614 #endif
12615
12616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12617 find out it does not work in some platform. */
12618 #ifndef LT_DLLAZY_OR_NOW
12619 # ifdef RTLD_LAZY
12620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12621 # else
12622 # ifdef DL_LAZY
12623 # define LT_DLLAZY_OR_NOW DL_LAZY
12624 # else
12625 # ifdef RTLD_NOW
12626 # define LT_DLLAZY_OR_NOW RTLD_NOW
12627 # else
12628 # ifdef DL_NOW
12629 # define LT_DLLAZY_OR_NOW DL_NOW
12630 # else
12631 # define LT_DLLAZY_OR_NOW 0
12632 # endif
12633 # endif
12634 # endif
12635 # endif
12636 #endif
12637
12638 #ifdef __cplusplus
12639 extern "C" void exit (int);
12640 #endif
12641
12642 void fnord() { int i=42;}
12643 int main ()
12644 {
12645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12646 int status = $lt_dlunknown;
12647
12648 if (self)
12649 {
12650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12652 /* dlclose (self); */
12653 }
12654
12655 exit (status);
12656 }
12657 EOF
12658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12663 (./conftest; exit; ) 2>/dev/null
12664 lt_status=$?
12665 case x$lt_status in
12666 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12667 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12668 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12669 esac
12670 else :
12671 # compilation failed
12672 lt_cv_dlopen_self_static=no
12673 fi
12674 fi
12675 rm -fr conftest*
12676
12677
12678 fi
12679 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12680 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12681 fi
12682
12683 CPPFLAGS="$save_CPPFLAGS"
12684 LDFLAGS="$save_LDFLAGS"
12685 LIBS="$save_LIBS"
12686 ;;
12687 esac
12688
12689 case $lt_cv_dlopen_self in
12690 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12691 *) enable_dlopen_self=unknown ;;
12692 esac
12693
12694 case $lt_cv_dlopen_self_static in
12695 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12696 *) enable_dlopen_self_static=unknown ;;
12697 esac
12698 fi
12699
12700
12701 # The else clause should only fire when bootstrapping the
12702 # libtool distribution, otherwise you forgot to ship ltmain.sh
12703 # with your package, and you will get complaints that there are
12704 # no rules to generate ltmain.sh.
12705 if test -f "$ltmain"; then
12706 # See if we are running on zsh, and set the options which allow our commands through
12707 # without removal of \ escapes.
12708 if test -n "${ZSH_VERSION+set}" ; then
12709 setopt NO_GLOB_SUBST
12710 fi
12711 # Now quote all the things that may contain metacharacters while being
12712 # careful not to overquote the AC_SUBSTed values. We take copies of the
12713 # variables and quote the copies for generation of the libtool script.
12714 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12715 SED SHELL STRIP \
12716 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12717 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12718 deplibs_check_method reload_flag reload_cmds need_locks \
12719 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12720 lt_cv_sys_global_symbol_to_c_name_address \
12721 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12722 old_postinstall_cmds old_postuninstall_cmds \
12723 compiler_CXX \
12724 CC_CXX \
12725 LD_CXX \
12726 lt_prog_compiler_wl_CXX \
12727 lt_prog_compiler_pic_CXX \
12728 lt_prog_compiler_static_CXX \
12729 lt_prog_compiler_no_builtin_flag_CXX \
12730 export_dynamic_flag_spec_CXX \
12731 thread_safe_flag_spec_CXX \
12732 whole_archive_flag_spec_CXX \
12733 enable_shared_with_static_runtimes_CXX \
12734 old_archive_cmds_CXX \
12735 old_archive_from_new_cmds_CXX \
12736 predep_objects_CXX \
12737 postdep_objects_CXX \
12738 predeps_CXX \
12739 postdeps_CXX \
12740 compiler_lib_search_path_CXX \
12741 archive_cmds_CXX \
12742 archive_expsym_cmds_CXX \
12743 postinstall_cmds_CXX \
12744 postuninstall_cmds_CXX \
12745 old_archive_from_expsyms_cmds_CXX \
12746 allow_undefined_flag_CXX \
12747 no_undefined_flag_CXX \
12748 export_symbols_cmds_CXX \
12749 hardcode_libdir_flag_spec_CXX \
12750 hardcode_libdir_flag_spec_ld_CXX \
12751 hardcode_libdir_separator_CXX \
12752 hardcode_automatic_CXX \
12753 module_cmds_CXX \
12754 module_expsym_cmds_CXX \
12755 lt_cv_prog_compiler_c_o_CXX \
12756 exclude_expsyms_CXX \
12757 include_expsyms_CXX; do
12758
12759 case $var in
12760 old_archive_cmds_CXX | \
12761 old_archive_from_new_cmds_CXX | \
12762 archive_cmds_CXX | \
12763 archive_expsym_cmds_CXX | \
12764 module_cmds_CXX | \
12765 module_expsym_cmds_CXX | \
12766 old_archive_from_expsyms_cmds_CXX | \
12767 export_symbols_cmds_CXX | \
12768 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12769 postinstall_cmds | postuninstall_cmds | \
12770 old_postinstall_cmds | old_postuninstall_cmds | \
12771 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12772 # Double-quote double-evaled strings.
12773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12774 ;;
12775 *)
12776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12777 ;;
12778 esac
12779 done
12780
12781 case $lt_echo in
12782 *'\$0 --fallback-echo"')
12783 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12784 ;;
12785 esac
12786
12787 cfgfile="$ofile"
12788
12789 cat <<__EOF__ >> "$cfgfile"
12790 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12791
12792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12793
12794 # Shell to use when invoking shell scripts.
12795 SHELL=$lt_SHELL
12796
12797 # Whether or not to build shared libraries.
12798 build_libtool_libs=$enable_shared
12799
12800 # Whether or not to build static libraries.
12801 build_old_libs=$enable_static
12802
12803 # Whether or not to add -lc for building shared libraries.
12804 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12805
12806 # Whether or not to disallow shared libs when runtime libs are static
12807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12808
12809 # Whether or not to optimize for fast installation.
12810 fast_install=$enable_fast_install
12811
12812 # The host system.
12813 host_alias=$host_alias
12814 host=$host
12815
12816 # An echo program that does not interpret backslashes.
12817 echo=$lt_echo
12818
12819 # The archiver.
12820 AR=$lt_AR
12821 AR_FLAGS=$lt_AR_FLAGS
12822
12823 # A C compiler.
12824 LTCC=$lt_LTCC
12825
12826 # A language-specific compiler.
12827 CC=$lt_compiler_CXX
12828
12829 # Is the compiler the GNU C compiler?
12830 with_gcc=$GCC_CXX
12831
12832 # An ERE matcher.
12833 EGREP=$lt_EGREP
12834
12835 # The linker used to build libraries.
12836 LD=$lt_LD_CXX
12837
12838 # Whether we need hard or soft links.
12839 LN_S=$lt_LN_S
12840
12841 # A BSD-compatible nm program.
12842 NM=$lt_NM
12843
12844 # A symbol stripping program
12845 STRIP=$lt_STRIP
12846
12847 # Used to examine libraries when file_magic_cmd begins "file"
12848 MAGIC_CMD=$MAGIC_CMD
12849
12850 # Used on cygwin: DLL creation program.
12851 DLLTOOL="$DLLTOOL"
12852
12853 # Used on cygwin: object dumper.
12854 OBJDUMP="$OBJDUMP"
12855
12856 # Used on cygwin: assembler.
12857 AS="$AS"
12858
12859 # The name of the directory that contains temporary libtool files.
12860 objdir=$objdir
12861
12862 # How to create reloadable object files.
12863 reload_flag=$lt_reload_flag
12864 reload_cmds=$lt_reload_cmds
12865
12866 # How to pass a linker flag through the compiler.
12867 wl=$lt_lt_prog_compiler_wl_CXX
12868
12869 # Object file suffix (normally "o").
12870 objext="$ac_objext"
12871
12872 # Old archive suffix (normally "a").
12873 libext="$libext"
12874
12875 # Shared library suffix (normally ".so").
12876 shrext='$shrext'
12877
12878 # Executable file suffix (normally "").
12879 exeext="$exeext"
12880
12881 # Additional compiler flags for building library objects.
12882 pic_flag=$lt_lt_prog_compiler_pic_CXX
12883 pic_mode=$pic_mode
12884
12885 # What is the maximum length of a command?
12886 max_cmd_len=$lt_cv_sys_max_cmd_len
12887
12888 # Does compiler simultaneously support -c and -o options?
12889 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12890
12891 # Must we lock files when doing compilation ?
12892 need_locks=$lt_need_locks
12893
12894 # Do we need the lib prefix for modules?
12895 need_lib_prefix=$need_lib_prefix
12896
12897 # Do we need a version for libraries?
12898 need_version=$need_version
12899
12900 # Whether dlopen is supported.
12901 dlopen_support=$enable_dlopen
12902
12903 # Whether dlopen of programs is supported.
12904 dlopen_self=$enable_dlopen_self
12905
12906 # Whether dlopen of statically linked programs is supported.
12907 dlopen_self_static=$enable_dlopen_self_static
12908
12909 # Compiler flag to prevent dynamic linking.
12910 link_static_flag=$lt_lt_prog_compiler_static_CXX
12911
12912 # Compiler flag to turn off builtin functions.
12913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12914
12915 # Compiler flag to allow reflexive dlopens.
12916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12917
12918 # Compiler flag to generate shared objects directly from archives.
12919 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12920
12921 # Compiler flag to generate thread-safe objects.
12922 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12923
12924 # Library versioning type.
12925 version_type=$version_type
12926
12927 # Format of library name prefix.
12928 libname_spec=$lt_libname_spec
12929
12930 # List of archive names. First name is the real one, the rest are links.
12931 # The last name is the one that the linker finds with -lNAME.
12932 library_names_spec=$lt_library_names_spec
12933
12934 # The coded name of the library, if different from the real name.
12935 soname_spec=$lt_soname_spec
12936
12937 # Commands used to build and install an old-style archive.
12938 RANLIB=$lt_RANLIB
12939 old_archive_cmds=$lt_old_archive_cmds_CXX
12940 old_postinstall_cmds=$lt_old_postinstall_cmds
12941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12942
12943 # Create an old-style archive from a shared archive.
12944 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12945
12946 # Create a temporary old-style archive to link instead of a shared archive.
12947 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12948
12949 # Commands used to build and install a shared archive.
12950 archive_cmds=$lt_archive_cmds_CXX
12951 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12952 postinstall_cmds=$lt_postinstall_cmds
12953 postuninstall_cmds=$lt_postuninstall_cmds
12954
12955 # Commands used to build a loadable module (assumed same as above if empty)
12956 module_cmds=$lt_module_cmds_CXX
12957 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12958
12959 # Commands to strip libraries.
12960 old_striplib=$lt_old_striplib
12961 striplib=$lt_striplib
12962
12963 # Dependencies to place before the objects being linked to create a
12964 # shared library.
12965 predep_objects=$lt_predep_objects_CXX
12966
12967 # Dependencies to place after the objects being linked to create a
12968 # shared library.
12969 postdep_objects=$lt_postdep_objects_CXX
12970
12971 # Dependencies to place before the objects being linked to create a
12972 # shared library.
12973 predeps=$lt_predeps_CXX
12974
12975 # Dependencies to place after the objects being linked to create a
12976 # shared library.
12977 postdeps=$lt_postdeps_CXX
12978
12979 # The library search path used internally by the compiler when linking
12980 # a shared library.
12981 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12982
12983 # Method to check whether dependent libraries are shared objects.
12984 deplibs_check_method=$lt_deplibs_check_method
12985
12986 # Command to use when deplibs_check_method == file_magic.
12987 file_magic_cmd=$lt_file_magic_cmd
12988
12989 # Flag that allows shared libraries with undefined symbols to be built.
12990 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12991
12992 # Flag that forces no undefined symbols.
12993 no_undefined_flag=$lt_no_undefined_flag_CXX
12994
12995 # Commands used to finish a libtool library installation in a directory.
12996 finish_cmds=$lt_finish_cmds
12997
12998 # Same as above, but a single script fragment to be evaled but not shown.
12999 finish_eval=$lt_finish_eval
13000
13001 # Take the output of nm and produce a listing of raw symbols and C names.
13002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13003
13004 # Transform the output of nm in a proper C declaration
13005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13006
13007 # Transform the output of nm in a C name address pair
13008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13009
13010 # This is the shared library runtime path variable.
13011 runpath_var=$runpath_var
13012
13013 # This is the shared library path variable.
13014 shlibpath_var=$shlibpath_var
13015
13016 # Is shlibpath searched before the hard-coded library search path?
13017 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13018
13019 # How to hardcode a shared library path into an executable.
13020 hardcode_action=$hardcode_action_CXX
13021
13022 # Whether we should hardcode library paths into libraries.
13023 hardcode_into_libs=$hardcode_into_libs
13024
13025 # Flag to hardcode \$libdir into a binary during linking.
13026 # This must work even if \$libdir does not exist.
13027 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13028
13029 # If ld is used when linking, flag to hardcode \$libdir into
13030 # a binary during linking. This must work even if \$libdir does
13031 # not exist.
13032 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13033
13034 # Whether we need a single -rpath flag with a separated argument.
13035 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13036
13037 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13038 # resulting binary.
13039 hardcode_direct=$hardcode_direct_CXX
13040
13041 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13042 # resulting binary.
13043 hardcode_minus_L=$hardcode_minus_L_CXX
13044
13045 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13046 # the resulting binary.
13047 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13048
13049 # Set to yes if building a shared library automatically hardcodes DIR into the library
13050 # and all subsequent libraries and executables linked against it.
13051 hardcode_automatic=$hardcode_automatic_CXX
13052
13053 # Variables whose values should be saved in libtool wrapper scripts and
13054 # restored at relink time.
13055 variables_saved_for_relink="$variables_saved_for_relink"
13056
13057 # Whether libtool must link a program against all its dependency libraries.
13058 link_all_deplibs=$link_all_deplibs_CXX
13059
13060 # Compile-time system search path for libraries
13061 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13062
13063 # Run-time system search path for libraries
13064 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13065
13066 # Fix the shell variable \$srcfile for the compiler.
13067 fix_srcfile_path="$fix_srcfile_path_CXX"
13068
13069 # Set to yes if exported symbols are required.
13070 always_export_symbols=$always_export_symbols_CXX
13071
13072 # The commands to list exported symbols.
13073 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13074
13075 # The commands to extract the exported symbol list from a shared archive.
13076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13077
13078 # Symbols that should not be listed in the preloaded symbols.
13079 exclude_expsyms=$lt_exclude_expsyms_CXX
13080
13081 # Symbols that must always be exported.
13082 include_expsyms=$lt_include_expsyms_CXX
13083
13084 # ### END LIBTOOL TAG CONFIG: $tagname
13085
13086 __EOF__
13087
13088
13089 else
13090 # If there is no Makefile yet, we rely on a make rule to execute
13091 # `config.status --recheck' to rerun these tests and create the
13092 # libtool script then.
13093 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13094 if test -f "$ltmain_in"; then
13095 test -f Makefile && make "$ltmain"
13096 fi
13097 fi
13098
13099
13100 ac_ext=c
13101 ac_cpp='$CPP $CPPFLAGS'
13102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13105
13106 CC=$lt_save_CC
13107 LDCXX=$LD
13108 LD=$lt_save_LD
13109 GCC=$lt_save_GCC
13110 with_gnu_ldcxx=$with_gnu_ld
13111 with_gnu_ld=$lt_save_with_gnu_ld
13112 lt_cv_path_LDCXX=$lt_cv_path_LD
13113 lt_cv_path_LD=$lt_save_path_LD
13114 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13115 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13116
13117 else
13118 tagname=""
13119 fi
13120 ;;
13121
13122 F77)
13123 if test -n "$F77" && test "X$F77" != "Xno"; then
13124
13125 ac_ext=f
13126 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13127 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13129
13130
13131 archive_cmds_need_lc_F77=no
13132 allow_undefined_flag_F77=
13133 always_export_symbols_F77=no
13134 archive_expsym_cmds_F77=
13135 export_dynamic_flag_spec_F77=
13136 hardcode_direct_F77=no
13137 hardcode_libdir_flag_spec_F77=
13138 hardcode_libdir_flag_spec_ld_F77=
13139 hardcode_libdir_separator_F77=
13140 hardcode_minus_L_F77=no
13141 hardcode_automatic_F77=no
13142 module_cmds_F77=
13143 module_expsym_cmds_F77=
13144 link_all_deplibs_F77=unknown
13145 old_archive_cmds_F77=$old_archive_cmds
13146 no_undefined_flag_F77=
13147 whole_archive_flag_spec_F77=
13148 enable_shared_with_static_runtimes_F77=no
13149
13150 # Source file extension for f77 test sources.
13151 ac_ext=f
13152
13153 # Object file extension for compiled f77 test sources.
13154 objext=o
13155 objext_F77=$objext
13156
13157 # Code to be used in simple compile tests
13158 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13159
13160 # Code to be used in simple link tests
13161 lt_simple_link_test_code=" program t\n end\n"
13162
13163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13164
13165 # If no C compiler was specified, use CC.
13166 LTCC=${LTCC-"$CC"}
13167
13168 # Allow CC to be a program name with arguments.
13169 compiler=$CC
13170
13171
13172 # Allow CC to be a program name with arguments.
13173 lt_save_CC="$CC"
13174 CC=${F77-"f77"}
13175 compiler=$CC
13176 compiler_F77=$CC
13177 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13178
13179 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13180 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13181 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13182 echo "${ECHO_T}$can_build_shared" >&6
13183
13184 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13185 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13186 test "$can_build_shared" = "no" && enable_shared=no
13187
13188 # On AIX, shared libraries and static libraries use the same namespace, and
13189 # are all built from PIC.
13190 case "$host_os" in
13191 aix3*)
13192 test "$enable_shared" = yes && enable_static=no
13193 if test -n "$RANLIB"; then
13194 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13195 postinstall_cmds='$RANLIB $lib'
13196 fi
13197 ;;
13198 aix4*)
13199 test "$enable_shared" = yes && enable_static=no
13200 ;;
13201 esac
13202 echo "$as_me:$LINENO: result: $enable_shared" >&5
13203 echo "${ECHO_T}$enable_shared" >&6
13204
13205 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13206 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13207 # Make sure either enable_shared or enable_static is yes.
13208 test "$enable_shared" = yes || enable_static=yes
13209 echo "$as_me:$LINENO: result: $enable_static" >&5
13210 echo "${ECHO_T}$enable_static" >&6
13211
13212 test "$ld_shlibs_F77" = no && can_build_shared=no
13213
13214 GCC_F77="$G77"
13215 LD_F77="$LD"
13216
13217 lt_prog_compiler_wl_F77=
13218 lt_prog_compiler_pic_F77=
13219 lt_prog_compiler_static_F77=
13220
13221 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13222 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13223
13224 if test "$GCC" = yes; then
13225 lt_prog_compiler_wl_F77='-Wl,'
13226 lt_prog_compiler_static_F77='-static'
13227
13228 case $host_os in
13229 aix*)
13230 # All AIX code is PIC.
13231 if test "$host_cpu" = ia64; then
13232 # AIX 5 now supports IA64 processor
13233 lt_prog_compiler_static_F77='-Bstatic'
13234 fi
13235 ;;
13236
13237 amigaos*)
13238 # FIXME: we need at least 68020 code to build shared libraries, but
13239 # adding the `-m68020' flag to GCC prevents building anything better,
13240 # like `-m68040'.
13241 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13242 ;;
13243
13244 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13245 # PIC is the default for these OSes.
13246 ;;
13247
13248 mingw* | pw32* | os2*)
13249 # This hack is so that the source file can tell whether it is being
13250 # built for inclusion in a dll (and should export symbols for example).
13251 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13252 ;;
13253
13254 darwin* | rhapsody*)
13255 # PIC is the default on this platform
13256 # Common symbols not allowed in MH_DYLIB files
13257 lt_prog_compiler_pic_F77='-fno-common'
13258 ;;
13259
13260 msdosdjgpp*)
13261 # Just because we use GCC doesn't mean we suddenly get shared libraries
13262 # on systems that don't support them.
13263 lt_prog_compiler_can_build_shared_F77=no
13264 enable_shared=no
13265 ;;
13266
13267 sysv4*MP*)
13268 if test -d /usr/nec; then
13269 lt_prog_compiler_pic_F77=-Kconform_pic
13270 fi
13271 ;;
13272
13273 hpux*)
13274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13275 # not for PA HP-UX.
13276 case "$host_cpu" in
13277 hppa*64*|ia64*)
13278 # +Z the default
13279 ;;
13280 *)
13281 lt_prog_compiler_pic_F77='-fPIC'
13282 ;;
13283 esac
13284 ;;
13285
13286 *)
13287 lt_prog_compiler_pic_F77='-fPIC'
13288 ;;
13289 esac
13290 else
13291 # PORTME Check for flag to pass linker flags through the system compiler.
13292 case $host_os in
13293 aix*)
13294 lt_prog_compiler_wl_F77='-Wl,'
13295 if test "$host_cpu" = ia64; then
13296 # AIX 5 now supports IA64 processor
13297 lt_prog_compiler_static_F77='-Bstatic'
13298 else
13299 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13300 fi
13301 ;;
13302
13303 mingw* | pw32* | os2*)
13304 # This hack is so that the source file can tell whether it is being
13305 # built for inclusion in a dll (and should export symbols for example).
13306 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13307 ;;
13308
13309 hpux9* | hpux10* | hpux11*)
13310 lt_prog_compiler_wl_F77='-Wl,'
13311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13312 # not for PA HP-UX.
13313 case "$host_cpu" in
13314 hppa*64*|ia64*)
13315 # +Z the default
13316 ;;
13317 *)
13318 lt_prog_compiler_pic_F77='+Z'
13319 ;;
13320 esac
13321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13322 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13323 ;;
13324
13325 irix5* | irix6* | nonstopux*)
13326 lt_prog_compiler_wl_F77='-Wl,'
13327 # PIC (with -KPIC) is the default.
13328 lt_prog_compiler_static_F77='-non_shared'
13329 ;;
13330
13331 newsos6)
13332 lt_prog_compiler_pic_F77='-KPIC'
13333 lt_prog_compiler_static_F77='-Bstatic'
13334 ;;
13335
13336 linux*)
13337 case $CC in
13338 icc* | ecc*)
13339 lt_prog_compiler_wl_F77='-Wl,'
13340 lt_prog_compiler_pic_F77='-KPIC'
13341 lt_prog_compiler_static_F77='-static'
13342 ;;
13343 ccc*)
13344 lt_prog_compiler_wl_F77='-Wl,'
13345 # All Alpha code is PIC.
13346 lt_prog_compiler_static_F77='-non_shared'
13347 ;;
13348 esac
13349 ;;
13350
13351 osf3* | osf4* | osf5*)
13352 lt_prog_compiler_wl_F77='-Wl,'
13353 # All OSF/1 code is PIC.
13354 lt_prog_compiler_static_F77='-non_shared'
13355 ;;
13356
13357 sco3.2v5*)
13358 lt_prog_compiler_pic_F77='-Kpic'
13359 lt_prog_compiler_static_F77='-dn'
13360 ;;
13361
13362 solaris*)
13363 lt_prog_compiler_wl_F77='-Wl,'
13364 lt_prog_compiler_pic_F77='-KPIC'
13365 lt_prog_compiler_static_F77='-Bstatic'
13366 ;;
13367
13368 sunos4*)
13369 lt_prog_compiler_wl_F77='-Qoption ld '
13370 lt_prog_compiler_pic_F77='-PIC'
13371 lt_prog_compiler_static_F77='-Bstatic'
13372 ;;
13373
13374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13375 lt_prog_compiler_wl_F77='-Wl,'
13376 lt_prog_compiler_pic_F77='-KPIC'
13377 lt_prog_compiler_static_F77='-Bstatic'
13378 ;;
13379
13380 sysv4*MP*)
13381 if test -d /usr/nec ;then
13382 lt_prog_compiler_pic_F77='-Kconform_pic'
13383 lt_prog_compiler_static_F77='-Bstatic'
13384 fi
13385 ;;
13386
13387 uts4*)
13388 lt_prog_compiler_pic_F77='-pic'
13389 lt_prog_compiler_static_F77='-Bstatic'
13390 ;;
13391
13392 *)
13393 lt_prog_compiler_can_build_shared_F77=no
13394 ;;
13395 esac
13396 fi
13397
13398 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13399 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13400
13401 #
13402 # Check to make sure the PIC flag actually works.
13403 #
13404 if test -n "$lt_prog_compiler_pic_F77"; then
13405
13406 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13408 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411 lt_prog_compiler_pic_works_F77=no
13412 ac_outfile=conftest.$ac_objext
13413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13414 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13415 # Insert the option either (1) after the last *FLAGS variable, or
13416 # (2) before a word containing "conftest.", or (3) at the end.
13417 # Note that $ac_compile itself does not contain backslashes and begins
13418 # with a dollar sign (not a hyphen), so the echo should work correctly.
13419 # The option is referenced via a variable to avoid confusing sed.
13420 lt_compile=`echo "$ac_compile" | $SED \
13421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13423 -e 's:$: $lt_compiler_flag:'`
13424 (eval echo "\"\$as_me:13424: $lt_compile\"" >&5)
13425 (eval "$lt_compile" 2>conftest.err)
13426 ac_status=$?
13427 cat conftest.err >&5
13428 echo "$as_me:13428: \$? = $ac_status" >&5
13429 if (exit $ac_status) && test -s "$ac_outfile"; then
13430 # The compiler can only warn and ignore the option if not recognized
13431 # So say no if there are warnings
13432 if test ! -s conftest.err; then
13433 lt_prog_compiler_pic_works_F77=yes
13434 fi
13435 fi
13436 $rm conftest*
13437
13438 fi
13439 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13440 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13441
13442 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13443 case $lt_prog_compiler_pic_F77 in
13444 "" | " "*) ;;
13445 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13446 esac
13447 else
13448 lt_prog_compiler_pic_F77=
13449 lt_prog_compiler_can_build_shared_F77=no
13450 fi
13451
13452 fi
13453 case "$host_os" in
13454 # For platforms which do not support PIC, -DPIC is meaningless:
13455 *djgpp*)
13456 lt_prog_compiler_pic_F77=
13457 ;;
13458 *)
13459 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13460 ;;
13461 esac
13462
13463 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13465 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468 lt_cv_prog_compiler_c_o_F77=no
13469 $rm -r conftest 2>/dev/null
13470 mkdir conftest
13471 cd conftest
13472 mkdir out
13473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13474
13475 lt_compiler_flag="-o out/conftest2.$ac_objext"
13476 # Insert the option either (1) after the last *FLAGS variable, or
13477 # (2) before a word containing "conftest.", or (3) at the end.
13478 # Note that $ac_compile itself does not contain backslashes and begins
13479 # with a dollar sign (not a hyphen), so the echo should work correctly.
13480 lt_compile=`echo "$ac_compile" | $SED \
13481 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13483 -e 's:$: $lt_compiler_flag:'`
13484 (eval echo "\"\$as_me:13484: $lt_compile\"" >&5)
13485 (eval "$lt_compile" 2>out/conftest.err)
13486 ac_status=$?
13487 cat out/conftest.err >&5
13488 echo "$as_me:13488: \$? = $ac_status" >&5
13489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13490 then
13491 # The compiler can only warn and ignore the option if not recognized
13492 # So say no if there are warnings
13493 if test ! -s out/conftest.err; then
13494 lt_cv_prog_compiler_c_o_F77=yes
13495 fi
13496 fi
13497 chmod u+w .
13498 $rm conftest*
13499 # SGI C++ compiler will create directory out/ii_files/ for
13500 # template instantiation
13501 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13502 $rm out/* && rmdir out
13503 cd ..
13504 rmdir conftest
13505 $rm conftest*
13506
13507 fi
13508 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13509 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13510
13511
13512 hard_links="nottested"
13513 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13514 # do not overwrite the value of need_locks provided by the user
13515 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13516 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13517 hard_links=yes
13518 $rm conftest*
13519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13520 touch conftest.a
13521 ln conftest.a conftest.b 2>&5 || hard_links=no
13522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13523 echo "$as_me:$LINENO: result: $hard_links" >&5
13524 echo "${ECHO_T}$hard_links" >&6
13525 if test "$hard_links" = no; then
13526 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13527 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13528 need_locks=warn
13529 fi
13530 else
13531 need_locks=no
13532 fi
13533
13534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13535 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13536
13537 runpath_var=
13538 allow_undefined_flag_F77=
13539 enable_shared_with_static_runtimes_F77=no
13540 archive_cmds_F77=
13541 archive_expsym_cmds_F77=
13542 old_archive_From_new_cmds_F77=
13543 old_archive_from_expsyms_cmds_F77=
13544 export_dynamic_flag_spec_F77=
13545 whole_archive_flag_spec_F77=
13546 thread_safe_flag_spec_F77=
13547 hardcode_libdir_flag_spec_F77=
13548 hardcode_libdir_flag_spec_ld_F77=
13549 hardcode_libdir_separator_F77=
13550 hardcode_direct_F77=no
13551 hardcode_minus_L_F77=no
13552 hardcode_shlibpath_var_F77=unsupported
13553 link_all_deplibs_F77=unknown
13554 hardcode_automatic_F77=no
13555 module_cmds_F77=
13556 module_expsym_cmds_F77=
13557 always_export_symbols_F77=no
13558 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13559 # include_expsyms should be a list of space-separated symbols to be *always*
13560 # included in the symbol list
13561 include_expsyms_F77=
13562 # exclude_expsyms can be an extended regexp of symbols to exclude
13563 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13564 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13565 # as well as any symbol that contains `d'.
13566 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13567 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13568 # platforms (ab)use it in PIC code, but their linkers get confused if
13569 # the symbol is explicitly referenced. Since portable code cannot
13570 # rely on this symbol name, it's probably fine to never include it in
13571 # preloaded symbol tables.
13572 extract_expsyms_cmds=
13573
13574 case $host_os in
13575 cygwin* | mingw* | pw32*)
13576 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13577 # When not using gcc, we currently assume that we are using
13578 # Microsoft Visual C++.
13579 if test "$GCC" != yes; then
13580 with_gnu_ld=no
13581 fi
13582 ;;
13583 openbsd*)
13584 with_gnu_ld=no
13585 ;;
13586 esac
13587
13588 ld_shlibs_F77=yes
13589 if test "$with_gnu_ld" = yes; then
13590 # If archive_cmds runs LD, not CC, wlarc should be empty
13591 wlarc='${wl}'
13592
13593 # See if GNU ld supports shared libraries.
13594 case $host_os in
13595 aix3* | aix4* | aix5*)
13596 # On AIX/PPC, the GNU linker is very broken
13597 if test "$host_cpu" != ia64; then
13598 ld_shlibs_F77=no
13599 cat <<EOF 1>&2
13600
13601 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13602 *** to be unable to reliably create shared libraries on AIX.
13603 *** Therefore, libtool is disabling shared libraries support. If you
13604 *** really care for shared libraries, you may want to modify your PATH
13605 *** so that a non-GNU linker is found, and then restart.
13606
13607 EOF
13608 fi
13609 ;;
13610
13611 amigaos*)
13612 archive_cmds_F77='$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)'
13613 hardcode_libdir_flag_spec_F77='-L$libdir'
13614 hardcode_minus_L_F77=yes
13615
13616 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13617 # that the semantics of dynamic libraries on AmigaOS, at least up
13618 # to version 4, is to share data among multiple programs linked
13619 # with the same dynamic library. Since this doesn't match the
13620 # behavior of shared libraries on other platforms, we can't use
13621 # them.
13622 ld_shlibs_F77=no
13623 ;;
13624
13625 beos*)
13626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13627 allow_undefined_flag_F77=unsupported
13628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13629 # support --undefined. This deserves some investigation. FIXME
13630 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631 else
13632 ld_shlibs_F77=no
13633 fi
13634 ;;
13635
13636 cygwin* | mingw* | pw32*)
13637 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13638 # as there is no search path for DLLs.
13639 hardcode_libdir_flag_spec_F77='-L$libdir'
13640 allow_undefined_flag_F77=unsupported
13641 always_export_symbols_F77=no
13642 enable_shared_with_static_runtimes_F77=yes
13643 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13644
13645 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13646 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13647 # If the export-symbols file already is a .def file (1st line
13648 # is EXPORTS), use it as is; otherwise, prepend...
13649 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13650 cp $export_symbols $output_objdir/$soname.def;
13651 else
13652 echo EXPORTS > $output_objdir/$soname.def;
13653 cat $export_symbols >> $output_objdir/$soname.def;
13654 fi~
13655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13656 else
13657 ld_shlibs=no
13658 fi
13659 ;;
13660
13661 netbsd*)
13662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13663 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13664 wlarc=
13665 else
13666 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13667 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13668 fi
13669 ;;
13670
13671 solaris* | sysv5*)
13672 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13673 ld_shlibs_F77=no
13674 cat <<EOF 1>&2
13675
13676 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13677 *** create shared libraries on Solaris systems. Therefore, libtool
13678 *** is disabling shared libraries support. We urge you to upgrade GNU
13679 *** binutils to release 2.9.1 or newer. Another option is to modify
13680 *** your PATH or compiler configuration so that the native linker is
13681 *** used, and then restart.
13682
13683 EOF
13684 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13685 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13686 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13687 else
13688 ld_shlibs_F77=no
13689 fi
13690 ;;
13691
13692 sunos4*)
13693 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13694 wlarc=
13695 hardcode_direct_F77=yes
13696 hardcode_shlibpath_var_F77=no
13697 ;;
13698
13699 linux*)
13700 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13701 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13702 archive_cmds_F77="$tmp_archive_cmds"
13703 supports_anon_versioning=no
13704 case `$LD -v 2>/dev/null` in
13705 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13708 *\ 2.11.*) ;; # other 2.11 versions
13709 *) supports_anon_versioning=yes ;;
13710 esac
13711 if test $supports_anon_versioning = yes; then
13712 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13714 $echo "local: *; };" >> $output_objdir/$libname.ver~
13715 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13716 else
13717 archive_expsym_cmds_F77="$tmp_archive_cmds"
13718 fi
13719 else
13720 ld_shlibs_F77=no
13721 fi
13722 ;;
13723
13724 *)
13725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13726 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13727 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13728 else
13729 ld_shlibs_F77=no
13730 fi
13731 ;;
13732 esac
13733
13734 if test "$ld_shlibs_F77" = yes; then
13735 runpath_var=LD_RUN_PATH
13736 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13737 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13738 # ancient GNU ld didn't support --whole-archive et. al.
13739 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13740 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13741 else
13742 whole_archive_flag_spec_F77=
13743 fi
13744 fi
13745 else
13746 # PORTME fill in a description of your system's linker (not GNU ld)
13747 case $host_os in
13748 aix3*)
13749 allow_undefined_flag_F77=unsupported
13750 always_export_symbols_F77=yes
13751 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13752 # Note: this linker hardcodes the directories in LIBPATH if there
13753 # are no directories specified by -L.
13754 hardcode_minus_L_F77=yes
13755 if test "$GCC" = yes && test -z "$link_static_flag"; then
13756 # Neither direct hardcoding nor static linking is supported with a
13757 # broken collect2.
13758 hardcode_direct_F77=unsupported
13759 fi
13760 ;;
13761
13762 aix4* | aix5*)
13763 if test "$host_cpu" = ia64; then
13764 # On IA64, the linker does run time linking by default, so we don't
13765 # have to do anything special.
13766 aix_use_runtimelinking=no
13767 exp_sym_flag='-Bexport'
13768 no_entry_flag=""
13769 else
13770 # If we're using GNU nm, then we don't want the "-C" option.
13771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13773 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13774 else
13775 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13776 fi
13777 aix_use_runtimelinking=no
13778
13779 # Test if we are trying to use run time linking or normal
13780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13781 # need to do runtime linking.
13782 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13783 for ld_flag in $LDFLAGS; do
13784 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13785 aix_use_runtimelinking=yes
13786 break
13787 fi
13788 done
13789 esac
13790
13791 exp_sym_flag='-bexport'
13792 no_entry_flag='-bnoentry'
13793 fi
13794
13795 # When large executables or shared objects are built, AIX ld can
13796 # have problems creating the table of contents. If linking a library
13797 # or program results in "error TOC overflow" add -mminimal-toc to
13798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13800
13801 archive_cmds_F77=''
13802 hardcode_direct_F77=yes
13803 hardcode_libdir_separator_F77=':'
13804 link_all_deplibs_F77=yes
13805
13806 if test "$GCC" = yes; then
13807 case $host_os in aix4.012|aix4.012.*)
13808 # We only want to do this on AIX 4.2 and lower, the check
13809 # below for broken collect2 doesn't work under 4.3+
13810 collect2name=`${CC} -print-prog-name=collect2`
13811 if test -f "$collect2name" && \
13812 strings "$collect2name" | grep resolve_lib_name >/dev/null
13813 then
13814 # We have reworked collect2
13815 hardcode_direct_F77=yes
13816 else
13817 # We have old collect2
13818 hardcode_direct_F77=unsupported
13819 # It fails to find uninstalled libraries when the uninstalled
13820 # path is not listed in the libpath. Setting hardcode_minus_L
13821 # to unsupported forces relinking
13822 hardcode_minus_L_F77=yes
13823 hardcode_libdir_flag_spec_F77='-L$libdir'
13824 hardcode_libdir_separator_F77=
13825 fi
13826 esac
13827 shared_flag='-shared'
13828 else
13829 # not using gcc
13830 if test "$host_cpu" = ia64; then
13831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13832 # chokes on -Wl,-G. The following line is correct:
13833 shared_flag='-G'
13834 else
13835 if test "$aix_use_runtimelinking" = yes; then
13836 shared_flag='${wl}-G'
13837 else
13838 shared_flag='${wl}-bM:SRE'
13839 fi
13840 fi
13841 fi
13842
13843 # It seems that -bexpall does not export symbols beginning with
13844 # underscore (_), so it is better to generate a list of symbols to export.
13845 always_export_symbols_F77=yes
13846 if test "$aix_use_runtimelinking" = yes; then
13847 # Warning - without using the other runtime loading flags (-brtl),
13848 # -berok will link without error, but may produce a broken library.
13849 allow_undefined_flag_F77='-berok'
13850 # Determine the default libpath from the value encoded in an empty executable.
13851 cat >conftest.$ac_ext <<_ACEOF
13852 program main
13853
13854 end
13855 _ACEOF
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13858 (eval $ac_link) 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_f77_werror_flag"
13866 || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest$ac_exeext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878
13879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13880 }'`
13881 # Check for a 64-bit object if we didn't find anything.
13882 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13883 }'`; fi
13884 else
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888 fi
13889 rm -f conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13892
13893 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13894 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13895 else
13896 if test "$host_cpu" = ia64; then
13897 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13898 allow_undefined_flag_F77="-z nodefs"
13899 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13900 else
13901 # Determine the default libpath from the value encoded in an empty executable.
13902 cat >conftest.$ac_ext <<_ACEOF
13903 program main
13904
13905 end
13906 _ACEOF
13907 rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13909 (eval $ac_link) 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_f77_werror_flag"
13917 || test ! -s conftest.err'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest$ac_exeext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929
13930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13931 }'`
13932 # Check for a 64-bit object if we didn't find anything.
13933 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13934 }'`; fi
13935 else
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 fi
13940 rm -f conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13943
13944 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13945 # Warning - without using the other run time loading flags,
13946 # -berok will link without error, but may produce a broken library.
13947 no_undefined_flag_F77=' ${wl}-bernotok'
13948 allow_undefined_flag_F77=' ${wl}-berok'
13949 # -bexpall does not export symbols beginning with underscore (_)
13950 always_export_symbols_F77=yes
13951 # Exported symbols can be pulled into shared objects from archives
13952 whole_archive_flag_spec_F77=' '
13953 archive_cmds_need_lc_F77=yes
13954 # This is similar to how AIX traditionally builds it's shared libraries.
13955 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13956 fi
13957 fi
13958 ;;
13959
13960 amigaos*)
13961 archive_cmds_F77='$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)'
13962 hardcode_libdir_flag_spec_F77='-L$libdir'
13963 hardcode_minus_L_F77=yes
13964 # see comment about different semantics on the GNU ld section
13965 ld_shlibs_F77=no
13966 ;;
13967
13968 bsdi4*)
13969 export_dynamic_flag_spec_F77=-rdynamic
13970 ;;
13971
13972 cygwin* | mingw* | pw32*)
13973 # When not using gcc, we currently assume that we are using
13974 # Microsoft Visual C++.
13975 # hardcode_libdir_flag_spec is actually meaningless, as there is
13976 # no search path for DLLs.
13977 hardcode_libdir_flag_spec_F77=' '
13978 allow_undefined_flag_F77=unsupported
13979 # Tell ltmain to make .lib files, not .a files.
13980 libext=lib
13981 # Tell ltmain to make .dll files, not .so files.
13982 shrext=".dll"
13983 # FIXME: Setting linknames here is a bad hack.
13984 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13985 # The linker will automatically build a .lib file if we build a DLL.
13986 old_archive_From_new_cmds_F77='true'
13987 # FIXME: Should let the user specify the lib program.
13988 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13989 fix_srcfile_path='`cygpath -w "$srcfile"`'
13990 enable_shared_with_static_runtimes_F77=yes
13991 ;;
13992
13993 darwin* | rhapsody*)
13994 if test "$GXX" = yes ; then
13995 archive_cmds_need_lc_F77=no
13996 case "$host_os" in
13997 rhapsody* | darwin1.[012])
13998 allow_undefined_flag_F77='-undefined suppress'
13999 ;;
14000 *) # Darwin 1.3 on
14001 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14002 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14003 else
14004 case ${MACOSX_DEPLOYMENT_TARGET} in
14005 10.[012])
14006 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14007 ;;
14008 10.*)
14009 allow_undefined_flag_F77='-undefined dynamic_lookup'
14010 ;;
14011 esac
14012 fi
14013 ;;
14014 esac
14015 lt_int_apple_cc_single_mod=no
14016 output_verbose_link_cmd='echo'
14017 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14018 lt_int_apple_cc_single_mod=yes
14019 fi
14020 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14021 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14022 else
14023 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14024 fi
14025 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14027 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14028 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14029 else
14030 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14031 fi
14032 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14033 hardcode_direct_F77=no
14034 hardcode_automatic_F77=yes
14035 hardcode_shlibpath_var_F77=unsupported
14036 whole_archive_flag_spec_F77='-all_load $convenience'
14037 link_all_deplibs_F77=yes
14038 else
14039 ld_shlibs_F77=no
14040 fi
14041 ;;
14042
14043 dgux*)
14044 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14045 hardcode_libdir_flag_spec_F77='-L$libdir'
14046 hardcode_shlibpath_var_F77=no
14047 ;;
14048
14049 freebsd1*)
14050 ld_shlibs_F77=no
14051 ;;
14052
14053 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14054 # support. Future versions do this automatically, but an explicit c++rt0.o
14055 # does not break anything, and helps significantly (at the cost of a little
14056 # extra space).
14057 freebsd2.2*)
14058 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14059 hardcode_libdir_flag_spec_F77='-R$libdir'
14060 hardcode_direct_F77=yes
14061 hardcode_shlibpath_var_F77=no
14062 ;;
14063
14064 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14065 freebsd2*)
14066 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14067 hardcode_direct_F77=yes
14068 hardcode_minus_L_F77=yes
14069 hardcode_shlibpath_var_F77=no
14070 ;;
14071
14072 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14073 freebsd* | kfreebsd*-gnu)
14074 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14075 hardcode_libdir_flag_spec_F77='-R$libdir'
14076 hardcode_direct_F77=yes
14077 hardcode_shlibpath_var_F77=no
14078 ;;
14079
14080 hpux9*)
14081 if test "$GCC" = yes; then
14082 archive_cmds_F77='$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'
14083 else
14084 archive_cmds_F77='$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'
14085 fi
14086 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14087 hardcode_libdir_separator_F77=:
14088 hardcode_direct_F77=yes
14089
14090 # hardcode_minus_L: Not really in the search PATH,
14091 # but as the default location of the library.
14092 hardcode_minus_L_F77=yes
14093 export_dynamic_flag_spec_F77='${wl}-E'
14094 ;;
14095
14096 hpux10* | hpux11*)
14097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14098 case "$host_cpu" in
14099 hppa*64*|ia64*)
14100 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14101 ;;
14102 *)
14103 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14104 ;;
14105 esac
14106 else
14107 case "$host_cpu" in
14108 hppa*64*|ia64*)
14109 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14110 ;;
14111 *)
14112 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14113 ;;
14114 esac
14115 fi
14116 if test "$with_gnu_ld" = no; then
14117 case "$host_cpu" in
14118 hppa*64*)
14119 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14120 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14121 hardcode_libdir_separator_F77=:
14122 hardcode_direct_F77=no
14123 hardcode_shlibpath_var_F77=no
14124 ;;
14125 ia64*)
14126 hardcode_libdir_flag_spec_F77='-L$libdir'
14127 hardcode_direct_F77=no
14128 hardcode_shlibpath_var_F77=no
14129
14130 # hardcode_minus_L: Not really in the search PATH,
14131 # but as the default location of the library.
14132 hardcode_minus_L_F77=yes
14133 ;;
14134 *)
14135 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14136 hardcode_libdir_separator_F77=:
14137 hardcode_direct_F77=yes
14138 export_dynamic_flag_spec_F77='${wl}-E'
14139
14140 # hardcode_minus_L: Not really in the search PATH,
14141 # but as the default location of the library.
14142 hardcode_minus_L_F77=yes
14143 ;;
14144 esac
14145 fi
14146 ;;
14147
14148 irix5* | irix6* | nonstopux*)
14149 if test "$GCC" = yes; then
14150 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14151 else
14152 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14153 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14154 fi
14155 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14156 hardcode_libdir_separator_F77=:
14157 link_all_deplibs_F77=yes
14158 ;;
14159
14160 netbsd*)
14161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14162 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14163 else
14164 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14165 fi
14166 hardcode_libdir_flag_spec_F77='-R$libdir'
14167 hardcode_direct_F77=yes
14168 hardcode_shlibpath_var_F77=no
14169 ;;
14170
14171 newsos6)
14172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173 hardcode_direct_F77=yes
14174 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14175 hardcode_libdir_separator_F77=:
14176 hardcode_shlibpath_var_F77=no
14177 ;;
14178
14179 openbsd*)
14180 hardcode_direct_F77=yes
14181 hardcode_shlibpath_var_F77=no
14182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14183 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14184 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14185 export_dynamic_flag_spec_F77='${wl}-E'
14186 else
14187 case $host_os in
14188 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14189 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14190 hardcode_libdir_flag_spec_F77='-R$libdir'
14191 ;;
14192 *)
14193 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14194 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14195 ;;
14196 esac
14197 fi
14198 ;;
14199
14200 os2*)
14201 hardcode_libdir_flag_spec_F77='-L$libdir'
14202 hardcode_minus_L_F77=yes
14203 allow_undefined_flag_F77=unsupported
14204 archive_cmds_F77='$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'
14205 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14206 ;;
14207
14208 osf3*)
14209 if test "$GCC" = yes; then
14210 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14211 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14212 else
14213 allow_undefined_flag_F77=' -expect_unresolved \*'
14214 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14215 fi
14216 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14217 hardcode_libdir_separator_F77=:
14218 ;;
14219
14220 osf4* | osf5*) # as osf3* with the addition of -msym flag
14221 if test "$GCC" = yes; then
14222 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14223 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14224 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14225 else
14226 allow_undefined_flag_F77=' -expect_unresolved \*'
14227 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14228 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14229 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14230
14231 # Both c and cxx compiler support -rpath directly
14232 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14233 fi
14234 hardcode_libdir_separator_F77=:
14235 ;;
14236
14237 sco3.2v5*)
14238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239 hardcode_shlibpath_var_F77=no
14240 export_dynamic_flag_spec_F77='${wl}-Bexport'
14241 runpath_var=LD_RUN_PATH
14242 hardcode_runpath_var=yes
14243 ;;
14244
14245 solaris*)
14246 no_undefined_flag_F77=' -z text'
14247 if test "$GCC" = yes; then
14248 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14249 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14250 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14251 else
14252 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14253 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14254 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14255 fi
14256 hardcode_libdir_flag_spec_F77='-R$libdir'
14257 hardcode_shlibpath_var_F77=no
14258 case $host_os in
14259 solaris2.[0-5] | solaris2.[0-5].*) ;;
14260 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14261 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14262 esac
14263 link_all_deplibs_F77=yes
14264 ;;
14265
14266 sunos4*)
14267 if test "x$host_vendor" = xsequent; then
14268 # Use $CC to link under sequent, because it throws in some extra .o
14269 # files that make .init and .fini sections work.
14270 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14271 else
14272 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14273 fi
14274 hardcode_libdir_flag_spec_F77='-L$libdir'
14275 hardcode_direct_F77=yes
14276 hardcode_minus_L_F77=yes
14277 hardcode_shlibpath_var_F77=no
14278 ;;
14279
14280 sysv4)
14281 case $host_vendor in
14282 sni)
14283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_direct_F77=yes # is this really true???
14285 ;;
14286 siemens)
14287 ## LD is ld it makes a PLAMLIB
14288 ## CC just makes a GrossModule.
14289 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14290 reload_cmds_F77='$CC -r -o $output$reload_objs'
14291 hardcode_direct_F77=no
14292 ;;
14293 motorola)
14294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14296 ;;
14297 esac
14298 runpath_var='LD_RUN_PATH'
14299 hardcode_shlibpath_var_F77=no
14300 ;;
14301
14302 sysv4.3*)
14303 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14304 hardcode_shlibpath_var_F77=no
14305 export_dynamic_flag_spec_F77='-Bexport'
14306 ;;
14307
14308 sysv4*MP*)
14309 if test -d /usr/nec; then
14310 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_shlibpath_var_F77=no
14312 runpath_var=LD_RUN_PATH
14313 hardcode_runpath_var=yes
14314 ld_shlibs_F77=yes
14315 fi
14316 ;;
14317
14318 sysv4.2uw2*)
14319 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14320 hardcode_direct_F77=yes
14321 hardcode_minus_L_F77=no
14322 hardcode_shlibpath_var_F77=no
14323 hardcode_runpath_var=yes
14324 runpath_var=LD_RUN_PATH
14325 ;;
14326
14327 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14328 no_undefined_flag_F77='${wl}-z ${wl}text'
14329 if test "$GCC" = yes; then
14330 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14331 else
14332 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14333 fi
14334 runpath_var='LD_RUN_PATH'
14335 hardcode_shlibpath_var_F77=no
14336 ;;
14337
14338 sysv5*)
14339 no_undefined_flag_F77=' -z text'
14340 # $CC -shared without GNU ld will not create a library from C++
14341 # object files and a static libstdc++, better avoid it by now
14342 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14343 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14344 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14345 hardcode_libdir_flag_spec_F77=
14346 hardcode_shlibpath_var_F77=no
14347 runpath_var='LD_RUN_PATH'
14348 ;;
14349
14350 uts4*)
14351 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14352 hardcode_libdir_flag_spec_F77='-L$libdir'
14353 hardcode_shlibpath_var_F77=no
14354 ;;
14355
14356 *)
14357 ld_shlibs_F77=no
14358 ;;
14359 esac
14360 fi
14361
14362 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14363 echo "${ECHO_T}$ld_shlibs_F77" >&6
14364 test "$ld_shlibs_F77" = no && can_build_shared=no
14365
14366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14367 if test "$GCC" = yes; then
14368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14369 fi
14370
14371 #
14372 # Do we need to explicitly link libc?
14373 #
14374 case "x$archive_cmds_need_lc_F77" in
14375 x|xyes)
14376 # Assume -lc should be added
14377 archive_cmds_need_lc_F77=yes
14378
14379 if test "$enable_shared" = yes && test "$GCC" = yes; then
14380 case $archive_cmds_F77 in
14381 *'~'*)
14382 # FIXME: we may have to deal with multi-command sequences.
14383 ;;
14384 '$CC '*)
14385 # Test whether the compiler implicitly links with -lc since on some
14386 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14387 # to ld, don't add -lc before -lgcc.
14388 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14389 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14390 $rm conftest*
14391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14392
14393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14394 (eval $ac_compile) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } 2>conftest.err; then
14398 soname=conftest
14399 lib=conftest
14400 libobjs=conftest.$ac_objext
14401 deplibs=
14402 wl=$lt_prog_compiler_wl_F77
14403 compiler_flags=-v
14404 linker_flags=-v
14405 verstring=
14406 output_objdir=.
14407 libname=conftest
14408 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14409 allow_undefined_flag_F77=
14410 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14411 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }
14415 then
14416 archive_cmds_need_lc_F77=no
14417 else
14418 archive_cmds_need_lc_F77=yes
14419 fi
14420 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14421 else
14422 cat conftest.err 1>&5
14423 fi
14424 $rm conftest*
14425 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14426 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14427 ;;
14428 esac
14429 fi
14430 ;;
14431 esac
14432
14433 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14434 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14435 library_names_spec=
14436 libname_spec='lib$name'
14437 soname_spec=
14438 shrext=".so"
14439 postinstall_cmds=
14440 postuninstall_cmds=
14441 finish_cmds=
14442 finish_eval=
14443 shlibpath_var=
14444 shlibpath_overrides_runpath=unknown
14445 version_type=none
14446 dynamic_linker="$host_os ld.so"
14447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14448 if test "$GCC" = yes; then
14449 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14450 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14451 # if the path contains ";" then we assume it to be the separator
14452 # otherwise default to the standard path separator (i.e. ":") - it is
14453 # assumed that no part of a normal pathname contains ";" but that should
14454 # okay in the real world where ";" in dirpaths is itself problematic.
14455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14456 else
14457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14458 fi
14459 else
14460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14461 fi
14462 need_lib_prefix=unknown
14463 hardcode_into_libs=no
14464
14465 # when you set need_version to no, make sure it does not cause -set_version
14466 # flags to be left without arguments
14467 need_version=unknown
14468
14469 case $host_os in
14470 aix3*)
14471 version_type=linux
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14473 shlibpath_var=LIBPATH
14474
14475 # AIX 3 has no versioning support, so we append a major version to the name.
14476 soname_spec='${libname}${release}${shared_ext}$major'
14477 ;;
14478
14479 aix4* | aix5*)
14480 version_type=linux
14481 need_lib_prefix=no
14482 need_version=no
14483 hardcode_into_libs=yes
14484 if test "$host_cpu" = ia64; then
14485 # AIX 5 supports IA64
14486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 else
14489 # With GCC up to 2.95.x, collect2 would create an import file
14490 # for dependence libraries. The import file would start with
14491 # the line `#! .'. This would cause the generated library to
14492 # depend on `.', always an invalid library. This was fixed in
14493 # development snapshots of GCC prior to 3.0.
14494 case $host_os in
14495 aix4 | aix4.[01] | aix4.[01].*)
14496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14497 echo ' yes '
14498 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14499 :
14500 else
14501 can_build_shared=no
14502 fi
14503 ;;
14504 esac
14505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14506 # soname into executable. Probably we can add versioning support to
14507 # collect2, so additional links can be useful in future.
14508 if test "$aix_use_runtimelinking" = yes; then
14509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14510 # instead of lib<name>.a to let people know that these are not
14511 # typical AIX shared libraries.
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 else
14514 # We preserve .a as extension for shared libraries through AIX4.2
14515 # and later when we are not doing run time linking.
14516 library_names_spec='${libname}${release}.a $libname.a'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 fi
14519 shlibpath_var=LIBPATH
14520 fi
14521 ;;
14522
14523 amigaos*)
14524 library_names_spec='$libname.ixlibrary $libname.a'
14525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14526 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'
14527 ;;
14528
14529 beos*)
14530 library_names_spec='${libname}${shared_ext}'
14531 dynamic_linker="$host_os ld.so"
14532 shlibpath_var=LIBRARY_PATH
14533 ;;
14534
14535 bsdi4*)
14536 version_type=linux
14537 need_version=no
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14544 # the default ld.so.conf also contains /usr/contrib/lib and
14545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14546 # libtool to hard-code these into programs
14547 ;;
14548
14549 cygwin* | mingw* | pw32*)
14550 version_type=windows
14551 shrext=".dll"
14552 need_version=no
14553 need_lib_prefix=no
14554
14555 case $GCC,$host_os in
14556 yes,cygwin* | yes,mingw* | yes,pw32*)
14557 library_names_spec='$libname.dll.a'
14558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14559 postinstall_cmds='base_file=`basename \${file}`~
14560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14561 dldir=$destdir/`dirname \$dlpath`~
14562 test -d \$dldir || mkdir -p \$dldir~
14563 $install_prog $dir/$dlname \$dldir/$dlname'
14564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14565 dlpath=$dir/\$dldll~
14566 $rm \$dlpath'
14567 shlibpath_overrides_runpath=yes
14568
14569 case $host_os in
14570 cygwin*)
14571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14572 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14574 ;;
14575 mingw*)
14576 # MinGW DLLs use traditional 'lib' prefix
14577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14579 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14580 # It is most probably a Windows format PATH printed by
14581 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14582 # path with ; separators, and with drive letters. We can handle the
14583 # drive letters (cygwin fileutils understands them), so leave them,
14584 # especially as we might pass files found there to a mingw objdump,
14585 # which wouldn't understand a cygwinified path. Ahh.
14586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14587 else
14588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14589 fi
14590 ;;
14591 pw32*)
14592 # pw32 DLLs use 'pw' prefix rather than 'lib'
14593 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14594 ;;
14595 esac
14596 ;;
14597
14598 *)
14599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14600 ;;
14601 esac
14602 dynamic_linker='Win32 ld.exe'
14603 # FIXME: first we should search . and the directory the executable is in
14604 shlibpath_var=PATH
14605 ;;
14606
14607 darwin* | rhapsody*)
14608 dynamic_linker="$host_os dyld"
14609 version_type=darwin
14610 need_lib_prefix=no
14611 need_version=no
14612 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14613 soname_spec='${libname}${release}${major}$shared_ext'
14614 shlibpath_overrides_runpath=yes
14615 shlibpath_var=DYLD_LIBRARY_PATH
14616 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14617 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14618 if test "$GCC" = yes; then
14619 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14620 else
14621 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14622 fi
14623 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14624 ;;
14625
14626 dgux*)
14627 version_type=linux
14628 need_lib_prefix=no
14629 need_version=no
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 ;;
14634
14635 freebsd1*)
14636 dynamic_linker=no
14637 ;;
14638
14639 kfreebsd*-gnu)
14640 version_type=linux
14641 need_lib_prefix=no
14642 need_version=no
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=no
14647 hardcode_into_libs=yes
14648 dynamic_linker='GNU ld.so'
14649 ;;
14650
14651 freebsd*)
14652 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14653 version_type=freebsd-$objformat
14654 case $version_type in
14655 freebsd-elf*)
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14657 need_version=no
14658 need_lib_prefix=no
14659 ;;
14660 freebsd-*)
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14662 need_version=yes
14663 ;;
14664 esac
14665 shlibpath_var=LD_LIBRARY_PATH
14666 case $host_os in
14667 freebsd2*)
14668 shlibpath_overrides_runpath=yes
14669 ;;
14670 freebsd3.01* | freebsdelf3.01*)
14671 shlibpath_overrides_runpath=yes
14672 hardcode_into_libs=yes
14673 ;;
14674 *) # from 3.2 on
14675 shlibpath_overrides_runpath=no
14676 hardcode_into_libs=yes
14677 ;;
14678 esac
14679 ;;
14680
14681 gnu*)
14682 version_type=linux
14683 need_lib_prefix=no
14684 need_version=no
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 shlibpath_var=LD_LIBRARY_PATH
14688 hardcode_into_libs=yes
14689 ;;
14690
14691 hpux9* | hpux10* | hpux11*)
14692 # Give a soname corresponding to the major version so that dld.sl refuses to
14693 # link against other versions.
14694 version_type=sunos
14695 need_lib_prefix=no
14696 need_version=no
14697 case "$host_cpu" in
14698 ia64*)
14699 shrext='.so'
14700 hardcode_into_libs=yes
14701 dynamic_linker="$host_os dld.so"
14702 shlibpath_var=LD_LIBRARY_PATH
14703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 if test "X$HPUX_IA64_MODE" = X32; then
14707 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14708 else
14709 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14710 fi
14711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14712 ;;
14713 hppa*64*)
14714 shrext='.sl'
14715 hardcode_into_libs=yes
14716 dynamic_linker="$host_os dld.sl"
14717 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14723 ;;
14724 *)
14725 shrext='.sl'
14726 dynamic_linker="$host_os dld.sl"
14727 shlibpath_var=SHLIB_PATH
14728 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 ;;
14732 esac
14733 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14734 postinstall_cmds='chmod 555 $lib'
14735 ;;
14736
14737 irix5* | irix6* | nonstopux*)
14738 case $host_os in
14739 nonstopux*) version_type=nonstopux ;;
14740 *)
14741 if test "$lt_cv_prog_gnu_ld" = yes; then
14742 version_type=linux
14743 else
14744 version_type=irix
14745 fi ;;
14746 esac
14747 need_lib_prefix=no
14748 need_version=no
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14751 case $host_os in
14752 irix5* | nonstopux*)
14753 libsuff= shlibsuff=
14754 ;;
14755 *)
14756 case $LD in # libtool.m4 will add one of these switches to LD
14757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14758 libsuff= shlibsuff= libmagic=32-bit;;
14759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14760 libsuff=32 shlibsuff=N32 libmagic=N32;;
14761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14763 *) libsuff= shlibsuff= libmagic=never-match;;
14764 esac
14765 ;;
14766 esac
14767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14768 shlibpath_overrides_runpath=no
14769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14771 hardcode_into_libs=yes
14772 ;;
14773
14774 # No shared lib support for Linux oldld, aout, or coff.
14775 linux*oldld* | linux*aout* | linux*coff*)
14776 dynamic_linker=no
14777 ;;
14778
14779 # This must be Linux ELF.
14780 linux*)
14781 version_type=linux
14782 need_lib_prefix=no
14783 need_version=no
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 shlibpath_overrides_runpath=no
14789 # This implies no fast_install, which is unacceptable.
14790 # Some rework will be needed to allow for fast_install
14791 # before this can be enabled.
14792 hardcode_into_libs=yes
14793
14794 # Append ld.so.conf contents to the search path
14795 if test -f /etc/ld.so.conf; then
14796 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14797 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14798 fi
14799
14800 # We used to test for /lib/ld.so.1 and disable shared libraries on
14801 # powerpc, because MkLinux only supported shared libraries with the
14802 # GNU dynamic linker. Since this was broken with cross compilers,
14803 # most powerpc-linux boxes support dynamic linking these days and
14804 # people can always --disable-shared, the test was removed, and we
14805 # assume the GNU/Linux dynamic linker is in use.
14806 dynamic_linker='GNU/Linux ld.so'
14807 ;;
14808
14809 knetbsd*-gnu)
14810 version_type=linux
14811 need_lib_prefix=no
14812 need_version=no
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=no
14817 hardcode_into_libs=yes
14818 dynamic_linker='GNU ld.so'
14819 ;;
14820
14821 netbsd*)
14822 version_type=sunos
14823 need_lib_prefix=no
14824 need_version=no
14825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14828 dynamic_linker='NetBSD (a.out) ld.so'
14829 else
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 dynamic_linker='NetBSD ld.elf_so'
14833 fi
14834 shlibpath_var=LD_LIBRARY_PATH
14835 shlibpath_overrides_runpath=yes
14836 hardcode_into_libs=yes
14837 ;;
14838
14839 newsos6)
14840 version_type=linux
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 shlibpath_overrides_runpath=yes
14844 ;;
14845
14846 nto-qnx*)
14847 version_type=linux
14848 need_lib_prefix=no
14849 need_version=no
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 shlibpath_overrides_runpath=yes
14854 ;;
14855
14856 openbsd*)
14857 version_type=sunos
14858 need_lib_prefix=no
14859 need_version=yes
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14864 case $host_os in
14865 openbsd2.[89] | openbsd2.[89].*)
14866 shlibpath_overrides_runpath=no
14867 ;;
14868 *)
14869 shlibpath_overrides_runpath=yes
14870 ;;
14871 esac
14872 else
14873 shlibpath_overrides_runpath=yes
14874 fi
14875 ;;
14876
14877 os2*)
14878 libname_spec='$name'
14879 shrext=".dll"
14880 need_lib_prefix=no
14881 library_names_spec='$libname${shared_ext} $libname.a'
14882 dynamic_linker='OS/2 ld.exe'
14883 shlibpath_var=LIBPATH
14884 ;;
14885
14886 osf3* | osf4* | osf5*)
14887 version_type=osf
14888 need_lib_prefix=no
14889 need_version=no
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14895 ;;
14896
14897 sco3.2v5*)
14898 version_type=osf
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 ;;
14903
14904 solaris*)
14905 version_type=linux
14906 need_lib_prefix=no
14907 need_version=no
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 soname_spec='${libname}${release}${shared_ext}$major'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes
14912 hardcode_into_libs=yes
14913 # ldd complains unless libraries are executable
14914 postinstall_cmds='chmod +x $lib'
14915 ;;
14916
14917 sunos4*)
14918 version_type=sunos
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes
14923 if test "$with_gnu_ld" = yes; then
14924 need_lib_prefix=no
14925 fi
14926 need_version=yes
14927 ;;
14928
14929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14930 version_type=linux
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 case $host_vendor in
14935 sni)
14936 shlibpath_overrides_runpath=no
14937 need_lib_prefix=no
14938 export_dynamic_flag_spec='${wl}-Blargedynsym'
14939 runpath_var=LD_RUN_PATH
14940 ;;
14941 siemens)
14942 need_lib_prefix=no
14943 ;;
14944 motorola)
14945 need_lib_prefix=no
14946 need_version=no
14947 shlibpath_overrides_runpath=no
14948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14949 ;;
14950 esac
14951 ;;
14952
14953 sysv4*MP*)
14954 if test -d /usr/nec ;then
14955 version_type=linux
14956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14957 soname_spec='$libname${shared_ext}.$major'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 fi
14960 ;;
14961
14962 uts4*)
14963 version_type=linux
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14965 soname_spec='${libname}${release}${shared_ext}$major'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 ;;
14968
14969 *)
14970 dynamic_linker=no
14971 ;;
14972 esac
14973 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14974 echo "${ECHO_T}$dynamic_linker" >&6
14975 test "$dynamic_linker" = no && can_build_shared=no
14976
14977 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14978 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14979 hardcode_action_F77=
14980 if test -n "$hardcode_libdir_flag_spec_F77" || \
14981 test -n "$runpath_var F77" || \
14982 test "X$hardcode_automatic_F77"="Xyes" ; then
14983
14984 # We can hardcode non-existant directories.
14985 if test "$hardcode_direct_F77" != no &&
14986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14987 # have to relink, otherwise we might link with an installed library
14988 # when we should be linking with a yet-to-be-installed one
14989 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14990 test "$hardcode_minus_L_F77" != no; then
14991 # Linking always hardcodes the temporary library directory.
14992 hardcode_action_F77=relink
14993 else
14994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14995 hardcode_action_F77=immediate
14996 fi
14997 else
14998 # We cannot hardcode anything, or else we can only hardcode existing
14999 # directories.
15000 hardcode_action_F77=unsupported
15001 fi
15002 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15003 echo "${ECHO_T}$hardcode_action_F77" >&6
15004
15005 if test "$hardcode_action_F77" = relink; then
15006 # Fast installation is not supported
15007 enable_fast_install=no
15008 elif test "$shlibpath_overrides_runpath" = yes ||
15009 test "$enable_shared" = no; then
15010 # Fast installation is not necessary
15011 enable_fast_install=needless
15012 fi
15013
15014 striplib=
15015 old_striplib=
15016 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15017 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15018 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15019 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15020 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15021 echo "$as_me:$LINENO: result: yes" >&5
15022 echo "${ECHO_T}yes" >&6
15023 else
15024 # FIXME - insert some real tests, host_os isn't really good enough
15025 case $host_os in
15026 darwin*)
15027 if test -n "$STRIP" ; then
15028 striplib="$STRIP -x"
15029 echo "$as_me:$LINENO: result: yes" >&5
15030 echo "${ECHO_T}yes" >&6
15031 else
15032 echo "$as_me:$LINENO: result: no" >&5
15033 echo "${ECHO_T}no" >&6
15034 fi
15035 ;;
15036 *)
15037 echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15039 ;;
15040 esac
15041 fi
15042
15043
15044
15045 # The else clause should only fire when bootstrapping the
15046 # libtool distribution, otherwise you forgot to ship ltmain.sh
15047 # with your package, and you will get complaints that there are
15048 # no rules to generate ltmain.sh.
15049 if test -f "$ltmain"; then
15050 # See if we are running on zsh, and set the options which allow our commands through
15051 # without removal of \ escapes.
15052 if test -n "${ZSH_VERSION+set}" ; then
15053 setopt NO_GLOB_SUBST
15054 fi
15055 # Now quote all the things that may contain metacharacters while being
15056 # careful not to overquote the AC_SUBSTed values. We take copies of the
15057 # variables and quote the copies for generation of the libtool script.
15058 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15059 SED SHELL STRIP \
15060 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15061 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15062 deplibs_check_method reload_flag reload_cmds need_locks \
15063 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15064 lt_cv_sys_global_symbol_to_c_name_address \
15065 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15066 old_postinstall_cmds old_postuninstall_cmds \
15067 compiler_F77 \
15068 CC_F77 \
15069 LD_F77 \
15070 lt_prog_compiler_wl_F77 \
15071 lt_prog_compiler_pic_F77 \
15072 lt_prog_compiler_static_F77 \
15073 lt_prog_compiler_no_builtin_flag_F77 \
15074 export_dynamic_flag_spec_F77 \
15075 thread_safe_flag_spec_F77 \
15076 whole_archive_flag_spec_F77 \
15077 enable_shared_with_static_runtimes_F77 \
15078 old_archive_cmds_F77 \
15079 old_archive_from_new_cmds_F77 \
15080 predep_objects_F77 \
15081 postdep_objects_F77 \
15082 predeps_F77 \
15083 postdeps_F77 \
15084 compiler_lib_search_path_F77 \
15085 archive_cmds_F77 \
15086 archive_expsym_cmds_F77 \
15087 postinstall_cmds_F77 \
15088 postuninstall_cmds_F77 \
15089 old_archive_from_expsyms_cmds_F77 \
15090 allow_undefined_flag_F77 \
15091 no_undefined_flag_F77 \
15092 export_symbols_cmds_F77 \
15093 hardcode_libdir_flag_spec_F77 \
15094 hardcode_libdir_flag_spec_ld_F77 \
15095 hardcode_libdir_separator_F77 \
15096 hardcode_automatic_F77 \
15097 module_cmds_F77 \
15098 module_expsym_cmds_F77 \
15099 lt_cv_prog_compiler_c_o_F77 \
15100 exclude_expsyms_F77 \
15101 include_expsyms_F77; do
15102
15103 case $var in
15104 old_archive_cmds_F77 | \
15105 old_archive_from_new_cmds_F77 | \
15106 archive_cmds_F77 | \
15107 archive_expsym_cmds_F77 | \
15108 module_cmds_F77 | \
15109 module_expsym_cmds_F77 | \
15110 old_archive_from_expsyms_cmds_F77 | \
15111 export_symbols_cmds_F77 | \
15112 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15113 postinstall_cmds | postuninstall_cmds | \
15114 old_postinstall_cmds | old_postuninstall_cmds | \
15115 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15116 # Double-quote double-evaled strings.
15117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15118 ;;
15119 *)
15120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15121 ;;
15122 esac
15123 done
15124
15125 case $lt_echo in
15126 *'\$0 --fallback-echo"')
15127 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15128 ;;
15129 esac
15130
15131 cfgfile="$ofile"
15132
15133 cat <<__EOF__ >> "$cfgfile"
15134 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15135
15136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15137
15138 # Shell to use when invoking shell scripts.
15139 SHELL=$lt_SHELL
15140
15141 # Whether or not to build shared libraries.
15142 build_libtool_libs=$enable_shared
15143
15144 # Whether or not to build static libraries.
15145 build_old_libs=$enable_static
15146
15147 # Whether or not to add -lc for building shared libraries.
15148 build_libtool_need_lc=$archive_cmds_need_lc_F77
15149
15150 # Whether or not to disallow shared libs when runtime libs are static
15151 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15152
15153 # Whether or not to optimize for fast installation.
15154 fast_install=$enable_fast_install
15155
15156 # The host system.
15157 host_alias=$host_alias
15158 host=$host
15159
15160 # An echo program that does not interpret backslashes.
15161 echo=$lt_echo
15162
15163 # The archiver.
15164 AR=$lt_AR
15165 AR_FLAGS=$lt_AR_FLAGS
15166
15167 # A C compiler.
15168 LTCC=$lt_LTCC
15169
15170 # A language-specific compiler.
15171 CC=$lt_compiler_F77
15172
15173 # Is the compiler the GNU C compiler?
15174 with_gcc=$GCC_F77
15175
15176 # An ERE matcher.
15177 EGREP=$lt_EGREP
15178
15179 # The linker used to build libraries.
15180 LD=$lt_LD_F77
15181
15182 # Whether we need hard or soft links.
15183 LN_S=$lt_LN_S
15184
15185 # A BSD-compatible nm program.
15186 NM=$lt_NM
15187
15188 # A symbol stripping program
15189 STRIP=$lt_STRIP
15190
15191 # Used to examine libraries when file_magic_cmd begins "file"
15192 MAGIC_CMD=$MAGIC_CMD
15193
15194 # Used on cygwin: DLL creation program.
15195 DLLTOOL="$DLLTOOL"
15196
15197 # Used on cygwin: object dumper.
15198 OBJDUMP="$OBJDUMP"
15199
15200 # Used on cygwin: assembler.
15201 AS="$AS"
15202
15203 # The name of the directory that contains temporary libtool files.
15204 objdir=$objdir
15205
15206 # How to create reloadable object files.
15207 reload_flag=$lt_reload_flag
15208 reload_cmds=$lt_reload_cmds
15209
15210 # How to pass a linker flag through the compiler.
15211 wl=$lt_lt_prog_compiler_wl_F77
15212
15213 # Object file suffix (normally "o").
15214 objext="$ac_objext"
15215
15216 # Old archive suffix (normally "a").
15217 libext="$libext"
15218
15219 # Shared library suffix (normally ".so").
15220 shrext='$shrext'
15221
15222 # Executable file suffix (normally "").
15223 exeext="$exeext"
15224
15225 # Additional compiler flags for building library objects.
15226 pic_flag=$lt_lt_prog_compiler_pic_F77
15227 pic_mode=$pic_mode
15228
15229 # What is the maximum length of a command?
15230 max_cmd_len=$lt_cv_sys_max_cmd_len
15231
15232 # Does compiler simultaneously support -c and -o options?
15233 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15234
15235 # Must we lock files when doing compilation ?
15236 need_locks=$lt_need_locks
15237
15238 # Do we need the lib prefix for modules?
15239 need_lib_prefix=$need_lib_prefix
15240
15241 # Do we need a version for libraries?
15242 need_version=$need_version
15243
15244 # Whether dlopen is supported.
15245 dlopen_support=$enable_dlopen
15246
15247 # Whether dlopen of programs is supported.
15248 dlopen_self=$enable_dlopen_self
15249
15250 # Whether dlopen of statically linked programs is supported.
15251 dlopen_self_static=$enable_dlopen_self_static
15252
15253 # Compiler flag to prevent dynamic linking.
15254 link_static_flag=$lt_lt_prog_compiler_static_F77
15255
15256 # Compiler flag to turn off builtin functions.
15257 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15258
15259 # Compiler flag to allow reflexive dlopens.
15260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15261
15262 # Compiler flag to generate shared objects directly from archives.
15263 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15264
15265 # Compiler flag to generate thread-safe objects.
15266 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15267
15268 # Library versioning type.
15269 version_type=$version_type
15270
15271 # Format of library name prefix.
15272 libname_spec=$lt_libname_spec
15273
15274 # List of archive names. First name is the real one, the rest are links.
15275 # The last name is the one that the linker finds with -lNAME.
15276 library_names_spec=$lt_library_names_spec
15277
15278 # The coded name of the library, if different from the real name.
15279 soname_spec=$lt_soname_spec
15280
15281 # Commands used to build and install an old-style archive.
15282 RANLIB=$lt_RANLIB
15283 old_archive_cmds=$lt_old_archive_cmds_F77
15284 old_postinstall_cmds=$lt_old_postinstall_cmds
15285 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15286
15287 # Create an old-style archive from a shared archive.
15288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15289
15290 # Create a temporary old-style archive to link instead of a shared archive.
15291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15292
15293 # Commands used to build and install a shared archive.
15294 archive_cmds=$lt_archive_cmds_F77
15295 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15296 postinstall_cmds=$lt_postinstall_cmds
15297 postuninstall_cmds=$lt_postuninstall_cmds
15298
15299 # Commands used to build a loadable module (assumed same as above if empty)
15300 module_cmds=$lt_module_cmds_F77
15301 module_expsym_cmds=$lt_module_expsym_cmds_F77
15302
15303 # Commands to strip libraries.
15304 old_striplib=$lt_old_striplib
15305 striplib=$lt_striplib
15306
15307 # Dependencies to place before the objects being linked to create a
15308 # shared library.
15309 predep_objects=$lt_predep_objects_F77
15310
15311 # Dependencies to place after the objects being linked to create a
15312 # shared library.
15313 postdep_objects=$lt_postdep_objects_F77
15314
15315 # Dependencies to place before the objects being linked to create a
15316 # shared library.
15317 predeps=$lt_predeps_F77
15318
15319 # Dependencies to place after the objects being linked to create a
15320 # shared library.
15321 postdeps=$lt_postdeps_F77
15322
15323 # The library search path used internally by the compiler when linking
15324 # a shared library.
15325 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15326
15327 # Method to check whether dependent libraries are shared objects.
15328 deplibs_check_method=$lt_deplibs_check_method
15329
15330 # Command to use when deplibs_check_method == file_magic.
15331 file_magic_cmd=$lt_file_magic_cmd
15332
15333 # Flag that allows shared libraries with undefined symbols to be built.
15334 allow_undefined_flag=$lt_allow_undefined_flag_F77
15335
15336 # Flag that forces no undefined symbols.
15337 no_undefined_flag=$lt_no_undefined_flag_F77
15338
15339 # Commands used to finish a libtool library installation in a directory.
15340 finish_cmds=$lt_finish_cmds
15341
15342 # Same as above, but a single script fragment to be evaled but not shown.
15343 finish_eval=$lt_finish_eval
15344
15345 # Take the output of nm and produce a listing of raw symbols and C names.
15346 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15347
15348 # Transform the output of nm in a proper C declaration
15349 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15350
15351 # Transform the output of nm in a C name address pair
15352 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15353
15354 # This is the shared library runtime path variable.
15355 runpath_var=$runpath_var
15356
15357 # This is the shared library path variable.
15358 shlibpath_var=$shlibpath_var
15359
15360 # Is shlibpath searched before the hard-coded library search path?
15361 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15362
15363 # How to hardcode a shared library path into an executable.
15364 hardcode_action=$hardcode_action_F77
15365
15366 # Whether we should hardcode library paths into libraries.
15367 hardcode_into_libs=$hardcode_into_libs
15368
15369 # Flag to hardcode \$libdir into a binary during linking.
15370 # This must work even if \$libdir does not exist.
15371 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15372
15373 # If ld is used when linking, flag to hardcode \$libdir into
15374 # a binary during linking. This must work even if \$libdir does
15375 # not exist.
15376 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15377
15378 # Whether we need a single -rpath flag with a separated argument.
15379 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15380
15381 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15382 # resulting binary.
15383 hardcode_direct=$hardcode_direct_F77
15384
15385 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15386 # resulting binary.
15387 hardcode_minus_L=$hardcode_minus_L_F77
15388
15389 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15390 # the resulting binary.
15391 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15392
15393 # Set to yes if building a shared library automatically hardcodes DIR into the library
15394 # and all subsequent libraries and executables linked against it.
15395 hardcode_automatic=$hardcode_automatic_F77
15396
15397 # Variables whose values should be saved in libtool wrapper scripts and
15398 # restored at relink time.
15399 variables_saved_for_relink="$variables_saved_for_relink"
15400
15401 # Whether libtool must link a program against all its dependency libraries.
15402 link_all_deplibs=$link_all_deplibs_F77
15403
15404 # Compile-time system search path for libraries
15405 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15406
15407 # Run-time system search path for libraries
15408 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15409
15410 # Fix the shell variable \$srcfile for the compiler.
15411 fix_srcfile_path="$fix_srcfile_path_F77"
15412
15413 # Set to yes if exported symbols are required.
15414 always_export_symbols=$always_export_symbols_F77
15415
15416 # The commands to list exported symbols.
15417 export_symbols_cmds=$lt_export_symbols_cmds_F77
15418
15419 # The commands to extract the exported symbol list from a shared archive.
15420 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15421
15422 # Symbols that should not be listed in the preloaded symbols.
15423 exclude_expsyms=$lt_exclude_expsyms_F77
15424
15425 # Symbols that must always be exported.
15426 include_expsyms=$lt_include_expsyms_F77
15427
15428 # ### END LIBTOOL TAG CONFIG: $tagname
15429
15430 __EOF__
15431
15432
15433 else
15434 # If there is no Makefile yet, we rely on a make rule to execute
15435 # `config.status --recheck' to rerun these tests and create the
15436 # libtool script then.
15437 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15438 if test -f "$ltmain_in"; then
15439 test -f Makefile && make "$ltmain"
15440 fi
15441 fi
15442
15443
15444 ac_ext=c
15445 ac_cpp='$CPP $CPPFLAGS'
15446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15449
15450 CC="$lt_save_CC"
15451
15452 else
15453 tagname=""
15454 fi
15455 ;;
15456
15457 GCJ)
15458 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15459
15460
15461
15462 # Source file extension for Java test sources.
15463 ac_ext=java
15464
15465 # Object file extension for compiled Java test sources.
15466 objext=o
15467 objext_GCJ=$objext
15468
15469 # Code to be used in simple compile tests
15470 lt_simple_compile_test_code="class foo {}\n"
15471
15472 # Code to be used in simple link tests
15473 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15474
15475 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15476
15477 # If no C compiler was specified, use CC.
15478 LTCC=${LTCC-"$CC"}
15479
15480 # Allow CC to be a program name with arguments.
15481 compiler=$CC
15482
15483
15484 # Allow CC to be a program name with arguments.
15485 lt_save_CC="$CC"
15486 CC=${GCJ-"gcj"}
15487 compiler=$CC
15488 compiler_GCJ=$CC
15489
15490 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15491 archive_cmds_need_lc_GCJ=no
15492
15493
15494 lt_prog_compiler_no_builtin_flag_GCJ=
15495
15496 if test "$GCC" = yes; then
15497 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15498
15499
15500 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15501 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15502 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505 lt_cv_prog_compiler_rtti_exceptions=no
15506 ac_outfile=conftest.$ac_objext
15507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15508 lt_compiler_flag="-fno-rtti -fno-exceptions"
15509 # Insert the option either (1) after the last *FLAGS variable, or
15510 # (2) before a word containing "conftest.", or (3) at the end.
15511 # Note that $ac_compile itself does not contain backslashes and begins
15512 # with a dollar sign (not a hyphen), so the echo should work correctly.
15513 # The option is referenced via a variable to avoid confusing sed.
15514 lt_compile=`echo "$ac_compile" | $SED \
15515 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15517 -e 's:$: $lt_compiler_flag:'`
15518 (eval echo "\"\$as_me:15518: $lt_compile\"" >&5)
15519 (eval "$lt_compile" 2>conftest.err)
15520 ac_status=$?
15521 cat conftest.err >&5
15522 echo "$as_me:15522: \$? = $ac_status" >&5
15523 if (exit $ac_status) && test -s "$ac_outfile"; then
15524 # The compiler can only warn and ignore the option if not recognized
15525 # So say no if there are warnings
15526 if test ! -s conftest.err; then
15527 lt_cv_prog_compiler_rtti_exceptions=yes
15528 fi
15529 fi
15530 $rm conftest*
15531
15532 fi
15533 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15534 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15535
15536 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15537 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15538 else
15539 :
15540 fi
15541
15542 fi
15543
15544 lt_prog_compiler_wl_GCJ=
15545 lt_prog_compiler_pic_GCJ=
15546 lt_prog_compiler_static_GCJ=
15547
15548 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15549 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15550
15551 if test "$GCC" = yes; then
15552 lt_prog_compiler_wl_GCJ='-Wl,'
15553 lt_prog_compiler_static_GCJ='-static'
15554
15555 case $host_os in
15556 aix*)
15557 # All AIX code is PIC.
15558 if test "$host_cpu" = ia64; then
15559 # AIX 5 now supports IA64 processor
15560 lt_prog_compiler_static_GCJ='-Bstatic'
15561 fi
15562 ;;
15563
15564 amigaos*)
15565 # FIXME: we need at least 68020 code to build shared libraries, but
15566 # adding the `-m68020' flag to GCC prevents building anything better,
15567 # like `-m68040'.
15568 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15569 ;;
15570
15571 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15572 # PIC is the default for these OSes.
15573 ;;
15574
15575 mingw* | pw32* | os2*)
15576 # This hack is so that the source file can tell whether it is being
15577 # built for inclusion in a dll (and should export symbols for example).
15578 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15579 ;;
15580
15581 darwin* | rhapsody*)
15582 # PIC is the default on this platform
15583 # Common symbols not allowed in MH_DYLIB files
15584 lt_prog_compiler_pic_GCJ='-fno-common'
15585 ;;
15586
15587 msdosdjgpp*)
15588 # Just because we use GCC doesn't mean we suddenly get shared libraries
15589 # on systems that don't support them.
15590 lt_prog_compiler_can_build_shared_GCJ=no
15591 enable_shared=no
15592 ;;
15593
15594 sysv4*MP*)
15595 if test -d /usr/nec; then
15596 lt_prog_compiler_pic_GCJ=-Kconform_pic
15597 fi
15598 ;;
15599
15600 hpux*)
15601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15602 # not for PA HP-UX.
15603 case "$host_cpu" in
15604 hppa*64*|ia64*)
15605 # +Z the default
15606 ;;
15607 *)
15608 lt_prog_compiler_pic_GCJ='-fPIC'
15609 ;;
15610 esac
15611 ;;
15612
15613 *)
15614 lt_prog_compiler_pic_GCJ='-fPIC'
15615 ;;
15616 esac
15617 else
15618 # PORTME Check for flag to pass linker flags through the system compiler.
15619 case $host_os in
15620 aix*)
15621 lt_prog_compiler_wl_GCJ='-Wl,'
15622 if test "$host_cpu" = ia64; then
15623 # AIX 5 now supports IA64 processor
15624 lt_prog_compiler_static_GCJ='-Bstatic'
15625 else
15626 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15627 fi
15628 ;;
15629
15630 mingw* | pw32* | os2*)
15631 # This hack is so that the source file can tell whether it is being
15632 # built for inclusion in a dll (and should export symbols for example).
15633 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15634 ;;
15635
15636 hpux9* | hpux10* | hpux11*)
15637 lt_prog_compiler_wl_GCJ='-Wl,'
15638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15639 # not for PA HP-UX.
15640 case "$host_cpu" in
15641 hppa*64*|ia64*)
15642 # +Z the default
15643 ;;
15644 *)
15645 lt_prog_compiler_pic_GCJ='+Z'
15646 ;;
15647 esac
15648 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15649 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15650 ;;
15651
15652 irix5* | irix6* | nonstopux*)
15653 lt_prog_compiler_wl_GCJ='-Wl,'
15654 # PIC (with -KPIC) is the default.
15655 lt_prog_compiler_static_GCJ='-non_shared'
15656 ;;
15657
15658 newsos6)
15659 lt_prog_compiler_pic_GCJ='-KPIC'
15660 lt_prog_compiler_static_GCJ='-Bstatic'
15661 ;;
15662
15663 linux*)
15664 case $CC in
15665 icc* | ecc*)
15666 lt_prog_compiler_wl_GCJ='-Wl,'
15667 lt_prog_compiler_pic_GCJ='-KPIC'
15668 lt_prog_compiler_static_GCJ='-static'
15669 ;;
15670 ccc*)
15671 lt_prog_compiler_wl_GCJ='-Wl,'
15672 # All Alpha code is PIC.
15673 lt_prog_compiler_static_GCJ='-non_shared'
15674 ;;
15675 esac
15676 ;;
15677
15678 osf3* | osf4* | osf5*)
15679 lt_prog_compiler_wl_GCJ='-Wl,'
15680 # All OSF/1 code is PIC.
15681 lt_prog_compiler_static_GCJ='-non_shared'
15682 ;;
15683
15684 sco3.2v5*)
15685 lt_prog_compiler_pic_GCJ='-Kpic'
15686 lt_prog_compiler_static_GCJ='-dn'
15687 ;;
15688
15689 solaris*)
15690 lt_prog_compiler_wl_GCJ='-Wl,'
15691 lt_prog_compiler_pic_GCJ='-KPIC'
15692 lt_prog_compiler_static_GCJ='-Bstatic'
15693 ;;
15694
15695 sunos4*)
15696 lt_prog_compiler_wl_GCJ='-Qoption ld '
15697 lt_prog_compiler_pic_GCJ='-PIC'
15698 lt_prog_compiler_static_GCJ='-Bstatic'
15699 ;;
15700
15701 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15702 lt_prog_compiler_wl_GCJ='-Wl,'
15703 lt_prog_compiler_pic_GCJ='-KPIC'
15704 lt_prog_compiler_static_GCJ='-Bstatic'
15705 ;;
15706
15707 sysv4*MP*)
15708 if test -d /usr/nec ;then
15709 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15710 lt_prog_compiler_static_GCJ='-Bstatic'
15711 fi
15712 ;;
15713
15714 uts4*)
15715 lt_prog_compiler_pic_GCJ='-pic'
15716 lt_prog_compiler_static_GCJ='-Bstatic'
15717 ;;
15718
15719 *)
15720 lt_prog_compiler_can_build_shared_GCJ=no
15721 ;;
15722 esac
15723 fi
15724
15725 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15726 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15727
15728 #
15729 # Check to make sure the PIC flag actually works.
15730 #
15731 if test -n "$lt_prog_compiler_pic_GCJ"; then
15732
15733 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15734 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15735 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 else
15738 lt_prog_compiler_pic_works_GCJ=no
15739 ac_outfile=conftest.$ac_objext
15740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15741 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15742 # Insert the option either (1) after the last *FLAGS variable, or
15743 # (2) before a word containing "conftest.", or (3) at the end.
15744 # Note that $ac_compile itself does not contain backslashes and begins
15745 # with a dollar sign (not a hyphen), so the echo should work correctly.
15746 # The option is referenced via a variable to avoid confusing sed.
15747 lt_compile=`echo "$ac_compile" | $SED \
15748 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15750 -e 's:$: $lt_compiler_flag:'`
15751 (eval echo "\"\$as_me:15751: $lt_compile\"" >&5)
15752 (eval "$lt_compile" 2>conftest.err)
15753 ac_status=$?
15754 cat conftest.err >&5
15755 echo "$as_me:15755: \$? = $ac_status" >&5
15756 if (exit $ac_status) && test -s "$ac_outfile"; then
15757 # The compiler can only warn and ignore the option if not recognized
15758 # So say no if there are warnings
15759 if test ! -s conftest.err; then
15760 lt_prog_compiler_pic_works_GCJ=yes
15761 fi
15762 fi
15763 $rm conftest*
15764
15765 fi
15766 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15767 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15768
15769 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15770 case $lt_prog_compiler_pic_GCJ in
15771 "" | " "*) ;;
15772 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15773 esac
15774 else
15775 lt_prog_compiler_pic_GCJ=
15776 lt_prog_compiler_can_build_shared_GCJ=no
15777 fi
15778
15779 fi
15780 case "$host_os" in
15781 # For platforms which do not support PIC, -DPIC is meaningless:
15782 *djgpp*)
15783 lt_prog_compiler_pic_GCJ=
15784 ;;
15785 *)
15786 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15787 ;;
15788 esac
15789
15790 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15792 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795 lt_cv_prog_compiler_c_o_GCJ=no
15796 $rm -r conftest 2>/dev/null
15797 mkdir conftest
15798 cd conftest
15799 mkdir out
15800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15801
15802 lt_compiler_flag="-o out/conftest2.$ac_objext"
15803 # Insert the option either (1) after the last *FLAGS variable, or
15804 # (2) before a word containing "conftest.", or (3) at the end.
15805 # Note that $ac_compile itself does not contain backslashes and begins
15806 # with a dollar sign (not a hyphen), so the echo should work correctly.
15807 lt_compile=`echo "$ac_compile" | $SED \
15808 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15810 -e 's:$: $lt_compiler_flag:'`
15811 (eval echo "\"\$as_me:15811: $lt_compile\"" >&5)
15812 (eval "$lt_compile" 2>out/conftest.err)
15813 ac_status=$?
15814 cat out/conftest.err >&5
15815 echo "$as_me:15815: \$? = $ac_status" >&5
15816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15817 then
15818 # The compiler can only warn and ignore the option if not recognized
15819 # So say no if there are warnings
15820 if test ! -s out/conftest.err; then
15821 lt_cv_prog_compiler_c_o_GCJ=yes
15822 fi
15823 fi
15824 chmod u+w .
15825 $rm conftest*
15826 # SGI C++ compiler will create directory out/ii_files/ for
15827 # template instantiation
15828 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15829 $rm out/* && rmdir out
15830 cd ..
15831 rmdir conftest
15832 $rm conftest*
15833
15834 fi
15835 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15837
15838
15839 hard_links="nottested"
15840 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15841 # do not overwrite the value of need_locks provided by the user
15842 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15843 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15844 hard_links=yes
15845 $rm conftest*
15846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15847 touch conftest.a
15848 ln conftest.a conftest.b 2>&5 || hard_links=no
15849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15850 echo "$as_me:$LINENO: result: $hard_links" >&5
15851 echo "${ECHO_T}$hard_links" >&6
15852 if test "$hard_links" = no; then
15853 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15854 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15855 need_locks=warn
15856 fi
15857 else
15858 need_locks=no
15859 fi
15860
15861 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15862 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15863
15864 runpath_var=
15865 allow_undefined_flag_GCJ=
15866 enable_shared_with_static_runtimes_GCJ=no
15867 archive_cmds_GCJ=
15868 archive_expsym_cmds_GCJ=
15869 old_archive_From_new_cmds_GCJ=
15870 old_archive_from_expsyms_cmds_GCJ=
15871 export_dynamic_flag_spec_GCJ=
15872 whole_archive_flag_spec_GCJ=
15873 thread_safe_flag_spec_GCJ=
15874 hardcode_libdir_flag_spec_GCJ=
15875 hardcode_libdir_flag_spec_ld_GCJ=
15876 hardcode_libdir_separator_GCJ=
15877 hardcode_direct_GCJ=no
15878 hardcode_minus_L_GCJ=no
15879 hardcode_shlibpath_var_GCJ=unsupported
15880 link_all_deplibs_GCJ=unknown
15881 hardcode_automatic_GCJ=no
15882 module_cmds_GCJ=
15883 module_expsym_cmds_GCJ=
15884 always_export_symbols_GCJ=no
15885 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15886 # include_expsyms should be a list of space-separated symbols to be *always*
15887 # included in the symbol list
15888 include_expsyms_GCJ=
15889 # exclude_expsyms can be an extended regexp of symbols to exclude
15890 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15891 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15892 # as well as any symbol that contains `d'.
15893 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15894 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15895 # platforms (ab)use it in PIC code, but their linkers get confused if
15896 # the symbol is explicitly referenced. Since portable code cannot
15897 # rely on this symbol name, it's probably fine to never include it in
15898 # preloaded symbol tables.
15899 extract_expsyms_cmds=
15900
15901 case $host_os in
15902 cygwin* | mingw* | pw32*)
15903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15904 # When not using gcc, we currently assume that we are using
15905 # Microsoft Visual C++.
15906 if test "$GCC" != yes; then
15907 with_gnu_ld=no
15908 fi
15909 ;;
15910 openbsd*)
15911 with_gnu_ld=no
15912 ;;
15913 esac
15914
15915 ld_shlibs_GCJ=yes
15916 if test "$with_gnu_ld" = yes; then
15917 # If archive_cmds runs LD, not CC, wlarc should be empty
15918 wlarc='${wl}'
15919
15920 # See if GNU ld supports shared libraries.
15921 case $host_os in
15922 aix3* | aix4* | aix5*)
15923 # On AIX/PPC, the GNU linker is very broken
15924 if test "$host_cpu" != ia64; then
15925 ld_shlibs_GCJ=no
15926 cat <<EOF 1>&2
15927
15928 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15929 *** to be unable to reliably create shared libraries on AIX.
15930 *** Therefore, libtool is disabling shared libraries support. If you
15931 *** really care for shared libraries, you may want to modify your PATH
15932 *** so that a non-GNU linker is found, and then restart.
15933
15934 EOF
15935 fi
15936 ;;
15937
15938 amigaos*)
15939 archive_cmds_GCJ='$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)'
15940 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15941 hardcode_minus_L_GCJ=yes
15942
15943 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15944 # that the semantics of dynamic libraries on AmigaOS, at least up
15945 # to version 4, is to share data among multiple programs linked
15946 # with the same dynamic library. Since this doesn't match the
15947 # behavior of shared libraries on other platforms, we can't use
15948 # them.
15949 ld_shlibs_GCJ=no
15950 ;;
15951
15952 beos*)
15953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15954 allow_undefined_flag_GCJ=unsupported
15955 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15956 # support --undefined. This deserves some investigation. FIXME
15957 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15958 else
15959 ld_shlibs_GCJ=no
15960 fi
15961 ;;
15962
15963 cygwin* | mingw* | pw32*)
15964 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15965 # as there is no search path for DLLs.
15966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15967 allow_undefined_flag_GCJ=unsupported
15968 always_export_symbols_GCJ=no
15969 enable_shared_with_static_runtimes_GCJ=yes
15970 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15971
15972 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15973 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15974 # If the export-symbols file already is a .def file (1st line
15975 # is EXPORTS), use it as is; otherwise, prepend...
15976 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15977 cp $export_symbols $output_objdir/$soname.def;
15978 else
15979 echo EXPORTS > $output_objdir/$soname.def;
15980 cat $export_symbols >> $output_objdir/$soname.def;
15981 fi~
15982 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15983 else
15984 ld_shlibs=no
15985 fi
15986 ;;
15987
15988 netbsd*)
15989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15991 wlarc=
15992 else
15993 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15994 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15995 fi
15996 ;;
15997
15998 solaris* | sysv5*)
15999 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16000 ld_shlibs_GCJ=no
16001 cat <<EOF 1>&2
16002
16003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16004 *** create shared libraries on Solaris systems. Therefore, libtool
16005 *** is disabling shared libraries support. We urge you to upgrade GNU
16006 *** binutils to release 2.9.1 or newer. Another option is to modify
16007 *** your PATH or compiler configuration so that the native linker is
16008 *** used, and then restart.
16009
16010 EOF
16011 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16014 else
16015 ld_shlibs_GCJ=no
16016 fi
16017 ;;
16018
16019 sunos4*)
16020 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16021 wlarc=
16022 hardcode_direct_GCJ=yes
16023 hardcode_shlibpath_var_GCJ=no
16024 ;;
16025
16026 linux*)
16027 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16028 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16029 archive_cmds_GCJ="$tmp_archive_cmds"
16030 supports_anon_versioning=no
16031 case `$LD -v 2>/dev/null` in
16032 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16033 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16034 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16035 *\ 2.11.*) ;; # other 2.11 versions
16036 *) supports_anon_versioning=yes ;;
16037 esac
16038 if test $supports_anon_versioning = yes; then
16039 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16041 $echo "local: *; };" >> $output_objdir/$libname.ver~
16042 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16043 else
16044 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16045 fi
16046 else
16047 ld_shlibs_GCJ=no
16048 fi
16049 ;;
16050
16051 *)
16052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16053 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16055 else
16056 ld_shlibs_GCJ=no
16057 fi
16058 ;;
16059 esac
16060
16061 if test "$ld_shlibs_GCJ" = yes; then
16062 runpath_var=LD_RUN_PATH
16063 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16064 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16065 # ancient GNU ld didn't support --whole-archive et. al.
16066 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16067 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16068 else
16069 whole_archive_flag_spec_GCJ=
16070 fi
16071 fi
16072 else
16073 # PORTME fill in a description of your system's linker (not GNU ld)
16074 case $host_os in
16075 aix3*)
16076 allow_undefined_flag_GCJ=unsupported
16077 always_export_symbols_GCJ=yes
16078 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16079 # Note: this linker hardcodes the directories in LIBPATH if there
16080 # are no directories specified by -L.
16081 hardcode_minus_L_GCJ=yes
16082 if test "$GCC" = yes && test -z "$link_static_flag"; then
16083 # Neither direct hardcoding nor static linking is supported with a
16084 # broken collect2.
16085 hardcode_direct_GCJ=unsupported
16086 fi
16087 ;;
16088
16089 aix4* | aix5*)
16090 if test "$host_cpu" = ia64; then
16091 # On IA64, the linker does run time linking by default, so we don't
16092 # have to do anything special.
16093 aix_use_runtimelinking=no
16094 exp_sym_flag='-Bexport'
16095 no_entry_flag=""
16096 else
16097 # If we're using GNU nm, then we don't want the "-C" option.
16098 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16099 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16100 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16101 else
16102 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16103 fi
16104 aix_use_runtimelinking=no
16105
16106 # Test if we are trying to use run time linking or normal
16107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16108 # need to do runtime linking.
16109 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16110 for ld_flag in $LDFLAGS; do
16111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16112 aix_use_runtimelinking=yes
16113 break
16114 fi
16115 done
16116 esac
16117
16118 exp_sym_flag='-bexport'
16119 no_entry_flag='-bnoentry'
16120 fi
16121
16122 # When large executables or shared objects are built, AIX ld can
16123 # have problems creating the table of contents. If linking a library
16124 # or program results in "error TOC overflow" add -mminimal-toc to
16125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16127
16128 archive_cmds_GCJ=''
16129 hardcode_direct_GCJ=yes
16130 hardcode_libdir_separator_GCJ=':'
16131 link_all_deplibs_GCJ=yes
16132
16133 if test "$GCC" = yes; then
16134 case $host_os in aix4.012|aix4.012.*)
16135 # We only want to do this on AIX 4.2 and lower, the check
16136 # below for broken collect2 doesn't work under 4.3+
16137 collect2name=`${CC} -print-prog-name=collect2`
16138 if test -f "$collect2name" && \
16139 strings "$collect2name" | grep resolve_lib_name >/dev/null
16140 then
16141 # We have reworked collect2
16142 hardcode_direct_GCJ=yes
16143 else
16144 # We have old collect2
16145 hardcode_direct_GCJ=unsupported
16146 # It fails to find uninstalled libraries when the uninstalled
16147 # path is not listed in the libpath. Setting hardcode_minus_L
16148 # to unsupported forces relinking
16149 hardcode_minus_L_GCJ=yes
16150 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16151 hardcode_libdir_separator_GCJ=
16152 fi
16153 esac
16154 shared_flag='-shared'
16155 else
16156 # not using gcc
16157 if test "$host_cpu" = ia64; then
16158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16159 # chokes on -Wl,-G. The following line is correct:
16160 shared_flag='-G'
16161 else
16162 if test "$aix_use_runtimelinking" = yes; then
16163 shared_flag='${wl}-G'
16164 else
16165 shared_flag='${wl}-bM:SRE'
16166 fi
16167 fi
16168 fi
16169
16170 # It seems that -bexpall does not export symbols beginning with
16171 # underscore (_), so it is better to generate a list of symbols to export.
16172 always_export_symbols_GCJ=yes
16173 if test "$aix_use_runtimelinking" = yes; then
16174 # Warning - without using the other runtime loading flags (-brtl),
16175 # -berok will link without error, but may produce a broken library.
16176 allow_undefined_flag_GCJ='-berok'
16177 # Determine the default libpath from the value encoded in an empty executable.
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184
16185 int
16186 main ()
16187 {
16188
16189 ;
16190 return 0;
16191 }
16192 _ACEOF
16193 rm -f conftest.$ac_objext conftest$ac_exeext
16194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16195 (eval $ac_link) 2>conftest.er1
16196 ac_status=$?
16197 grep -v '^ *+' conftest.er1 >conftest.err
16198 rm -f conftest.er1
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
16202 { ac_try='test -z "$ac_c_werror_flag"
16203 || test ! -s conftest.err'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest$ac_exeext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215
16216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16217 }'`
16218 # Check for a 64-bit object if we didn't find anything.
16219 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16220 }'`; fi
16221 else
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 fi
16226 rm -f conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16229
16230 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16231 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16232 else
16233 if test "$host_cpu" = ia64; then
16234 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16235 allow_undefined_flag_GCJ="-z nodefs"
16236 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16237 else
16238 # Determine the default libpath from the value encoded in an empty executable.
16239 cat >conftest.$ac_ext <<_ACEOF
16240 /* confdefs.h. */
16241 _ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245
16246 int
16247 main ()
16248 {
16249
16250 ;
16251 return 0;
16252 }
16253 _ACEOF
16254 rm -f conftest.$ac_objext conftest$ac_exeext
16255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16256 (eval $ac_link) 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag"
16264 || test ! -s conftest.err'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; } &&
16270 { ac_try='test -s conftest$ac_exeext'
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276
16277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16278 }'`
16279 # Check for a 64-bit object if we didn't find anything.
16280 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16281 }'`; fi
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 fi
16287 rm -f conftest.err conftest.$ac_objext \
16288 conftest$ac_exeext conftest.$ac_ext
16289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16290
16291 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16292 # Warning - without using the other run time loading flags,
16293 # -berok will link without error, but may produce a broken library.
16294 no_undefined_flag_GCJ=' ${wl}-bernotok'
16295 allow_undefined_flag_GCJ=' ${wl}-berok'
16296 # -bexpall does not export symbols beginning with underscore (_)
16297 always_export_symbols_GCJ=yes
16298 # Exported symbols can be pulled into shared objects from archives
16299 whole_archive_flag_spec_GCJ=' '
16300 archive_cmds_need_lc_GCJ=yes
16301 # This is similar to how AIX traditionally builds it's shared libraries.
16302 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16303 fi
16304 fi
16305 ;;
16306
16307 amigaos*)
16308 archive_cmds_GCJ='$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)'
16309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16310 hardcode_minus_L_GCJ=yes
16311 # see comment about different semantics on the GNU ld section
16312 ld_shlibs_GCJ=no
16313 ;;
16314
16315 bsdi4*)
16316 export_dynamic_flag_spec_GCJ=-rdynamic
16317 ;;
16318
16319 cygwin* | mingw* | pw32*)
16320 # When not using gcc, we currently assume that we are using
16321 # Microsoft Visual C++.
16322 # hardcode_libdir_flag_spec is actually meaningless, as there is
16323 # no search path for DLLs.
16324 hardcode_libdir_flag_spec_GCJ=' '
16325 allow_undefined_flag_GCJ=unsupported
16326 # Tell ltmain to make .lib files, not .a files.
16327 libext=lib
16328 # Tell ltmain to make .dll files, not .so files.
16329 shrext=".dll"
16330 # FIXME: Setting linknames here is a bad hack.
16331 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16332 # The linker will automatically build a .lib file if we build a DLL.
16333 old_archive_From_new_cmds_GCJ='true'
16334 # FIXME: Should let the user specify the lib program.
16335 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16336 fix_srcfile_path='`cygpath -w "$srcfile"`'
16337 enable_shared_with_static_runtimes_GCJ=yes
16338 ;;
16339
16340 darwin* | rhapsody*)
16341 if test "$GXX" = yes ; then
16342 archive_cmds_need_lc_GCJ=no
16343 case "$host_os" in
16344 rhapsody* | darwin1.[012])
16345 allow_undefined_flag_GCJ='-undefined suppress'
16346 ;;
16347 *) # Darwin 1.3 on
16348 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16349 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16350 else
16351 case ${MACOSX_DEPLOYMENT_TARGET} in
16352 10.[012])
16353 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16354 ;;
16355 10.*)
16356 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16357 ;;
16358 esac
16359 fi
16360 ;;
16361 esac
16362 lt_int_apple_cc_single_mod=no
16363 output_verbose_link_cmd='echo'
16364 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16365 lt_int_apple_cc_single_mod=yes
16366 fi
16367 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16368 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16369 else
16370 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16371 fi
16372 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16374 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16375 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16376 else
16377 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16378 fi
16379 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16380 hardcode_direct_GCJ=no
16381 hardcode_automatic_GCJ=yes
16382 hardcode_shlibpath_var_GCJ=unsupported
16383 whole_archive_flag_spec_GCJ='-all_load $convenience'
16384 link_all_deplibs_GCJ=yes
16385 else
16386 ld_shlibs_GCJ=no
16387 fi
16388 ;;
16389
16390 dgux*)
16391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16393 hardcode_shlibpath_var_GCJ=no
16394 ;;
16395
16396 freebsd1*)
16397 ld_shlibs_GCJ=no
16398 ;;
16399
16400 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16401 # support. Future versions do this automatically, but an explicit c++rt0.o
16402 # does not break anything, and helps significantly (at the cost of a little
16403 # extra space).
16404 freebsd2.2*)
16405 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16406 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16407 hardcode_direct_GCJ=yes
16408 hardcode_shlibpath_var_GCJ=no
16409 ;;
16410
16411 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16412 freebsd2*)
16413 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_direct_GCJ=yes
16415 hardcode_minus_L_GCJ=yes
16416 hardcode_shlibpath_var_GCJ=no
16417 ;;
16418
16419 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16420 freebsd* | kfreebsd*-gnu)
16421 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16422 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16423 hardcode_direct_GCJ=yes
16424 hardcode_shlibpath_var_GCJ=no
16425 ;;
16426
16427 hpux9*)
16428 if test "$GCC" = yes; then
16429 archive_cmds_GCJ='$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'
16430 else
16431 archive_cmds_GCJ='$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'
16432 fi
16433 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16434 hardcode_libdir_separator_GCJ=:
16435 hardcode_direct_GCJ=yes
16436
16437 # hardcode_minus_L: Not really in the search PATH,
16438 # but as the default location of the library.
16439 hardcode_minus_L_GCJ=yes
16440 export_dynamic_flag_spec_GCJ='${wl}-E'
16441 ;;
16442
16443 hpux10* | hpux11*)
16444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16445 case "$host_cpu" in
16446 hppa*64*|ia64*)
16447 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16448 ;;
16449 *)
16450 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16451 ;;
16452 esac
16453 else
16454 case "$host_cpu" in
16455 hppa*64*|ia64*)
16456 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 ;;
16458 *)
16459 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16460 ;;
16461 esac
16462 fi
16463 if test "$with_gnu_ld" = no; then
16464 case "$host_cpu" in
16465 hppa*64*)
16466 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16467 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16468 hardcode_libdir_separator_GCJ=:
16469 hardcode_direct_GCJ=no
16470 hardcode_shlibpath_var_GCJ=no
16471 ;;
16472 ia64*)
16473 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16474 hardcode_direct_GCJ=no
16475 hardcode_shlibpath_var_GCJ=no
16476
16477 # hardcode_minus_L: Not really in the search PATH,
16478 # but as the default location of the library.
16479 hardcode_minus_L_GCJ=yes
16480 ;;
16481 *)
16482 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16483 hardcode_libdir_separator_GCJ=:
16484 hardcode_direct_GCJ=yes
16485 export_dynamic_flag_spec_GCJ='${wl}-E'
16486
16487 # hardcode_minus_L: Not really in the search PATH,
16488 # but as the default location of the library.
16489 hardcode_minus_L_GCJ=yes
16490 ;;
16491 esac
16492 fi
16493 ;;
16494
16495 irix5* | irix6* | nonstopux*)
16496 if test "$GCC" = yes; then
16497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16498 else
16499 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16500 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16501 fi
16502 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16503 hardcode_libdir_separator_GCJ=:
16504 link_all_deplibs_GCJ=yes
16505 ;;
16506
16507 netbsd*)
16508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16509 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16510 else
16511 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16512 fi
16513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16514 hardcode_direct_GCJ=yes
16515 hardcode_shlibpath_var_GCJ=no
16516 ;;
16517
16518 newsos6)
16519 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_direct_GCJ=yes
16521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16522 hardcode_libdir_separator_GCJ=:
16523 hardcode_shlibpath_var_GCJ=no
16524 ;;
16525
16526 openbsd*)
16527 hardcode_direct_GCJ=yes
16528 hardcode_shlibpath_var_GCJ=no
16529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16530 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16532 export_dynamic_flag_spec_GCJ='${wl}-E'
16533 else
16534 case $host_os in
16535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16536 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16537 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16538 ;;
16539 *)
16540 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16542 ;;
16543 esac
16544 fi
16545 ;;
16546
16547 os2*)
16548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16549 hardcode_minus_L_GCJ=yes
16550 allow_undefined_flag_GCJ=unsupported
16551 archive_cmds_GCJ='$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'
16552 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16553 ;;
16554
16555 osf3*)
16556 if test "$GCC" = yes; then
16557 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16558 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16559 else
16560 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16561 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16562 fi
16563 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16564 hardcode_libdir_separator_GCJ=:
16565 ;;
16566
16567 osf4* | osf5*) # as osf3* with the addition of -msym flag
16568 if test "$GCC" = yes; then
16569 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16570 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16572 else
16573 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16574 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16575 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16576 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16577
16578 # Both c and cxx compiler support -rpath directly
16579 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16580 fi
16581 hardcode_libdir_separator_GCJ=:
16582 ;;
16583
16584 sco3.2v5*)
16585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586 hardcode_shlibpath_var_GCJ=no
16587 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16588 runpath_var=LD_RUN_PATH
16589 hardcode_runpath_var=yes
16590 ;;
16591
16592 solaris*)
16593 no_undefined_flag_GCJ=' -z text'
16594 if test "$GCC" = yes; then
16595 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16597 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16598 else
16599 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16601 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16602 fi
16603 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16604 hardcode_shlibpath_var_GCJ=no
16605 case $host_os in
16606 solaris2.[0-5] | solaris2.[0-5].*) ;;
16607 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16608 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16609 esac
16610 link_all_deplibs_GCJ=yes
16611 ;;
16612
16613 sunos4*)
16614 if test "x$host_vendor" = xsequent; then
16615 # Use $CC to link under sequent, because it throws in some extra .o
16616 # files that make .init and .fini sections work.
16617 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16618 else
16619 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16620 fi
16621 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16622 hardcode_direct_GCJ=yes
16623 hardcode_minus_L_GCJ=yes
16624 hardcode_shlibpath_var_GCJ=no
16625 ;;
16626
16627 sysv4)
16628 case $host_vendor in
16629 sni)
16630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_direct_GCJ=yes # is this really true???
16632 ;;
16633 siemens)
16634 ## LD is ld it makes a PLAMLIB
16635 ## CC just makes a GrossModule.
16636 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16637 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16638 hardcode_direct_GCJ=no
16639 ;;
16640 motorola)
16641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16642 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16643 ;;
16644 esac
16645 runpath_var='LD_RUN_PATH'
16646 hardcode_shlibpath_var_GCJ=no
16647 ;;
16648
16649 sysv4.3*)
16650 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16651 hardcode_shlibpath_var_GCJ=no
16652 export_dynamic_flag_spec_GCJ='-Bexport'
16653 ;;
16654
16655 sysv4*MP*)
16656 if test -d /usr/nec; then
16657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 hardcode_shlibpath_var_GCJ=no
16659 runpath_var=LD_RUN_PATH
16660 hardcode_runpath_var=yes
16661 ld_shlibs_GCJ=yes
16662 fi
16663 ;;
16664
16665 sysv4.2uw2*)
16666 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16667 hardcode_direct_GCJ=yes
16668 hardcode_minus_L_GCJ=no
16669 hardcode_shlibpath_var_GCJ=no
16670 hardcode_runpath_var=yes
16671 runpath_var=LD_RUN_PATH
16672 ;;
16673
16674 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16675 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16676 if test "$GCC" = yes; then
16677 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16678 else
16679 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 fi
16681 runpath_var='LD_RUN_PATH'
16682 hardcode_shlibpath_var_GCJ=no
16683 ;;
16684
16685 sysv5*)
16686 no_undefined_flag_GCJ=' -z text'
16687 # $CC -shared without GNU ld will not create a library from C++
16688 # object files and a static libstdc++, better avoid it by now
16689 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16690 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16691 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16692 hardcode_libdir_flag_spec_GCJ=
16693 hardcode_shlibpath_var_GCJ=no
16694 runpath_var='LD_RUN_PATH'
16695 ;;
16696
16697 uts4*)
16698 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16700 hardcode_shlibpath_var_GCJ=no
16701 ;;
16702
16703 *)
16704 ld_shlibs_GCJ=no
16705 ;;
16706 esac
16707 fi
16708
16709 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16710 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16711 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16712
16713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16714 if test "$GCC" = yes; then
16715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16716 fi
16717
16718 #
16719 # Do we need to explicitly link libc?
16720 #
16721 case "x$archive_cmds_need_lc_GCJ" in
16722 x|xyes)
16723 # Assume -lc should be added
16724 archive_cmds_need_lc_GCJ=yes
16725
16726 if test "$enable_shared" = yes && test "$GCC" = yes; then
16727 case $archive_cmds_GCJ in
16728 *'~'*)
16729 # FIXME: we may have to deal with multi-command sequences.
16730 ;;
16731 '$CC '*)
16732 # Test whether the compiler implicitly links with -lc since on some
16733 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16734 # to ld, don't add -lc before -lgcc.
16735 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16736 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16737 $rm conftest*
16738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16739
16740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741 (eval $ac_compile) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } 2>conftest.err; then
16745 soname=conftest
16746 lib=conftest
16747 libobjs=conftest.$ac_objext
16748 deplibs=
16749 wl=$lt_prog_compiler_wl_GCJ
16750 compiler_flags=-v
16751 linker_flags=-v
16752 verstring=
16753 output_objdir=.
16754 libname=conftest
16755 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16756 allow_undefined_flag_GCJ=
16757 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16758 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }
16762 then
16763 archive_cmds_need_lc_GCJ=no
16764 else
16765 archive_cmds_need_lc_GCJ=yes
16766 fi
16767 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16768 else
16769 cat conftest.err 1>&5
16770 fi
16771 $rm conftest*
16772 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16773 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16774 ;;
16775 esac
16776 fi
16777 ;;
16778 esac
16779
16780 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16781 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16782 library_names_spec=
16783 libname_spec='lib$name'
16784 soname_spec=
16785 shrext=".so"
16786 postinstall_cmds=
16787 postuninstall_cmds=
16788 finish_cmds=
16789 finish_eval=
16790 shlibpath_var=
16791 shlibpath_overrides_runpath=unknown
16792 version_type=none
16793 dynamic_linker="$host_os ld.so"
16794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16795 if test "$GCC" = yes; then
16796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16797 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16798 # if the path contains ";" then we assume it to be the separator
16799 # otherwise default to the standard path separator (i.e. ":") - it is
16800 # assumed that no part of a normal pathname contains ";" but that should
16801 # okay in the real world where ";" in dirpaths is itself problematic.
16802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16803 else
16804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16805 fi
16806 else
16807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16808 fi
16809 need_lib_prefix=unknown
16810 hardcode_into_libs=no
16811
16812 # when you set need_version to no, make sure it does not cause -set_version
16813 # flags to be left without arguments
16814 need_version=unknown
16815
16816 case $host_os in
16817 aix3*)
16818 version_type=linux
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16820 shlibpath_var=LIBPATH
16821
16822 # AIX 3 has no versioning support, so we append a major version to the name.
16823 soname_spec='${libname}${release}${shared_ext}$major'
16824 ;;
16825
16826 aix4* | aix5*)
16827 version_type=linux
16828 need_lib_prefix=no
16829 need_version=no
16830 hardcode_into_libs=yes
16831 if test "$host_cpu" = ia64; then
16832 # AIX 5 supports IA64
16833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 else
16836 # With GCC up to 2.95.x, collect2 would create an import file
16837 # for dependence libraries. The import file would start with
16838 # the line `#! .'. This would cause the generated library to
16839 # depend on `.', always an invalid library. This was fixed in
16840 # development snapshots of GCC prior to 3.0.
16841 case $host_os in
16842 aix4 | aix4.[01] | aix4.[01].*)
16843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16844 echo ' yes '
16845 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16846 :
16847 else
16848 can_build_shared=no
16849 fi
16850 ;;
16851 esac
16852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16853 # soname into executable. Probably we can add versioning support to
16854 # collect2, so additional links can be useful in future.
16855 if test "$aix_use_runtimelinking" = yes; then
16856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16857 # instead of lib<name>.a to let people know that these are not
16858 # typical AIX shared libraries.
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 else
16861 # We preserve .a as extension for shared libraries through AIX4.2
16862 # and later when we are not doing run time linking.
16863 library_names_spec='${libname}${release}.a $libname.a'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 fi
16866 shlibpath_var=LIBPATH
16867 fi
16868 ;;
16869
16870 amigaos*)
16871 library_names_spec='$libname.ixlibrary $libname.a'
16872 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16873 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'
16874 ;;
16875
16876 beos*)
16877 library_names_spec='${libname}${shared_ext}'
16878 dynamic_linker="$host_os ld.so"
16879 shlibpath_var=LIBRARY_PATH
16880 ;;
16881
16882 bsdi4*)
16883 version_type=linux
16884 need_version=no
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16891 # the default ld.so.conf also contains /usr/contrib/lib and
16892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16893 # libtool to hard-code these into programs
16894 ;;
16895
16896 cygwin* | mingw* | pw32*)
16897 version_type=windows
16898 shrext=".dll"
16899 need_version=no
16900 need_lib_prefix=no
16901
16902 case $GCC,$host_os in
16903 yes,cygwin* | yes,mingw* | yes,pw32*)
16904 library_names_spec='$libname.dll.a'
16905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16906 postinstall_cmds='base_file=`basename \${file}`~
16907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16908 dldir=$destdir/`dirname \$dlpath`~
16909 test -d \$dldir || mkdir -p \$dldir~
16910 $install_prog $dir/$dlname \$dldir/$dlname'
16911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16912 dlpath=$dir/\$dldll~
16913 $rm \$dlpath'
16914 shlibpath_overrides_runpath=yes
16915
16916 case $host_os in
16917 cygwin*)
16918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16921 ;;
16922 mingw*)
16923 # MinGW DLLs use traditional 'lib' prefix
16924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16927 # It is most probably a Windows format PATH printed by
16928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16929 # path with ; separators, and with drive letters. We can handle the
16930 # drive letters (cygwin fileutils understands them), so leave them,
16931 # especially as we might pass files found there to a mingw objdump,
16932 # which wouldn't understand a cygwinified path. Ahh.
16933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16934 else
16935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16936 fi
16937 ;;
16938 pw32*)
16939 # pw32 DLLs use 'pw' prefix rather than 'lib'
16940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16941 ;;
16942 esac
16943 ;;
16944
16945 *)
16946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16947 ;;
16948 esac
16949 dynamic_linker='Win32 ld.exe'
16950 # FIXME: first we should search . and the directory the executable is in
16951 shlibpath_var=PATH
16952 ;;
16953
16954 darwin* | rhapsody*)
16955 dynamic_linker="$host_os dyld"
16956 version_type=darwin
16957 need_lib_prefix=no
16958 need_version=no
16959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16960 soname_spec='${libname}${release}${major}$shared_ext'
16961 shlibpath_overrides_runpath=yes
16962 shlibpath_var=DYLD_LIBRARY_PATH
16963 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16965 if test "$GCC" = yes; then
16966 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16967 else
16968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16969 fi
16970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16971 ;;
16972
16973 dgux*)
16974 version_type=linux
16975 need_lib_prefix=no
16976 need_version=no
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16978 soname_spec='${libname}${release}${shared_ext}$major'
16979 shlibpath_var=LD_LIBRARY_PATH
16980 ;;
16981
16982 freebsd1*)
16983 dynamic_linker=no
16984 ;;
16985
16986 kfreebsd*-gnu)
16987 version_type=linux
16988 need_lib_prefix=no
16989 need_version=no
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16991 soname_spec='${libname}${release}${shared_ext}$major'
16992 shlibpath_var=LD_LIBRARY_PATH
16993 shlibpath_overrides_runpath=no
16994 hardcode_into_libs=yes
16995 dynamic_linker='GNU ld.so'
16996 ;;
16997
16998 freebsd*)
16999 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17000 version_type=freebsd-$objformat
17001 case $version_type in
17002 freebsd-elf*)
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17004 need_version=no
17005 need_lib_prefix=no
17006 ;;
17007 freebsd-*)
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17009 need_version=yes
17010 ;;
17011 esac
17012 shlibpath_var=LD_LIBRARY_PATH
17013 case $host_os in
17014 freebsd2*)
17015 shlibpath_overrides_runpath=yes
17016 ;;
17017 freebsd3.01* | freebsdelf3.01*)
17018 shlibpath_overrides_runpath=yes
17019 hardcode_into_libs=yes
17020 ;;
17021 *) # from 3.2 on
17022 shlibpath_overrides_runpath=no
17023 hardcode_into_libs=yes
17024 ;;
17025 esac
17026 ;;
17027
17028 gnu*)
17029 version_type=linux
17030 need_lib_prefix=no
17031 need_version=no
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 shlibpath_var=LD_LIBRARY_PATH
17035 hardcode_into_libs=yes
17036 ;;
17037
17038 hpux9* | hpux10* | hpux11*)
17039 # Give a soname corresponding to the major version so that dld.sl refuses to
17040 # link against other versions.
17041 version_type=sunos
17042 need_lib_prefix=no
17043 need_version=no
17044 case "$host_cpu" in
17045 ia64*)
17046 shrext='.so'
17047 hardcode_into_libs=yes
17048 dynamic_linker="$host_os dld.so"
17049 shlibpath_var=LD_LIBRARY_PATH
17050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 if test "X$HPUX_IA64_MODE" = X32; then
17054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17055 else
17056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17057 fi
17058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17059 ;;
17060 hppa*64*)
17061 shrext='.sl'
17062 hardcode_into_libs=yes
17063 dynamic_linker="$host_os dld.sl"
17064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17070 ;;
17071 *)
17072 shrext='.sl'
17073 dynamic_linker="$host_os dld.sl"
17074 shlibpath_var=SHLIB_PATH
17075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 ;;
17079 esac
17080 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17081 postinstall_cmds='chmod 555 $lib'
17082 ;;
17083
17084 irix5* | irix6* | nonstopux*)
17085 case $host_os in
17086 nonstopux*) version_type=nonstopux ;;
17087 *)
17088 if test "$lt_cv_prog_gnu_ld" = yes; then
17089 version_type=linux
17090 else
17091 version_type=irix
17092 fi ;;
17093 esac
17094 need_lib_prefix=no
17095 need_version=no
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17098 case $host_os in
17099 irix5* | nonstopux*)
17100 libsuff= shlibsuff=
17101 ;;
17102 *)
17103 case $LD in # libtool.m4 will add one of these switches to LD
17104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17105 libsuff= shlibsuff= libmagic=32-bit;;
17106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17107 libsuff=32 shlibsuff=N32 libmagic=N32;;
17108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17110 *) libsuff= shlibsuff= libmagic=never-match;;
17111 esac
17112 ;;
17113 esac
17114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17115 shlibpath_overrides_runpath=no
17116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17118 hardcode_into_libs=yes
17119 ;;
17120
17121 # No shared lib support for Linux oldld, aout, or coff.
17122 linux*oldld* | linux*aout* | linux*coff*)
17123 dynamic_linker=no
17124 ;;
17125
17126 # This must be Linux ELF.
17127 linux*)
17128 version_type=linux
17129 need_lib_prefix=no
17130 need_version=no
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17132 soname_spec='${libname}${release}${shared_ext}$major'
17133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17134 shlibpath_var=LD_LIBRARY_PATH
17135 shlibpath_overrides_runpath=no
17136 # This implies no fast_install, which is unacceptable.
17137 # Some rework will be needed to allow for fast_install
17138 # before this can be enabled.
17139 hardcode_into_libs=yes
17140
17141 # Append ld.so.conf contents to the search path
17142 if test -f /etc/ld.so.conf; then
17143 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17144 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17145 fi
17146
17147 # We used to test for /lib/ld.so.1 and disable shared libraries on
17148 # powerpc, because MkLinux only supported shared libraries with the
17149 # GNU dynamic linker. Since this was broken with cross compilers,
17150 # most powerpc-linux boxes support dynamic linking these days and
17151 # people can always --disable-shared, the test was removed, and we
17152 # assume the GNU/Linux dynamic linker is in use.
17153 dynamic_linker='GNU/Linux ld.so'
17154 ;;
17155
17156 knetbsd*-gnu)
17157 version_type=linux
17158 need_lib_prefix=no
17159 need_version=no
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 shlibpath_overrides_runpath=no
17164 hardcode_into_libs=yes
17165 dynamic_linker='GNU ld.so'
17166 ;;
17167
17168 netbsd*)
17169 version_type=sunos
17170 need_lib_prefix=no
17171 need_version=no
17172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17175 dynamic_linker='NetBSD (a.out) ld.so'
17176 else
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 dynamic_linker='NetBSD ld.elf_so'
17180 fi
17181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=yes
17183 hardcode_into_libs=yes
17184 ;;
17185
17186 newsos6)
17187 version_type=linux
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189 shlibpath_var=LD_LIBRARY_PATH
17190 shlibpath_overrides_runpath=yes
17191 ;;
17192
17193 nto-qnx*)
17194 version_type=linux
17195 need_lib_prefix=no
17196 need_version=no
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 shlibpath_var=LD_LIBRARY_PATH
17200 shlibpath_overrides_runpath=yes
17201 ;;
17202
17203 openbsd*)
17204 version_type=sunos
17205 need_lib_prefix=no
17206 need_version=yes
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17211 case $host_os in
17212 openbsd2.[89] | openbsd2.[89].*)
17213 shlibpath_overrides_runpath=no
17214 ;;
17215 *)
17216 shlibpath_overrides_runpath=yes
17217 ;;
17218 esac
17219 else
17220 shlibpath_overrides_runpath=yes
17221 fi
17222 ;;
17223
17224 os2*)
17225 libname_spec='$name'
17226 shrext=".dll"
17227 need_lib_prefix=no
17228 library_names_spec='$libname${shared_ext} $libname.a'
17229 dynamic_linker='OS/2 ld.exe'
17230 shlibpath_var=LIBPATH
17231 ;;
17232
17233 osf3* | osf4* | osf5*)
17234 version_type=osf
17235 need_lib_prefix=no
17236 need_version=no
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17242 ;;
17243
17244 sco3.2v5*)
17245 version_type=osf
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248 shlibpath_var=LD_LIBRARY_PATH
17249 ;;
17250
17251 solaris*)
17252 version_type=linux
17253 need_lib_prefix=no
17254 need_version=no
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=yes
17259 hardcode_into_libs=yes
17260 # ldd complains unless libraries are executable
17261 postinstall_cmds='chmod +x $lib'
17262 ;;
17263
17264 sunos4*)
17265 version_type=sunos
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 shlibpath_overrides_runpath=yes
17270 if test "$with_gnu_ld" = yes; then
17271 need_lib_prefix=no
17272 fi
17273 need_version=yes
17274 ;;
17275
17276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17277 version_type=linux
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 case $host_vendor in
17282 sni)
17283 shlibpath_overrides_runpath=no
17284 need_lib_prefix=no
17285 export_dynamic_flag_spec='${wl}-Blargedynsym'
17286 runpath_var=LD_RUN_PATH
17287 ;;
17288 siemens)
17289 need_lib_prefix=no
17290 ;;
17291 motorola)
17292 need_lib_prefix=no
17293 need_version=no
17294 shlibpath_overrides_runpath=no
17295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17296 ;;
17297 esac
17298 ;;
17299
17300 sysv4*MP*)
17301 if test -d /usr/nec ;then
17302 version_type=linux
17303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17304 soname_spec='$libname${shared_ext}.$major'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 fi
17307 ;;
17308
17309 uts4*)
17310 version_type=linux
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 ;;
17315
17316 *)
17317 dynamic_linker=no
17318 ;;
17319 esac
17320 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17321 echo "${ECHO_T}$dynamic_linker" >&6
17322 test "$dynamic_linker" = no && can_build_shared=no
17323
17324 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17325 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17326 hardcode_action_GCJ=
17327 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17328 test -n "$runpath_var GCJ" || \
17329 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17330
17331 # We can hardcode non-existant directories.
17332 if test "$hardcode_direct_GCJ" != no &&
17333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17334 # have to relink, otherwise we might link with an installed library
17335 # when we should be linking with a yet-to-be-installed one
17336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17337 test "$hardcode_minus_L_GCJ" != no; then
17338 # Linking always hardcodes the temporary library directory.
17339 hardcode_action_GCJ=relink
17340 else
17341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17342 hardcode_action_GCJ=immediate
17343 fi
17344 else
17345 # We cannot hardcode anything, or else we can only hardcode existing
17346 # directories.
17347 hardcode_action_GCJ=unsupported
17348 fi
17349 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17350 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17351
17352 if test "$hardcode_action_GCJ" = relink; then
17353 # Fast installation is not supported
17354 enable_fast_install=no
17355 elif test "$shlibpath_overrides_runpath" = yes ||
17356 test "$enable_shared" = no; then
17357 # Fast installation is not necessary
17358 enable_fast_install=needless
17359 fi
17360
17361 striplib=
17362 old_striplib=
17363 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17364 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17365 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17368 echo "$as_me:$LINENO: result: yes" >&5
17369 echo "${ECHO_T}yes" >&6
17370 else
17371 # FIXME - insert some real tests, host_os isn't really good enough
17372 case $host_os in
17373 darwin*)
17374 if test -n "$STRIP" ; then
17375 striplib="$STRIP -x"
17376 echo "$as_me:$LINENO: result: yes" >&5
17377 echo "${ECHO_T}yes" >&6
17378 else
17379 echo "$as_me:$LINENO: result: no" >&5
17380 echo "${ECHO_T}no" >&6
17381 fi
17382 ;;
17383 *)
17384 echo "$as_me:$LINENO: result: no" >&5
17385 echo "${ECHO_T}no" >&6
17386 ;;
17387 esac
17388 fi
17389
17390 if test "x$enable_dlopen" != xyes; then
17391 enable_dlopen=unknown
17392 enable_dlopen_self=unknown
17393 enable_dlopen_self_static=unknown
17394 else
17395 lt_cv_dlopen=no
17396 lt_cv_dlopen_libs=
17397
17398 case $host_os in
17399 beos*)
17400 lt_cv_dlopen="load_add_on"
17401 lt_cv_dlopen_libs=
17402 lt_cv_dlopen_self=yes
17403 ;;
17404
17405 mingw* | pw32*)
17406 lt_cv_dlopen="LoadLibrary"
17407 lt_cv_dlopen_libs=
17408 ;;
17409
17410 cygwin*)
17411 lt_cv_dlopen="dlopen"
17412 lt_cv_dlopen_libs=
17413 ;;
17414
17415 darwin*)
17416 # if libdl is installed we need to link against it
17417 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17418 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 else
17422 ac_check_lib_save_LIBS=$LIBS
17423 LIBS="-ldl $LIBS"
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430
17431 /* Override any gcc2 internal prototype to avoid an error. */
17432 #ifdef __cplusplus
17433 extern "C"
17434 #endif
17435 /* We use char because int might match the return type of a gcc2
17436 builtin and then its argument prototype would still apply. */
17437 char dlopen ();
17438 int
17439 main ()
17440 {
17441 dlopen ();
17442 ;
17443 return 0;
17444 }
17445 _ACEOF
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17448 (eval $ac_link) 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -z "$ac_c_werror_flag"
17456 || test ! -s conftest.err'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try='test -s conftest$ac_exeext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_cv_lib_dl_dlopen=yes
17469 else
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473 ac_cv_lib_dl_dlopen=no
17474 fi
17475 rm -f conftest.err conftest.$ac_objext \
17476 conftest$ac_exeext conftest.$ac_ext
17477 LIBS=$ac_check_lib_save_LIBS
17478 fi
17479 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17480 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17481 if test $ac_cv_lib_dl_dlopen = yes; then
17482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17483 else
17484
17485 lt_cv_dlopen="dyld"
17486 lt_cv_dlopen_libs=
17487 lt_cv_dlopen_self=yes
17488
17489 fi
17490
17491 ;;
17492
17493 *)
17494 echo "$as_me:$LINENO: checking for shl_load" >&5
17495 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17496 if test "${ac_cv_func_shl_load+set}" = set; then
17497 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 else
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17507 #define shl_load innocuous_shl_load
17508
17509 /* System header to define __stub macros and hopefully few prototypes,
17510 which can conflict with char shl_load (); below.
17511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17512 <limits.h> exists even on freestanding compilers. */
17513
17514 #ifdef __STDC__
17515 # include <limits.h>
17516 #else
17517 # include <assert.h>
17518 #endif
17519
17520 #undef shl_load
17521
17522 /* Override any gcc2 internal prototype to avoid an error. */
17523 #ifdef __cplusplus
17524 extern "C"
17525 {
17526 #endif
17527 /* We use char because int might match the return type of a gcc2
17528 builtin and then its argument prototype would still apply. */
17529 char shl_load ();
17530 /* The GNU C library defines this for functions which it implements
17531 to always fail with ENOSYS. Some functions are actually named
17532 something starting with __ and the normal name is an alias. */
17533 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17534 choke me
17535 #else
17536 char (*f) () = shl_load;
17537 #endif
17538 #ifdef __cplusplus
17539 }
17540 #endif
17541
17542 int
17543 main ()
17544 {
17545 return f != shl_load;
17546 ;
17547 return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17552 (eval $ac_link) 2>conftest.er1
17553 ac_status=$?
17554 grep -v '^ *+' conftest.er1 >conftest.err
17555 rm -f conftest.er1
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag"
17560 || test ! -s conftest.err'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest$ac_exeext'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 ac_cv_func_shl_load=yes
17573 else
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577 ac_cv_func_shl_load=no
17578 fi
17579 rm -f conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17581 fi
17582 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17583 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17584 if test $ac_cv_func_shl_load = yes; then
17585 lt_cv_dlopen="shl_load"
17586 else
17587 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17588 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17589 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592 ac_check_lib_save_LIBS=$LIBS
17593 LIBS="-ldld $LIBS"
17594 cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h. */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600
17601 /* Override any gcc2 internal prototype to avoid an error. */
17602 #ifdef __cplusplus
17603 extern "C"
17604 #endif
17605 /* We use char because int might match the return type of a gcc2
17606 builtin and then its argument prototype would still apply. */
17607 char shl_load ();
17608 int
17609 main ()
17610 {
17611 shl_load ();
17612 ;
17613 return 0;
17614 }
17615 _ACEOF
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17618 (eval $ac_link) 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_lib_dld_shl_load=yes
17639 else
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643 ac_cv_lib_dld_shl_load=no
17644 fi
17645 rm -f conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17647 LIBS=$ac_check_lib_save_LIBS
17648 fi
17649 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17650 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17651 if test $ac_cv_lib_dld_shl_load = yes; then
17652 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17653 else
17654 echo "$as_me:$LINENO: checking for dlopen" >&5
17655 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17656 if test "${ac_cv_func_dlopen+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h. */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17667 #define dlopen innocuous_dlopen
17668
17669 /* System header to define __stub macros and hopefully few prototypes,
17670 which can conflict with char dlopen (); below.
17671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17672 <limits.h> exists even on freestanding compilers. */
17673
17674 #ifdef __STDC__
17675 # include <limits.h>
17676 #else
17677 # include <assert.h>
17678 #endif
17679
17680 #undef dlopen
17681
17682 /* Override any gcc2 internal prototype to avoid an error. */
17683 #ifdef __cplusplus
17684 extern "C"
17685 {
17686 #endif
17687 /* We use char because int might match the return type of a gcc2
17688 builtin and then its argument prototype would still apply. */
17689 char dlopen ();
17690 /* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17694 choke me
17695 #else
17696 char (*f) () = dlopen;
17697 #endif
17698 #ifdef __cplusplus
17699 }
17700 #endif
17701
17702 int
17703 main ()
17704 {
17705 return f != dlopen;
17706 ;
17707 return 0;
17708 }
17709 _ACEOF
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>conftest.er1
17713 ac_status=$?
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try='test -z "$ac_c_werror_flag"
17720 || test ! -s conftest.err'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest$ac_exeext'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 ac_cv_func_dlopen=yes
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 ac_cv_func_dlopen=no
17738 fi
17739 rm -f conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17741 fi
17742 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17743 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17744 if test $ac_cv_func_dlopen = yes; then
17745 lt_cv_dlopen="dlopen"
17746 else
17747 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17748 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752 ac_check_lib_save_LIBS=$LIBS
17753 LIBS="-ldl $LIBS"
17754 cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h. */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760
17761 /* Override any gcc2 internal prototype to avoid an error. */
17762 #ifdef __cplusplus
17763 extern "C"
17764 #endif
17765 /* We use char because int might match the return type of a gcc2
17766 builtin and then its argument prototype would still apply. */
17767 char dlopen ();
17768 int
17769 main ()
17770 {
17771 dlopen ();
17772 ;
17773 return 0;
17774 }
17775 _ACEOF
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17778 (eval $ac_link) 2>conftest.er1
17779 ac_status=$?
17780 grep -v '^ *+' conftest.er1 >conftest.err
17781 rm -f conftest.er1
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -z "$ac_c_werror_flag"
17786 || test ! -s conftest.err'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try='test -s conftest$ac_exeext'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 ac_cv_lib_dl_dlopen=yes
17799 else
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803 ac_cv_lib_dl_dlopen=no
17804 fi
17805 rm -f conftest.err conftest.$ac_objext \
17806 conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17808 fi
17809 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17811 if test $ac_cv_lib_dl_dlopen = yes; then
17812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17813 else
17814 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17815 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17816 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819 ac_check_lib_save_LIBS=$LIBS
17820 LIBS="-lsvld $LIBS"
17821 cat >conftest.$ac_ext <<_ACEOF
17822 /* confdefs.h. */
17823 _ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17827
17828 /* Override any gcc2 internal prototype to avoid an error. */
17829 #ifdef __cplusplus
17830 extern "C"
17831 #endif
17832 /* We use char because int might match the return type of a gcc2
17833 builtin and then its argument prototype would still apply. */
17834 char dlopen ();
17835 int
17836 main ()
17837 {
17838 dlopen ();
17839 ;
17840 return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest.$ac_objext conftest$ac_exeext
17844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17845 (eval $ac_link) 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag"
17853 || test ! -s conftest.err'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest$ac_exeext'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_lib_svld_dlopen=yes
17866 else
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870 ac_cv_lib_svld_dlopen=no
17871 fi
17872 rm -f conftest.err conftest.$ac_objext \
17873 conftest$ac_exeext conftest.$ac_ext
17874 LIBS=$ac_check_lib_save_LIBS
17875 fi
17876 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17877 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17878 if test $ac_cv_lib_svld_dlopen = yes; then
17879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17880 else
17881 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17882 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17883 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886 ac_check_lib_save_LIBS=$LIBS
17887 LIBS="-ldld $LIBS"
17888 cat >conftest.$ac_ext <<_ACEOF
17889 /* confdefs.h. */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17894
17895 /* Override any gcc2 internal prototype to avoid an error. */
17896 #ifdef __cplusplus
17897 extern "C"
17898 #endif
17899 /* We use char because int might match the return type of a gcc2
17900 builtin and then its argument prototype would still apply. */
17901 char dld_link ();
17902 int
17903 main ()
17904 {
17905 dld_link ();
17906 ;
17907 return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17912 (eval $ac_link) 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_cv_lib_dld_dld_link=yes
17933 else
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_cv_lib_dld_dld_link=no
17938 fi
17939 rm -f conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941 LIBS=$ac_check_lib_save_LIBS
17942 fi
17943 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17944 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17945 if test $ac_cv_lib_dld_dld_link = yes; then
17946 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17947 fi
17948
17949
17950 fi
17951
17952
17953 fi
17954
17955
17956 fi
17957
17958
17959 fi
17960
17961
17962 fi
17963
17964 ;;
17965 esac
17966
17967 if test "x$lt_cv_dlopen" != xno; then
17968 enable_dlopen=yes
17969 else
17970 enable_dlopen=no
17971 fi
17972
17973 case $lt_cv_dlopen in
17974 dlopen)
17975 save_CPPFLAGS="$CPPFLAGS"
17976 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17977
17978 save_LDFLAGS="$LDFLAGS"
17979 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17980
17981 save_LIBS="$LIBS"
17982 LIBS="$lt_cv_dlopen_libs $LIBS"
17983
17984 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17985 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17986 if test "${lt_cv_dlopen_self+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989 if test "$cross_compiling" = yes; then :
17990 lt_cv_dlopen_self=cross
17991 else
17992 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17993 lt_status=$lt_dlunknown
17994 cat > conftest.$ac_ext <<EOF
17995 #line 17995 "configure"
17996 #include "confdefs.h"
17997
17998 #if HAVE_DLFCN_H
17999 #include <dlfcn.h>
18000 #endif
18001
18002 #include <stdio.h>
18003
18004 #ifdef RTLD_GLOBAL
18005 # define LT_DLGLOBAL RTLD_GLOBAL
18006 #else
18007 # ifdef DL_GLOBAL
18008 # define LT_DLGLOBAL DL_GLOBAL
18009 # else
18010 # define LT_DLGLOBAL 0
18011 # endif
18012 #endif
18013
18014 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18015 find out it does not work in some platform. */
18016 #ifndef LT_DLLAZY_OR_NOW
18017 # ifdef RTLD_LAZY
18018 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18019 # else
18020 # ifdef DL_LAZY
18021 # define LT_DLLAZY_OR_NOW DL_LAZY
18022 # else
18023 # ifdef RTLD_NOW
18024 # define LT_DLLAZY_OR_NOW RTLD_NOW
18025 # else
18026 # ifdef DL_NOW
18027 # define LT_DLLAZY_OR_NOW DL_NOW
18028 # else
18029 # define LT_DLLAZY_OR_NOW 0
18030 # endif
18031 # endif
18032 # endif
18033 # endif
18034 #endif
18035
18036 #ifdef __cplusplus
18037 extern "C" void exit (int);
18038 #endif
18039
18040 void fnord() { int i=42;}
18041 int main ()
18042 {
18043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18044 int status = $lt_dlunknown;
18045
18046 if (self)
18047 {
18048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18049 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18050 /* dlclose (self); */
18051 }
18052
18053 exit (status);
18054 }
18055 EOF
18056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18057 (eval $ac_link) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18061 (./conftest; exit; ) 2>/dev/null
18062 lt_status=$?
18063 case x$lt_status in
18064 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18065 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18066 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18067 esac
18068 else :
18069 # compilation failed
18070 lt_cv_dlopen_self=no
18071 fi
18072 fi
18073 rm -fr conftest*
18074
18075
18076 fi
18077 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18078 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18079
18080 if test "x$lt_cv_dlopen_self" = xyes; then
18081 LDFLAGS="$LDFLAGS $link_static_flag"
18082 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18083 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18084 if test "${lt_cv_dlopen_self_static+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086 else
18087 if test "$cross_compiling" = yes; then :
18088 lt_cv_dlopen_self_static=cross
18089 else
18090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18091 lt_status=$lt_dlunknown
18092 cat > conftest.$ac_ext <<EOF
18093 #line 18093 "configure"
18094 #include "confdefs.h"
18095
18096 #if HAVE_DLFCN_H
18097 #include <dlfcn.h>
18098 #endif
18099
18100 #include <stdio.h>
18101
18102 #ifdef RTLD_GLOBAL
18103 # define LT_DLGLOBAL RTLD_GLOBAL
18104 #else
18105 # ifdef DL_GLOBAL
18106 # define LT_DLGLOBAL DL_GLOBAL
18107 # else
18108 # define LT_DLGLOBAL 0
18109 # endif
18110 #endif
18111
18112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18113 find out it does not work in some platform. */
18114 #ifndef LT_DLLAZY_OR_NOW
18115 # ifdef RTLD_LAZY
18116 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18117 # else
18118 # ifdef DL_LAZY
18119 # define LT_DLLAZY_OR_NOW DL_LAZY
18120 # else
18121 # ifdef RTLD_NOW
18122 # define LT_DLLAZY_OR_NOW RTLD_NOW
18123 # else
18124 # ifdef DL_NOW
18125 # define LT_DLLAZY_OR_NOW DL_NOW
18126 # else
18127 # define LT_DLLAZY_OR_NOW 0
18128 # endif
18129 # endif
18130 # endif
18131 # endif
18132 #endif
18133
18134 #ifdef __cplusplus
18135 extern "C" void exit (int);
18136 #endif
18137
18138 void fnord() { int i=42;}
18139 int main ()
18140 {
18141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18142 int status = $lt_dlunknown;
18143
18144 if (self)
18145 {
18146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18147 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18148 /* dlclose (self); */
18149 }
18150
18151 exit (status);
18152 }
18153 EOF
18154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18155 (eval $ac_link) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18159 (./conftest; exit; ) 2>/dev/null
18160 lt_status=$?
18161 case x$lt_status in
18162 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18163 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18164 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18165 esac
18166 else :
18167 # compilation failed
18168 lt_cv_dlopen_self_static=no
18169 fi
18170 fi
18171 rm -fr conftest*
18172
18173
18174 fi
18175 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18176 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18177 fi
18178
18179 CPPFLAGS="$save_CPPFLAGS"
18180 LDFLAGS="$save_LDFLAGS"
18181 LIBS="$save_LIBS"
18182 ;;
18183 esac
18184
18185 case $lt_cv_dlopen_self in
18186 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18187 *) enable_dlopen_self=unknown ;;
18188 esac
18189
18190 case $lt_cv_dlopen_self_static in
18191 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18192 *) enable_dlopen_self_static=unknown ;;
18193 esac
18194 fi
18195
18196
18197 # The else clause should only fire when bootstrapping the
18198 # libtool distribution, otherwise you forgot to ship ltmain.sh
18199 # with your package, and you will get complaints that there are
18200 # no rules to generate ltmain.sh.
18201 if test -f "$ltmain"; then
18202 # See if we are running on zsh, and set the options which allow our commands through
18203 # without removal of \ escapes.
18204 if test -n "${ZSH_VERSION+set}" ; then
18205 setopt NO_GLOB_SUBST
18206 fi
18207 # Now quote all the things that may contain metacharacters while being
18208 # careful not to overquote the AC_SUBSTed values. We take copies of the
18209 # variables and quote the copies for generation of the libtool script.
18210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18211 SED SHELL STRIP \
18212 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18213 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18214 deplibs_check_method reload_flag reload_cmds need_locks \
18215 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18216 lt_cv_sys_global_symbol_to_c_name_address \
18217 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18218 old_postinstall_cmds old_postuninstall_cmds \
18219 compiler_GCJ \
18220 CC_GCJ \
18221 LD_GCJ \
18222 lt_prog_compiler_wl_GCJ \
18223 lt_prog_compiler_pic_GCJ \
18224 lt_prog_compiler_static_GCJ \
18225 lt_prog_compiler_no_builtin_flag_GCJ \
18226 export_dynamic_flag_spec_GCJ \
18227 thread_safe_flag_spec_GCJ \
18228 whole_archive_flag_spec_GCJ \
18229 enable_shared_with_static_runtimes_GCJ \
18230 old_archive_cmds_GCJ \
18231 old_archive_from_new_cmds_GCJ \
18232 predep_objects_GCJ \
18233 postdep_objects_GCJ \
18234 predeps_GCJ \
18235 postdeps_GCJ \
18236 compiler_lib_search_path_GCJ \
18237 archive_cmds_GCJ \
18238 archive_expsym_cmds_GCJ \
18239 postinstall_cmds_GCJ \
18240 postuninstall_cmds_GCJ \
18241 old_archive_from_expsyms_cmds_GCJ \
18242 allow_undefined_flag_GCJ \
18243 no_undefined_flag_GCJ \
18244 export_symbols_cmds_GCJ \
18245 hardcode_libdir_flag_spec_GCJ \
18246 hardcode_libdir_flag_spec_ld_GCJ \
18247 hardcode_libdir_separator_GCJ \
18248 hardcode_automatic_GCJ \
18249 module_cmds_GCJ \
18250 module_expsym_cmds_GCJ \
18251 lt_cv_prog_compiler_c_o_GCJ \
18252 exclude_expsyms_GCJ \
18253 include_expsyms_GCJ; do
18254
18255 case $var in
18256 old_archive_cmds_GCJ | \
18257 old_archive_from_new_cmds_GCJ | \
18258 archive_cmds_GCJ | \
18259 archive_expsym_cmds_GCJ | \
18260 module_cmds_GCJ | \
18261 module_expsym_cmds_GCJ | \
18262 old_archive_from_expsyms_cmds_GCJ | \
18263 export_symbols_cmds_GCJ | \
18264 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18265 postinstall_cmds | postuninstall_cmds | \
18266 old_postinstall_cmds | old_postuninstall_cmds | \
18267 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18268 # Double-quote double-evaled strings.
18269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18270 ;;
18271 *)
18272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18273 ;;
18274 esac
18275 done
18276
18277 case $lt_echo in
18278 *'\$0 --fallback-echo"')
18279 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18280 ;;
18281 esac
18282
18283 cfgfile="$ofile"
18284
18285 cat <<__EOF__ >> "$cfgfile"
18286 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18287
18288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18289
18290 # Shell to use when invoking shell scripts.
18291 SHELL=$lt_SHELL
18292
18293 # Whether or not to build shared libraries.
18294 build_libtool_libs=$enable_shared
18295
18296 # Whether or not to build static libraries.
18297 build_old_libs=$enable_static
18298
18299 # Whether or not to add -lc for building shared libraries.
18300 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18301
18302 # Whether or not to disallow shared libs when runtime libs are static
18303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18304
18305 # Whether or not to optimize for fast installation.
18306 fast_install=$enable_fast_install
18307
18308 # The host system.
18309 host_alias=$host_alias
18310 host=$host
18311
18312 # An echo program that does not interpret backslashes.
18313 echo=$lt_echo
18314
18315 # The archiver.
18316 AR=$lt_AR
18317 AR_FLAGS=$lt_AR_FLAGS
18318
18319 # A C compiler.
18320 LTCC=$lt_LTCC
18321
18322 # A language-specific compiler.
18323 CC=$lt_compiler_GCJ
18324
18325 # Is the compiler the GNU C compiler?
18326 with_gcc=$GCC_GCJ
18327
18328 # An ERE matcher.
18329 EGREP=$lt_EGREP
18330
18331 # The linker used to build libraries.
18332 LD=$lt_LD_GCJ
18333
18334 # Whether we need hard or soft links.
18335 LN_S=$lt_LN_S
18336
18337 # A BSD-compatible nm program.
18338 NM=$lt_NM
18339
18340 # A symbol stripping program
18341 STRIP=$lt_STRIP
18342
18343 # Used to examine libraries when file_magic_cmd begins "file"
18344 MAGIC_CMD=$MAGIC_CMD
18345
18346 # Used on cygwin: DLL creation program.
18347 DLLTOOL="$DLLTOOL"
18348
18349 # Used on cygwin: object dumper.
18350 OBJDUMP="$OBJDUMP"
18351
18352 # Used on cygwin: assembler.
18353 AS="$AS"
18354
18355 # The name of the directory that contains temporary libtool files.
18356 objdir=$objdir
18357
18358 # How to create reloadable object files.
18359 reload_flag=$lt_reload_flag
18360 reload_cmds=$lt_reload_cmds
18361
18362 # How to pass a linker flag through the compiler.
18363 wl=$lt_lt_prog_compiler_wl_GCJ
18364
18365 # Object file suffix (normally "o").
18366 objext="$ac_objext"
18367
18368 # Old archive suffix (normally "a").
18369 libext="$libext"
18370
18371 # Shared library suffix (normally ".so").
18372 shrext='$shrext'
18373
18374 # Executable file suffix (normally "").
18375 exeext="$exeext"
18376
18377 # Additional compiler flags for building library objects.
18378 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18379 pic_mode=$pic_mode
18380
18381 # What is the maximum length of a command?
18382 max_cmd_len=$lt_cv_sys_max_cmd_len
18383
18384 # Does compiler simultaneously support -c and -o options?
18385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18386
18387 # Must we lock files when doing compilation ?
18388 need_locks=$lt_need_locks
18389
18390 # Do we need the lib prefix for modules?
18391 need_lib_prefix=$need_lib_prefix
18392
18393 # Do we need a version for libraries?
18394 need_version=$need_version
18395
18396 # Whether dlopen is supported.
18397 dlopen_support=$enable_dlopen
18398
18399 # Whether dlopen of programs is supported.
18400 dlopen_self=$enable_dlopen_self
18401
18402 # Whether dlopen of statically linked programs is supported.
18403 dlopen_self_static=$enable_dlopen_self_static
18404
18405 # Compiler flag to prevent dynamic linking.
18406 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18407
18408 # Compiler flag to turn off builtin functions.
18409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18410
18411 # Compiler flag to allow reflexive dlopens.
18412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18413
18414 # Compiler flag to generate shared objects directly from archives.
18415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18416
18417 # Compiler flag to generate thread-safe objects.
18418 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18419
18420 # Library versioning type.
18421 version_type=$version_type
18422
18423 # Format of library name prefix.
18424 libname_spec=$lt_libname_spec
18425
18426 # List of archive names. First name is the real one, the rest are links.
18427 # The last name is the one that the linker finds with -lNAME.
18428 library_names_spec=$lt_library_names_spec
18429
18430 # The coded name of the library, if different from the real name.
18431 soname_spec=$lt_soname_spec
18432
18433 # Commands used to build and install an old-style archive.
18434 RANLIB=$lt_RANLIB
18435 old_archive_cmds=$lt_old_archive_cmds_GCJ
18436 old_postinstall_cmds=$lt_old_postinstall_cmds
18437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18438
18439 # Create an old-style archive from a shared archive.
18440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18441
18442 # Create a temporary old-style archive to link instead of a shared archive.
18443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18444
18445 # Commands used to build and install a shared archive.
18446 archive_cmds=$lt_archive_cmds_GCJ
18447 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18448 postinstall_cmds=$lt_postinstall_cmds
18449 postuninstall_cmds=$lt_postuninstall_cmds
18450
18451 # Commands used to build a loadable module (assumed same as above if empty)
18452 module_cmds=$lt_module_cmds_GCJ
18453 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18454
18455 # Commands to strip libraries.
18456 old_striplib=$lt_old_striplib
18457 striplib=$lt_striplib
18458
18459 # Dependencies to place before the objects being linked to create a
18460 # shared library.
18461 predep_objects=$lt_predep_objects_GCJ
18462
18463 # Dependencies to place after the objects being linked to create a
18464 # shared library.
18465 postdep_objects=$lt_postdep_objects_GCJ
18466
18467 # Dependencies to place before the objects being linked to create a
18468 # shared library.
18469 predeps=$lt_predeps_GCJ
18470
18471 # Dependencies to place after the objects being linked to create a
18472 # shared library.
18473 postdeps=$lt_postdeps_GCJ
18474
18475 # The library search path used internally by the compiler when linking
18476 # a shared library.
18477 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18478
18479 # Method to check whether dependent libraries are shared objects.
18480 deplibs_check_method=$lt_deplibs_check_method
18481
18482 # Command to use when deplibs_check_method == file_magic.
18483 file_magic_cmd=$lt_file_magic_cmd
18484
18485 # Flag that allows shared libraries with undefined symbols to be built.
18486 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18487
18488 # Flag that forces no undefined symbols.
18489 no_undefined_flag=$lt_no_undefined_flag_GCJ
18490
18491 # Commands used to finish a libtool library installation in a directory.
18492 finish_cmds=$lt_finish_cmds
18493
18494 # Same as above, but a single script fragment to be evaled but not shown.
18495 finish_eval=$lt_finish_eval
18496
18497 # Take the output of nm and produce a listing of raw symbols and C names.
18498 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18499
18500 # Transform the output of nm in a proper C declaration
18501 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18502
18503 # Transform the output of nm in a C name address pair
18504 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18505
18506 # This is the shared library runtime path variable.
18507 runpath_var=$runpath_var
18508
18509 # This is the shared library path variable.
18510 shlibpath_var=$shlibpath_var
18511
18512 # Is shlibpath searched before the hard-coded library search path?
18513 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18514
18515 # How to hardcode a shared library path into an executable.
18516 hardcode_action=$hardcode_action_GCJ
18517
18518 # Whether we should hardcode library paths into libraries.
18519 hardcode_into_libs=$hardcode_into_libs
18520
18521 # Flag to hardcode \$libdir into a binary during linking.
18522 # This must work even if \$libdir does not exist.
18523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18524
18525 # If ld is used when linking, flag to hardcode \$libdir into
18526 # a binary during linking. This must work even if \$libdir does
18527 # not exist.
18528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18529
18530 # Whether we need a single -rpath flag with a separated argument.
18531 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18532
18533 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18534 # resulting binary.
18535 hardcode_direct=$hardcode_direct_GCJ
18536
18537 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18538 # resulting binary.
18539 hardcode_minus_L=$hardcode_minus_L_GCJ
18540
18541 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18542 # the resulting binary.
18543 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18544
18545 # Set to yes if building a shared library automatically hardcodes DIR into the library
18546 # and all subsequent libraries and executables linked against it.
18547 hardcode_automatic=$hardcode_automatic_GCJ
18548
18549 # Variables whose values should be saved in libtool wrapper scripts and
18550 # restored at relink time.
18551 variables_saved_for_relink="$variables_saved_for_relink"
18552
18553 # Whether libtool must link a program against all its dependency libraries.
18554 link_all_deplibs=$link_all_deplibs_GCJ
18555
18556 # Compile-time system search path for libraries
18557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18558
18559 # Run-time system search path for libraries
18560 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18561
18562 # Fix the shell variable \$srcfile for the compiler.
18563 fix_srcfile_path="$fix_srcfile_path_GCJ"
18564
18565 # Set to yes if exported symbols are required.
18566 always_export_symbols=$always_export_symbols_GCJ
18567
18568 # The commands to list exported symbols.
18569 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18570
18571 # The commands to extract the exported symbol list from a shared archive.
18572 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18573
18574 # Symbols that should not be listed in the preloaded symbols.
18575 exclude_expsyms=$lt_exclude_expsyms_GCJ
18576
18577 # Symbols that must always be exported.
18578 include_expsyms=$lt_include_expsyms_GCJ
18579
18580 # ### END LIBTOOL TAG CONFIG: $tagname
18581
18582 __EOF__
18583
18584
18585 else
18586 # If there is no Makefile yet, we rely on a make rule to execute
18587 # `config.status --recheck' to rerun these tests and create the
18588 # libtool script then.
18589 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18590 if test -f "$ltmain_in"; then
18591 test -f Makefile && make "$ltmain"
18592 fi
18593 fi
18594
18595
18596 ac_ext=c
18597 ac_cpp='$CPP $CPPFLAGS'
18598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18601
18602 CC="$lt_save_CC"
18603
18604 else
18605 tagname=""
18606 fi
18607 ;;
18608
18609 RC)
18610
18611
18612
18613 # Source file extension for RC test sources.
18614 ac_ext=rc
18615
18616 # Object file extension for compiled RC test sources.
18617 objext=o
18618 objext_RC=$objext
18619
18620 # Code to be used in simple compile tests
18621 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18622
18623 # Code to be used in simple link tests
18624 lt_simple_link_test_code="$lt_simple_compile_test_code"
18625
18626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18627
18628 # If no C compiler was specified, use CC.
18629 LTCC=${LTCC-"$CC"}
18630
18631 # Allow CC to be a program name with arguments.
18632 compiler=$CC
18633
18634
18635 # Allow CC to be a program name with arguments.
18636 lt_save_CC="$CC"
18637 CC=${RC-"windres"}
18638 compiler=$CC
18639 compiler_RC=$CC
18640 lt_cv_prog_compiler_c_o_RC=yes
18641
18642 # The else clause should only fire when bootstrapping the
18643 # libtool distribution, otherwise you forgot to ship ltmain.sh
18644 # with your package, and you will get complaints that there are
18645 # no rules to generate ltmain.sh.
18646 if test -f "$ltmain"; then
18647 # See if we are running on zsh, and set the options which allow our commands through
18648 # without removal of \ escapes.
18649 if test -n "${ZSH_VERSION+set}" ; then
18650 setopt NO_GLOB_SUBST
18651 fi
18652 # Now quote all the things that may contain metacharacters while being
18653 # careful not to overquote the AC_SUBSTed values. We take copies of the
18654 # variables and quote the copies for generation of the libtool script.
18655 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18656 SED SHELL STRIP \
18657 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18658 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18659 deplibs_check_method reload_flag reload_cmds need_locks \
18660 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18661 lt_cv_sys_global_symbol_to_c_name_address \
18662 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18663 old_postinstall_cmds old_postuninstall_cmds \
18664 compiler_RC \
18665 CC_RC \
18666 LD_RC \
18667 lt_prog_compiler_wl_RC \
18668 lt_prog_compiler_pic_RC \
18669 lt_prog_compiler_static_RC \
18670 lt_prog_compiler_no_builtin_flag_RC \
18671 export_dynamic_flag_spec_RC \
18672 thread_safe_flag_spec_RC \
18673 whole_archive_flag_spec_RC \
18674 enable_shared_with_static_runtimes_RC \
18675 old_archive_cmds_RC \
18676 old_archive_from_new_cmds_RC \
18677 predep_objects_RC \
18678 postdep_objects_RC \
18679 predeps_RC \
18680 postdeps_RC \
18681 compiler_lib_search_path_RC \
18682 archive_cmds_RC \
18683 archive_expsym_cmds_RC \
18684 postinstall_cmds_RC \
18685 postuninstall_cmds_RC \
18686 old_archive_from_expsyms_cmds_RC \
18687 allow_undefined_flag_RC \
18688 no_undefined_flag_RC \
18689 export_symbols_cmds_RC \
18690 hardcode_libdir_flag_spec_RC \
18691 hardcode_libdir_flag_spec_ld_RC \
18692 hardcode_libdir_separator_RC \
18693 hardcode_automatic_RC \
18694 module_cmds_RC \
18695 module_expsym_cmds_RC \
18696 lt_cv_prog_compiler_c_o_RC \
18697 exclude_expsyms_RC \
18698 include_expsyms_RC; do
18699
18700 case $var in
18701 old_archive_cmds_RC | \
18702 old_archive_from_new_cmds_RC | \
18703 archive_cmds_RC | \
18704 archive_expsym_cmds_RC | \
18705 module_cmds_RC | \
18706 module_expsym_cmds_RC | \
18707 old_archive_from_expsyms_cmds_RC | \
18708 export_symbols_cmds_RC | \
18709 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18710 postinstall_cmds | postuninstall_cmds | \
18711 old_postinstall_cmds | old_postuninstall_cmds | \
18712 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18713 # Double-quote double-evaled strings.
18714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18715 ;;
18716 *)
18717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18718 ;;
18719 esac
18720 done
18721
18722 case $lt_echo in
18723 *'\$0 --fallback-echo"')
18724 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18725 ;;
18726 esac
18727
18728 cfgfile="$ofile"
18729
18730 cat <<__EOF__ >> "$cfgfile"
18731 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18732
18733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18734
18735 # Shell to use when invoking shell scripts.
18736 SHELL=$lt_SHELL
18737
18738 # Whether or not to build shared libraries.
18739 build_libtool_libs=$enable_shared
18740
18741 # Whether or not to build static libraries.
18742 build_old_libs=$enable_static
18743
18744 # Whether or not to add -lc for building shared libraries.
18745 build_libtool_need_lc=$archive_cmds_need_lc_RC
18746
18747 # Whether or not to disallow shared libs when runtime libs are static
18748 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18749
18750 # Whether or not to optimize for fast installation.
18751 fast_install=$enable_fast_install
18752
18753 # The host system.
18754 host_alias=$host_alias
18755 host=$host
18756
18757 # An echo program that does not interpret backslashes.
18758 echo=$lt_echo
18759
18760 # The archiver.
18761 AR=$lt_AR
18762 AR_FLAGS=$lt_AR_FLAGS
18763
18764 # A C compiler.
18765 LTCC=$lt_LTCC
18766
18767 # A language-specific compiler.
18768 CC=$lt_compiler_RC
18769
18770 # Is the compiler the GNU C compiler?
18771 with_gcc=$GCC_RC
18772
18773 # An ERE matcher.
18774 EGREP=$lt_EGREP
18775
18776 # The linker used to build libraries.
18777 LD=$lt_LD_RC
18778
18779 # Whether we need hard or soft links.
18780 LN_S=$lt_LN_S
18781
18782 # A BSD-compatible nm program.
18783 NM=$lt_NM
18784
18785 # A symbol stripping program
18786 STRIP=$lt_STRIP
18787
18788 # Used to examine libraries when file_magic_cmd begins "file"
18789 MAGIC_CMD=$MAGIC_CMD
18790
18791 # Used on cygwin: DLL creation program.
18792 DLLTOOL="$DLLTOOL"
18793
18794 # Used on cygwin: object dumper.
18795 OBJDUMP="$OBJDUMP"
18796
18797 # Used on cygwin: assembler.
18798 AS="$AS"
18799
18800 # The name of the directory that contains temporary libtool files.
18801 objdir=$objdir
18802
18803 # How to create reloadable object files.
18804 reload_flag=$lt_reload_flag
18805 reload_cmds=$lt_reload_cmds
18806
18807 # How to pass a linker flag through the compiler.
18808 wl=$lt_lt_prog_compiler_wl_RC
18809
18810 # Object file suffix (normally "o").
18811 objext="$ac_objext"
18812
18813 # Old archive suffix (normally "a").
18814 libext="$libext"
18815
18816 # Shared library suffix (normally ".so").
18817 shrext='$shrext'
18818
18819 # Executable file suffix (normally "").
18820 exeext="$exeext"
18821
18822 # Additional compiler flags for building library objects.
18823 pic_flag=$lt_lt_prog_compiler_pic_RC
18824 pic_mode=$pic_mode
18825
18826 # What is the maximum length of a command?
18827 max_cmd_len=$lt_cv_sys_max_cmd_len
18828
18829 # Does compiler simultaneously support -c and -o options?
18830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18831
18832 # Must we lock files when doing compilation ?
18833 need_locks=$lt_need_locks
18834
18835 # Do we need the lib prefix for modules?
18836 need_lib_prefix=$need_lib_prefix
18837
18838 # Do we need a version for libraries?
18839 need_version=$need_version
18840
18841 # Whether dlopen is supported.
18842 dlopen_support=$enable_dlopen
18843
18844 # Whether dlopen of programs is supported.
18845 dlopen_self=$enable_dlopen_self
18846
18847 # Whether dlopen of statically linked programs is supported.
18848 dlopen_self_static=$enable_dlopen_self_static
18849
18850 # Compiler flag to prevent dynamic linking.
18851 link_static_flag=$lt_lt_prog_compiler_static_RC
18852
18853 # Compiler flag to turn off builtin functions.
18854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18855
18856 # Compiler flag to allow reflexive dlopens.
18857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18858
18859 # Compiler flag to generate shared objects directly from archives.
18860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18861
18862 # Compiler flag to generate thread-safe objects.
18863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18864
18865 # Library versioning type.
18866 version_type=$version_type
18867
18868 # Format of library name prefix.
18869 libname_spec=$lt_libname_spec
18870
18871 # List of archive names. First name is the real one, the rest are links.
18872 # The last name is the one that the linker finds with -lNAME.
18873 library_names_spec=$lt_library_names_spec
18874
18875 # The coded name of the library, if different from the real name.
18876 soname_spec=$lt_soname_spec
18877
18878 # Commands used to build and install an old-style archive.
18879 RANLIB=$lt_RANLIB
18880 old_archive_cmds=$lt_old_archive_cmds_RC
18881 old_postinstall_cmds=$lt_old_postinstall_cmds
18882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18883
18884 # Create an old-style archive from a shared archive.
18885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18886
18887 # Create a temporary old-style archive to link instead of a shared archive.
18888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18889
18890 # Commands used to build and install a shared archive.
18891 archive_cmds=$lt_archive_cmds_RC
18892 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18893 postinstall_cmds=$lt_postinstall_cmds
18894 postuninstall_cmds=$lt_postuninstall_cmds
18895
18896 # Commands used to build a loadable module (assumed same as above if empty)
18897 module_cmds=$lt_module_cmds_RC
18898 module_expsym_cmds=$lt_module_expsym_cmds_RC
18899
18900 # Commands to strip libraries.
18901 old_striplib=$lt_old_striplib
18902 striplib=$lt_striplib
18903
18904 # Dependencies to place before the objects being linked to create a
18905 # shared library.
18906 predep_objects=$lt_predep_objects_RC
18907
18908 # Dependencies to place after the objects being linked to create a
18909 # shared library.
18910 postdep_objects=$lt_postdep_objects_RC
18911
18912 # Dependencies to place before the objects being linked to create a
18913 # shared library.
18914 predeps=$lt_predeps_RC
18915
18916 # Dependencies to place after the objects being linked to create a
18917 # shared library.
18918 postdeps=$lt_postdeps_RC
18919
18920 # The library search path used internally by the compiler when linking
18921 # a shared library.
18922 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18923
18924 # Method to check whether dependent libraries are shared objects.
18925 deplibs_check_method=$lt_deplibs_check_method
18926
18927 # Command to use when deplibs_check_method == file_magic.
18928 file_magic_cmd=$lt_file_magic_cmd
18929
18930 # Flag that allows shared libraries with undefined symbols to be built.
18931 allow_undefined_flag=$lt_allow_undefined_flag_RC
18932
18933 # Flag that forces no undefined symbols.
18934 no_undefined_flag=$lt_no_undefined_flag_RC
18935
18936 # Commands used to finish a libtool library installation in a directory.
18937 finish_cmds=$lt_finish_cmds
18938
18939 # Same as above, but a single script fragment to be evaled but not shown.
18940 finish_eval=$lt_finish_eval
18941
18942 # Take the output of nm and produce a listing of raw symbols and C names.
18943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18944
18945 # Transform the output of nm in a proper C declaration
18946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18947
18948 # Transform the output of nm in a C name address pair
18949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18950
18951 # This is the shared library runtime path variable.
18952 runpath_var=$runpath_var
18953
18954 # This is the shared library path variable.
18955 shlibpath_var=$shlibpath_var
18956
18957 # Is shlibpath searched before the hard-coded library search path?
18958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18959
18960 # How to hardcode a shared library path into an executable.
18961 hardcode_action=$hardcode_action_RC
18962
18963 # Whether we should hardcode library paths into libraries.
18964 hardcode_into_libs=$hardcode_into_libs
18965
18966 # Flag to hardcode \$libdir into a binary during linking.
18967 # This must work even if \$libdir does not exist.
18968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18969
18970 # If ld is used when linking, flag to hardcode \$libdir into
18971 # a binary during linking. This must work even if \$libdir does
18972 # not exist.
18973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18974
18975 # Whether we need a single -rpath flag with a separated argument.
18976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18977
18978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18979 # resulting binary.
18980 hardcode_direct=$hardcode_direct_RC
18981
18982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18983 # resulting binary.
18984 hardcode_minus_L=$hardcode_minus_L_RC
18985
18986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18987 # the resulting binary.
18988 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18989
18990 # Set to yes if building a shared library automatically hardcodes DIR into the library
18991 # and all subsequent libraries and executables linked against it.
18992 hardcode_automatic=$hardcode_automatic_RC
18993
18994 # Variables whose values should be saved in libtool wrapper scripts and
18995 # restored at relink time.
18996 variables_saved_for_relink="$variables_saved_for_relink"
18997
18998 # Whether libtool must link a program against all its dependency libraries.
18999 link_all_deplibs=$link_all_deplibs_RC
19000
19001 # Compile-time system search path for libraries
19002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19003
19004 # Run-time system search path for libraries
19005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19006
19007 # Fix the shell variable \$srcfile for the compiler.
19008 fix_srcfile_path="$fix_srcfile_path_RC"
19009
19010 # Set to yes if exported symbols are required.
19011 always_export_symbols=$always_export_symbols_RC
19012
19013 # The commands to list exported symbols.
19014 export_symbols_cmds=$lt_export_symbols_cmds_RC
19015
19016 # The commands to extract the exported symbol list from a shared archive.
19017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19018
19019 # Symbols that should not be listed in the preloaded symbols.
19020 exclude_expsyms=$lt_exclude_expsyms_RC
19021
19022 # Symbols that must always be exported.
19023 include_expsyms=$lt_include_expsyms_RC
19024
19025 # ### END LIBTOOL TAG CONFIG: $tagname
19026
19027 __EOF__
19028
19029
19030 else
19031 # If there is no Makefile yet, we rely on a make rule to execute
19032 # `config.status --recheck' to rerun these tests and create the
19033 # libtool script then.
19034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19035 if test -f "$ltmain_in"; then
19036 test -f Makefile && make "$ltmain"
19037 fi
19038 fi
19039
19040
19041 ac_ext=c
19042 ac_cpp='$CPP $CPPFLAGS'
19043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19046
19047 CC="$lt_save_CC"
19048
19049 ;;
19050
19051 *)
19052 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19053 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19054 { (exit 1); exit 1; }; }
19055 ;;
19056 esac
19057
19058 # Append the new tag name to the list of available tags.
19059 if test -n "$tagname" ; then
19060 available_tags="$available_tags $tagname"
19061 fi
19062 fi
19063 done
19064 IFS="$lt_save_ifs"
19065
19066 # Now substitute the updated list of available tags.
19067 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19068 mv "${ofile}T" "$ofile"
19069 chmod +x "$ofile"
19070 else
19071 rm -f "${ofile}T"
19072 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19073 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19074 { (exit 1); exit 1; }; }
19075 fi
19076 fi
19077
19078
19079
19080 # This can be used to rebuild libtool when needed
19081 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19082
19083 # Always use our own libtool.
19084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19085
19086 # Prevent multiple expansion
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107 # Find a good install program. We prefer a C program (faster),
19108 # so one script is as good as another. But avoid the broken or
19109 # incompatible versions:
19110 # SysV /etc/install, /usr/sbin/install
19111 # SunOS /usr/etc/install
19112 # IRIX /sbin/install
19113 # AIX /bin/install
19114 # AmigaOS /C/install, which installs bootblocks on floppy discs
19115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19118 # OS/2's system install, which has a completely different semantic
19119 # ./install, which can be erroneously created by make from ./install.sh.
19120 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19122 if test -z "$INSTALL"; then
19123 if test "${ac_cv_path_install+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 for as_dir in $PATH
19128 do
19129 IFS=$as_save_IFS
19130 test -z "$as_dir" && as_dir=.
19131 # Account for people who put trailing slashes in PATH elements.
19132 case $as_dir/ in
19133 ./ | .// | /cC/* | \
19134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19136 /usr/ucb/* ) ;;
19137 *)
19138 # OSF1 and SCO ODT 3.0 have their own names for install.
19139 # Don't use installbsd from OSF since it installs stuff as root
19140 # by default.
19141 for ac_prog in ginstall scoinst install; do
19142 for ac_exec_ext in '' $ac_executable_extensions; do
19143 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19144 if test $ac_prog = install &&
19145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19146 # AIX install. It has an incompatible calling convention.
19147 :
19148 elif test $ac_prog = install &&
19149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19150 # program-specific install script used by HP pwplus--don't use.
19151 :
19152 else
19153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19154 break 3
19155 fi
19156 fi
19157 done
19158 done
19159 ;;
19160 esac
19161 done
19162
19163
19164 fi
19165 if test "${ac_cv_path_install+set}" = set; then
19166 INSTALL=$ac_cv_path_install
19167 else
19168 # As a last resort, use the slow shell script. We don't cache a
19169 # path for INSTALL within a source directory, because that will
19170 # break other packages using the cache if that directory is
19171 # removed, or if the path is relative.
19172 INSTALL=$ac_install_sh
19173 fi
19174 fi
19175 echo "$as_me:$LINENO: result: $INSTALL" >&5
19176 echo "${ECHO_T}$INSTALL" >&6
19177
19178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19179 # It thinks the first close brace ends the variable substitution.
19180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19181
19182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19183
19184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19185
19186 for ac_prog in gawk mawk nawk awk
19187 do
19188 # Extract the first word of "$ac_prog", so it can be a program name with args.
19189 set dummy $ac_prog; ac_word=$2
19190 echo "$as_me:$LINENO: checking for $ac_word" >&5
19191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19192 if test "${ac_cv_prog_AWK+set}" = set; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19194 else
19195 if test -n "$AWK"; then
19196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19197 else
19198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19199 for as_dir in $PATH
19200 do
19201 IFS=$as_save_IFS
19202 test -z "$as_dir" && as_dir=.
19203 for ac_exec_ext in '' $ac_executable_extensions; do
19204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19205 ac_cv_prog_AWK="$ac_prog"
19206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19207 break 2
19208 fi
19209 done
19210 done
19211
19212 fi
19213 fi
19214 AWK=$ac_cv_prog_AWK
19215 if test -n "$AWK"; then
19216 echo "$as_me:$LINENO: result: $AWK" >&5
19217 echo "${ECHO_T}$AWK" >&6
19218 else
19219 echo "$as_me:$LINENO: result: no" >&5
19220 echo "${ECHO_T}no" >&6
19221 fi
19222
19223 test -n "$AWK" && break
19224 done
19225
19226
19227 ac_ext=c
19228 ac_cpp='$CPP $CPPFLAGS'
19229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19232 if test -n "$ac_tool_prefix"; then
19233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19235 echo "$as_me:$LINENO: checking for $ac_word" >&5
19236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19237 if test "${ac_cv_prog_CC+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 else
19240 if test -n "$CC"; then
19241 ac_cv_prog_CC="$CC" # Let the user override the test.
19242 else
19243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19244 for as_dir in $PATH
19245 do
19246 IFS=$as_save_IFS
19247 test -z "$as_dir" && as_dir=.
19248 for ac_exec_ext in '' $ac_executable_extensions; do
19249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19252 break 2
19253 fi
19254 done
19255 done
19256
19257 fi
19258 fi
19259 CC=$ac_cv_prog_CC
19260 if test -n "$CC"; then
19261 echo "$as_me:$LINENO: result: $CC" >&5
19262 echo "${ECHO_T}$CC" >&6
19263 else
19264 echo "$as_me:$LINENO: result: no" >&5
19265 echo "${ECHO_T}no" >&6
19266 fi
19267
19268 fi
19269 if test -z "$ac_cv_prog_CC"; then
19270 ac_ct_CC=$CC
19271 # Extract the first word of "gcc", so it can be a program name with args.
19272 set dummy gcc; ac_word=$2
19273 echo "$as_me:$LINENO: checking for $ac_word" >&5
19274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278 if test -n "$ac_ct_CC"; then
19279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19280 else
19281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19282 for as_dir in $PATH
19283 do
19284 IFS=$as_save_IFS
19285 test -z "$as_dir" && as_dir=.
19286 for ac_exec_ext in '' $ac_executable_extensions; do
19287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19288 ac_cv_prog_ac_ct_CC="gcc"
19289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19290 break 2
19291 fi
19292 done
19293 done
19294
19295 fi
19296 fi
19297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19298 if test -n "$ac_ct_CC"; then
19299 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19300 echo "${ECHO_T}$ac_ct_CC" >&6
19301 else
19302 echo "$as_me:$LINENO: result: no" >&5
19303 echo "${ECHO_T}no" >&6
19304 fi
19305
19306 CC=$ac_ct_CC
19307 else
19308 CC="$ac_cv_prog_CC"
19309 fi
19310
19311 if test -z "$CC"; then
19312 if test -n "$ac_tool_prefix"; then
19313 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19314 set dummy ${ac_tool_prefix}cc; ac_word=$2
19315 echo "$as_me:$LINENO: checking for $ac_word" >&5
19316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19317 if test "${ac_cv_prog_CC+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 else
19320 if test -n "$CC"; then
19321 ac_cv_prog_CC="$CC" # Let the user override the test.
19322 else
19323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19324 for as_dir in $PATH
19325 do
19326 IFS=$as_save_IFS
19327 test -z "$as_dir" && as_dir=.
19328 for ac_exec_ext in '' $ac_executable_extensions; do
19329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19330 ac_cv_prog_CC="${ac_tool_prefix}cc"
19331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19332 break 2
19333 fi
19334 done
19335 done
19336
19337 fi
19338 fi
19339 CC=$ac_cv_prog_CC
19340 if test -n "$CC"; then
19341 echo "$as_me:$LINENO: result: $CC" >&5
19342 echo "${ECHO_T}$CC" >&6
19343 else
19344 echo "$as_me:$LINENO: result: no" >&5
19345 echo "${ECHO_T}no" >&6
19346 fi
19347
19348 fi
19349 if test -z "$ac_cv_prog_CC"; then
19350 ac_ct_CC=$CC
19351 # Extract the first word of "cc", so it can be a program name with args.
19352 set dummy cc; ac_word=$2
19353 echo "$as_me:$LINENO: checking for $ac_word" >&5
19354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358 if test -n "$ac_ct_CC"; then
19359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19360 else
19361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19362 for as_dir in $PATH
19363 do
19364 IFS=$as_save_IFS
19365 test -z "$as_dir" && as_dir=.
19366 for ac_exec_ext in '' $ac_executable_extensions; do
19367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19368 ac_cv_prog_ac_ct_CC="cc"
19369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19370 break 2
19371 fi
19372 done
19373 done
19374
19375 fi
19376 fi
19377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19378 if test -n "$ac_ct_CC"; then
19379 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19380 echo "${ECHO_T}$ac_ct_CC" >&6
19381 else
19382 echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6
19384 fi
19385
19386 CC=$ac_ct_CC
19387 else
19388 CC="$ac_cv_prog_CC"
19389 fi
19390
19391 fi
19392 if test -z "$CC"; then
19393 # Extract the first word of "cc", so it can be a program name with args.
19394 set dummy cc; ac_word=$2
19395 echo "$as_me:$LINENO: checking for $ac_word" >&5
19396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19397 if test "${ac_cv_prog_CC+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19400 if test -n "$CC"; then
19401 ac_cv_prog_CC="$CC" # Let the user override the test.
19402 else
19403 ac_prog_rejected=no
19404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19405 for as_dir in $PATH
19406 do
19407 IFS=$as_save_IFS
19408 test -z "$as_dir" && as_dir=.
19409 for ac_exec_ext in '' $ac_executable_extensions; do
19410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19412 ac_prog_rejected=yes
19413 continue
19414 fi
19415 ac_cv_prog_CC="cc"
19416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19417 break 2
19418 fi
19419 done
19420 done
19421
19422 if test $ac_prog_rejected = yes; then
19423 # We found a bogon in the path, so make sure we never use it.
19424 set dummy $ac_cv_prog_CC
19425 shift
19426 if test $# != 0; then
19427 # We chose a different compiler from the bogus one.
19428 # However, it has the same basename, so the bogon will be chosen
19429 # first if we set CC to just the basename; use the full file name.
19430 shift
19431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19432 fi
19433 fi
19434 fi
19435 fi
19436 CC=$ac_cv_prog_CC
19437 if test -n "$CC"; then
19438 echo "$as_me:$LINENO: result: $CC" >&5
19439 echo "${ECHO_T}$CC" >&6
19440 else
19441 echo "$as_me:$LINENO: result: no" >&5
19442 echo "${ECHO_T}no" >&6
19443 fi
19444
19445 fi
19446 if test -z "$CC"; then
19447 if test -n "$ac_tool_prefix"; then
19448 for ac_prog in cl
19449 do
19450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19452 echo "$as_me:$LINENO: checking for $ac_word" >&5
19453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19454 if test "${ac_cv_prog_CC+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457 if test -n "$CC"; then
19458 ac_cv_prog_CC="$CC" # Let the user override the test.
19459 else
19460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19461 for as_dir in $PATH
19462 do
19463 IFS=$as_save_IFS
19464 test -z "$as_dir" && as_dir=.
19465 for ac_exec_ext in '' $ac_executable_extensions; do
19466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19467 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19469 break 2
19470 fi
19471 done
19472 done
19473
19474 fi
19475 fi
19476 CC=$ac_cv_prog_CC
19477 if test -n "$CC"; then
19478 echo "$as_me:$LINENO: result: $CC" >&5
19479 echo "${ECHO_T}$CC" >&6
19480 else
19481 echo "$as_me:$LINENO: result: no" >&5
19482 echo "${ECHO_T}no" >&6
19483 fi
19484
19485 test -n "$CC" && break
19486 done
19487 fi
19488 if test -z "$CC"; then
19489 ac_ct_CC=$CC
19490 for ac_prog in cl
19491 do
19492 # Extract the first word of "$ac_prog", so it can be a program name with args.
19493 set dummy $ac_prog; ac_word=$2
19494 echo "$as_me:$LINENO: checking for $ac_word" >&5
19495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499 if test -n "$ac_ct_CC"; then
19500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19501 else
19502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19503 for as_dir in $PATH
19504 do
19505 IFS=$as_save_IFS
19506 test -z "$as_dir" && as_dir=.
19507 for ac_exec_ext in '' $ac_executable_extensions; do
19508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19509 ac_cv_prog_ac_ct_CC="$ac_prog"
19510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19511 break 2
19512 fi
19513 done
19514 done
19515
19516 fi
19517 fi
19518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19519 if test -n "$ac_ct_CC"; then
19520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19521 echo "${ECHO_T}$ac_ct_CC" >&6
19522 else
19523 echo "$as_me:$LINENO: result: no" >&5
19524 echo "${ECHO_T}no" >&6
19525 fi
19526
19527 test -n "$ac_ct_CC" && break
19528 done
19529
19530 CC=$ac_ct_CC
19531 fi
19532
19533 fi
19534
19535
19536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19537 See \`config.log' for more details." >&5
19538 echo "$as_me: error: no acceptable C compiler found in \$PATH
19539 See \`config.log' for more details." >&2;}
19540 { (exit 1); exit 1; }; }
19541
19542 # Provide some information about the compiler.
19543 echo "$as_me:$LINENO:" \
19544 "checking for C compiler version" >&5
19545 ac_compiler=`set X $ac_compile; echo $2`
19546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19547 (eval $ac_compiler --version </dev/null >&5) 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }
19551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19552 (eval $ac_compiler -v </dev/null >&5) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }
19556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19557 (eval $ac_compiler -V </dev/null >&5) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }
19561
19562 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19563 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19564 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19566 else
19567 cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h. */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19573
19574 int
19575 main ()
19576 {
19577 #ifndef __GNUC__
19578 choke me
19579 #endif
19580
19581 ;
19582 return 0;
19583 }
19584 _ACEOF
19585 rm -f conftest.$ac_objext
19586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19587 (eval $ac_compile) 2>conftest.er1
19588 ac_status=$?
19589 grep -v '^ *+' conftest.er1 >conftest.err
19590 rm -f conftest.er1
19591 cat conftest.err >&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } &&
19594 { ac_try='test -z "$ac_c_werror_flag"
19595 || test ! -s conftest.err'
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } &&
19601 { ac_try='test -s conftest.$ac_objext'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 ac_compiler_gnu=yes
19608 else
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19611
19612 ac_compiler_gnu=no
19613 fi
19614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19616
19617 fi
19618 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19620 GCC=`test $ac_compiler_gnu = yes && echo yes`
19621 ac_test_CFLAGS=${CFLAGS+set}
19622 ac_save_CFLAGS=$CFLAGS
19623 CFLAGS="-g"
19624 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19625 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19626 if test "${ac_cv_prog_cc_g+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635
19636 int
19637 main ()
19638 {
19639
19640 ;
19641 return 0;
19642 }
19643 _ACEOF
19644 rm -f conftest.$ac_objext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19646 (eval $ac_compile) 2>conftest.er1
19647 ac_status=$?
19648 grep -v '^ *+' conftest.er1 >conftest.err
19649 rm -f conftest.er1
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } &&
19653 { ac_try='test -z "$ac_c_werror_flag"
19654 || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try='test -s conftest.$ac_objext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_cv_prog_cc_g=yes
19667 else
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 ac_cv_prog_cc_g=no
19672 fi
19673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19674 fi
19675 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19677 if test "$ac_test_CFLAGS" = set; then
19678 CFLAGS=$ac_save_CFLAGS
19679 elif test $ac_cv_prog_cc_g = yes; then
19680 if test "$GCC" = yes; then
19681 CFLAGS="-g -O2"
19682 else
19683 CFLAGS="-g"
19684 fi
19685 else
19686 if test "$GCC" = yes; then
19687 CFLAGS="-O2"
19688 else
19689 CFLAGS=
19690 fi
19691 fi
19692 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19693 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19694 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697 ac_cv_prog_cc_stdc=no
19698 ac_save_CC=$CC
19699 cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h. */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19705 #include <stdarg.h>
19706 #include <stdio.h>
19707 #include <sys/types.h>
19708 #include <sys/stat.h>
19709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19710 struct buf { int x; };
19711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19712 static char *e (p, i)
19713 char **p;
19714 int i;
19715 {
19716 return p[i];
19717 }
19718 static char *f (char * (*g) (char **, int), char **p, ...)
19719 {
19720 char *s;
19721 va_list v;
19722 va_start (v,p);
19723 s = g (p, va_arg (v,int));
19724 va_end (v);
19725 return s;
19726 }
19727
19728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19729 function prototypes and stuff, but not '\xHH' hex character constants.
19730 These don't provoke an error unfortunately, instead are silently treated
19731 as 'x'. The following induces an error, until -std1 is added to get
19732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19733 array size at least. It's necessary to write '\x00'==0 to get something
19734 that's true only with -std1. */
19735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19736
19737 int test (int i, double x);
19738 struct s1 {int (*f) (int a);};
19739 struct s2 {int (*f) (double a);};
19740 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19741 int argc;
19742 char **argv;
19743 int
19744 main ()
19745 {
19746 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19747 ;
19748 return 0;
19749 }
19750 _ACEOF
19751 # Don't try gcc -ansi; that turns off useful extensions and
19752 # breaks some systems' header files.
19753 # AIX -qlanglvl=ansi
19754 # Ultrix and OSF/1 -std1
19755 # HP-UX 10.20 and later -Ae
19756 # HP-UX older versions -Aa -D_HPUX_SOURCE
19757 # SVR4 -Xc -D__EXTENSIONS__
19758 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19759 do
19760 CC="$ac_save_CC $ac_arg"
19761 rm -f conftest.$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_c_werror_flag"
19771 || test ! -s conftest.err'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_cv_prog_cc_stdc=$ac_arg
19784 break
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 fi
19790 rm -f conftest.err conftest.$ac_objext
19791 done
19792 rm -f conftest.$ac_ext conftest.$ac_objext
19793 CC=$ac_save_CC
19794
19795 fi
19796
19797 case "x$ac_cv_prog_cc_stdc" in
19798 x|xno)
19799 echo "$as_me:$LINENO: result: none needed" >&5
19800 echo "${ECHO_T}none needed" >&6 ;;
19801 *)
19802 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19803 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19804 CC="$CC $ac_cv_prog_cc_stdc" ;;
19805 esac
19806
19807 # Some people use a C++ compiler to compile C. Since we use `exit',
19808 # in C++ we need to declare it. In case someone uses the same compiler
19809 # for both compiling C and C++ we need to have the C++ compiler decide
19810 # the declaration of exit, since it's the most demanding environment.
19811 cat >conftest.$ac_ext <<_ACEOF
19812 #ifndef __cplusplus
19813 choke me
19814 #endif
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818 (eval $ac_compile) 2>conftest.er1
19819 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
19825 { ac_try='test -z "$ac_c_werror_flag"
19826 || test ! -s conftest.err'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 for ac_declaration in \
19839 '' \
19840 'extern "C" void std::exit (int) throw (); using std::exit;' \
19841 'extern "C" void std::exit (int); using std::exit;' \
19842 'extern "C" void exit (int) throw ();' \
19843 'extern "C" void exit (int);' \
19844 'void exit (int);'
19845 do
19846 cat >conftest.$ac_ext <<_ACEOF
19847 /* confdefs.h. */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h. */
19852 $ac_declaration
19853 #include <stdlib.h>
19854 int
19855 main ()
19856 {
19857 exit (42);
19858 ;
19859 return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19865 ac_status=$?
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 :
19885 else
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 continue
19890 fi
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 $ac_declaration
19899 int
19900 main ()
19901 {
19902 exit (42);
19903 ;
19904 return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909 (eval $ac_compile) 2>conftest.er1
19910 ac_status=$?
19911 grep -v '^ *+' conftest.er1 >conftest.err
19912 rm -f conftest.er1
19913 cat conftest.err >&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } &&
19916 { ac_try='test -z "$ac_c_werror_flag"
19917 || test ! -s conftest.err'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; } &&
19923 { ac_try='test -s conftest.$ac_objext'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 break
19930 else
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934 fi
19935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19936 done
19937 rm -f conftest*
19938 if test -n "$ac_declaration"; then
19939 echo '#ifdef __cplusplus' >>confdefs.h
19940 echo $ac_declaration >>confdefs.h
19941 echo '#endif' >>confdefs.h
19942 fi
19943
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948 fi
19949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19950 ac_ext=c
19951 ac_cpp='$CPP $CPPFLAGS'
19952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19955
19956 depcc="$CC" am_compiler_list=
19957
19958 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19960 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19964 # We make a subdir and do the tests there. Otherwise we can end up
19965 # making bogus files that we don't know about and never remove. For
19966 # instance it was reported that on HP-UX the gcc test will end up
19967 # making a dummy file named `D' -- because `-MD' means `put the output
19968 # in D'.
19969 mkdir conftest.dir
19970 # Copy depcomp to subdir because otherwise we won't find it if we're
19971 # using a relative directory.
19972 cp "$am_depcomp" conftest.dir
19973 cd conftest.dir
19974 # We will build objects and dependencies in a subdirectory because
19975 # it helps to detect inapplicable dependency modes. For instance
19976 # both Tru64's cc and ICC support -MD to output dependencies as a
19977 # side effect of compilation, but ICC will put the dependencies in
19978 # the current directory while Tru64 will put them in the object
19979 # directory.
19980 mkdir sub
19981
19982 am_cv_CC_dependencies_compiler_type=none
19983 if test "$am_compiler_list" = ""; then
19984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19985 fi
19986 for depmode in $am_compiler_list; do
19987 # Setup a source with many dependencies, because some compilers
19988 # like to wrap large dependency lists on column 80 (with \), and
19989 # we should not choose a depcomp mode which is confused by this.
19990 #
19991 # We need to recreate these files for each test, as the compiler may
19992 # overwrite some of them when testing with obscure command lines.
19993 # This happens at least with the AIX C compiler.
19994 : > sub/conftest.c
19995 for i in 1 2 3 4 5 6; do
19996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19998 # Solaris 8's {/usr,}/bin/sh.
19999 touch sub/conftst$i.h
20000 done
20001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20002
20003 case $depmode in
20004 nosideeffect)
20005 # after this tag, mechanisms are not by side-effect, so they'll
20006 # only be used when explicitly requested
20007 if test "x$enable_dependency_tracking" = xyes; then
20008 continue
20009 else
20010 break
20011 fi
20012 ;;
20013 none) break ;;
20014 esac
20015 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20016 # mode. It turns out that the SunPro C++ compiler does not properly
20017 # handle `-M -o', and we need to detect this.
20018 if depmode=$depmode \
20019 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20021 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20022 >/dev/null 2>conftest.err &&
20023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20024 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20026 # icc doesn't choke on unknown options, it will just issue warnings
20027 # (even with -Werror). So we grep stderr for any message
20028 # that says an option was ignored.
20029 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
20030 am_cv_CC_dependencies_compiler_type=$depmode
20031 break
20032 fi
20033 fi
20034 done
20035
20036 cd ..
20037 rm -rf conftest.dir
20038 else
20039 am_cv_CC_dependencies_compiler_type=none
20040 fi
20041
20042 fi
20043 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20044 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20045 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20046
20047
20048
20049 if
20050 test "x$enable_dependency_tracking" != xno \
20051 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20052 am__fastdepCC_TRUE=
20053 am__fastdepCC_FALSE='#'
20054 else
20055 am__fastdepCC_TRUE='#'
20056 am__fastdepCC_FALSE=
20057 fi
20058
20059
20060 if test "$GCC" = yes; then
20061 CFLAGS="$CFLAGS -Wall"
20062 fi
20063
20064
20065 cat >>confdefs.h <<\_ACEOF
20066 #define __EXTENSIONS__
20067 _ACEOF
20068
20069 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20070 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20071 if test "${ac_cv_c_bigendian+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 else
20074 # See if sys/param.h defines the BYTE_ORDER macro.
20075 cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h. */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 #include <sys/types.h>
20082 #include <sys/param.h>
20083
20084 int
20085 main ()
20086 {
20087 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20088 bogus endian macros
20089 #endif
20090
20091 ;
20092 return 0;
20093 }
20094 _ACEOF
20095 rm -f conftest.$ac_objext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097 (eval $ac_compile) 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
20104 { ac_try='test -z "$ac_c_werror_flag"
20105 || test ! -s conftest.err'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest.$ac_objext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 # It does; now see whether it defined to BIG_ENDIAN or not.
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 #include <sys/types.h>
20125 #include <sys/param.h>
20126
20127 int
20128 main ()
20129 {
20130 #if BYTE_ORDER != BIG_ENDIAN
20131 not big endian
20132 #endif
20133
20134 ;
20135 return 0;
20136 }
20137 _ACEOF
20138 rm -f conftest.$ac_objext
20139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20140 (eval $ac_compile) 2>conftest.er1
20141 ac_status=$?
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
20147 { ac_try='test -z "$ac_c_werror_flag"
20148 || test ! -s conftest.err'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; } &&
20154 { ac_try='test -s conftest.$ac_objext'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 ac_cv_c_bigendian=yes
20161 else
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165 ac_cv_c_bigendian=no
20166 fi
20167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20168 else
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 # It does not; compile a test program.
20173 if test "$cross_compiling" = yes; then
20174 # try to guess the endianness by grepping values into an object file
20175 ac_cv_c_bigendian=unknown
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h. */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20183 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20184 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20185 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20186 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20187 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20188 int
20189 main ()
20190 {
20191 _ascii (); _ebcdic ();
20192 ;
20193 return 0;
20194 }
20195 _ACEOF
20196 rm -f conftest.$ac_objext
20197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20198 (eval $ac_compile) 2>conftest.er1
20199 ac_status=$?
20200 grep -v '^ *+' conftest.er1 >conftest.err
20201 rm -f conftest.er1
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } &&
20205 { ac_try='test -z "$ac_c_werror_flag"
20206 || test ! -s conftest.err'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; } &&
20212 { ac_try='test -s conftest.$ac_objext'
20213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214 (eval $ac_try) 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; }; then
20218 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20219 ac_cv_c_bigendian=yes
20220 fi
20221 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20222 if test "$ac_cv_c_bigendian" = unknown; then
20223 ac_cv_c_bigendian=no
20224 else
20225 # finding both strings is unlikely to happen, but who knows?
20226 ac_cv_c_bigendian=unknown
20227 fi
20228 fi
20229 else
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233 fi
20234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 else
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h. */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 int
20243 main ()
20244 {
20245 /* Are we little or big endian? From Harbison&Steele. */
20246 union
20247 {
20248 long l;
20249 char c[sizeof (long)];
20250 } u;
20251 u.l = 1;
20252 exit (u.c[sizeof (long) - 1] == 1);
20253 }
20254 _ACEOF
20255 rm -f conftest$ac_exeext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20257 (eval $ac_link) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; }; then
20266 ac_cv_c_bigendian=no
20267 else
20268 echo "$as_me: program exited with status $ac_status" >&5
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 ( exit $ac_status )
20273 ac_cv_c_bigendian=yes
20274 fi
20275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20276 fi
20277 fi
20278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20279 fi
20280 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20281 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20282 case $ac_cv_c_bigendian in
20283 yes)
20284
20285 cat >>confdefs.h <<\_ACEOF
20286 #define BIG_ENDIAN_ARCHITECTURE 1
20287 _ACEOF
20288 ;;
20289 no)
20290
20291 cat >>confdefs.h <<\_ACEOF
20292 #define LITTLE_ENDIAN_ARCHITECTURE 1
20293 _ACEOF
20294 ;;
20295 *)
20296 { { echo "$as_me:$LINENO: error: unknown endianness
20297 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20298 echo "$as_me: error: unknown endianness
20299 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20300 { (exit 1); exit 1; }; } ;;
20301 esac
20302
20303
20304 # Checks for libraries.
20305
20306 echo "$as_me:$LINENO: checking for pow in -lm" >&5
20307 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
20308 if test "${ac_cv_lib_m_pow+set}" = set; then
20309 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 else
20311 ac_check_lib_save_LIBS=$LIBS
20312 LIBS="-lm $LIBS"
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h. */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319
20320 /* Override any gcc2 internal prototype to avoid an error. */
20321 #ifdef __cplusplus
20322 extern "C"
20323 #endif
20324 /* We use char because int might match the return type of a gcc2
20325 builtin and then its argument prototype would still apply. */
20326 char pow ();
20327 int
20328 main ()
20329 {
20330 pow ();
20331 ;
20332 return 0;
20333 }
20334 _ACEOF
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337 (eval $ac_link) 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
20344 { ac_try='test -z "$ac_c_werror_flag"
20345 || test ! -s conftest.err'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest$ac_exeext'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_cv_lib_m_pow=yes
20358 else
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 ac_cv_lib_m_pow=no
20363 fi
20364 rm -f conftest.err conftest.$ac_objext \
20365 conftest$ac_exeext conftest.$ac_ext
20366 LIBS=$ac_check_lib_save_LIBS
20367 fi
20368 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20369 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
20370 if test $ac_cv_lib_m_pow = yes; then
20371 cat >>confdefs.h <<_ACEOF
20372 #define HAVE_LIBM 1
20373 _ACEOF
20374
20375 LIBS="-lm $LIBS"
20376
20377 fi
20378
20379
20380 # Checks for header files.
20381 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20382 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20383 if test "${ac_cv_header_stdc+set}" = set; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 else
20386 cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h. */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 #include <stdlib.h>
20393 #include <stdarg.h>
20394 #include <string.h>
20395 #include <float.h>
20396
20397 int
20398 main ()
20399 {
20400
20401 ;
20402 return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407 (eval $ac_compile) 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
20414 { ac_try='test -z "$ac_c_werror_flag"
20415 || test ! -s conftest.err'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest.$ac_objext'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_cv_header_stdc=yes
20428 else
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 ac_cv_header_stdc=no
20433 fi
20434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20435
20436 if test $ac_cv_header_stdc = yes; then
20437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20438 cat >conftest.$ac_ext <<_ACEOF
20439 /* confdefs.h. */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 #include <string.h>
20445
20446 _ACEOF
20447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20448 $EGREP "memchr" >/dev/null 2>&1; then
20449 :
20450 else
20451 ac_cv_header_stdc=no
20452 fi
20453 rm -f conftest*
20454
20455 fi
20456
20457 if test $ac_cv_header_stdc = yes; then
20458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h. */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 #include <stdlib.h>
20466
20467 _ACEOF
20468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20469 $EGREP "free" >/dev/null 2>&1; then
20470 :
20471 else
20472 ac_cv_header_stdc=no
20473 fi
20474 rm -f conftest*
20475
20476 fi
20477
20478 if test $ac_cv_header_stdc = yes; then
20479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20480 if test "$cross_compiling" = yes; then
20481 :
20482 else
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h. */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20489 #include <ctype.h>
20490 #if ((' ' & 0x0FF) == 0x020)
20491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20493 #else
20494 # define ISLOWER(c) \
20495 (('a' <= (c) && (c) <= 'i') \
20496 || ('j' <= (c) && (c) <= 'r') \
20497 || ('s' <= (c) && (c) <= 'z'))
20498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20499 #endif
20500
20501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20502 int
20503 main ()
20504 {
20505 int i;
20506 for (i = 0; i < 256; i++)
20507 if (XOR (islower (i), ISLOWER (i))
20508 || toupper (i) != TOUPPER (i))
20509 exit(2);
20510 exit (0);
20511 }
20512 _ACEOF
20513 rm -f conftest$ac_exeext
20514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20515 (eval $ac_link) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 :
20525 else
20526 echo "$as_me: program exited with status $ac_status" >&5
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ( exit $ac_status )
20531 ac_cv_header_stdc=no
20532 fi
20533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20534 fi
20535 fi
20536 fi
20537 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20538 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20539 if test $ac_cv_header_stdc = yes; then
20540
20541 cat >>confdefs.h <<\_ACEOF
20542 #define STDC_HEADERS 1
20543 _ACEOF
20544
20545 fi
20546
20547
20548
20549
20550
20551
20552 ac_header_dirent=no
20553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20554 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20555 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560 cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h. */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 #include <sys/types.h>
20567 #include <$ac_hdr>
20568
20569 int
20570 main ()
20571 {
20572 if ((DIR *) 0)
20573 return 0;
20574 ;
20575 return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext
20579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20580 (eval $ac_compile) 2>conftest.er1
20581 ac_status=$?
20582 grep -v '^ *+' conftest.er1 >conftest.err
20583 rm -f conftest.er1
20584 cat conftest.err >&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } &&
20587 { ac_try='test -z "$ac_c_werror_flag"
20588 || test ! -s conftest.err'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; } &&
20594 { ac_try='test -s conftest.$ac_objext'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 eval "$as_ac_Header=yes"
20601 else
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605 eval "$as_ac_Header=no"
20606 fi
20607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20608 fi
20609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20612 cat >>confdefs.h <<_ACEOF
20613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20614 _ACEOF
20615
20616 ac_header_dirent=$ac_hdr; break
20617 fi
20618
20619 done
20620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20621 if test $ac_header_dirent = dirent.h; then
20622 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20624 if test "${ac_cv_search_opendir+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627 ac_func_search_save_LIBS=$LIBS
20628 ac_cv_search_opendir=no
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635
20636 /* Override any gcc2 internal prototype to avoid an error. */
20637 #ifdef __cplusplus
20638 extern "C"
20639 #endif
20640 /* We use char because int might match the return type of a gcc2
20641 builtin and then its argument prototype would still apply. */
20642 char opendir ();
20643 int
20644 main ()
20645 {
20646 opendir ();
20647 ;
20648 return 0;
20649 }
20650 _ACEOF
20651 rm -f conftest.$ac_objext conftest$ac_exeext
20652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20653 (eval $ac_link) 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag"
20661 || test ! -s conftest.err'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest$ac_exeext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ac_cv_search_opendir="none required"
20674 else
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 fi
20679 rm -f conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 if test "$ac_cv_search_opendir" = no; then
20682 for ac_lib in dir; do
20683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690
20691 /* Override any gcc2 internal prototype to avoid an error. */
20692 #ifdef __cplusplus
20693 extern "C"
20694 #endif
20695 /* We use char because int might match the return type of a gcc2
20696 builtin and then its argument prototype would still apply. */
20697 char opendir ();
20698 int
20699 main ()
20700 {
20701 opendir ();
20702 ;
20703 return 0;
20704 }
20705 _ACEOF
20706 rm -f conftest.$ac_objext conftest$ac_exeext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20708 (eval $ac_link) 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_c_werror_flag"
20716 || test ! -s conftest.err'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest$ac_exeext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 ac_cv_search_opendir="-l$ac_lib"
20729 break
20730 else
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20733
20734 fi
20735 rm -f conftest.err conftest.$ac_objext \
20736 conftest$ac_exeext conftest.$ac_ext
20737 done
20738 fi
20739 LIBS=$ac_func_search_save_LIBS
20740 fi
20741 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20742 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20743 if test "$ac_cv_search_opendir" != no; then
20744 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20745
20746 fi
20747
20748 else
20749 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20751 if test "${ac_cv_search_opendir+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754 ac_func_search_save_LIBS=$LIBS
20755 ac_cv_search_opendir=no
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762
20763 /* Override any gcc2 internal prototype to avoid an error. */
20764 #ifdef __cplusplus
20765 extern "C"
20766 #endif
20767 /* We use char because int might match the return type of a gcc2
20768 builtin and then its argument prototype would still apply. */
20769 char opendir ();
20770 int
20771 main ()
20772 {
20773 opendir ();
20774 ;
20775 return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext conftest$ac_exeext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20780 (eval $ac_link) 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -z "$ac_c_werror_flag"
20788 || test ! -s conftest.err'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; } &&
20794 { ac_try='test -s conftest$ac_exeext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 ac_cv_search_opendir="none required"
20801 else
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805 fi
20806 rm -f conftest.err conftest.$ac_objext \
20807 conftest$ac_exeext conftest.$ac_ext
20808 if test "$ac_cv_search_opendir" = no; then
20809 for ac_lib in x; do
20810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20811 cat >conftest.$ac_ext <<_ACEOF
20812 /* confdefs.h. */
20813 _ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20817
20818 /* Override any gcc2 internal prototype to avoid an error. */
20819 #ifdef __cplusplus
20820 extern "C"
20821 #endif
20822 /* We use char because int might match the return type of a gcc2
20823 builtin and then its argument prototype would still apply. */
20824 char opendir ();
20825 int
20826 main ()
20827 {
20828 opendir ();
20829 ;
20830 return 0;
20831 }
20832 _ACEOF
20833 rm -f conftest.$ac_objext conftest$ac_exeext
20834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20835 (eval $ac_link) 2>conftest.er1
20836 ac_status=$?
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
20842 { ac_try='test -z "$ac_c_werror_flag"
20843 || test ! -s conftest.err'
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; } &&
20849 { ac_try='test -s conftest$ac_exeext'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20852 ac_status=$?
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 ac_cv_search_opendir="-l$ac_lib"
20856 break
20857 else
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861 fi
20862 rm -f conftest.err conftest.$ac_objext \
20863 conftest$ac_exeext conftest.$ac_ext
20864 done
20865 fi
20866 LIBS=$ac_func_search_save_LIBS
20867 fi
20868 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20869 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20870 if test "$ac_cv_search_opendir" != no; then
20871 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20872
20873 fi
20874
20875 fi
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885 for ac_header in memory.h errno.h stdlib.h string.h limits.h sys/param.h stdarg.h varargs.h
20886 do
20887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20889 echo "$as_me:$LINENO: checking for $ac_header" >&5
20890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 fi
20894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20896 else
20897 # Is the header compilable?
20898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20900 cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h. */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 $ac_includes_default
20907 #include <$ac_header>
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911 (eval $ac_compile) 2>conftest.er1
20912 ac_status=$?
20913 grep -v '^ *+' conftest.er1 >conftest.err
20914 rm -f conftest.er1
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ac_header_compiler=yes
20932 else
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_header_compiler=no
20937 fi
20938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20940 echo "${ECHO_T}$ac_header_compiler" >&6
20941
20942 # Is the header present?
20943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20945 cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h. */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 #include <$ac_header>
20952 _ACEOF
20953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20955 ac_status=$?
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } >/dev/null; then
20961 if test -s conftest.err; then
20962 ac_cpp_err=$ac_c_preproc_warn_flag
20963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20964 else
20965 ac_cpp_err=
20966 fi
20967 else
20968 ac_cpp_err=yes
20969 fi
20970 if test -z "$ac_cpp_err"; then
20971 ac_header_preproc=yes
20972 else
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 ac_header_preproc=no
20977 fi
20978 rm -f conftest.err conftest.$ac_ext
20979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20980 echo "${ECHO_T}$ac_header_preproc" >&6
20981
20982 # So? What about this header?
20983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20984 yes:no: )
20985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20989 ac_header_preproc=yes
20990 ;;
20991 no:yes:* )
20992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21004 (
21005 cat <<\_ASBOX
21006 ## ----------------------------------- ##
21007 ## Report this to bugs@tina-vision.net ##
21008 ## ----------------------------------- ##
21009 _ASBOX
21010 ) |
21011 sed "s/^/$as_me: WARNING: /" >&2
21012 ;;
21013 esac
21014 echo "$as_me:$LINENO: checking for $ac_header" >&5
21015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019 eval "$as_ac_Header=\$ac_header_preproc"
21020 fi
21021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21023
21024 fi
21025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21026 cat >>confdefs.h <<_ACEOF
21027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21028 _ACEOF
21029
21030 fi
21031
21032 done
21033
21034
21035 # Checks for typedefs, structures, and compiler characteristics.
21036 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21038 if test "${ac_cv_c_const+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041 cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h. */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21047
21048 int
21049 main ()
21050 {
21051 /* FIXME: Include the comments suggested by Paul. */
21052 #ifndef __cplusplus
21053 /* Ultrix mips cc rejects this. */
21054 typedef int charset[2];
21055 const charset x;
21056 /* SunOS 4.1.1 cc rejects this. */
21057 char const *const *ccp;
21058 char **p;
21059 /* NEC SVR4.0.2 mips cc rejects this. */
21060 struct point {int x, y;};
21061 static struct point const zero = {0,0};
21062 /* AIX XL C 1.02.0.0 rejects this.
21063 It does not let you subtract one const X* pointer from another in
21064 an arm of an if-expression whose if-part is not a constant
21065 expression */
21066 const char *g = "string";
21067 ccp = &g + (g ? g-g : 0);
21068 /* HPUX 7.0 cc rejects these. */
21069 ++ccp;
21070 p = (char**) ccp;
21071 ccp = (char const *const *) p;
21072 { /* SCO 3.2v4 cc rejects this. */
21073 char *t;
21074 char const *s = 0 ? (char *) 0 : (char const *) 0;
21075
21076 *t++ = 0;
21077 }
21078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21079 int x[] = {25, 17};
21080 const int *foo = &x[0];
21081 ++foo;
21082 }
21083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21084 typedef const int *iptr;
21085 iptr p = 0;
21086 ++p;
21087 }
21088 { /* AIX XL C 1.02.0.0 rejects this saying
21089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21090 struct s { int j; const int *ap[3]; };
21091 struct s *b; b->j = 5;
21092 }
21093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21094 const int foo = 10;
21095 }
21096 #endif
21097
21098 ;
21099 return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest.$ac_objext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21104 (eval $ac_compile) 2>conftest.er1
21105 ac_status=$?
21106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
21111 { ac_try='test -z "$ac_c_werror_flag"
21112 || test ! -s conftest.err'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; } &&
21118 { ac_try='test -s conftest.$ac_objext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_c_const=yes
21125 else
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21128
21129 ac_cv_c_const=no
21130 fi
21131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21132 fi
21133 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21134 echo "${ECHO_T}$ac_cv_c_const" >&6
21135 if test $ac_cv_c_const = no; then
21136
21137 cat >>confdefs.h <<\_ACEOF
21138 #define const
21139 _ACEOF
21140
21141 fi
21142
21143 echo "$as_me:$LINENO: checking for mode_t" >&5
21144 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21145 if test "${ac_cv_type_mode_t+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 else
21148 cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h. */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 $ac_includes_default
21155 int
21156 main ()
21157 {
21158 if ((mode_t *) 0)
21159 return 0;
21160 if (sizeof (mode_t))
21161 return 0;
21162 ;
21163 return 0;
21164 }
21165 _ACEOF
21166 rm -f conftest.$ac_objext
21167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168 (eval $ac_compile) 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } &&
21175 { ac_try='test -z "$ac_c_werror_flag"
21176 || test ! -s conftest.err'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; } &&
21182 { ac_try='test -s conftest.$ac_objext'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
21188 ac_cv_type_mode_t=yes
21189 else
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21192
21193 ac_cv_type_mode_t=no
21194 fi
21195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21196 fi
21197 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21198 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21199 if test $ac_cv_type_mode_t = yes; then
21200 :
21201 else
21202
21203 cat >>confdefs.h <<_ACEOF
21204 #define mode_t int
21205 _ACEOF
21206
21207 fi
21208
21209 echo "$as_me:$LINENO: checking for size_t" >&5
21210 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21211 if test "${ac_cv_type_size_t+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 else
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h. */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21220 $ac_includes_default
21221 int
21222 main ()
21223 {
21224 if ((size_t *) 0)
21225 return 0;
21226 if (sizeof (size_t))
21227 return 0;
21228 ;
21229 return 0;
21230 }
21231 _ACEOF
21232 rm -f conftest.$ac_objext
21233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21234 (eval $ac_compile) 2>conftest.er1
21235 ac_status=$?
21236 grep -v '^ *+' conftest.er1 >conftest.err
21237 rm -f conftest.er1
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } &&
21241 { ac_try='test -z "$ac_c_werror_flag"
21242 || test ! -s conftest.err'
21243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244 (eval $ac_try) 2>&5
21245 ac_status=$?
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; } &&
21248 { ac_try='test -s conftest.$ac_objext'
21249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250 (eval $ac_try) 2>&5
21251 ac_status=$?
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); }; }; then
21254 ac_cv_type_size_t=yes
21255 else
21256 echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21258
21259 ac_cv_type_size_t=no
21260 fi
21261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21262 fi
21263 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21264 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21265 if test $ac_cv_type_size_t = yes; then
21266 :
21267 else
21268
21269 cat >>confdefs.h <<_ACEOF
21270 #define size_t unsigned
21271 _ACEOF
21272
21273 fi
21274
21275 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21276 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21277 if test "${ac_cv_struct_tm+set}" = set; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 else
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 #include <sys/types.h>
21287 #include <time.h>
21288
21289 int
21290 main ()
21291 {
21292 struct tm *tp; tp->tm_sec;
21293 ;
21294 return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299 (eval $ac_compile) 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag"
21307 || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_cv_struct_tm=time.h
21320 else
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_cv_struct_tm=sys/time.h
21325 fi
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327 fi
21328 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21329 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21330 if test $ac_cv_struct_tm = sys/time.h; then
21331
21332 cat >>confdefs.h <<\_ACEOF
21333 #define TM_IN_SYS_TIME 1
21334 _ACEOF
21335
21336 fi
21337
21338 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21339 echo $ECHO_N "checking wheth