Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for libdssialsacompat 1.0.8a.
4 #
5 # Report bugs to <musound-at-jps-dot-net>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
265 :
266 else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
275 $*
276 EOF
277 exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
320 IFS="$lt_save_ifs"
321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='libdssialsacompat'
424 PACKAGE_TARNAME='libdssialsacompat'
425 PACKAGE_VERSION='1.0.8a'
426 PACKAGE_STRING='libdssialsacompat 1.0.8a'
427 PACKAGE_BUGREPORT='musound-at-jps-dot-net'
428
429 ac_unique_file="dssi_alsa_compat.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 # include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 # include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805 done
806
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827 do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880 else
881 ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956 \`configure' configures libdssialsacompat 1.0.8a to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978 cat <<_ACEOF
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005 _ACEOF
1006
1007 cat <<\_ACEOF
1008
1009 Program names:
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013
1014 System types:
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021 case $ac_init_help in
1022 short | recursive ) echo "Configuration of libdssialsacompat 1.0.8a:";;
1023 esac
1024 cat <<\_ACEOF
1025
1026 Optional Features:
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --disable-dependency-tracking Speeds up one-time builds
1030 --enable-dependency-tracking Do not reject slow dependency extractors
1031 --enable-shared[=PKGS]
1032 build shared libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=yes]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
1037 --disable-libtool-lock avoid locking (might break parallel builds)
1038
1039 Optional Packages:
1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1042 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1043 --with-pic try to use only PIC/non-PIC objects [default=use
1044 both]
1045 --with-tags[=TAGS]
1046 include additional configurations [automatic]
1047
1048 Some influential environment variables:
1049 CC C compiler command
1050 CFLAGS C compiler flags
1051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1052 nonstandard directory <lib dir>
1053 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054 headers in a nonstandard directory <include dir>
1055 CPP C preprocessor
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 CXXCPP C++ preprocessor
1059 F77 Fortran 77 compiler command
1060 FFLAGS Fortran 77 compiler flags
1061
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1064
1065 Report bugs to <musound-at-jps-dot-net>.
1066 _ACEOF
1067 fi
1068
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1071 ac_popdir=`pwd`
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1074 ac_builddir=.
1075
1076 if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081 ac_dir_suffix= ac_top_builddir=
1082 fi
1083
1084 case $srcdir in
1085 .) # No --srcdir option. We are building in place.
1086 ac_srcdir=.
1087 if test -z "$ac_top_builddir"; then
1088 ac_top_srcdir=.
1089 else
1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091 fi ;;
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1095 *) # Relative path.
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1099 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1100 # absolute.
1101 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1102 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1103 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1104 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1105
1106 cd $ac_dir
1107 # Check for guested configure; otherwise get Cygnus style configure.
1108 if test -f $ac_srcdir/configure.gnu; then
1109 echo
1110 $SHELL $ac_srcdir/configure.gnu --help=recursive
1111 elif test -f $ac_srcdir/configure; then
1112 echo
1113 $SHELL $ac_srcdir/configure --help=recursive
1114 elif test -f $ac_srcdir/configure.ac ||
1115 test -f $ac_srcdir/configure.in; then
1116 echo
1117 $ac_configure --help
1118 else
1119 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1120 fi
1121 cd $ac_popdir
1122 done
1123 fi
1124
1125 test -n "$ac_init_help" && exit 0
1126 if $ac_init_version; then
1127 cat <<\_ACEOF
1128 libdssialsacompat configure 1.0.8a
1129 generated by GNU Autoconf 2.57
1130
1131 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1132 Free Software Foundation, Inc.
1133 This configure script is free software; the Free Software Foundation
1134 gives unlimited permission to copy, distribute and modify it.
1135 _ACEOF
1136 exit 0
1137 fi
1138 exec 5>config.log
1139 cat >&5 <<_ACEOF
1140 This file contains any messages produced by compilers while
1141 running configure, to aid debugging if configure makes a mistake.
1142
1143 It was created by libdssialsacompat $as_me 1.0.8a, which was
1144 generated by GNU Autoconf 2.57. Invocation command line was
1145
1146 $ $0 $@
1147
1148 _ACEOF
1149 {
1150 cat <<_ASUNAME
1151 ## --------- ##
1152 ## Platform. ##
1153 ## --------- ##
1154
1155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
1161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1163
1164 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1165 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1167 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1168 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1169 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1170 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171
1172 _ASUNAME
1173
1174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175 for as_dir in $PATH
1176 do
1177 IFS=$as_save_IFS
1178 test -z "$as_dir" && as_dir=.
1179 echo "PATH: $as_dir"
1180 done
1181
1182 } >&5
1183
1184 cat >&5 <<_ACEOF
1185
1186
1187 ## ----------- ##
1188 ## Core tests. ##
1189 ## ----------- ##
1190
1191 _ACEOF
1192
1193
1194 # Keep a trace of the command line.
1195 # Strip out --no-create and --no-recursion so they do not pile up.
1196 # Strip out --silent because we don't want to record it for future runs.
1197 # Also quote any args containing shell meta-characters.
1198 # Make two passes to allow for proper duplicate-argument suppression.
1199 ac_configure_args=
1200 ac_configure_args0=
1201 ac_configure_args1=
1202 ac_sep=
1203 ac_must_keep_next=false
1204 for ac_pass in 1 2
1205 do
1206 for ac_arg
1207 do
1208 case $ac_arg in
1209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 continue ;;
1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 esac
1216 case $ac_pass in
1217 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218 2)
1219 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220 if test $ac_must_keep_next = true; then
1221 ac_must_keep_next=false # Got value, back to normal.
1222 else
1223 case $ac_arg in
1224 *=* | --config-cache | -C | -disable-* | --disable-* \
1225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227 | -with-* | --with-* | -without-* | --without-* | --x)
1228 case "$ac_configure_args0 " in
1229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 esac
1231 ;;
1232 -* ) ac_must_keep_next=true ;;
1233 esac
1234 fi
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
1238 ;;
1239 esac
1240 done
1241 done
1242 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
1245 # When interrupted or exit'd, cleanup temporary files, and complete
1246 # config.log. We remove comments because anyway the quotes in there
1247 # would cause problems or look ugly.
1248 # WARNING: Be sure not to use single quotes in there, as some shells,
1249 # such as our DU 5.0 friend, will then `close' the trap.
1250 trap 'exit_status=$?
1251 # Save into config.log some information that might help in debugging.
1252 {
1253 echo
1254
1255 cat <<\_ASBOX
1256 ## ---------------- ##
1257 ## Cache variables. ##
1258 ## ---------------- ##
1259 _ASBOX
1260 echo
1261 # The following way of writing the cache mishandles newlines in values,
1262 {
1263 (set) 2>&1 |
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
1266 sed -n \
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 ;;
1270 *)
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273 ;;
1274 esac;
1275 }
1276 echo
1277
1278 cat <<\_ASBOX
1279 ## ----------------- ##
1280 ## Output variables. ##
1281 ## ----------------- ##
1282 _ASBOX
1283 echo
1284 for ac_var in $ac_subst_vars
1285 do
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
1288 done | sort
1289 echo
1290
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
1293 ## ------------- ##
1294 ## Output files. ##
1295 ## ------------- ##
1296 _ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1304 fi
1305
1306 if test -s confdefs.h; then
1307 cat <<\_ASBOX
1308 ## ----------- ##
1309 ## confdefs.h. ##
1310 ## ----------- ##
1311 _ASBOX
1312 echo
1313 sed "/^$/d" confdefs.h | sort
1314 echo
1315 fi
1316 test "$ac_signal" != 0 &&
1317 echo "$as_me: caught signal $ac_signal"
1318 echo "$as_me: exit $exit_status"
1319 } >&5
1320 rm -f core core.* *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322 exit $exit_status
1323 ' 0
1324 for ac_signal in 1 2 13 15; do
1325 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326 done
1327 ac_signal=0
1328
1329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1330 rm -rf conftest* confdefs.h
1331 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332 echo >confdefs.h
1333
1334 # Predefined preprocessor variables.
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_NAME "$PACKAGE_NAME"
1338 _ACEOF
1339
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1348 _ACEOF
1349
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_STRING "$PACKAGE_STRING"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358 _ACEOF
1359
1360
1361 # Let the site file select an alternate cache file if it wants to.
1362 # Prefer explicitly selected file to automatically selected ones.
1363 if test -z "$CONFIG_SITE"; then
1364 if test "x$prefix" != xNONE; then
1365 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366 else
1367 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368 fi
1369 fi
1370 for ac_site_file in $CONFIG_SITE; do
1371 if test -r "$ac_site_file"; then
1372 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373 echo "$as_me: loading site script $ac_site_file" >&6;}
1374 sed 's/^/| /' "$ac_site_file" >&5
1375 . "$ac_site_file"
1376 fi
1377 done
1378
1379 if test -r "$cache_file"; then
1380 # Some versions of bash will fail to source /dev/null (special
1381 # files actually), so we avoid doing that.
1382 if test -f "$cache_file"; then
1383 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384 echo "$as_me: loading cache $cache_file" >&6;}
1385 case $cache_file in
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
1388 esac
1389 fi
1390 else
1391 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392 echo "$as_me: creating cache $cache_file" >&6;}
1393 >$cache_file
1394 fi
1395
1396 # Check that the precious variables saved in the cache have kept the same
1397 # value.
1398 ac_cache_corrupted=false
1399 for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
1405 case $ac_old_set,$ac_new_set in
1406 set,)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,set)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,);;
1415 *)
1416 if test "x$ac_old_val" != "x$ac_new_val"; then
1417 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1420 echo "$as_me: former value: $ac_old_val" >&2;}
1421 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1422 echo "$as_me: current value: $ac_new_val" >&2;}
1423 ac_cache_corrupted=:
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438 done
1439 if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
1445 fi
1446
1447 ac_ext=c
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481 am__api_version="1.6"
1482 ac_aux_dir=
1483 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1484 if test -f $ac_dir/install-sh; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/install-sh -c"
1487 break
1488 elif test -f $ac_dir/install.sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install.sh -c"
1491 break
1492 elif test -f $ac_dir/shtool; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/shtool install -c"
1495 break
1496 fi
1497 done
1498 if test -z "$ac_aux_dir"; then
1499 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1500 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1501 { (exit 1); exit 1; }; }
1502 fi
1503 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1504 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1505 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1506
1507 # Find a good install program. We prefer a C program (faster),
1508 # so one script is as good as another. But avoid the broken or
1509 # incompatible versions:
1510 # SysV /etc/install, /usr/sbin/install
1511 # SunOS /usr/etc/install
1512 # IRIX /sbin/install
1513 # AIX /bin/install
1514 # AmigaOS /C/install, which installs bootblocks on floppy discs
1515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1518 # ./install, which can be erroneously created by make from ./install.sh.
1519 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1520 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1521 if test -z "$INSTALL"; then
1522 if test "${ac_cv_path_install+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 # Account for people who put trailing slashes in PATH elements.
1531 case $as_dir/ in
1532 ./ | .// | /cC/* | \
1533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1534 /usr/ucb/* ) ;;
1535 *)
1536 # OSF1 and SCO ODT 3.0 have their own names for install.
1537 # Don't use installbsd from OSF since it installs stuff as root
1538 # by default.
1539 for ac_prog in ginstall scoinst install; do
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1542 if test $ac_prog = install &&
1543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1544 # AIX install. It has an incompatible calling convention.
1545 :
1546 elif test $ac_prog = install &&
1547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1548 # program-specific install script used by HP pwplus--don't use.
1549 :
1550 else
1551 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1552 break 3
1553 fi
1554 fi
1555 done
1556 done
1557 ;;
1558 esac
1559 done
1560
1561
1562 fi
1563 if test "${ac_cv_path_install+set}" = set; then
1564 INSTALL=$ac_cv_path_install
1565 else
1566 # As a last resort, use the slow shell script. We don't cache a
1567 # path for INSTALL within a source directory, because that will
1568 # break other packages using the cache if that directory is
1569 # removed, or if the path is relative.
1570 INSTALL=$ac_install_sh
1571 fi
1572 fi
1573 echo "$as_me:$LINENO: result: $INSTALL" >&5
1574 echo "${ECHO_T}$INSTALL" >&6
1575
1576 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1577 # It thinks the first close brace ends the variable substitution.
1578 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1579
1580 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1581
1582 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1583
1584 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1585 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1586 # Just in case
1587 sleep 1
1588 echo timestamp > conftest.file
1589 # Do `set' in a subshell so we don't clobber the current shell's
1590 # arguments. Must try -L first in case configure is actually a
1591 # symlink; some systems play weird games with the mod time of symlinks
1592 # (eg FreeBSD returns the mod time of the symlink's containing
1593 # directory).
1594 if (
1595 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1596 if test "$*" = "X"; then
1597 # -L didn't work.
1598 set X `ls -t $srcdir/configure conftest.file`
1599 fi
1600 rm -f conftest.file
1601 if test "$*" != "X $srcdir/configure conftest.file" \
1602 && test "$*" != "X conftest.file $srcdir/configure"; then
1603
1604 # If neither matched, then we have a broken ls. This can happen
1605 # if, for instance, CONFIG_SHELL is bash and it inherits a
1606 # broken ls alias from the environment. This has actually
1607 # happened. Such a system could not be considered "sane".
1608 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1609 alias in your environment" >&5
1610 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1611 alias in your environment" >&2;}
1612 { (exit 1); exit 1; }; }
1613 fi
1614
1615 test "$2" = conftest.file
1616 )
1617 then
1618 # Ok.
1619 :
1620 else
1621 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1622 Check your system clock" >&5
1623 echo "$as_me: error: newly created file is older than distributed files!
1624 Check your system clock" >&2;}
1625 { (exit 1); exit 1; }; }
1626 fi
1627 echo "$as_me:$LINENO: result: yes" >&5
1628 echo "${ECHO_T}yes" >&6
1629 test "$program_prefix" != NONE &&
1630 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1631 # Use a double $ so make ignores it.
1632 test "$program_suffix" != NONE &&
1633 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1634 # Double any \ or $. echo might interpret backslashes.
1635 # By default was `s,x,x', remove it if useless.
1636 cat <<\_ACEOF >conftest.sed
1637 s/[\\$]/&&/g;s/;s,x,x,$//
1638 _ACEOF
1639 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1640 rm conftest.sed
1641
1642
1643 # expand $ac_aux_dir to an absolute path
1644 am_aux_dir=`cd $ac_aux_dir && pwd`
1645
1646 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1647 # Use eval to expand $SHELL
1648 if eval "$MISSING --run true"; then
1649 am_missing_run="$MISSING --run "
1650 else
1651 am_missing_run=
1652 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1653 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1654 fi
1655
1656 for ac_prog in gawk mawk nawk awk
1657 do
1658 # Extract the first word of "$ac_prog", so it can be a program name with args.
1659 set dummy $ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_AWK+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$AWK"; then
1666 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_AWK="$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1678 fi
1679 done
1680 done
1681
1682 fi
1683 fi
1684 AWK=$ac_cv_prog_AWK
1685 if test -n "$AWK"; then
1686 echo "$as_me:$LINENO: result: $AWK" >&5
1687 echo "${ECHO_T}$AWK" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 fi
1692
1693 test -n "$AWK" && break
1694 done
1695
1696 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1697 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1698 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1699 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 cat >conftest.make <<\_ACEOF
1703 all:
1704 @echo 'ac_maketemp="$(MAKE)"'
1705 _ACEOF
1706 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1707 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1708 if test -n "$ac_maketemp"; then
1709 eval ac_cv_prog_make_${ac_make}_set=yes
1710 else
1711 eval ac_cv_prog_make_${ac_make}_set=no
1712 fi
1713 rm -f conftest.make
1714 fi
1715 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1716 echo "$as_me:$LINENO: result: yes" >&5
1717 echo "${ECHO_T}yes" >&6
1718 SET_MAKE=
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 SET_MAKE="MAKE=${MAKE-make}"
1723 fi
1724
1725 # test to see if srcdir already configured
1726 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1727 test -f $srcdir/config.status; then
1728 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1729 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1730 { (exit 1); exit 1; }; }
1731 fi
1732
1733 # Define the identity of the package.
1734 PACKAGE=libdssialsacompat
1735 VERSION=1.0.8a
1736
1737
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1740 _ACEOF
1741
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define VERSION "$VERSION"
1745 _ACEOF
1746
1747 # Some tools Automake needs.
1748
1749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1750
1751
1752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1753
1754
1755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1756
1757
1758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1759
1760
1761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1762
1763
1764 AMTAR=${AMTAR-"${am_missing_run}tar"}
1765
1766 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1767
1768 # Installed binaries are usually stripped using `strip' when the user
1769 # run `make install-strip'. However `strip' might not be the right
1770 # tool to use in cross-compilation environments, therefore Automake
1771 # will honor the `STRIP' environment variable to overrule this program.
1772 if test "$cross_compiling" != no; then
1773 if test -n "$ac_tool_prefix"; then
1774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1775 set dummy ${ac_tool_prefix}strip; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_STRIP+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781 if test -n "$STRIP"; then
1782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1783 else
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 break 2
1794 fi
1795 done
1796 done
1797
1798 fi
1799 fi
1800 STRIP=$ac_cv_prog_STRIP
1801 if test -n "$STRIP"; then
1802 echo "$as_me:$LINENO: result: $STRIP" >&5
1803 echo "${ECHO_T}$STRIP" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 fi
1808
1809 fi
1810 if test -z "$ac_cv_prog_STRIP"; then
1811 ac_ct_STRIP=$STRIP
1812 # Extract the first word of "strip", so it can be a program name with args.
1813 set dummy strip; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$ac_ct_STRIP"; then
1820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_ac_ct_STRIP="strip"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1832 fi
1833 done
1834 done
1835
1836 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837 fi
1838 fi
1839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1840 if test -n "$ac_ct_STRIP"; then
1841 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1842 echo "${ECHO_T}$ac_ct_STRIP" >&6
1843 else
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848 STRIP=$ac_ct_STRIP
1849 else
1850 STRIP="$ac_cv_prog_STRIP"
1851 fi
1852
1853 fi
1854 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1855
1856 # We need awk for the "check" target. The system "awk" is bad on
1857 # some platforms.
1858
1859
1860
1861
1862 rm -f .deps 2>/dev/null
1863 mkdir .deps 2>/dev/null
1864 if test -d .deps; then
1865 DEPDIR=.deps
1866 else
1867 # MS-DOS does not allow filenames that begin with a dot.
1868 DEPDIR=_deps
1869 fi
1870 rmdir .deps 2>/dev/null
1871
1872
1873 ac_config_commands="$ac_config_commands depfiles"
1874
1875
1876 am_make=${MAKE-make}
1877 cat > confinc << 'END'
1878 doit:
1879 @echo done
1880 END
1881 # If we don't find an include directive, just comment out the code.
1882 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1883 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1884 am__include="#"
1885 am__quote=
1886 _am_result=none
1887 # First try GNU make style include.
1888 echo "include confinc" > confmf
1889 # We grep out `Entering directory' and `Leaving directory'
1890 # messages which can occur if `w' ends up in MAKEFLAGS.
1891 # In particular we don't look at `^make:' because GNU make might
1892 # be invoked under some other name (usually "gmake"), in which
1893 # case it prints its new name instead of `make'.
1894 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1895 am__include=include
1896 am__quote=
1897 _am_result=GNU
1898 fi
1899 # Now try BSD make style include.
1900 if test "$am__include" = "#"; then
1901 echo '.include "confinc"' > confmf
1902 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1903 am__include=.include
1904 am__quote="\""
1905 _am_result=BSD
1906 fi
1907 fi
1908
1909
1910 echo "$as_me:$LINENO: result: $_am_result" >&5
1911 echo "${ECHO_T}$_am_result" >&6
1912 rm -f confinc confmf
1913
1914 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1915 if test "${enable_dependency_tracking+set}" = set; then
1916 enableval="$enable_dependency_tracking"
1917
1918 fi;
1919 if test "x$enable_dependency_tracking" != xno; then
1920 am_depcomp="$ac_aux_dir/depcomp"
1921 AMDEPBACKSLASH='\'
1922 fi
1923
1924
1925 if test "x$enable_dependency_tracking" != xno; then
1926 AMDEP_TRUE=
1927 AMDEP_FALSE='#'
1928 else
1929 AMDEP_TRUE='#'
1930 AMDEP_FALSE=
1931 fi
1932
1933
1934
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 if test -n "$ac_tool_prefix"; then
1941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1942 set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 if test -n "$CC"; then
1949 ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}gcc"
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 CC=$ac_cv_prog_CC
1968 if test -n "$CC"; then
1969 echo "$as_me:$LINENO: result: $CC" >&5
1970 echo "${ECHO_T}$CC" >&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_CC"; then
1978 ac_ct_CC=$CC
1979 # Extract the first word of "gcc", so it can be a program name with args.
1980 set dummy gcc; 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_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 if test -n "$ac_ct_CC"; then
1987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="gcc"
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 fi
2004 fi
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6
2009 else
2010 echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2012 fi
2013
2014 CC=$ac_ct_CC
2015 else
2016 CC="$ac_cv_prog_CC"
2017 fi
2018
2019 if test -z "$CC"; then
2020 if test -n "$ac_tool_prefix"; then
2021 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2022 set dummy ${ac_tool_prefix}cc; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CC="${ac_tool_prefix}cc"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042 done
2043 done
2044
2045 fi
2046 fi
2047 CC=$ac_cv_prog_CC
2048 if test -n "$CC"; then
2049 echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2054 fi
2055
2056 fi
2057 if test -z "$ac_cv_prog_CC"; then
2058 ac_ct_CC=$CC
2059 # Extract the first word of "cc", so it can be a program name with args.
2060 set dummy cc; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_ac_ct_CC="cc"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2079 fi
2080 done
2081 done
2082
2083 fi
2084 fi
2085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2086 if test -n "$ac_ct_CC"; then
2087 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2088 echo "${ECHO_T}$ac_ct_CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2092 fi
2093
2094 CC=$ac_ct_CC
2095 else
2096 CC="$ac_cv_prog_CC"
2097 fi
2098
2099 fi
2100 if test -z "$CC"; then
2101 # Extract the first word of "cc", so it can be a program name with args.
2102 set dummy cc; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 ac_prog_rejected=no
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2120 ac_prog_rejected=yes
2121 continue
2122 fi
2123 ac_cv_prog_CC="cc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2126 fi
2127 done
2128 done
2129
2130 if test $ac_prog_rejected = yes; then
2131 # We found a bogon in the path, so make sure we never use it.
2132 set dummy $ac_cv_prog_CC
2133 shift
2134 if test $# != 0; then
2135 # We chose a different compiler from the bogus one.
2136 # However, it has the same basename, so the bogon will be chosen
2137 # first if we set CC to just the basename; use the full file name.
2138 shift
2139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2140 fi
2141 fi
2142 fi
2143 fi
2144 CC=$ac_cv_prog_CC
2145 if test -n "$CC"; then
2146 echo "$as_me:$LINENO: result: $CC" >&5
2147 echo "${ECHO_T}$CC" >&6
2148 else
2149 echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6
2151 fi
2152
2153 fi
2154 if test -z "$CC"; then
2155 if test -n "$ac_tool_prefix"; then
2156 for ac_prog in cl
2157 do
2158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2178 fi
2179 done
2180 done
2181
2182 fi
2183 fi
2184 CC=$ac_cv_prog_CC
2185 if test -n "$CC"; then
2186 echo "$as_me:$LINENO: result: $CC" >&5
2187 echo "${ECHO_T}$CC" >&6
2188 else
2189 echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2191 fi
2192
2193 test -n "$CC" && break
2194 done
2195 fi
2196 if test -z "$CC"; then
2197 ac_ct_CC=$CC
2198 for ac_prog in cl
2199 do
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy $ac_prog; ac_word=$2
2202 echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207 if test -n "$ac_ct_CC"; then
2208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2217 ac_cv_prog_ac_ct_CC="$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2220 fi
2221 done
2222 done
2223
2224 fi
2225 fi
2226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2227 if test -n "$ac_ct_CC"; then
2228 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2229 echo "${ECHO_T}$ac_ct_CC" >&6
2230 else
2231 echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6
2233 fi
2234
2235 test -n "$ac_ct_CC" && break
2236 done
2237
2238 CC=$ac_ct_CC
2239 fi
2240
2241 fi
2242
2243
2244 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2245 See \`config.log' for more details." >&5
2246 echo "$as_me: error: no acceptable C compiler found in \$PATH
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2249
2250 # Provide some information about the compiler.
2251 echo "$as_me:$LINENO:" \
2252 "checking for C compiler version" >&5
2253 ac_compiler=`set X $ac_compile; echo $2`
2254 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2255 (eval $ac_compiler --version </dev/null >&5) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }
2259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2260 (eval $ac_compiler -v </dev/null >&5) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }
2264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2265 (eval $ac_compiler -V </dev/null >&5) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }
2269
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 /* confdefs.h. */
2273 _ACEOF
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2277
2278 int
2279 main ()
2280 {
2281
2282 ;
2283 return 0;
2284 }
2285 _ACEOF
2286 ac_clean_files_save=$ac_clean_files
2287 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2288 # Try to create an executable without -o first, disregard a.out.
2289 # It will help us diagnose broken compilers, and finding out an intuition
2290 # of exeext.
2291 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2292 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2293 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2294 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2295 (eval $ac_link_default) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 # Find the output, starting from the most likely. This scheme is
2300 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2301 # resort.
2302
2303 # Be careful to initialize this variable, since it used to be cached.
2304 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2305 ac_cv_exeext=
2306 # b.out is created by i960 compilers.
2307 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2308 do
2309 test -f "$ac_file" || continue
2310 case $ac_file in
2311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2312 ;;
2313 conftest.$ac_ext )
2314 # This is the source file.
2315 ;;
2316 [ab].out )
2317 # We found the default executable, but exeext='' is most
2318 # certainly right.
2319 break;;
2320 *.* )
2321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 # FIXME: I believe we export ac_cv_exeext for Libtool,
2323 # but it would be cool to find out if it's true. Does anybody
2324 # maintain Libtool? --akim.
2325 export ac_cv_exeext
2326 break;;
2327 * )
2328 break;;
2329 esac
2330 done
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: C compiler cannot create executables
2338 See \`config.log' for more details." >&2;}
2339 { (exit 77); exit 77; }; }
2340 fi
2341
2342 ac_exeext=$ac_cv_exeext
2343 echo "$as_me:$LINENO: result: $ac_file" >&5
2344 echo "${ECHO_T}$ac_file" >&6
2345
2346 # Check the compiler produces executables we can run. If not, either
2347 # the compiler is broken, or we cross compile.
2348 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2349 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2350 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2351 # If not cross compiling, check that we can run a simple program.
2352 if test "$cross_compiling" != yes; then
2353 if { ac_try='./$ac_file'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2359 cross_compiling=no
2360 else
2361 if test "$cross_compiling" = maybe; then
2362 cross_compiling=yes
2363 else
2364 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2365 If you meant to cross compile, use \`--host'.
2366 See \`config.log' for more details." >&5
2367 echo "$as_me: error: cannot run C compiled programs.
2368 If you meant to cross compile, use \`--host'.
2369 See \`config.log' for more details." >&2;}
2370 { (exit 1); exit 1; }; }
2371 fi
2372 fi
2373 fi
2374 echo "$as_me:$LINENO: result: yes" >&5
2375 echo "${ECHO_T}yes" >&6
2376
2377 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2378 ac_clean_files=$ac_clean_files_save
2379 # Check the compiler produces executables we can run. If not, either
2380 # the compiler is broken, or we cross compile.
2381 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2382 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2383 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2384 echo "${ECHO_T}$cross_compiling" >&6
2385
2386 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2387 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2389 (eval $ac_link) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; then
2393 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2394 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2395 # work properly (i.e., refer to `conftest.exe'), while it won't with
2396 # `rm'.
2397 for ac_file in conftest.exe conftest conftest.*; do
2398 test -f "$ac_file" || continue
2399 case $ac_file in
2400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2402 export ac_cv_exeext
2403 break;;
2404 * ) break;;
2405 esac
2406 done
2407 else
2408 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2409 See \`config.log' for more details." >&5
2410 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2411 See \`config.log' for more details." >&2;}
2412 { (exit 1); exit 1; }; }
2413 fi
2414
2415 rm -f conftest$ac_cv_exeext
2416 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2417 echo "${ECHO_T}$ac_cv_exeext" >&6
2418
2419 rm -f conftest.$ac_ext
2420 EXEEXT=$ac_cv_exeext
2421 ac_exeext=$EXEEXT
2422 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2423 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2424 if test "${ac_cv_objext+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 cat >conftest.$ac_ext <<_ACEOF
2428 #line $LINENO "configure"
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2434
2435 int
2436 main ()
2437 {
2438
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.o conftest.obj
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2450 case $ac_file in
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2453 break;;
2454 esac
2455 done
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2463 See \`config.log' for more details." >&2;}
2464 { (exit 1); exit 1; }; }
2465 fi
2466
2467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2468 fi
2469 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2470 echo "${ECHO_T}$ac_cv_objext" >&6
2471 OBJEXT=$ac_cv_objext
2472 ac_objext=$OBJEXT
2473 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2474 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2475 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line $LINENO "configure"
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485
2486 int
2487 main ()
2488 {
2489 #ifndef __GNUC__
2490 choke me
2491 #endif
2492
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 ac_compiler_gnu=yes
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 ac_compiler_gnu=no
2515 fi
2516 rm -f conftest.$ac_objext conftest.$ac_ext
2517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2518
2519 fi
2520 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2521 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2522 GCC=`test $ac_compiler_gnu = yes && echo yes`
2523 ac_test_CFLAGS=${CFLAGS+set}
2524 ac_save_CFLAGS=$CFLAGS
2525 CFLAGS="-g"
2526 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2527 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2528 if test "${ac_cv_prog_cc_g+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2533 /* confdefs.h. */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2538
2539 int
2540 main ()
2541 {
2542
2543 ;
2544 return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_cv_prog_cc_g=yes
2560 else
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 ac_cv_prog_cc_g=no
2565 fi
2566 rm -f conftest.$ac_objext conftest.$ac_ext
2567 fi
2568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2569 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2570 if test "$ac_test_CFLAGS" = set; then
2571 CFLAGS=$ac_save_CFLAGS
2572 elif test $ac_cv_prog_cc_g = yes; then
2573 if test "$GCC" = yes; then
2574 CFLAGS="-g -O2"
2575 else
2576 CFLAGS="-g"
2577 fi
2578 else
2579 if test "$GCC" = yes; then
2580 CFLAGS="-O2"
2581 else
2582 CFLAGS=
2583 fi
2584 fi
2585 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2586 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2587 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 ac_cv_prog_cc_stdc=no
2591 ac_save_CC=$CC
2592 cat >conftest.$ac_ext <<_ACEOF
2593 #line $LINENO "configure"
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2599 #include <stdarg.h>
2600 #include <stdio.h>
2601 #include <sys/types.h>
2602 #include <sys/stat.h>
2603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2604 struct buf { int x; };
2605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2606 static char *e (p, i)
2607 char **p;
2608 int i;
2609 {
2610 return p[i];
2611 }
2612 static char *f (char * (*g) (char **, int), char **p, ...)
2613 {
2614 char *s;
2615 va_list v;
2616 va_start (v,p);
2617 s = g (p, va_arg (v,int));
2618 va_end (v);
2619 return s;
2620 }
2621 int test (int i, double x);
2622 struct s1 {int (*f) (int a);};
2623 struct s2 {int (*f) (double a);};
2624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2625 int argc;
2626 char **argv;
2627 int
2628 main ()
2629 {
2630 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2631 ;
2632 return 0;
2633 }
2634 _ACEOF
2635 # Don't try gcc -ansi; that turns off useful extensions and
2636 # breaks some systems' header files.
2637 # AIX -qlanglvl=ansi
2638 # Ultrix and OSF/1 -std1
2639 # HP-UX 10.20 and later -Ae
2640 # HP-UX older versions -Aa -D_HPUX_SOURCE
2641 # SVR4 -Xc -D__EXTENSIONS__
2642 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2643 do
2644 CC="$ac_save_CC $ac_arg"
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_cv_prog_cc_stdc=$ac_arg
2658 break
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 fi
2664 rm -f conftest.$ac_objext
2665 done
2666 rm -f conftest.$ac_ext conftest.$ac_objext
2667 CC=$ac_save_CC
2668
2669 fi
2670
2671 case "x$ac_cv_prog_cc_stdc" in
2672 x|xno)
2673 echo "$as_me:$LINENO: result: none needed" >&5
2674 echo "${ECHO_T}none needed" >&6 ;;
2675 *)
2676 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2677 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2678 CC="$CC $ac_cv_prog_cc_stdc" ;;
2679 esac
2680
2681 # Some people use a C++ compiler to compile C. Since we use `exit',
2682 # in C++ we need to declare it. In case someone uses the same compiler
2683 # for both compiling C and C++ we need to have the C++ compiler decide
2684 # the declaration of exit, since it's the most demanding environment.
2685 cat >conftest.$ac_ext <<_ACEOF
2686 #ifndef __cplusplus
2687 choke me
2688 #endif
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 for ac_declaration in \
2703 ''\
2704 '#include <stdlib.h>' \
2705 'extern "C" void std::exit (int) throw (); using std::exit;' \
2706 'extern "C" void std::exit (int); using std::exit;' \
2707 'extern "C" void exit (int) throw ();' \
2708 'extern "C" void exit (int);' \
2709 'void exit (int);'
2710 do
2711 cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2718 #include <stdlib.h>
2719 $ac_declaration
2720 int
2721 main ()
2722 {
2723 exit (42);
2724 ;
2725 return 0;
2726 }
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 :
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 continue
2746 fi
2747 rm -f conftest.$ac_objext conftest.$ac_ext
2748 cat >conftest.$ac_ext <<_ACEOF
2749 #line $LINENO "configure"
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2755 $ac_declaration
2756 int
2757 main ()
2758 {
2759 exit (42);
2760 ;
2761 return 0;
2762 }
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 break
2777 else
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 fi
2782 rm -f conftest.$ac_objext conftest.$ac_ext
2783 done
2784 rm -f conftest*
2785 if test -n "$ac_declaration"; then
2786 echo '#ifdef __cplusplus' >>confdefs.h
2787 echo $ac_declaration >>confdefs.h
2788 echo '#endif' >>confdefs.h
2789 fi
2790
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 fi
2796 rm -f conftest.$ac_objext conftest.$ac_ext
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802
2803 depcc="$CC" am_compiler_list=
2804
2805 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2806 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2807 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2811 # We make a subdir and do the tests there. Otherwise we can end up
2812 # making bogus files that we don't know about and never remove. For
2813 # instance it was reported that on HP-UX the gcc test will end up
2814 # making a dummy file named `D' -- because `-MD' means `put the output
2815 # in D'.
2816 mkdir conftest.dir
2817 # Copy depcomp to subdir because otherwise we won't find it if we're
2818 # using a relative directory.
2819 cp "$am_depcomp" conftest.dir
2820 cd conftest.dir
2821
2822 am_cv_CC_dependencies_compiler_type=none
2823 if test "$am_compiler_list" = ""; then
2824 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2825 fi
2826 for depmode in $am_compiler_list; do
2827 # We need to recreate these files for each test, as the compiler may
2828 # overwrite some of them when testing with obscure command lines.
2829 # This happens at least with the AIX C compiler.
2830 echo '#include "conftest.h"' > conftest.c
2831 echo 'int i;' > conftest.h
2832 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2833
2834 case $depmode in
2835 nosideeffect)
2836 # after this tag, mechanisms are not by side-effect, so they'll
2837 # only be used when explicitly requested
2838 if test "x$enable_dependency_tracking" = xyes; then
2839 continue
2840 else
2841 break
2842 fi
2843 ;;
2844 none) break ;;
2845 esac
2846 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2847 # mode. It turns out that the SunPro C++ compiler does not properly
2848 # handle `-M -o', and we need to detect this.
2849 if depmode=$depmode \
2850 source=conftest.c object=conftest.o \
2851 depfile=conftest.Po tmpdepfile=conftest.TPo \
2852 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2853 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2855 am_cv_CC_dependencies_compiler_type=$depmode
2856 break
2857 fi
2858 done
2859
2860 cd ..
2861 rm -rf conftest.dir
2862 else
2863 am_cv_CC_dependencies_compiler_type=none
2864 fi
2865
2866 fi
2867 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2868 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2870
2871
2872
2873 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2874 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2875 if test "${ac_cv_search_strerror+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 ac_func_search_save_LIBS=$LIBS
2879 ac_cv_search_strerror=no
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 /* confdefs.h. */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2887
2888 /* Override any gcc2 internal prototype to avoid an error. */
2889 #ifdef __cplusplus
2890 extern "C"
2891 #endif
2892 /* We use char because int might match the return type of a gcc2
2893 builtin and then its argument prototype would still apply. */
2894 char strerror ();
2895 int
2896 main ()
2897 {
2898 strerror ();
2899 ;
2900 return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.$ac_objext conftest$ac_exeext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905 (eval $ac_link) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -s conftest$ac_exeext'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 (eval $ac_try) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 ac_cv_search_strerror="none required"
2916 else
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 fi
2921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2922 if test "$ac_cv_search_strerror" = no; then
2923 for ac_lib in cposix; do
2924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932
2933 /* Override any gcc2 internal prototype to avoid an error. */
2934 #ifdef __cplusplus
2935 extern "C"
2936 #endif
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2939 char strerror ();
2940 int
2941 main ()
2942 {
2943 strerror ();
2944 ;
2945 return 0;
2946 }
2947 _ACEOF
2948 rm -f conftest.$ac_objext conftest$ac_exeext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2950 (eval $ac_link) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -s conftest$ac_exeext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 (eval $ac_try) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 ac_cv_search_strerror="-l$ac_lib"
2961 break
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2968 done
2969 fi
2970 LIBS=$ac_func_search_save_LIBS
2971 fi
2972 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2973 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2974 if test "$ac_cv_search_strerror" != no; then
2975 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2976
2977 fi
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989 if test "${ac_cv_prog_CC+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013 echo "$as_me:$LINENO: result: $CC" >&5
3014 echo "${ECHO_T}$CC" >&6
3015 else
3016 echo "$as_me:$LINENO: result: no" >&5
3017 echo "${ECHO_T}no" >&6
3018 fi
3019
3020 fi
3021 if test -z "$ac_cv_prog_CC"; then
3022 ac_ct_CC=$CC
3023 # Extract the first word of "gcc", so it can be a program name with args.
3024 set dummy gcc; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="gcc"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046
3047 fi
3048 fi
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3052 echo "${ECHO_T}$ac_ct_CC" >&6
3053 else
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3056 fi
3057
3058 CC=$ac_ct_CC
3059 else
3060 CC="$ac_cv_prog_CC"
3061 fi
3062
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_CC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_CC="${ac_tool_prefix}cc"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088
3089 fi
3090 fi
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 echo "$as_me:$LINENO: result: $CC" >&5
3094 echo "${ECHO_T}$CC" >&6
3095 else
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3098 fi
3099
3100 fi
3101 if test -z "$ac_cv_prog_CC"; then
3102 ac_ct_CC=$CC
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 if test -n "$ac_ct_CC"; then
3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CC="cc"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126
3127 fi
3128 fi
3129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130 if test -n "$ac_ct_CC"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3132 echo "${ECHO_T}$ac_ct_CC" >&6
3133 else
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3136 fi
3137
3138 CC=$ac_ct_CC
3139 else
3140 CC="$ac_cv_prog_CC"
3141 fi
3142
3143 fi
3144 if test -z "$CC"; then
3145 # Extract the first word of "cc", so it can be a program name with args.
3146 set dummy cc; ac_word=$2
3147 echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 ac_prog_rejected=no
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3164 ac_prog_rejected=yes
3165 continue
3166 fi
3167 ac_cv_prog_CC="cc"
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171 done
3172 done
3173
3174 if test $ac_prog_rejected = yes; then
3175 # We found a bogon in the path, so make sure we never use it.
3176 set dummy $ac_cv_prog_CC
3177 shift
3178 if test $# != 0; then
3179 # We chose a different compiler from the bogus one.
3180 # However, it has the same basename, so the bogon will be chosen
3181 # first if we set CC to just the basename; use the full file name.
3182 shift
3183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3184 fi
3185 fi
3186 fi
3187 fi
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190 echo "$as_me:$LINENO: result: $CC" >&5
3191 echo "${ECHO_T}$CC" >&6
3192 else
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3195 fi
3196
3197 fi
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 for ac_prog in cl
3201 do
3202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 echo "$as_me:$LINENO: result: $CC" >&5
3231 echo "${ECHO_T}$CC" >&6
3232 else
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 fi
3236
3237 test -n "$CC" && break
3238 done
3239 fi
3240 if test -z "$CC"; then
3241 ac_ct_CC=$CC
3242 for ac_prog in cl
3243 do
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_CC="$ac_prog"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267
3268 fi
3269 fi
3270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271 if test -n "$ac_ct_CC"; then
3272 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3273 echo "${ECHO_T}$ac_ct_CC" >&6
3274 else
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277 fi
3278
3279 test -n "$ac_ct_CC" && break
3280 done
3281
3282 CC=$ac_ct_CC
3283 fi
3284
3285 fi
3286
3287
3288 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3289 See \`config.log' for more details." >&5
3290 echo "$as_me: error: no acceptable C compiler found in \$PATH
3291 See \`config.log' for more details." >&2;}
3292 { (exit 1); exit 1; }; }
3293
3294 # Provide some information about the compiler.
3295 echo "$as_me:$LINENO:" \
3296 "checking for C compiler version" >&5
3297 ac_compiler=`set X $ac_compile; echo $2`
3298 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3299 (eval $ac_compiler --version </dev/null >&5) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }
3303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3304 (eval $ac_compiler -v </dev/null >&5) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }
3308 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3309 (eval $ac_compiler -V </dev/null >&5) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }
3313
3314 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3315 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3316 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 cat >conftest.$ac_ext <<_ACEOF
3320 #line $LINENO "configure"
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326
3327 int
3328 main ()
3329 {
3330 #ifndef __GNUC__
3331 choke me
3332 #endif
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_compiler_gnu=yes
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 ac_compiler_gnu=no
3356 fi
3357 rm -f conftest.$ac_objext conftest.$ac_ext
3358 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359
3360 fi
3361 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3362 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3363 GCC=`test $ac_compiler_gnu = yes && echo yes`
3364 ac_test_CFLAGS=${CFLAGS+set}
3365 ac_save_CFLAGS=$CFLAGS
3366 CFLAGS="-g"
3367 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3368 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3369 if test "${ac_cv_prog_cc_g+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372 cat >conftest.$ac_ext <<_ACEOF
3373 #line $LINENO "configure"
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390 (eval $ac_compile) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 ac_cv_prog_cc_g=yes
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 ac_cv_prog_cc_g=no
3406 fi
3407 rm -f conftest.$ac_objext conftest.$ac_ext
3408 fi
3409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3411 if test "$ac_test_CFLAGS" = set; then
3412 CFLAGS=$ac_save_CFLAGS
3413 elif test $ac_cv_prog_cc_g = yes; then
3414 if test "$GCC" = yes; then
3415 CFLAGS="-g -O2"
3416 else
3417 CFLAGS="-g"
3418 fi
3419 else
3420 if test "$GCC" = yes; then
3421 CFLAGS="-O2"
3422 else
3423 CFLAGS=
3424 fi
3425 fi
3426 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3427 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3428 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431 ac_cv_prog_cc_stdc=no
3432 ac_save_CC=$CC
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line $LINENO "configure"
3435 /* confdefs.h. */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <stdarg.h>
3441 #include <stdio.h>
3442 #include <sys/types.h>
3443 #include <sys/stat.h>
3444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3445 struct buf { int x; };
3446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3447 static char *e (p, i)
3448 char **p;
3449 int i;
3450 {
3451 return p[i];
3452 }
3453 static char *f (char * (*g) (char **, int), char **p, ...)
3454 {
3455 char *s;
3456 va_list v;
3457 va_start (v,p);
3458 s = g (p, va_arg (v,int));
3459 va_end (v);
3460 return s;
3461 }
3462 int test (int i, double x);
3463 struct s1 {int (*f) (int a);};
3464 struct s2 {int (*f) (double a);};
3465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3466 int argc;
3467 char **argv;
3468 int
3469 main ()
3470 {
3471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 # Don't try gcc -ansi; that turns off useful extensions and
3477 # breaks some systems' header files.
3478 # AIX -qlanglvl=ansi
3479 # Ultrix and OSF/1 -std1
3480 # HP-UX 10.20 and later -Ae
3481 # HP-UX older versions -Aa -D_HPUX_SOURCE
3482 # SVR4 -Xc -D__EXTENSIONS__
3483 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3484 do
3485 CC="$ac_save_CC $ac_arg"
3486 rm -f conftest.$ac_objext
3487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488 (eval $ac_compile) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } &&
3492 { ac_try='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 (eval $ac_try) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_prog_cc_stdc=$ac_arg
3499 break
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 fi
3505 rm -f conftest.$ac_objext
3506 done
3507 rm -f conftest.$ac_ext conftest.$ac_objext
3508 CC=$ac_save_CC
3509
3510 fi
3511
3512 case "x$ac_cv_prog_cc_stdc" in
3513 x|xno)
3514 echo "$as_me:$LINENO: result: none needed" >&5
3515 echo "${ECHO_T}none needed" >&6 ;;
3516 *)
3517 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3518 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3519 CC="$CC $ac_cv_prog_cc_stdc" ;;
3520 esac
3521
3522 # Some people use a C++ compiler to compile C. Since we use `exit',
3523 # in C++ we need to declare it. In case someone uses the same compiler
3524 # for both compiling C and C++ we need to have the C++ compiler decide
3525 # the declaration of exit, since it's the most demanding environment.
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #ifndef __cplusplus
3528 choke me
3529 #endif
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3543 for ac_declaration in \
3544 ''\
3545 '#include <stdlib.h>' \
3546 'extern "C" void std::exit (int) throw (); using std::exit;' \
3547 'extern "C" void std::exit (int); using std::exit;' \
3548 'extern "C" void exit (int) throw ();' \
3549 'extern "C" void exit (int);' \
3550 'void exit (int);'
3551 do
3552 cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <stdlib.h>
3560 $ac_declaration
3561 int
3562 main ()
3563 {
3564 exit (42);
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 :
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 continue
3587 fi
3588 rm -f conftest.$ac_objext conftest.$ac_ext
3589 cat >conftest.$ac_ext <<_ACEOF
3590 #line $LINENO "configure"
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596 $ac_declaration
3597 int
3598 main ()
3599 {
3600 exit (42);
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3607 (eval $ac_compile) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 break
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 fi
3623 rm -f conftest.$ac_objext conftest.$ac_ext
3624 done
3625 rm -f conftest*
3626 if test -n "$ac_declaration"; then
3627 echo '#ifdef __cplusplus' >>confdefs.h
3628 echo $ac_declaration >>confdefs.h
3629 echo '#endif' >>confdefs.h
3630 fi
3631
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 fi
3637 rm -f conftest.$ac_objext conftest.$ac_ext
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644 depcc="$CC" am_compiler_list=
3645
3646 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3647 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3648 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3652 # We make a subdir and do the tests there. Otherwise we can end up
3653 # making bogus files that we don't know about and never remove. For
3654 # instance it was reported that on HP-UX the gcc test will end up
3655 # making a dummy file named `D' -- because `-MD' means `put the output
3656 # in D'.
3657 mkdir conftest.dir
3658 # Copy depcomp to subdir because otherwise we won't find it if we're
3659 # using a relative directory.
3660 cp "$am_depcomp" conftest.dir
3661 cd conftest.dir
3662
3663 am_cv_CC_dependencies_compiler_type=none
3664 if test "$am_compiler_list" = ""; then
3665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3666 fi
3667 for depmode in $am_compiler_list; do
3668 # We need to recreate these files for each test, as the compiler may
3669 # overwrite some of them when testing with obscure command lines.
3670 # This happens at least with the AIX C compiler.
3671 echo '#include "conftest.h"' > conftest.c
3672 echo 'int i;' > conftest.h
3673 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3674
3675 case $depmode in
3676 nosideeffect)
3677 # after this tag, mechanisms are not by side-effect, so they'll
3678 # only be used when explicitly requested
3679 if test "x$enable_dependency_tracking" = xyes; then
3680 continue
3681 else
3682 break
3683 fi
3684 ;;
3685 none) break ;;
3686 esac
3687 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3688 # mode. It turns out that the SunPro C++ compiler does not properly
3689 # handle `-M -o', and we need to detect this.
3690 if depmode=$depmode \
3691 source=conftest.c object=conftest.o \
3692 depfile=conftest.Po tmpdepfile=conftest.TPo \
3693 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3694 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3695 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3696 am_cv_CC_dependencies_compiler_type=$depmode
3697 break
3698 fi
3699 done
3700
3701 cd ..
3702 rm -rf conftest.dir
3703 else
3704 am_cv_CC_dependencies_compiler_type=none
3705 fi
3706
3707 fi
3708 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3709 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3710 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3711
3712
3713
3714
3715
3716 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3717 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3718 if test "${am_cv_prog_cc_stdc+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 am_cv_prog_cc_stdc=no
3722 ac_save_CC="$CC"
3723 # Don't try gcc -ansi; that turns off useful extensions and
3724 # breaks some systems' header files.
3725 # AIX -qlanglvl=ansi
3726 # Ultrix and OSF/1 -std1
3727 # HP-UX 10.20 and later -Ae
3728 # HP-UX older versions -Aa -D_HPUX_SOURCE
3729 # SVR4 -Xc -D__EXTENSIONS__
3730 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731 do
3732 CC="$ac_save_CC $ac_arg"
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 /* confdefs.h. */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 #include <stdarg.h>
3741 #include <stdio.h>
3742 #include <sys/types.h>
3743 #include <sys/stat.h>
3744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3745 struct buf { int x; };
3746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3747 static char *e (p, i)
3748 char **p;
3749 int i;
3750 {
3751 return p[i];
3752 }
3753 static char *f (char * (*g) (char **, int), char **p, ...)
3754 {
3755 char *s;
3756 va_list v;
3757 va_start (v,p);
3758 s = g (p, va_arg (v,int));
3759 va_end (v);
3760 return s;
3761 }
3762 int test (int i, double x);
3763 struct s1 {int (*f) (int a);};
3764 struct s2 {int (*f) (double a);};
3765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766 int argc;
3767 char **argv;
3768
3769 int
3770 main ()
3771 {
3772
3773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3774
3775 ;
3776 return 0;
3777 }
3778 _ACEOF
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -s conftest.$ac_objext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 am_cv_prog_cc_stdc="$ac_arg"; break
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3795
3796 fi
3797 rm -f conftest.$ac_objext conftest.$ac_ext
3798 done
3799 CC="$ac_save_CC"
3800
3801 fi
3802
3803 if test -z "$am_cv_prog_cc_stdc"; then
3804 echo "$as_me:$LINENO: result: none needed" >&5
3805 echo "${ECHO_T}none needed" >&6
3806 else
3807 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3808 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3809 fi
3810 case "x$am_cv_prog_cc_stdc" in
3811 x|xno) ;;
3812 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3813 esac
3814
3815 ac_ext=c
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3821 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3822 # On Suns, sometimes $CPP names a directory.
3823 if test -n "$CPP" && test -d "$CPP"; then
3824 CPP=
3825 fi
3826 if test -z "$CPP"; then
3827 if test "${ac_cv_prog_CPP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 # Double quotes because CPP needs to be expanded
3831 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3832 do
3833 ac_preproc_ok=false
3834 for ac_c_preproc_warn_flag in '' yes
3835 do
3836 # Use a header file that comes with gcc, so configuring glibc
3837 # with a fresh cross-compiler works.
3838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3839 # <limits.h> exists even on freestanding compilers.
3840 # On the NeXT, cc -E runs the code through the compiler's parser,
3841 # not just through cpp. "Syntax error" is here to catch this case.
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #ifdef __STDC__
3850 # include <limits.h>
3851 #else
3852 # include <assert.h>
3853 #endif
3854 Syntax error
3855 _ACEOF
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 else
3867 ac_cpp_err=
3868 fi
3869 else
3870 ac_cpp_err=yes
3871 fi
3872 if test -z "$ac_cpp_err"; then
3873 :
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 # Broken: fails on valid input.
3879 continue
3880 fi
3881 rm -f conftest.err conftest.$ac_ext
3882
3883 # OK, works on sane cases. Now check whether non-existent headers
3884 # can be detected and how.
3885 cat >conftest.$ac_ext <<_ACEOF
3886 #line $LINENO "configure"
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 else
3905 ac_cpp_err=
3906 fi
3907 else
3908 ac_cpp_err=yes
3909 fi
3910 if test -z "$ac_cpp_err"; then
3911 # Broken: success on invalid input.
3912 continue
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 # Passes both tests.
3918 ac_preproc_ok=:
3919 break
3920 fi
3921 rm -f conftest.err conftest.$ac_ext
3922
3923 done
3924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3925 rm -f conftest.err conftest.$ac_ext
3926 if $ac_preproc_ok; then
3927 break
3928 fi
3929
3930 done
3931 ac_cv_prog_CPP=$CPP
3932
3933 fi
3934 CPP=$ac_cv_prog_CPP
3935 else
3936 ac_cv_prog_CPP=$CPP
3937 fi
3938 echo "$as_me:$LINENO: result: $CPP" >&5
3939 echo "${ECHO_T}$CPP" >&6
3940 ac_preproc_ok=false
3941 for ac_c_preproc_warn_flag in '' yes
3942 do
3943 # Use a header file that comes with gcc, so configuring glibc
3944 # with a fresh cross-compiler works.
3945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946 # <limits.h> exists even on freestanding compilers.
3947 # On the NeXT, cc -E runs the code through the compiler's parser,
3948 # not just through cpp. "Syntax error" is here to catch this case.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #ifdef __STDC__
3957 # include <limits.h>
3958 #else
3959 # include <assert.h>
3960 #endif
3961 Syntax error
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 else
3974 ac_cpp_err=
3975 fi
3976 else
3977 ac_cpp_err=yes
3978 fi
3979 if test -z "$ac_cpp_err"; then
3980 :
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 # Broken: fails on valid input.
3986 continue
3987 fi
3988 rm -f conftest.err conftest.$ac_ext
3989
3990 # OK, works on sane cases. Now check whether non-existent headers
3991 # can be detected and how.
3992 cat >conftest.$ac_ext <<_ACEOF
3993 #line $LINENO "configure"
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4000 _ACEOF
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
4011 else
4012 ac_cpp_err=
4013 fi
4014 else
4015 ac_cpp_err=yes
4016 fi
4017 if test -z "$ac_cpp_err"; then
4018 # Broken: success on invalid input.
4019 continue
4020 else
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 # Passes both tests.
4025 ac_preproc_ok=:
4026 break
4027 fi
4028 rm -f conftest.err conftest.$ac_ext
4029
4030 done
4031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4032 rm -f conftest.err conftest.$ac_ext
4033 if $ac_preproc_ok; then
4034 :
4035 else
4036 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4037 See \`config.log' for more details." >&5
4038 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4039 See \`config.log' for more details." >&2;}
4040 { (exit 1); exit 1; }; }
4041 fi
4042
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049
4050 echo "$as_me:$LINENO: checking for egrep" >&5
4051 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4052 if test "${ac_cv_prog_egrep+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4056 then ac_cv_prog_egrep='grep -E'
4057 else ac_cv_prog_egrep='egrep'
4058 fi
4059 fi
4060 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4061 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4062 EGREP=$ac_cv_prog_egrep
4063
4064
4065 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4066 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4067 if test "${ac_cv_header_stdc+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #include <stdlib.h>
4078 #include <stdarg.h>
4079 #include <string.h>
4080 #include <float.h>
4081
4082 int
4083 main ()
4084 {
4085
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_header_stdc=yes
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_cv_header_stdc=no
4108 fi
4109 rm -f conftest.$ac_objext conftest.$ac_ext
4110
4111 if test $ac_cv_header_stdc = yes; then
4112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <string.h>
4121
4122 _ACEOF
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "memchr" >/dev/null 2>&1; then
4125 :
4126 else
4127 ac_cv_header_stdc=no
4128 fi
4129 rm -f conftest*
4130
4131 fi
4132
4133 if test $ac_cv_header_stdc = yes; then
4134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 #line $LINENO "configure"
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <stdlib.h>
4143
4144 _ACEOF
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "free" >/dev/null 2>&1; then
4147 :
4148 else
4149 ac_cv_header_stdc=no
4150 fi
4151 rm -f conftest*
4152
4153 fi
4154
4155 if test $ac_cv_header_stdc = yes; then
4156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4157 if test "$cross_compiling" = yes; then
4158 :
4159 else
4160 cat >conftest.$ac_ext <<_ACEOF
4161 #line $LINENO "configure"
4162 /* confdefs.h. */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #include <ctype.h>
4168 #if ((' ' & 0x0FF) == 0x020)
4169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4171 #else
4172 # define ISLOWER(c) \
4173 (('a' <= (c) && (c) <= 'i') \
4174 || ('j' <= (c) && (c) <= 'r') \
4175 || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177 #endif
4178
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180 int
4181 main ()
4182 {
4183 int i;
4184 for (i = 0; i < 256; i++)
4185 if (XOR (islower (i), ISLOWER (i))
4186 || toupper (i) != TOUPPER (i))
4187 exit(2);
4188 exit (0);
4189 }
4190 _ACEOF
4191 rm -f conftest$ac_exeext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193 (eval $ac_link) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 :
4203 else
4204 echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ( exit $ac_status )
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212 fi
4213 fi
4214 fi
4215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4217 if test $ac_cv_header_stdc = yes; then
4218
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4221 _ACEOF
4222
4223 fi
4224
4225 # Check whether --enable-shared or --disable-shared was given.
4226 if test "${enable_shared+set}" = set; then
4227 enableval="$enable_shared"
4228 p=${PACKAGE-default}
4229 case $enableval in
4230 yes) enable_shared=yes ;;
4231 no) enable_shared=no ;;
4232 *)
4233 enable_shared=no
4234 # Look at the argument we got. We use all the common list separators.
4235 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4236 for pkg in $enableval; do
4237 IFS="$lt_save_ifs"
4238 if test "X$pkg" = "X$p"; then
4239 enable_shared=yes
4240 fi
4241 done
4242 IFS="$lt_save_ifs"
4243 ;;
4244 esac
4245 else
4246 enable_shared=yes
4247 fi;
4248
4249 # Check whether --enable-static or --disable-static was given.
4250 if test "${enable_static+set}" = set; then
4251 enableval="$enable_static"
4252 p=${PACKAGE-default}
4253 case $enableval in
4254 yes) enable_static=yes ;;
4255 no) enable_static=no ;;
4256 *)
4257 enable_static=no
4258 # Look at the argument we got. We use all the common list separators.
4259 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4260 for pkg in $enableval; do
4261 IFS="$lt_save_ifs"
4262 if test "X$pkg" = "X$p"; then
4263 enable_static=yes
4264 fi
4265 done
4266 IFS="$lt_save_ifs"
4267 ;;
4268 esac
4269 else
4270 enable_static=yes
4271 fi;
4272
4273 # Check whether --enable-fast-install or --disable-fast-install was given.
4274 if test "${enable_fast_install+set}" = set; then
4275 enableval="$enable_fast_install"
4276 p=${PACKAGE-default}
4277 case $enableval in
4278 yes) enable_fast_install=yes ;;
4279 no) enable_fast_install=no ;;
4280 *)
4281 enable_fast_install=no
4282 # Look at the argument we got. We use all the common list separators.
4283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4284 for pkg in $enableval; do
4285 IFS="$lt_save_ifs"
4286 if test "X$pkg" = "X$p"; then
4287 enable_fast_install=yes
4288 fi
4289 done
4290 IFS="$lt_save_ifs"
4291 ;;
4292 esac
4293 else
4294 enable_fast_install=yes
4295 fi;
4296
4297 # Make sure we can run config.sub.
4298 $ac_config_sub sun4 >/dev/null 2>&1 ||
4299 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4300 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4301 { (exit 1); exit 1; }; }
4302
4303 echo "$as_me:$LINENO: checking build system type" >&5
4304 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4305 if test "${ac_cv_build+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 ac_cv_build_alias=$build_alias
4309 test -z "$ac_cv_build_alias" &&
4310 ac_cv_build_alias=`$ac_config_guess`
4311 test -z "$ac_cv_build_alias" &&
4312 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4313 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4314 { (exit 1); exit 1; }; }
4315 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4316 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4317 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4318 { (exit 1); exit 1; }; }
4319
4320 fi
4321 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4322 echo "${ECHO_T}$ac_cv_build" >&6
4323 build=$ac_cv_build
4324 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4325 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4326 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4327
4328
4329 echo "$as_me:$LINENO: checking host system type" >&5
4330 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4331 if test "${ac_cv_host+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 ac_cv_host_alias=$host_alias
4335 test -z "$ac_cv_host_alias" &&
4336 ac_cv_host_alias=$ac_cv_build_alias
4337 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4338 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4339 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4340 { (exit 1); exit 1; }; }
4341
4342 fi
4343 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4344 echo "${ECHO_T}$ac_cv_host" >&6
4345 host=$ac_cv_host
4346 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4347 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4348 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4349
4350
4351 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4352 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4353 if test "${lt_cv_path_SED+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 # Loop through the user's path and test for sed and gsed.
4357 # Then use that list of sed's as ones to test for truncation.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for lt_ac_prog in sed gsed; do
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4366 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4367 fi
4368 done
4369 done
4370 done
4371 lt_ac_max=0
4372 lt_ac_count=0
4373 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4374 # along with /bin/sed that truncates output.
4375 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4376 test ! -f $lt_ac_sed && break
4377 cat /dev/null > conftest.in
4378 lt_ac_count=0
4379 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4380 # Check for GNU sed and select it if it is found.
4381 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4382 lt_cv_path_SED=$lt_ac_sed
4383 break
4384 fi
4385 while true; do
4386 cat conftest.in conftest.in >conftest.tmp
4387 mv conftest.tmp conftest.in
4388 cp conftest.in conftest.nl
4389 echo >>conftest.nl
4390 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4391 cmp -s conftest.out conftest.nl || break
4392 # 10000 chars as input seems more than enough
4393 test $lt_ac_count -gt 10 && break
4394 lt_ac_count=`expr $lt_ac_count + 1`
4395 if test $lt_ac_count -gt $lt_ac_max; then
4396 lt_ac_max=$lt_ac_count
4397 lt_cv_path_SED=$lt_ac_sed
4398 fi
4399 done
4400 done
4401 SED=$lt_cv_path_SED
4402
4403 fi
4404
4405 echo "$as_me:$LINENO: result: $SED" >&5
4406 echo "${ECHO_T}$SED" >&6
4407
4408
4409 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4410 if test "${with_gnu_ld+set}" = set; then
4411 withval="$with_gnu_ld"
4412 test "$withval" = no || with_gnu_ld=yes
4413 else
4414 with_gnu_ld=no
4415 fi;
4416 ac_prog=ld
4417 if test "$GCC" = yes; then
4418 # Check if gcc -print-prog-name=ld gives a path.
4419 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4420 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4421 case $host in
4422 *-*-mingw*)
4423 # gcc leaves a trailing carriage return which upsets mingw
4424 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4425 *)
4426 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4427 esac
4428 case $ac_prog in
4429 # Accept absolute paths.
4430 [\\/]* | ?:[\\/]*)
4431 re_direlt='/[^/][^/]*/\.\./'
4432 # Canonicalize the path of ld
4433 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4434 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4435 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4436 done
4437 test -z "$LD" && LD="$ac_prog"
4438 ;;
4439 "")
4440 # If it fails, then pretend we aren't using GCC.
4441 ac_prog=ld
4442 ;;
4443 *)
4444 # If it is relative, then search for the first ld in PATH.
4445 with_gnu_ld=unknown
4446 ;;
4447 esac
4448 elif test "$with_gnu_ld" = yes; then
4449 echo "$as_me:$LINENO: checking for GNU ld" >&5
4450 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4451 else
4452 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4453 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4454 fi
4455 if test "${lt_cv_path_LD+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 if test -z "$LD"; then
4459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4460 for ac_dir in $PATH; do
4461 IFS="$lt_save_ifs"
4462 test -z "$ac_dir" && ac_dir=.
4463 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4464 lt_cv_path_LD="$ac_dir/$ac_prog"
4465 # Check to see if the program is GNU ld. I'd rather use --version,
4466 # but apparently some GNU ld's only accept -v.
4467 # Break only if it was the GNU/non-GNU ld that we prefer.
4468 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4469 *GNU* | *'with BFD'*)
4470 test "$with_gnu_ld" != no && break
4471 ;;
4472 *)
4473 test "$with_gnu_ld" != yes && break
4474 ;;
4475 esac
4476 fi
4477 done
4478 IFS="$lt_save_ifs"
4479 else
4480 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4481 fi
4482 fi
4483
4484 LD="$lt_cv_path_LD"
4485 if test -n "$LD"; then
4486 echo "$as_me:$LINENO: result: $LD" >&5
4487 echo "${ECHO_T}$LD" >&6
4488 else
4489 echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6
4491 fi
4492 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4493 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4494 { (exit 1); exit 1; }; }
4495 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4496 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4497 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4501 case `"$LD" -v 2>&1 </dev/null` in
4502 *GNU* | *'with BFD'*)
4503 lt_cv_prog_gnu_ld=yes
4504 ;;
4505 *)
4506 lt_cv_prog_gnu_ld=no
4507 ;;
4508 esac
4509 fi
4510 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4511 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4512 with_gnu_ld=$lt_cv_prog_gnu_ld
4513
4514
4515 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4516 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4517 if test "${lt_cv_ld_reload_flag+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 lt_cv_ld_reload_flag='-r'
4521 fi
4522 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4523 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4524 reload_flag=$lt_cv_ld_reload_flag
4525 case $reload_flag in
4526 "" | " "*) ;;
4527 *) reload_flag=" $reload_flag" ;;
4528 esac
4529 reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
4530
4531 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4532 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4533 if test "${lt_cv_path_NM+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536 if test -n "$NM"; then
4537 # Let the user override the test.
4538 lt_cv_path_NM="$NM"
4539 else
4540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4541 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4542 IFS="$lt_save_ifs"
4543 test -z "$ac_dir" && ac_dir=.
4544 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4545 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4546 # Check to see if the nm accepts a BSD-compat flag.
4547 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4548 # nm: unknown option "B" ignored
4549 # Tru64's nm complains that /dev/null is an invalid object file
4550 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4551 */dev/null* | *'Invalid file or object type'*)
4552 lt_cv_path_NM="$tmp_nm -B"
4553 break
4554 ;;
4555 *)
4556 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4557 */dev/null*)
4558 lt_cv_path_NM="$tmp_nm -p"
4559 break
4560 ;;
4561 *)
4562 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4563 continue # so that we can try to find one that supports BSD flags
4564 ;;
4565 esac
4566 esac
4567 fi
4568 done
4569 IFS="$lt_save_ifs"
4570 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4571 fi
4572 fi
4573 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4574 echo "${ECHO_T}$lt_cv_path_NM" >&6
4575 NM="$lt_cv_path_NM"
4576
4577 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4578 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4579 LN_S=$as_ln_s
4580 if test "$LN_S" = "ln -s"; then
4581 echo "$as_me:$LINENO: result: yes" >&5
4582 echo "${ECHO_T}yes" >&6
4583 else
4584 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4585 echo "${ECHO_T}no, using $LN_S" >&6
4586 fi
4587
4588 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4589 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4590 if test "${lt_cv_deplibs_check_method+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 lt_cv_file_magic_cmd='$MAGIC_CMD'
4594 lt_cv_file_magic_test_file=
4595 lt_cv_deplibs_check_method='unknown'
4596 # Need to set the preceding variable on all platforms that support
4597 # interlibrary dependencies.
4598 # 'none' -- dependencies not supported.
4599 # `unknown' -- same as none, but documents that we really don't know.
4600 # 'pass_all' -- all dependencies passed with no checks.
4601 # 'test_compile' -- check by making test program.
4602 # 'file_magic [[regex]]' -- check by looking for files in library path
4603 # which responds to the $file_magic_cmd with a given extended regex.
4604 # If you have `file' or equivalent on your system and you're not sure
4605 # whether `pass_all' will *always* work, you probably want this one.
4606
4607 case $host_os in
4608 aix4* | aix5*)
4609 lt_cv_deplibs_check_method=pass_all
4610 ;;
4611
4612 beos*)
4613 lt_cv_deplibs_check_method=pass_all
4614 ;;
4615
4616 bsdi4*)
4617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4618 lt_cv_file_magic_cmd='/usr/bin/file -L'
4619 lt_cv_file_magic_test_file=/shlib/libc.so
4620 ;;
4621
4622 cygwin* | mingw* | pw32*)
4623 # win32_libid is a shell function defined in ltmain.sh
4624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4625 lt_cv_file_magic_cmd='win32_libid'
4626 ;;
4627
4628 darwin* | rhapsody*)
4629 # this will be overwritten by pass_all, but leave it in just in case
4630 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4631 lt_cv_file_magic_cmd='/usr/bin/file -L'
4632 case "$host_os" in
4633 rhapsody* | darwin1.[012])
4634 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4635 ;;
4636 *) # Darwin 1.3 on
4637 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4638 ;;
4639 esac
4640 lt_cv_deplibs_check_method=pass_all
4641 ;;
4642
4643 freebsd*)
4644 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4645 case $host_cpu in
4646 i*86 )
4647 # Not sure whether the presence of OpenBSD here was a mistake.
4648 # Let's accept both of them until this is cleared up.
4649 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4650 lt_cv_file_magic_cmd=/usr/bin/file
4651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4652 ;;
4653 esac
4654 else
4655 lt_cv_deplibs_check_method=pass_all
4656 fi
4657 ;;
4658
4659 gnu*)
4660 lt_cv_deplibs_check_method=pass_all
4661 ;;
4662
4663 hpux10.20* | hpux11*)
4664 lt_cv_file_magic_cmd=/usr/bin/file
4665 case "$host_cpu" in
4666 ia64*)
4667 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4668 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4669 ;;
4670 hppa*64*)
4671 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]'
4672 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4673 ;;
4674 *)
4675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4676 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4677 ;;
4678 esac
4679 ;;
4680
4681 irix5* | irix6* | nonstopux*)
4682 case $host_os in
4683 irix5* | nonstopux*)
4684 # this will be overridden with pass_all, but let us keep it just in case
4685 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4686 ;;
4687 *)
4688 case $LD in
4689 *-32|*"-32 ") libmagic=32-bit;;
4690 *-n32|*"-n32 ") libmagic=N32;;
4691 *-64|*"-64 ") libmagic=64-bit;;
4692 *) libmagic=never-match;;
4693 esac
4694 # this will be overridden with pass_all, but let us keep it just in case
4695 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4696 ;;
4697 esac
4698 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4699 lt_cv_deplibs_check_method=pass_all
4700 ;;
4701
4702 # This must be Linux ELF.
4703 linux*)
4704 case $host_cpu in
4705 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4706 lt_cv_deplibs_check_method=pass_all ;;
4707 *)
4708 # glibc up to 2.1.1 does not perform some relocations on ARM
4709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4710 esac
4711 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4712 ;;
4713
4714 netbsd*)
4715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4717 else
4718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4719 fi
4720 ;;
4721
4722 newos6*)
4723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4724 lt_cv_file_magic_cmd=/usr/bin/file
4725 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4726 ;;
4727
4728 nto-qnx)
4729 lt_cv_deplibs_check_method=unknown
4730 ;;
4731
4732 openbsd*)
4733 lt_cv_file_magic_cmd=/usr/bin/file
4734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4736 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4737 else
4738 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4739 fi
4740 ;;
4741
4742 osf3* | osf4* | osf5*)
4743 # this will be overridden with pass_all, but let us keep it just in case
4744 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4745 lt_cv_file_magic_test_file=/shlib/libc.so
4746 lt_cv_deplibs_check_method=pass_all
4747 ;;
4748
4749 sco3.2v5*)
4750 lt_cv_deplibs_check_method=pass_all
4751 ;;
4752
4753 solaris*)
4754 lt_cv_deplibs_check_method=pass_all
4755 lt_cv_file_magic_test_file=/lib/libc.so
4756 ;;
4757
4758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4759 case $host_vendor in
4760 motorola)
4761 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]'
4762 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4763 ;;
4764 ncr)
4765 lt_cv_deplibs_check_method=pass_all
4766 ;;
4767 sequent)
4768 lt_cv_file_magic_cmd='/bin/file'
4769 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4770 ;;
4771 sni)
4772 lt_cv_file_magic_cmd='/bin/file'
4773 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4774 lt_cv_file_magic_test_file=/lib/libc.so
4775 ;;
4776 siemens)
4777 lt_cv_deplibs_check_method=pass_all
4778 ;;
4779 esac
4780 ;;
4781
4782 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
4785 esac
4786
4787 fi
4788 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4789 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4790 file_magic_cmd=$lt_cv_file_magic_cmd
4791 deplibs_check_method=$lt_cv_deplibs_check_method
4792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4793
4794
4795
4796
4797 # If no C compiler was specified, use CC.
4798 LTCC=${LTCC-"$CC"}
4799
4800 # Allow CC to be a program name with arguments.
4801 compiler=$CC
4802
4803 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4804 if test "${enable_libtool_lock+set}" = set; then
4805 enableval="$enable_libtool_lock"
4806
4807 fi;
4808 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4809
4810 # Some flags need to be propagated to the compiler or linker for good
4811 # libtool support.
4812 case $host in
4813 ia64-*-hpux*)
4814 # Find out which ABI we are using.
4815 echo 'int i;' > conftest.$ac_ext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; then
4821 case `/usr/bin/file conftest.$ac_objext` in
4822 *ELF-32*)
4823 HPUX_IA64_MODE="32"
4824 ;;
4825 *ELF-64*)
4826 HPUX_IA64_MODE="64"
4827 ;;
4828 esac
4829 fi
4830 rm -rf conftest*
4831 ;;
4832 *-*-irix6*)
4833 # Find out which ABI we are using.
4834 echo '#line 4834 "configure"' > conftest.$ac_ext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; then
4840 if test "$lt_cv_prog_gnu_ld" = yes; then
4841 case `/usr/bin/file conftest.$ac_objext` in
4842 *32-bit*)
4843 LD="${LD-ld} -melf32bsmip"
4844 ;;
4845 *N32*)
4846 LD="${LD-ld} -melf32bmipn32"
4847 ;;
4848 *64-bit*)
4849 LD="${LD-ld} -melf64bmip"
4850 ;;
4851 esac
4852 else
4853 case `/usr/bin/file conftest.$ac_objext` in
4854 *32-bit*)
4855 LD="${LD-ld} -32"
4856 ;;
4857 *N32*)
4858 LD="${LD-ld} -n32"
4859 ;;
4860 *64-bit*)
4861 LD="${LD-ld} -64"
4862 ;;
4863 esac
4864 fi
4865 fi
4866 rm -rf conftest*
4867 ;;
4868
4869 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4870 # Find out which ABI we are using.
4871 echo 'int i;' > conftest.$ac_ext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; then
4877 case "`/usr/bin/file conftest.o`" in
4878 *32-bit*)
4879 case $host in
4880 x86_64-*linux*)
4881 LD="${LD-ld} -m elf_i386"
4882 ;;
4883 ppc64-*linux*)
4884 LD="${LD-ld} -m elf32ppclinux"
4885 ;;
4886 s390x-*linux*)
4887 LD="${LD-ld} -m elf_s390"
4888 ;;
4889 sparc64-*linux*)
4890 LD="${LD-ld} -m elf32_sparc"
4891 ;;
4892 esac
4893 ;;
4894 *64-bit*)
4895 case $host in
4896 x86_64-*linux*)
4897 LD="${LD-ld} -m elf_x86_64"
4898 ;;
4899 ppc*-*linux*|powerpc*-*linux*)
4900 LD="${LD-ld} -m elf64ppc"
4901 ;;
4902 s390*-*linux*)
4903 LD="${LD-ld} -m elf64_s390"
4904 ;;
4905 sparc*-*linux*)
4906 LD="${LD-ld} -m elf64_sparc"
4907 ;;
4908 esac
4909 ;;
4910 esac
4911 fi
4912 rm -rf conftest*
4913 ;;
4914
4915 *-*-sco3.2v5*)
4916 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4917 SAVE_CFLAGS="$CFLAGS"
4918 CFLAGS="$CFLAGS -belf"
4919 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4920 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4921 if test "${lt_cv_cc_needs_belf+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929
4930 cat >conftest.$ac_ext <<_ACEOF
4931 #line $LINENO "configure"
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937
4938 int
4939 main ()
4940 {
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 rm -f conftest.$ac_objext conftest$ac_exeext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948 (eval $ac_link) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 lt_cv_cc_needs_belf=yes
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 lt_cv_cc_needs_belf=no
4964 fi
4965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4966 ac_ext=c
4967 ac_cpp='$CPP $CPPFLAGS'
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971
4972 fi
4973 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4974 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4975 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4976 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4977 CFLAGS="$SAVE_CFLAGS"
4978 fi
4979 ;;
4980
4981 esac
4982
4983 need_locks="$enable_libtool_lock"
4984
4985
4986 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4997 inttypes.h stdint.h unistd.h
4998 do
4999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5000 echo "$as_me:$LINENO: checking for $ac_header" >&5
5001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 $ac_includes_default
5013
5014 #include <$ac_header>
5015 _ACEOF
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 eval "$as_ac_Header=yes"
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 eval "$as_ac_Header=no"
5034 fi
5035 rm -f conftest.$ac_objext conftest.$ac_ext
5036 fi
5037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5040 cat >>confdefs.h <<_ACEOF
5041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042 _ACEOF
5043
5044 fi
5045
5046 done
5047
5048
5049
5050 for ac_header in dlfcn.h
5051 do
5052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5054 echo "$as_me:$LINENO: checking for $ac_header" >&5
5055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 fi
5059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5061 else
5062 # Is the header compilable?
5063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5073 #include <$ac_header>
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_header_compiler=yes
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 ac_header_compiler=no
5093 fi
5094 rm -f conftest.$ac_objext conftest.$ac_ext
5095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5096 echo "${ECHO_T}$ac_header_compiler" >&6
5097
5098 # Is the header present?
5099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5101 cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <$ac_header>
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_c_preproc_warn_flag
5120 else
5121 ac_cpp_err=
5122 fi
5123 else
5124 ac_cpp_err=yes
5125 fi
5126 if test -z "$ac_cpp_err"; then
5127 ac_header_preproc=yes
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 ac_header_preproc=no
5133 fi
5134 rm -f conftest.err conftest.$ac_ext
5135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5136 echo "${ECHO_T}$ac_header_preproc" >&6
5137
5138 # So? What about this header?
5139 case $ac_header_compiler:$ac_header_preproc in
5140 yes:no )
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5145 (
5146 cat <<\_ASBOX
5147 ## ------------------------------------ ##
5148 ## Report this to [email protected]. ##
5149 ## ------------------------------------ ##
5150 _ASBOX
5151 ) |
5152 sed "s/^/$as_me: WARNING: /" >&2
5153 ;;
5154 no:yes )
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 (
5162 cat <<\_ASBOX
5163 ## ------------------------------------ ##
5164 ## Report this to [email protected]. ##
5165 ## ------------------------------------ ##
5166 _ASBOX
5167 ) |
5168 sed "s/^/$as_me: WARNING: /" >&2
5169 ;;
5170 esac
5171 echo "$as_me:$LINENO: checking for $ac_header" >&5
5172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176 eval "$as_ac_Header=$ac_header_preproc"
5177 fi
5178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180
5181 fi
5182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5183 cat >>confdefs.h <<_ACEOF
5184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5185 _ACEOF
5186
5187 fi
5188
5189 done
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 if test -n "$ac_tool_prefix"; then
5197 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5198 do
5199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_CXX+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test -n "$CXX"; then
5207 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220 done
5221 done
5222
5223 fi
5224 fi
5225 CXX=$ac_cv_prog_CXX
5226 if test -n "$CXX"; then
5227 echo "$as_me:$LINENO: result: $CXX" >&5
5228 echo "${ECHO_T}$CXX" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5232 fi
5233
5234 test -n "$CXX" && break
5235 done
5236 fi
5237 if test -z "$CXX"; then
5238 ac_ct_CXX=$CXX
5239 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5240 do
5241 # Extract the first word of "$ac_prog", so it can be a program name with args.
5242 set dummy $ac_prog; ac_word=$2
5243 echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 if test -n "$ac_ct_CXX"; then
5249 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_prog_ac_ct_CXX="$ac_prog"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262 done
5263 done
5264
5265 fi
5266 fi
5267 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5268 if test -n "$ac_ct_CXX"; then
5269 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5270 echo "${ECHO_T}$ac_ct_CXX" >&6
5271 else
5272 echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6
5274 fi
5275
5276 test -n "$ac_ct_CXX" && break
5277 done
5278 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5279
5280 CXX=$ac_ct_CXX
5281 fi
5282
5283
5284 # Provide some information about the compiler.
5285 echo "$as_me:$LINENO:" \
5286 "checking for C++ compiler version" >&5
5287 ac_compiler=`set X $ac_compile; echo $2`
5288 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5289 (eval $ac_compiler --version </dev/null >&5) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5294 (eval $ac_compiler -v </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
5304 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5305 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5306 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309 cat >conftest.$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316
5317 int
5318 main ()
5319 {
5320 #ifndef __GNUC__
5321 choke me
5322 #endif
5323
5324 ;
5325 return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_compiler_gnu=yes
5341 else
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345 ac_compiler_gnu=no
5346 fi
5347 rm -f conftest.$ac_objext conftest.$ac_ext
5348 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5349
5350 fi
5351 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5352 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5353 GXX=`test $ac_compiler_gnu = yes && echo yes`
5354 ac_test_CXXFLAGS=${CXXFLAGS+set}
5355 ac_save_CXXFLAGS=$CXXFLAGS
5356 CXXFLAGS="-g"
5357 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5358 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5359 if test "${ac_cv_prog_cxx_g+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 cat >conftest.$ac_ext <<_ACEOF
5363 #line $LINENO "configure"
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369
5370 int
5371 main ()
5372 {
5373
5374 ;
5375 return 0;
5376 }
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_prog_cxx_g=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_cv_prog_cxx_g=no
5396 fi
5397 rm -f conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5400 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5401 if test "$ac_test_CXXFLAGS" = set; then
5402 CXXFLAGS=$ac_save_CXXFLAGS
5403 elif test $ac_cv_prog_cxx_g = yes; then
5404 if test "$GXX" = yes; then
5405 CXXFLAGS="-g -O2"
5406 else
5407 CXXFLAGS="-g"
5408 fi
5409 else
5410 if test "$GXX" = yes; then
5411 CXXFLAGS="-O2"
5412 else
5413 CXXFLAGS=
5414 fi
5415 fi
5416 for ac_declaration in \
5417 ''\
5418 '#include <stdlib.h>' \
5419 'extern "C" void std::exit (int) throw (); using std::exit;' \
5420 'extern "C" void std::exit (int); using std::exit;' \
5421 'extern "C" void exit (int) throw ();' \
5422 'extern "C" void exit (int);' \
5423 'void exit (int);'
5424 do
5425 cat >conftest.$ac_ext <<_ACEOF
5426 #line $LINENO "configure"
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <stdlib.h>
5433 $ac_declaration
5434 int
5435 main ()
5436 {
5437 exit (42);
5438 ;
5439 return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 :
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 continue
5460 fi
5461 rm -f conftest.$ac_objext conftest.$ac_ext
5462 cat >conftest.$ac_ext <<_ACEOF
5463 #line $LINENO "configure"
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 $ac_declaration
5470 int
5471 main ()
5472 {
5473 exit (42);
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480 (eval $ac_compile) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -s conftest.$ac_objext'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 (eval $ac_try) 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 break
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5494
5495 fi
5496 rm -f conftest.$ac_objext conftest.$ac_ext
5497 done
5498 rm -f conftest*
5499 if test -n "$ac_declaration"; then
5500 echo '#ifdef __cplusplus' >>confdefs.h
5501 echo $ac_declaration >>confdefs.h
5502 echo '#endif' >>confdefs.h
5503 fi
5504
5505 ac_ext=cc
5506 ac_cpp='$CXXCPP $CPPFLAGS'
5507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5510
5511 depcc="$CXX" am_compiler_list=
5512
5513 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5514 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5515 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5519 # We make a subdir and do the tests there. Otherwise we can end up
5520 # making bogus files that we don't know about and never remove. For
5521 # instance it was reported that on HP-UX the gcc test will end up
5522 # making a dummy file named `D' -- because `-MD' means `put the output
5523 # in D'.
5524 mkdir conftest.dir
5525 # Copy depcomp to subdir because otherwise we won't find it if we're
5526 # using a relative directory.
5527 cp "$am_depcomp" conftest.dir
5528 cd conftest.dir
5529
5530 am_cv_CXX_dependencies_compiler_type=none
5531 if test "$am_compiler_list" = ""; then
5532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5533 fi
5534 for depmode in $am_compiler_list; do
5535 # We need to recreate these files for each test, as the compiler may
5536 # overwrite some of them when testing with obscure command lines.
5537 # This happens at least with the AIX C compiler.
5538 echo '#include "conftest.h"' > conftest.c
5539 echo 'int i;' > conftest.h
5540 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5541
5542 case $depmode in
5543 nosideeffect)
5544 # after this tag, mechanisms are not by side-effect, so they'll
5545 # only be used when explicitly requested
5546 if test "x$enable_dependency_tracking" = xyes; then
5547 continue
5548 else
5549 break
5550 fi
5551 ;;
5552 none) break ;;
5553 esac
5554 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5555 # mode. It turns out that the SunPro C++ compiler does not properly
5556 # handle `-M -o', and we need to detect this.
5557 if depmode=$depmode \
5558 source=conftest.c object=conftest.o \
5559 depfile=conftest.Po tmpdepfile=conftest.TPo \
5560 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
5561 grep conftest.h conftest.Po > /dev/null 2>&1 &&
5562 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5563 am_cv_CXX_dependencies_compiler_type=$depmode
5564 break
5565 fi
5566 done
5567
5568 cd ..
5569 rm -rf conftest.dir
5570 else
5571 am_cv_CXX_dependencies_compiler_type=none
5572 fi
5573
5574 fi
5575 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5576 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5577 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5578
5579
5580 ac_ext=cc
5581 ac_cpp='$CXXCPP $CPPFLAGS'
5582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5585 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5586 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5587 if test -z "$CXXCPP"; then
5588 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 # Double quotes because CXXCPP needs to be expanded
5592 for CXXCPP in "$CXX -E" "/lib/cpp"
5593 do
5594 ac_preproc_ok=false
5595 for ac_cxx_preproc_warn_flag in '' yes
5596 do
5597 # Use a header file that comes with gcc, so configuring glibc
5598 # with a fresh cross-compiler works.
5599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 # <limits.h> exists even on freestanding compilers.
5601 # On the NeXT, cc -E runs the code through the compiler's parser,
5602 # not just through cpp. "Syntax error" is here to catch this case.
5603 cat >conftest.$ac_ext <<_ACEOF
5604 #line $LINENO "configure"
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #ifdef __STDC__
5611 # include <limits.h>
5612 #else
5613 # include <assert.h>
5614 #endif
5615 Syntax error
5616 _ACEOF
5617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } >/dev/null; then
5625 if test -s conftest.err; then
5626 ac_cpp_err=$ac_cxx_preproc_warn_flag
5627 else
5628 ac_cpp_err=
5629 fi
5630 else
5631 ac_cpp_err=yes
5632 fi
5633 if test -z "$ac_cpp_err"; then
5634 :
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 # Broken: fails on valid input.
5640 continue
5641 fi
5642 rm -f conftest.err conftest.$ac_ext
5643
5644 # OK, works on sane cases. Now check whether non-existent headers
5645 # can be detected and how.
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } >/dev/null; then
5663 if test -s conftest.err; then
5664 ac_cpp_err=$ac_cxx_preproc_warn_flag
5665 else
5666 ac_cpp_err=
5667 fi
5668 else
5669 ac_cpp_err=yes
5670 fi
5671 if test -z "$ac_cpp_err"; then
5672 # Broken: success on invalid input.
5673 continue
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678 # Passes both tests.
5679 ac_preproc_ok=:
5680 break
5681 fi
5682 rm -f conftest.err conftest.$ac_ext
5683
5684 done
5685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5686 rm -f conftest.err conftest.$ac_ext
5687 if $ac_preproc_ok; then
5688 break
5689 fi
5690
5691 done
5692 ac_cv_prog_CXXCPP=$CXXCPP
5693
5694 fi
5695 CXXCPP=$ac_cv_prog_CXXCPP
5696 else
5697 ac_cv_prog_CXXCPP=$CXXCPP
5698 fi
5699 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5700 echo "${ECHO_T}$CXXCPP" >&6
5701 ac_preproc_ok=false
5702 for ac_cxx_preproc_warn_flag in '' yes
5703 do
5704 # Use a header file that comes with gcc, so configuring glibc
5705 # with a fresh cross-compiler works.
5706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707 # <limits.h> exists even on freestanding compilers.
5708 # On the NeXT, cc -E runs the code through the compiler's parser,
5709 # not just through cpp. "Syntax error" is here to catch this case.
5710 cat >conftest.$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #ifdef __STDC__
5718 # include <limits.h>
5719 #else
5720 # include <assert.h>
5721 #endif
5722 Syntax error
5723 _ACEOF
5724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null; then
5732 if test -s conftest.err; then
5733 ac_cpp_err=$ac_cxx_preproc_warn_flag
5734 else
5735 ac_cpp_err=
5736 fi
5737 else
5738 ac_cpp_err=yes
5739 fi
5740 if test -z "$ac_cpp_err"; then
5741 :
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746 # Broken: fails on valid input.
5747 continue
5748 fi
5749 rm -f conftest.err conftest.$ac_ext
5750
5751 # OK, works on sane cases. Now check whether non-existent headers
5752 # can be detected and how.
5753 cat >conftest.$ac_ext <<_ACEOF
5754 #line $LINENO "configure"
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <ac_nonexistent.h>
5761 _ACEOF
5762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } >/dev/null; then
5770 if test -s conftest.err; then
5771 ac_cpp_err=$ac_cxx_preproc_warn_flag
5772 else
5773 ac_cpp_err=
5774 fi
5775 else
5776 ac_cpp_err=yes
5777 fi
5778 if test -z "$ac_cpp_err"; then
5779 # Broken: success on invalid input.
5780 continue
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 # Passes both tests.
5786 ac_preproc_ok=:
5787 break
5788 fi
5789 rm -f conftest.err conftest.$ac_ext
5790
5791 done
5792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793 rm -f conftest.err conftest.$ac_ext
5794 if $ac_preproc_ok; then
5795 :
5796 else
5797 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5798 See \`config.log' for more details." >&5
5799 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5800 See \`config.log' for more details." >&2;}
5801 { (exit 1); exit 1; }; }
5802 fi
5803
5804 ac_ext=cc
5805 ac_cpp='$CXXCPP $CPPFLAGS'
5806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809
5810
5811 ac_ext=f
5812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5815 if test -n "$ac_tool_prefix"; then
5816 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5817 do
5818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822 if test "${ac_cv_prog_F77+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825 if test -n "$F77"; then
5826 ac_cv_prog_F77="$F77" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841
5842 fi
5843 fi
5844 F77=$ac_cv_prog_F77
5845 if test -n "$F77"; then
5846 echo "$as_me:$LINENO: result: $F77" >&5
5847 echo "${ECHO_T}$F77" >&6
5848 else
5849 echo "$as_me:$LINENO: result: no" >&5
5850 echo "${ECHO_T}no" >&6
5851 fi
5852
5853 test -n "$F77" && break
5854 done
5855 fi
5856 if test -z "$F77"; then
5857 ac_ct_F77=$F77
5858 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5859 do
5860 # Extract the first word of "$ac_prog", so it can be a program name with args.
5861 set dummy $ac_prog; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 if test -n "$ac_ct_F77"; then
5868 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_ac_ct_F77="$ac_prog"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881 done
5882 done
5883
5884 fi
5885 fi
5886 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5887 if test -n "$ac_ct_F77"; then
5888 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5889 echo "${ECHO_T}$ac_ct_F77" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6
5893 fi
5894
5895 test -n "$ac_ct_F77" && break
5896 done
5897
5898 F77=$ac_ct_F77
5899 fi
5900
5901
5902 # Provide some information about the compiler.
5903 echo "$as_me:5903:" \
5904 "checking for Fortran 77 compiler version" >&5
5905 ac_compiler=`set X $ac_compile; echo $2`
5906 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5907 (eval $ac_compiler --version </dev/null >&5) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }
5911 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5912 (eval $ac_compiler -v </dev/null >&5) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }
5916 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5917 (eval $ac_compiler -V </dev/null >&5) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }
5921
5922 # If we don't use `.F' as extension, the preprocessor is not run on the
5923 # input file.
5924 ac_save_ext=$ac_ext
5925 ac_ext=F
5926 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5927 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5928 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 cat >conftest.$ac_ext <<_ACEOF
5932 program main
5933 #ifndef __GNUC__
5934 choke me
5935 #endif
5936
5937 end
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_compiler_gnu=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_compiler_gnu=no
5957 fi
5958 rm -f conftest.$ac_objext conftest.$ac_ext
5959 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5960
5961 fi
5962 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5963 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5964 ac_ext=$ac_save_ext
5965 G77=`test $ac_compiler_gnu = yes && echo yes`
5966 ac_test_FFLAGS=${FFLAGS+set}
5967 ac_save_FFLAGS=$FFLAGS
5968 FFLAGS=
5969 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5970 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5971 if test "${ac_cv_prog_f77_g+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 FFLAGS=-g
5975 cat >conftest.$ac_ext <<_ACEOF
5976 program main
5977
5978 end
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 (eval $ac_try) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_prog_f77_g=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997 ac_cv_prog_f77_g=no
5998 fi
5999 rm -f conftest.$ac_objext conftest.$ac_ext
6000
6001 fi
6002 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6003 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6004 if test "$ac_test_FFLAGS" = set; then
6005 FFLAGS=$ac_save_FFLAGS
6006 elif test $ac_cv_prog_f77_g = yes; then
6007 if test "$G77" = yes; then
6008 FFLAGS="-g -O2"
6009 else
6010 FFLAGS="-g"
6011 fi
6012 else
6013 if test "$G77" = yes; then
6014 FFLAGS="-O2"
6015 else
6016 FFLAGS=
6017 fi
6018 fi
6019 ac_ext=c
6020 ac_cpp='$CPP $CPPFLAGS'
6021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6024
6025
6026
6027 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6028
6029 # find the maximum length of command line arguments
6030 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6031 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6032 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 i=0
6036 testring="ABCD"
6037
6038 case $build_os in
6039 msdosdjgpp*)
6040 # On DJGPP, this test can blow up pretty badly due to problems in libc
6041 # (any single argument exceeding 2000 bytes causes a buffer overrun
6042 # during glob expansion). Even if it were fixed, the result of this
6043 # check would be larger than it should be.
6044 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6045 ;;
6046
6047 gnu*)
6048 # Under GNU Hurd, this test is not required because there is
6049 # no limit to the length of command line arguments.
6050 # Libtool will interpret -1 as no limit whatsoever
6051 lt_cv_sys_max_cmd_len=-1;
6052 ;;
6053
6054 cygwin* | mingw*)
6055 # On Win9x/ME, this test blows up -- it succeeds, but takes
6056 # about 5 minutes as the teststring grows exponentially.
6057 # Worse, since 9x/ME are not pre-emptively multitasking,
6058 # you end up with a "frozen" computer, even though with patience
6059 # the test eventually succeeds (with a max line length of 256k).
6060 # Instead, let's just punt: use the minimum linelength reported by
6061 # all of the supported platforms: 8192 (on NT/2K/XP).
6062 lt_cv_sys_max_cmd_len=8192;
6063 ;;
6064
6065 *)
6066 # If test is not a shell built-in, we'll probably end up computing a
6067 # maximum length that is only half of the actual maximum length, but
6068 # we can't tell.
6069 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6070 = "XX$testring") >/dev/null 2>&1 &&
6071 new_result=`expr "X$testring" : ".*" 2>&1` &&
6072 lt_cv_sys_max_cmd_len=$new_result &&
6073 test $i != 17 # 1/2 MB should be enough
6074 do
6075 i=`expr $i + 1`
6076 testring=$testring$testring
6077 done
6078 testring=
6079 # Add a significant safety factor because C++ compilers can tack on massive
6080 # amounts of additional arguments before passing them to the linker.
6081 # It appears as though 1/2 is a usable value.
6082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6083 ;;
6084 esac
6085
6086 fi
6087
6088 if test -n $lt_cv_sys_max_cmd_len ; then
6089 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6090 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6091 else
6092 echo "$as_me:$LINENO: result: none" >&5
6093 echo "${ECHO_T}none" >&6
6094 fi
6095
6096
6097
6098
6099 # Check for command to grab the raw symbol name followed by C symbol from nm.
6100 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6101 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6102 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105
6106 # These are sane defaults that work on at least a few old systems.
6107 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6108
6109 # Character class describing NM global symbol codes.
6110 symcode='[BCDEGRST]'
6111
6112 # Regexp to match symbols that can be accessed directly from C.
6113 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6114
6115 # Transform the above into a raw symbol and a C symbol.
6116 symxfrm='\1 \2\3 \3'
6117
6118 # Transform an extracted symbol line into a proper C declaration
6119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6120
6121 # Transform an extracted symbol line into symbol name and symbol address
6122 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'"
6123
6124 # Define system-specific variables.
6125 case $host_os in
6126 aix*)
6127 symcode='[BCDT]'
6128 ;;
6129 cygwin* | mingw* | pw32*)
6130 symcode='[ABCDGISTW]'
6131 ;;
6132 hpux*) # Its linker distinguishes data from code symbols
6133 if test "$host_cpu" = ia64; then
6134 symcode='[ABCDEGRST]'
6135 fi
6136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6137 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'"
6138 ;;
6139 irix* | nonstopux*)
6140 symcode='[BCDEGRST]'
6141 ;;
6142 osf*)
6143 symcode='[BCDEGQRST]'
6144 ;;
6145 solaris* | sysv5*)
6146 symcode='[BDT]'
6147 ;;
6148 sysv4)
6149 symcode='[DFNSTU]'
6150 ;;
6151 esac
6152
6153 # Handle CRLF in mingw tool chain
6154 opt_cr=
6155 case $build_os in
6156 mingw*)
6157 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6158 ;;
6159 esac
6160
6161 # If we're using GNU nm, then use its standard symbol codes.
6162 case `$NM -V 2>&1` in
6163 *GNU* | *'with BFD'*)
6164 symcode='[ABCDGISTW]' ;;
6165 esac
6166
6167 # Try without a prefix undercore, then with it.
6168 for ac_symprfx in "" "_"; do
6169
6170 # Write the raw and C identifiers.
6171 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6172
6173 # Check to see that the pipe works correctly.
6174 pipe_works=no
6175
6176 rm -f conftest*
6177 cat > conftest.$ac_ext <<EOF
6178 #ifdef __cplusplus
6179 extern "C" {
6180 #endif
6181 char nm_test_var;
6182 void nm_test_func(){}
6183 #ifdef __cplusplus
6184 }
6185 #endif
6186 int main(){nm_test_var='a';nm_test_func();return(0);}
6187 EOF
6188
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; then
6194 # Now try to grab the symbols.
6195 nlist=conftest.nm
6196 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6197 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } && test -s "$nlist"; then
6201 # Try sorting and uniquifying the output.
6202 if sort "$nlist" | uniq > "$nlist"T; then
6203 mv -f "$nlist"T "$nlist"
6204 else
6205 rm -f "$nlist"T
6206 fi
6207
6208 # Make sure that we snagged all the symbols we need.
6209 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6210 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6211 cat <<EOF > conftest.$ac_ext
6212 #ifdef __cplusplus
6213 extern "C" {
6214 #endif
6215
6216 EOF
6217 # Now generate the symbol file.
6218 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6219
6220 cat <<EOF >> conftest.$ac_ext
6221 #if defined (__STDC__) && __STDC__
6222 # define lt_ptr_t void *
6223 #else
6224 # define lt_ptr_t char *
6225 # define const
6226 #endif
6227
6228 /* The mapping between symbol names and symbols. */
6229 const struct {
6230 const char *name;
6231 lt_ptr_t address;
6232 }
6233 lt_preloaded_symbols[] =
6234 {
6235 EOF
6236 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6237 cat <<\EOF >> conftest.$ac_ext
6238 {0, (lt_ptr_t) 0}
6239 };
6240
6241 #ifdef __cplusplus
6242 }
6243 #endif
6244 EOF
6245 # Now try linking the two files.
6246 mv conftest.$ac_objext conftstm.$ac_objext
6247 lt_save_LIBS="$LIBS"
6248 lt_save_CFLAGS="$CFLAGS"
6249 LIBS="conftstm.$ac_objext"
6250 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6256 pipe_works=yes
6257 fi
6258 LIBS="$lt_save_LIBS"
6259 CFLAGS="$lt_save_CFLAGS"
6260 else
6261 echo "cannot find nm_test_func in $nlist" >&5
6262 fi
6263 else
6264 echo "cannot find nm_test_var in $nlist" >&5
6265 fi
6266 else
6267 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6268 fi
6269 else
6270 echo "$progname: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6272 fi
6273 rm -f conftest* conftst*
6274
6275 # Do not use the global_symbol_pipe unless it works.
6276 if test "$pipe_works" = yes; then
6277 break
6278 else
6279 lt_cv_sys_global_symbol_pipe=
6280 fi
6281 done
6282
6283 fi
6284
6285 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6286 lt_cv_sys_global_symbol_to_cdecl=
6287 fi
6288 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6289 echo "$as_me:$LINENO: result: failed" >&5
6290 echo "${ECHO_T}failed" >&6
6291 else
6292 echo "$as_me:$LINENO: result: ok" >&5
6293 echo "${ECHO_T}ok" >&6
6294 fi
6295
6296 echo "$as_me:$LINENO: checking for objdir" >&5
6297 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6298 if test "${lt_cv_objdir+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301 rm -f .libs 2>/dev/null
6302 mkdir .libs 2>/dev/null
6303 if test -d .libs; then
6304 lt_cv_objdir=.libs
6305 else
6306 # MS-DOS does not allow filenames that begin with a dot.
6307 lt_cv_objdir=_libs
6308 fi
6309 rmdir .libs 2>/dev/null
6310 fi
6311 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6312 echo "${ECHO_T}$lt_cv_objdir" >&6
6313 objdir=$lt_cv_objdir
6314
6315
6316
6317
6318
6319 case $host_os in
6320 aix3*)
6321 # AIX sometimes has problems with the GCC collect2 program. For some
6322 # reason, if we set the COLLECT_NAMES environment variable, the problems
6323 # vanish in a puff of smoke.
6324 if test "X${COLLECT_NAMES+set}" != Xset; then
6325 COLLECT_NAMES=
6326 export COLLECT_NAMES
6327 fi
6328 ;;
6329 esac
6330
6331 # Sed substitution that helps us do robust quoting. It backslashifies
6332 # metacharacters that are still active within double-quoted strings.
6333 Xsed='sed -e s/^X//'
6334 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6335
6336 # Same as above, but do not quote variable references.
6337 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6338
6339 # Sed substitution to delay expansion of an escaped shell variable in a
6340 # double_quote_subst'ed string.
6341 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6342
6343 # Sed substitution to undo escaping of the cmd sep variable
6344 unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
6345
6346 # Sed substitution to avoid accidental globbing in evaled expressions
6347 no_glob_subst='s/\*/\\\*/g'
6348
6349 # Constants:
6350 rm="rm -f"
6351
6352 # Global variables:
6353 default_ofile=libtool
6354 can_build_shared=yes
6355
6356 # All known linkers require a `.a' archive for static linking (except M$VC,
6357 # which needs '.lib').
6358 libext=a
6359 ltmain="$ac_aux_dir/ltmain.sh"
6360 ofile="$default_ofile"
6361 with_gnu_ld="$lt_cv_prog_gnu_ld"
6362
6363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}ar; ac_word=$2
6366 echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6368 if test "${ac_cv_prog_AR+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371 if test -n "$AR"; then
6372 ac_cv_prog_AR="$AR" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_AR="${ac_tool_prefix}ar"
6382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385 done
6386 done
6387
6388 fi
6389 fi
6390 AR=$ac_cv_prog_AR
6391 if test -n "$AR"; then
6392 echo "$as_me:$LINENO: result: $AR" >&5
6393 echo "${ECHO_T}$AR" >&6
6394 else
6395 echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6397 fi
6398
6399 fi
6400 if test -z "$ac_cv_prog_AR"; then
6401 ac_ct_AR=$AR
6402 # Extract the first word of "ar", so it can be a program name with args.
6403 set dummy ar; ac_word=$2
6404 echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6406 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 if test -n "$ac_ct_AR"; then
6410 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419 ac_cv_prog_ac_ct_AR="ar"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423 done
6424 done
6425
6426 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6427 fi
6428 fi
6429 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6430 if test -n "$ac_ct_AR"; then
6431 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6432 echo "${ECHO_T}$ac_ct_AR" >&6
6433 else
6434 echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6
6436 fi
6437
6438 AR=$ac_ct_AR
6439 else
6440 AR="$ac_cv_prog_AR"
6441 fi
6442
6443 if test -n "$ac_tool_prefix"; then
6444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6446 echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6448 if test "${ac_cv_prog_RANLIB+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 if test -n "$RANLIB"; then
6452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467
6468 fi
6469 fi
6470 RANLIB=$ac_cv_prog_RANLIB
6471 if test -n "$RANLIB"; then
6472 echo "$as_me:$LINENO: result: $RANLIB" >&5
6473 echo "${ECHO_T}$RANLIB" >&6
6474 else
6475 echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6
6477 fi
6478
6479 fi
6480 if test -z "$ac_cv_prog_RANLIB"; then
6481 ac_ct_RANLIB=$RANLIB
6482 # Extract the first word of "ranlib", so it can be a program name with args.
6483 set dummy ranlib; ac_word=$2
6484 echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6486 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489 if test -n "$ac_ct_RANLIB"; then
6490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_ac_ct_RANLIB="ranlib"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505
6506 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6507 fi
6508 fi
6509 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6510 if test -n "$ac_ct_RANLIB"; then
6511 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6512 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6516 fi
6517
6518 RANLIB=$ac_ct_RANLIB
6519 else
6520 RANLIB="$ac_cv_prog_RANLIB"
6521 fi
6522
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}strip; ac_word=$2
6526 echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528 if test "${ac_cv_prog_STRIP+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 if test -n "$STRIP"; then
6532 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545 done
6546 done
6547
6548 fi
6549 fi
6550 STRIP=$ac_cv_prog_STRIP
6551 if test -n "$STRIP"; then
6552 echo "$as_me:$LINENO: result: $STRIP" >&5
6553 echo "${ECHO_T}$STRIP" >&6
6554 else
6555 echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6
6557 fi
6558
6559 fi
6560 if test -z "$ac_cv_prog_STRIP"; then
6561 ac_ct_STRIP=$STRIP
6562 # Extract the first word of "strip", so it can be a program name with args.
6563 set dummy strip; ac_word=$2
6564 echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6566 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 if test -n "$ac_ct_STRIP"; then
6570 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579 ac_cv_prog_ac_ct_STRIP="strip"
6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585
6586 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6587 fi
6588 fi
6589 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6590 if test -n "$ac_ct_STRIP"; then
6591 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6592 echo "${ECHO_T}$ac_ct_STRIP" >&6
6593 else
6594 echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6
6596 fi
6597
6598 STRIP=$ac_ct_STRIP
6599 else
6600 STRIP="$ac_cv_prog_STRIP"
6601 fi
6602
6603
6604 old_CC="$CC"
6605 old_CFLAGS="$CFLAGS"
6606
6607 # Set sane defaults for various variables
6608 test -z "$AR" && AR=ar
6609 test -z "$AR_FLAGS" && AR_FLAGS=cru
6610 test -z "$AS" && AS=as
6611 test -z "$CC" && CC=cc
6612 test -z "$LTCC" && LTCC=$CC
6613 test -z "$DLLTOOL" && DLLTOOL=dlltool
6614 test -z "$LD" && LD=ld
6615 test -z "$LN_S" && LN_S="ln -s"
6616 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6617 test -z "$NM" && NM=nm
6618 test -z "$SED" && SED=sed
6619 test -z "$OBJDUMP" && OBJDUMP=objdump
6620 test -z "$RANLIB" && RANLIB=:
6621 test -z "$STRIP" && STRIP=:
6622 test -z "$ac_objext" && ac_objext=o
6623
6624 # Determine commands to create old-style static archives.
6625 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6626 old_postinstall_cmds='chmod 644 $oldlib'
6627 old_postuninstall_cmds=
6628
6629 if test -n "$RANLIB"; then
6630 case $host_os in
6631 openbsd*)
6632 old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
6633 ;;
6634 *)
6635 old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
6636 ;;
6637 esac
6638 old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
6639 fi
6640
6641 # Only perform the check for file, if the check method requires it
6642 case $deplibs_check_method in
6643 file_magic*)
6644 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6645 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6646 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6647 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 case $MAGIC_CMD in
6651 [\\/*] | ?:[\\/]*)
6652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6653 ;;
6654 *)
6655 lt_save_MAGIC_CMD="$MAGIC_CMD"
6656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6658 for ac_dir in $ac_dummy; do
6659 IFS="$lt_save_ifs"
6660 test -z "$ac_dir" && ac_dir=.
6661 if test -f $ac_dir/${ac_tool_prefix}file; then
6662 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6663 if test -n "$file_magic_test_file"; then
6664 case $deplibs_check_method in
6665 "file_magic "*)
6666 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6669 $EGREP "$file_magic_regex" > /dev/null; then
6670 :
6671 else
6672 cat <<EOF 1>&2
6673
6674 *** Warning: the command libtool uses to detect shared libraries,
6675 *** $file_magic_cmd, produces output that libtool cannot recognize.
6676 *** The result is that libtool may fail to recognize shared libraries
6677 *** as such. This will affect the creation of libtool libraries that
6678 *** depend on shared libraries, but programs linked with such libtool
6679 *** libraries will work regardless of this problem. Nevertheless, you
6680 *** may want to report the problem to your system manager and/or to
6681 *** [email protected]
6682
6683 EOF
6684 fi ;;
6685 esac
6686 fi
6687 break
6688 fi
6689 done
6690 IFS="$lt_save_ifs"
6691 MAGIC_CMD="$lt_save_MAGIC_CMD"
6692 ;;
6693 esac
6694 fi
6695
6696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6697 if test -n "$MAGIC_CMD"; then
6698 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6699 echo "${ECHO_T}$MAGIC_CMD" >&6
6700 else
6701 echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6
6703 fi
6704
6705 if test -z "$lt_cv_path_MAGIC_CMD"; then
6706 if test -n "$ac_tool_prefix"; then
6707 echo "$as_me:$LINENO: checking for file" >&5
6708 echo $ECHO_N "checking for file... $ECHO_C" >&6
6709 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712 case $MAGIC_CMD in
6713 [\\/*] | ?:[\\/]*)
6714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6715 ;;
6716 *)
6717 lt_save_MAGIC_CMD="$MAGIC_CMD"
6718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6720 for ac_dir in $ac_dummy; do
6721 IFS="$lt_save_ifs"
6722 test -z "$ac_dir" && ac_dir=.
6723 if test -f $ac_dir/file; then
6724 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6725 if test -n "$file_magic_test_file"; then
6726 case $deplibs_check_method in
6727 "file_magic "*)
6728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6731 $EGREP "$file_magic_regex" > /dev/null; then
6732 :
6733 else
6734 cat <<EOF 1>&2
6735
6736 *** Warning: the command libtool uses to detect shared libraries,
6737 *** $file_magic_cmd, produces output that libtool cannot recognize.
6738 *** The result is that libtool may fail to recognize shared libraries
6739 *** as such. This will affect the creation of libtool libraries that
6740 *** depend on shared libraries, but programs linked with such libtool
6741 *** libraries will work regardless of this problem. Nevertheless, you
6742 *** may want to report the problem to your system manager and/or to
6743 *** [email protected]
6744
6745 EOF
6746 fi ;;
6747 esac
6748 fi
6749 break
6750 fi
6751 done
6752 IFS="$lt_save_ifs"
6753 MAGIC_CMD="$lt_save_MAGIC_CMD"
6754 ;;
6755 esac
6756 fi
6757
6758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6759 if test -n "$MAGIC_CMD"; then
6760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6761 echo "${ECHO_T}$MAGIC_CMD" >&6
6762 else
6763 echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6
6765 fi
6766
6767 else
6768 MAGIC_CMD=:
6769 fi
6770 fi
6771
6772 fi
6773 ;;
6774 esac
6775
6776 enable_dlopen=no
6777 enable_win32_dll=no
6778
6779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6780 if test "${enable_libtool_lock+set}" = set; then
6781 enableval="$enable_libtool_lock"
6782
6783 fi;
6784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6785
6786
6787 # Check whether --with-pic or --without-pic was given.
6788 if test "${with_pic+set}" = set; then
6789 withval="$with_pic"
6790 pic_mode="$withval"
6791 else
6792 pic_mode=default
6793 fi;
6794 test -z "$pic_mode" && pic_mode=default
6795
6796 # Use C for the default configuration in the libtool script
6797 tagname=
6798 lt_save_CC="$CC"
6799 ac_ext=c
6800 ac_cpp='$CPP $CPPFLAGS'
6801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6804
6805
6806 # Source file extension for C test sources.
6807 ac_ext=c
6808
6809 # Object file extension for compiled C test sources.
6810 objext=o
6811 objext=$objext
6812
6813 # Code to be used in simple compile tests
6814 lt_simple_compile_test_code="int some_variable = 0;\n"
6815
6816 # Code to be used in simple link tests
6817 lt_simple_link_test_code='int main(){return(0);}\n'
6818
6819
6820 # If no C compiler was specified, use CC.
6821 LTCC=${LTCC-"$CC"}
6822
6823 # Allow CC to be a program name with arguments.
6824 compiler=$CC
6825
6826
6827 #
6828 # Check for any special shared library compilation flags.
6829 #
6830 lt_prog_cc_shlib=
6831 if test "$GCC" = no; then
6832 case $host_os in
6833 sco3.2v5*)
6834 lt_prog_cc_shlib='-belf'
6835 ;;
6836 esac
6837 fi
6838 if test -n "$lt_prog_cc_shlib"; then
6839 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6840 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6841 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6842 else
6843 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6844 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6845 lt_cv_prog_cc_can_build_shared=no
6846 fi
6847 fi
6848
6849
6850 #
6851 # Check to make sure the static flag actually works.
6852 #
6853 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6854 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6855 if test "${lt_prog_compiler_static_works+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 lt_prog_compiler_static_works=no
6859 save_LDFLAGS="$LDFLAGS"
6860 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6861 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6863 # The compiler can only warn and ignore the option if not recognized
6864 # So say no if there are warnings
6865 if test -s conftest.err; then
6866 # Append any errors to the config.log.
6867 cat conftest.err 1>&5
6868 else
6869 lt_prog_compiler_static_works=yes
6870 fi
6871 fi
6872 $rm conftest*
6873 LDFLAGS="$save_LDFLAGS"
6874
6875 fi
6876 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6877 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6878
6879 if test x"$lt_prog_compiler_static_works" = xyes; then
6880 :
6881 else
6882 lt_prog_compiler_static=
6883 fi
6884
6885
6886
6887
6888 lt_prog_compiler_no_builtin_flag=
6889
6890 if test "$GCC" = yes; then
6891 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6892
6893 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6894 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6895 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 lt_cv_prog_compiler_rtti_exceptions=no
6899 ac_outfile=conftest.$ac_objext
6900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6901 lt_compiler_flag="-fno-rtti -fno-exceptions"
6902 # Insert the option either (1) after the last *FLAGS variable, or
6903 # (2) before a word containing "conftest.", or (3) at the end.
6904 # Note that $ac_compile itself does not contain backslashes and begins
6905 # with a dollar sign (not a hyphen), so the echo should work correctly.
6906 # The option is referenced via a variable to avoid confusing sed.
6907 lt_compile=`echo "$ac_compile" | $SED \
6908 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6910 -e 's:$: $lt_compiler_flag:'`
6911 (eval echo "\"\$as_me:6911: $lt_compile\"" >&5)
6912 (eval "$lt_compile" 2>conftest.err)
6913 ac_status=$?
6914 cat conftest.err >&5
6915 echo "$as_me:6915: \$? = $ac_status" >&5
6916 if (exit $ac_status) && test -s "$ac_outfile"; then
6917 # The compiler can only warn and ignore the option if not recognized
6918 # So say no if there are warnings
6919 if test ! -s conftest.err; then
6920 lt_cv_prog_compiler_rtti_exceptions=yes
6921 fi
6922 fi
6923 $rm conftest*
6924
6925 fi
6926 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6927 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6928
6929 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6930 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6931 else
6932 :
6933 fi
6934
6935 fi
6936
6937 lt_prog_compiler_wl=
6938 lt_prog_compiler_pic=
6939 lt_prog_compiler_static=
6940
6941 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6942 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6943
6944 if test "$GCC" = yes; then
6945 lt_prog_compiler_wl='-Wl,'
6946 lt_prog_compiler_static='-static'
6947
6948 case $host_os in
6949 aix*)
6950 # All AIX code is PIC.
6951 if test "$host_cpu" = ia64; then
6952 # AIX 5 now supports IA64 processor
6953 lt_prog_compiler_static='-Bstatic'
6954 fi
6955 ;;
6956
6957 amigaos*)
6958 # FIXME: we need at least 68020 code to build shared libraries, but
6959 # adding the `-m68020' flag to GCC prevents building anything better,
6960 # like `-m68040'.
6961 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6962 ;;
6963
6964 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6965 # PIC is the default for these OSes.
6966 ;;
6967
6968 mingw* | pw32* | os2*)
6969 # This hack is so that the source file can tell whether it is being
6970 # built for inclusion in a dll (and should export symbols for example).
6971 lt_prog_compiler_pic='-DDLL_EXPORT'
6972 ;;
6973
6974 darwin* | rhapsody*)
6975 # PIC is the default on this platform
6976 # Common symbols not allowed in MH_DYLIB files
6977 lt_prog_compiler_pic='-fno-common'
6978 ;;
6979
6980 msdosdjgpp*)
6981 # Just because we use GCC doesn't mean we suddenly get shared libraries
6982 # on systems that don't support them.
6983 lt_prog_compiler_can_build_shared=no
6984 enable_shared=no
6985 ;;
6986
6987 sysv4*MP*)
6988 if test -d /usr/nec; then
6989 lt_prog_compiler_pic=-Kconform_pic
6990 fi
6991 ;;
6992
6993 hpux*)
6994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6995 # not for PA HP-UX.
6996 case "$host_cpu" in
6997 hppa*64*|ia64*)
6998 # +Z the default
6999 ;;
7000 *)
7001 lt_prog_compiler_pic='-fPIC'
7002 ;;
7003 esac
7004 ;;
7005
7006 *)
7007 lt_prog_compiler_pic='-fPIC'
7008 ;;
7009 esac
7010 else
7011 # PORTME Check for flag to pass linker flags through the system compiler.
7012 case $host_os in
7013 aix*)
7014 lt_prog_compiler_wl='-Wl,'
7015 if test "$host_cpu" = ia64; then
7016 # AIX 5 now supports IA64 processor
7017 lt_prog_compiler_static='-Bstatic'
7018 else
7019 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7020 fi
7021 ;;
7022
7023 mingw* | pw32* | os2*)
7024 # This hack is so that the source file can tell whether it is being
7025 # built for inclusion in a dll (and should export symbols for example).
7026 lt_prog_compiler_pic='-DDLL_EXPORT'
7027 ;;
7028
7029 hpux9* | hpux10* | hpux11*)
7030 lt_prog_compiler_wl='-Wl,'
7031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7032 # not for PA HP-UX.
7033 case "$host_cpu" in
7034 hppa*64*|ia64*)
7035 # +Z the default
7036 ;;
7037 *)
7038 lt_prog_compiler_pic='+Z'
7039 ;;
7040 esac
7041 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7042 lt_prog_compiler_static='${wl}-a ${wl}archive'
7043 ;;
7044
7045 irix5* | irix6* | nonstopux*)
7046 lt_prog_compiler_wl='-Wl,'
7047 # PIC (with -KPIC) is the default.
7048 lt_prog_compiler_static='-non_shared'
7049 ;;
7050
7051 newsos6)
7052 lt_prog_compiler_pic='-KPIC'
7053 lt_prog_compiler_static='-Bstatic'
7054 ;;
7055
7056 linux*)
7057 case $CC in
7058 icc|ecc)
7059 lt_prog_compiler_wl='-Wl,'
7060 lt_prog_compiler_pic='-KPIC'
7061 lt_prog_compiler_static='-static'
7062 ;;
7063 ccc)
7064 lt_prog_compiler_wl='-Wl,'
7065 # All Alpha code is PIC.
7066 lt_prog_compiler_static='-non_shared'
7067 ;;
7068 esac
7069 ;;
7070
7071 osf3* | osf4* | osf5*)
7072 lt_prog_compiler_wl='-Wl,'
7073 # All OSF/1 code is PIC.
7074 lt_prog_compiler_static='-non_shared'
7075 ;;
7076
7077 sco3.2v5*)
7078 lt_prog_compiler_pic='-Kpic'
7079 lt_prog_compiler_static='-dn'
7080 ;;
7081
7082 solaris*)
7083 lt_prog_compiler_wl='-Wl,'
7084 lt_prog_compiler_pic='-KPIC'
7085 lt_prog_compiler_static='-Bstatic'
7086 ;;
7087
7088 sunos4*)
7089 lt_prog_compiler_wl='-Qoption ld '
7090 lt_prog_compiler_pic='-PIC'
7091 lt_prog_compiler_static='-Bstatic'
7092 ;;
7093
7094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7095 lt_prog_compiler_wl='-Wl,'
7096 lt_prog_compiler_pic='-KPIC'
7097 lt_prog_compiler_static='-Bstatic'
7098 ;;
7099
7100 sysv4*MP*)
7101 if test -d /usr/nec ;then
7102 lt_prog_compiler_pic='-Kconform_pic'
7103 lt_prog_compiler_static='-Bstatic'
7104 fi
7105 ;;
7106
7107 uts4*)
7108 lt_prog_compiler_pic='-pic'
7109 lt_prog_compiler_static='-Bstatic'
7110 ;;
7111
7112 *)
7113 lt_prog_compiler_can_build_shared=no
7114 ;;
7115 esac
7116 fi
7117
7118 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7119 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7120
7121 #
7122 # Check to make sure the PIC flag actually works.
7123 #
7124 if test -n "$lt_prog_compiler_pic"; then
7125 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7126 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7127 if test "${lt_prog_compiler_pic_works+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 lt_prog_compiler_pic_works=no
7131 ac_outfile=conftest.$ac_objext
7132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7134 # Insert the option either (1) after the last *FLAGS variable, or
7135 # (2) before a word containing "conftest.", or (3) at the end.
7136 # Note that $ac_compile itself does not contain backslashes and begins
7137 # with a dollar sign (not a hyphen), so the echo should work correctly.
7138 # The option is referenced via a variable to avoid confusing sed.
7139 lt_compile=`echo "$ac_compile" | $SED \
7140 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7142 -e 's:$: $lt_compiler_flag:'`
7143 (eval echo "\"\$as_me:7143: $lt_compile\"" >&5)
7144 (eval "$lt_compile" 2>conftest.err)
7145 ac_status=$?
7146 cat conftest.err >&5
7147 echo "$as_me:7147: \$? = $ac_status" >&5
7148 if (exit $ac_status) && test -s "$ac_outfile"; then
7149 # The compiler can only warn and ignore the option if not recognized
7150 # So say no if there are warnings
7151 if test ! -s conftest.err; then
7152 lt_prog_compiler_pic_works=yes
7153 fi
7154 fi
7155 $rm conftest*
7156
7157 fi
7158 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7159 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7160
7161 if test x"$lt_prog_compiler_pic_works" = xyes; then
7162 case $lt_prog_compiler_pic in
7163 "" | " "*) ;;
7164 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7165 esac
7166 else
7167 lt_prog_compiler_pic=
7168 lt_prog_compiler_can_build_shared=no
7169 fi
7170
7171 fi
7172 case "$host_os" in
7173 # For platforms which do not support PIC, -DPIC is meaningless:
7174 *djgpp*)
7175 lt_prog_compiler_pic=
7176 ;;
7177 *)
7178 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7179 ;;
7180 esac
7181
7182 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7183 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7184 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 lt_cv_prog_compiler_c_o=no
7188 $rm -r conftest 2>/dev/null
7189 mkdir conftest
7190 cd conftest
7191 mkdir out
7192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7193
7194 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7195 # that will create temporary files in the current directory regardless of
7196 # the output directory. Thus, making CWD read-only will cause this test
7197 # to fail, enabling locking or at least warning the user not to do parallel
7198 # builds.
7199 chmod -w .
7200
7201 lt_compiler_flag="-o out/conftest2.$ac_objext"
7202 # Insert the option either (1) after the last *FLAGS variable, or
7203 # (2) before a word containing "conftest.", or (3) at the end.
7204 # Note that $ac_compile itself does not contain backslashes and begins
7205 # with a dollar sign (not a hyphen), so the echo should work correctly.
7206 lt_compile=`echo "$ac_compile" | $SED \
7207 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7209 -e 's:$: $lt_compiler_flag:'`
7210 (eval echo "\"\$as_me:7210: $lt_compile\"" >&5)
7211 (eval "$lt_compile" 2>out/conftest.err)
7212 ac_status=$?
7213 cat out/conftest.err >&5
7214 echo "$as_me:7214: \$? = $ac_status" >&5
7215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7216 then
7217 # The compiler can only warn and ignore the option if not recognized
7218 # So say no if there are warnings
7219 if test ! -s out/conftest.err; then
7220 lt_cv_prog_compiler_c_o=yes
7221 fi
7222 fi
7223 chmod u+w .
7224 $rm conftest* out/*
7225 rmdir out
7226 cd ..
7227 rmdir conftest
7228 $rm conftest*
7229
7230 fi
7231 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7232 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7233
7234
7235 hard_links="nottested"
7236 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7237 # do not overwrite the value of need_locks provided by the user
7238 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7239 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7240 hard_links=yes
7241 $rm conftest*
7242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7243 touch conftest.a
7244 ln conftest.a conftest.b 2>&5 || hard_links=no
7245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7246 echo "$as_me:$LINENO: result: $hard_links" >&5
7247 echo "${ECHO_T}$hard_links" >&6
7248 if test "$hard_links" = no; then
7249 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7250 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7251 need_locks=warn
7252 fi
7253 else
7254 need_locks=no
7255 fi
7256
7257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7259
7260 runpath_var=
7261 allow_undefined_flag=
7262 enable_shared_with_static_runtimes=no
7263 archive_cmds=
7264 archive_expsym_cmds=
7265 old_archive_From_new_cmds=
7266 old_archive_from_expsyms_cmds=
7267 export_dynamic_flag_spec=
7268 whole_archive_flag_spec=
7269 thread_safe_flag_spec=
7270 hardcode_libdir_flag_spec=
7271 hardcode_libdir_flag_spec_ld=
7272 hardcode_libdir_separator=
7273 hardcode_direct=no
7274 hardcode_minus_L=no
7275 hardcode_shlibpath_var=unsupported
7276 link_all_deplibs=unknown
7277 hardcode_automatic=no
7278 module_cmds=
7279 module_expsym_cmds=
7280 always_export_symbols=no
7281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7282 # include_expsyms should be a list of space-separated symbols to be *always*
7283 # included in the symbol list
7284 include_expsyms=
7285 # exclude_expsyms can be an extended regexp of symbols to exclude
7286 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7287 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7288 # as well as any symbol that contains `d'.
7289 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7290 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7291 # platforms (ab)use it in PIC code, but their linkers get confused if
7292 # the symbol is explicitly referenced. Since portable code cannot
7293 # rely on this symbol name, it's probably fine to never include it in
7294 # preloaded symbol tables.
7295 extract_expsyms_cmds=
7296
7297 case $host_os in
7298 cygwin* | mingw* | pw32*)
7299 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7300 # When not using gcc, we currently assume that we are using
7301 # Microsoft Visual C++.
7302 if test "$GCC" != yes; then
7303 with_gnu_ld=no
7304 fi
7305 ;;
7306 openbsd*)
7307 with_gnu_ld=no
7308 ;;
7309 esac
7310
7311 ld_shlibs=yes
7312 if test "$with_gnu_ld" = yes; then
7313 # If archive_cmds runs LD, not CC, wlarc should be empty
7314 wlarc='${wl}'
7315
7316 # See if GNU ld supports shared libraries.
7317 case $host_os in
7318 aix3* | aix4* | aix5*)
7319 # On AIX/PPC, the GNU linker is very broken
7320 if test "$host_cpu" != ia64; then
7321 ld_shlibs=no
7322 cat <<EOF 1>&2
7323
7324 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7325 *** to be unable to reliably create shared libraries on AIX.
7326 *** Therefore, libtool is disabling shared libraries support. If you
7327 *** really care for shared libraries, you may want to modify your PATH
7328 *** so that a non-GNU linker is found, and then restart.
7329
7330 EOF
7331 fi
7332 ;;
7333
7334 amigaos*)
7335 archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 hardcode_minus_L=yes
7338
7339 # Samuel A. Falvo II <[email protected]> reports
7340 # that the semantics of dynamic libraries on AmigaOS, at least up
7341 # to version 4, is to share data among multiple programs linked
7342 # with the same dynamic library. Since this doesn't match the
7343 # behavior of shared libraries on other platforms, we can't use
7344 # them.
7345 ld_shlibs=no
7346 ;;
7347
7348 beos*)
7349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7350 allow_undefined_flag=unsupported
7351 # Joseph Beckenbach <[email protected]> says some releases of gcc
7352 # support --undefined. This deserves some investigation. FIXME
7353 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7354 else
7355 ld_shlibs=no
7356 fi
7357 ;;
7358
7359 cygwin* | mingw* | pw32*)
7360 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7361 # as there is no search path for DLLs.
7362 hardcode_libdir_flag_spec='-L$libdir'
7363 allow_undefined_flag=unsupported
7364 always_export_symbols=no
7365 enable_shared_with_static_runtimes=yes
7366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7367
7368 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7370 # If the export-symbols file already is a .def file (1st line
7371 # is EXPORTS), use it as is; otherwise, prepend...
7372 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7373 cp $export_symbols $output_objdir/$soname.def;
7374 else
7375 echo EXPORTS > $output_objdir/$soname.def;
7376 cat $export_symbols >> $output_objdir/$soname.def;
7377 fi${_S_}
7378 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7379 else
7380 ld_shlibs=no
7381 fi
7382 ;;
7383
7384 netbsd*)
7385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7386 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7387 wlarc=
7388 else
7389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7391 fi
7392 ;;
7393
7394 solaris* | sysv5*)
7395 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7396 ld_shlibs=no
7397 cat <<EOF 1>&2
7398
7399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7400 *** create shared libraries on Solaris systems. Therefore, libtool
7401 *** is disabling shared libraries support. We urge you to upgrade GNU
7402 *** binutils to release 2.9.1 or newer. Another option is to modify
7403 *** your PATH or compiler configuration so that the native linker is
7404 *** used, and then restart.
7405
7406 EOF
7407 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7410 else
7411 ld_shlibs=no
7412 fi
7413 ;;
7414
7415 sunos4*)
7416 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7417 wlarc=
7418 hardcode_direct=yes
7419 hardcode_shlibpath_var=no
7420 ;;
7421
7422 *)
7423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7425 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7426 else
7427 ld_shlibs=no
7428 fi
7429 ;;
7430 esac
7431
7432 if test "$ld_shlibs" = yes; then
7433 runpath_var=LD_RUN_PATH
7434 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7435 export_dynamic_flag_spec='${wl}--export-dynamic'
7436 # ancient GNU ld didn't support --whole-archive et. al.
7437 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7438 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7439 else
7440 whole_archive_flag_spec=
7441 fi
7442 fi
7443 else
7444 # PORTME fill in a description of your system's linker (not GNU ld)
7445 case $host_os in
7446 aix3*)
7447 allow_undefined_flag=unsupported
7448 always_export_symbols=yes
7449 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
7450 # Note: this linker hardcodes the directories in LIBPATH if there
7451 # are no directories specified by -L.
7452 hardcode_minus_L=yes
7453 if test "$GCC" = yes && test -z "$link_static_flag"; then
7454 # Neither direct hardcoding nor static linking is supported with a
7455 # broken collect2.
7456 hardcode_direct=unsupported
7457 fi
7458 ;;
7459
7460 aix4* | aix5*)
7461 if test "$host_cpu" = ia64; then
7462 # On IA64, the linker does run time linking by default, so we don't
7463 # have to do anything special.
7464 aix_use_runtimelinking=no
7465 exp_sym_flag='-Bexport'
7466 no_entry_flag=""
7467 else
7468 # If we're using GNU nm, then we don't want the "-C" option.
7469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7471 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'
7472 else
7473 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'
7474 fi
7475 aix_use_runtimelinking=no
7476
7477 # Test if we are trying to use run time linking or normal
7478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7479 # need to do runtime linking.
7480 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7481 for ld_flag in $LDFLAGS; do
7482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7483 aix_use_runtimelinking=yes
7484 break
7485 fi
7486 done
7487 esac
7488
7489 exp_sym_flag='-bexport'
7490 no_entry_flag='-bnoentry'
7491 fi
7492
7493 # When large executables or shared objects are built, AIX ld can
7494 # have problems creating the table of contents. If linking a library
7495 # or program results in "error TOC overflow" add -mminimal-toc to
7496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7498
7499 archive_cmds=''
7500 hardcode_direct=yes
7501 hardcode_libdir_separator=':'
7502 link_all_deplibs=yes
7503
7504 if test "$GCC" = yes; then
7505 case $host_os in aix4.012|aix4.012.*)
7506 # We only want to do this on AIX 4.2 and lower, the check
7507 # below for broken collect2 doesn't work under 4.3+
7508 collect2name=`${CC} -print-prog-name=collect2`
7509 if test -f "$collect2name" && \
7510 strings "$collect2name" | grep resolve_lib_name >/dev/null
7511 then
7512 # We have reworked collect2
7513 hardcode_direct=yes
7514 else
7515 # We have old collect2
7516 hardcode_direct=unsupported
7517 # It fails to find uninstalled libraries when the uninstalled
7518 # path is not listed in the libpath. Setting hardcode_minus_L
7519 # to unsupported forces relinking
7520 hardcode_minus_L=yes
7521 hardcode_libdir_flag_spec='-L$libdir'
7522 hardcode_libdir_separator=
7523 fi
7524 esac
7525 shared_flag='-shared'
7526 else
7527 # not using gcc
7528 if test "$host_cpu" = ia64; then
7529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7530 # chokes on -Wl,-G. The following line is correct:
7531 shared_flag='-G'
7532 else
7533 if test "$aix_use_runtimelinking" = yes; then
7534 shared_flag='${wl}-G'
7535 else
7536 shared_flag='${wl}-bM:SRE'
7537 fi
7538 fi
7539 fi
7540
7541 # It seems that -bexpall does not export symbols beginning with
7542 # underscore (_), so it is better to generate a list of symbols to export.
7543 always_export_symbols=yes
7544 if test "$aix_use_runtimelinking" = yes; then
7545 # Warning - without using the other runtime loading flags (-brtl),
7546 # -berok will link without error, but may produce a broken library.
7547 allow_undefined_flag='-berok'
7548 # Determine the default libpath from the value encoded in an empty executable.
7549 cat >conftest.$ac_ext <<_ACEOF
7550 #line $LINENO "configure"
7551 /* confdefs.h. */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556
7557 int
7558 main ()
7559 {
7560
7561 ;
7562 return 0;
7563 }
7564 _ACEOF
7565 rm -f conftest.$ac_objext conftest$ac_exeext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567 (eval $ac_link) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -s conftest$ac_exeext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577
7578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7579 }'`
7580 # Check for a 64-bit object if we didn't find anything.
7581 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; }
7582 }'`; fi
7583 else
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 fi
7588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7590
7591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7592 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"
7593 else
7594 if test "$host_cpu" = ia64; then
7595 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7596 allow_undefined_flag="-z nodefs"
7597 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"
7598 else
7599 # Determine the default libpath from the value encoded in an empty executable.
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607
7608 int
7609 main ()
7610 {
7611
7612 ;
7613 return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628
7629 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7630 }'`
7631 # Check for a 64-bit object if we didn't find anything.
7632 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; }
7633 }'`; fi
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 fi
7639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7641
7642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7643 # Warning - without using the other run time loading flags,
7644 # -berok will link without error, but may produce a broken library.
7645 no_undefined_flag=' ${wl}-bernotok'
7646 allow_undefined_flag=' ${wl}-berok'
7647 # -bexpall does not export symbols beginning with underscore (_)
7648 always_export_symbols=yes
7649 # Exported symbols can be pulled into shared objects from archives
7650 whole_archive_flag_spec=' '
7651 archive_cmds_need_lc=yes
7652 # This is similar to how AIX traditionally builds it's shared libraries.
7653 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7654 fi
7655 fi
7656 ;;
7657
7658 amigaos*)
7659 archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
7660 hardcode_libdir_flag_spec='-L$libdir'
7661 hardcode_minus_L=yes
7662 # see comment about different semantics on the GNU ld section
7663 ld_shlibs=no
7664 ;;
7665
7666 bsdi4*)
7667 export_dynamic_flag_spec=-rdynamic
7668 ;;
7669
7670 cygwin* | mingw* | pw32*)
7671 # When not using gcc, we currently assume that we are using
7672 # Microsoft Visual C++.
7673 # hardcode_libdir_flag_spec is actually meaningless, as there is
7674 # no search path for DLLs.
7675 hardcode_libdir_flag_spec=' '
7676 allow_undefined_flag=unsupported
7677 # Tell ltmain to make .lib files, not .a files.
7678 libext=lib
7679 # Tell ltmain to make .dll files, not .so files.
7680 shrext=".dll"
7681 # FIXME: Setting linknames here is a bad hack.
7682 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
7683 # The linker will automatically build a .lib file if we build a DLL.
7684 old_archive_From_new_cmds='true'
7685 # FIXME: Should let the user specify the lib program.
7686 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7687 fix_srcfile_path='`cygpath -w "$srcfile"`'
7688 enable_shared_with_static_runtimes=yes
7689 ;;
7690
7691 darwin* | rhapsody*)
7692 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7693 archive_cmds_need_lc=no
7694 case "$host_os" in
7695 rhapsody* | darwin1.[012])
7696 allow_undefined_flag='-undefined suppress'
7697 ;;
7698 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
7699 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7700 ;;
7701 *) # Darwin 7.0 on
7702 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
7703 10.[012])
7704 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7705 ;;
7706 *) # 10.3 on
7707 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
7708 allow_undefined_flag='-flat_namespace -undefined suppress'
7709 else
7710 allow_undefined_flag='-undefined dynamic_lookup'
7711 fi
7712 ;;
7713 esac
7714 ;;
7715 esac
7716 # FIXME: Relying on posixy $() will cause problems for
7717 # cross-compilation, but unfortunately the echo tests do not
7718 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7719 # `"' quotes if we put them in here... so don't!
7720 lt_int_apple_cc_single_mod=no
7721 output_verbose_link_cmd='echo'
7722 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7723 lt_int_apple_cc_single_mod=yes
7724 fi
7725 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7726 archive_cmds='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7727 else
7728 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7729 fi
7730 module_cmds='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7732 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7733 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7734 else
7735 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7736 fi
7737 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7738 hardcode_direct=no
7739 hardcode_automatic=yes
7740 hardcode_shlibpath_var=unsupported
7741 whole_archive_flag_spec='-all_load $convenience'
7742 link_all_deplibs=yes
7743 fi
7744 ;;
7745
7746 dgux*)
7747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7748 hardcode_libdir_flag_spec='-L$libdir'
7749 hardcode_shlibpath_var=no
7750 ;;
7751
7752 freebsd1*)
7753 ld_shlibs=no
7754 ;;
7755
7756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7757 # support. Future versions do this automatically, but an explicit c++rt0.o
7758 # does not break anything, and helps significantly (at the cost of a little
7759 # extra space).
7760 freebsd2.2*)
7761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7762 hardcode_libdir_flag_spec='-R$libdir'
7763 hardcode_direct=yes
7764 hardcode_shlibpath_var=no
7765 ;;
7766
7767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7768 freebsd2*)
7769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7770 hardcode_direct=yes
7771 hardcode_minus_L=yes
7772 hardcode_shlibpath_var=no
7773 ;;
7774
7775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7776 freebsd*)
7777 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7778 hardcode_libdir_flag_spec='-R$libdir'
7779 hardcode_direct=yes
7780 hardcode_shlibpath_var=no
7781 ;;
7782
7783 hpux9*)
7784 if test "$GCC" = yes; then
7785 archive_cmds='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7786 else
7787 archive_cmds='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7788 fi
7789 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7790 hardcode_libdir_separator=:
7791 hardcode_direct=yes
7792
7793 # hardcode_minus_L: Not really in the search PATH,
7794 # but as the default location of the library.
7795 hardcode_minus_L=yes
7796 export_dynamic_flag_spec='${wl}-E'
7797 ;;
7798
7799 hpux10* | hpux11*)
7800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7801 case "$host_cpu" in
7802 hppa*64*|ia64*)
7803 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7804 ;;
7805 *)
7806 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7807 ;;
7808 esac
7809 else
7810 case "$host_cpu" in
7811 hppa*64*|ia64*)
7812 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7813 ;;
7814 *)
7815 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7816 ;;
7817 esac
7818 fi
7819 if test "$with_gnu_ld" = no; then
7820 case "$host_cpu" in
7821 hppa*64*)
7822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7823 hardcode_libdir_flag_spec_ld='+b $libdir'
7824 hardcode_libdir_separator=:
7825 hardcode_direct=no
7826 hardcode_shlibpath_var=no
7827 ;;
7828 ia64*)
7829 hardcode_libdir_flag_spec='-L$libdir'
7830 hardcode_direct=no
7831 hardcode_shlibpath_var=no
7832
7833 # hardcode_minus_L: Not really in the search PATH,
7834 # but as the default location of the library.
7835 hardcode_minus_L=yes
7836 ;;
7837 *)
7838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7839 hardcode_libdir_separator=:
7840 hardcode_direct=yes
7841 export_dynamic_flag_spec='${wl}-E'
7842
7843 # hardcode_minus_L: Not really in the search PATH,
7844 # but as the default location of the library.
7845 hardcode_minus_L=yes
7846 ;;
7847 esac
7848 fi
7849 ;;
7850
7851 irix5* | irix6* | nonstopux*)
7852 if test "$GCC" = yes; then
7853 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'
7854 else
7855 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'
7856 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7857 fi
7858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7859 hardcode_libdir_separator=:
7860 link_all_deplibs=yes
7861 ;;
7862
7863 netbsd*)
7864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7866 else
7867 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7868 fi
7869 hardcode_libdir_flag_spec='-R$libdir'
7870 hardcode_direct=yes
7871 hardcode_shlibpath_var=no
7872 ;;
7873
7874 newsos6)
7875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7876 hardcode_direct=yes
7877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7878 hardcode_libdir_separator=:
7879 hardcode_shlibpath_var=no
7880 ;;
7881
7882 openbsd*)
7883 hardcode_direct=yes
7884 hardcode_shlibpath_var=no
7885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7887 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7888 export_dynamic_flag_spec='${wl}-E'
7889 else
7890 case $host_os in
7891 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7893 hardcode_libdir_flag_spec='-R$libdir'
7894 ;;
7895 *)
7896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7898 ;;
7899 esac
7900 fi
7901 ;;
7902
7903 os2*)
7904 hardcode_libdir_flag_spec='-L$libdir'
7905 hardcode_minus_L=yes
7906 allow_undefined_flag=unsupported
7907 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7908 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7909 ;;
7910
7911 osf3*)
7912 if test "$GCC" = yes; then
7913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7914 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'
7915 else
7916 allow_undefined_flag=' -expect_unresolved \*'
7917 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'
7918 fi
7919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7920 hardcode_libdir_separator=:
7921 ;;
7922
7923 osf4* | osf5*) # as osf3* with the addition of -msym flag
7924 if test "$GCC" = yes; then
7925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7926 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'
7927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7928 else
7929 allow_undefined_flag=' -expect_unresolved \*'
7930 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'
7931 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp${_S_}
7932 $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${_S_}$rm $lib.exp'
7933
7934 # Both c and cxx compiler support -rpath directly
7935 hardcode_libdir_flag_spec='-rpath $libdir'
7936 fi
7937 hardcode_libdir_separator=:
7938 ;;
7939
7940 sco3.2v5*)
7941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7942 hardcode_shlibpath_var=no
7943 export_dynamic_flag_spec='${wl}-Bexport'
7944 runpath_var=LD_RUN_PATH
7945 hardcode_runpath_var=yes
7946 ;;
7947
7948 solaris*)
7949 no_undefined_flag=' -z text'
7950 if test "$GCC" = yes; then
7951 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7952 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
7953 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
7954 else
7955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7956 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
7957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
7958 fi
7959 hardcode_libdir_flag_spec='-R$libdir'
7960 hardcode_shlibpath_var=no
7961 case $host_os in
7962 solaris2.[0-5] | solaris2.[0-5].*) ;;
7963 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7965 esac
7966 link_all_deplibs=yes
7967 ;;
7968
7969 sunos4*)
7970 if test "x$host_vendor" = xsequent; then
7971 # Use $CC to link under sequent, because it throws in some extra .o
7972 # files that make .init and .fini sections work.
7973 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7974 else
7975 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7976 fi
7977 hardcode_libdir_flag_spec='-L$libdir'
7978 hardcode_direct=yes
7979 hardcode_minus_L=yes
7980 hardcode_shlibpath_var=no
7981 ;;
7982
7983 sysv4)
7984 case $host_vendor in
7985 sni)
7986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7987 hardcode_direct=yes # is this really true???
7988 ;;
7989 siemens)
7990 ## LD is ld it makes a PLAMLIB
7991 ## CC just makes a GrossModule.
7992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7993 reload_cmds='$CC -r -o $output$reload_objs'
7994 hardcode_direct=no
7995 ;;
7996 motorola)
7997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7999 ;;
8000 esac
8001 runpath_var='LD_RUN_PATH'
8002 hardcode_shlibpath_var=no
8003 ;;
8004
8005 sysv4.3*)
8006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8007 hardcode_shlibpath_var=no
8008 export_dynamic_flag_spec='-Bexport'
8009 ;;
8010
8011 sysv4*MP*)
8012 if test -d /usr/nec; then
8013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8014 hardcode_shlibpath_var=no
8015 runpath_var=LD_RUN_PATH
8016 hardcode_runpath_var=yes
8017 ld_shlibs=yes
8018 fi
8019 ;;
8020
8021 sysv4.2uw2*)
8022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8023 hardcode_direct=yes
8024 hardcode_minus_L=no
8025 hardcode_shlibpath_var=no
8026 hardcode_runpath_var=yes
8027 runpath_var=LD_RUN_PATH
8028 ;;
8029
8030 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8031 no_undefined_flag='${wl}-z ${wl}text'
8032 if test "$GCC" = yes; then
8033 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8034 else
8035 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8036 fi
8037 runpath_var='LD_RUN_PATH'
8038 hardcode_shlibpath_var=no
8039 ;;
8040
8041 sysv5*)
8042 no_undefined_flag=' -z text'
8043 # $CC -shared without GNU ld will not create a library from C++
8044 # object files and a static libstdc++, better avoid it by now
8045 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8046 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
8047 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
8048 hardcode_libdir_flag_spec=
8049 hardcode_shlibpath_var=no
8050 runpath_var='LD_RUN_PATH'
8051 ;;
8052
8053 uts4*)
8054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8055 hardcode_libdir_flag_spec='-L$libdir'
8056 hardcode_shlibpath_var=no
8057 ;;
8058
8059 *)
8060 ld_shlibs=no
8061 ;;
8062 esac
8063 fi
8064
8065 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8066 echo "${ECHO_T}$ld_shlibs" >&6
8067 test "$ld_shlibs" = no && can_build_shared=no
8068
8069 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8070 if test "$GCC" = yes; then
8071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8072 fi
8073
8074 #
8075 # Do we need to explicitly link libc?
8076 #
8077 case "x$archive_cmds_need_lc" in
8078 x|xyes)
8079 # Assume -lc should be added
8080 archive_cmds_need_lc=yes
8081
8082 if test "$enable_shared" = yes && test "$GCC" = yes; then
8083 case $archive_cmds in
8084 *"$_S_"*)
8085 # FIXME: we may have to deal with multi-command sequences.
8086 ;;
8087 '$CC '*)
8088 # Test whether the compiler implicitly links with -lc since on some
8089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8090 # to ld, don't add -lc before -lgcc.
8091 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8092 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8093 $rm conftest*
8094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8095
8096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097 (eval $ac_compile) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } 2>conftest.err; then
8101 soname=conftest
8102 lib=conftest
8103 libobjs=conftest.$ac_objext
8104 deplibs=
8105 wl=$lt_prog_compiler_wl
8106 compiler_flags=-v
8107 linker_flags=-v
8108 verstring=
8109 output_objdir=.
8110 libname=conftest
8111 lt_save_allow_undefined_flag=$allow_undefined_flag
8112 allow_undefined_flag=
8113 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8114 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }
8118 then
8119 archive_cmds_need_lc=no
8120 else
8121 archive_cmds_need_lc=yes
8122 fi
8123 allow_undefined_flag=$lt_save_allow_undefined_flag
8124 else
8125 cat conftest.err 1>&5
8126 fi
8127 $rm conftest*
8128 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8129 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8130 ;;
8131 esac
8132 fi
8133 ;;
8134 esac
8135
8136 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8137 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8138 hardcode_action=
8139 if test -n "$hardcode_libdir_flag_spec" || \
8140 test -n "$runpath_var " || \
8141 test "X$hardcode_automatic"="Xyes" ; then
8142
8143 # We can hardcode non-existant directories.
8144 if test "$hardcode_direct" != no &&
8145 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8146 # have to relink, otherwise we might link with an installed library
8147 # when we should be linking with a yet-to-be-installed one
8148 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8149 test "$hardcode_minus_L" != no; then
8150 # Linking always hardcodes the temporary library directory.
8151 hardcode_action=relink
8152 else
8153 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8154 hardcode_action=immediate
8155 fi
8156 else
8157 # We cannot hardcode anything, or else we can only hardcode existing
8158 # directories.
8159 hardcode_action=unsupported
8160 fi
8161 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8162 echo "${ECHO_T}$hardcode_action" >&6
8163
8164 if test "$hardcode_action" = relink; then
8165 # Fast installation is not supported
8166 enable_fast_install=no
8167 elif test "$shlibpath_overrides_runpath" = yes ||
8168 test "$enable_shared" = no; then
8169 # Fast installation is not necessary
8170 enable_fast_install=needless
8171 fi
8172
8173 striplib=
8174 old_striplib=
8175 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8176 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8177 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8178 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8179 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8180 echo "$as_me:$LINENO: result: yes" >&5
8181 echo "${ECHO_T}yes" >&6
8182 else
8183 # FIXME - insert some real tests, host_os isn't really good enough
8184 case $host_os in
8185 NOT-darwin*)
8186 if test -n "$STRIP" ; then
8187 striplib="$STRIP -x"
8188 echo "$as_me:$LINENO: result: yes" >&5
8189 echo "${ECHO_T}yes" >&6
8190 else
8191 echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6
8193 fi
8194 ;;
8195 *)
8196 echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8198 ;;
8199 esac
8200 fi
8201
8202 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8203 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8204 library_names_spec=
8205 libname_spec='lib$name'
8206 soname_spec=
8207 shrext=".so"
8208 postinstall_cmds=
8209 postuninstall_cmds=
8210 finish_cmds=
8211 finish_eval=
8212 shlibpath_var=
8213 shlibpath_overrides_runpath=unknown
8214 version_type=none
8215 dynamic_linker="$host_os ld.so"
8216 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8217 if test "$GCC" = yes; then
8218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8219 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8220 # if the path contains ";" then we assume it to be the separator
8221 # otherwise default to the standard path separator (i.e. ":") - it is
8222 # assumed that no part of a normal pathname contains ";" but that should
8223 # okay in the real world where ";" in dirpaths is itself problematic.
8224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8225 else
8226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8227 fi
8228 else
8229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8230 fi
8231 need_lib_prefix=unknown
8232 hardcode_into_libs=no
8233
8234 # when you set need_version to no, make sure it does not cause -set_version
8235 # flags to be left without arguments
8236 need_version=unknown
8237
8238 case $host_os in
8239 aix3*)
8240 version_type=linux
8241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8242 shlibpath_var=LIBPATH
8243
8244 # AIX 3 has no versioning support, so we append a major version to the name.
8245 soname_spec='${libname}${release}${shared_ext}$major'
8246 ;;
8247
8248 aix4* | aix5*)
8249 version_type=linux
8250 need_lib_prefix=no
8251 need_version=no
8252 hardcode_into_libs=yes
8253 if test "$host_cpu" = ia64; then
8254 # AIX 5 supports IA64
8255 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8256 shlibpath_var=LD_LIBRARY_PATH
8257 else
8258 # With GCC up to 2.95.x, collect2 would create an import file
8259 # for dependence libraries. The import file would start with
8260 # the line `#! .'. This would cause the generated library to
8261 # depend on `.', always an invalid library. This was fixed in
8262 # development snapshots of GCC prior to 3.0.
8263 case $host_os in
8264 aix4 | aix4.[01] | aix4.[01].*)
8265 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8266 echo ' yes '
8267 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8268 :
8269 else
8270 can_build_shared=no
8271 fi
8272 ;;
8273 esac
8274 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8275 # soname into executable. Probably we can add versioning support to
8276 # collect2, so additional links can be useful in future.
8277 if test "$aix_use_runtimelinking" = yes; then
8278 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8279 # instead of lib<name>.a to let people know that these are not
8280 # typical AIX shared libraries.
8281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282 else
8283 # We preserve .a as extension for shared libraries through AIX4.2
8284 # and later when we are not doing run time linking.
8285 library_names_spec='${libname}${release}.a $libname.a'
8286 soname_spec='${libname}${release}${shared_ext}$major'
8287 fi
8288 shlibpath_var=LIBPATH
8289 fi
8290 ;;
8291
8292 amigaos*)
8293 library_names_spec='$libname.ixlibrary $libname.a'
8294 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8295 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'
8296 ;;
8297
8298 beos*)
8299 library_names_spec='${libname}${shared_ext}'
8300 dynamic_linker="$host_os ld.so"
8301 shlibpath_var=LIBRARY_PATH
8302 ;;
8303
8304 bsdi4*)
8305 version_type=linux
8306 need_version=no
8307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8308 soname_spec='${libname}${release}${shared_ext}$major'
8309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8310 shlibpath_var=LD_LIBRARY_PATH
8311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8313 # the default ld.so.conf also contains /usr/contrib/lib and
8314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8315 # libtool to hard-code these into programs
8316 ;;
8317
8318 cygwin* | mingw* | pw32*)
8319 version_type=windows
8320 shrext=".dll"
8321 need_version=no
8322 need_lib_prefix=no
8323
8324 case $GCC,$host_os in
8325 yes,cygwin* | yes,mingw* | yes,pw32*)
8326 library_names_spec='$libname.dll.a'
8327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8328 postinstall_cmds='base_file=`basename \${file}`${_S_}
8329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
8330 dldir=$destdir/`dirname \$dlpath`${_S_}
8331 test -d \$dldir || mkdir -p \$dldir${_S_}
8332 $install_prog $dir/$dlname \$dldir/$dlname'
8333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
8334 dlpath=$dir/\$dldll${_S_}
8335 $rm \$dlpath'
8336 shlibpath_overrides_runpath=yes
8337
8338 case $host_os in
8339 cygwin*)
8340 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8341 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8342 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8343 ;;
8344 mingw*)
8345 # MinGW DLLs use traditional 'lib' prefix
8346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8348 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8349 # It is most probably a Windows format PATH printed by
8350 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8351 # path with ; separators, and with drive letters. We can handle the
8352 # drive letters (cygwin fileutils understands them), so leave them,
8353 # especially as we might pass files found there to a mingw objdump,
8354 # which wouldn't understand a cygwinified path. Ahh.
8355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8356 else
8357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8358 fi
8359 ;;
8360 pw32*)
8361 # pw32 DLLs use 'pw' prefix rather than 'lib'
8362 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8363 ;;
8364 esac
8365 ;;
8366
8367 *)
8368 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8369 ;;
8370 esac
8371 dynamic_linker='Win32 ld.exe'
8372 # FIXME: first we should search . and the directory the executable is in
8373 shlibpath_var=PATH
8374 ;;
8375
8376 darwin* | rhapsody*)
8377 dynamic_linker="$host_os dyld"
8378 version_type=darwin
8379 need_lib_prefix=no
8380 need_version=no
8381 # FIXME: Relying on posixy $() will cause problems for
8382 # cross-compilation, but unfortunately the echo tests do not
8383 # yet detect zsh echo's removal of \ escapes.
8384 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
8385 soname_spec='${libname}${release}${major}$shared_ext'
8386 shlibpath_overrides_runpath=yes
8387 shlibpath_var=DYLD_LIBRARY_PATH
8388 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8389 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8390 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8391 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"`
8392 fi
8393 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8394 ;;
8395
8396 dgux*)
8397 version_type=linux
8398 need_lib_prefix=no
8399 need_version=no
8400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8401 soname_spec='${libname}${release}${shared_ext}$major'
8402 shlibpath_var=LD_LIBRARY_PATH
8403 ;;
8404
8405 freebsd1*)
8406 dynamic_linker=no
8407 ;;
8408
8409 freebsd*)
8410 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8411 version_type=freebsd-$objformat
8412 case $version_type in
8413 freebsd-elf*)
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8415 need_version=no
8416 need_lib_prefix=no
8417 ;;
8418 freebsd-*)
8419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8420 need_version=yes
8421 ;;
8422 esac
8423 shlibpath_var=LD_LIBRARY_PATH
8424 case $host_os in
8425 freebsd2*)
8426 shlibpath_overrides_runpath=yes
8427 ;;
8428 freebsd3.01* | freebsdelf3.01*)
8429 shlibpath_overrides_runpath=yes
8430 hardcode_into_libs=yes
8431 ;;
8432 *) # from 3.2 on
8433 shlibpath_overrides_runpath=no
8434 hardcode_into_libs=yes
8435 ;;
8436 esac
8437 ;;
8438
8439 gnu*)
8440 version_type=linux
8441 need_lib_prefix=no
8442 need_version=no
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 hardcode_into_libs=yes
8447 ;;
8448
8449 hpux9* | hpux10* | hpux11*)
8450 # Give a soname corresponding to the major version so that dld.sl refuses to
8451 # link against other versions.
8452 version_type=sunos
8453 need_lib_prefix=no
8454 need_version=no
8455 case "$host_cpu" in
8456 ia64*)
8457 shrext='.so'
8458 hardcode_into_libs=yes
8459 dynamic_linker="$host_os dld.so"
8460 shlibpath_var=LD_LIBRARY_PATH
8461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 if test "X$HPUX_IA64_MODE" = X32; then
8465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8466 else
8467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8468 fi
8469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8470 ;;
8471 hppa*64*)
8472 shrext='.sl'
8473 hardcode_into_libs=yes
8474 dynamic_linker="$host_os dld.sl"
8475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478 soname_spec='${libname}${release}${shared_ext}$major'
8479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8481 ;;
8482 *)
8483 shrext='.sl'
8484 dynamic_linker="$host_os dld.sl"
8485 shlibpath_var=SHLIB_PATH
8486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488 soname_spec='${libname}${release}${shared_ext}$major'
8489 ;;
8490 esac
8491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8492 postinstall_cmds='chmod 555 $lib'
8493 ;;
8494
8495 irix5* | irix6* | nonstopux*)
8496 case $host_os in
8497 nonstopux*) version_type=nonstopux ;;
8498 *)
8499 if test "$lt_cv_prog_gnu_ld" = yes; then
8500 version_type=linux
8501 else
8502 version_type=irix
8503 fi ;;
8504 esac
8505 need_lib_prefix=no
8506 need_version=no
8507 soname_spec='${libname}${release}${shared_ext}$major'
8508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8509 case $host_os in
8510 irix5* | nonstopux*)
8511 libsuff= shlibsuff=
8512 ;;
8513 *)
8514 case $LD in # libtool.m4 will add one of these switches to LD
8515 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8516 libsuff= shlibsuff= libmagic=32-bit;;
8517 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8518 libsuff=32 shlibsuff=N32 libmagic=N32;;
8519 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8520 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8521 *) libsuff= shlibsuff= libmagic=never-match;;
8522 esac
8523 ;;
8524 esac
8525 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8526 shlibpath_overrides_runpath=no
8527 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8528 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8529 hardcode_into_libs=yes
8530 ;;
8531
8532 # No shared lib support for Linux oldld, aout, or coff.
8533 linux*oldld* | linux*aout* | linux*coff*)
8534 dynamic_linker=no
8535 ;;
8536
8537 # This must be Linux ELF.
8538 linux*)
8539 version_type=linux
8540 need_lib_prefix=no
8541 need_version=no
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543 soname_spec='${libname}${release}${shared_ext}$major'
8544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8545 shlibpath_var=LD_LIBRARY_PATH
8546 shlibpath_overrides_runpath=no
8547 # This implies no fast_install, which is unacceptable.
8548 # Some rework will be needed to allow for fast_install
8549 # before this can be enabled.
8550 hardcode_into_libs=yes
8551
8552 # We used to test for /lib/ld.so.1 and disable shared libraries on
8553 # powerpc, because MkLinux only supported shared libraries with the
8554 # GNU dynamic linker. Since this was broken with cross compilers,
8555 # most powerpc-linux boxes support dynamic linking these days and
8556 # people can always --disable-shared, the test was removed, and we
8557 # assume the GNU/Linux dynamic linker is in use.
8558 dynamic_linker='GNU/Linux ld.so'
8559 ;;
8560
8561 netbsd*)
8562 version_type=sunos
8563 need_lib_prefix=no
8564 need_version=no
8565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8568 dynamic_linker='NetBSD (a.out) ld.so'
8569 else
8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8571 soname_spec='${libname}${release}${shared_ext}$major'
8572 dynamic_linker='NetBSD ld.elf_so'
8573 fi
8574 shlibpath_var=LD_LIBRARY_PATH
8575 shlibpath_overrides_runpath=yes
8576 hardcode_into_libs=yes
8577 ;;
8578
8579 newsos6)
8580 version_type=linux
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8582 shlibpath_var=LD_LIBRARY_PATH
8583 shlibpath_overrides_runpath=yes
8584 ;;
8585
8586 nto-qnx)
8587 version_type=linux
8588 need_lib_prefix=no
8589 need_version=no
8590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8591 soname_spec='${libname}${release}${shared_ext}$major'
8592 shlibpath_var=LD_LIBRARY_PATH
8593 shlibpath_overrides_runpath=yes
8594 ;;
8595
8596 openbsd*)
8597 version_type=sunos
8598 need_lib_prefix=no
8599 need_version=no
8600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8602 shlibpath_var=LD_LIBRARY_PATH
8603 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8604 case $host_os in
8605 openbsd2.[89] | openbsd2.[89].*)
8606 shlibpath_overrides_runpath=no
8607 ;;
8608 *)
8609 shlibpath_overrides_runpath=yes
8610 ;;
8611 esac
8612 else
8613 shlibpath_overrides_runpath=yes
8614 fi
8615 ;;
8616
8617 os2*)
8618 libname_spec='$name'
8619 shrext=".dll"
8620 need_lib_prefix=no
8621 library_names_spec='$libname${shared_ext} $libname.a'
8622 dynamic_linker='OS/2 ld.exe'
8623 shlibpath_var=LIBPATH
8624 ;;
8625
8626 osf3* | osf4* | osf5*)
8627 version_type=osf
8628 need_lib_prefix=no
8629 need_version=no
8630 soname_spec='${libname}${release}${shared_ext}$major'
8631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8634 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8635 ;;
8636
8637 sco3.2v5*)
8638 version_type=osf
8639 soname_spec='${libname}${release}${shared_ext}$major'
8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8641 shlibpath_var=LD_LIBRARY_PATH
8642 ;;
8643
8644 solaris*)
8645 version_type=linux
8646 need_lib_prefix=no
8647 need_version=no
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 shlibpath_var=LD_LIBRARY_PATH
8651 shlibpath_overrides_runpath=yes
8652 hardcode_into_libs=yes
8653 # ldd complains unless libraries are executable
8654 postinstall_cmds='chmod +x $lib'
8655 ;;
8656
8657 sunos4*)
8658 version_type=sunos
8659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8661 shlibpath_var=LD_LIBRARY_PATH
8662 shlibpath_overrides_runpath=yes
8663 if test "$with_gnu_ld" = yes; then
8664 need_lib_prefix=no
8665 fi
8666 need_version=yes
8667 ;;
8668
8669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8670 version_type=linux
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 case $host_vendor in
8675 sni)
8676 shlibpath_overrides_runpath=no
8677 need_lib_prefix=no
8678 export_dynamic_flag_spec='${wl}-Blargedynsym'
8679 runpath_var=LD_RUN_PATH
8680 ;;
8681 siemens)
8682 need_lib_prefix=no
8683 ;;
8684 motorola)
8685 need_lib_prefix=no
8686 need_version=no
8687 shlibpath_overrides_runpath=no
8688 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8689 ;;
8690 esac
8691 ;;
8692
8693 sysv4*MP*)
8694 if test -d /usr/nec ;then
8695 version_type=linux
8696 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8697 soname_spec='$libname${shared_ext}.$major'
8698 shlibpath_var=LD_LIBRARY_PATH
8699 fi
8700 ;;
8701
8702 uts4*)
8703 version_type=linux
8704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8705 soname_spec='${libname}${release}${shared_ext}$major'
8706 shlibpath_var=LD_LIBRARY_PATH
8707 ;;
8708
8709 *)
8710 dynamic_linker=no
8711 ;;
8712 esac
8713 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8714 echo "${ECHO_T}$dynamic_linker" >&6
8715 test "$dynamic_linker" = no && can_build_shared=no
8716
8717 if test "x$enable_dlopen" != xyes; then
8718 enable_dlopen=unknown
8719 enable_dlopen_self=unknown
8720 enable_dlopen_self_static=unknown
8721 else
8722 lt_cv_dlopen=no
8723 lt_cv_dlopen_libs=
8724
8725 case $host_os in
8726 beos*)
8727 lt_cv_dlopen="load_add_on"
8728 lt_cv_dlopen_libs=
8729 lt_cv_dlopen_self=yes
8730 ;;
8731
8732 mingw* | pw32*)
8733 lt_cv_dlopen="LoadLibrary"
8734 lt_cv_dlopen_libs=
8735 ;;
8736
8737 cygwin*)
8738 lt_cv_dlopen="dlopen"
8739 lt_cv_dlopen_libs=
8740 ;;
8741
8742 darwin*)
8743 # if libdl is installed we need to link against it
8744 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8745 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749 ac_check_lib_save_LIBS=$LIBS
8750 LIBS="-ldl $LIBS"
8751 cat >conftest.$ac_ext <<_ACEOF
8752 #line $LINENO "configure"
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758
8759 /* Override any gcc2 internal prototype to avoid an error. */
8760 #ifdef __cplusplus
8761 extern "C"
8762 #endif
8763 /* We use char because int might match the return type of a gcc2
8764 builtin and then its argument prototype would still apply. */
8765 char dlopen ();
8766 int
8767 main ()
8768 {
8769 dlopen ();
8770 ;
8771 return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } &&
8780 { ac_try='test -s conftest$ac_exeext'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8786 ac_cv_lib_dl_dlopen=yes
8787 else
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 ac_cv_lib_dl_dlopen=no
8792 fi
8793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8794 LIBS=$ac_check_lib_save_LIBS
8795 fi
8796 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8797 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8798 if test $ac_cv_lib_dl_dlopen = yes; then
8799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8800 else
8801
8802 lt_cv_dlopen="dyld"
8803 lt_cv_dlopen_libs=
8804 lt_cv_dlopen_self=yes
8805
8806 fi
8807
8808 ;;
8809
8810 *)
8811 echo "$as_me:$LINENO: checking for shl_load" >&5
8812 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8813 if test "${ac_cv_func_shl_load+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 cat >conftest.$ac_ext <<_ACEOF
8817 #line $LINENO "configure"
8818 /* confdefs.h. */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8823 /* System header to define __stub macros and hopefully few prototypes,
8824 which can conflict with char shl_load (); below.
8825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8826 <limits.h> exists even on freestanding compilers. */
8827 #ifdef __STDC__
8828 # include <limits.h>
8829 #else
8830 # include <assert.h>
8831 #endif
8832 /* Override any gcc2 internal prototype to avoid an error. */
8833 #ifdef __cplusplus
8834 extern "C"
8835 {
8836 #endif
8837 /* We use char because int might match the return type of a gcc2
8838 builtin and then its argument prototype would still apply. */
8839 char shl_load ();
8840 /* The GNU C library defines this for functions which it implements
8841 to always fail with ENOSYS. Some functions are actually named
8842 something starting with __ and the normal name is an alias. */
8843 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8844 choke me
8845 #else
8846 char (*f) () = shl_load;
8847 #endif
8848 #ifdef __cplusplus
8849 }
8850 #endif
8851
8852 int
8853 main ()
8854 {
8855 return f != shl_load;
8856 ;
8857 return 0;
8858 }
8859 _ACEOF
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862 (eval $ac_link) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -s conftest$ac_exeext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_func_shl_load=yes
8873 else
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_cv_func_shl_load=no
8878 fi
8879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8880 fi
8881 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8883 if test $ac_cv_func_shl_load = yes; then
8884 lt_cv_dlopen="shl_load"
8885 else
8886 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8887 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891 ac_check_lib_save_LIBS=$LIBS
8892 LIBS="-ldld $LIBS"
8893 cat >conftest.$ac_ext <<_ACEOF
8894 #line $LINENO "configure"
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900
8901 /* Override any gcc2 internal prototype to avoid an error. */
8902 #ifdef __cplusplus
8903 extern "C"
8904 #endif
8905 /* We use char because int might match the return type of a gcc2
8906 builtin and then its argument prototype would still apply. */
8907 char shl_load ();
8908 int
8909 main ()
8910 {
8911 shl_load ();
8912 ;
8913 return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918 (eval $ac_link) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -s conftest$ac_exeext'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8928 ac_cv_lib_dld_shl_load=yes
8929 else
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ac_cv_lib_dld_shl_load=no
8934 fi
8935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8936 LIBS=$ac_check_lib_save_LIBS
8937 fi
8938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8940 if test $ac_cv_lib_dld_shl_load = yes; then
8941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8942 else
8943 echo "$as_me:$LINENO: checking for dlopen" >&5
8944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8945 if test "${ac_cv_func_dlopen+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 /* System header to define __stub macros and hopefully few prototypes,
8956 which can conflict with char dlopen (); below.
8957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958 <limits.h> exists even on freestanding compilers. */
8959 #ifdef __STDC__
8960 # include <limits.h>
8961 #else
8962 # include <assert.h>
8963 #endif
8964 /* Override any gcc2 internal prototype to avoid an error. */
8965 #ifdef __cplusplus
8966 extern "C"
8967 {
8968 #endif
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char dlopen ();
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8976 choke me
8977 #else
8978 char (*f) () = dlopen;
8979 #endif
8980 #ifdef __cplusplus
8981 }
8982 #endif
8983
8984 int
8985 main ()
8986 {
8987 return f != dlopen;
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -s conftest$ac_exeext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_cv_func_dlopen=yes
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 ac_cv_func_dlopen=no
9010 fi
9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 fi
9013 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9014 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9015 if test $ac_cv_func_dlopen = yes; then
9016 lt_cv_dlopen="dlopen"
9017 else
9018 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 else
9023 ac_check_lib_save_LIBS=$LIBS
9024 LIBS="-ldl $LIBS"
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032
9033 /* Override any gcc2 internal prototype to avoid an error. */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 /* We use char because int might match the return type of a gcc2
9038 builtin and then its argument prototype would still apply. */
9039 char dlopen ();
9040 int
9041 main ()
9042 {
9043 dlopen ();
9044 ;
9045 return 0;
9046 }
9047 _ACEOF
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050 (eval $ac_link) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -s conftest$ac_exeext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 ac_cv_lib_dl_dlopen=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9064
9065 ac_cv_lib_dl_dlopen=no
9066 fi
9067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9068 LIBS=$ac_check_lib_save_LIBS
9069 fi
9070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9072 if test $ac_cv_lib_dl_dlopen = yes; then
9073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9074 else
9075 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9076 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_check_lib_save_LIBS=$LIBS
9081 LIBS="-lsvld $LIBS"
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 /* confdefs.h. */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089
9090 /* Override any gcc2 internal prototype to avoid an error. */
9091 #ifdef __cplusplus
9092 extern "C"
9093 #endif
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096 char dlopen ();
9097 int
9098 main ()
9099 {
9100 dlopen ();
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_svld_dlopen=yes
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_cv_lib_svld_dlopen=no
9123 fi
9124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9126 fi
9127 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9128 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9129 if test $ac_cv_lib_svld_dlopen = yes; then
9130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9131 else
9132 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9133 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9134 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 ac_check_lib_save_LIBS=$LIBS
9138 LIBS="-ldld $LIBS"
9139 cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146
9147 /* Override any gcc2 internal prototype to avoid an error. */
9148 #ifdef __cplusplus
9149 extern "C"
9150 #endif
9151 /* We use char because int might match the return type of a gcc2
9152 builtin and then its argument prototype would still apply. */
9153 char dld_link ();
9154 int
9155 main ()
9156 {
9157 dld_link ();
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -s conftest$ac_exeext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 (eval $ac_try) 2>&5
9171 ac_status=$?
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 ac_cv_lib_dld_dld_link=yes
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179 ac_cv_lib_dld_dld_link=no
9180 fi
9181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9183 fi
9184 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9185 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9186 if test $ac_cv_lib_dld_dld_link = yes; then
9187 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9188 fi
9189
9190
9191 fi
9192
9193
9194 fi
9195
9196
9197 fi
9198
9199
9200 fi
9201
9202
9203 fi
9204
9205 ;;
9206 esac
9207
9208 if test "x$lt_cv_dlopen" != xno; then
9209 enable_dlopen=yes
9210 else
9211 enable_dlopen=no
9212 fi
9213
9214 case $lt_cv_dlopen in
9215 dlopen)
9216 save_CPPFLAGS="$CPPFLAGS"
9217 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9218
9219 save_LDFLAGS="$LDFLAGS"
9220 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9221
9222 save_LIBS="$LIBS"
9223 LIBS="$lt_cv_dlopen_libs $LIBS"
9224
9225 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9226 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9227 if test "${lt_cv_dlopen_self+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230 if test "$cross_compiling" = yes; then :
9231 lt_cv_dlopen_self=cross
9232 else
9233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9234 lt_status=$lt_dlunknown
9235 cat > conftest.$ac_ext <<EOF
9236 #line 9236 "configure"
9237 #include "confdefs.h"
9238
9239 #if HAVE_DLFCN_H
9240 #include <dlfcn.h>
9241 #endif
9242
9243 #include <stdio.h>
9244
9245 #ifdef RTLD_GLOBAL
9246 # define LT_DLGLOBAL RTLD_GLOBAL
9247 #else
9248 # ifdef DL_GLOBAL
9249 # define LT_DLGLOBAL DL_GLOBAL
9250 # else
9251 # define LT_DLGLOBAL 0
9252 # endif
9253 #endif
9254
9255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9256 find out it does not work in some platform. */
9257 #ifndef LT_DLLAZY_OR_NOW
9258 # ifdef RTLD_LAZY
9259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9260 # else
9261 # ifdef DL_LAZY
9262 # define LT_DLLAZY_OR_NOW DL_LAZY
9263 # else
9264 # ifdef RTLD_NOW
9265 # define LT_DLLAZY_OR_NOW RTLD_NOW
9266 # else
9267 # ifdef DL_NOW
9268 # define LT_DLLAZY_OR_NOW DL_NOW
9269 # else
9270 # define LT_DLLAZY_OR_NOW 0
9271 # endif
9272 # endif
9273 # endif
9274 # endif
9275 #endif
9276
9277 #ifdef __cplusplus
9278 extern "C" void exit (int);
9279 #endif
9280
9281 void fnord() { int i=42;}
9282 int main ()
9283 {
9284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9285 int status = $lt_dlunknown;
9286
9287 if (self)
9288 {
9289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9291 /* dlclose (self); */
9292 }
9293
9294 exit (status);
9295 }
9296 EOF
9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9302 (./conftest; exit; ) 2>/dev/null
9303 lt_status=$?
9304 case x$lt_status in
9305 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9306 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9307 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9308 esac
9309 else :
9310 # compilation failed
9311 lt_cv_dlopen_self=no
9312 fi
9313 fi
9314 rm -fr conftest*
9315
9316
9317 fi
9318 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9319 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9320
9321 if test "x$lt_cv_dlopen_self" = xyes; then
9322 LDFLAGS="$LDFLAGS $link_static_flag"
9323 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9324 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9325 if test "${lt_cv_dlopen_self_static+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 if test "$cross_compiling" = yes; then :
9329 lt_cv_dlopen_self_static=cross
9330 else
9331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9332 lt_status=$lt_dlunknown
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9334 "configure"
9335 #include "confdefs.h"
9336
9337 #if HAVE_DLFCN_H
9338 #include <dlfcn.h>
9339 #endif
9340
9341 #include <stdio.h>
9342
9343 #ifdef RTLD_GLOBAL
9344 # define LT_DLGLOBAL RTLD_GLOBAL
9345 #else
9346 # ifdef DL_GLOBAL
9347 # define LT_DLGLOBAL DL_GLOBAL
9348 # else
9349 # define LT_DLGLOBAL 0
9350 # endif
9351 #endif
9352
9353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9354 find out it does not work in some platform. */
9355 #ifndef LT_DLLAZY_OR_NOW
9356 # ifdef RTLD_LAZY
9357 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9358 # else
9359 # ifdef DL_LAZY
9360 # define LT_DLLAZY_OR_NOW DL_LAZY
9361 # else
9362 # ifdef RTLD_NOW
9363 # define LT_DLLAZY_OR_NOW RTLD_NOW
9364 # else
9365 # ifdef DL_NOW
9366 # define LT_DLLAZY_OR_NOW DL_NOW
9367 # else
9368 # define LT_DLLAZY_OR_NOW 0
9369 # endif
9370 # endif
9371 # endif
9372 # endif
9373 #endif
9374
9375 #ifdef __cplusplus
9376 extern "C" void exit (int);
9377 #endif
9378
9379 void fnord() { int i=42;}
9380 int main ()
9381 {
9382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9383 int status = $lt_dlunknown;
9384
9385 if (self)
9386 {
9387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9388 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9389 /* dlclose (self); */
9390 }
9391
9392 exit (status);
9393 }
9394 EOF
9395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9396 (eval $ac_link) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9400 (./conftest; exit; ) 2>/dev/null
9401 lt_status=$?
9402 case x$lt_status in
9403 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9404 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9405 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9406 esac
9407 else :
9408 # compilation failed
9409 lt_cv_dlopen_self_static=no
9410 fi
9411 fi
9412 rm -fr conftest*
9413
9414
9415 fi
9416 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9417 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9418 fi
9419
9420 CPPFLAGS="$save_CPPFLAGS"
9421 LDFLAGS="$save_LDFLAGS"
9422 LIBS="$save_LIBS"
9423 ;;
9424 esac
9425
9426 case $lt_cv_dlopen_self in
9427 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9428 *) enable_dlopen_self=unknown ;;
9429 esac
9430
9431 case $lt_cv_dlopen_self_static in
9432 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9433 *) enable_dlopen_self_static=unknown ;;
9434 esac
9435 fi
9436
9437
9438 # Report which librarie types wil actually be built
9439 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9440 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9441 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9442 echo "${ECHO_T}$can_build_shared" >&6
9443
9444 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9445 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9446 test "$can_build_shared" = "no" && enable_shared=no
9447
9448 # On AIX, shared libraries and static libraries use the same namespace, and
9449 # are all built from PIC.
9450 case "$host_os" in
9451 aix3*)
9452 test "$enable_shared" = yes && enable_static=no
9453 if test -n "$RANLIB"; then
9454 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
9455 postinstall_cmds='$RANLIB $lib'
9456 fi
9457 ;;
9458
9459 aix4*)
9460 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9461 test "$enable_shared" = yes && enable_static=no
9462 fi
9463 ;;
9464 darwin* | rhapsody*)
9465 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9466 archive_cmds_need_lc=no
9467 case "$host_os" in
9468 rhapsody* | darwin1.[012])
9469 allow_undefined_flag='-undefined suppress'
9470 ;;
9471 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
9472 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9473 ;;
9474 *) # Darwin 7.0 on
9475 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
9476 10.[012])
9477 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9478 ;;
9479 *) # 10.3 on
9480 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
9481 allow_undefined_flag='-flat_namespace -undefined suppress'
9482 else
9483 allow_undefined_flag='-undefined dynamic_lookup'
9484 fi
9485 ;;
9486 esac
9487 ;;
9488 esac
9489 # FIXME: Relying on posixy $() will cause problems for
9490 # cross-compilation, but unfortunately the echo tests do not
9491 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
9492 # `"' quotes if we put them in here... so don't!
9493 output_verbose_link_cmd='echo'
9494 archive_cmds='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9495 module_cmds='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9497 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9498 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9499 hardcode_direct=no
9500 hardcode_automatic=yes
9501 hardcode_shlibpath_var=unsupported
9502 whole_archive_flag_spec='-all_load $convenience'
9503 link_all_deplibs=yes
9504 fi
9505 ;;
9506 esac
9507 echo "$as_me:$LINENO: result: $enable_shared" >&5
9508 echo "${ECHO_T}$enable_shared" >&6
9509
9510 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9511 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9512 # Make sure either enable_shared or enable_static is yes.
9513 test "$enable_shared" = yes || enable_static=yes
9514 echo "$as_me:$LINENO: result: $enable_static" >&5
9515 echo "${ECHO_T}$enable_static" >&6
9516
9517 # The else clause should only fire when bootstrapping the
9518 # libtool distribution, otherwise you forgot to ship ltmain.sh
9519 # with your package, and you will get complaints that there are
9520 # no rules to generate ltmain.sh.
9521 if test -f "$ltmain"; then
9522 # See if we are running on zsh, and set the options which allow our commands through
9523 # without removal of \ escapes.
9524 if test -n "${ZSH_VERSION+set}" ; then
9525 setopt NO_GLOB_SUBST
9526 fi
9527 # Now quote all the things that may contain metacharacters while being
9528 # careful not to overquote the AC_SUBSTed values. We take copies of the
9529 # variables and quote the copies for generation of the libtool script.
9530 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9533 deplibs_check_method reload_flag reload_cmds need_locks \
9534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9535 lt_cv_sys_global_symbol_to_c_name_address \
9536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9537 old_postinstall_cmds old_postuninstall_cmds \
9538 compiler \
9539 CC \
9540 LD \
9541 lt_prog_compiler_wl \
9542 lt_prog_compiler_pic \
9543 lt_prog_compiler_static \
9544 lt_prog_compiler_no_builtin_flag \
9545 export_dynamic_flag_spec \
9546 thread_safe_flag_spec \
9547 whole_archive_flag_spec \
9548 enable_shared_with_static_runtimes \
9549 old_archive_cmds \
9550 old_archive_from_new_cmds \
9551 predep_objects \
9552 postdep_objects \
9553 predeps \
9554 postdeps \
9555 compiler_lib_search_path \
9556 archive_cmds \
9557 archive_expsym_cmds \
9558 postinstall_cmds \
9559 postuninstall_cmds \
9560 old_archive_from_expsyms_cmds \
9561 allow_undefined_flag \
9562 no_undefined_flag \
9563 export_symbols_cmds \
9564 hardcode_libdir_flag_spec \
9565 hardcode_libdir_flag_spec_ld \
9566 hardcode_libdir_separator \
9567 hardcode_automatic \
9568 module_cmds \
9569 module_expsym_cmds \
9570 lt_cv_prog_compiler_c_o \
9571 exclude_expsyms \
9572 include_expsyms; do
9573
9574 case $var in
9575 old_archive_cmds | \
9576 old_archive_from_new_cmds | \
9577 archive_cmds | \
9578 archive_expsym_cmds | \
9579 module_cmds | \
9580 module_expsym_cmds | \
9581 old_archive_from_expsyms_cmds | \
9582 export_symbols_cmds | \
9583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9584 postinstall_cmds | postuninstall_cmds | \
9585 old_postinstall_cmds | old_postuninstall_cmds | \
9586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9587 # Double-quote double-evaled strings.
9588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
9589 ;;
9590 *)
9591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9592 ;;
9593 esac
9594 done
9595
9596 case $lt_echo in
9597 *'\$0 --fallback-echo"')
9598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9599 ;;
9600 esac
9601
9602 cfgfile="${ofile}T"
9603 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9604 $rm -f "$cfgfile"
9605 { echo "$as_me:$LINENO: creating $ofile" >&5
9606 echo "$as_me: creating $ofile" >&6;}
9607
9608 cat <<__EOF__ >> "$cfgfile"
9609 #! $SHELL
9610
9611 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9612 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9613 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9614 #
9615 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9616 # Free Software Foundation, Inc.
9617 #
9618 # This file is part of GNU Libtool:
9619 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9620 #
9621 # This program is free software; you can redistribute it and/or modify
9622 # it under the terms of the GNU General Public License as published by
9623 # the Free Software Foundation; either version 2 of the License, or
9624 # (at your option) any later version.
9625 #
9626 # This program is distributed in the hope that it will be useful, but
9627 # WITHOUT ANY WARRANTY; without even the implied warranty of
9628 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9629 # General Public License for more details.
9630 #
9631 # You should have received a copy of the GNU General Public License
9632 # along with this program; if not, write to the Free Software
9633 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9634 #
9635 # As a special exception to the GNU General Public License, if you
9636 # distribute this file as part of a program that contains a
9637 # configuration script generated by Autoconf, you may include it under
9638 # the same distribution terms that you use for the rest of that program.
9639
9640 # A sed program that does not truncate output.
9641 SED=$lt_SED
9642
9643 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9644 Xsed="$SED -e s/^X//"
9645
9646 # The HP-UX ksh and POSIX shell print the target directory to stdout
9647 # if CDPATH is set.
9648 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9649
9650 # The names of the tagged configurations supported by this script.
9651 available_tags=
9652
9653 # ### BEGIN LIBTOOL CONFIG
9654
9655 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9656
9657 # Set the command separator (default: ~)
9658 _S_=\${LIBTOOL_CMD_SEP-\~}
9659
9660 # Shell to use when invoking shell scripts.
9661 SHELL=$lt_SHELL
9662
9663 # Whether or not to build shared libraries.
9664 build_libtool_libs=$enable_shared
9665
9666 # Whether or not to build static libraries.
9667 build_old_libs=$enable_static
9668
9669 # Whether or not to add -lc for building shared libraries.
9670 build_libtool_need_lc=$archive_cmds_need_lc
9671
9672 # Whether or not to disallow shared libs when runtime libs are static
9673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9674
9675 # Whether or not to optimize for fast installation.
9676 fast_install=$enable_fast_install
9677
9678 # The host system.
9679 host_alias=$host_alias
9680 host=$host
9681
9682 # An echo program that does not interpret backslashes.
9683 echo=$lt_echo
9684
9685 # The archiver.
9686 AR=$lt_AR
9687 AR_FLAGS=$lt_AR_FLAGS
9688
9689 # A C compiler.
9690 LTCC=$lt_LTCC
9691
9692 # A language-specific compiler.
9693 CC=$lt_compiler
9694
9695 # Is the compiler the GNU C compiler?
9696 with_gcc=$GCC
9697
9698 # An ERE matcher.
9699 EGREP=$lt_EGREP
9700
9701 # The linker used to build libraries.
9702 LD=$lt_LD
9703
9704 # Whether we need hard or soft links.
9705 LN_S=$lt_LN_S
9706
9707 # A BSD-compatible nm program.
9708 NM=$lt_NM
9709
9710 # A symbol stripping program
9711 STRIP=$STRIP
9712
9713 # Used to examine libraries when file_magic_cmd begins "file"
9714 MAGIC_CMD=$MAGIC_CMD
9715
9716 # Used on cygwin: DLL creation program.
9717 DLLTOOL="$DLLTOOL"
9718
9719 # Used on cygwin: object dumper.
9720 OBJDUMP="$OBJDUMP"
9721
9722 # Used on cygwin: assembler.
9723 AS="$AS"
9724
9725 # The name of the directory that contains temporary libtool files.
9726 objdir=$objdir
9727
9728 # How to create reloadable object files.
9729 reload_flag=$lt_reload_flag
9730 reload_cmds=$lt_reload_cmds
9731
9732 # How to pass a linker flag through the compiler.
9733 wl=$lt_lt_prog_compiler_wl
9734
9735 # Object file suffix (normally "o").
9736 objext="$ac_objext"
9737
9738 # Old archive suffix (normally "a").
9739 libext="$libext"
9740
9741 # Shared library suffix (normally ".so").
9742 shrext='$shrext'
9743
9744 # Executable file suffix (normally "").
9745 exeext="$exeext"
9746
9747 # Additional compiler flags for building library objects.
9748 pic_flag=$lt_lt_prog_compiler_pic
9749 pic_mode=$pic_mode
9750
9751 # What is the maximum length of a command?
9752 max_cmd_len=$lt_cv_sys_max_cmd_len
9753
9754 # Does compiler simultaneously support -c and -o options?
9755 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9756
9757 # Must we lock files when doing compilation ?
9758 need_locks=$lt_need_locks
9759
9760 # Do we need the lib prefix for modules?
9761 need_lib_prefix=$need_lib_prefix
9762
9763 # Do we need a version for libraries?
9764 need_version=$need_version
9765
9766 # Whether dlopen is supported.
9767 dlopen_support=$enable_dlopen
9768
9769 # Whether dlopen of programs is supported.
9770 dlopen_self=$enable_dlopen_self
9771
9772 # Whether dlopen of statically linked programs is supported.
9773 dlopen_self_static=$enable_dlopen_self_static
9774
9775 # Compiler flag to prevent dynamic linking.
9776 link_static_flag=$lt_lt_prog_compiler_static
9777
9778 # Compiler flag to turn off builtin functions.
9779 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9780
9781 # Compiler flag to allow reflexive dlopens.
9782 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9783
9784 # Compiler flag to generate shared objects directly from archives.
9785 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9786
9787 # Compiler flag to generate thread-safe objects.
9788 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9789
9790 # Library versioning type.
9791 version_type=$version_type
9792
9793 # Format of library name prefix.
9794 libname_spec=$lt_libname_spec
9795
9796 # List of archive names. First name is the real one, the rest are links.
9797 # The last name is the one that the linker finds with -lNAME.
9798 library_names_spec=$lt_library_names_spec
9799
9800 # The coded name of the library, if different from the real name.
9801 soname_spec=$lt_soname_spec
9802
9803 # Commands used to build and install an old-style archive.
9804 RANLIB=$lt_RANLIB
9805 old_archive_cmds=$lt_old_archive_cmds
9806 old_postinstall_cmds=$lt_old_postinstall_cmds
9807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9808
9809 # Create an old-style archive from a shared archive.
9810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9811
9812 # Create a temporary old-style archive to link instead of a shared archive.
9813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9814
9815 # Commands used to build and install a shared archive.
9816 archive_cmds=$lt_archive_cmds
9817 archive_expsym_cmds=$lt_archive_expsym_cmds
9818 postinstall_cmds=$lt_postinstall_cmds
9819 postuninstall_cmds=$lt_postuninstall_cmds
9820
9821 # Commands used to build a loadable module (assumed same as above if empty)
9822 module_cmds=$lt_module_cmds
9823 module_expsym_cmds=$lt_module_expsym_cmds
9824
9825 # Commands to strip libraries.
9826 old_striplib=$lt_old_striplib
9827 striplib=$lt_striplib
9828
9829 # Dependencies to place before the objects being linked to create a
9830 # shared library.
9831 predep_objects=$lt_predep_objects
9832
9833 # Dependencies to place after the objects being linked to create a
9834 # shared library.
9835 postdep_objects=$lt_postdep_objects
9836
9837 # Dependencies to place before the objects being linked to create a
9838 # shared library.
9839 predeps=$lt_predeps
9840
9841 # Dependencies to place after the objects being linked to create a
9842 # shared library.
9843 postdeps=$lt_postdeps
9844
9845 # The library search path used internally by the compiler when linking
9846 # a shared library.
9847 compiler_lib_search_path=$lt_compiler_lib_search_path
9848
9849 # Method to check whether dependent libraries are shared objects.
9850 deplibs_check_method=$lt_deplibs_check_method
9851
9852 # Command to use when deplibs_check_method == file_magic.
9853 file_magic_cmd=$lt_file_magic_cmd
9854
9855 # Flag that allows shared libraries with undefined symbols to be built.
9856 allow_undefined_flag=$lt_allow_undefined_flag
9857
9858 # Flag that forces no undefined symbols.
9859 no_undefined_flag=$lt_no_undefined_flag
9860
9861 # Commands used to finish a libtool library installation in a directory.
9862 finish_cmds=$lt_finish_cmds
9863
9864 # Same as above, but a single script fragment to be evaled but not shown.
9865 finish_eval=$lt_finish_eval
9866
9867 # Take the output of nm and produce a listing of raw symbols and C names.
9868 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9869
9870 # Transform the output of nm in a proper C declaration
9871 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9872
9873 # Transform the output of nm in a C name address pair
9874 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9875
9876 # This is the shared library runtime path variable.
9877 runpath_var=$runpath_var
9878
9879 # This is the shared library path variable.
9880 shlibpath_var=$shlibpath_var
9881
9882 # Is shlibpath searched before the hard-coded library search path?
9883 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9884
9885 # How to hardcode a shared library path into an executable.
9886 hardcode_action=$hardcode_action
9887
9888 # Whether we should hardcode library paths into libraries.
9889 hardcode_into_libs=$hardcode_into_libs
9890
9891 # Flag to hardcode \$libdir into a binary during linking.
9892 # This must work even if \$libdir does not exist.
9893 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9894
9895 # If ld is used when linking, flag to hardcode \$libdir into
9896 # a binary during linking. This must work even if \$libdir does
9897 # not exist.
9898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9899
9900 # Whether we need a single -rpath flag with a separated argument.
9901 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9902
9903 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9904 # resulting binary.
9905 hardcode_direct=$hardcode_direct
9906
9907 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9908 # resulting binary.
9909 hardcode_minus_L=$hardcode_minus_L
9910
9911 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9912 # the resulting binary.
9913 hardcode_shlibpath_var=$hardcode_shlibpath_var
9914
9915 # Set to yes if building a shared library automatically hardcodes DIR into the library
9916 # and all subsequent libraries and executables linked against it.
9917 hardcode_automatic=$hardcode_automatic
9918
9919 # Variables whose values should be saved in libtool wrapper scripts and
9920 # restored at relink time.
9921 variables_saved_for_relink="$variables_saved_for_relink"
9922
9923 # Whether libtool must link a program against all its dependency libraries.
9924 link_all_deplibs=$link_all_deplibs
9925
9926 # Compile-time system search path for libraries
9927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9928
9929 # Run-time system search path for libraries
9930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9931
9932 # Fix the shell variable \$srcfile for the compiler.
9933 fix_srcfile_path="$fix_srcfile_path"
9934
9935 # Set to yes if exported symbols are required.
9936 always_export_symbols=$always_export_symbols
9937
9938 # The commands to list exported symbols.
9939 export_symbols_cmds=$lt_export_symbols_cmds
9940
9941 # The commands to extract the exported symbol list from a shared archive.
9942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9943
9944 # Symbols that should not be listed in the preloaded symbols.
9945 exclude_expsyms=$lt_exclude_expsyms
9946
9947 # Symbols that must always be exported.
9948 include_expsyms=$lt_include_expsyms
9949
9950 # ### END LIBTOOL CONFIG
9951
9952 __EOF__
9953
9954
9955 case $host_os in
9956 aix3*)
9957 cat <<\EOF >> "$cfgfile"
9958
9959 # AIX sometimes has problems with the GCC collect2 program. For some
9960 # reason, if we set the COLLECT_NAMES environment variable, the problems
9961 # vanish in a puff of smoke.
9962 if test "X${COLLECT_NAMES+set}" != Xset; then
9963 COLLECT_NAMES=
9964 export COLLECT_NAMES
9965 fi
9966 EOF
9967 ;;
9968 esac
9969
9970 # We use sed instead of cat because bash on DJGPP gets confused if
9971 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9972 # text mode, it properly converts lines to CR/LF. This bash problem
9973 # is reportedly fixed, but why not run on old versions too?
9974 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9975
9976 mv -f "$cfgfile" "$ofile" || \
9977 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9978 chmod +x "$ofile"
9979
9980 else
9981 # If there is no Makefile yet, we rely on a make rule to execute
9982 # `config.status --recheck' to rerun these tests and create the
9983 # libtool script then.
9984 test -f Makefile && make "$ltmain"
9985 fi
9986
9987
9988 ac_ext=c
9989 ac_cpp='$CPP $CPPFLAGS'
9990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9993
9994 CC="$lt_save_CC"
9995
9996
9997 # Check whether --with-tags or --without-tags was given.
9998 if test "${with_tags+set}" = set; then
9999 withval="$with_tags"
10000 tagnames="$withval"
10001 fi;
10002
10003 if test -f "$ltmain" && test -n "$tagnames"; then
10004 if test ! -f "${ofile}"; then
10005 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10006 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10007 fi
10008
10009 if test -z "$LTCC"; then
10010 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10011 if test -z "$LTCC"; then
10012 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10013 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10014 else
10015 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10016 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10017 fi
10018 fi
10019
10020 # Extract list of available tagged configurations in $ofile.
10021 # Note that this assumes the entire list is on one line.
10022 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10023
10024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10025 for tagname in $tagnames; do
10026 IFS="$lt_save_ifs"
10027 # Check whether tagname contains only valid characters
10028 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10029 "") ;;
10030 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10031 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10032 { (exit 1); exit 1; }; }
10033 ;;
10034 esac
10035
10036 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10037 then
10038 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10039 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10040 { (exit 1); exit 1; }; }
10041 fi
10042
10043 # Update the list of available tags.
10044 if test -n "$tagname"; then
10045 echo appending configuration tag \"$tagname\" to $ofile
10046
10047 case $tagname in
10048 CXX)
10049 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10050 ac_ext=cc
10051 ac_cpp='$CXXCPP $CPPFLAGS'
10052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10055
10056
10057
10058
10059 archive_cmds_need_lc_CXX=no
10060 allow_undefined_flag_CXX=
10061 always_export_symbols_CXX=no
10062 archive_expsym_cmds_CXX=
10063 export_dynamic_flag_spec_CXX=
10064 hardcode_direct_CXX=no
10065 hardcode_libdir_flag_spec_CXX=
10066 hardcode_libdir_flag_spec_ld_CXX=
10067 hardcode_libdir_separator_CXX=
10068 hardcode_minus_L_CXX=no
10069 hardcode_automatic_CXX=no
10070 module_cmds_CXX=
10071 module_expsym_cmds_CXX=
10072 link_all_deplibs_CXX=unknown
10073 old_archive_cmds_CXX=$old_archive_cmds
10074 no_undefined_flag_CXX=
10075 whole_archive_flag_spec_CXX=
10076 enable_shared_with_static_runtimes_CXX=no
10077
10078 # Dependencies to place before and after the object being linked:
10079 predep_objects_CXX=
10080 postdep_objects_CXX=
10081 predeps_CXX=
10082 postdeps_CXX=
10083 compiler_lib_search_path_CXX=
10084
10085 # Source file extension for C++ test sources.
10086 ac_ext=cc
10087
10088 # Object file extension for compiled C++ test sources.
10089 objext=o
10090 objext_CXX=$objext
10091
10092 # Code to be used in simple compile tests
10093 lt_simple_compile_test_code="int some_variable = 0;\n"
10094
10095 # Code to be used in simple link tests
10096 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10097
10098 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10099
10100 # If no C compiler was specified, use CC.
10101 LTCC=${LTCC-"$CC"}
10102
10103 # Allow CC to be a program name with arguments.
10104 compiler=$CC
10105
10106
10107 # Allow CC to be a program name with arguments.
10108 lt_save_CC=$CC
10109 lt_save_LD=$LD
10110 lt_save_GCC=$GCC
10111 GCC=$GXX
10112 lt_save_with_gnu_ld=$with_gnu_ld
10113 lt_save_path_LD=$lt_cv_path_LD
10114 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10115 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10116 else
10117 unset lt_cv_prog_gnu_ld
10118 fi
10119 if test -n "${lt_cv_path_LDCXX+set}"; then
10120 lt_cv_path_LD=$lt_cv_path_LDCXX
10121 else
10122 unset lt_cv_path_LD
10123 fi
10124 test -z "${LDCXX+set}" || LD=$LDCXX
10125 CC=${CXX-"c++"}
10126 compiler=$CC
10127 compiler_CXX=$CC
10128 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10129
10130 # We don't want -fno-exception wen compiling C++ code, so set the
10131 # no_builtin_flag separately
10132 if test "$GXX" = yes; then
10133 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10134 else
10135 lt_prog_compiler_no_builtin_flag_CXX=
10136 fi
10137
10138 if test "$GXX" = yes; then
10139 # Set up default GNU C++ configuration
10140
10141
10142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10143 if test "${with_gnu_ld+set}" = set; then
10144 withval="$with_gnu_ld"
10145 test "$withval" = no || with_gnu_ld=yes
10146 else
10147 with_gnu_ld=no
10148 fi;
10149 ac_prog=ld
10150 if test "$GCC" = yes; then
10151 # Check if gcc -print-prog-name=ld gives a path.
10152 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10153 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10154 case $host in
10155 *-*-mingw*)
10156 # gcc leaves a trailing carriage return which upsets mingw
10157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10158 *)
10159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10160 esac
10161 case $ac_prog in
10162 # Accept absolute paths.
10163 [\\/]* | ?:[\\/]*)
10164 re_direlt='/[^/][^/]*/\.\./'
10165 # Canonicalize the path of ld
10166 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10168 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10169 done
10170 test -z "$LD" && LD="$ac_prog"
10171 ;;
10172 "")
10173 # If it fails, then pretend we aren't using GCC.
10174 ac_prog=ld
10175 ;;
10176 *)
10177 # If it is relative, then search for the first ld in PATH.
10178 with_gnu_ld=unknown
10179 ;;
10180 esac
10181 elif test "$with_gnu_ld" = yes; then
10182 echo "$as_me:$LINENO: checking for GNU ld" >&5
10183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10184 else
10185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10187 fi
10188 if test "${lt_cv_path_LD+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 if test -z "$LD"; then
10192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10193 for ac_dir in $PATH; do
10194 IFS="$lt_save_ifs"
10195 test -z "$ac_dir" && ac_dir=.
10196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10197 lt_cv_path_LD="$ac_dir/$ac_prog"
10198 # Check to see if the program is GNU ld. I'd rather use --version,
10199 # but apparently some GNU ld's only accept -v.
10200 # Break only if it was the GNU/non-GNU ld that we prefer.
10201 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10202 *GNU* | *'with BFD'*)
10203 test "$with_gnu_ld" != no && break
10204 ;;
10205 *)
10206 test "$with_gnu_ld" != yes && break
10207 ;;
10208 esac
10209 fi
10210 done
10211 IFS="$lt_save_ifs"
10212 else
10213 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10214 fi
10215 fi
10216
10217 LD="$lt_cv_path_LD"
10218 if test -n "$LD"; then
10219 echo "$as_me:$LINENO: result: $LD" >&5
10220 echo "${ECHO_T}$LD" >&6
10221 else
10222 echo "$as_me:$LINENO: result: no" >&5
10223 echo "${ECHO_T}no" >&6
10224 fi
10225 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10226 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10227 { (exit 1); exit 1; }; }
10228 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10229 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10230 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10234 case `"$LD" -v 2>&1 </dev/null` in
10235 *GNU* | *'with BFD'*)
10236 lt_cv_prog_gnu_ld=yes
10237 ;;
10238 *)
10239 lt_cv_prog_gnu_ld=no
10240 ;;
10241 esac
10242 fi
10243 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10244 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10245 with_gnu_ld=$lt_cv_prog_gnu_ld
10246
10247
10248
10249 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10250 # archiving commands below assume that GNU ld is being used.
10251 if test "$with_gnu_ld" = yes; then
10252 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253 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'
10254
10255 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10257
10258 # If archive_cmds runs LD, not CC, wlarc should be empty
10259 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10260 # investigate it a little bit more. (MM)
10261 wlarc='${wl}'
10262
10263 # ancient GNU ld didn't support --whole-archive et. al.
10264 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10265 grep 'no-whole-archive' > /dev/null; then
10266 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10267 else
10268 whole_archive_flag_spec_CXX=
10269 fi
10270 else
10271 with_gnu_ld=no
10272 wlarc=
10273
10274 # A generic and very simple default shared library creation
10275 # command for GNU C++ for the case where it uses the native
10276 # linker, instead of GNU ld. If possible, this setting should
10277 # overridden to take advantage of the native linker features on
10278 # the platform it is being used on.
10279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10280 fi
10281
10282 # Commands to make compiler produce verbose output that lists
10283 # what "hidden" libraries, object files and flags are used when
10284 # linking a shared library.
10285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10286
10287 else
10288 GXX=no
10289 with_gnu_ld=no
10290 wlarc=
10291 fi
10292
10293 # PORTME: fill in a description of your system's C++ link characteristics
10294 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10295 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10296 ld_shlibs_CXX=yes
10297 case $host_os in
10298 aix3*)
10299 # FIXME: insert proper C++ library support
10300 ld_shlibs_CXX=no
10301 ;;
10302 aix4* | aix5*)
10303 if test "$host_cpu" = ia64; then
10304 # On IA64, the linker does run time linking by default, so we don't
10305 # have to do anything special.
10306 aix_use_runtimelinking=no
10307 exp_sym_flag='-Bexport'
10308 no_entry_flag=""
10309 else
10310 aix_use_runtimelinking=no
10311
10312 # Test if we are trying to use run time linking or normal
10313 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10314 # need to do runtime linking.
10315 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10316 for ld_flag in $LDFLAGS; do
10317 case $ld_flag in
10318 *-brtl*)
10319 aix_use_runtimelinking=yes
10320 break
10321 ;;
10322 esac
10323 done
10324 esac
10325
10326 exp_sym_flag='-bexport'
10327 no_entry_flag='-bnoentry'
10328 fi
10329
10330 # When large executables or shared objects are built, AIX ld can
10331 # have problems creating the table of contents. If linking a library
10332 # or program results in "error TOC overflow" add -mminimal-toc to
10333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10335
10336 archive_cmds_CXX=''
10337 hardcode_direct_CXX=yes
10338 hardcode_libdir_separator_CXX=':'
10339 link_all_deplibs_CXX=yes
10340
10341 if test "$GXX" = yes; then
10342 case $host_os in aix4.012|aix4.012.*)
10343 # We only want to do this on AIX 4.2 and lower, the check
10344 # below for broken collect2 doesn't work under 4.3+
10345 collect2name=`${CC} -print-prog-name=collect2`
10346 if test -f "$collect2name" && \
10347 strings "$collect2name" | grep resolve_lib_name >/dev/null
10348 then
10349 # We have reworked collect2
10350 hardcode_direct_CXX=yes
10351 else
10352 # We have old collect2
10353 hardcode_direct_CXX=unsupported
10354 # It fails to find uninstalled libraries when the uninstalled
10355 # path is not listed in the libpath. Setting hardcode_minus_L
10356 # to unsupported forces relinking
10357 hardcode_minus_L_CXX=yes
10358 hardcode_libdir_flag_spec_CXX='-L$libdir'
10359 hardcode_libdir_separator_CXX=
10360 fi
10361 esac
10362 shared_flag='-shared'
10363 else
10364 # not using gcc
10365 if test "$host_cpu" = ia64; then
10366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10367 # chokes on -Wl,-G. The following line is correct:
10368 shared_flag='-G'
10369 else
10370 if test "$aix_use_runtimelinking" = yes; then
10371 shared_flag='${wl}-G'
10372 else
10373 shared_flag='${wl}-bM:SRE'
10374 fi
10375 fi
10376 fi
10377
10378 # It seems that -bexpall does not export symbols beginning with
10379 # underscore (_), so it is better to generate a list of symbols to export.
10380 always_export_symbols_CXX=yes
10381 if test "$aix_use_runtimelinking" = yes; then
10382 # Warning - without using the other runtime loading flags (-brtl),
10383 # -berok will link without error, but may produce a broken library.
10384 allow_undefined_flag_CXX='-berok'
10385 # Determine the default libpath from the value encoded in an empty executable.
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 /* confdefs.h. */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10393
10394 int
10395 main ()
10396 {
10397
10398 ;
10399 return 0;
10400 }
10401 _ACEOF
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404 (eval $ac_link) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -s conftest$ac_exeext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414
10415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10416 }'`
10417 # Check for a 64-bit object if we didn't find anything.
10418 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; }
10419 }'`; fi
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424 fi
10425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10427
10428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10429
10430 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"
10431 else
10432 if test "$host_cpu" = ia64; then
10433 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10434 allow_undefined_flag_CXX="-z nodefs"
10435 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"
10436 else
10437 # Determine the default libpath from the value encoded in an empty executable.
10438 cat >conftest.$ac_ext <<_ACEOF
10439 #line $LINENO "configure"
10440 /* confdefs.h. */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445
10446 int
10447 main ()
10448 {
10449
10450 ;
10451 return 0;
10452 }
10453 _ACEOF
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456 (eval $ac_link) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } &&
10460 { ac_try='test -s conftest$ac_exeext'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466
10467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10468 }'`
10469 # Check for a 64-bit object if we didn't find anything.
10470 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; }
10471 }'`; fi
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10475
10476 fi
10477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10479
10480 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10481 # Warning - without using the other run time loading flags,
10482 # -berok will link without error, but may produce a broken library.
10483 no_undefined_flag_CXX=' ${wl}-bernotok'
10484 allow_undefined_flag_CXX=' ${wl}-berok'
10485 # -bexpall does not export symbols beginning with underscore (_)
10486 always_export_symbols_CXX=yes
10487 # Exported symbols can be pulled into shared objects from archives
10488 whole_archive_flag_spec_CXX=' '
10489 archive_cmds_need_lc_CXX=yes
10490 # This is similar to how AIX traditionally builds it's shared libraries.
10491 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10492 fi
10493 fi
10494 ;;
10495 chorus*)
10496 case $cc_basename in
10497 *)
10498 # FIXME: insert proper C++ library support
10499 ld_shlibs_CXX=no
10500 ;;
10501 esac
10502 ;;
10503
10504 cygwin* | mingw* | pw32*)
10505 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10506 # as there is no search path for DLLs.
10507 hardcode_libdir_flag_spec_CXX='-L$libdir'
10508 allow_undefined_flag_CXX=unsupported
10509 always_export_symbols_CXX=no
10510 enable_shared_with_static_runtimes_CXX=yes
10511
10512 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10513 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'
10514 # If the export-symbols file already is a .def file (1st line
10515 # is EXPORTS), use it as is; otherwise, prepend...
10516 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10517 cp $export_symbols $output_objdir/$soname.def;
10518 else
10519 echo EXPORTS > $output_objdir/$soname.def;
10520 cat $export_symbols >> $output_objdir/$soname.def;
10521 fi${_S_}
10522 $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'
10523 else
10524 ld_shlibs_CXX=no
10525 fi
10526 ;;
10527
10528 darwin* | rhapsody*)
10529 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10530 archive_cmds_need_lc_CXX=no
10531 case "$host_os" in
10532 rhapsody* | darwin1.[012])
10533 allow_undefined_flag_CXX='-undefined suppress'
10534 ;;
10535 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
10536 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10537 ;;
10538 *) # Darwin 7.0 on
10539 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
10540 10.[012])
10541 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10542 ;;
10543 *) # 10.3 on
10544 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
10545 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10546 else
10547 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10548 fi
10549 ;;
10550 esac
10551 ;;
10552 esac
10553 lt_int_apple_cc_single_mod=no
10554 output_verbose_link_cmd='echo'
10555 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10556 lt_int_apple_cc_single_mod=yes
10557 fi
10558 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10559 archive_cmds_CXX='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10560 else
10561 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10562 fi
10563 module_cmds_CXX='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10564
10565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10567 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10568 else
10569 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10570 fi
10571 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10572 hardcode_direct_CXX=no
10573 hardcode_automatic_CXX=yes
10574 hardcode_shlibpath_var_CXX=unsupported
10575 whole_archive_flag_spec_CXX='-all_load $convenience'
10576 link_all_deplibs_CXX=yes
10577 fi
10578 ;;
10579
10580 dgux*)
10581 case $cc_basename in
10582 ec++)
10583 # FIXME: insert proper C++ library support
10584 ld_shlibs_CXX=no
10585 ;;
10586 ghcx)
10587 # Green Hills C++ Compiler
10588 # FIXME: insert proper C++ library support
10589 ld_shlibs_CXX=no
10590 ;;
10591 *)
10592 # FIXME: insert proper C++ library support
10593 ld_shlibs_CXX=no
10594 ;;
10595 esac
10596 ;;
10597 freebsd12*)
10598 # C++ shared libraries reported to be fairly broken before switch to ELF
10599 ld_shlibs_CXX=no
10600 ;;
10601 freebsd-elf*)
10602 archive_cmds_need_lc_CXX=no
10603 ;;
10604 freebsd*)
10605 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10606 # conventions
10607 ld_shlibs_CXX=yes
10608 ;;
10609 gnu*)
10610 ;;
10611 hpux9*)
10612 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10613 hardcode_libdir_separator_CXX=:
10614 export_dynamic_flag_spec_CXX='${wl}-E'
10615 hardcode_direct_CXX=yes
10616 hardcode_minus_L_CXX=yes # Not in the search PATH,
10617 # but as the default
10618 # location of the library.
10619
10620 case $cc_basename in
10621 CC)
10622 # FIXME: insert proper C++ library support
10623 ld_shlibs_CXX=no
10624 ;;
10625 aCC)
10626 archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10627 # Commands to make compiler produce verbose output that lists
10628 # what "hidden" libraries, object files and flags are used when
10629 # linking a shared library.
10630 #
10631 # There doesn't appear to be a way to prevent this compiler from
10632 # explicitly linking system object files so we need to strip them
10633 # from the output so that they don't get included in the library
10634 # dependencies.
10635 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'
10636 ;;
10637 *)
10638 if test "$GXX" = yes; then
10639 archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10640 else
10641 # FIXME: insert proper C++ library support
10642 ld_shlibs_CXX=no
10643 fi
10644 ;;
10645 esac
10646 ;;
10647 hpux10*|hpux11*)
10648 if test $with_gnu_ld = no; then
10649 case "$host_cpu" in
10650 hppa*64*)
10651 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10652 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10653 hardcode_libdir_separator_CXX=:
10654 ;;
10655 ia64*)
10656 hardcode_libdir_flag_spec_CXX='-L$libdir'
10657 ;;
10658 *)
10659 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10660 hardcode_libdir_separator_CXX=:
10661 export_dynamic_flag_spec_CXX='${wl}-E'
10662 ;;
10663 esac
10664 fi
10665 case "$host_cpu" in
10666 hppa*64*)
10667 hardcode_direct_CXX=no
10668 hardcode_shlibpath_var_CXX=no
10669 ;;
10670 ia64*)
10671 hardcode_direct_CXX=no
10672 hardcode_shlibpath_var_CXX=no
10673 hardcode_minus_L_CXX=yes # Not in the search PATH,
10674 # but as the default
10675 # location of the library.
10676 ;;
10677 *)
10678 hardcode_direct_CXX=yes
10679 hardcode_minus_L_CXX=yes # Not in the search PATH,
10680 # but as the default
10681 # location of the library.
10682 ;;
10683 esac
10684
10685 case $cc_basename in
10686 CC)
10687 # FIXME: insert proper C++ library support
10688 ld_shlibs_CXX=no
10689 ;;
10690 aCC)
10691 case "$host_cpu" in
10692 hppa*64*|ia64*)
10693 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10694 ;;
10695 *)
10696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10697 ;;
10698 esac
10699 # Commands to make compiler produce verbose output that lists
10700 # what "hidden" libraries, object files and flags are used when
10701 # linking a shared library.
10702 #
10703 # There doesn't appear to be a way to prevent this compiler from
10704 # explicitly linking system object files so we need to strip them
10705 # from the output so that they don't get included in the library
10706 # dependencies.
10707 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'
10708 ;;
10709 *)
10710 if test "$GXX" = yes; then
10711 if test $with_gnu_ld = no; then
10712 case "$host_cpu" in
10713 ia64*|hppa*64*)
10714 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10715 ;;
10716 *)
10717 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'
10718 ;;
10719 esac
10720 fi
10721 else
10722 # FIXME: insert proper C++ library support
10723 ld_shlibs_CXX=no
10724 fi
10725 ;;
10726 esac
10727 ;;
10728 irix5* | irix6*)
10729 case $cc_basename in
10730 CC)
10731 # SGI C++
10732 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'
10733
10734 # Archives containing C++ object files must be created using
10735 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10736 # necessary to make sure instantiated templates are included
10737 # in the archive.
10738 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10739 ;;
10740 *)
10741 if test "$GXX" = yes; then
10742 if test "$with_gnu_ld" = no; then
10743 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'
10744 else
10745 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'
10746 fi
10747 fi
10748 link_all_deplibs_CXX=yes
10749 ;;
10750 esac
10751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10752 hardcode_libdir_separator_CXX=:
10753 ;;
10754 linux*)
10755 case $cc_basename in
10756 KCC)
10757 # Kuck and Associates, Inc. (KAI) C++ Compiler
10758
10759 # KCC will only create a shared library if the output file
10760 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10761 # to its proper name (with version) after linking.
10762 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'
10763 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'
10764 # Commands to make compiler produce verbose output that lists
10765 # what "hidden" libraries, object files and flags are used when
10766 # linking a shared library.
10767 #
10768 # There doesn't appear to be a way to prevent this compiler from
10769 # explicitly linking system object files so we need to strip them
10770 # from the output so that they don't get included in the library
10771 # dependencies.
10772 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'
10773
10774 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10776
10777 # Archives containing C++ object files must be created using
10778 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10779 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10780 ;;
10781 icpc)
10782 # Intel C++
10783 with_gnu_ld=yes
10784 archive_cmds_need_lc_CXX=no
10785 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10786 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'
10787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10789 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10790 ;;
10791 cxx)
10792 # Compaq C++
10793 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10794 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'
10795
10796 runpath_var=LD_RUN_PATH
10797 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10798 hardcode_libdir_separator_CXX=:
10799
10800 # Commands to make compiler produce verbose output that lists
10801 # what "hidden" libraries, object files and flags are used when
10802 # linking a shared library.
10803 #
10804 # There doesn't appear to be a way to prevent this compiler from
10805 # explicitly linking system object files so we need to strip them
10806 # from the output so that they don't get included in the library
10807 # dependencies.
10808 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'
10809 ;;
10810 esac
10811 ;;
10812 lynxos*)
10813 # FIXME: insert proper C++ library support
10814 ld_shlibs_CXX=no
10815 ;;
10816 m88k*)
10817 # FIXME: insert proper C++ library support
10818 ld_shlibs_CXX=no
10819 ;;
10820 mvs*)
10821 case $cc_basename in
10822 cxx)
10823 # FIXME: insert proper C++ library support
10824 ld_shlibs_CXX=no
10825 ;;
10826 *)
10827 # FIXME: insert proper C++ library support
10828 ld_shlibs_CXX=no
10829 ;;
10830 esac
10831 ;;
10832 netbsd*)
10833 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10834 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10835 wlarc=
10836 hardcode_libdir_flag_spec_CXX='-R$libdir'
10837 hardcode_direct_CXX=yes
10838 hardcode_shlibpath_var_CXX=no
10839 fi
10840 # Workaround some broken pre-1.5 toolchains
10841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10842 ;;
10843 osf3*)
10844 case $cc_basename in
10845 KCC)
10846 # Kuck and Associates, Inc. (KAI) C++ Compiler
10847
10848 # KCC will only create a shared library if the output file
10849 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10850 # to its proper name (with version) after linking.
10851 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'
10852
10853 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10854 hardcode_libdir_separator_CXX=:
10855
10856 # Archives containing C++ object files must be created using
10857 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10858 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10859
10860 ;;
10861 RCC)
10862 # Rational C++ 2.4.1
10863 # FIXME: insert proper C++ library support
10864 ld_shlibs_CXX=no
10865 ;;
10866 cxx)
10867 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10868 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'
10869
10870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10871 hardcode_libdir_separator_CXX=:
10872
10873 # Commands to make compiler produce verbose output that lists
10874 # what "hidden" libraries, object files and flags are used when
10875 # linking a shared library.
10876 #
10877 # There doesn't appear to be a way to prevent this compiler from
10878 # explicitly linking system object files so we need to strip them
10879 # from the output so that they don't get included in the library
10880 # dependencies.
10881 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'
10882 ;;
10883 *)
10884 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10885 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10886 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'
10887
10888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10889 hardcode_libdir_separator_CXX=:
10890
10891 # Commands to make compiler produce verbose output that lists
10892 # what "hidden" libraries, object files and flags are used when
10893 # linking a shared library.
10894 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10895
10896 else
10897 # FIXME: insert proper C++ library support
10898 ld_shlibs_CXX=no
10899 fi
10900 ;;
10901 esac
10902 ;;
10903 osf4* | osf5*)
10904 case $cc_basename in
10905 KCC)
10906 # Kuck and Associates, Inc. (KAI) C++ Compiler
10907
10908 # KCC will only create a shared library if the output file
10909 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10910 # to its proper name (with version) after linking.
10911 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'
10912
10913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10914 hardcode_libdir_separator_CXX=:
10915
10916 # Archives containing C++ object files must be created using
10917 # the KAI C++ compiler.
10918 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10919 ;;
10920 RCC)
10921 # Rational C++ 2.4.1
10922 # FIXME: insert proper C++ library support
10923 ld_shlibs_CXX=no
10924 ;;
10925 cxx)
10926 allow_undefined_flag_CXX=' -expect_unresolved \*'
10927 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'
10928 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_}
10929 echo "-hidden">> $lib.exp${_S_}
10930 $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${_S_}
10931 $rm $lib.exp'
10932
10933 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10934 hardcode_libdir_separator_CXX=:
10935
10936 # Commands to make compiler produce verbose output that lists
10937 # what "hidden" libraries, object files and flags are used when
10938 # linking a shared library.
10939 #
10940 # There doesn't appear to be a way to prevent this compiler from
10941 # explicitly linking system object files so we need to strip them
10942 # from the output so that they don't get included in the library
10943 # dependencies.
10944 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'
10945 ;;
10946 *)
10947 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10948 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10949 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'
10950
10951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10952 hardcode_libdir_separator_CXX=:
10953
10954 # Commands to make compiler produce verbose output that lists
10955 # what "hidden" libraries, object files and flags are used when
10956 # linking a shared library.
10957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10958
10959 else
10960 # FIXME: insert proper C++ library support
10961 ld_shlibs_CXX=no
10962 fi
10963 ;;
10964 esac
10965 ;;
10966 psos*)
10967 # FIXME: insert proper C++ library support
10968 ld_shlibs_CXX=no
10969 ;;
10970 sco*)
10971 archive_cmds_need_lc_CXX=no
10972 case $cc_basename in
10973 CC)
10974 # FIXME: insert proper C++ library support
10975 ld_shlibs_CXX=no
10976 ;;
10977 *)
10978 # FIXME: insert proper C++ library support
10979 ld_shlibs_CXX=no
10980 ;;
10981 esac
10982 ;;
10983 sunos4*)
10984 case $cc_basename in
10985 CC)
10986 # Sun C++ 4.x
10987 # FIXME: insert proper C++ library support
10988 ld_shlibs_CXX=no
10989 ;;
10990 lcc)
10991 # Lucid
10992 # FIXME: insert proper C++ library support
10993 ld_shlibs_CXX=no
10994 ;;
10995 *)
10996 # FIXME: insert proper C++ library support
10997 ld_shlibs_CXX=no
10998 ;;
10999 esac
11000 ;;
11001 solaris*)
11002 case $cc_basename in
11003 CC)
11004 # Sun C++ 4.2, 5.x and Centerline C++
11005 no_undefined_flag_CXX=' -zdefs'
11006 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11007 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
11008 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
11009
11010 hardcode_libdir_flag_spec_CXX='-R$libdir'
11011 hardcode_shlibpath_var_CXX=no
11012 case $host_os in
11013 solaris2.0-5 | solaris2.0-5.*) ;;
11014 *)
11015 # The C++ compiler is used as linker so we must use $wl
11016 # flag to pass the commands to the underlying system
11017 # linker.
11018 # Supported since Solaris 2.6 (maybe 2.5.1?)
11019 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11020 ;;
11021 esac
11022 link_all_deplibs_CXX=yes
11023
11024 # Commands to make compiler produce verbose output that lists
11025 # what "hidden" libraries, object files and flags are used when
11026 # linking a shared library.
11027 #
11028 # There doesn't appear to be a way to prevent this compiler from
11029 # explicitly linking system object files so we need to strip them
11030 # from the output so that they don't get included in the library
11031 # dependencies.
11032 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'
11033
11034 # Archives containing C++ object files must be created using
11035 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11036 # necessary to make sure instantiated templates are included
11037 # in the archive.
11038 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11039 ;;
11040 gcx)
11041 # Green Hills C++ Compiler
11042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11043
11044 # The C++ compiler must be used to create the archive.
11045 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11046 ;;
11047 *)
11048 # GNU C++ compiler with Solaris linker
11049 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11050 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11051 if $CC --version | grep -v '^2\.7' > /dev/null; then
11052 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11053 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
11054 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
11055
11056 # Commands to make compiler produce verbose output that lists
11057 # what "hidden" libraries, object files and flags are used when
11058 # linking a shared library.
11059 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11060 else
11061 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11062 # platform.
11063 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11064 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
11065 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
11066
11067 # Commands to make compiler produce verbose output that lists
11068 # what "hidden" libraries, object files and flags are used when
11069 # linking a shared library.
11070 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11071 fi
11072
11073 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11074 fi
11075 ;;
11076 esac
11077 ;;
11078 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11079 archive_cmds_need_lc_CXX=no
11080 ;;
11081 tandem*)
11082 case $cc_basename in
11083 NCC)
11084 # NonStop-UX NCC 3.20
11085 # FIXME: insert proper C++ library support
11086 ld_shlibs_CXX=no
11087 ;;
11088 *)
11089 # FIXME: insert proper C++ library support
11090 ld_shlibs_CXX=no
11091 ;;
11092 esac
11093 ;;
11094 vxworks*)
11095 # FIXME: insert proper C++ library support
11096 ld_shlibs_CXX=no
11097 ;;
11098 *)
11099 # FIXME: insert proper C++ library support
11100 ld_shlibs_CXX=no
11101 ;;
11102 esac
11103 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11104 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11105 test "$ld_shlibs_CXX" = no && can_build_shared=no
11106
11107 GCC_CXX="$GXX"
11108 LD_CXX="$LD"
11109
11110
11111 cat > conftest.$ac_ext <<EOF
11112 class Foo
11113 {
11114 public:
11115 Foo (void) { a = 0; }
11116 private:
11117 int a;
11118 };
11119 EOF
11120
11121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11122 (eval $ac_compile) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; then
11126 # Parse the compiler output and extract the necessary
11127 # objects, libraries and library flags.
11128
11129 # Sentinel used to keep track of whether or not we are before
11130 # the conftest object file.
11131 pre_test_object_deps_done=no
11132
11133 # The `*' in the case matches for architectures that use `case' in
11134 # $output_verbose_cmd can trigger glob expansion during the loop
11135 # eval without this substitution.
11136 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11137
11138 for p in `eval $output_verbose_link_cmd`; do
11139 case $p in
11140
11141 -L* | -R* | -l*)
11142 # Some compilers place space between "-{L,R}" and the path.
11143 # Remove the space.
11144 if test $p = "-L" \
11145 || test $p = "-R"; then
11146 prev=$p
11147 continue
11148 else
11149 prev=
11150 fi
11151
11152 if test "$pre_test_object_deps_done" = no; then
11153 case $p in
11154 -L* | -R*)
11155 # Internal compiler library paths should come after those
11156 # provided the user. The postdeps already come after the
11157 # user supplied libs so there is no need to process them.
11158 if test -z "$compiler_lib_search_path_CXX"; then
11159 compiler_lib_search_path_CXX="${prev}${p}"
11160 else
11161 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11162 fi
11163 ;;
11164 # The "-l" case would never come before the object being
11165 # linked, so don't bother handling this case.
11166 esac
11167 else
11168 if test -z "$postdeps_CXX"; then
11169 postdeps_CXX="${prev}${p}"
11170 else
11171 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11172 fi
11173 fi
11174 ;;
11175
11176 *.$objext)
11177 # This assumes that the test object file only shows up
11178 # once in the compiler output.
11179 if test "$p" = "conftest.$objext"; then
11180 pre_test_object_deps_done=yes
11181 continue
11182 fi
11183
11184 if test "$pre_test_object_deps_done" = no; then
11185 if test -z "$predep_objects_CXX"; then
11186 predep_objects_CXX="$p"
11187 else
11188 predep_objects_CXX="$predep_objects_CXX $p"
11189 fi
11190 else
11191 if test -z "$postdep_objects_CXX"; then
11192 postdep_objects_CXX="$p"
11193 else
11194 postdep_objects_CXX="$postdep_objects_CXX $p"
11195 fi
11196 fi
11197 ;;
11198
11199 *) ;; # Ignore the rest.
11200
11201 esac
11202 done
11203
11204 # Clean up.
11205 rm -f a.out a.exe
11206 else
11207 echo "libtool.m4: error: problem compiling CXX test program"
11208 fi
11209
11210 $rm -f confest.$objext
11211
11212 case " $postdeps_CXX " in
11213 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11214 esac
11215
11216 lt_prog_compiler_wl_CXX=
11217 lt_prog_compiler_pic_CXX=
11218 lt_prog_compiler_static_CXX=
11219
11220 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11222
11223 # C++ specific cases for pic, static, wl, etc.
11224 if test "$GXX" = yes; then
11225 lt_prog_compiler_wl_CXX='-Wl,'
11226 lt_prog_compiler_static_CXX='-static'
11227
11228 case $host_os in
11229 aix*)
11230 # All AIX code is PIC.
11231 if test "$host_cpu" = ia64; then
11232 # AIX 5 now supports IA64 processor
11233 lt_prog_compiler_static_CXX='-Bstatic'
11234 fi
11235 ;;
11236 amigaos*)
11237 # FIXME: we need at least 68020 code to build shared libraries, but
11238 # adding the `-m68020' flag to GCC prevents building anything better,
11239 # like `-m68040'.
11240 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11241 ;;
11242 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11243 # PIC is the default for these OSes.
11244 ;;
11245 mingw* | os2* | pw32*)
11246 # This hack is so that the source file can tell whether it is being
11247 # built for inclusion in a dll (and should export symbols for example).
11248 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11249 ;;
11250 darwin* | rhapsody*)
11251 # PIC is the default on this platform
11252 # Common symbols not allowed in MH_DYLIB files
11253 lt_prog_compiler_pic_CXX='-fno-common'
11254 ;;
11255 *djgpp*)
11256 # DJGPP does not support shared libraries at all
11257 lt_prog_compiler_pic_CXX=
11258 ;;
11259 sysv4*MP*)
11260 if test -d /usr/nec; then
11261 lt_prog_compiler_pic_CXX=-Kconform_pic
11262 fi
11263 ;;
11264 hpux*)
11265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11266 # not for PA HP-UX.
11267 case "$host_cpu" in
11268 hppa*64*|ia64*)
11269 ;;
11270 *)
11271 lt_prog_compiler_pic_CXX='-fPIC'
11272 ;;
11273 esac
11274 ;;
11275 *)
11276 lt_prog_compiler_pic_CXX='-fPIC'
11277 ;;
11278 esac
11279 else
11280 case $host_os in
11281 aix4* | aix5*)
11282 # All AIX code is PIC.
11283 if test "$host_cpu" = ia64; then
11284 # AIX 5 now supports IA64 processor
11285 lt_prog_compiler_static_CXX='-Bstatic'
11286 else
11287 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11288 fi
11289 ;;
11290 chorus*)
11291 case $cc_basename in
11292 cxch68)
11293 # Green Hills C++ Compiler
11294 # _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"
11295 ;;
11296 esac
11297 ;;
11298 dgux*)
11299 case $cc_basename in
11300 ec++)
11301 lt_prog_compiler_pic_CXX='-KPIC'
11302 ;;
11303 ghcx)
11304 # Green Hills C++ Compiler
11305 lt_prog_compiler_pic_CXX='-pic'
11306 ;;
11307 *)
11308 ;;
11309 esac
11310 ;;
11311 freebsd*)
11312 # FreeBSD uses GNU C++
11313 ;;
11314 hpux9* | hpux10* | hpux11*)
11315 case $cc_basename in
11316 CC)
11317 lt_prog_compiler_wl_CXX='-Wl,'
11318 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11319 if test "$host_cpu" != ia64; then
11320 lt_prog_compiler_pic_CXX='+Z'
11321 fi
11322 ;;
11323 aCC)
11324 lt_prog_compiler_wl_CXX='-Wl,'
11325 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11326 case "$host_cpu" in
11327 hppa*64*|ia64*)
11328 # +Z the default
11329 ;;
11330 *)
11331 lt_prog_compiler_pic_CXX='+Z'
11332 ;;
11333 esac
11334 ;;
11335 *)
11336 ;;
11337 esac
11338 ;;
11339 irix5* | irix6* | nonstopux*)
11340 case $cc_basename in
11341 CC)
11342 lt_prog_compiler_wl_CXX='-Wl,'
11343 lt_prog_compiler_static_CXX='-non_shared'
11344 # CC pic flag -KPIC is the default.
11345 ;;
11346 *)
11347 ;;
11348 esac
11349 ;;
11350 linux*)
11351 case $cc_basename in
11352 KCC)
11353 # KAI C++ Compiler
11354 lt_prog_compiler_wl_CXX='--backend -Wl,'
11355 lt_prog_compiler_pic_CXX='-fPIC'
11356 ;;
11357 icpc)
11358 # Intel C++
11359 lt_prog_compiler_wl_CXX='-Wl,'
11360 lt_prog_compiler_pic_CXX='-KPIC'
11361 lt_prog_compiler_static_CXX='-static'
11362 ;;
11363 cxx)
11364 # Compaq C++
11365 # Make sure the PIC flag is empty. It appears that all Alpha
11366 # Linux and Compaq Tru64 Unix objects are PIC.
11367 lt_prog_compiler_pic_CXX=
11368 lt_prog_compiler_static_CXX='-non_shared'
11369 ;;
11370 *)
11371 ;;
11372 esac
11373 ;;
11374 lynxos*)
11375 ;;
11376 m88k*)
11377 ;;
11378 mvs*)
11379 case $cc_basename in
11380 cxx)
11381 lt_prog_compiler_pic_CXX='-W c,exportall'
11382 ;;
11383 *)
11384 ;;
11385 esac
11386 ;;
11387 netbsd*)
11388 ;;
11389 osf3* | osf4* | osf5*)
11390 case $cc_basename in
11391 KCC)
11392 lt_prog_compiler_wl_CXX='--backend -Wl,'
11393 ;;
11394 RCC)
11395 # Rational C++ 2.4.1
11396 lt_prog_compiler_pic_CXX='-pic'
11397 ;;
11398 cxx)
11399 # Digital/Compaq C++
11400 lt_prog_compiler_wl_CXX='-Wl,'
11401 # Make sure the PIC flag is empty. It appears that all Alpha
11402 # Linux and Compaq Tru64 Unix objects are PIC.
11403 lt_prog_compiler_pic_CXX=
11404 lt_prog_compiler_static_CXX='-non_shared'
11405 ;;
11406 *)
11407 ;;
11408 esac
11409 ;;
11410 psos*)
11411 ;;
11412 sco*)
11413 case $cc_basename in
11414 CC)
11415 lt_prog_compiler_pic_CXX='-fPIC'
11416 ;;
11417 *)
11418 ;;
11419 esac
11420 ;;
11421 solaris*)
11422 case $cc_basename in
11423 CC)
11424 # Sun C++ 4.2, 5.x and Centerline C++
11425 lt_prog_compiler_pic_CXX='-KPIC'
11426 lt_prog_compiler_static_CXX='-Bstatic'
11427 lt_prog_compiler_wl_CXX='-Qoption ld '
11428 ;;
11429 gcx)
11430 # Green Hills C++ Compiler
11431 lt_prog_compiler_pic_CXX='-PIC'
11432 ;;
11433 *)
11434 ;;
11435 esac
11436 ;;
11437 sunos4*)
11438 case $cc_basename in
11439 CC)
11440 # Sun C++ 4.x
11441 lt_prog_compiler_pic_CXX='-pic'
11442 lt_prog_compiler_static_CXX='-Bstatic'
11443 ;;
11444 lcc)
11445 # Lucid
11446 lt_prog_compiler_pic_CXX='-pic'
11447 ;;
11448 *)
11449 ;;
11450 esac
11451 ;;
11452 tandem*)
11453 case $cc_basename in
11454 NCC)
11455 # NonStop-UX NCC 3.20
11456 lt_prog_compiler_pic_CXX='-KPIC'
11457 ;;
11458 *)
11459 ;;
11460 esac
11461 ;;
11462 unixware*)
11463 ;;
11464 vxworks*)
11465 ;;
11466 *)
11467 lt_prog_compiler_can_build_shared_CXX=no
11468 ;;
11469 esac
11470 fi
11471
11472 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11473 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11474
11475 #
11476 # Check to make sure the PIC flag actually works.
11477 #
11478 if test -n "$lt_prog_compiler_pic_CXX"; then
11479 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11480 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11481 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484 lt_prog_compiler_pic_works_CXX=no
11485 ac_outfile=conftest.$ac_objext
11486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11487 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11488 # Insert the option either (1) after the last *FLAGS variable, or
11489 # (2) before a word containing "conftest.", or (3) at the end.
11490 # Note that $ac_compile itself does not contain backslashes and begins
11491 # with a dollar sign (not a hyphen), so the echo should work correctly.
11492 # The option is referenced via a variable to avoid confusing sed.
11493 lt_compile=`echo "$ac_compile" | $SED \
11494 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11496 -e 's:$: $lt_compiler_flag:'`
11497 (eval echo "\"\$as_me:11497: $lt_compile\"" >&5)
11498 (eval "$lt_compile" 2>conftest.err)
11499 ac_status=$?
11500 cat conftest.err >&5
11501 echo "$as_me:11501: \$? = $ac_status" >&5
11502 if (exit $ac_status) && test -s "$ac_outfile"; then
11503 # The compiler can only warn and ignore the option if not recognized
11504 # So say no if there are warnings
11505 if test ! -s conftest.err; then
11506 lt_prog_compiler_pic_works_CXX=yes
11507 fi
11508 fi
11509 $rm conftest*
11510
11511 fi
11512 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11513 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11514
11515 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11516 case $lt_prog_compiler_pic_CXX in
11517 "" | " "*) ;;
11518 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11519 esac
11520 else
11521 lt_prog_compiler_pic_CXX=
11522 lt_prog_compiler_can_build_shared_CXX=no
11523 fi
11524
11525 fi
11526 case "$host_os" in
11527 # For platforms which do not support PIC, -DPIC is meaningless:
11528 *djgpp*)
11529 lt_prog_compiler_pic_CXX=
11530 ;;
11531 *)
11532 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11533 ;;
11534 esac
11535
11536 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11537 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11538 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541 lt_cv_prog_compiler_c_o_CXX=no
11542 $rm -r conftest 2>/dev/null
11543 mkdir conftest
11544 cd conftest
11545 mkdir out
11546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11547
11548 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11549 # that will create temporary files in the current directory regardless of
11550 # the output directory. Thus, making CWD read-only will cause this test
11551 # to fail, enabling locking or at least warning the user not to do parallel
11552 # builds.
11553 chmod -w .
11554
11555 lt_compiler_flag="-o out/conftest2.$ac_objext"
11556 # Insert the option either (1) after the last *FLAGS variable, or
11557 # (2) before a word containing "conftest.", or (3) at the end.
11558 # Note that $ac_compile itself does not contain backslashes and begins
11559 # with a dollar sign (not a hyphen), so the echo should work correctly.
11560 lt_compile=`echo "$ac_compile" | $SED \
11561 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11563 -e 's:$: $lt_compiler_flag:'`
11564 (eval echo "\"\$as_me:11564: $lt_compile\"" >&5)
11565 (eval "$lt_compile" 2>out/conftest.err)
11566 ac_status=$?
11567 cat out/conftest.err >&5
11568 echo "$as_me:11568: \$? = $ac_status" >&5
11569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11570 then
11571 # The compiler can only warn and ignore the option if not recognized
11572 # So say no if there are warnings
11573 if test ! -s out/conftest.err; then
11574 lt_cv_prog_compiler_c_o_CXX=yes
11575 fi
11576 fi
11577 chmod u+w .
11578 $rm conftest* out/*
11579 rmdir out
11580 cd ..
11581 rmdir conftest
11582 $rm conftest*
11583
11584 fi
11585 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11587
11588
11589 hard_links="nottested"
11590 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11591 # do not overwrite the value of need_locks provided by the user
11592 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11594 hard_links=yes
11595 $rm conftest*
11596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11597 touch conftest.a
11598 ln conftest.a conftest.b 2>&5 || hard_links=no
11599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11600 echo "$as_me:$LINENO: result: $hard_links" >&5
11601 echo "${ECHO_T}$hard_links" >&6
11602 if test "$hard_links" = no; then
11603 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11605 need_locks=warn
11606 fi
11607 else
11608 need_locks=no
11609 fi
11610
11611 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11613
11614 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11615 case $host_os in
11616 aix4* | aix5*)
11617 # If we're using GNU nm, then we don't want the "-C" option.
11618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11620 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'
11621 else
11622 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'
11623 fi
11624 ;;
11625 pw32*)
11626 export_symbols_cmds_CXX="$ltdll_cmds"
11627 ;;
11628 cygwin* | mingw*)
11629 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11630 ;;
11631 *)
11632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11633 ;;
11634 esac
11635
11636 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11637 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11638 test "$ld_shlibs_CXX" = no && can_build_shared=no
11639
11640 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11641 if test "$GCC" = yes; then
11642 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11643 fi
11644
11645 #
11646 # Do we need to explicitly link libc?
11647 #
11648 case "x$archive_cmds_need_lc_CXX" in
11649 x|xyes)
11650 # Assume -lc should be added
11651 archive_cmds_need_lc_CXX=yes
11652
11653 if test "$enable_shared" = yes && test "$GCC" = yes; then
11654 case $archive_cmds_CXX in
11655 *"$_S_"*)
11656 # FIXME: we may have to deal with multi-command sequences.
11657 ;;
11658 '$CC '*)
11659 # Test whether the compiler implicitly links with -lc since on some
11660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11661 # to ld, don't add -lc before -lgcc.
11662 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11663 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11664 $rm conftest*
11665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11666
11667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11668 (eval $ac_compile) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } 2>conftest.err; then
11672 soname=conftest
11673 lib=conftest
11674 libobjs=conftest.$ac_objext
11675 deplibs=
11676 wl=$lt_prog_compiler_wl_CXX
11677 compiler_flags=-v
11678 linker_flags=-v
11679 verstring=
11680 output_objdir=.
11681 libname=conftest
11682 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11683 allow_undefined_flag_CXX=
11684 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11685 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }
11689 then
11690 archive_cmds_need_lc_CXX=no
11691 else
11692 archive_cmds_need_lc_CXX=yes
11693 fi
11694 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11695 else
11696 cat conftest.err 1>&5
11697 fi
11698 $rm conftest*
11699 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11700 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11701 ;;
11702 esac
11703 fi
11704 ;;
11705 esac
11706
11707 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11708 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11709 hardcode_action_CXX=
11710 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11711 test -n "$runpath_var CXX" || \
11712 test "X$hardcode_automatic_CXX"="Xyes" ; then
11713
11714 # We can hardcode non-existant directories.
11715 if test "$hardcode_direct_CXX" != no &&
11716 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11717 # have to relink, otherwise we might link with an installed library
11718 # when we should be linking with a yet-to-be-installed one
11719 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11720 test "$hardcode_minus_L_CXX" != no; then
11721 # Linking always hardcodes the temporary library directory.
11722 hardcode_action_CXX=relink
11723 else
11724 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11725 hardcode_action_CXX=immediate
11726 fi
11727 else
11728 # We cannot hardcode anything, or else we can only hardcode existing
11729 # directories.
11730 hardcode_action_CXX=unsupported
11731 fi
11732 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11733 echo "${ECHO_T}$hardcode_action_CXX" >&6
11734
11735 if test "$hardcode_action_CXX" = relink; then
11736 # Fast installation is not supported
11737 enable_fast_install=no
11738 elif test "$shlibpath_overrides_runpath" = yes ||
11739 test "$enable_shared" = no; then
11740 # Fast installation is not necessary
11741 enable_fast_install=needless
11742 fi
11743
11744 striplib=
11745 old_striplib=
11746 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11747 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11748 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11749 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11750 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11751 echo "$as_me:$LINENO: result: yes" >&5
11752 echo "${ECHO_T}yes" >&6
11753 else
11754 # FIXME - insert some real tests, host_os isn't really good enough
11755 case $host_os in
11756 NOT-darwin*)
11757 if test -n "$STRIP" ; then
11758 striplib="$STRIP -x"
11759 echo "$as_me:$LINENO: result: yes" >&5
11760 echo "${ECHO_T}yes" >&6
11761 else
11762 echo "$as_me:$LINENO: result: no" >&5
11763 echo "${ECHO_T}no" >&6
11764 fi
11765 ;;
11766 *)
11767 echo "$as_me:$LINENO: result: no" >&5
11768 echo "${ECHO_T}no" >&6
11769 ;;
11770 esac
11771 fi
11772
11773 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11775 library_names_spec=
11776 libname_spec='lib$name'
11777 soname_spec=
11778 shrext=".so"
11779 postinstall_cmds=
11780 postuninstall_cmds=
11781 finish_cmds=
11782 finish_eval=
11783 shlibpath_var=
11784 shlibpath_overrides_runpath=unknown
11785 version_type=none
11786 dynamic_linker="$host_os ld.so"
11787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11788 if test "$GCC" = yes; then
11789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11790 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11791 # if the path contains ";" then we assume it to be the separator
11792 # otherwise default to the standard path separator (i.e. ":") - it is
11793 # assumed that no part of a normal pathname contains ";" but that should
11794 # okay in the real world where ";" in dirpaths is itself problematic.
11795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11796 else
11797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11798 fi
11799 else
11800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11801 fi
11802 need_lib_prefix=unknown
11803 hardcode_into_libs=no
11804
11805 # when you set need_version to no, make sure it does not cause -set_version
11806 # flags to be left without arguments
11807 need_version=unknown
11808
11809 case $host_os in
11810 aix3*)
11811 version_type=linux
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11813 shlibpath_var=LIBPATH
11814
11815 # AIX 3 has no versioning support, so we append a major version to the name.
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 ;;
11818
11819 aix4* | aix5*)
11820 version_type=linux
11821 need_lib_prefix=no
11822 need_version=no
11823 hardcode_into_libs=yes
11824 if test "$host_cpu" = ia64; then
11825 # AIX 5 supports IA64
11826 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 else
11829 # With GCC up to 2.95.x, collect2 would create an import file
11830 # for dependence libraries. The import file would start with
11831 # the line `#! .'. This would cause the generated library to
11832 # depend on `.', always an invalid library. This was fixed in
11833 # development snapshots of GCC prior to 3.0.
11834 case $host_os in
11835 aix4 | aix4.[01] | aix4.[01].*)
11836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11837 echo ' yes '
11838 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11839 :
11840 else
11841 can_build_shared=no
11842 fi
11843 ;;
11844 esac
11845 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11846 # soname into executable. Probably we can add versioning support to
11847 # collect2, so additional links can be useful in future.
11848 if test "$aix_use_runtimelinking" = yes; then
11849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11850 # instead of lib<name>.a to let people know that these are not
11851 # typical AIX shared libraries.
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 else
11854 # We preserve .a as extension for shared libraries through AIX4.2
11855 # and later when we are not doing run time linking.
11856 library_names_spec='${libname}${release}.a $libname.a'
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 fi
11859 shlibpath_var=LIBPATH
11860 fi
11861 ;;
11862
11863 amigaos*)
11864 library_names_spec='$libname.ixlibrary $libname.a'
11865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11866 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'
11867 ;;
11868
11869 beos*)
11870 library_names_spec='${libname}${shared_ext}'
11871 dynamic_linker="$host_os ld.so"
11872 shlibpath_var=LIBRARY_PATH
11873 ;;
11874
11875 bsdi4*)
11876 version_type=linux
11877 need_version=no
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879 soname_spec='${libname}${release}${shared_ext}$major'
11880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11884 # the default ld.so.conf also contains /usr/contrib/lib and
11885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11886 # libtool to hard-code these into programs
11887 ;;
11888
11889 cygwin* | mingw* | pw32*)
11890 version_type=windows
11891 shrext=".dll"
11892 need_version=no
11893 need_lib_prefix=no
11894
11895 case $GCC,$host_os in
11896 yes,cygwin* | yes,mingw* | yes,pw32*)
11897 library_names_spec='$libname.dll.a'
11898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11899 postinstall_cmds='base_file=`basename \${file}`${_S_}
11900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
11901 dldir=$destdir/`dirname \$dlpath`${_S_}
11902 test -d \$dldir || mkdir -p \$dldir${_S_}
11903 $install_prog $dir/$dlname \$dldir/$dlname'
11904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
11905 dlpath=$dir/\$dldll${_S_}
11906 $rm \$dlpath'
11907 shlibpath_overrides_runpath=yes
11908
11909 case $host_os in
11910 cygwin*)
11911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11913 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11914 ;;
11915 mingw*)
11916 # MinGW DLLs use traditional 'lib' prefix
11917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11919 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11920 # It is most probably a Windows format PATH printed by
11921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11922 # path with ; separators, and with drive letters. We can handle the
11923 # drive letters (cygwin fileutils understands them), so leave them,
11924 # especially as we might pass files found there to a mingw objdump,
11925 # which wouldn't understand a cygwinified path. Ahh.
11926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11927 else
11928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11929 fi
11930 ;;
11931 pw32*)
11932 # pw32 DLLs use 'pw' prefix rather than 'lib'
11933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11934 ;;
11935 esac
11936 ;;
11937
11938 *)
11939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11940 ;;
11941 esac
11942 dynamic_linker='Win32 ld.exe'
11943 # FIXME: first we should search . and the directory the executable is in
11944 shlibpath_var=PATH
11945 ;;
11946
11947 darwin* | rhapsody*)
11948 dynamic_linker="$host_os dyld"
11949 version_type=darwin
11950 need_lib_prefix=no
11951 need_version=no
11952 # FIXME: Relying on posixy $() will cause problems for
11953 # cross-compilation, but unfortunately the echo tests do not
11954 # yet detect zsh echo's removal of \ escapes.
11955 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
11956 soname_spec='${libname}${release}${major}$shared_ext'
11957 shlibpath_overrides_runpath=yes
11958 shlibpath_var=DYLD_LIBRARY_PATH
11959 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11960 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11961 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11962 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"`
11963 fi
11964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11965 ;;
11966
11967 dgux*)
11968 version_type=linux
11969 need_lib_prefix=no
11970 need_version=no
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11974 ;;
11975
11976 freebsd1*)
11977 dynamic_linker=no
11978 ;;
11979
11980 freebsd*)
11981 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11982 version_type=freebsd-$objformat
11983 case $version_type in
11984 freebsd-elf*)
11985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11986 need_version=no
11987 need_lib_prefix=no
11988 ;;
11989 freebsd-*)
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11991 need_version=yes
11992 ;;
11993 esac
11994 shlibpath_var=LD_LIBRARY_PATH
11995 case $host_os in
11996 freebsd2*)
11997 shlibpath_overrides_runpath=yes
11998 ;;
11999 freebsd3.01* | freebsdelf3.01*)
12000 shlibpath_overrides_runpath=yes
12001 hardcode_into_libs=yes
12002 ;;
12003 *) # from 3.2 on
12004 shlibpath_overrides_runpath=no
12005 hardcode_into_libs=yes
12006 ;;
12007 esac
12008 ;;
12009
12010 gnu*)
12011 version_type=linux
12012 need_lib_prefix=no
12013 need_version=no
12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12015 soname_spec='${libname}${release}${shared_ext}$major'
12016 shlibpath_var=LD_LIBRARY_PATH
12017 hardcode_into_libs=yes
12018 ;;
12019
12020 hpux9* | hpux10* | hpux11*)
12021 # Give a soname corresponding to the major version so that dld.sl refuses to
12022 # link against other versions.
12023 version_type=sunos
12024 need_lib_prefix=no
12025 need_version=no
12026 case "$host_cpu" in
12027 ia64*)
12028 shrext='.so'
12029 hardcode_into_libs=yes
12030 dynamic_linker="$host_os dld.so"
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034 soname_spec='${libname}${release}${shared_ext}$major'
12035 if test "X$HPUX_IA64_MODE" = X32; then
12036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12037 else
12038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12039 fi
12040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12041 ;;
12042 hppa*64*)
12043 shrext='.sl'
12044 hardcode_into_libs=yes
12045 dynamic_linker="$host_os dld.sl"
12046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049 soname_spec='${libname}${release}${shared_ext}$major'
12050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12052 ;;
12053 *)
12054 shrext='.sl'
12055 dynamic_linker="$host_os dld.sl"
12056 shlibpath_var=SHLIB_PATH
12057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059 soname_spec='${libname}${release}${shared_ext}$major'
12060 ;;
12061 esac
12062 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12063 postinstall_cmds='chmod 555 $lib'
12064 ;;
12065
12066 irix5* | irix6* | nonstopux*)
12067 case $host_os in
12068 nonstopux*) version_type=nonstopux ;;
12069 *)
12070 if test "$lt_cv_prog_gnu_ld" = yes; then
12071 version_type=linux
12072 else
12073 version_type=irix
12074 fi ;;
12075 esac
12076 need_lib_prefix=no
12077 need_version=no
12078 soname_spec='${libname}${release}${shared_ext}$major'
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12080 case $host_os in
12081 irix5* | nonstopux*)
12082 libsuff= shlibsuff=
12083 ;;
12084 *)
12085 case $LD in # libtool.m4 will add one of these switches to LD
12086 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12087 libsuff= shlibsuff= libmagic=32-bit;;
12088 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12089 libsuff=32 shlibsuff=N32 libmagic=N32;;
12090 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12091 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12092 *) libsuff= shlibsuff= libmagic=never-match;;
12093 esac
12094 ;;
12095 esac
12096 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12097 shlibpath_overrides_runpath=no
12098 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12099 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12100 hardcode_into_libs=yes
12101 ;;
12102
12103 # No shared lib support for Linux oldld, aout, or coff.
12104 linux*oldld* | linux*aout* | linux*coff*)
12105 dynamic_linker=no
12106 ;;
12107
12108 # This must be Linux ELF.
12109 linux*)
12110 version_type=linux
12111 need_lib_prefix=no
12112 need_version=no
12113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114 soname_spec='${libname}${release}${shared_ext}$major'
12115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12116 shlibpath_var=LD_LIBRARY_PATH
12117 shlibpath_overrides_runpath=no
12118 # This implies no fast_install, which is unacceptable.
12119 # Some rework will be needed to allow for fast_install
12120 # before this can be enabled.
12121 hardcode_into_libs=yes
12122
12123 # We used to test for /lib/ld.so.1 and disable shared libraries on
12124 # powerpc, because MkLinux only supported shared libraries with the
12125 # GNU dynamic linker. Since this was broken with cross compilers,
12126 # most powerpc-linux boxes support dynamic linking these days and
12127 # people can always --disable-shared, the test was removed, and we
12128 # assume the GNU/Linux dynamic linker is in use.
12129 dynamic_linker='GNU/Linux ld.so'
12130 ;;
12131
12132 netbsd*)
12133 version_type=sunos
12134 need_lib_prefix=no
12135 need_version=no
12136 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12139 dynamic_linker='NetBSD (a.out) ld.so'
12140 else
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12142 soname_spec='${libname}${release}${shared_ext}$major'
12143 dynamic_linker='NetBSD ld.elf_so'
12144 fi
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=yes
12147 hardcode_into_libs=yes
12148 ;;
12149
12150 newsos6)
12151 version_type=linux
12152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=yes
12155 ;;
12156
12157 nto-qnx)
12158 version_type=linux
12159 need_lib_prefix=no
12160 need_version=no
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162 soname_spec='${libname}${release}${shared_ext}$major'
12163 shlibpath_var=LD_LIBRARY_PATH
12164 shlibpath_overrides_runpath=yes
12165 ;;
12166
12167 openbsd*)
12168 version_type=sunos
12169 need_lib_prefix=no
12170 need_version=no
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12173 shlibpath_var=LD_LIBRARY_PATH
12174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12175 case $host_os in
12176 openbsd2.[89] | openbsd2.[89].*)
12177 shlibpath_overrides_runpath=no
12178 ;;
12179 *)
12180 shlibpath_overrides_runpath=yes
12181 ;;
12182 esac
12183 else
12184 shlibpath_overrides_runpath=yes
12185 fi
12186 ;;
12187
12188 os2*)
12189 libname_spec='$name'
12190 shrext=".dll"
12191 need_lib_prefix=no
12192 library_names_spec='$libname${shared_ext} $libname.a'
12193 dynamic_linker='OS/2 ld.exe'
12194 shlibpath_var=LIBPATH
12195 ;;
12196
12197 osf3* | osf4* | osf5*)
12198 version_type=osf
12199 need_lib_prefix=no
12200 need_version=no
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12203 shlibpath_var=LD_LIBRARY_PATH
12204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12206 ;;
12207
12208 sco3.2v5*)
12209 version_type=osf
12210 soname_spec='${libname}${release}${shared_ext}$major'
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 ;;
12214
12215 solaris*)
12216 version_type=linux
12217 need_lib_prefix=no
12218 need_version=no
12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12220 soname_spec='${libname}${release}${shared_ext}$major'
12221 shlibpath_var=LD_LIBRARY_PATH
12222 shlibpath_overrides_runpath=yes
12223 hardcode_into_libs=yes
12224 # ldd complains unless libraries are executable
12225 postinstall_cmds='chmod +x $lib'
12226 ;;
12227
12228 sunos4*)
12229 version_type=sunos
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=yes
12234 if test "$with_gnu_ld" = yes; then
12235 need_lib_prefix=no
12236 fi
12237 need_version=yes
12238 ;;
12239
12240 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12241 version_type=linux
12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12243 soname_spec='${libname}${release}${shared_ext}$major'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 case $host_vendor in
12246 sni)
12247 shlibpath_overrides_runpath=no
12248 need_lib_prefix=no
12249 export_dynamic_flag_spec='${wl}-Blargedynsym'
12250 runpath_var=LD_RUN_PATH
12251 ;;
12252 siemens)
12253 need_lib_prefix=no
12254 ;;
12255 motorola)
12256 need_lib_prefix=no
12257 need_version=no
12258 shlibpath_overrides_runpath=no
12259 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12260 ;;
12261 esac
12262 ;;
12263
12264 sysv4*MP*)
12265 if test -d /usr/nec ;then
12266 version_type=linux
12267 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12268 soname_spec='$libname${shared_ext}.$major'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 fi
12271 ;;
12272
12273 uts4*)
12274 version_type=linux
12275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12276 soname_spec='${libname}${release}${shared_ext}$major'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 ;;
12279
12280 *)
12281 dynamic_linker=no
12282 ;;
12283 esac
12284 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12285 echo "${ECHO_T}$dynamic_linker" >&6
12286 test "$dynamic_linker" = no && can_build_shared=no
12287
12288 if test "x$enable_dlopen" != xyes; then
12289 enable_dlopen=unknown
12290 enable_dlopen_self=unknown
12291 enable_dlopen_self_static=unknown
12292 else
12293 lt_cv_dlopen=no
12294 lt_cv_dlopen_libs=
12295
12296 case $host_os in
12297 beos*)
12298 lt_cv_dlopen="load_add_on"
12299 lt_cv_dlopen_libs=
12300 lt_cv_dlopen_self=yes
12301 ;;
12302
12303 mingw* | pw32*)
12304 lt_cv_dlopen="LoadLibrary"
12305 lt_cv_dlopen_libs=
12306 ;;
12307
12308 cygwin*)
12309 lt_cv_dlopen="dlopen"
12310 lt_cv_dlopen_libs=
12311 ;;
12312
12313 darwin*)
12314 # if libdl is installed we need to link against it
12315 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12316 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12317 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320 ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-ldl $LIBS"
12322 cat >conftest.$ac_ext <<_ACEOF
12323 #line $LINENO "configure"
12324 /* confdefs.h. */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329
12330 /* Override any gcc2 internal prototype to avoid an error. */
12331 #ifdef __cplusplus
12332 extern "C"
12333 #endif
12334 /* We use char because int might match the return type of a gcc2
12335 builtin and then its argument prototype would still apply. */
12336 char dlopen ();
12337 int
12338 main ()
12339 {
12340 dlopen ();
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347 (eval $ac_link) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_lib_dl_dlopen=yes
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 ac_cv_lib_dl_dlopen=no
12363 fi
12364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12368 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12369 if test $ac_cv_lib_dl_dlopen = yes; then
12370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12371 else
12372
12373 lt_cv_dlopen="dyld"
12374 lt_cv_dlopen_libs=
12375 lt_cv_dlopen_self=yes
12376
12377 fi
12378
12379 ;;
12380
12381 *)
12382 echo "$as_me:$LINENO: checking for shl_load" >&5
12383 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12384 if test "${ac_cv_func_shl_load+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387 cat >conftest.$ac_ext <<_ACEOF
12388 #line $LINENO "configure"
12389 /* confdefs.h. */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 /* System header to define __stub macros and hopefully few prototypes,
12395 which can conflict with char shl_load (); below.
12396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12397 <limits.h> exists even on freestanding compilers. */
12398 #ifdef __STDC__
12399 # include <limits.h>
12400 #else
12401 # include <assert.h>
12402 #endif
12403 /* Override any gcc2 internal prototype to avoid an error. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 {
12407 #endif
12408 /* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12410 char shl_load ();
12411 /* The GNU C library defines this for functions which it implements
12412 to always fail with ENOSYS. Some functions are actually named
12413 something starting with __ and the normal name is an alias. */
12414 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12415 choke me
12416 #else
12417 char (*f) () = shl_load;
12418 #endif
12419 #ifdef __cplusplus
12420 }
12421 #endif
12422
12423 int
12424 main ()
12425 {
12426 return f != shl_load;
12427 ;
12428 return 0;
12429 }
12430 _ACEOF
12431 rm -f conftest.$ac_objext conftest$ac_exeext
12432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433 (eval $ac_link) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -s conftest$ac_exeext'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 ac_cv_func_shl_load=yes
12444 else
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 ac_cv_func_shl_load=no
12449 fi
12450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12451 fi
12452 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12453 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12454 if test $ac_cv_func_shl_load = yes; then
12455 lt_cv_dlopen="shl_load"
12456 else
12457 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12458 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12459 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-ldld $LIBS"
12464 cat >conftest.$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12466 /* confdefs.h. */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 /* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12478 char shl_load ();
12479 int
12480 main ()
12481 {
12482 shl_load ();
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489 (eval $ac_link) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_lib_dld_shl_load=yes
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504 ac_cv_lib_dld_shl_load=no
12505 fi
12506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12507 LIBS=$ac_check_lib_save_LIBS
12508 fi
12509 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12510 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12511 if test $ac_cv_lib_dld_shl_load = yes; then
12512 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12513 else
12514 echo "$as_me:$LINENO: checking for dlopen" >&5
12515 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12516 if test "${ac_cv_func_dlopen+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 /* System header to define __stub macros and hopefully few prototypes,
12527 which can conflict with char dlopen (); below.
12528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12529 <limits.h> exists even on freestanding compilers. */
12530 #ifdef __STDC__
12531 # include <limits.h>
12532 #else
12533 # include <assert.h>
12534 #endif
12535 /* Override any gcc2 internal prototype to avoid an error. */
12536 #ifdef __cplusplus
12537 extern "C"
12538 {
12539 #endif
12540 /* We use char because int might match the return type of a gcc2
12541 builtin and then its argument prototype would still apply. */
12542 char dlopen ();
12543 /* The GNU C library defines this for functions which it implements
12544 to always fail with ENOSYS. Some functions are actually named
12545 something starting with __ and the normal name is an alias. */
12546 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12547 choke me
12548 #else
12549 char (*f) () = dlopen;
12550 #endif
12551 #ifdef __cplusplus
12552 }
12553 #endif
12554
12555 int
12556 main ()
12557 {
12558 return f != dlopen;
12559 ;
12560 return 0;
12561 }
12562 _ACEOF
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565 (eval $ac_link) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 ac_cv_func_dlopen=yes
12576 else
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580 ac_cv_func_dlopen=no
12581 fi
12582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12583 fi
12584 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12585 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12586 if test $ac_cv_func_dlopen = yes; then
12587 lt_cv_dlopen="dlopen"
12588 else
12589 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12590 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 ac_check_lib_save_LIBS=$LIBS
12595 LIBS="-ldl $LIBS"
12596 cat >conftest.$ac_ext <<_ACEOF
12597 #line $LINENO "configure"
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603
12604 /* Override any gcc2 internal prototype to avoid an error. */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 /* We use char because int might match the return type of a gcc2
12609 builtin and then its argument prototype would still apply. */
12610 char dlopen ();
12611 int
12612 main ()
12613 {
12614 dlopen ();
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12621 (eval $ac_link) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -s conftest$ac_exeext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_lib_dl_dlopen=yes
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_cv_lib_dl_dlopen=no
12637 fi
12638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12639 LIBS=$ac_check_lib_save_LIBS
12640 fi
12641 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12642 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12643 if test $ac_cv_lib_dl_dlopen = yes; then
12644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12645 else
12646 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12647 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12648 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 ac_check_lib_save_LIBS=$LIBS
12652 LIBS="-lsvld $LIBS"
12653 cat >conftest.$ac_ext <<_ACEOF
12654 #line $LINENO "configure"
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660
12661 /* Override any gcc2 internal prototype to avoid an error. */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 /* We use char because int might match the return type of a gcc2
12666 builtin and then its argument prototype would still apply. */
12667 char dlopen ();
12668 int
12669 main ()
12670 {
12671 dlopen ();
12672 ;
12673 return 0;
12674 }
12675 _ACEOF
12676 rm -f conftest.$ac_objext conftest$ac_exeext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678 (eval $ac_link) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_lib_svld_dlopen=yes
12689 else
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 ac_cv_lib_svld_dlopen=no
12694 fi
12695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12696 LIBS=$ac_check_lib_save_LIBS
12697 fi
12698 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12699 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12700 if test $ac_cv_lib_svld_dlopen = yes; then
12701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12702 else
12703 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12704 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12705 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708 ac_check_lib_save_LIBS=$LIBS
12709 LIBS="-ldld $LIBS"
12710 cat >conftest.$ac_ext <<_ACEOF
12711 #line $LINENO "configure"
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717
12718 /* Override any gcc2 internal prototype to avoid an error. */
12719 #ifdef __cplusplus
12720 extern "C"
12721 #endif
12722 /* We use char because int might match the return type of a gcc2
12723 builtin and then its argument prototype would still apply. */
12724 char dld_link ();
12725 int
12726 main ()
12727 {
12728 dld_link ();
12729 ;
12730 return 0;
12731 }
12732 _ACEOF
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12735 (eval $ac_link) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_lib_dld_dld_link=yes
12746 else
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12749
12750 ac_cv_lib_dld_dld_link=no
12751 fi
12752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12754 fi
12755 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12756 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12757 if test $ac_cv_lib_dld_dld_link = yes; then
12758 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12759 fi
12760
12761
12762 fi
12763
12764
12765 fi
12766
12767
12768 fi
12769
12770
12771 fi
12772
12773
12774 fi
12775
12776 ;;
12777 esac
12778
12779 if test "x$lt_cv_dlopen" != xno; then
12780 enable_dlopen=yes
12781 else
12782 enable_dlopen=no
12783 fi
12784
12785 case $lt_cv_dlopen in
12786 dlopen)
12787 save_CPPFLAGS="$CPPFLAGS"
12788 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12789
12790 save_LDFLAGS="$LDFLAGS"
12791 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12792
12793 save_LIBS="$LIBS"
12794 LIBS="$lt_cv_dlopen_libs $LIBS"
12795
12796 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12797 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12798 if test "${lt_cv_dlopen_self+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 if test "$cross_compiling" = yes; then :
12802 lt_cv_dlopen_self=cross
12803 else
12804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12805 lt_status=$lt_dlunknown
12806 cat > conftest.$ac_ext <<EOF
12807 #line 12807 "configure"
12808 #include "confdefs.h"
12809
12810 #if HAVE_DLFCN_H
12811 #include <dlfcn.h>
12812 #endif
12813
12814 #include <stdio.h>
12815
12816 #ifdef RTLD_GLOBAL
12817 # define LT_DLGLOBAL RTLD_GLOBAL
12818 #else
12819 # ifdef DL_GLOBAL
12820 # define LT_DLGLOBAL DL_GLOBAL
12821 # else
12822 # define LT_DLGLOBAL 0
12823 # endif
12824 #endif
12825
12826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12827 find out it does not work in some platform. */
12828 #ifndef LT_DLLAZY_OR_NOW
12829 # ifdef RTLD_LAZY
12830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12831 # else
12832 # ifdef DL_LAZY
12833 # define LT_DLLAZY_OR_NOW DL_LAZY
12834 # else
12835 # ifdef RTLD_NOW
12836 # define LT_DLLAZY_OR_NOW RTLD_NOW
12837 # else
12838 # ifdef DL_NOW
12839 # define LT_DLLAZY_OR_NOW DL_NOW
12840 # else
12841 # define LT_DLLAZY_OR_NOW 0
12842 # endif
12843 # endif
12844 # endif
12845 # endif
12846 #endif
12847
12848 #ifdef __cplusplus
12849 extern "C" void exit (int);
12850 #endif
12851
12852 void fnord() { int i=42;}
12853 int main ()
12854 {
12855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12856 int status = $lt_dlunknown;
12857
12858 if (self)
12859 {
12860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12862 /* dlclose (self); */
12863 }
12864
12865 exit (status);
12866 }
12867 EOF
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869 (eval $ac_link) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12873 (./conftest; exit; ) 2>/dev/null
12874 lt_status=$?
12875 case x$lt_status in
12876 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12877 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12878 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12879 esac
12880 else :
12881 # compilation failed
12882 lt_cv_dlopen_self=no
12883 fi
12884 fi
12885 rm -fr conftest*
12886
12887
12888 fi
12889 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12890 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12891
12892 if test "x$lt_cv_dlopen_self" = xyes; then
12893 LDFLAGS="$LDFLAGS $link_static_flag"
12894 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12895 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12896 if test "${lt_cv_dlopen_self_static+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 if test "$cross_compiling" = yes; then :
12900 lt_cv_dlopen_self_static=cross
12901 else
12902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12903 lt_status=$lt_dlunknown
12904 cat > conftest.$ac_ext <<EOF
12905 #line 12905 "configure"
12906 #include "confdefs.h"
12907
12908 #if HAVE_DLFCN_H
12909 #include <dlfcn.h>
12910 #endif
12911
12912 #include <stdio.h>
12913
12914 #ifdef RTLD_GLOBAL
12915 # define LT_DLGLOBAL RTLD_GLOBAL
12916 #else
12917 # ifdef DL_GLOBAL
12918 # define LT_DLGLOBAL DL_GLOBAL
12919 # else
12920 # define LT_DLGLOBAL 0
12921 # endif
12922 #endif
12923
12924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12925 find out it does not work in some platform. */
12926 #ifndef LT_DLLAZY_OR_NOW
12927 # ifdef RTLD_LAZY
12928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12929 # else
12930 # ifdef DL_LAZY
12931 # define LT_DLLAZY_OR_NOW DL_LAZY
12932 # else
12933 # ifdef RTLD_NOW
12934 # define LT_DLLAZY_OR_NOW RTLD_NOW
12935 # else
12936 # ifdef DL_NOW
12937 # define LT_DLLAZY_OR_NOW DL_NOW
12938 # else
12939 # define LT_DLLAZY_OR_NOW 0
12940 # endif
12941 # endif
12942 # endif
12943 # endif
12944 #endif
12945
12946 #ifdef __cplusplus
12947 extern "C" void exit (int);
12948 #endif
12949
12950 void fnord() { int i=42;}
12951 int main ()
12952 {
12953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12954 int status = $lt_dlunknown;
12955
12956 if (self)
12957 {
12958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12960 /* dlclose (self); */
12961 }
12962
12963 exit (status);
12964 }
12965 EOF
12966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12967 (eval $ac_link) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12971 (./conftest; exit; ) 2>/dev/null
12972 lt_status=$?
12973 case x$lt_status in
12974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12976 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12977 esac
12978 else :
12979 # compilation failed
12980 lt_cv_dlopen_self_static=no
12981 fi
12982 fi
12983 rm -fr conftest*
12984
12985
12986 fi
12987 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12988 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12989 fi
12990
12991 CPPFLAGS="$save_CPPFLAGS"
12992 LDFLAGS="$save_LDFLAGS"
12993 LIBS="$save_LIBS"
12994 ;;
12995 esac
12996
12997 case $lt_cv_dlopen_self in
12998 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12999 *) enable_dlopen_self=unknown ;;
13000 esac
13001
13002 case $lt_cv_dlopen_self_static in
13003 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13004 *) enable_dlopen_self_static=unknown ;;
13005 esac
13006 fi
13007
13008
13009 # The else clause should only fire when bootstrapping the
13010 # libtool distribution, otherwise you forgot to ship ltmain.sh
13011 # with your package, and you will get complaints that there are
13012 # no rules to generate ltmain.sh.
13013 if test -f "$ltmain"; then
13014 # See if we are running on zsh, and set the options which allow our commands through
13015 # without removal of \ escapes.
13016 if test -n "${ZSH_VERSION+set}" ; then
13017 setopt NO_GLOB_SUBST
13018 fi
13019 # Now quote all the things that may contain metacharacters while being
13020 # careful not to overquote the AC_SUBSTed values. We take copies of the
13021 # variables and quote the copies for generation of the libtool script.
13022 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13023 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13024 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13025 deplibs_check_method reload_flag reload_cmds need_locks \
13026 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13027 lt_cv_sys_global_symbol_to_c_name_address \
13028 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13029 old_postinstall_cmds old_postuninstall_cmds \
13030 compiler_CXX \
13031 CC_CXX \
13032 LD_CXX \
13033 lt_prog_compiler_wl_CXX \
13034 lt_prog_compiler_pic_CXX \
13035 lt_prog_compiler_static_CXX \
13036 lt_prog_compiler_no_builtin_flag_CXX \
13037 export_dynamic_flag_spec_CXX \
13038 thread_safe_flag_spec_CXX \
13039 whole_archive_flag_spec_CXX \
13040 enable_shared_with_static_runtimes_CXX \
13041 old_archive_cmds_CXX \
13042 old_archive_from_new_cmds_CXX \
13043 predep_objects_CXX \
13044 postdep_objects_CXX \
13045 predeps_CXX \
13046 postdeps_CXX \
13047 compiler_lib_search_path_CXX \
13048 archive_cmds_CXX \
13049 archive_expsym_cmds_CXX \
13050 postinstall_cmds_CXX \
13051 postuninstall_cmds_CXX \
13052 old_archive_from_expsyms_cmds_CXX \
13053 allow_undefined_flag_CXX \
13054 no_undefined_flag_CXX \
13055 export_symbols_cmds_CXX \
13056 hardcode_libdir_flag_spec_CXX \
13057 hardcode_libdir_flag_spec_ld_CXX \
13058 hardcode_libdir_separator_CXX \
13059 hardcode_automatic_CXX \
13060 module_cmds_CXX \
13061 module_expsym_cmds_CXX \
13062 lt_cv_prog_compiler_c_o_CXX \
13063 exclude_expsyms_CXX \
13064 include_expsyms_CXX; do
13065
13066 case $var in
13067 old_archive_cmds_CXX | \
13068 old_archive_from_new_cmds_CXX | \
13069 archive_cmds_CXX | \
13070 archive_expsym_cmds_CXX | \
13071 module_cmds_CXX | \
13072 module_expsym_cmds_CXX | \
13073 old_archive_from_expsyms_cmds_CXX | \
13074 export_symbols_cmds_CXX | \
13075 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13076 postinstall_cmds | postuninstall_cmds | \
13077 old_postinstall_cmds | old_postuninstall_cmds | \
13078 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13079 # Double-quote double-evaled strings.
13080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
13081 ;;
13082 *)
13083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13084 ;;
13085 esac
13086 done
13087
13088 case $lt_echo in
13089 *'\$0 --fallback-echo"')
13090 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13091 ;;
13092 esac
13093
13094 cfgfile="$ofile"
13095
13096 cat <<__EOF__ >> "$cfgfile"
13097 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13098
13099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13100
13101 # Set the command separator (default: ~)
13102 _S_=\${LIBTOOL_CMD_SEP-\~}
13103
13104 # Shell to use when invoking shell scripts.
13105 SHELL=$lt_SHELL
13106
13107 # Whether or not to build shared libraries.
13108 build_libtool_libs=$enable_shared
13109
13110 # Whether or not to build static libraries.
13111 build_old_libs=$enable_static
13112
13113 # Whether or not to add -lc for building shared libraries.
13114 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13115
13116 # Whether or not to disallow shared libs when runtime libs are static
13117 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13118
13119 # Whether or not to optimize for fast installation.
13120 fast_install=$enable_fast_install
13121
13122 # The host system.
13123 host_alias=$host_alias
13124 host=$host
13125
13126 # An echo program that does not interpret backslashes.
13127 echo=$lt_echo
13128
13129 # The archiver.
13130 AR=$lt_AR
13131 AR_FLAGS=$lt_AR_FLAGS
13132
13133 # A C compiler.
13134 LTCC=$lt_LTCC
13135
13136 # A language-specific compiler.
13137 CC=$lt_compiler_CXX
13138
13139 # Is the compiler the GNU C compiler?
13140 with_gcc=$GCC_CXX
13141
13142 # An ERE matcher.
13143 EGREP=$lt_EGREP
13144
13145 # The linker used to build libraries.
13146 LD=$lt_LD_CXX
13147
13148 # Whether we need hard or soft links.
13149 LN_S=$lt_LN_S
13150
13151 # A BSD-compatible nm program.
13152 NM=$lt_NM
13153
13154 # A symbol stripping program
13155 STRIP=$STRIP
13156
13157 # Used to examine libraries when file_magic_cmd begins "file"
13158 MAGIC_CMD=$MAGIC_CMD
13159
13160 # Used on cygwin: DLL creation program.
13161 DLLTOOL="$DLLTOOL"
13162
13163 # Used on cygwin: object dumper.
13164 OBJDUMP="$OBJDUMP"
13165
13166 # Used on cygwin: assembler.
13167 AS="$AS"
13168
13169 # The name of the directory that contains temporary libtool files.
13170 objdir=$objdir
13171
13172 # How to create reloadable object files.
13173 reload_flag=$lt_reload_flag
13174 reload_cmds=$lt_reload_cmds
13175
13176 # How to pass a linker flag through the compiler.
13177 wl=$lt_lt_prog_compiler_wl_CXX
13178
13179 # Object file suffix (normally "o").
13180 objext="$ac_objext"
13181
13182 # Old archive suffix (normally "a").
13183 libext="$libext"
13184
13185 # Shared library suffix (normally ".so").
13186 shrext='$shrext'
13187
13188 # Executable file suffix (normally "").
13189 exeext="$exeext"
13190
13191 # Additional compiler flags for building library objects.
13192 pic_flag=$lt_lt_prog_compiler_pic_CXX
13193 pic_mode=$pic_mode
13194
13195 # What is the maximum length of a command?
13196 max_cmd_len=$lt_cv_sys_max_cmd_len
13197
13198 # Does compiler simultaneously support -c and -o options?
13199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13200
13201 # Must we lock files when doing compilation ?
13202 need_locks=$lt_need_locks
13203
13204 # Do we need the lib prefix for modules?
13205 need_lib_prefix=$need_lib_prefix
13206
13207 # Do we need a version for libraries?
13208 need_version=$need_version
13209
13210 # Whether dlopen is supported.
13211 dlopen_support=$enable_dlopen
13212
13213 # Whether dlopen of programs is supported.
13214 dlopen_self=$enable_dlopen_self
13215
13216 # Whether dlopen of statically linked programs is supported.
13217 dlopen_self_static=$enable_dlopen_self_static
13218
13219 # Compiler flag to prevent dynamic linking.
13220 link_static_flag=$lt_lt_prog_compiler_static_CXX
13221
13222 # Compiler flag to turn off builtin functions.
13223 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13224
13225 # Compiler flag to allow reflexive dlopens.
13226 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13227
13228 # Compiler flag to generate shared objects directly from archives.
13229 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13230
13231 # Compiler flag to generate thread-safe objects.
13232 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13233
13234 # Library versioning type.
13235 version_type=$version_type
13236
13237 # Format of library name prefix.
13238 libname_spec=$lt_libname_spec
13239
13240 # List of archive names. First name is the real one, the rest are links.
13241 # The last name is the one that the linker finds with -lNAME.
13242 library_names_spec=$lt_library_names_spec
13243
13244 # The coded name of the library, if different from the real name.
13245 soname_spec=$lt_soname_spec
13246
13247 # Commands used to build and install an old-style archive.
13248 RANLIB=$lt_RANLIB
13249 old_archive_cmds=$lt_old_archive_cmds_CXX
13250 old_postinstall_cmds=$lt_old_postinstall_cmds
13251 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13252
13253 # Create an old-style archive from a shared archive.
13254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13255
13256 # Create a temporary old-style archive to link instead of a shared archive.
13257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13258
13259 # Commands used to build and install a shared archive.
13260 archive_cmds=$lt_archive_cmds_CXX
13261 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13262 postinstall_cmds=$lt_postinstall_cmds
13263 postuninstall_cmds=$lt_postuninstall_cmds
13264
13265 # Commands used to build a loadable module (assumed same as above if empty)
13266 module_cmds=$lt_module_cmds_CXX
13267 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13268
13269 # Commands to strip libraries.
13270 old_striplib=$lt_old_striplib
13271 striplib=$lt_striplib
13272
13273 # Dependencies to place before the objects being linked to create a
13274 # shared library.
13275 predep_objects=$lt_predep_objects_CXX
13276
13277 # Dependencies to place after the objects being linked to create a
13278 # shared library.
13279 postdep_objects=$lt_postdep_objects_CXX
13280
13281 # Dependencies to place before the objects being linked to create a
13282 # shared library.
13283 predeps=$lt_predeps_CXX
13284
13285 # Dependencies to place after the objects being linked to create a
13286 # shared library.
13287 postdeps=$lt_postdeps_CXX
13288
13289 # The library search path used internally by the compiler when linking
13290 # a shared library.
13291 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13292
13293 # Method to check whether dependent libraries are shared objects.
13294 deplibs_check_method=$lt_deplibs_check_method
13295
13296 # Command to use when deplibs_check_method == file_magic.
13297 file_magic_cmd=$lt_file_magic_cmd
13298
13299 # Flag that allows shared libraries with undefined symbols to be built.
13300 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13301
13302 # Flag that forces no undefined symbols.
13303 no_undefined_flag=$lt_no_undefined_flag_CXX
13304
13305 # Commands used to finish a libtool library installation in a directory.
13306 finish_cmds=$lt_finish_cmds
13307
13308 # Same as above, but a single script fragment to be evaled but not shown.
13309 finish_eval=$lt_finish_eval
13310
13311 # Take the output of nm and produce a listing of raw symbols and C names.
13312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13313
13314 # Transform the output of nm in a proper C declaration
13315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13316
13317 # Transform the output of nm in a C name address pair
13318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13319
13320 # This is the shared library runtime path variable.
13321 runpath_var=$runpath_var
13322
13323 # This is the shared library path variable.
13324 shlibpath_var=$shlibpath_var
13325
13326 # Is shlibpath searched before the hard-coded library search path?
13327 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13328
13329 # How to hardcode a shared library path into an executable.
13330 hardcode_action=$hardcode_action_CXX
13331
13332 # Whether we should hardcode library paths into libraries.
13333 hardcode_into_libs=$hardcode_into_libs
13334
13335 # Flag to hardcode \$libdir into a binary during linking.
13336 # This must work even if \$libdir does not exist.
13337 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13338
13339 # If ld is used when linking, flag to hardcode \$libdir into
13340 # a binary during linking. This must work even if \$libdir does
13341 # not exist.
13342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13343
13344 # Whether we need a single -rpath flag with a separated argument.
13345 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13346
13347 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13348 # resulting binary.
13349 hardcode_direct=$hardcode_direct_CXX
13350
13351 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13352 # resulting binary.
13353 hardcode_minus_L=$hardcode_minus_L_CXX
13354
13355 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13356 # the resulting binary.
13357 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13358
13359 # Set to yes if building a shared library automatically hardcodes DIR into the library
13360 # and all subsequent libraries and executables linked against it.
13361 hardcode_automatic=$hardcode_automatic_CXX
13362
13363 # Variables whose values should be saved in libtool wrapper scripts and
13364 # restored at relink time.
13365 variables_saved_for_relink="$variables_saved_for_relink"
13366
13367 # Whether libtool must link a program against all its dependency libraries.
13368 link_all_deplibs=$link_all_deplibs_CXX
13369
13370 # Compile-time system search path for libraries
13371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13372
13373 # Run-time system search path for libraries
13374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13375
13376 # Fix the shell variable \$srcfile for the compiler.
13377 fix_srcfile_path="$fix_srcfile_path_CXX"
13378
13379 # Set to yes if exported symbols are required.
13380 always_export_symbols=$always_export_symbols_CXX
13381
13382 # The commands to list exported symbols.
13383 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13384
13385 # The commands to extract the exported symbol list from a shared archive.
13386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13387
13388 # Symbols that should not be listed in the preloaded symbols.
13389 exclude_expsyms=$lt_exclude_expsyms_CXX
13390
13391 # Symbols that must always be exported.
13392 include_expsyms=$lt_include_expsyms_CXX
13393
13394 # ### END LIBTOOL TAG CONFIG: $tagname
13395
13396 __EOF__
13397
13398
13399 else
13400 # If there is no Makefile yet, we rely on a make rule to execute
13401 # `config.status --recheck' to rerun these tests and create the
13402 # libtool script then.
13403 test -f Makefile && make "$ltmain"
13404 fi
13405
13406
13407 ac_ext=c
13408 ac_cpp='$CPP $CPPFLAGS'
13409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13412
13413 CC=$lt_save_CC
13414 LDCXX=$LD
13415 LD=$lt_save_LD
13416 GCC=$lt_save_GCC
13417 with_gnu_ldcxx=$with_gnu_ld
13418 with_gnu_ld=$lt_save_with_gnu_ld
13419 lt_cv_path_LDCXX=$lt_cv_path_LD
13420 lt_cv_path_LD=$lt_save_path_LD
13421 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13422 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13423
13424 else
13425 tagname=""
13426 fi
13427 ;;
13428
13429 F77)
13430 if test -n "$F77" && test "X$F77" != "Xno"; then
13431
13432 ac_ext=f
13433 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13434 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13435 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13436
13437
13438 archive_cmds_need_lc_F77=no
13439 allow_undefined_flag_F77=
13440 always_export_symbols_F77=no
13441 archive_expsym_cmds_F77=
13442 export_dynamic_flag_spec_F77=
13443 hardcode_direct_F77=no
13444 hardcode_libdir_flag_spec_F77=
13445 hardcode_libdir_flag_spec_ld_F77=
13446 hardcode_libdir_separator_F77=
13447 hardcode_minus_L_F77=no
13448 hardcode_automatic_F77=no
13449 module_cmds_F77=
13450 module_expsym_cmds_F77=
13451 link_all_deplibs_F77=unknown
13452 old_archive_cmds_F77=$old_archive_cmds
13453 no_undefined_flag_F77=
13454 whole_archive_flag_spec_F77=
13455 enable_shared_with_static_runtimes_F77=no
13456
13457 # Source file extension for f77 test sources.
13458 ac_ext=f
13459
13460 # Object file extension for compiled f77 test sources.
13461 objext=o
13462 objext_F77=$objext
13463
13464 # Code to be used in simple compile tests
13465 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13466
13467 # Code to be used in simple link tests
13468 lt_simple_link_test_code=" program t\n end\n"
13469
13470 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13471
13472 # If no C compiler was specified, use CC.
13473 LTCC=${LTCC-"$CC"}
13474
13475 # Allow CC to be a program name with arguments.
13476 compiler=$CC
13477
13478
13479 # Allow CC to be a program name with arguments.
13480 lt_save_CC="$CC"
13481 CC=${F77-"f77"}
13482 compiler=$CC
13483 compiler_F77=$CC
13484 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13485
13486 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13487 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13488 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13489 echo "${ECHO_T}$can_build_shared" >&6
13490
13491 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13492 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13493 test "$can_build_shared" = "no" && enable_shared=no
13494
13495 # On AIX, shared libraries and static libraries use the same namespace, and
13496 # are all built from PIC.
13497 case "$host_os" in
13498 aix3*)
13499 test "$enable_shared" = yes && enable_static=no
13500 if test -n "$RANLIB"; then
13501 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
13502 postinstall_cmds='$RANLIB $lib'
13503 fi
13504 ;;
13505 aix4*)
13506 test "$enable_shared" = yes && enable_static=no
13507 ;;
13508 esac
13509 echo "$as_me:$LINENO: result: $enable_shared" >&5
13510 echo "${ECHO_T}$enable_shared" >&6
13511
13512 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13513 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13514 # Make sure either enable_shared or enable_static is yes.
13515 test "$enable_shared" = yes || enable_static=yes
13516 echo "$as_me:$LINENO: result: $enable_static" >&5
13517 echo "${ECHO_T}$enable_static" >&6
13518
13519 test "$ld_shlibs_F77" = no && can_build_shared=no
13520
13521 GCC_F77="$G77"
13522 LD_F77="$LD"
13523
13524 lt_prog_compiler_wl_F77=
13525 lt_prog_compiler_pic_F77=
13526 lt_prog_compiler_static_F77=
13527
13528 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13530
13531 if test "$GCC" = yes; then
13532 lt_prog_compiler_wl_F77='-Wl,'
13533 lt_prog_compiler_static_F77='-static'
13534
13535 case $host_os in
13536 aix*)
13537 # All AIX code is PIC.
13538 if test "$host_cpu" = ia64; then
13539 # AIX 5 now supports IA64 processor
13540 lt_prog_compiler_static_F77='-Bstatic'
13541 fi
13542 ;;
13543
13544 amigaos*)
13545 # FIXME: we need at least 68020 code to build shared libraries, but
13546 # adding the `-m68020' flag to GCC prevents building anything better,
13547 # like `-m68040'.
13548 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13549 ;;
13550
13551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13552 # PIC is the default for these OSes.
13553 ;;
13554
13555 mingw* | pw32* | os2*)
13556 # This hack is so that the source file can tell whether it is being
13557 # built for inclusion in a dll (and should export symbols for example).
13558 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13559 ;;
13560
13561 darwin* | rhapsody*)
13562 # PIC is the default on this platform
13563 # Common symbols not allowed in MH_DYLIB files
13564 lt_prog_compiler_pic_F77='-fno-common'
13565 ;;
13566
13567 msdosdjgpp*)
13568 # Just because we use GCC doesn't mean we suddenly get shared libraries
13569 # on systems that don't support them.
13570 lt_prog_compiler_can_build_shared_F77=no
13571 enable_shared=no
13572 ;;
13573
13574 sysv4*MP*)
13575 if test -d /usr/nec; then
13576 lt_prog_compiler_pic_F77=-Kconform_pic
13577 fi
13578 ;;
13579
13580 hpux*)
13581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13582 # not for PA HP-UX.
13583 case "$host_cpu" in
13584 hppa*64*|ia64*)
13585 # +Z the default
13586 ;;
13587 *)
13588 lt_prog_compiler_pic_F77='-fPIC'
13589 ;;
13590 esac
13591 ;;
13592
13593 *)
13594 lt_prog_compiler_pic_F77='-fPIC'
13595 ;;
13596 esac
13597 else
13598 # PORTME Check for flag to pass linker flags through the system compiler.
13599 case $host_os in
13600 aix*)
13601 lt_prog_compiler_wl_F77='-Wl,'
13602 if test "$host_cpu" = ia64; then
13603 # AIX 5 now supports IA64 processor
13604 lt_prog_compiler_static_F77='-Bstatic'
13605 else
13606 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13607 fi
13608 ;;
13609
13610 mingw* | pw32* | os2*)
13611 # This hack is so that the source file can tell whether it is being
13612 # built for inclusion in a dll (and should export symbols for example).
13613 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13614 ;;
13615
13616 hpux9* | hpux10* | hpux11*)
13617 lt_prog_compiler_wl_F77='-Wl,'
13618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13619 # not for PA HP-UX.
13620 case "$host_cpu" in
13621 hppa*64*|ia64*)
13622 # +Z the default
13623 ;;
13624 *)
13625 lt_prog_compiler_pic_F77='+Z'
13626 ;;
13627 esac
13628 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13629 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13630 ;;
13631
13632 irix5* | irix6* | nonstopux*)
13633 lt_prog_compiler_wl_F77='-Wl,'
13634 # PIC (with -KPIC) is the default.
13635 lt_prog_compiler_static_F77='-non_shared'
13636 ;;
13637
13638 newsos6)
13639 lt_prog_compiler_pic_F77='-KPIC'
13640 lt_prog_compiler_static_F77='-Bstatic'
13641 ;;
13642
13643 linux*)
13644 case $CC in
13645 icc|ecc)
13646 lt_prog_compiler_wl_F77='-Wl,'
13647 lt_prog_compiler_pic_F77='-KPIC'
13648 lt_prog_compiler_static_F77='-static'
13649 ;;
13650 ccc)
13651 lt_prog_compiler_wl_F77='-Wl,'
13652 # All Alpha code is PIC.
13653 lt_prog_compiler_static_F77='-non_shared'
13654 ;;
13655 esac
13656 ;;
13657
13658 osf3* | osf4* | osf5*)
13659 lt_prog_compiler_wl_F77='-Wl,'
13660 # All OSF/1 code is PIC.
13661 lt_prog_compiler_static_F77='-non_shared'
13662 ;;
13663
13664 sco3.2v5*)
13665 lt_prog_compiler_pic_F77='-Kpic'
13666 lt_prog_compiler_static_F77='-dn'
13667 ;;
13668
13669 solaris*)
13670 lt_prog_compiler_wl_F77='-Wl,'
13671 lt_prog_compiler_pic_F77='-KPIC'
13672 lt_prog_compiler_static_F77='-Bstatic'
13673 ;;
13674
13675 sunos4*)
13676 lt_prog_compiler_wl_F77='-Qoption ld '
13677 lt_prog_compiler_pic_F77='-PIC'
13678 lt_prog_compiler_static_F77='-Bstatic'
13679 ;;
13680
13681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13682 lt_prog_compiler_wl_F77='-Wl,'
13683 lt_prog_compiler_pic_F77='-KPIC'
13684 lt_prog_compiler_static_F77='-Bstatic'
13685 ;;
13686
13687 sysv4*MP*)
13688 if test -d /usr/nec ;then
13689 lt_prog_compiler_pic_F77='-Kconform_pic'
13690 lt_prog_compiler_static_F77='-Bstatic'
13691 fi
13692 ;;
13693
13694 uts4*)
13695 lt_prog_compiler_pic_F77='-pic'
13696 lt_prog_compiler_static_F77='-Bstatic'
13697 ;;
13698
13699 *)
13700 lt_prog_compiler_can_build_shared_F77=no
13701 ;;
13702 esac
13703 fi
13704
13705 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13706 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13707
13708 #
13709 # Check to make sure the PIC flag actually works.
13710 #
13711 if test -n "$lt_prog_compiler_pic_F77"; then
13712 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13714 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717 lt_prog_compiler_pic_works_F77=no
13718 ac_outfile=conftest.$ac_objext
13719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13720 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13721 # Insert the option either (1) after the last *FLAGS variable, or
13722 # (2) before a word containing "conftest.", or (3) at the end.
13723 # Note that $ac_compile itself does not contain backslashes and begins
13724 # with a dollar sign (not a hyphen), so the echo should work correctly.
13725 # The option is referenced via a variable to avoid confusing sed.
13726 lt_compile=`echo "$ac_compile" | $SED \
13727 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13729 -e 's:$: $lt_compiler_flag:'`
13730 (eval echo "\"\$as_me:13730: $lt_compile\"" >&5)
13731 (eval "$lt_compile" 2>conftest.err)
13732 ac_status=$?
13733 cat conftest.err >&5
13734 echo "$as_me:13734: \$? = $ac_status" >&5
13735 if (exit $ac_status) && test -s "$ac_outfile"; then
13736 # The compiler can only warn and ignore the option if not recognized
13737 # So say no if there are warnings
13738 if test ! -s conftest.err; then
13739 lt_prog_compiler_pic_works_F77=yes
13740 fi
13741 fi
13742 $rm conftest*
13743
13744 fi
13745 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13746 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13747
13748 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13749 case $lt_prog_compiler_pic_F77 in
13750 "" | " "*) ;;
13751 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13752 esac
13753 else
13754 lt_prog_compiler_pic_F77=
13755 lt_prog_compiler_can_build_shared_F77=no
13756 fi
13757
13758 fi
13759 case "$host_os" in
13760 # For platforms which do not support PIC, -DPIC is meaningless:
13761 *djgpp*)
13762 lt_prog_compiler_pic_F77=
13763 ;;
13764 *)
13765 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13766 ;;
13767 esac
13768
13769 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13770 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13771 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774 lt_cv_prog_compiler_c_o_F77=no
13775 $rm -r conftest 2>/dev/null
13776 mkdir conftest
13777 cd conftest
13778 mkdir out
13779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13780
13781 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13782 # that will create temporary files in the current directory regardless of
13783 # the output directory. Thus, making CWD read-only will cause this test
13784 # to fail, enabling locking or at least warning the user not to do parallel
13785 # builds.
13786 chmod -w .
13787
13788 lt_compiler_flag="-o out/conftest2.$ac_objext"
13789 # Insert the option either (1) after the last *FLAGS variable, or
13790 # (2) before a word containing "conftest.", or (3) at the end.
13791 # Note that $ac_compile itself does not contain backslashes and begins
13792 # with a dollar sign (not a hyphen), so the echo should work correctly.
13793 lt_compile=`echo "$ac_compile" | $SED \
13794 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13796 -e 's:$: $lt_compiler_flag:'`
13797 (eval echo "\"\$as_me:13797: $lt_compile\"" >&5)
13798 (eval "$lt_compile" 2>out/conftest.err)
13799 ac_status=$?
13800 cat out/conftest.err >&5
13801 echo "$as_me:13801: \$? = $ac_status" >&5
13802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13803 then
13804 # The compiler can only warn and ignore the option if not recognized
13805 # So say no if there are warnings
13806 if test ! -s out/conftest.err; then
13807 lt_cv_prog_compiler_c_o_F77=yes
13808 fi
13809 fi
13810 chmod u+w .
13811 $rm conftest* out/*
13812 rmdir out
13813 cd ..
13814 rmdir conftest
13815 $rm conftest*
13816
13817 fi
13818 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13819 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13820
13821
13822 hard_links="nottested"
13823 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13824 # do not overwrite the value of need_locks provided by the user
13825 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13826 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13827 hard_links=yes
13828 $rm conftest*
13829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13830 touch conftest.a
13831 ln conftest.a conftest.b 2>&5 || hard_links=no
13832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13833 echo "$as_me:$LINENO: result: $hard_links" >&5
13834 echo "${ECHO_T}$hard_links" >&6
13835 if test "$hard_links" = no; then
13836 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13837 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13838 need_locks=warn
13839 fi
13840 else
13841 need_locks=no
13842 fi
13843
13844 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13845 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13846
13847 runpath_var=
13848 allow_undefined_flag_F77=
13849 enable_shared_with_static_runtimes_F77=no
13850 archive_cmds_F77=
13851 archive_expsym_cmds_F77=
13852 old_archive_From_new_cmds_F77=
13853 old_archive_from_expsyms_cmds_F77=
13854 export_dynamic_flag_spec_F77=
13855 whole_archive_flag_spec_F77=
13856 thread_safe_flag_spec_F77=
13857 hardcode_libdir_flag_spec_F77=
13858 hardcode_libdir_flag_spec_ld_F77=
13859 hardcode_libdir_separator_F77=
13860 hardcode_direct_F77=no
13861 hardcode_minus_L_F77=no
13862 hardcode_shlibpath_var_F77=unsupported
13863 link_all_deplibs_F77=unknown
13864 hardcode_automatic_F77=no
13865 module_cmds_F77=
13866 module_expsym_cmds_F77=
13867 always_export_symbols_F77=no
13868 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13869 # include_expsyms should be a list of space-separated symbols to be *always*
13870 # included in the symbol list
13871 include_expsyms_F77=
13872 # exclude_expsyms can be an extended regexp of symbols to exclude
13873 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13874 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13875 # as well as any symbol that contains `d'.
13876 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13878 # platforms (ab)use it in PIC code, but their linkers get confused if
13879 # the symbol is explicitly referenced. Since portable code cannot
13880 # rely on this symbol name, it's probably fine to never include it in
13881 # preloaded symbol tables.
13882 extract_expsyms_cmds=
13883
13884 case $host_os in
13885 cygwin* | mingw* | pw32*)
13886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13887 # When not using gcc, we currently assume that we are using
13888 # Microsoft Visual C++.
13889 if test "$GCC" != yes; then
13890 with_gnu_ld=no
13891 fi
13892 ;;
13893 openbsd*)
13894 with_gnu_ld=no
13895 ;;
13896 esac
13897
13898 ld_shlibs_F77=yes
13899 if test "$with_gnu_ld" = yes; then
13900 # If archive_cmds runs LD, not CC, wlarc should be empty
13901 wlarc='${wl}'
13902
13903 # See if GNU ld supports shared libraries.
13904 case $host_os in
13905 aix3* | aix4* | aix5*)
13906 # On AIX/PPC, the GNU linker is very broken
13907 if test "$host_cpu" != ia64; then
13908 ld_shlibs_F77=no
13909 cat <<EOF 1>&2
13910
13911 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13912 *** to be unable to reliably create shared libraries on AIX.
13913 *** Therefore, libtool is disabling shared libraries support. If you
13914 *** really care for shared libraries, you may want to modify your PATH
13915 *** so that a non-GNU linker is found, and then restart.
13916
13917 EOF
13918 fi
13919 ;;
13920
13921 amigaos*)
13922 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
13923 hardcode_libdir_flag_spec_F77='-L$libdir'
13924 hardcode_minus_L_F77=yes
13925
13926 # Samuel A. Falvo II <[email protected]> reports
13927 # that the semantics of dynamic libraries on AmigaOS, at least up
13928 # to version 4, is to share data among multiple programs linked
13929 # with the same dynamic library. Since this doesn't match the
13930 # behavior of shared libraries on other platforms, we can't use
13931 # them.
13932 ld_shlibs_F77=no
13933 ;;
13934
13935 beos*)
13936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13937 allow_undefined_flag_F77=unsupported
13938 # Joseph Beckenbach <[email protected]> says some releases of gcc
13939 # support --undefined. This deserves some investigation. FIXME
13940 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13941 else
13942 ld_shlibs_F77=no
13943 fi
13944 ;;
13945
13946 cygwin* | mingw* | pw32*)
13947 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13948 # as there is no search path for DLLs.
13949 hardcode_libdir_flag_spec_F77='-L$libdir'
13950 allow_undefined_flag_F77=unsupported
13951 always_export_symbols_F77=no
13952 enable_shared_with_static_runtimes_F77=yes
13953 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13954
13955 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13956 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13957 # If the export-symbols file already is a .def file (1st line
13958 # is EXPORTS), use it as is; otherwise, prepend...
13959 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13960 cp $export_symbols $output_objdir/$soname.def;
13961 else
13962 echo EXPORTS > $output_objdir/$soname.def;
13963 cat $export_symbols >> $output_objdir/$soname.def;
13964 fi${_S_}
13965 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13966 else
13967 ld_shlibs=no
13968 fi
13969 ;;
13970
13971 netbsd*)
13972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13973 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13974 wlarc=
13975 else
13976 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13977 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13978 fi
13979 ;;
13980
13981 solaris* | sysv5*)
13982 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13983 ld_shlibs_F77=no
13984 cat <<EOF 1>&2
13985
13986 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13987 *** create shared libraries on Solaris systems. Therefore, libtool
13988 *** is disabling shared libraries support. We urge you to upgrade GNU
13989 *** binutils to release 2.9.1 or newer. Another option is to modify
13990 *** your PATH or compiler configuration so that the native linker is
13991 *** used, and then restart.
13992
13993 EOF
13994 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13995 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13997 else
13998 ld_shlibs_F77=no
13999 fi
14000 ;;
14001
14002 sunos4*)
14003 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14004 wlarc=
14005 hardcode_direct_F77=yes
14006 hardcode_shlibpath_var_F77=no
14007 ;;
14008
14009 *)
14010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14011 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14012 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14013 else
14014 ld_shlibs_F77=no
14015 fi
14016 ;;
14017 esac
14018
14019 if test "$ld_shlibs_F77" = yes; then
14020 runpath_var=LD_RUN_PATH
14021 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14022 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14023 # ancient GNU ld didn't support --whole-archive et. al.
14024 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14025 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14026 else
14027 whole_archive_flag_spec_F77=
14028 fi
14029 fi
14030 else
14031 # PORTME fill in a description of your system's linker (not GNU ld)
14032 case $host_os in
14033 aix3*)
14034 allow_undefined_flag_F77=unsupported
14035 always_export_symbols_F77=yes
14036 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
14037 # Note: this linker hardcodes the directories in LIBPATH if there
14038 # are no directories specified by -L.
14039 hardcode_minus_L_F77=yes
14040 if test "$GCC" = yes && test -z "$link_static_flag"; then
14041 # Neither direct hardcoding nor static linking is supported with a
14042 # broken collect2.
14043 hardcode_direct_F77=unsupported
14044 fi
14045 ;;
14046
14047 aix4* | aix5*)
14048 if test "$host_cpu" = ia64; then
14049 # On IA64, the linker does run time linking by default, so we don't
14050 # have to do anything special.
14051 aix_use_runtimelinking=no
14052 exp_sym_flag='-Bexport'
14053 no_entry_flag=""
14054 else
14055 # If we're using GNU nm, then we don't want the "-C" option.
14056 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14057 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14058 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'
14059 else
14060 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'
14061 fi
14062 aix_use_runtimelinking=no
14063
14064 # Test if we are trying to use run time linking or normal
14065 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14066 # need to do runtime linking.
14067 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14068 for ld_flag in $LDFLAGS; do
14069 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14070 aix_use_runtimelinking=yes
14071 break
14072 fi
14073 done
14074 esac
14075
14076 exp_sym_flag='-bexport'
14077 no_entry_flag='-bnoentry'
14078 fi
14079
14080 # When large executables or shared objects are built, AIX ld can
14081 # have problems creating the table of contents. If linking a library
14082 # or program results in "error TOC overflow" add -mminimal-toc to
14083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14085
14086 archive_cmds_F77=''
14087 hardcode_direct_F77=yes
14088 hardcode_libdir_separator_F77=':'
14089 link_all_deplibs_F77=yes
14090
14091 if test "$GCC" = yes; then
14092 case $host_os in aix4.012|aix4.012.*)
14093 # We only want to do this on AIX 4.2 and lower, the check
14094 # below for broken collect2 doesn't work under 4.3+
14095 collect2name=`${CC} -print-prog-name=collect2`
14096 if test -f "$collect2name" && \
14097 strings "$collect2name" | grep resolve_lib_name >/dev/null
14098 then
14099 # We have reworked collect2
14100 hardcode_direct_F77=yes
14101 else
14102 # We have old collect2
14103 hardcode_direct_F77=unsupported
14104 # It fails to find uninstalled libraries when the uninstalled
14105 # path is not listed in the libpath. Setting hardcode_minus_L
14106 # to unsupported forces relinking
14107 hardcode_minus_L_F77=yes
14108 hardcode_libdir_flag_spec_F77='-L$libdir'
14109 hardcode_libdir_separator_F77=
14110 fi
14111 esac
14112 shared_flag='-shared'
14113 else
14114 # not using gcc
14115 if test "$host_cpu" = ia64; then
14116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14117 # chokes on -Wl,-G. The following line is correct:
14118 shared_flag='-G'
14119 else
14120 if test "$aix_use_runtimelinking" = yes; then
14121 shared_flag='${wl}-G'
14122 else
14123 shared_flag='${wl}-bM:SRE'
14124 fi
14125 fi
14126 fi
14127
14128 # It seems that -bexpall does not export symbols beginning with
14129 # underscore (_), so it is better to generate a list of symbols to export.
14130 always_export_symbols_F77=yes
14131 if test "$aix_use_runtimelinking" = yes; then
14132 # Warning - without using the other runtime loading flags (-brtl),
14133 # -berok will link without error, but may produce a broken library.
14134 allow_undefined_flag_F77='-berok'
14135 # Determine the default libpath from the value encoded in an empty executable.
14136 cat >conftest.$ac_ext <<_ACEOF
14137 program main
14138
14139 end
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153
14154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14155 }'`
14156 # Check for a 64-bit object if we didn't find anything.
14157 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; }
14158 }'`; fi
14159 else
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 fi
14164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14166
14167 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14168 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"
14169 else
14170 if test "$host_cpu" = ia64; then
14171 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14172 allow_undefined_flag_F77="-z nodefs"
14173 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"
14174 else
14175 # Determine the default libpath from the value encoded in an empty executable.
14176 cat >conftest.$ac_ext <<_ACEOF
14177 program main
14178
14179 end
14180 _ACEOF
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193
14194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14195 }'`
14196 # Check for a 64-bit object if we didn't find anything.
14197 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; }
14198 }'`; fi
14199 else
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203 fi
14204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14206
14207 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14208 # Warning - without using the other run time loading flags,
14209 # -berok will link without error, but may produce a broken library.
14210 no_undefined_flag_F77=' ${wl}-bernotok'
14211 allow_undefined_flag_F77=' ${wl}-berok'
14212 # -bexpall does not export symbols beginning with underscore (_)
14213 always_export_symbols_F77=yes
14214 # Exported symbols can be pulled into shared objects from archives
14215 whole_archive_flag_spec_F77=' '
14216 archive_cmds_need_lc_F77=yes
14217 # This is similar to how AIX traditionally builds it's shared libraries.
14218 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14219 fi
14220 fi
14221 ;;
14222
14223 amigaos*)
14224 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
14225 hardcode_libdir_flag_spec_F77='-L$libdir'
14226 hardcode_minus_L_F77=yes
14227 # see comment about different semantics on the GNU ld section
14228 ld_shlibs_F77=no
14229 ;;
14230
14231 bsdi4*)
14232 export_dynamic_flag_spec_F77=-rdynamic
14233 ;;
14234
14235 cygwin* | mingw* | pw32*)
14236 # When not using gcc, we currently assume that we are using
14237 # Microsoft Visual C++.
14238 # hardcode_libdir_flag_spec is actually meaningless, as there is
14239 # no search path for DLLs.
14240 hardcode_libdir_flag_spec_F77=' '
14241 allow_undefined_flag_F77=unsupported
14242 # Tell ltmain to make .lib files, not .a files.
14243 libext=lib
14244 # Tell ltmain to make .dll files, not .so files.
14245 shrext=".dll"
14246 # FIXME: Setting linknames here is a bad hack.
14247 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
14248 # The linker will automatically build a .lib file if we build a DLL.
14249 old_archive_From_new_cmds_F77='true'
14250 # FIXME: Should let the user specify the lib program.
14251 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14252 fix_srcfile_path='`cygpath -w "$srcfile"`'
14253 enable_shared_with_static_runtimes_F77=yes
14254 ;;
14255
14256 darwin* | rhapsody*)
14257 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14258 archive_cmds_need_lc_F77=no
14259 case "$host_os" in
14260 rhapsody* | darwin1.[012])
14261 allow_undefined_flag_F77='-undefined suppress'
14262 ;;
14263 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
14264 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14265 ;;
14266 *) # Darwin 7.0 on
14267 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
14268 10.[012])
14269 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14270 ;;
14271 *) # 10.3 on
14272 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
14273 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14274 else
14275 allow_undefined_flag_F77='-undefined dynamic_lookup'
14276 fi
14277 ;;
14278 esac
14279 ;;
14280 esac
14281 # FIXME: Relying on posixy $() will cause problems for
14282 # cross-compilation, but unfortunately the echo tests do not
14283 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14284 # `"' quotes if we put them in here... so don't!
14285 lt_int_apple_cc_single_mod=no
14286 output_verbose_link_cmd='echo'
14287 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14288 lt_int_apple_cc_single_mod=yes
14289 fi
14290 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14291 archive_cmds_F77='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14292 else
14293 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14294 fi
14295 module_cmds_F77='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14296 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14297 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14298 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14299 else
14300 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14301 fi
14302 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14303 hardcode_direct_F77=no
14304 hardcode_automatic_F77=yes
14305 hardcode_shlibpath_var_F77=unsupported
14306 whole_archive_flag_spec_F77='-all_load $convenience'
14307 link_all_deplibs_F77=yes
14308 fi
14309 ;;
14310
14311 dgux*)
14312 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313 hardcode_libdir_flag_spec_F77='-L$libdir'
14314 hardcode_shlibpath_var_F77=no
14315 ;;
14316
14317 freebsd1*)
14318 ld_shlibs_F77=no
14319 ;;
14320
14321 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14322 # support. Future versions do this automatically, but an explicit c++rt0.o
14323 # does not break anything, and helps significantly (at the cost of a little
14324 # extra space).
14325 freebsd2.2*)
14326 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14327 hardcode_libdir_flag_spec_F77='-R$libdir'
14328 hardcode_direct_F77=yes
14329 hardcode_shlibpath_var_F77=no
14330 ;;
14331
14332 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14333 freebsd2*)
14334 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14335 hardcode_direct_F77=yes
14336 hardcode_minus_L_F77=yes
14337 hardcode_shlibpath_var_F77=no
14338 ;;
14339
14340 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14341 freebsd*)
14342 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14343 hardcode_libdir_flag_spec_F77='-R$libdir'
14344 hardcode_direct_F77=yes
14345 hardcode_shlibpath_var_F77=no
14346 ;;
14347
14348 hpux9*)
14349 if test "$GCC" = yes; then
14350 archive_cmds_F77='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14351 else
14352 archive_cmds_F77='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14353 fi
14354 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14355 hardcode_libdir_separator_F77=:
14356 hardcode_direct_F77=yes
14357
14358 # hardcode_minus_L: Not really in the search PATH,
14359 # but as the default location of the library.
14360 hardcode_minus_L_F77=yes
14361 export_dynamic_flag_spec_F77='${wl}-E'
14362 ;;
14363
14364 hpux10* | hpux11*)
14365 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14366 case "$host_cpu" in
14367 hppa*64*|ia64*)
14368 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14369 ;;
14370 *)
14371 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14372 ;;
14373 esac
14374 else
14375 case "$host_cpu" in
14376 hppa*64*|ia64*)
14377 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14378 ;;
14379 *)
14380 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14381 ;;
14382 esac
14383 fi
14384 if test "$with_gnu_ld" = no; then
14385 case "$host_cpu" in
14386 hppa*64*)
14387 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14388 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14389 hardcode_libdir_separator_F77=:
14390 hardcode_direct_F77=no
14391 hardcode_shlibpath_var_F77=no
14392 ;;
14393 ia64*)
14394 hardcode_libdir_flag_spec_F77='-L$libdir'
14395 hardcode_direct_F77=no
14396 hardcode_shlibpath_var_F77=no
14397
14398 # hardcode_minus_L: Not really in the search PATH,
14399 # but as the default location of the library.
14400 hardcode_minus_L_F77=yes
14401 ;;
14402 *)
14403 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14404 hardcode_libdir_separator_F77=:
14405 hardcode_direct_F77=yes
14406 export_dynamic_flag_spec_F77='${wl}-E'
14407
14408 # hardcode_minus_L: Not really in the search PATH,
14409 # but as the default location of the library.
14410 hardcode_minus_L_F77=yes
14411 ;;
14412 esac
14413 fi
14414 ;;
14415
14416 irix5* | irix6* | nonstopux*)
14417 if test "$GCC" = yes; then
14418 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'
14419 else
14420 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'
14421 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14422 fi
14423 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14424 hardcode_libdir_separator_F77=:
14425 link_all_deplibs_F77=yes
14426 ;;
14427
14428 netbsd*)
14429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14431 else
14432 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14433 fi
14434 hardcode_libdir_flag_spec_F77='-R$libdir'
14435 hardcode_direct_F77=yes
14436 hardcode_shlibpath_var_F77=no
14437 ;;
14438
14439 newsos6)
14440 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14441 hardcode_direct_F77=yes
14442 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14443 hardcode_libdir_separator_F77=:
14444 hardcode_shlibpath_var_F77=no
14445 ;;
14446
14447 openbsd*)
14448 hardcode_direct_F77=yes
14449 hardcode_shlibpath_var_F77=no
14450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14451 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14452 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14453 export_dynamic_flag_spec_F77='${wl}-E'
14454 else
14455 case $host_os in
14456 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14457 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14458 hardcode_libdir_flag_spec_F77='-R$libdir'
14459 ;;
14460 *)
14461 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14462 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14463 ;;
14464 esac
14465 fi
14466 ;;
14467
14468 os2*)
14469 hardcode_libdir_flag_spec_F77='-L$libdir'
14470 hardcode_minus_L_F77=yes
14471 allow_undefined_flag_F77=unsupported
14472 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14473 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14474 ;;
14475
14476 osf3*)
14477 if test "$GCC" = yes; then
14478 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14479 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'
14480 else
14481 allow_undefined_flag_F77=' -expect_unresolved \*'
14482 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'
14483 fi
14484 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14485 hardcode_libdir_separator_F77=:
14486 ;;
14487
14488 osf4* | osf5*) # as osf3* with the addition of -msym flag
14489 if test "$GCC" = yes; then
14490 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14491 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'
14492 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14493 else
14494 allow_undefined_flag_F77=' -expect_unresolved \*'
14495 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'
14496 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${_S_}
14497 $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${_S_}$rm $lib.exp'
14498
14499 # Both c and cxx compiler support -rpath directly
14500 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14501 fi
14502 hardcode_libdir_separator_F77=:
14503 ;;
14504
14505 sco3.2v5*)
14506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14507 hardcode_shlibpath_var_F77=no
14508 export_dynamic_flag_spec_F77='${wl}-Bexport'
14509 runpath_var=LD_RUN_PATH
14510 hardcode_runpath_var=yes
14511 ;;
14512
14513 solaris*)
14514 no_undefined_flag_F77=' -z text'
14515 if test "$GCC" = yes; then
14516 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
14518 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
14519 else
14520 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14521 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
14522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
14523 fi
14524 hardcode_libdir_flag_spec_F77='-R$libdir'
14525 hardcode_shlibpath_var_F77=no
14526 case $host_os in
14527 solaris2.[0-5] | solaris2.[0-5].*) ;;
14528 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14529 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14530 esac
14531 link_all_deplibs_F77=yes
14532 ;;
14533
14534 sunos4*)
14535 if test "x$host_vendor" = xsequent; then
14536 # Use $CC to link under sequent, because it throws in some extra .o
14537 # files that make .init and .fini sections work.
14538 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14539 else
14540 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14541 fi
14542 hardcode_libdir_flag_spec_F77='-L$libdir'
14543 hardcode_direct_F77=yes
14544 hardcode_minus_L_F77=yes
14545 hardcode_shlibpath_var_F77=no
14546 ;;
14547
14548 sysv4)
14549 case $host_vendor in
14550 sni)
14551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14552 hardcode_direct_F77=yes # is this really true???
14553 ;;
14554 siemens)
14555 ## LD is ld it makes a PLAMLIB
14556 ## CC just makes a GrossModule.
14557 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14558 reload_cmds_F77='$CC -r -o $output$reload_objs'
14559 hardcode_direct_F77=no
14560 ;;
14561 motorola)
14562 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14563 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14564 ;;
14565 esac
14566 runpath_var='LD_RUN_PATH'
14567 hardcode_shlibpath_var_F77=no
14568 ;;
14569
14570 sysv4.3*)
14571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14572 hardcode_shlibpath_var_F77=no
14573 export_dynamic_flag_spec_F77='-Bexport'
14574 ;;
14575
14576 sysv4*MP*)
14577 if test -d /usr/nec; then
14578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14579 hardcode_shlibpath_var_F77=no
14580 runpath_var=LD_RUN_PATH
14581 hardcode_runpath_var=yes
14582 ld_shlibs_F77=yes
14583 fi
14584 ;;
14585
14586 sysv4.2uw2*)
14587 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14588 hardcode_direct_F77=yes
14589 hardcode_minus_L_F77=no
14590 hardcode_shlibpath_var_F77=no
14591 hardcode_runpath_var=yes
14592 runpath_var=LD_RUN_PATH
14593 ;;
14594
14595 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14596 no_undefined_flag_F77='${wl}-z ${wl}text'
14597 if test "$GCC" = yes; then
14598 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 else
14600 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14601 fi
14602 runpath_var='LD_RUN_PATH'
14603 hardcode_shlibpath_var_F77=no
14604 ;;
14605
14606 sysv5*)
14607 no_undefined_flag_F77=' -z text'
14608 # $CC -shared without GNU ld will not create a library from C++
14609 # object files and a static libstdc++, better avoid it by now
14610 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14611 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
14612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
14613 hardcode_libdir_flag_spec_F77=
14614 hardcode_shlibpath_var_F77=no
14615 runpath_var='LD_RUN_PATH'
14616 ;;
14617
14618 uts4*)
14619 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14620 hardcode_libdir_flag_spec_F77='-L$libdir'
14621 hardcode_shlibpath_var_F77=no
14622 ;;
14623
14624 *)
14625 ld_shlibs_F77=no
14626 ;;
14627 esac
14628 fi
14629
14630 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14631 echo "${ECHO_T}$ld_shlibs_F77" >&6
14632 test "$ld_shlibs_F77" = no && can_build_shared=no
14633
14634 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14635 if test "$GCC" = yes; then
14636 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14637 fi
14638
14639 #
14640 # Do we need to explicitly link libc?
14641 #
14642 case "x$archive_cmds_need_lc_F77" in
14643 x|xyes)
14644 # Assume -lc should be added
14645 archive_cmds_need_lc_F77=yes
14646
14647 if test "$enable_shared" = yes && test "$GCC" = yes; then
14648 case $archive_cmds_F77 in
14649 *"$_S_"*)
14650 # FIXME: we may have to deal with multi-command sequences.
14651 ;;
14652 '$CC '*)
14653 # Test whether the compiler implicitly links with -lc since on some
14654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14655 # to ld, don't add -lc before -lgcc.
14656 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14657 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14658 $rm conftest*
14659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14660
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } 2>conftest.err; then
14666 soname=conftest
14667 lib=conftest
14668 libobjs=conftest.$ac_objext
14669 deplibs=
14670 wl=$lt_prog_compiler_wl_F77
14671 compiler_flags=-v
14672 linker_flags=-v
14673 verstring=
14674 output_objdir=.
14675 libname=conftest
14676 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14677 allow_undefined_flag_F77=
14678 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14679 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }
14683 then
14684 archive_cmds_need_lc_F77=no
14685 else
14686 archive_cmds_need_lc_F77=yes
14687 fi
14688 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14689 else
14690 cat conftest.err 1>&5
14691 fi
14692 $rm conftest*
14693 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14694 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14695 ;;
14696 esac
14697 fi
14698 ;;
14699 esac
14700
14701 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14702 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14703 hardcode_action_F77=
14704 if test -n "$hardcode_libdir_flag_spec_F77" || \
14705 test -n "$runpath_var F77" || \
14706 test "X$hardcode_automatic_F77"="Xyes" ; then
14707
14708 # We can hardcode non-existant directories.
14709 if test "$hardcode_direct_F77" != no &&
14710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14711 # have to relink, otherwise we might link with an installed library
14712 # when we should be linking with a yet-to-be-installed one
14713 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14714 test "$hardcode_minus_L_F77" != no; then
14715 # Linking always hardcodes the temporary library directory.
14716 hardcode_action_F77=relink
14717 else
14718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14719 hardcode_action_F77=immediate
14720 fi
14721 else
14722 # We cannot hardcode anything, or else we can only hardcode existing
14723 # directories.
14724 hardcode_action_F77=unsupported
14725 fi
14726 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14727 echo "${ECHO_T}$hardcode_action_F77" >&6
14728
14729 if test "$hardcode_action_F77" = relink; then
14730 # Fast installation is not supported
14731 enable_fast_install=no
14732 elif test "$shlibpath_overrides_runpath" = yes ||
14733 test "$enable_shared" = no; then
14734 # Fast installation is not necessary
14735 enable_fast_install=needless
14736 fi
14737
14738 striplib=
14739 old_striplib=
14740 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14741 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14742 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14743 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14744 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14745 echo "$as_me:$LINENO: result: yes" >&5
14746 echo "${ECHO_T}yes" >&6
14747 else
14748 # FIXME - insert some real tests, host_os isn't really good enough
14749 case $host_os in
14750 NOT-darwin*)
14751 if test -n "$STRIP" ; then
14752 striplib="$STRIP -x"
14753 echo "$as_me:$LINENO: result: yes" >&5
14754 echo "${ECHO_T}yes" >&6
14755 else
14756 echo "$as_me:$LINENO: result: no" >&5
14757 echo "${ECHO_T}no" >&6
14758 fi
14759 ;;
14760 *)
14761 echo "$as_me:$LINENO: result: no" >&5
14762 echo "${ECHO_T}no" >&6
14763 ;;
14764 esac
14765 fi
14766
14767 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14769 library_names_spec=
14770 libname_spec='lib$name'
14771 soname_spec=
14772 shrext=".so"
14773 postinstall_cmds=
14774 postuninstall_cmds=
14775 finish_cmds=
14776 finish_eval=
14777 shlibpath_var=
14778 shlibpath_overrides_runpath=unknown
14779 version_type=none
14780 dynamic_linker="$host_os ld.so"
14781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14782 if test "$GCC" = yes; then
14783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14785 # if the path contains ";" then we assume it to be the separator
14786 # otherwise default to the standard path separator (i.e. ":") - it is
14787 # assumed that no part of a normal pathname contains ";" but that should
14788 # okay in the real world where ";" in dirpaths is itself problematic.
14789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14790 else
14791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14792 fi
14793 else
14794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14795 fi
14796 need_lib_prefix=unknown
14797 hardcode_into_libs=no
14798
14799 # when you set need_version to no, make sure it does not cause -set_version
14800 # flags to be left without arguments
14801 need_version=unknown
14802
14803 case $host_os in
14804 aix3*)
14805 version_type=linux
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14807 shlibpath_var=LIBPATH
14808
14809 # AIX 3 has no versioning support, so we append a major version to the name.
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 ;;
14812
14813 aix4* | aix5*)
14814 version_type=linux
14815 need_lib_prefix=no
14816 need_version=no
14817 hardcode_into_libs=yes
14818 if test "$host_cpu" = ia64; then
14819 # AIX 5 supports IA64
14820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 else
14823 # With GCC up to 2.95.x, collect2 would create an import file
14824 # for dependence libraries. The import file would start with
14825 # the line `#! .'. This would cause the generated library to
14826 # depend on `.', always an invalid library. This was fixed in
14827 # development snapshots of GCC prior to 3.0.
14828 case $host_os in
14829 aix4 | aix4.[01] | aix4.[01].*)
14830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14831 echo ' yes '
14832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14833 :
14834 else
14835 can_build_shared=no
14836 fi
14837 ;;
14838 esac
14839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14840 # soname into executable. Probably we can add versioning support to
14841 # collect2, so additional links can be useful in future.
14842 if test "$aix_use_runtimelinking" = yes; then
14843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14844 # instead of lib<name>.a to let people know that these are not
14845 # typical AIX shared libraries.
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 else
14848 # We preserve .a as extension for shared libraries through AIX4.2
14849 # and later when we are not doing run time linking.
14850 library_names_spec='${libname}${release}.a $libname.a'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 fi
14853 shlibpath_var=LIBPATH
14854 fi
14855 ;;
14856
14857 amigaos*)
14858 library_names_spec='$libname.ixlibrary $libname.a'
14859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14860 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'
14861 ;;
14862
14863 beos*)
14864 library_names_spec='${libname}${shared_ext}'
14865 dynamic_linker="$host_os ld.so"
14866 shlibpath_var=LIBRARY_PATH
14867 ;;
14868
14869 bsdi4*)
14870 version_type=linux
14871 need_version=no
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14878 # the default ld.so.conf also contains /usr/contrib/lib and
14879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14880 # libtool to hard-code these into programs
14881 ;;
14882
14883 cygwin* | mingw* | pw32*)
14884 version_type=windows
14885 shrext=".dll"
14886 need_version=no
14887 need_lib_prefix=no
14888
14889 case $GCC,$host_os in
14890 yes,cygwin* | yes,mingw* | yes,pw32*)
14891 library_names_spec='$libname.dll.a'
14892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14893 postinstall_cmds='base_file=`basename \${file}`${_S_}
14894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
14895 dldir=$destdir/`dirname \$dlpath`${_S_}
14896 test -d \$dldir || mkdir -p \$dldir${_S_}
14897 $install_prog $dir/$dlname \$dldir/$dlname'
14898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
14899 dlpath=$dir/\$dldll${_S_}
14900 $rm \$dlpath'
14901 shlibpath_overrides_runpath=yes
14902
14903 case $host_os in
14904 cygwin*)
14905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14907 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14908 ;;
14909 mingw*)
14910 # MinGW DLLs use traditional 'lib' prefix
14911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14913 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14914 # It is most probably a Windows format PATH printed by
14915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14916 # path with ; separators, and with drive letters. We can handle the
14917 # drive letters (cygwin fileutils understands them), so leave them,
14918 # especially as we might pass files found there to a mingw objdump,
14919 # which wouldn't understand a cygwinified path. Ahh.
14920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14921 else
14922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14923 fi
14924 ;;
14925 pw32*)
14926 # pw32 DLLs use 'pw' prefix rather than 'lib'
14927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14928 ;;
14929 esac
14930 ;;
14931
14932 *)
14933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14934 ;;
14935 esac
14936 dynamic_linker='Win32 ld.exe'
14937 # FIXME: first we should search . and the directory the executable is in
14938 shlibpath_var=PATH
14939 ;;
14940
14941 darwin* | rhapsody*)
14942 dynamic_linker="$host_os dyld"
14943 version_type=darwin
14944 need_lib_prefix=no
14945 need_version=no
14946 # FIXME: Relying on posixy $() will cause problems for
14947 # cross-compilation, but unfortunately the echo tests do not
14948 # yet detect zsh echo's removal of \ escapes.
14949 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
14950 soname_spec='${libname}${release}${major}$shared_ext'
14951 shlibpath_overrides_runpath=yes
14952 shlibpath_var=DYLD_LIBRARY_PATH
14953 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14954 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14955 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14956 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"`
14957 fi
14958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14959 ;;
14960
14961 dgux*)
14962 version_type=linux
14963 need_lib_prefix=no
14964 need_version=no
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14966 soname_spec='${libname}${release}${shared_ext}$major'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 ;;
14969
14970 freebsd1*)
14971 dynamic_linker=no
14972 ;;
14973
14974 freebsd*)
14975 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14976 version_type=freebsd-$objformat
14977 case $version_type in
14978 freebsd-elf*)
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14980 need_version=no
14981 need_lib_prefix=no
14982 ;;
14983 freebsd-*)
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14985 need_version=yes
14986 ;;
14987 esac
14988 shlibpath_var=LD_LIBRARY_PATH
14989 case $host_os in
14990 freebsd2*)
14991 shlibpath_overrides_runpath=yes
14992 ;;
14993 freebsd3.01* | freebsdelf3.01*)
14994 shlibpath_overrides_runpath=yes
14995 hardcode_into_libs=yes
14996 ;;
14997 *) # from 3.2 on
14998 shlibpath_overrides_runpath=no
14999 hardcode_into_libs=yes
15000 ;;
15001 esac
15002 ;;
15003
15004 gnu*)
15005 version_type=linux
15006 need_lib_prefix=no
15007 need_version=no
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15009 soname_spec='${libname}${release}${shared_ext}$major'
15010 shlibpath_var=LD_LIBRARY_PATH
15011 hardcode_into_libs=yes
15012 ;;
15013
15014 hpux9* | hpux10* | hpux11*)
15015 # Give a soname corresponding to the major version so that dld.sl refuses to
15016 # link against other versions.
15017 version_type=sunos
15018 need_lib_prefix=no
15019 need_version=no
15020 case "$host_cpu" in
15021 ia64*)
15022 shrext='.so'
15023 hardcode_into_libs=yes
15024 dynamic_linker="$host_os dld.so"
15025 shlibpath_var=LD_LIBRARY_PATH
15026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15029 if test "X$HPUX_IA64_MODE" = X32; then
15030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15031 else
15032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15033 fi
15034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15035 ;;
15036 hppa*64*)
15037 shrext='.sl'
15038 hardcode_into_libs=yes
15039 dynamic_linker="$host_os dld.sl"
15040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15046 ;;
15047 *)
15048 shrext='.sl'
15049 dynamic_linker="$host_os dld.sl"
15050 shlibpath_var=SHLIB_PATH
15051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053 soname_spec='${libname}${release}${shared_ext}$major'
15054 ;;
15055 esac
15056 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15057 postinstall_cmds='chmod 555 $lib'
15058 ;;
15059
15060 irix5* | irix6* | nonstopux*)
15061 case $host_os in
15062 nonstopux*) version_type=nonstopux ;;
15063 *)
15064 if test "$lt_cv_prog_gnu_ld" = yes; then
15065 version_type=linux
15066 else
15067 version_type=irix
15068 fi ;;
15069 esac
15070 need_lib_prefix=no
15071 need_version=no
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15074 case $host_os in
15075 irix5* | nonstopux*)
15076 libsuff= shlibsuff=
15077 ;;
15078 *)
15079 case $LD in # libtool.m4 will add one of these switches to LD
15080 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15081 libsuff= shlibsuff= libmagic=32-bit;;
15082 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15083 libsuff=32 shlibsuff=N32 libmagic=N32;;
15084 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15085 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15086 *) libsuff= shlibsuff= libmagic=never-match;;
15087 esac
15088 ;;
15089 esac
15090 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15091 shlibpath_overrides_runpath=no
15092 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15093 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15094 hardcode_into_libs=yes
15095 ;;
15096
15097 # No shared lib support for Linux oldld, aout, or coff.
15098 linux*oldld* | linux*aout* | linux*coff*)
15099 dynamic_linker=no
15100 ;;
15101
15102 # This must be Linux ELF.
15103 linux*)
15104 version_type=linux
15105 need_lib_prefix=no
15106 need_version=no
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=no
15112 # This implies no fast_install, which is unacceptable.
15113 # Some rework will be needed to allow for fast_install
15114 # before this can be enabled.
15115 hardcode_into_libs=yes
15116
15117 # We used to test for /lib/ld.so.1 and disable shared libraries on
15118 # powerpc, because MkLinux only supported shared libraries with the
15119 # GNU dynamic linker. Since this was broken with cross compilers,
15120 # most powerpc-linux boxes support dynamic linking these days and
15121 # people can always --disable-shared, the test was removed, and we
15122 # assume the GNU/Linux dynamic linker is in use.
15123 dynamic_linker='GNU/Linux ld.so'
15124 ;;
15125
15126 netbsd*)
15127 version_type=sunos
15128 need_lib_prefix=no
15129 need_version=no
15130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15133 dynamic_linker='NetBSD (a.out) ld.so'
15134 else
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 dynamic_linker='NetBSD ld.elf_so'
15138 fi
15139 shlibpath_var=LD_LIBRARY_PATH
15140 shlibpath_overrides_runpath=yes
15141 hardcode_into_libs=yes
15142 ;;
15143
15144 newsos6)
15145 version_type=linux
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 shlibpath_var=LD_LIBRARY_PATH
15148 shlibpath_overrides_runpath=yes
15149 ;;
15150
15151 nto-qnx)
15152 version_type=linux
15153 need_lib_prefix=no
15154 need_version=no
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15156 soname_spec='${libname}${release}${shared_ext}$major'
15157 shlibpath_var=LD_LIBRARY_PATH
15158 shlibpath_overrides_runpath=yes
15159 ;;
15160
15161 openbsd*)
15162 version_type=sunos
15163 need_lib_prefix=no
15164 need_version=no
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15167 shlibpath_var=LD_LIBRARY_PATH
15168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15169 case $host_os in
15170 openbsd2.[89] | openbsd2.[89].*)
15171 shlibpath_overrides_runpath=no
15172 ;;
15173 *)
15174 shlibpath_overrides_runpath=yes
15175 ;;
15176 esac
15177 else
15178 shlibpath_overrides_runpath=yes
15179 fi
15180 ;;
15181
15182 os2*)
15183 libname_spec='$name'
15184 shrext=".dll"
15185 need_lib_prefix=no
15186 library_names_spec='$libname${shared_ext} $libname.a'
15187 dynamic_linker='OS/2 ld.exe'
15188 shlibpath_var=LIBPATH
15189 ;;
15190
15191 osf3* | osf4* | osf5*)
15192 version_type=osf
15193 need_lib_prefix=no
15194 need_version=no
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197 shlibpath_var=LD_LIBRARY_PATH
15198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15200 ;;
15201
15202 sco3.2v5*)
15203 version_type=osf
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 ;;
15208
15209 solaris*)
15210 version_type=linux
15211 need_lib_prefix=no
15212 need_version=no
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 shlibpath_overrides_runpath=yes
15217 hardcode_into_libs=yes
15218 # ldd complains unless libraries are executable
15219 postinstall_cmds='chmod +x $lib'
15220 ;;
15221
15222 sunos4*)
15223 version_type=sunos
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 shlibpath_overrides_runpath=yes
15228 if test "$with_gnu_ld" = yes; then
15229 need_lib_prefix=no
15230 fi
15231 need_version=yes
15232 ;;
15233
15234 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15235 version_type=linux
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 case $host_vendor in
15240 sni)
15241 shlibpath_overrides_runpath=no
15242 need_lib_prefix=no
15243 export_dynamic_flag_spec='${wl}-Blargedynsym'
15244 runpath_var=LD_RUN_PATH
15245 ;;
15246 siemens)
15247 need_lib_prefix=no
15248 ;;
15249 motorola)
15250 need_lib_prefix=no
15251 need_version=no
15252 shlibpath_overrides_runpath=no
15253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15254 ;;
15255 esac
15256 ;;
15257
15258 sysv4*MP*)
15259 if test -d /usr/nec ;then
15260 version_type=linux
15261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15262 soname_spec='$libname${shared_ext}.$major'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 fi
15265 ;;
15266
15267 uts4*)
15268 version_type=linux
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 ;;
15273
15274 *)
15275 dynamic_linker=no
15276 ;;
15277 esac
15278 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15279 echo "${ECHO_T}$dynamic_linker" >&6
15280 test "$dynamic_linker" = no && can_build_shared=no
15281
15282
15283 # The else clause should only fire when bootstrapping the
15284 # libtool distribution, otherwise you forgot to ship ltmain.sh
15285 # with your package, and you will get complaints that there are
15286 # no rules to generate ltmain.sh.
15287 if test -f "$ltmain"; then
15288 # See if we are running on zsh, and set the options which allow our commands through
15289 # without removal of \ escapes.
15290 if test -n "${ZSH_VERSION+set}" ; then
15291 setopt NO_GLOB_SUBST
15292 fi
15293 # Now quote all the things that may contain metacharacters while being
15294 # careful not to overquote the AC_SUBSTed values. We take copies of the
15295 # variables and quote the copies for generation of the libtool script.
15296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15299 deplibs_check_method reload_flag reload_cmds need_locks \
15300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15301 lt_cv_sys_global_symbol_to_c_name_address \
15302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15303 old_postinstall_cmds old_postuninstall_cmds \
15304 compiler_F77 \
15305 CC_F77 \
15306 LD_F77 \
15307 lt_prog_compiler_wl_F77 \
15308 lt_prog_compiler_pic_F77 \
15309 lt_prog_compiler_static_F77 \
15310 lt_prog_compiler_no_builtin_flag_F77 \
15311 export_dynamic_flag_spec_F77 \
15312 thread_safe_flag_spec_F77 \
15313 whole_archive_flag_spec_F77 \
15314 enable_shared_with_static_runtimes_F77 \
15315 old_archive_cmds_F77 \
15316 old_archive_from_new_cmds_F77 \
15317 predep_objects_F77 \
15318 postdep_objects_F77 \
15319 predeps_F77 \
15320 postdeps_F77 \
15321 compiler_lib_search_path_F77 \
15322 archive_cmds_F77 \
15323 archive_expsym_cmds_F77 \
15324 postinstall_cmds_F77 \
15325 postuninstall_cmds_F77 \
15326 old_archive_from_expsyms_cmds_F77 \
15327 allow_undefined_flag_F77 \
15328 no_undefined_flag_F77 \
15329 export_symbols_cmds_F77 \
15330 hardcode_libdir_flag_spec_F77 \
15331 hardcode_libdir_flag_spec_ld_F77 \
15332 hardcode_libdir_separator_F77 \
15333 hardcode_automatic_F77 \
15334 module_cmds_F77 \
15335 module_expsym_cmds_F77 \
15336 lt_cv_prog_compiler_c_o_F77 \
15337 exclude_expsyms_F77 \
15338 include_expsyms_F77; do
15339
15340 case $var in
15341 old_archive_cmds_F77 | \
15342 old_archive_from_new_cmds_F77 | \
15343 archive_cmds_F77 | \
15344 archive_expsym_cmds_F77 | \
15345 module_cmds_F77 | \
15346 module_expsym_cmds_F77 | \
15347 old_archive_from_expsyms_cmds_F77 | \
15348 export_symbols_cmds_F77 | \
15349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15350 postinstall_cmds | postuninstall_cmds | \
15351 old_postinstall_cmds | old_postuninstall_cmds | \
15352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15353 # Double-quote double-evaled strings.
15354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
15355 ;;
15356 *)
15357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15358 ;;
15359 esac
15360 done
15361
15362 case $lt_echo in
15363 *'\$0 --fallback-echo"')
15364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15365 ;;
15366 esac
15367
15368 cfgfile="$ofile"
15369
15370 cat <<__EOF__ >> "$cfgfile"
15371 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15372
15373 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15374
15375 # Set the command separator (default: ~)
15376 _S_=\${LIBTOOL_CMD_SEP-\~}
15377
15378 # Shell to use when invoking shell scripts.
15379 SHELL=$lt_SHELL
15380
15381 # Whether or not to build shared libraries.
15382 build_libtool_libs=$enable_shared
15383
15384 # Whether or not to build static libraries.
15385 build_old_libs=$enable_static
15386
15387 # Whether or not to add -lc for building shared libraries.
15388 build_libtool_need_lc=$archive_cmds_need_lc_F77
15389
15390 # Whether or not to disallow shared libs when runtime libs are static
15391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15392
15393 # Whether or not to optimize for fast installation.
15394 fast_install=$enable_fast_install
15395
15396 # The host system.
15397 host_alias=$host_alias
15398 host=$host
15399
15400 # An echo program that does not interpret backslashes.
15401 echo=$lt_echo
15402
15403 # The archiver.
15404 AR=$lt_AR
15405 AR_FLAGS=$lt_AR_FLAGS
15406
15407 # A C compiler.
15408 LTCC=$lt_LTCC
15409
15410 # A language-specific compiler.
15411 CC=$lt_compiler_F77
15412
15413 # Is the compiler the GNU C compiler?
15414 with_gcc=$GCC_F77
15415
15416 # An ERE matcher.
15417 EGREP=$lt_EGREP
15418
15419 # The linker used to build libraries.
15420 LD=$lt_LD_F77
15421
15422 # Whether we need hard or soft links.
15423 LN_S=$lt_LN_S
15424
15425 # A BSD-compatible nm program.
15426 NM=$lt_NM
15427
15428 # A symbol stripping program
15429 STRIP=$STRIP
15430
15431 # Used to examine libraries when file_magic_cmd begins "file"
15432 MAGIC_CMD=$MAGIC_CMD
15433
15434 # Used on cygwin: DLL creation program.
15435 DLLTOOL="$DLLTOOL"
15436
15437 # Used on cygwin: object dumper.
15438 OBJDUMP="$OBJDUMP"
15439
15440 # Used on cygwin: assembler.
15441 AS="$AS"
15442
15443 # The name of the directory that contains temporary libtool files.
15444 objdir=$objdir
15445
15446 # How to create reloadable object files.
15447 reload_flag=$lt_reload_flag
15448 reload_cmds=$lt_reload_cmds
15449
15450 # How to pass a linker flag through the compiler.
15451 wl=$lt_lt_prog_compiler_wl_F77
15452
15453 # Object file suffix (normally "o").
15454 objext="$ac_objext"
15455
15456 # Old archive suffix (normally "a").
15457 libext="$libext"
15458
15459 # Shared library suffix (normally ".so").
15460 shrext='$shrext'
15461
15462 # Executable file suffix (normally "").
15463 exeext="$exeext"
15464
15465 # Additional compiler flags for building library objects.
15466 pic_flag=$lt_lt_prog_compiler_pic_F77
15467 pic_mode=$pic_mode
15468
15469 # What is the maximum length of a command?
15470 max_cmd_len=$lt_cv_sys_max_cmd_len
15471
15472 # Does compiler simultaneously support -c and -o options?
15473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15474
15475 # Must we lock files when doing compilation ?
15476 need_locks=$lt_need_locks
15477
15478 # Do we need the lib prefix for modules?
15479 need_lib_prefix=$need_lib_prefix
15480
15481 # Do we need a version for libraries?
15482 need_version=$need_version
15483
15484 # Whether dlopen is supported.
15485 dlopen_support=$enable_dlopen
15486
15487 # Whether dlopen of programs is supported.
15488 dlopen_self=$enable_dlopen_self
15489
15490 # Whether dlopen of statically linked programs is supported.
15491 dlopen_self_static=$enable_dlopen_self_static
15492
15493 # Compiler flag to prevent dynamic linking.
15494 link_static_flag=$lt_lt_prog_compiler_static_F77
15495
15496 # Compiler flag to turn off builtin functions.
15497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15498
15499 # Compiler flag to allow reflexive dlopens.
15500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15501
15502 # Compiler flag to generate shared objects directly from archives.
15503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15504
15505 # Compiler flag to generate thread-safe objects.
15506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15507
15508 # Library versioning type.
15509 version_type=$version_type
15510
15511 # Format of library name prefix.
15512 libname_spec=$lt_libname_spec
15513
15514 # List of archive names. First name is the real one, the rest are links.
15515 # The last name is the one that the linker finds with -lNAME.
15516 library_names_spec=$lt_library_names_spec
15517
15518 # The coded name of the library, if different from the real name.
15519 soname_spec=$lt_soname_spec
15520
15521 # Commands used to build and install an old-style archive.
15522 RANLIB=$lt_RANLIB
15523 old_archive_cmds=$lt_old_archive_cmds_F77
15524 old_postinstall_cmds=$lt_old_postinstall_cmds
15525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15526
15527 # Create an old-style archive from a shared archive.
15528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15529
15530 # Create a temporary old-style archive to link instead of a shared archive.
15531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15532
15533 # Commands used to build and install a shared archive.
15534 archive_cmds=$lt_archive_cmds_F77
15535 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15536 postinstall_cmds=$lt_postinstall_cmds
15537 postuninstall_cmds=$lt_postuninstall_cmds
15538
15539 # Commands used to build a loadable module (assumed same as above if empty)
15540 module_cmds=$lt_module_cmds_F77
15541 module_expsym_cmds=$lt_module_expsym_cmds_F77
15542
15543 # Commands to strip libraries.
15544 old_striplib=$lt_old_striplib
15545 striplib=$lt_striplib
15546
15547 # Dependencies to place before the objects being linked to create a
15548 # shared library.
15549 predep_objects=$lt_predep_objects_F77
15550
15551 # Dependencies to place after the objects being linked to create a
15552 # shared library.
15553 postdep_objects=$lt_postdep_objects_F77
15554
15555 # Dependencies to place before the objects being linked to create a
15556 # shared library.
15557 predeps=$lt_predeps_F77
15558
15559 # Dependencies to place after the objects being linked to create a
15560 # shared library.
15561 postdeps=$lt_postdeps_F77
15562
15563 # The library search path used internally by the compiler when linking
15564 # a shared library.
15565 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15566
15567 # Method to check whether dependent libraries are shared objects.
15568 deplibs_check_method=$lt_deplibs_check_method
15569
15570 # Command to use when deplibs_check_method == file_magic.
15571 file_magic_cmd=$lt_file_magic_cmd
15572
15573 # Flag that allows shared libraries with undefined symbols to be built.
15574 allow_undefined_flag=$lt_allow_undefined_flag_F77
15575
15576 # Flag that forces no undefined symbols.
15577 no_undefined_flag=$lt_no_undefined_flag_F77
15578
15579 # Commands used to finish a libtool library installation in a directory.
15580 finish_cmds=$lt_finish_cmds
15581
15582 # Same as above, but a single script fragment to be evaled but not shown.
15583 finish_eval=$lt_finish_eval
15584
15585 # Take the output of nm and produce a listing of raw symbols and C names.
15586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15587
15588 # Transform the output of nm in a proper C declaration
15589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15590
15591 # Transform the output of nm in a C name address pair
15592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15593
15594 # This is the shared library runtime path variable.
15595 runpath_var=$runpath_var
15596
15597 # This is the shared library path variable.
15598 shlibpath_var=$shlibpath_var
15599
15600 # Is shlibpath searched before the hard-coded library search path?
15601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15602
15603 # How to hardcode a shared library path into an executable.
15604 hardcode_action=$hardcode_action_F77
15605
15606 # Whether we should hardcode library paths into libraries.
15607 hardcode_into_libs=$hardcode_into_libs
15608
15609 # Flag to hardcode \$libdir into a binary during linking.
15610 # This must work even if \$libdir does not exist.
15611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15612
15613 # If ld is used when linking, flag to hardcode \$libdir into
15614 # a binary during linking. This must work even if \$libdir does
15615 # not exist.
15616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15617
15618 # Whether we need a single -rpath flag with a separated argument.
15619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15620
15621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15622 # resulting binary.
15623 hardcode_direct=$hardcode_direct_F77
15624
15625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15626 # resulting binary.
15627 hardcode_minus_L=$hardcode_minus_L_F77
15628
15629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15630 # the resulting binary.
15631 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15632
15633 # Set to yes if building a shared library automatically hardcodes DIR into the library
15634 # and all subsequent libraries and executables linked against it.
15635 hardcode_automatic=$hardcode_automatic_F77
15636
15637 # Variables whose values should be saved in libtool wrapper scripts and
15638 # restored at relink time.
15639 variables_saved_for_relink="$variables_saved_for_relink"
15640
15641 # Whether libtool must link a program against all its dependency libraries.
15642 link_all_deplibs=$link_all_deplibs_F77
15643
15644 # Compile-time system search path for libraries
15645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15646
15647 # Run-time system search path for libraries
15648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15649
15650 # Fix the shell variable \$srcfile for the compiler.
15651 fix_srcfile_path="$fix_srcfile_path_F77"
15652
15653 # Set to yes if exported symbols are required.
15654 always_export_symbols=$always_export_symbols_F77
15655
15656 # The commands to list exported symbols.
15657 export_symbols_cmds=$lt_export_symbols_cmds_F77
15658
15659 # The commands to extract the exported symbol list from a shared archive.
15660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15661
15662 # Symbols that should not be listed in the preloaded symbols.
15663 exclude_expsyms=$lt_exclude_expsyms_F77
15664
15665 # Symbols that must always be exported.
15666 include_expsyms=$lt_include_expsyms_F77
15667
15668 # ### END LIBTOOL TAG CONFIG: $tagname
15669
15670 __EOF__
15671
15672
15673 else
15674 # If there is no Makefile yet, we rely on a make rule to execute
15675 # `config.status --recheck' to rerun these tests and create the
15676 # libtool script then.
15677 test -f Makefile && make "$ltmain"
15678 fi
15679
15680
15681 ac_ext=c
15682 ac_cpp='$CPP $CPPFLAGS'
15683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15686
15687 CC="$lt_save_CC"
15688
15689 else
15690 tagname=""
15691 fi
15692 ;;
15693
15694 GCJ)
15695 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15696
15697
15698
15699 # Source file extension for Java test sources.
15700 ac_ext=java
15701
15702 # Object file extension for compiled Java test sources.
15703 objext=o
15704 objext_GCJ=$objext
15705
15706 # Code to be used in simple compile tests
15707 lt_simple_compile_test_code="class foo {}\n"
15708
15709 # Code to be used in simple link tests
15710 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15711
15712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15713
15714 # If no C compiler was specified, use CC.
15715 LTCC=${LTCC-"$CC"}
15716
15717 # Allow CC to be a program name with arguments.
15718 compiler=$CC
15719
15720
15721 # Allow CC to be a program name with arguments.
15722 lt_save_CC="$CC"
15723 CC=${GCJ-"gcj"}
15724 compiler=$CC
15725 compiler_GCJ=$CC
15726
15727 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15728 archive_cmds_need_lc_GCJ=no
15729
15730
15731 lt_prog_compiler_no_builtin_flag_GCJ=
15732
15733 if test "$GCC" = yes; then
15734 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15735
15736 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15737 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15738 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741 lt_cv_prog_compiler_rtti_exceptions=no
15742 ac_outfile=conftest.$ac_objext
15743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15744 lt_compiler_flag="-fno-rtti -fno-exceptions"
15745 # Insert the option either (1) after the last *FLAGS variable, or
15746 # (2) before a word containing "conftest.", or (3) at the end.
15747 # Note that $ac_compile itself does not contain backslashes and begins
15748 # with a dollar sign (not a hyphen), so the echo should work correctly.
15749 # The option is referenced via a variable to avoid confusing sed.
15750 lt_compile=`echo "$ac_compile" | $SED \
15751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15753 -e 's:$: $lt_compiler_flag:'`
15754 (eval echo "\"\$as_me:15754: $lt_compile\"" >&5)
15755 (eval "$lt_compile" 2>conftest.err)
15756 ac_status=$?
15757 cat conftest.err >&5
15758 echo "$as_me:15758: \$? = $ac_status" >&5
15759 if (exit $ac_status) && test -s "$ac_outfile"; then
15760 # The compiler can only warn and ignore the option if not recognized
15761 # So say no if there are warnings
15762 if test ! -s conftest.err; then
15763 lt_cv_prog_compiler_rtti_exceptions=yes
15764 fi
15765 fi
15766 $rm conftest*
15767
15768 fi
15769 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15770 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15771
15772 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15773 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15774 else
15775 :
15776 fi
15777
15778 fi
15779
15780 lt_prog_compiler_wl_GCJ=
15781 lt_prog_compiler_pic_GCJ=
15782 lt_prog_compiler_static_GCJ=
15783
15784 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15785 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15786
15787 if test "$GCC" = yes; then
15788 lt_prog_compiler_wl_GCJ='-Wl,'
15789 lt_prog_compiler_static_GCJ='-static'
15790
15791 case $host_os in
15792 aix*)
15793 # All AIX code is PIC.
15794 if test "$host_cpu" = ia64; then
15795 # AIX 5 now supports IA64 processor
15796 lt_prog_compiler_static_GCJ='-Bstatic'
15797 fi
15798 ;;
15799
15800 amigaos*)
15801 # FIXME: we need at least 68020 code to build shared libraries, but
15802 # adding the `-m68020' flag to GCC prevents building anything better,
15803 # like `-m68040'.
15804 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15805 ;;
15806
15807 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15808 # PIC is the default for these OSes.
15809 ;;
15810
15811 mingw* | pw32* | os2*)
15812 # This hack is so that the source file can tell whether it is being
15813 # built for inclusion in a dll (and should export symbols for example).
15814 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15815 ;;
15816
15817 darwin* | rhapsody*)
15818 # PIC is the default on this platform
15819 # Common symbols not allowed in MH_DYLIB files
15820 lt_prog_compiler_pic_GCJ='-fno-common'
15821 ;;
15822
15823 msdosdjgpp*)
15824 # Just because we use GCC doesn't mean we suddenly get shared libraries
15825 # on systems that don't support them.
15826 lt_prog_compiler_can_build_shared_GCJ=no
15827 enable_shared=no
15828 ;;
15829
15830 sysv4*MP*)
15831 if test -d /usr/nec; then
15832 lt_prog_compiler_pic_GCJ=-Kconform_pic
15833 fi
15834 ;;
15835
15836 hpux*)
15837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15838 # not for PA HP-UX.
15839 case "$host_cpu" in
15840 hppa*64*|ia64*)
15841 # +Z the default
15842 ;;
15843 *)
15844 lt_prog_compiler_pic_GCJ='-fPIC'
15845 ;;
15846 esac
15847 ;;
15848
15849 *)
15850 lt_prog_compiler_pic_GCJ='-fPIC'
15851 ;;
15852 esac
15853 else
15854 # PORTME Check for flag to pass linker flags through the system compiler.
15855 case $host_os in
15856 aix*)
15857 lt_prog_compiler_wl_GCJ='-Wl,'
15858 if test "$host_cpu" = ia64; then
15859 # AIX 5 now supports IA64 processor
15860 lt_prog_compiler_static_GCJ='-Bstatic'
15861 else
15862 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15863 fi
15864 ;;
15865
15866 mingw* | pw32* | os2*)
15867 # This hack is so that the source file can tell whether it is being
15868 # built for inclusion in a dll (and should export symbols for example).
15869 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15870 ;;
15871
15872 hpux9* | hpux10* | hpux11*)
15873 lt_prog_compiler_wl_GCJ='-Wl,'
15874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15875 # not for PA HP-UX.
15876 case "$host_cpu" in
15877 hppa*64*|ia64*)
15878 # +Z the default
15879 ;;
15880 *)
15881 lt_prog_compiler_pic_GCJ='+Z'
15882 ;;
15883 esac
15884 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15885 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15886 ;;
15887
15888 irix5* | irix6* | nonstopux*)
15889 lt_prog_compiler_wl_GCJ='-Wl,'
15890 # PIC (with -KPIC) is the default.
15891 lt_prog_compiler_static_GCJ='-non_shared'
15892 ;;
15893
15894 newsos6)
15895 lt_prog_compiler_pic_GCJ='-KPIC'
15896 lt_prog_compiler_static_GCJ='-Bstatic'
15897 ;;
15898
15899 linux*)
15900 case $CC in
15901 icc|ecc)
15902 lt_prog_compiler_wl_GCJ='-Wl,'
15903 lt_prog_compiler_pic_GCJ='-KPIC'
15904 lt_prog_compiler_static_GCJ='-static'
15905 ;;
15906 ccc)
15907 lt_prog_compiler_wl_GCJ='-Wl,'
15908 # All Alpha code is PIC.
15909 lt_prog_compiler_static_GCJ='-non_shared'
15910 ;;
15911 esac
15912 ;;
15913
15914 osf3* | osf4* | osf5*)
15915 lt_prog_compiler_wl_GCJ='-Wl,'
15916 # All OSF/1 code is PIC.
15917 lt_prog_compiler_static_GCJ='-non_shared'
15918 ;;
15919
15920 sco3.2v5*)
15921 lt_prog_compiler_pic_GCJ='-Kpic'
15922 lt_prog_compiler_static_GCJ='-dn'
15923 ;;
15924
15925 solaris*)
15926 lt_prog_compiler_wl_GCJ='-Wl,'
15927 lt_prog_compiler_pic_GCJ='-KPIC'
15928 lt_prog_compiler_static_GCJ='-Bstatic'
15929 ;;
15930
15931 sunos4*)
15932 lt_prog_compiler_wl_GCJ='-Qoption ld '
15933 lt_prog_compiler_pic_GCJ='-PIC'
15934 lt_prog_compiler_static_GCJ='-Bstatic'
15935 ;;
15936
15937 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15938 lt_prog_compiler_wl_GCJ='-Wl,'
15939 lt_prog_compiler_pic_GCJ='-KPIC'
15940 lt_prog_compiler_static_GCJ='-Bstatic'
15941 ;;
15942
15943 sysv4*MP*)
15944 if test -d /usr/nec ;then
15945 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15946 lt_prog_compiler_static_GCJ='-Bstatic'
15947 fi
15948 ;;
15949
15950 uts4*)
15951 lt_prog_compiler_pic_GCJ='-pic'
15952 lt_prog_compiler_static_GCJ='-Bstatic'
15953 ;;
15954
15955 *)
15956 lt_prog_compiler_can_build_shared_GCJ=no
15957 ;;
15958 esac
15959 fi
15960
15961 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15962 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15963
15964 #
15965 # Check to make sure the PIC flag actually works.
15966 #
15967 if test -n "$lt_prog_compiler_pic_GCJ"; then
15968 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15969 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15970 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 else
15973 lt_prog_compiler_pic_works_GCJ=no
15974 ac_outfile=conftest.$ac_objext
15975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15976 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15977 # Insert the option either (1) after the last *FLAGS variable, or
15978 # (2) before a word containing "conftest.", or (3) at the end.
15979 # Note that $ac_compile itself does not contain backslashes and begins
15980 # with a dollar sign (not a hyphen), so the echo should work correctly.
15981 # The option is referenced via a variable to avoid confusing sed.
15982 lt_compile=`echo "$ac_compile" | $SED \
15983 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15985 -e 's:$: $lt_compiler_flag:'`
15986 (eval echo "\"\$as_me:15986: $lt_compile\"" >&5)
15987 (eval "$lt_compile" 2>conftest.err)
15988 ac_status=$?
15989 cat conftest.err >&5
15990 echo "$as_me:15990: \$? = $ac_status" >&5
15991 if (exit $ac_status) && test -s "$ac_outfile"; then
15992 # The compiler can only warn and ignore the option if not recognized
15993 # So say no if there are warnings
15994 if test ! -s conftest.err; then
15995 lt_prog_compiler_pic_works_GCJ=yes
15996 fi
15997 fi
15998 $rm conftest*
15999
16000 fi
16001 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16002 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16003
16004 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16005 case $lt_prog_compiler_pic_GCJ in
16006 "" | " "*) ;;
16007 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16008 esac
16009 else
16010 lt_prog_compiler_pic_GCJ=
16011 lt_prog_compiler_can_build_shared_GCJ=no
16012 fi
16013
16014 fi
16015 case "$host_os" in
16016 # For platforms which do not support PIC, -DPIC is meaningless:
16017 *djgpp*)
16018 lt_prog_compiler_pic_GCJ=
16019 ;;
16020 *)
16021 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16022 ;;
16023 esac
16024
16025 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16026 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16027 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 else
16030 lt_cv_prog_compiler_c_o_GCJ=no
16031 $rm -r conftest 2>/dev/null
16032 mkdir conftest
16033 cd conftest
16034 mkdir out
16035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16036
16037 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16038 # that will create temporary files in the current directory regardless of
16039 # the output directory. Thus, making CWD read-only will cause this test
16040 # to fail, enabling locking or at least warning the user not to do parallel
16041 # builds.
16042 chmod -w .
16043
16044 lt_compiler_flag="-o out/conftest2.$ac_objext"
16045 # Insert the option either (1) after the last *FLAGS variable, or
16046 # (2) before a word containing "conftest.", or (3) at the end.
16047 # Note that $ac_compile itself does not contain backslashes and begins
16048 # with a dollar sign (not a hyphen), so the echo should work correctly.
16049 lt_compile=`echo "$ac_compile" | $SED \
16050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16052 -e 's:$: $lt_compiler_flag:'`
16053 (eval echo "\"\$as_me:16053: $lt_compile\"" >&5)
16054 (eval "$lt_compile" 2>out/conftest.err)
16055 ac_status=$?
16056 cat out/conftest.err >&5
16057 echo "$as_me:16057: \$? = $ac_status" >&5
16058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16059 then
16060 # The compiler can only warn and ignore the option if not recognized
16061 # So say no if there are warnings
16062 if test ! -s out/conftest.err; then
16063 lt_cv_prog_compiler_c_o_GCJ=yes
16064 fi
16065 fi
16066 chmod u+w .
16067 $rm conftest* out/*
16068 rmdir out
16069 cd ..
16070 rmdir conftest
16071 $rm conftest*
16072
16073 fi
16074 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16076
16077
16078 hard_links="nottested"
16079 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16080 # do not overwrite the value of need_locks provided by the user
16081 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16083 hard_links=yes
16084 $rm conftest*
16085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16086 touch conftest.a
16087 ln conftest.a conftest.b 2>&5 || hard_links=no
16088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16089 echo "$as_me:$LINENO: result: $hard_links" >&5
16090 echo "${ECHO_T}$hard_links" >&6
16091 if test "$hard_links" = no; then
16092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16094 need_locks=warn
16095 fi
16096 else
16097 need_locks=no
16098 fi
16099
16100 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16102
16103 runpath_var=
16104 allow_undefined_flag_GCJ=
16105 enable_shared_with_static_runtimes_GCJ=no
16106 archive_cmds_GCJ=
16107 archive_expsym_cmds_GCJ=
16108 old_archive_From_new_cmds_GCJ=
16109 old_archive_from_expsyms_cmds_GCJ=
16110 export_dynamic_flag_spec_GCJ=
16111 whole_archive_flag_spec_GCJ=
16112 thread_safe_flag_spec_GCJ=
16113 hardcode_libdir_flag_spec_GCJ=
16114 hardcode_libdir_flag_spec_ld_GCJ=
16115 hardcode_libdir_separator_GCJ=
16116 hardcode_direct_GCJ=no
16117 hardcode_minus_L_GCJ=no
16118 hardcode_shlibpath_var_GCJ=unsupported
16119 link_all_deplibs_GCJ=unknown
16120 hardcode_automatic_GCJ=no
16121 module_cmds_GCJ=
16122 module_expsym_cmds_GCJ=
16123 always_export_symbols_GCJ=no
16124 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16125 # include_expsyms should be a list of space-separated symbols to be *always*
16126 # included in the symbol list
16127 include_expsyms_GCJ=
16128 # exclude_expsyms can be an extended regexp of symbols to exclude
16129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16131 # as well as any symbol that contains `d'.
16132 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16134 # platforms (ab)use it in PIC code, but their linkers get confused if
16135 # the symbol is explicitly referenced. Since portable code cannot
16136 # rely on this symbol name, it's probably fine to never include it in
16137 # preloaded symbol tables.
16138 extract_expsyms_cmds=
16139
16140 case $host_os in
16141 cygwin* | mingw* | pw32*)
16142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16143 # When not using gcc, we currently assume that we are using
16144 # Microsoft Visual C++.
16145 if test "$GCC" != yes; then
16146 with_gnu_ld=no
16147 fi
16148 ;;
16149 openbsd*)
16150 with_gnu_ld=no
16151 ;;
16152 esac
16153
16154 ld_shlibs_GCJ=yes
16155 if test "$with_gnu_ld" = yes; then
16156 # If archive_cmds runs LD, not CC, wlarc should be empty
16157 wlarc='${wl}'
16158
16159 # See if GNU ld supports shared libraries.
16160 case $host_os in
16161 aix3* | aix4* | aix5*)
16162 # On AIX/PPC, the GNU linker is very broken
16163 if test "$host_cpu" != ia64; then
16164 ld_shlibs_GCJ=no
16165 cat <<EOF 1>&2
16166
16167 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16168 *** to be unable to reliably create shared libraries on AIX.
16169 *** Therefore, libtool is disabling shared libraries support. If you
16170 *** really care for shared libraries, you may want to modify your PATH
16171 *** so that a non-GNU linker is found, and then restart.
16172
16173 EOF
16174 fi
16175 ;;
16176
16177 amigaos*)
16178 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
16179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16180 hardcode_minus_L_GCJ=yes
16181
16182 # Samuel A. Falvo II <[email protected]> reports
16183 # that the semantics of dynamic libraries on AmigaOS, at least up
16184 # to version 4, is to share data among multiple programs linked
16185 # with the same dynamic library. Since this doesn't match the
16186 # behavior of shared libraries on other platforms, we can't use
16187 # them.
16188 ld_shlibs_GCJ=no
16189 ;;
16190
16191 beos*)
16192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16193 allow_undefined_flag_GCJ=unsupported
16194 # Joseph Beckenbach <[email protected]> says some releases of gcc
16195 # support --undefined. This deserves some investigation. FIXME
16196 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16197 else
16198 ld_shlibs_GCJ=no
16199 fi
16200 ;;
16201
16202 cygwin* | mingw* | pw32*)
16203 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16204 # as there is no search path for DLLs.
16205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16206 allow_undefined_flag_GCJ=unsupported
16207 always_export_symbols_GCJ=no
16208 enable_shared_with_static_runtimes_GCJ=yes
16209 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16210
16211 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16212 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16213 # If the export-symbols file already is a .def file (1st line
16214 # is EXPORTS), use it as is; otherwise, prepend...
16215 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16216 cp $export_symbols $output_objdir/$soname.def;
16217 else
16218 echo EXPORTS > $output_objdir/$soname.def;
16219 cat $export_symbols >> $output_objdir/$soname.def;
16220 fi${_S_}
16221 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16222 else
16223 ld_shlibs=no
16224 fi
16225 ;;
16226
16227 netbsd*)
16228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16229 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16230 wlarc=
16231 else
16232 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16233 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16234 fi
16235 ;;
16236
16237 solaris* | sysv5*)
16238 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16239 ld_shlibs_GCJ=no
16240 cat <<EOF 1>&2
16241
16242 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16243 *** create shared libraries on Solaris systems. Therefore, libtool
16244 *** is disabling shared libraries support. We urge you to upgrade GNU
16245 *** binutils to release 2.9.1 or newer. Another option is to modify
16246 *** your PATH or compiler configuration so that the native linker is
16247 *** used, and then restart.
16248
16249 EOF
16250 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16251 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16252 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16253 else
16254 ld_shlibs_GCJ=no
16255 fi
16256 ;;
16257
16258 sunos4*)
16259 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16260 wlarc=
16261 hardcode_direct_GCJ=yes
16262 hardcode_shlibpath_var_GCJ=no
16263 ;;
16264
16265 *)
16266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16267 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16269 else
16270 ld_shlibs_GCJ=no
16271 fi
16272 ;;
16273 esac
16274
16275 if test "$ld_shlibs_GCJ" = yes; then
16276 runpath_var=LD_RUN_PATH
16277 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16278 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16279 # ancient GNU ld didn't support --whole-archive et. al.
16280 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16281 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16282 else
16283 whole_archive_flag_spec_GCJ=
16284 fi
16285 fi
16286 else
16287 # PORTME fill in a description of your system's linker (not GNU ld)
16288 case $host_os in
16289 aix3*)
16290 allow_undefined_flag_GCJ=unsupported
16291 always_export_symbols_GCJ=yes
16292 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
16293 # Note: this linker hardcodes the directories in LIBPATH if there
16294 # are no directories specified by -L.
16295 hardcode_minus_L_GCJ=yes
16296 if test "$GCC" = yes && test -z "$link_static_flag"; then
16297 # Neither direct hardcoding nor static linking is supported with a
16298 # broken collect2.
16299 hardcode_direct_GCJ=unsupported
16300 fi
16301 ;;
16302
16303 aix4* | aix5*)
16304 if test "$host_cpu" = ia64; then
16305 # On IA64, the linker does run time linking by default, so we don't
16306 # have to do anything special.
16307 aix_use_runtimelinking=no
16308 exp_sym_flag='-Bexport'
16309 no_entry_flag=""
16310 else
16311 # If we're using GNU nm, then we don't want the "-C" option.
16312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16314 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'
16315 else
16316 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'
16317 fi
16318 aix_use_runtimelinking=no
16319
16320 # Test if we are trying to use run time linking or normal
16321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16322 # need to do runtime linking.
16323 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16324 for ld_flag in $LDFLAGS; do
16325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16326 aix_use_runtimelinking=yes
16327 break
16328 fi
16329 done
16330 esac
16331
16332 exp_sym_flag='-bexport'
16333 no_entry_flag='-bnoentry'
16334 fi
16335
16336 # When large executables or shared objects are built, AIX ld can
16337 # have problems creating the table of contents. If linking a library
16338 # or program results in "error TOC overflow" add -mminimal-toc to
16339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16341
16342 archive_cmds_GCJ=''
16343 hardcode_direct_GCJ=yes
16344 hardcode_libdir_separator_GCJ=':'
16345 link_all_deplibs_GCJ=yes
16346
16347 if test "$GCC" = yes; then
16348 case $host_os in aix4.012|aix4.012.*)
16349 # We only want to do this on AIX 4.2 and lower, the check
16350 # below for broken collect2 doesn't work under 4.3+
16351 collect2name=`${CC} -print-prog-name=collect2`
16352 if test -f "$collect2name" && \
16353 strings "$collect2name" | grep resolve_lib_name >/dev/null
16354 then
16355 # We have reworked collect2
16356 hardcode_direct_GCJ=yes
16357 else
16358 # We have old collect2
16359 hardcode_direct_GCJ=unsupported
16360 # It fails to find uninstalled libraries when the uninstalled
16361 # path is not listed in the libpath. Setting hardcode_minus_L
16362 # to unsupported forces relinking
16363 hardcode_minus_L_GCJ=yes
16364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16365 hardcode_libdir_separator_GCJ=
16366 fi
16367 esac
16368 shared_flag='-shared'
16369 else
16370 # not using gcc
16371 if test "$host_cpu" = ia64; then
16372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16373 # chokes on -Wl,-G. The following line is correct:
16374 shared_flag='-G'
16375 else
16376 if test "$aix_use_runtimelinking" = yes; then
16377 shared_flag='${wl}-G'
16378 else
16379 shared_flag='${wl}-bM:SRE'
16380 fi
16381 fi
16382 fi
16383
16384 # It seems that -bexpall does not export symbols beginning with
16385 # underscore (_), so it is better to generate a list of symbols to export.
16386 always_export_symbols_GCJ=yes
16387 if test "$aix_use_runtimelinking" = yes; then
16388 # Warning - without using the other runtime loading flags (-brtl),
16389 # -berok will link without error, but may produce a broken library.
16390 allow_undefined_flag_GCJ='-berok'
16391 # Determine the default libpath from the value encoded in an empty executable.
16392 cat >conftest.$ac_ext <<_ACEOF
16393 #line $LINENO "configure"
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399
16400 int
16401 main ()
16402 {
16403
16404 ;
16405 return 0;
16406 }
16407 _ACEOF
16408 rm -f conftest.$ac_objext conftest$ac_exeext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16410 (eval $ac_link) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -s conftest$ac_exeext'
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420
16421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16422 }'`
16423 # Check for a 64-bit object if we didn't find anything.
16424 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; }
16425 }'`; fi
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 fi
16431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16433
16434 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16435 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"
16436 else
16437 if test "$host_cpu" = ia64; then
16438 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16439 allow_undefined_flag_GCJ="-z nodefs"
16440 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"
16441 else
16442 # Determine the default libpath from the value encoded in an empty executable.
16443 cat >conftest.$ac_ext <<_ACEOF
16444 #line $LINENO "configure"
16445 /* confdefs.h. */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450
16451 int
16452 main ()
16453 {
16454
16455 ;
16456 return 0;
16457 }
16458 _ACEOF
16459 rm -f conftest.$ac_objext conftest$ac_exeext
16460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16461 (eval $ac_link) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
16465 { ac_try='test -s conftest$ac_exeext'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16468 ac_status=$?
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }; then
16471
16472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16473 }'`
16474 # Check for a 64-bit object if we didn't find anything.
16475 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; }
16476 }'`; fi
16477 else
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481 fi
16482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16484
16485 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16486 # Warning - without using the other run time loading flags,
16487 # -berok will link without error, but may produce a broken library.
16488 no_undefined_flag_GCJ=' ${wl}-bernotok'
16489 allow_undefined_flag_GCJ=' ${wl}-berok'
16490 # -bexpall does not export symbols beginning with underscore (_)
16491 always_export_symbols_GCJ=yes
16492 # Exported symbols can be pulled into shared objects from archives
16493 whole_archive_flag_spec_GCJ=' '
16494 archive_cmds_need_lc_GCJ=yes
16495 # This is similar to how AIX traditionally builds it's shared libraries.
16496 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16497 fi
16498 fi
16499 ;;
16500
16501 amigaos*)
16502 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
16503 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16504 hardcode_minus_L_GCJ=yes
16505 # see comment about different semantics on the GNU ld section
16506 ld_shlibs_GCJ=no
16507 ;;
16508
16509 bsdi4*)
16510 export_dynamic_flag_spec_GCJ=-rdynamic
16511 ;;
16512
16513 cygwin* | mingw* | pw32*)
16514 # When not using gcc, we currently assume that we are using
16515 # Microsoft Visual C++.
16516 # hardcode_libdir_flag_spec is actually meaningless, as there is
16517 # no search path for DLLs.
16518 hardcode_libdir_flag_spec_GCJ=' '
16519 allow_undefined_flag_GCJ=unsupported
16520 # Tell ltmain to make .lib files, not .a files.
16521 libext=lib
16522 # Tell ltmain to make .dll files, not .so files.
16523 shrext=".dll"
16524 # FIXME: Setting linknames here is a bad hack.
16525 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
16526 # The linker will automatically build a .lib file if we build a DLL.
16527 old_archive_From_new_cmds_GCJ='true'
16528 # FIXME: Should let the user specify the lib program.
16529 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16530 fix_srcfile_path='`cygpath -w "$srcfile"`'
16531 enable_shared_with_static_runtimes_GCJ=yes
16532 ;;
16533
16534 darwin* | rhapsody*)
16535 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16536 archive_cmds_need_lc_GCJ=no
16537 case "$host_os" in
16538 rhapsody* | darwin1.[012])
16539 allow_undefined_flag_GCJ='-undefined suppress'
16540 ;;
16541 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
16542 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16543 ;;
16544 *) # Darwin 7.0 on
16545 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
16546 10.[012])
16547 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16548 ;;
16549 *) # 10.3 on
16550 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
16551 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16552 else
16553 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16554 fi
16555 ;;
16556 esac
16557 ;;
16558 esac
16559 # FIXME: Relying on posixy $() will cause problems for
16560 # cross-compilation, but unfortunately the echo tests do not
16561 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16562 # `"' quotes if we put them in here... so don't!
16563 lt_int_apple_cc_single_mod=no
16564 output_verbose_link_cmd='echo'
16565 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16566 lt_int_apple_cc_single_mod=yes
16567 fi
16568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16569 archive_cmds_GCJ='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16570 else
16571 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16572 fi
16573 module_cmds_GCJ='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16575 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16576 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16577 else
16578 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16579 fi
16580 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16581 hardcode_direct_GCJ=no
16582 hardcode_automatic_GCJ=yes
16583 hardcode_shlibpath_var_GCJ=unsupported
16584 whole_archive_flag_spec_GCJ='-all_load $convenience'
16585 link_all_deplibs_GCJ=yes
16586 fi
16587 ;;
16588
16589 dgux*)
16590 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16591 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16592 hardcode_shlibpath_var_GCJ=no
16593 ;;
16594
16595 freebsd1*)
16596 ld_shlibs_GCJ=no
16597 ;;
16598
16599 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16600 # support. Future versions do this automatically, but an explicit c++rt0.o
16601 # does not break anything, and helps significantly (at the cost of a little
16602 # extra space).
16603 freebsd2.2*)
16604 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16605 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16606 hardcode_direct_GCJ=yes
16607 hardcode_shlibpath_var_GCJ=no
16608 ;;
16609
16610 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16611 freebsd2*)
16612 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16613 hardcode_direct_GCJ=yes
16614 hardcode_minus_L_GCJ=yes
16615 hardcode_shlibpath_var_GCJ=no
16616 ;;
16617
16618 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16619 freebsd*)
16620 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16621 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16622 hardcode_direct_GCJ=yes
16623 hardcode_shlibpath_var_GCJ=no
16624 ;;
16625
16626 hpux9*)
16627 if test "$GCC" = yes; then
16628 archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16629 else
16630 archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16631 fi
16632 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16633 hardcode_libdir_separator_GCJ=:
16634 hardcode_direct_GCJ=yes
16635
16636 # hardcode_minus_L: Not really in the search PATH,
16637 # but as the default location of the library.
16638 hardcode_minus_L_GCJ=yes
16639 export_dynamic_flag_spec_GCJ='${wl}-E'
16640 ;;
16641
16642 hpux10* | hpux11*)
16643 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16644 case "$host_cpu" in
16645 hppa*64*|ia64*)
16646 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16647 ;;
16648 *)
16649 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16650 ;;
16651 esac
16652 else
16653 case "$host_cpu" in
16654 hppa*64*|ia64*)
16655 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16656 ;;
16657 *)
16658 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16659 ;;
16660 esac
16661 fi
16662 if test "$with_gnu_ld" = no; then
16663 case "$host_cpu" in
16664 hppa*64*)
16665 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16666 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16667 hardcode_libdir_separator_GCJ=:
16668 hardcode_direct_GCJ=no
16669 hardcode_shlibpath_var_GCJ=no
16670 ;;
16671 ia64*)
16672 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16673 hardcode_direct_GCJ=no
16674 hardcode_shlibpath_var_GCJ=no
16675
16676 # hardcode_minus_L: Not really in the search PATH,
16677 # but as the default location of the library.
16678 hardcode_minus_L_GCJ=yes
16679 ;;
16680 *)
16681 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16682 hardcode_libdir_separator_GCJ=:
16683 hardcode_direct_GCJ=yes
16684 export_dynamic_flag_spec_GCJ='${wl}-E'
16685
16686 # hardcode_minus_L: Not really in the search PATH,
16687 # but as the default location of the library.
16688 hardcode_minus_L_GCJ=yes
16689 ;;
16690 esac
16691 fi
16692 ;;
16693
16694 irix5* | irix6* | nonstopux*)
16695 if test "$GCC" = yes; then
16696 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'
16697 else
16698 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'
16699 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16700 fi
16701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16702 hardcode_libdir_separator_GCJ=:
16703 link_all_deplibs_GCJ=yes
16704 ;;
16705
16706 netbsd*)
16707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16708 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16709 else
16710 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16711 fi
16712 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16713 hardcode_direct_GCJ=yes
16714 hardcode_shlibpath_var_GCJ=no
16715 ;;
16716
16717 newsos6)
16718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_direct_GCJ=yes
16720 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16721 hardcode_libdir_separator_GCJ=:
16722 hardcode_shlibpath_var_GCJ=no
16723 ;;
16724
16725 openbsd*)
16726 hardcode_direct_GCJ=yes
16727 hardcode_shlibpath_var_GCJ=no
16728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16729 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16731 export_dynamic_flag_spec_GCJ='${wl}-E'
16732 else
16733 case $host_os in
16734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16735 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16737 ;;
16738 *)
16739 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16740 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16741 ;;
16742 esac
16743 fi
16744 ;;
16745
16746 os2*)
16747 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16748 hardcode_minus_L_GCJ=yes
16749 allow_undefined_flag_GCJ=unsupported
16750 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16751 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16752 ;;
16753
16754 osf3*)
16755 if test "$GCC" = yes; then
16756 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16757 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'
16758 else
16759 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16760 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'
16761 fi
16762 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16763 hardcode_libdir_separator_GCJ=:
16764 ;;
16765
16766 osf4* | osf5*) # as osf3* with the addition of -msym flag
16767 if test "$GCC" = yes; then
16768 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16769 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'
16770 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16771 else
16772 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16773 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'
16774 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${_S_}
16775 $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${_S_}$rm $lib.exp'
16776
16777 # Both c and cxx compiler support -rpath directly
16778 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16779 fi
16780 hardcode_libdir_separator_GCJ=:
16781 ;;
16782
16783 sco3.2v5*)
16784 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16785 hardcode_shlibpath_var_GCJ=no
16786 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16787 runpath_var=LD_RUN_PATH
16788 hardcode_runpath_var=yes
16789 ;;
16790
16791 solaris*)
16792 no_undefined_flag_GCJ=' -z text'
16793 if test "$GCC" = yes; then
16794 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
16796 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
16797 else
16798 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
16800 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
16801 fi
16802 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16803 hardcode_shlibpath_var_GCJ=no
16804 case $host_os in
16805 solaris2.[0-5] | solaris2.[0-5].*) ;;
16806 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16807 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16808 esac
16809 link_all_deplibs_GCJ=yes
16810 ;;
16811
16812 sunos4*)
16813 if test "x$host_vendor" = xsequent; then
16814 # Use $CC to link under sequent, because it throws in some extra .o
16815 # files that make .init and .fini sections work.
16816 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16817 else
16818 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16819 fi
16820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16821 hardcode_direct_GCJ=yes
16822 hardcode_minus_L_GCJ=yes
16823 hardcode_shlibpath_var_GCJ=no
16824 ;;
16825
16826 sysv4)
16827 case $host_vendor in
16828 sni)
16829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16830 hardcode_direct_GCJ=yes # is this really true???
16831 ;;
16832 siemens)
16833 ## LD is ld it makes a PLAMLIB
16834 ## CC just makes a GrossModule.
16835 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16836 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16837 hardcode_direct_GCJ=no
16838 ;;
16839 motorola)
16840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16841 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16842 ;;
16843 esac
16844 runpath_var='LD_RUN_PATH'
16845 hardcode_shlibpath_var_GCJ=no
16846 ;;
16847
16848 sysv4.3*)
16849 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850 hardcode_shlibpath_var_GCJ=no
16851 export_dynamic_flag_spec_GCJ='-Bexport'
16852 ;;
16853
16854 sysv4*MP*)
16855 if test -d /usr/nec; then
16856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16857 hardcode_shlibpath_var_GCJ=no
16858 runpath_var=LD_RUN_PATH
16859 hardcode_runpath_var=yes
16860 ld_shlibs_GCJ=yes
16861 fi
16862 ;;
16863
16864 sysv4.2uw2*)
16865 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_direct_GCJ=yes
16867 hardcode_minus_L_GCJ=no
16868 hardcode_shlibpath_var_GCJ=no
16869 hardcode_runpath_var=yes
16870 runpath_var=LD_RUN_PATH
16871 ;;
16872
16873 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16874 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16875 if test "$GCC" = yes; then
16876 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16877 else
16878 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16879 fi
16880 runpath_var='LD_RUN_PATH'
16881 hardcode_shlibpath_var_GCJ=no
16882 ;;
16883
16884 sysv5*)
16885 no_undefined_flag_GCJ=' -z text'
16886 # $CC -shared without GNU ld will not create a library from C++
16887 # object files and a static libstdc++, better avoid it by now
16888 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
16890 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
16891 hardcode_libdir_flag_spec_GCJ=
16892 hardcode_shlibpath_var_GCJ=no
16893 runpath_var='LD_RUN_PATH'
16894 ;;
16895
16896 uts4*)
16897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16899 hardcode_shlibpath_var_GCJ=no
16900 ;;
16901
16902 *)
16903 ld_shlibs_GCJ=no
16904 ;;
16905 esac
16906 fi
16907
16908 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16909 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16910 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16911
16912 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16913 if test "$GCC" = yes; then
16914 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16915 fi
16916
16917 #
16918 # Do we need to explicitly link libc?
16919 #
16920 case "x$archive_cmds_need_lc_GCJ" in
16921 x|xyes)
16922 # Assume -lc should be added
16923 archive_cmds_need_lc_GCJ=yes
16924
16925 if test "$enable_shared" = yes && test "$GCC" = yes; then
16926 case $archive_cmds_GCJ in
16927 *"$_S_"*)
16928 # FIXME: we may have to deal with multi-command sequences.
16929 ;;
16930 '$CC '*)
16931 # Test whether the compiler implicitly links with -lc since on some
16932 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16933 # to ld, don't add -lc before -lgcc.
16934 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16935 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16936 $rm conftest*
16937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16938
16939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16940 (eval $ac_compile) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } 2>conftest.err; then
16944 soname=conftest
16945 lib=conftest
16946 libobjs=conftest.$ac_objext
16947 deplibs=
16948 wl=$lt_prog_compiler_wl_GCJ
16949 compiler_flags=-v
16950 linker_flags=-v
16951 verstring=
16952 output_objdir=.
16953 libname=conftest
16954 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16955 allow_undefined_flag_GCJ=
16956 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16957 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }
16961 then
16962 archive_cmds_need_lc_GCJ=no
16963 else
16964 archive_cmds_need_lc_GCJ=yes
16965 fi
16966 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16967 else
16968 cat conftest.err 1>&5
16969 fi
16970 $rm conftest*
16971 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16972 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16973 ;;
16974 esac
16975 fi
16976 ;;
16977 esac
16978
16979 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16980 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16981 hardcode_action_GCJ=
16982 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16983 test -n "$runpath_var GCJ" || \
16984 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16985
16986 # We can hardcode non-existant directories.
16987 if test "$hardcode_direct_GCJ" != no &&
16988 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16989 # have to relink, otherwise we might link with an installed library
16990 # when we should be linking with a yet-to-be-installed one
16991 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16992 test "$hardcode_minus_L_GCJ" != no; then
16993 # Linking always hardcodes the temporary library directory.
16994 hardcode_action_GCJ=relink
16995 else
16996 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16997 hardcode_action_GCJ=immediate
16998 fi
16999 else
17000 # We cannot hardcode anything, or else we can only hardcode existing
17001 # directories.
17002 hardcode_action_GCJ=unsupported
17003 fi
17004 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17005 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17006
17007 if test "$hardcode_action_GCJ" = relink; then
17008 # Fast installation is not supported
17009 enable_fast_install=no
17010 elif test "$shlibpath_overrides_runpath" = yes ||
17011 test "$enable_shared" = no; then
17012 # Fast installation is not necessary
17013 enable_fast_install=needless
17014 fi
17015
17016 striplib=
17017 old_striplib=
17018 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17019 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17020 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17021 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17022 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17023 echo "$as_me:$LINENO: result: yes" >&5
17024 echo "${ECHO_T}yes" >&6
17025 else
17026 # FIXME - insert some real tests, host_os isn't really good enough
17027 case $host_os in
17028 NOT-darwin*)
17029 if test -n "$STRIP" ; then
17030 striplib="$STRIP -x"
17031 echo "$as_me:$LINENO: result: yes" >&5
17032 echo "${ECHO_T}yes" >&6
17033 else
17034 echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6
17036 fi
17037 ;;
17038 *)
17039 echo "$as_me:$LINENO: result: no" >&5
17040 echo "${ECHO_T}no" >&6
17041 ;;
17042 esac
17043 fi
17044
17045 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17046 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17047 library_names_spec=
17048 libname_spec='lib$name'
17049 soname_spec=
17050 shrext=".so"
17051 postinstall_cmds=
17052 postuninstall_cmds=
17053 finish_cmds=
17054 finish_eval=
17055 shlibpath_var=
17056 shlibpath_overrides_runpath=unknown
17057 version_type=none
17058 dynamic_linker="$host_os ld.so"
17059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17060 if test "$GCC" = yes; then
17061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17062 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17063 # if the path contains ";" then we assume it to be the separator
17064 # otherwise default to the standard path separator (i.e. ":") - it is
17065 # assumed that no part of a normal pathname contains ";" but that should
17066 # okay in the real world where ";" in dirpaths is itself problematic.
17067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17068 else
17069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17070 fi
17071 else
17072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17073 fi
17074 need_lib_prefix=unknown
17075 hardcode_into_libs=no
17076
17077 # when you set need_version to no, make sure it does not cause -set_version
17078 # flags to be left without arguments
17079 need_version=unknown
17080
17081 case $host_os in
17082 aix3*)
17083 version_type=linux
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17085 shlibpath_var=LIBPATH
17086
17087 # AIX 3 has no versioning support, so we append a major version to the name.
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 ;;
17090
17091 aix4* | aix5*)
17092 version_type=linux
17093 need_lib_prefix=no
17094 need_version=no
17095 hardcode_into_libs=yes
17096 if test "$host_cpu" = ia64; then
17097 # AIX 5 supports IA64
17098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17099 shlibpath_var=LD_LIBRARY_PATH
17100 else
17101 # With GCC up to 2.95.x, collect2 would create an import file
17102 # for dependence libraries. The import file would start with
17103 # the line `#! .'. This would cause the generated library to
17104 # depend on `.', always an invalid library. This was fixed in
17105 # development snapshots of GCC prior to 3.0.
17106 case $host_os in
17107 aix4 | aix4.[01] | aix4.[01].*)
17108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17109 echo ' yes '
17110 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17111 :
17112 else
17113 can_build_shared=no
17114 fi
17115 ;;
17116 esac
17117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17118 # soname into executable. Probably we can add versioning support to
17119 # collect2, so additional links can be useful in future.
17120 if test "$aix_use_runtimelinking" = yes; then
17121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17122 # instead of lib<name>.a to let people know that these are not
17123 # typical AIX shared libraries.
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 else
17126 # We preserve .a as extension for shared libraries through AIX4.2
17127 # and later when we are not doing run time linking.
17128 library_names_spec='${libname}${release}.a $libname.a'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 fi
17131 shlibpath_var=LIBPATH
17132 fi
17133 ;;
17134
17135 amigaos*)
17136 library_names_spec='$libname.ixlibrary $libname.a'
17137 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17138 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'
17139 ;;
17140
17141 beos*)
17142 library_names_spec='${libname}${shared_ext}'
17143 dynamic_linker="$host_os ld.so"
17144 shlibpath_var=LIBRARY_PATH
17145 ;;
17146
17147 bsdi4*)
17148 version_type=linux
17149 need_version=no
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17153 shlibpath_var=LD_LIBRARY_PATH
17154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17156 # the default ld.so.conf also contains /usr/contrib/lib and
17157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17158 # libtool to hard-code these into programs
17159 ;;
17160
17161 cygwin* | mingw* | pw32*)
17162 version_type=windows
17163 shrext=".dll"
17164 need_version=no
17165 need_lib_prefix=no
17166
17167 case $GCC,$host_os in
17168 yes,cygwin* | yes,mingw* | yes,pw32*)
17169 library_names_spec='$libname.dll.a'
17170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17171 postinstall_cmds='base_file=`basename \${file}`${_S_}
17172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
17173 dldir=$destdir/`dirname \$dlpath`${_S_}
17174 test -d \$dldir || mkdir -p \$dldir${_S_}
17175 $install_prog $dir/$dlname \$dldir/$dlname'
17176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
17177 dlpath=$dir/\$dldll${_S_}
17178 $rm \$dlpath'
17179 shlibpath_overrides_runpath=yes
17180
17181 case $host_os in
17182 cygwin*)
17183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17185 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17186 ;;
17187 mingw*)
17188 # MinGW DLLs use traditional 'lib' prefix
17189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17191 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17192 # It is most probably a Windows format PATH printed by
17193 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17194 # path with ; separators, and with drive letters. We can handle the
17195 # drive letters (cygwin fileutils understands them), so leave them,
17196 # especially as we might pass files found there to a mingw objdump,
17197 # which wouldn't understand a cygwinified path. Ahh.
17198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17199 else
17200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17201 fi
17202 ;;
17203 pw32*)
17204 # pw32 DLLs use 'pw' prefix rather than 'lib'
17205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17206 ;;
17207 esac
17208 ;;
17209
17210 *)
17211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17212 ;;
17213 esac
17214 dynamic_linker='Win32 ld.exe'
17215 # FIXME: first we should search . and the directory the executable is in
17216 shlibpath_var=PATH
17217 ;;
17218
17219 darwin* | rhapsody*)
17220 dynamic_linker="$host_os dyld"
17221 version_type=darwin
17222 need_lib_prefix=no
17223 need_version=no
17224 # FIXME: Relying on posixy $() will cause problems for
17225 # cross-compilation, but unfortunately the echo tests do not
17226 # yet detect zsh echo's removal of \ escapes.
17227 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
17228 soname_spec='${libname}${release}${major}$shared_ext'
17229 shlibpath_overrides_runpath=yes
17230 shlibpath_var=DYLD_LIBRARY_PATH
17231 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17232 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17233 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17234 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"`
17235 fi
17236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17237 ;;
17238
17239 dgux*)
17240 version_type=linux
17241 need_lib_prefix=no
17242 need_version=no
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 ;;
17247
17248 freebsd1*)
17249 dynamic_linker=no
17250 ;;
17251
17252 freebsd*)
17253 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17254 version_type=freebsd-$objformat
17255 case $version_type in
17256 freebsd-elf*)
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17258 need_version=no
17259 need_lib_prefix=no
17260 ;;
17261 freebsd-*)
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17263 need_version=yes
17264 ;;
17265 esac
17266 shlibpath_var=LD_LIBRARY_PATH
17267 case $host_os in
17268 freebsd2*)
17269 shlibpath_overrides_runpath=yes
17270 ;;
17271 freebsd3.01* | freebsdelf3.01*)
17272 shlibpath_overrides_runpath=yes
17273 hardcode_into_libs=yes
17274 ;;
17275 *) # from 3.2 on
17276 shlibpath_overrides_runpath=no
17277 hardcode_into_libs=yes
17278 ;;
17279 esac
17280 ;;
17281
17282 gnu*)
17283 version_type=linux
17284 need_lib_prefix=no
17285 need_version=no
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 hardcode_into_libs=yes
17290 ;;
17291
17292 hpux9* | hpux10* | hpux11*)
17293 # Give a soname corresponding to the major version so that dld.sl refuses to
17294 # link against other versions.
17295 version_type=sunos
17296 need_lib_prefix=no
17297 need_version=no
17298 case "$host_cpu" in
17299 ia64*)
17300 shrext='.so'
17301 hardcode_into_libs=yes
17302 dynamic_linker="$host_os dld.so"
17303 shlibpath_var=LD_LIBRARY_PATH
17304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306 soname_spec='${libname}${release}${shared_ext}$major'
17307 if test "X$HPUX_IA64_MODE" = X32; then
17308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17309 else
17310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17311 fi
17312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17313 ;;
17314 hppa*64*)
17315 shrext='.sl'
17316 hardcode_into_libs=yes
17317 dynamic_linker="$host_os dld.sl"
17318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17324 ;;
17325 *)
17326 shrext='.sl'
17327 dynamic_linker="$host_os dld.sl"
17328 shlibpath_var=SHLIB_PATH
17329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331 soname_spec='${libname}${release}${shared_ext}$major'
17332 ;;
17333 esac
17334 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17335 postinstall_cmds='chmod 555 $lib'
17336 ;;
17337
17338 irix5* | irix6* | nonstopux*)
17339 case $host_os in
17340 nonstopux*) version_type=nonstopux ;;
17341 *)
17342 if test "$lt_cv_prog_gnu_ld" = yes; then
17343 version_type=linux
17344 else
17345 version_type=irix
17346 fi ;;
17347 esac
17348 need_lib_prefix=no
17349 need_version=no
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17352 case $host_os in
17353 irix5* | nonstopux*)
17354 libsuff= shlibsuff=
17355 ;;
17356 *)
17357 case $LD in # libtool.m4 will add one of these switches to LD
17358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17359 libsuff= shlibsuff= libmagic=32-bit;;
17360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17361 libsuff=32 shlibsuff=N32 libmagic=N32;;
17362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17364 *) libsuff= shlibsuff= libmagic=never-match;;
17365 esac
17366 ;;
17367 esac
17368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17369 shlibpath_overrides_runpath=no
17370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17372 hardcode_into_libs=yes
17373 ;;
17374
17375 # No shared lib support for Linux oldld, aout, or coff.
17376 linux*oldld* | linux*aout* | linux*coff*)
17377 dynamic_linker=no
17378 ;;
17379
17380 # This must be Linux ELF.
17381 linux*)
17382 version_type=linux
17383 need_lib_prefix=no
17384 need_version=no
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=no
17390 # This implies no fast_install, which is unacceptable.
17391 # Some rework will be needed to allow for fast_install
17392 # before this can be enabled.
17393 hardcode_into_libs=yes
17394
17395 # We used to test for /lib/ld.so.1 and disable shared libraries on
17396 # powerpc, because MkLinux only supported shared libraries with the
17397 # GNU dynamic linker. Since this was broken with cross compilers,
17398 # most powerpc-linux boxes support dynamic linking these days and
17399 # people can always --disable-shared, the test was removed, and we
17400 # assume the GNU/Linux dynamic linker is in use.
17401 dynamic_linker='GNU/Linux ld.so'
17402 ;;
17403
17404 netbsd*)
17405 version_type=sunos
17406 need_lib_prefix=no
17407 need_version=no
17408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17411 dynamic_linker='NetBSD (a.out) ld.so'
17412 else
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17414 soname_spec='${libname}${release}${shared_ext}$major'
17415 dynamic_linker='NetBSD ld.elf_so'
17416 fi
17417 shlibpath_var=LD_LIBRARY_PATH
17418 shlibpath_overrides_runpath=yes
17419 hardcode_into_libs=yes
17420 ;;
17421
17422 newsos6)
17423 version_type=linux
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 shlibpath_var=LD_LIBRARY_PATH
17426 shlibpath_overrides_runpath=yes
17427 ;;
17428
17429 nto-qnx)
17430 version_type=linux
17431 need_lib_prefix=no
17432 need_version=no
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17434 soname_spec='${libname}${release}${shared_ext}$major'
17435 shlibpath_var=LD_LIBRARY_PATH
17436 shlibpath_overrides_runpath=yes
17437 ;;
17438
17439 openbsd*)
17440 version_type=sunos
17441 need_lib_prefix=no
17442 need_version=no
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17447 case $host_os in
17448 openbsd2.[89] | openbsd2.[89].*)
17449 shlibpath_overrides_runpath=no
17450 ;;
17451 *)
17452 shlibpath_overrides_runpath=yes
17453 ;;
17454 esac
17455 else
17456 shlibpath_overrides_runpath=yes
17457 fi
17458 ;;
17459
17460 os2*)
17461 libname_spec='$name'
17462 shrext=".dll"
17463 need_lib_prefix=no
17464 library_names_spec='$libname${shared_ext} $libname.a'
17465 dynamic_linker='OS/2 ld.exe'
17466 shlibpath_var=LIBPATH
17467 ;;
17468
17469 osf3* | osf4* | osf5*)
17470 version_type=osf
17471 need_lib_prefix=no
17472 need_version=no
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475 shlibpath_var=LD_LIBRARY_PATH
17476 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17477 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17478 ;;
17479
17480 sco3.2v5*)
17481 version_type=osf
17482 soname_spec='${libname}${release}${shared_ext}$major'
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 ;;
17486
17487 solaris*)
17488 version_type=linux
17489 need_lib_prefix=no
17490 need_version=no
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 shlibpath_var=LD_LIBRARY_PATH
17494 shlibpath_overrides_runpath=yes
17495 hardcode_into_libs=yes
17496 # ldd complains unless libraries are executable
17497 postinstall_cmds='chmod +x $lib'
17498 ;;
17499
17500 sunos4*)
17501 version_type=sunos
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17504 shlibpath_var=LD_LIBRARY_PATH
17505 shlibpath_overrides_runpath=yes
17506 if test "$with_gnu_ld" = yes; then
17507 need_lib_prefix=no
17508 fi
17509 need_version=yes
17510 ;;
17511
17512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17513 version_type=linux
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515 soname_spec='${libname}${release}${shared_ext}$major'
17516 shlibpath_var=LD_LIBRARY_PATH
17517 case $host_vendor in
17518 sni)
17519 shlibpath_overrides_runpath=no
17520 need_lib_prefix=no
17521 export_dynamic_flag_spec='${wl}-Blargedynsym'
17522 runpath_var=LD_RUN_PATH
17523 ;;
17524 siemens)
17525 need_lib_prefix=no
17526 ;;
17527 motorola)
17528 need_lib_prefix=no
17529 need_version=no
17530 shlibpath_overrides_runpath=no
17531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17532 ;;
17533 esac
17534 ;;
17535
17536 sysv4*MP*)
17537 if test -d /usr/nec ;then
17538 version_type=linux
17539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17540 soname_spec='$libname${shared_ext}.$major'
17541 shlibpath_var=LD_LIBRARY_PATH
17542 fi
17543 ;;
17544
17545 uts4*)
17546 version_type=linux
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17548 soname_spec='${libname}${release}${shared_ext}$major'
17549 shlibpath_var=LD_LIBRARY_PATH
17550 ;;
17551
17552 *)
17553 dynamic_linker=no
17554 ;;
17555 esac
17556 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17557 echo "${ECHO_T}$dynamic_linker" >&6
17558 test "$dynamic_linker" = no && can_build_shared=no
17559
17560 if test "x$enable_dlopen" != xyes; then
17561 enable_dlopen=unknown
17562 enable_dlopen_self=unknown
17563 enable_dlopen_self_static=unknown
17564 else
17565 lt_cv_dlopen=no
17566 lt_cv_dlopen_libs=
17567
17568 case $host_os in
17569 beos*)
17570 lt_cv_dlopen="load_add_on"
17571 lt_cv_dlopen_libs=
17572 lt_cv_dlopen_self=yes
17573 ;;
17574
17575 mingw* | pw32*)
17576 lt_cv_dlopen="LoadLibrary"
17577 lt_cv_dlopen_libs=
17578 ;;
17579
17580 cygwin*)
17581 lt_cv_dlopen="dlopen"
17582 lt_cv_dlopen_libs=
17583 ;;
17584
17585 darwin*)
17586 # if libdl is installed we need to link against it
17587 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17588 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592 ac_check_lib_save_LIBS=$LIBS
17593 LIBS="-ldl $LIBS"
17594 cat >conftest.$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17596 /* confdefs.h. */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601
17602 /* Override any gcc2 internal prototype to avoid an error. */
17603 #ifdef __cplusplus
17604 extern "C"
17605 #endif
17606 /* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17608 char dlopen ();
17609 int
17610 main ()
17611 {
17612 dlopen ();
17613 ;
17614 return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try='test -s conftest$ac_exeext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_lib_dl_dlopen=yes
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17633
17634 ac_cv_lib_dl_dlopen=no
17635 fi
17636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17637 LIBS=$ac_check_lib_save_LIBS
17638 fi
17639 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17640 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17641 if test $ac_cv_lib_dl_dlopen = yes; then
17642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17643 else
17644
17645 lt_cv_dlopen="dyld"
17646 lt_cv_dlopen_libs=
17647 lt_cv_dlopen_self=yes
17648
17649 fi
17650
17651 ;;
17652
17653 *)
17654 echo "$as_me:$LINENO: checking for shl_load" >&5
17655 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17656 if test "${ac_cv_func_shl_load+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659 cat >conftest.$ac_ext <<_ACEOF
17660 #line $LINENO "configure"
17661 /* confdefs.h. */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char shl_load (); below.
17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 <limits.h> exists even on freestanding compilers. */
17670 #ifdef __STDC__
17671 # include <limits.h>
17672 #else
17673 # include <assert.h>
17674 #endif
17675 /* Override any gcc2 internal prototype to avoid an error. */
17676 #ifdef __cplusplus
17677 extern "C"
17678 {
17679 #endif
17680 /* We use char because int might match the return type of a gcc2
17681 builtin and then its argument prototype would still apply. */
17682 char shl_load ();
17683 /* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17687 choke me
17688 #else
17689 char (*f) () = shl_load;
17690 #endif
17691 #ifdef __cplusplus
17692 }
17693 #endif
17694
17695 int
17696 main ()
17697 {
17698 return f != shl_load;
17699 ;
17700 return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705 (eval $ac_link) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_cv_func_shl_load=yes
17716 else
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17719
17720 ac_cv_func_shl_load=no
17721 fi
17722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17723 fi
17724 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17725 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17726 if test $ac_cv_func_shl_load = yes; then
17727 lt_cv_dlopen="shl_load"
17728 else
17729 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17730 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17731 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 ac_check_lib_save_LIBS=$LIBS
17735 LIBS="-ldld $LIBS"
17736 cat >conftest.$ac_ext <<_ACEOF
17737 #line $LINENO "configure"
17738 /* confdefs.h. */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743
17744 /* Override any gcc2 internal prototype to avoid an error. */
17745 #ifdef __cplusplus
17746 extern "C"
17747 #endif
17748 /* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17750 char shl_load ();
17751 int
17752 main ()
17753 {
17754 shl_load ();
17755 ;
17756 return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_lib_dld_shl_load=yes
17772 else
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776 ac_cv_lib_dld_shl_load=no
17777 fi
17778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17779 LIBS=$ac_check_lib_save_LIBS
17780 fi
17781 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17782 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17783 if test $ac_cv_lib_dld_shl_load = yes; then
17784 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17785 else
17786 echo "$as_me:$LINENO: checking for dlopen" >&5
17787 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17788 if test "${ac_cv_func_dlopen+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791 cat >conftest.$ac_ext <<_ACEOF
17792 #line $LINENO "configure"
17793 /* confdefs.h. */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 /* System header to define __stub macros and hopefully few prototypes,
17799 which can conflict with char dlopen (); below.
17800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17801 <limits.h> exists even on freestanding compilers. */
17802 #ifdef __STDC__
17803 # include <limits.h>
17804 #else
17805 # include <assert.h>
17806 #endif
17807 /* Override any gcc2 internal prototype to avoid an error. */
17808 #ifdef __cplusplus
17809 extern "C"
17810 {
17811 #endif
17812 /* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17814 char dlopen ();
17815 /* The GNU C library defines this for functions which it implements
17816 to always fail with ENOSYS. Some functions are actually named
17817 something starting with __ and the normal name is an alias. */
17818 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17819 choke me
17820 #else
17821 char (*f) () = dlopen;
17822 #endif
17823 #ifdef __cplusplus
17824 }
17825 #endif
17826
17827 int
17828 main ()
17829 {
17830 return f != dlopen;
17831 ;
17832 return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17837 (eval $ac_link) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try='test -s conftest$ac_exeext'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 ac_cv_func_dlopen=yes
17848 else
17849 echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 ac_cv_func_dlopen=no
17853 fi
17854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17855 fi
17856 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17857 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17858 if test $ac_cv_func_dlopen = yes; then
17859 lt_cv_dlopen="dlopen"
17860 else
17861 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17862 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866 ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-ldl $LIBS"
17868 cat >conftest.$ac_ext <<_ACEOF
17869 #line $LINENO "configure"
17870 /* confdefs.h. */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17875
17876 /* Override any gcc2 internal prototype to avoid an error. */
17877 #ifdef __cplusplus
17878 extern "C"
17879 #endif
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17882 char dlopen ();
17883 int
17884 main ()
17885 {
17886 dlopen ();
17887 ;
17888 return 0;
17889 }
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
17897 { ac_try='test -s conftest$ac_exeext'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; }; then
17903 ac_cv_lib_dl_dlopen=yes
17904 else
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908 ac_cv_lib_dl_dlopen=no
17909 fi
17910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17911 LIBS=$ac_check_lib_save_LIBS
17912 fi
17913 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17915 if test $ac_cv_lib_dl_dlopen = yes; then
17916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17917 else
17918 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17919 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17920 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923 ac_check_lib_save_LIBS=$LIBS
17924 LIBS="-lsvld $LIBS"
17925 cat >conftest.$ac_ext <<_ACEOF
17926 #line $LINENO "configure"
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932
17933 /* Override any gcc2 internal prototype to avoid an error. */
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 /* We use char because int might match the return type of a gcc2
17938 builtin and then its argument prototype would still apply. */
17939 char dlopen ();
17940 int
17941 main ()
17942 {
17943 dlopen ();
17944 ;
17945 return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest.$ac_objext conftest$ac_exeext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17950 (eval $ac_link) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
17954 { ac_try='test -s conftest$ac_exeext'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_lib_svld_dlopen=yes
17961 else
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ac_cv_lib_svld_dlopen=no
17966 fi
17967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17968 LIBS=$ac_check_lib_save_LIBS
17969 fi
17970 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17971 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17972 if test $ac_cv_lib_svld_dlopen = yes; then
17973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17974 else
17975 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17976 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980 ac_check_lib_save_LIBS=$LIBS
17981 LIBS="-ldld $LIBS"
17982 cat >conftest.$ac_ext <<_ACEOF
17983 #line $LINENO "configure"
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989
17990 /* Override any gcc2 internal prototype to avoid an error. */
17991 #ifdef __cplusplus
17992 extern "C"
17993 #endif
17994 /* We use char because int might match the return type of a gcc2
17995 builtin and then its argument prototype would still apply. */
17996 char dld_link ();
17997 int
17998 main ()
17999 {
18000 dld_link ();
18001 ;
18002 return 0;
18003 }
18004 _ACEOF
18005 rm -f conftest.$ac_objext conftest$ac_exeext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18007 (eval $ac_link) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_lib_dld_dld_link=yes
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_cv_lib_dld_dld_link=no
18023 fi
18024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18026 fi
18027 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18028 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18029 if test $ac_cv_lib_dld_dld_link = yes; then
18030 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18031 fi
18032
18033
18034 fi
18035
18036
18037 fi
18038
18039
18040 fi
18041
18042
18043 fi
18044
18045
18046 fi
18047
18048 ;;
18049 esac
18050
18051 if test "x$lt_cv_dlopen" != xno; then
18052 enable_dlopen=yes
18053 else
18054 enable_dlopen=no
18055 fi
18056
18057 case $lt_cv_dlopen in
18058 dlopen)
18059 save_CPPFLAGS="$CPPFLAGS"
18060 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18061
18062 save_LDFLAGS="$LDFLAGS"
18063 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18064
18065 save_LIBS="$LIBS"
18066 LIBS="$lt_cv_dlopen_libs $LIBS"
18067
18068 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18069 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18070 if test "${lt_cv_dlopen_self+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 else
18073 if test "$cross_compiling" = yes; then :
18074 lt_cv_dlopen_self=cross
18075 else
18076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18077 lt_status=$lt_dlunknown
18078 cat > conftest.$ac_ext <<EOF
18079 #line 18079 "configure"
18080 #include "confdefs.h"
18081
18082 #if HAVE_DLFCN_H
18083 #include <dlfcn.h>
18084 #endif
18085
18086 #include <stdio.h>
18087
18088 #ifdef RTLD_GLOBAL
18089 # define LT_DLGLOBAL RTLD_GLOBAL
18090 #else
18091 # ifdef DL_GLOBAL
18092 # define LT_DLGLOBAL DL_GLOBAL
18093 # else
18094 # define LT_DLGLOBAL 0
18095 # endif
18096 #endif
18097
18098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18099 find out it does not work in some platform. */
18100 #ifndef LT_DLLAZY_OR_NOW
18101 # ifdef RTLD_LAZY
18102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18103 # else
18104 # ifdef DL_LAZY
18105 # define LT_DLLAZY_OR_NOW DL_LAZY
18106 # else
18107 # ifdef RTLD_NOW
18108 # define LT_DLLAZY_OR_NOW RTLD_NOW
18109 # else
18110 # ifdef DL_NOW
18111 # define LT_DLLAZY_OR_NOW DL_NOW
18112 # else
18113 # define LT_DLLAZY_OR_NOW 0
18114 # endif
18115 # endif
18116 # endif
18117 # endif
18118 #endif
18119
18120 #ifdef __cplusplus
18121 extern "C" void exit (int);
18122 #endif
18123
18124 void fnord() { int i=42;}
18125 int main ()
18126 {
18127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18128 int status = $lt_dlunknown;
18129
18130 if (self)
18131 {
18132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18133 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18134 /* dlclose (self); */
18135 }
18136
18137 exit (status);
18138 }
18139 EOF
18140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18141 (eval $ac_link) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18145 (./conftest; exit; ) 2>/dev/null
18146 lt_status=$?
18147 case x$lt_status in
18148 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18149 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18150 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18151 esac
18152 else :
18153 # compilation failed
18154 lt_cv_dlopen_self=no
18155 fi
18156 fi
18157 rm -fr conftest*
18158
18159
18160 fi
18161 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18162 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18163
18164 if test "x$lt_cv_dlopen_self" = xyes; then
18165 LDFLAGS="$LDFLAGS $link_static_flag"
18166 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18167 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18168 if test "${lt_cv_dlopen_self_static+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171 if test "$cross_compiling" = yes; then :
18172 lt_cv_dlopen_self_static=cross
18173 else
18174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18175 lt_status=$lt_dlunknown
18176 cat > conftest.$ac_ext <<EOF
18177 #line 18177 "configure"
18178 #include "confdefs.h"
18179
18180 #if HAVE_DLFCN_H
18181 #include <dlfcn.h>
18182 #endif
18183
18184 #include <stdio.h>
18185
18186 #ifdef RTLD_GLOBAL
18187 # define LT_DLGLOBAL RTLD_GLOBAL
18188 #else
18189 # ifdef DL_GLOBAL
18190 # define LT_DLGLOBAL DL_GLOBAL
18191 # else
18192 # define LT_DLGLOBAL 0
18193 # endif
18194 #endif
18195
18196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18197 find out it does not work in some platform. */
18198 #ifndef LT_DLLAZY_OR_NOW
18199 # ifdef RTLD_LAZY
18200 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18201 # else
18202 # ifdef DL_LAZY
18203 # define LT_DLLAZY_OR_NOW DL_LAZY
18204 # else
18205 # ifdef RTLD_NOW
18206 # define LT_DLLAZY_OR_NOW RTLD_NOW
18207 # else
18208 # ifdef DL_NOW
18209 # define LT_DLLAZY_OR_NOW DL_NOW
18210 # else
18211 # define LT_DLLAZY_OR_NOW 0
18212 # endif
18213 # endif
18214 # endif
18215 # endif
18216 #endif
18217
18218 #ifdef __cplusplus
18219 extern "C" void exit (int);
18220 #endif
18221
18222 void fnord() { int i=42;}
18223 int main ()
18224 {
18225 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18226 int status = $lt_dlunknown;
18227
18228 if (self)
18229 {
18230 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18231 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18232 /* dlclose (self); */
18233 }
18234
18235 exit (status);
18236 }
18237 EOF
18238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18239 (eval $ac_link) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18243 (./conftest; exit; ) 2>/dev/null
18244 lt_status=$?
18245 case x$lt_status in
18246 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18247 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18248 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18249 esac
18250 else :
18251 # compilation failed
18252 lt_cv_dlopen_self_static=no
18253 fi
18254 fi
18255 rm -fr conftest*
18256
18257
18258 fi
18259 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18260 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18261 fi
18262
18263 CPPFLAGS="$save_CPPFLAGS"
18264 LDFLAGS="$save_LDFLAGS"
18265 LIBS="$save_LIBS"
18266 ;;
18267 esac
18268
18269 case $lt_cv_dlopen_self in
18270 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18271 *) enable_dlopen_self=unknown ;;
18272 esac
18273
18274 case $lt_cv_dlopen_self_static in
18275 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18276 *) enable_dlopen_self_static=unknown ;;
18277 esac
18278 fi
18279
18280
18281 # The else clause should only fire when bootstrapping the
18282 # libtool distribution, otherwise you forgot to ship ltmain.sh
18283 # with your package, and you will get complaints that there are
18284 # no rules to generate ltmain.sh.
18285 if test -f "$ltmain"; then
18286 # See if we are running on zsh, and set the options which allow our commands through
18287 # without removal of \ escapes.
18288 if test -n "${ZSH_VERSION+set}" ; then
18289 setopt NO_GLOB_SUBST
18290 fi
18291 # Now quote all the things that may contain metacharacters while being
18292 # careful not to overquote the AC_SUBSTed values. We take copies of the
18293 # variables and quote the copies for generation of the libtool script.
18294 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18295 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18296 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18297 deplibs_check_method reload_flag reload_cmds need_locks \
18298 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18299 lt_cv_sys_global_symbol_to_c_name_address \
18300 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18301 old_postinstall_cmds old_postuninstall_cmds \
18302 compiler_GCJ \
18303 CC_GCJ \
18304 LD_GCJ \
18305 lt_prog_compiler_wl_GCJ \
18306 lt_prog_compiler_pic_GCJ \
18307 lt_prog_compiler_static_GCJ \
18308 lt_prog_compiler_no_builtin_flag_GCJ \
18309 export_dynamic_flag_spec_GCJ \
18310 thread_safe_flag_spec_GCJ \
18311 whole_archive_flag_spec_GCJ \
18312 enable_shared_with_static_runtimes_GCJ \
18313 old_archive_cmds_GCJ \
18314 old_archive_from_new_cmds_GCJ \
18315 predep_objects_GCJ \
18316 postdep_objects_GCJ \
18317 predeps_GCJ \
18318 postdeps_GCJ \
18319 compiler_lib_search_path_GCJ \
18320 archive_cmds_GCJ \
18321 archive_expsym_cmds_GCJ \
18322 postinstall_cmds_GCJ \
18323 postuninstall_cmds_GCJ \
18324 old_archive_from_expsyms_cmds_GCJ \
18325 allow_undefined_flag_GCJ \
18326 no_undefined_flag_GCJ \
18327 export_symbols_cmds_GCJ \
18328 hardcode_libdir_flag_spec_GCJ \
18329 hardcode_libdir_flag_spec_ld_GCJ \
18330 hardcode_libdir_separator_GCJ \
18331 hardcode_automatic_GCJ \
18332 module_cmds_GCJ \
18333 module_expsym_cmds_GCJ \
18334 lt_cv_prog_compiler_c_o_GCJ \
18335 exclude_expsyms_GCJ \
18336 include_expsyms_GCJ; do
18337
18338 case $var in
18339 old_archive_cmds_GCJ | \
18340 old_archive_from_new_cmds_GCJ | \
18341 archive_cmds_GCJ | \
18342 archive_expsym_cmds_GCJ | \
18343 module_cmds_GCJ | \
18344 module_expsym_cmds_GCJ | \
18345 old_archive_from_expsyms_cmds_GCJ | \
18346 export_symbols_cmds_GCJ | \
18347 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18348 postinstall_cmds | postuninstall_cmds | \
18349 old_postinstall_cmds | old_postuninstall_cmds | \
18350 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18351 # Double-quote double-evaled strings.
18352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
18353 ;;
18354 *)
18355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18356 ;;
18357 esac
18358 done
18359
18360 case $lt_echo in
18361 *'\$0 --fallback-echo"')
18362 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18363 ;;
18364 esac
18365
18366 cfgfile="$ofile"
18367
18368 cat <<__EOF__ >> "$cfgfile"
18369 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18370
18371 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18372
18373 # Set the command separator (default: ~)
18374 _S_=\${LIBTOOL_CMD_SEP-\~}
18375
18376 # Shell to use when invoking shell scripts.
18377 SHELL=$lt_SHELL
18378
18379 # Whether or not to build shared libraries.
18380 build_libtool_libs=$enable_shared
18381
18382 # Whether or not to build static libraries.
18383 build_old_libs=$enable_static
18384
18385 # Whether or not to add -lc for building shared libraries.
18386 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18387
18388 # Whether or not to disallow shared libs when runtime libs are static
18389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18390
18391 # Whether or not to optimize for fast installation.
18392 fast_install=$enable_fast_install
18393
18394 # The host system.
18395 host_alias=$host_alias
18396 host=$host
18397
18398 # An echo program that does not interpret backslashes.
18399 echo=$lt_echo
18400
18401 # The archiver.
18402 AR=$lt_AR
18403 AR_FLAGS=$lt_AR_FLAGS
18404
18405 # A C compiler.
18406 LTCC=$lt_LTCC
18407
18408 # A language-specific compiler.
18409 CC=$lt_compiler_GCJ
18410
18411 # Is the compiler the GNU C compiler?
18412 with_gcc=$GCC_GCJ
18413
18414 # An ERE matcher.
18415 EGREP=$lt_EGREP
18416
18417 # The linker used to build libraries.
18418 LD=$lt_LD_GCJ
18419
18420 # Whether we need hard or soft links.
18421 LN_S=$lt_LN_S
18422
18423 # A BSD-compatible nm program.
18424 NM=$lt_NM
18425
18426 # A symbol stripping program
18427 STRIP=$STRIP
18428
18429 # Used to examine libraries when file_magic_cmd begins "file"
18430 MAGIC_CMD=$MAGIC_CMD
18431
18432 # Used on cygwin: DLL creation program.
18433 DLLTOOL="$DLLTOOL"
18434
18435 # Used on cygwin: object dumper.
18436 OBJDUMP="$OBJDUMP"
18437
18438 # Used on cygwin: assembler.
18439 AS="$AS"
18440
18441 # The name of the directory that contains temporary libtool files.
18442 objdir=$objdir
18443
18444 # How to create reloadable object files.
18445 reload_flag=$lt_reload_flag
18446 reload_cmds=$lt_reload_cmds
18447
18448 # How to pass a linker flag through the compiler.
18449 wl=$lt_lt_prog_compiler_wl_GCJ
18450
18451 # Object file suffix (normally "o").
18452 objext="$ac_objext"
18453
18454 # Old archive suffix (normally "a").
18455 libext="$libext"
18456
18457 # Shared library suffix (normally ".so").
18458 shrext='$shrext'
18459
18460 # Executable file suffix (normally "").
18461 exeext="$exeext"
18462
18463 # Additional compiler flags for building library objects.
18464 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18465 pic_mode=$pic_mode
18466
18467 # What is the maximum length of a command?
18468 max_cmd_len=$lt_cv_sys_max_cmd_len
18469
18470 # Does compiler simultaneously support -c and -o options?
18471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18472
18473 # Must we lock files when doing compilation ?
18474 need_locks=$lt_need_locks
18475
18476 # Do we need the lib prefix for modules?
18477 need_lib_prefix=$need_lib_prefix
18478
18479 # Do we need a version for libraries?
18480 need_version=$need_version
18481
18482 # Whether dlopen is supported.
18483 dlopen_support=$enable_dlopen
18484
18485 # Whether dlopen of programs is supported.
18486 dlopen_self=$enable_dlopen_self
18487
18488 # Whether dlopen of statically linked programs is supported.
18489 dlopen_self_static=$enable_dlopen_self_static
18490
18491 # Compiler flag to prevent dynamic linking.
18492 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18493
18494 # Compiler flag to turn off builtin functions.
18495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18496
18497 # Compiler flag to allow reflexive dlopens.
18498 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18499
18500 # Compiler flag to generate shared objects directly from archives.
18501 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18502
18503 # Compiler flag to generate thread-safe objects.
18504 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18505
18506 # Library versioning type.
18507 version_type=$version_type
18508
18509 # Format of library name prefix.
18510 libname_spec=$lt_libname_spec
18511
18512 # List of archive names. First name is the real one, the rest are links.
18513 # The last name is the one that the linker finds with -lNAME.
18514 library_names_spec=$lt_library_names_spec
18515
18516 # The coded name of the library, if different from the real name.
18517 soname_spec=$lt_soname_spec
18518
18519 # Commands used to build and install an old-style archive.
18520 RANLIB=$lt_RANLIB
18521 old_archive_cmds=$lt_old_archive_cmds_GCJ
18522 old_postinstall_cmds=$lt_old_postinstall_cmds
18523 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18524
18525 # Create an old-style archive from a shared archive.
18526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18527
18528 # Create a temporary old-style archive to link instead of a shared archive.
18529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18530
18531 # Commands used to build and install a shared archive.
18532 archive_cmds=$lt_archive_cmds_GCJ
18533 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18534 postinstall_cmds=$lt_postinstall_cmds
18535 postuninstall_cmds=$lt_postuninstall_cmds
18536
18537 # Commands used to build a loadable module (assumed same as above if empty)
18538 module_cmds=$lt_module_cmds_GCJ
18539 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18540
18541 # Commands to strip libraries.
18542 old_striplib=$lt_old_striplib
18543 striplib=$lt_striplib
18544
18545 # Dependencies to place before the objects being linked to create a
18546 # shared library.
18547 predep_objects=$lt_predep_objects_GCJ
18548
18549 # Dependencies to place after the objects being linked to create a
18550 # shared library.
18551 postdep_objects=$lt_postdep_objects_GCJ
18552
18553 # Dependencies to place before the objects being linked to create a
18554 # shared library.
18555 predeps=$lt_predeps_GCJ
18556
18557 # Dependencies to place after the objects being linked to create a
18558 # shared library.
18559 postdeps=$lt_postdeps_GCJ
18560
18561 # The library search path used internally by the compiler when linking
18562 # a shared library.
18563 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18564
18565 # Method to check whether dependent libraries are shared objects.
18566 deplibs_check_method=$lt_deplibs_check_method
18567
18568 # Command to use when deplibs_check_method == file_magic.
18569 file_magic_cmd=$lt_file_magic_cmd
18570
18571 # Flag that allows shared libraries with undefined symbols to be built.
18572 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18573
18574 # Flag that forces no undefined symbols.
18575 no_undefined_flag=$lt_no_undefined_flag_GCJ
18576
18577 # Commands used to finish a libtool library installation in a directory.
18578 finish_cmds=$lt_finish_cmds
18579
18580 # Same as above, but a single script fragment to be evaled but not shown.
18581 finish_eval=$lt_finish_eval
18582
18583 # Take the output of nm and produce a listing of raw symbols and C names.
18584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18585
18586 # Transform the output of nm in a proper C declaration
18587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18588
18589 # Transform the output of nm in a C name address pair
18590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18591
18592 # This is the shared library runtime path variable.
18593 runpath_var=$runpath_var
18594
18595 # This is the shared library path variable.
18596 shlibpath_var=$shlibpath_var
18597
18598 # Is shlibpath searched before the hard-coded library search path?
18599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18600
18601 # How to hardcode a shared library path into an executable.
18602 hardcode_action=$hardcode_action_GCJ
18603
18604 # Whether we should hardcode library paths into libraries.
18605 hardcode_into_libs=$hardcode_into_libs
18606
18607 # Flag to hardcode \$libdir into a binary during linking.
18608 # This must work even if \$libdir does not exist.
18609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18610
18611 # If ld is used when linking, flag to hardcode \$libdir into
18612 # a binary during linking. This must work even if \$libdir does
18613 # not exist.
18614 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18615
18616 # Whether we need a single -rpath flag with a separated argument.
18617 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18618
18619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18620 # resulting binary.
18621 hardcode_direct=$hardcode_direct_GCJ
18622
18623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18624 # resulting binary.
18625 hardcode_minus_L=$hardcode_minus_L_GCJ
18626
18627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18628 # the resulting binary.
18629 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18630
18631 # Set to yes if building a shared library automatically hardcodes DIR into the library
18632 # and all subsequent libraries and executables linked against it.
18633 hardcode_automatic=$hardcode_automatic_GCJ
18634
18635 # Variables whose values should be saved in libtool wrapper scripts and
18636 # restored at relink time.
18637 variables_saved_for_relink="$variables_saved_for_relink"
18638
18639 # Whether libtool must link a program against all its dependency libraries.
18640 link_all_deplibs=$link_all_deplibs_GCJ
18641
18642 # Compile-time system search path for libraries
18643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18644
18645 # Run-time system search path for libraries
18646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18647
18648 # Fix the shell variable \$srcfile for the compiler.
18649 fix_srcfile_path="$fix_srcfile_path_GCJ"
18650
18651 # Set to yes if exported symbols are required.
18652 always_export_symbols=$always_export_symbols_GCJ
18653
18654 # The commands to list exported symbols.
18655 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18656
18657 # The commands to extract the exported symbol list from a shared archive.
18658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18659
18660 # Symbols that should not be listed in the preloaded symbols.
18661 exclude_expsyms=$lt_exclude_expsyms_GCJ
18662
18663 # Symbols that must always be exported.
18664 include_expsyms=$lt_include_expsyms_GCJ
18665
18666 # ### END LIBTOOL TAG CONFIG: $tagname
18667
18668 __EOF__
18669
18670
18671 else
18672 # If there is no Makefile yet, we rely on a make rule to execute
18673 # `config.status --recheck' to rerun these tests and create the
18674 # libtool script then.
18675 test -f Makefile && make "$ltmain"
18676 fi
18677
18678
18679 ac_ext=c
18680 ac_cpp='$CPP $CPPFLAGS'
18681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18684
18685 CC="$lt_save_CC"
18686
18687 else
18688 tagname=""
18689 fi
18690 ;;
18691
18692 RC)
18693
18694
18695
18696 # Source file extension for RC test sources.
18697 ac_ext=rc
18698
18699 # Object file extension for compiled RC test sources.
18700 objext=o
18701 objext_RC=$objext
18702
18703 # Code to be used in simple compile tests
18704 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18705
18706 # Code to be used in simple link tests
18707 lt_simple_link_test_code="$lt_simple_compile_test_code"
18708
18709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18710
18711 # If no C compiler was specified, use CC.
18712 LTCC=${LTCC-"$CC"}
18713
18714 # Allow CC to be a program name with arguments.
18715 compiler=$CC
18716
18717
18718 # Allow CC to be a program name with arguments.
18719 lt_save_CC="$CC"
18720 CC=${RC-"windres"}
18721 compiler=$CC
18722 compiler_RC=$CC
18723 lt_cv_prog_compiler_c_o_RC=yes
18724
18725 # The else clause should only fire when bootstrapping the
18726 # libtool distribution, otherwise you forgot to ship ltmain.sh
18727 # with your package, and you will get complaints that there are
18728 # no rules to generate ltmain.sh.
18729 if test -f "$ltmain"; then
18730 # See if we are running on zsh, and set the options which allow our commands through
18731 # without removal of \ escapes.
18732 if test -n "${ZSH_VERSION+set}" ; then
18733 setopt NO_GLOB_SUBST
18734 fi
18735 # Now quote all the things that may contain metacharacters while being
18736 # careful not to overquote the AC_SUBSTed values. We take copies of the
18737 # variables and quote the copies for generation of the libtool script.
18738 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18741 deplibs_check_method reload_flag reload_cmds need_locks \
18742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18743 lt_cv_sys_global_symbol_to_c_name_address \
18744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18745 old_postinstall_cmds old_postuninstall_cmds \
18746 compiler_RC \
18747 CC_RC \
18748 LD_RC \
18749 lt_prog_compiler_wl_RC \
18750 lt_prog_compiler_pic_RC \
18751 lt_prog_compiler_static_RC \
18752 lt_prog_compiler_no_builtin_flag_RC \
18753 export_dynamic_flag_spec_RC \
18754 thread_safe_flag_spec_RC \
18755 whole_archive_flag_spec_RC \
18756 enable_shared_with_static_runtimes_RC \
18757 old_archive_cmds_RC \
18758 old_archive_from_new_cmds_RC \
18759 predep_objects_RC \
18760 postdep_objects_RC \
18761 predeps_RC \
18762 postdeps_RC \
18763 compiler_lib_search_path_RC \
18764 archive_cmds_RC \
18765 archive_expsym_cmds_RC \
18766 postinstall_cmds_RC \
18767 postuninstall_cmds_RC \
18768 old_archive_from_expsyms_cmds_RC \
18769 allow_undefined_flag_RC \
18770 no_undefined_flag_RC \
18771 export_symbols_cmds_RC \
18772 hardcode_libdir_flag_spec_RC \
18773 hardcode_libdir_flag_spec_ld_RC \
18774 hardcode_libdir_separator_RC \
18775 hardcode_automatic_RC \
18776 module_cmds_RC \
18777 module_expsym_cmds_RC \
18778 lt_cv_prog_compiler_c_o_RC \
18779 exclude_expsyms_RC \
18780 include_expsyms_RC; do
18781
18782 case $var in
18783 old_archive_cmds_RC | \
18784 old_archive_from_new_cmds_RC | \
18785 archive_cmds_RC | \
18786 archive_expsym_cmds_RC | \
18787 module_cmds_RC | \
18788 module_expsym_cmds_RC | \
18789 old_archive_from_expsyms_cmds_RC | \
18790 export_symbols_cmds_RC | \
18791 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18792 postinstall_cmds | postuninstall_cmds | \
18793 old_postinstall_cmds | old_postuninstall_cmds | \
18794 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18795 # Double-quote double-evaled strings.
18796 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
18797 ;;
18798 *)
18799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18800 ;;
18801 esac
18802 done
18803
18804 case $lt_echo in
18805 *'\$0 --fallback-echo"')
18806 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18807 ;;
18808 esac
18809
18810 cfgfile="$ofile"
18811
18812 cat <<__EOF__ >> "$cfgfile"
18813 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18814
18815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18816
18817 # Set the command separator (default: ~)
18818 _S_=\${LIBTOOL_CMD_SEP-\~}
18819
18820 # Shell to use when invoking shell scripts.
18821 SHELL=$lt_SHELL
18822
18823 # Whether or not to build shared libraries.
18824 build_libtool_libs=$enable_shared
18825
18826 # Whether or not to build static libraries.
18827 build_old_libs=$enable_static
18828
18829 # Whether or not to add -lc for building shared libraries.
18830 build_libtool_need_lc=$archive_cmds_need_lc_RC
18831
18832 # Whether or not to disallow shared libs when runtime libs are static
18833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18834
18835 # Whether or not to optimize for fast installation.
18836 fast_install=$enable_fast_install
18837
18838 # The host system.
18839 host_alias=$host_alias
18840 host=$host
18841
18842 # An echo program that does not interpret backslashes.
18843 echo=$lt_echo
18844
18845 # The archiver.
18846 AR=$lt_AR
18847 AR_FLAGS=$lt_AR_FLAGS
18848
18849 # A C compiler.
18850 LTCC=$lt_LTCC
18851
18852 # A language-specific compiler.
18853 CC=$lt_compiler_RC
18854
18855 # Is the compiler the GNU C compiler?
18856 with_gcc=$GCC_RC
18857
18858 # An ERE matcher.
18859 EGREP=$lt_EGREP
18860
18861 # The linker used to build libraries.
18862 LD=$lt_LD_RC
18863
18864 # Whether we need hard or soft links.
18865 LN_S=$lt_LN_S
18866
18867 # A BSD-compatible nm program.
18868 NM=$lt_NM
18869
18870 # A symbol stripping program
18871 STRIP=$STRIP
18872
18873 # Used to examine libraries when file_magic_cmd begins "file"
18874 MAGIC_CMD=$MAGIC_CMD
18875
18876 # Used on cygwin: DLL creation program.
18877 DLLTOOL="$DLLTOOL"
18878
18879 # Used on cygwin: object dumper.
18880 OBJDUMP="$OBJDUMP"
18881
18882 # Used on cygwin: assembler.
18883 AS="$AS"
18884
18885 # The name of the directory that contains temporary libtool files.
18886 objdir=$objdir
18887
18888 # How to create reloadable object files.
18889 reload_flag=$lt_reload_flag
18890 reload_cmds=$lt_reload_cmds
18891
18892 # How to pass a linker flag through the compiler.
18893 wl=$lt_lt_prog_compiler_wl_RC
18894
18895 # Object file suffix (normally "o").
18896 objext="$ac_objext"
18897
18898 # Old archive suffix (normally "a").
18899 libext="$libext"
18900
18901 # Shared library suffix (normally ".so").
18902 shrext='$shrext'
18903
18904 # Executable file suffix (normally "").
18905 exeext="$exeext"
18906
18907 # Additional compiler flags for building library objects.
18908 pic_flag=$lt_lt_prog_compiler_pic_RC
18909 pic_mode=$pic_mode
18910
18911 # What is the maximum length of a command?
18912 max_cmd_len=$lt_cv_sys_max_cmd_len
18913
18914 # Does compiler simultaneously support -c and -o options?
18915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18916
18917 # Must we lock files when doing compilation ?
18918 need_locks=$lt_need_locks
18919
18920 # Do we need the lib prefix for modules?
18921 need_lib_prefix=$need_lib_prefix
18922
18923 # Do we need a version for libraries?
18924 need_version=$need_version
18925
18926 # Whether dlopen is supported.
18927 dlopen_support=$enable_dlopen
18928
18929 # Whether dlopen of programs is supported.
18930 dlopen_self=$enable_dlopen_self
18931
18932 # Whether dlopen of statically linked programs is supported.
18933 dlopen_self_static=$enable_dlopen_self_static
18934
18935 # Compiler flag to prevent dynamic linking.
18936 link_static_flag=$lt_lt_prog_compiler_static_RC
18937
18938 # Compiler flag to turn off builtin functions.
18939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18940
18941 # Compiler flag to allow reflexive dlopens.
18942 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18943
18944 # Compiler flag to generate shared objects directly from archives.
18945 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18946
18947 # Compiler flag to generate thread-safe objects.
18948 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18949
18950 # Library versioning type.
18951 version_type=$version_type
18952
18953 # Format of library name prefix.
18954 libname_spec=$lt_libname_spec
18955
18956 # List of archive names. First name is the real one, the rest are links.
18957 # The last name is the one that the linker finds with -lNAME.
18958 library_names_spec=$lt_library_names_spec
18959
18960 # The coded name of the library, if different from the real name.
18961 soname_spec=$lt_soname_spec
18962
18963 # Commands used to build and install an old-style archive.
18964 RANLIB=$lt_RANLIB
18965 old_archive_cmds=$lt_old_archive_cmds_RC
18966 old_postinstall_cmds=$lt_old_postinstall_cmds
18967 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18968
18969 # Create an old-style archive from a shared archive.
18970 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18971
18972 # Create a temporary old-style archive to link instead of a shared archive.
18973 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18974
18975 # Commands used to build and install a shared archive.
18976 archive_cmds=$lt_archive_cmds_RC
18977 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18978 postinstall_cmds=$lt_postinstall_cmds
18979 postuninstall_cmds=$lt_postuninstall_cmds
18980
18981 # Commands used to build a loadable module (assumed same as above if empty)
18982 module_cmds=$lt_module_cmds_RC
18983 module_expsym_cmds=$lt_module_expsym_cmds_RC
18984
18985 # Commands to strip libraries.
18986 old_striplib=$lt_old_striplib
18987 striplib=$lt_striplib
18988
18989 # Dependencies to place before the objects being linked to create a
18990 # shared library.
18991 predep_objects=$lt_predep_objects_RC
18992
18993 # Dependencies to place after the objects being linked to create a
18994 # shared library.
18995 postdep_objects=$lt_postdep_objects_RC
18996
18997 # Dependencies to place before the objects being linked to create a
18998 # shared library.
18999 predeps=$lt_predeps_RC
19000
19001 # Dependencies to place after the objects being linked to create a
19002 # shared library.
19003 postdeps=$lt_postdeps_RC
19004
19005 # The library search path used internally by the compiler when linking
19006 # a shared library.
19007 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19008
19009 # Method to check whether dependent libraries are shared objects.
19010 deplibs_check_method=$lt_deplibs_check_method
19011
19012 # Command to use when deplibs_check_method == file_magic.
19013 file_magic_cmd=$lt_file_magic_cmd
19014
19015 # Flag that allows shared libraries with undefined symbols to be built.
19016 allow_undefined_flag=$lt_allow_undefined_flag_RC
19017
19018 # Flag that forces no undefined symbols.
19019 no_undefined_flag=$lt_no_undefined_flag_RC
19020
19021 # Commands used to finish a libtool library installation in a directory.
19022 finish_cmds=$lt_finish_cmds
19023
19024 # Same as above, but a single script fragment to be evaled but not shown.
19025 finish_eval=$lt_finish_eval
19026
19027 # Take the output of nm and produce a listing of raw symbols and C names.
19028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19029
19030 # Transform the output of nm in a proper C declaration
19031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19032
19033 # Transform the output of nm in a C name address pair
19034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19035
19036 # This is the shared library runtime path variable.
19037 runpath_var=$runpath_var
19038
19039 # This is the shared library path variable.
19040 shlibpath_var=$shlibpath_var
19041
19042 # Is shlibpath searched before the hard-coded library search path?
19043 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19044
19045 # How to hardcode a shared library path into an executable.
19046 hardcode_action=$hardcode_action_RC
19047
19048 # Whether we should hardcode library paths into libraries.
19049 hardcode_into_libs=$hardcode_into_libs
19050
19051 # Flag to hardcode \$libdir into a binary during linking.
19052 # This must work even if \$libdir does not exist.
19053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19054
19055 # If ld is used when linking, flag to hardcode \$libdir into
19056 # a binary during linking. This must work even if \$libdir does
19057 # not exist.
19058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19059
19060 # Whether we need a single -rpath flag with a separated argument.
19061 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19062
19063 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19064 # resulting binary.
19065 hardcode_direct=$hardcode_direct_RC
19066
19067 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19068 # resulting binary.
19069 hardcode_minus_L=$hardcode_minus_L_RC
19070
19071 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19072 # the resulting binary.
19073 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19074
19075 # Set to yes if building a shared library automatically hardcodes DIR into the library
19076 # and all subsequent libraries and executables linked against it.
19077 hardcode_automatic=$hardcode_automatic_RC
19078
19079 # Variables whose values should be saved in libtool wrapper scripts and
19080 # restored at relink time.
19081 variables_saved_for_relink="$variables_saved_for_relink"
19082
19083 # Whether libtool must link a program against all its dependency libraries.
19084 link_all_deplibs=$link_all_deplibs_RC
19085
19086 # Compile-time system search path for libraries
19087 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19088
19089 # Run-time system search path for libraries
19090 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19091
19092 # Fix the shell variable \$srcfile for the compiler.
19093 fix_srcfile_path="$fix_srcfile_path_RC"
19094
19095 # Set to yes if exported symbols are required.
19096 always_export_symbols=$always_export_symbols_RC
19097
19098 # The commands to list exported symbols.
19099 export_symbols_cmds=$lt_export_symbols_cmds_RC
19100
19101 # The commands to extract the exported symbol list from a shared archive.
19102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19103
19104 # Symbols that should not be listed in the preloaded symbols.
19105 exclude_expsyms=$lt_exclude_expsyms_RC
19106
19107 # Symbols that must always be exported.
19108 include_expsyms=$lt_include_expsyms_RC
19109
19110 # ### END LIBTOOL TAG CONFIG: $tagname
19111
19112 __EOF__
19113
19114
19115 else
19116 # If there is no Makefile yet, we rely on a make rule to execute
19117 # `config.status --recheck' to rerun these tests and create the
19118 # libtool script then.
19119 test -f Makefile && make "$ltmain"
19120 fi
19121
19122
19123 ac_ext=c
19124 ac_cpp='$CPP $CPPFLAGS'
19125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19128
19129 CC="$lt_save_CC"
19130
19131 ;;
19132
19133 *)
19134 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19135 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19136 { (exit 1); exit 1; }; }
19137 ;;
19138 esac
19139
19140 # Append the new tag name to the list of available tags.
19141 if test -n "$tagname" ; then
19142 available_tags="$available_tags $tagname"
19143 fi
19144 fi
19145 done
19146 IFS="$lt_save_ifs"
19147
19148 # Now substitute the updated list of available tags.
19149 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19150 mv "${ofile}T" "$ofile"
19151 chmod +x "$ofile"
19152 else
19153 rm -f "${ofile}T"
19154 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19155 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19156 { (exit 1); exit 1; }; }
19157 fi
19158 fi
19159
19160
19161
19162 # This can be used to rebuild libtool when needed
19163 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19164
19165 # Always use our own libtool.
19166 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19167
19168 # Prevent multiple expansion
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190 if test "x$GCC" = "xyes"; then
19191 case " $CFLAGS " in
19192 *[\ \ ]-Wall[\ \ ]*) ;;
19193 *) CFLAGS="$CFLAGS -Wall" ;;
19194 esac
19195 case " $CFLAGS " in
19196 *[\ \ ]-O[1-9][\ \ ]*) ;;
19197 *) CFLAGS="$CFLAGS -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math" ;;
19198 esac
19199 fi
19200
19201 ac_config_files="$ac_config_files Makefile libdssialsacompat.pc"
19202 cat >confcache <<\_ACEOF
19203 # This file is a shell script that caches the results of configure
19204 # tests run on this system so they can be shared between configure
19205 # scripts and configure runs, see configure's option --config-cache.
19206 # It is not useful on other systems. If it contains results you don't
19207 # want to keep, you may remove or edit it.
19208 #
19209 # config.status only pays attention to the cache file if you give it
19210 # the --recheck option to rerun configure.
19211 #
19212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19214 # following values.
19215
19216 _ACEOF
19217
19218 # The following way of writing the cache mishandles newlines in values,
19219 # but we know of no workaround that is simple, portable, and efficient.
19220 # So, don't put newlines in cache variables' values.
19221 # Ultrix sh set writes to stderr and can't be redirected directly,
19222 # and sets the high bit in the cache file unless we assign to the vars.
19223 {
19224 (set) 2>&1 |
19225 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19226 *ac_space=\ *)
19227 # `set' does not quote correctly, so add quotes (double-quote
19228 # substitution turns \\\\ into \\, and sed turns \\ into \).
19229 sed -n \
19230 "s/'/'\\\\''/g;
19231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19232 ;;
19233 *)
19234 # `set' quotes correctly as required by POSIX, so do not add quotes.
19235 sed -n \
19236 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19237 ;;
19238 esac;
19239 } |
19240 sed '
19241 t clear
19242 : clear
19243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19244 t end
19245 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19246 : end' >>confcache
19247 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19248 if test -w $cache_file; then
19249 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19250 cat confcache >$cache_file
19251 else
19252 echo "not updating unwritable cache $cache_file"
19253 fi
19254 fi
19255 rm -f confcache
19256
19257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19258 # Let make expand exec_prefix.
19259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19260
19261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19263 # trailing colons and then remove the whole line if VPATH becomes empty
19264 # (actually we leave an empty line to preserve line numbers).
19265 if test "x$srcdir" = x.; then
19266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19267 s/:*\$(srcdir):*/:/;
19268 s/:*\${srcdir}:*/:/;
19269 s/:*@srcdir@:*/:/;
19270 s/^\([^=]*=[ ]*\):*/\1/;
19271 s/:*$//;
19272 s/^[^=]*=[ ]*$//;
19273 }'
19274 fi
19275
19276 # Transform confdefs.h into DEFS.
19277 # Protect against shell expansion while executing Makefile rules.
19278 # Protect against Makefile macro expansion.
19279 #
19280 # If the first sed substitution is executed (which looks for macros that
19281 # take arguments), then we branch to the quote section. Otherwise,
19282 # look for a macro that doesn't take arguments.
19283 cat >confdef2opt.sed <<\_ACEOF
19284 t clear
19285 : clear
19286 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19287 t quote
19288 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19289 t quote
19290 d
19291 : quote
19292 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19293 s,\[,\\&,g
19294 s,\],\\&,g
19295 s,\$,$$,g
19296 p
19297 _ACEOF
19298 # We use echo to avoid assuming a particular line-breaking character.
19299 # The extra dot is to prevent the shell from consuming trailing
19300 # line-breaks from the sub-command output. A line-break within
19301 # single-quotes doesn't work because, if this script is created in a
19302 # platform that uses two characters for line-breaks (e.g., DOS), tr
19303 # would break.
19304 ac_LF_and_DOT=`echo; echo .`
19305 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19306 rm -f confdef2opt.sed
19307
19308
19309 ac_libobjs=
19310 ac_ltlibobjs=
19311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19312 # 1. Remove the extension, and $U if already installed.
19313 ac_i=`echo "$ac_i" |
19314 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19315 # 2. Add them.
19316 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19317 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19318 done
19319 LIBOBJS=$ac_libobjs
19320
19321 LTLIBOBJS=$ac_ltlibobjs
19322
19323
19324 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19325 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19326 Usually this means the macro was only invoked conditionally." >&5
19327 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19328 Usually this means the macro was only invoked conditionally." >&2;}
19329 { (exit 1); exit 1; }; }
19330 fi
19331
19332 : ${CONFIG_STATUS=./config.status}
19333 ac_clean_files_save=$ac_clean_files
19334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19337 cat >$CONFIG_STATUS <<_ACEOF
19338 #! $SHELL
19339 # Generated by $as_me.
19340 # Run this file to recreate the current configuration.
19341 # Compiler output produced by configure, useful for debugging
19342 # configure, is in config.log if it exists.
19343
19344 debug=false
19345 ac_cs_recheck=false
19346 ac_cs_silent=false
19347 SHELL=\${CONFIG_SHELL-$SHELL}
19348 _ACEOF
19349
19350 cat >>$CONFIG_STATUS <<\_ACEOF
19351 ## --------------------- ##
19352 ## M4sh Initialization. ##
19353 ## --------------------- ##
19354
19355 # Be Bourne compatible
19356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19357 emulate sh
19358 NULLCMD=:
19359 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19360 # is contrary to our usage. Disable this feature.
19361 alias -g '${1+"$@"}'='"$@"'
19362 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19363 set -o posix
19364 fi
19365
19366 # Support unset when possible.
19367 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19368 as_unset=unset
19369 else
19370 as_unset=false
19371 fi
19372
19373
19374 # Work around bugs in pre-3.0 UWIN ksh.
19375 $as_unset ENV MAIL MAILPATH
19376 PS1='$ '
19377 PS2='> '
19378 PS4='+ '
19379
19380 # NLS nuisances.
19381 for as_var in \
19382 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19383 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19384 LC_TELEPHONE LC_TIME
19385 do
19386 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19387 eval $as_var=C; export $as_var
19388 else
19389 $as_unset $as_var
19390 fi
19391 done
19392
19393 # Required to use basename.
19394 if expr a : '\(a\)' >/dev/null 2>&1; then
19395 as_expr=expr
19396 else
19397 as_expr=false
19398 fi
19399
19400 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19401 as_basename=basename
19402 else
19403 as_basename=false
19404 fi
19405
19406
19407 # Name of the executable.
19408 as_me=`$as_basename "$0" ||
19409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19410 X"$0" : 'X\(//\)$' \| \
19411 X"$0" : 'X\(/\)$' \| \
19412 . : '\(.\)' 2>/dev/null ||
19413 echo X/"$0" |
19414 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19415 /^X\/\(\/\/\)$/{ s//\1/; q; }
19416 /^X\/\(\/\).*/{ s//\1/; q; }
19417 s/.*/./; q'`
19418
19419
19420 # PATH needs CR, and LINENO needs CR and PATH.
19421 # Avoid depending upon Character Ranges.
19422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19425 as_cr_digits='0123456789'
19426 as_cr_alnum=$as_cr_Letters$as_cr_digits
19427
19428 # The user is always right.
19429 if test "${PATH_SEPARATOR+set}" != set; then
19430 echo "#! /bin/sh" >conf$$.sh
19431 echo "exit 0" >>conf$$.sh
19432 chmod +x conf$$.sh
19433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19434 PATH_SEPARATOR=';'
19435 else
19436 PATH_SEPARATOR=:
19437 fi
19438 rm -f conf$$.sh
19439 fi
19440
19441
19442 as_lineno_1=$LINENO
19443 as_lineno_2=$LINENO
19444 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19445 test "x$as_lineno_1" != "x$as_lineno_2" &&
19446 test "x$as_lineno_3" = "x$as_lineno_2" || {
19447 # Find who we are. Look in the path if we contain no path at all
19448 # relative or not.
19449 case $0 in
19450 *[\\/]* ) as_myself=$0 ;;
19451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19452 for as_dir in $PATH
19453 do
19454 IFS=$as_save_IFS
19455 test -z "$as_dir" && as_dir=.
19456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19457 done
19458
19459 ;;
19460 esac
19461 # We did not find ourselves, most probably we were run as `sh COMMAND'
19462 # in which case we are not to be found in the path.
19463 if test "x$as_myself" = x; then
19464 as_myself=$0
19465 fi
19466 if test ! -f "$as_myself"; then
19467 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19468 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19469 { (exit 1); exit 1; }; }
19470 fi
19471 case $CONFIG_SHELL in
19472 '')
19473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19475 do
19476 IFS=$as_save_IFS
19477 test -z "$as_dir" && as_dir=.
19478 for as_base in sh bash ksh sh5; do
19479 case $as_dir in
19480 /*)
19481 if ("$as_dir/$as_base" -c '
19482 as_lineno_1=$LINENO
19483 as_lineno_2=$LINENO
19484 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19485 test "x$as_lineno_1" != "x$as_lineno_2" &&
19486 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19487 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19488 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19489 CONFIG_SHELL=$as_dir/$as_base
19490 export CONFIG_SHELL
19491 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19492 fi;;
19493 esac
19494 done
19495 done
19496 ;;
19497 esac
19498
19499 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19500 # uniformly replaced by the line number. The first 'sed' inserts a
19501 # line-number line before each line; the second 'sed' does the real
19502 # work. The second script uses 'N' to pair each line-number line
19503 # with the numbered line, and appends trailing '-' during
19504 # substitution so that $LINENO is not a special case at line end.
19505 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19506 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19507 sed '=' <$as_myself |
19508 sed '
19509 N
19510 s,$,-,
19511 : loop
19512 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19513 t loop
19514 s,-$,,
19515 s,^['$as_cr_digits']*\n,,
19516 ' >$as_me.lineno &&
19517 chmod +x $as_me.lineno ||
19518 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19519 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19520 { (exit 1); exit 1; }; }
19521
19522 # Don't try to exec as it changes $[0], causing all sort of problems
19523 # (the dirname of $[0] is not the place where we might find the
19524 # original and so on. Autoconf is especially sensible to this).
19525 . ./$as_me.lineno
19526 # Exit status is that of the last command.
19527 exit
19528 }
19529
19530
19531 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19532 *c*,-n*) ECHO_N= ECHO_C='
19533 ' ECHO_T=' ' ;;
19534 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19535 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19536 esac
19537
19538 if expr a : '\(a\)' >/dev/null 2>&1; then
19539 as_expr=expr
19540 else
19541 as_expr=false
19542 fi
19543
19544 rm -f conf$$ conf$$.exe conf$$.file
19545 echo >conf$$.file
19546 if ln -s conf$$.file conf$$ 2>/dev/null; then
19547 # We could just check for DJGPP; but this test a) works b) is more generic
19548 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19549 if test -f conf$$.exe; then
19550 # Don't use ln at all; we don't have any links
19551 as_ln_s='cp -p'
19552 else
19553 as_ln_s='ln -s'
19554 fi
19555 elif ln conf$$.file conf$$ 2>/dev/null; then
19556 as_ln_s=ln
19557 else
19558 as_ln_s='cp -p'
19559 fi
19560 rm -f conf$$ conf$$.exe conf$$.file
19561
19562 if mkdir -p . 2>/dev/null; then
19563 as_mkdir_p=:
19564 else
19565 as_mkdir_p=false
19566 fi
19567
19568 as_executable_p="test -f"
19569
19570 # Sed expression to map a string onto a valid CPP name.
19571 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19572
19573 # Sed expression to map a string onto a valid variable name.
19574 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19575
19576
19577 # IFS
19578 # We need space, tab and new line, in precisely that order.
19579 as_nl='
19580 '
19581 IFS=" $as_nl"
19582
19583 # CDPATH.
19584 $as_unset CDPATH
19585
19586 exec 6>&1
19587
19588 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19589 # report actual input values of CONFIG_FILES etc. instead of their
19590 # values after options handling. Logging --version etc. is OK.
19591 exec 5>>config.log
19592 {
19593 echo
19594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19595 ## Running $as_me. ##
19596 _ASBOX
19597 } >&5
19598 cat >&5 <<_CSEOF
19599
19600 This file was extended by libdssialsacompat $as_me 1.0.8a, which was
19601 generated by GNU Autoconf 2.57. Invocation command line was
19602
19603 CONFIG_FILES = $CONFIG_FILES
19604 CONFIG_HEADERS = $CONFIG_HEADERS
19605 CONFIG_LINKS = $CONFIG_LINKS
19606 CONFIG_COMMANDS = $CONFIG_COMMANDS
19607 $ $0 $@
19608
19609 _CSEOF
19610 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19611 echo >&5
19612 _ACEOF
19613
19614 # Files that config.status was made for.
19615 if test -n "$ac_config_files"; then
19616 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19617 fi
19618
19619 if test -n "$ac_config_headers"; then
19620 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19621 fi
19622
19623 if test -n "$ac_config_links"; then
19624 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19625 fi
19626
19627 if test -n "$ac_config_commands"; then
19628 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19629 fi
19630
19631 cat >>$CONFIG_STATUS <<\_ACEOF
19632
19633 ac_cs_usage="\
19634 \`$as_me' instantiates files from templates according to the
19635 current configuration.
19636
19637 Usage: $0 [OPTIONS] [FILE]...
19638
19639 -h, --help print this help, then exit
19640 -V, --version print version number, then exit
19641 -q, --quiet do not print progress messages
19642 -d, --debug don't remove temporary files
19643 --recheck update $as_me by reconfiguring in the same conditions
19644 --file=FILE[:TEMPLATE]
19645 instantiate the configuration file FILE
19646
19647 Configuration files:
19648 $config_files
19649
19650 Configuration commands:
19651 $config_commands
19652
19653 Report bugs to <[email protected]>."
19654 _ACEOF
19655
19656 cat >>$CONFIG_STATUS <<_ACEOF
19657 ac_cs_version="\\
19658 libdssialsacompat config.status 1.0.8a
19659 configured by $0, generated by GNU Autoconf 2.57,
19660 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19661
19662 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19663 Free Software Foundation, Inc.
19664 This config.status script is free software; the Free Software Foundation
19665 gives unlimited permission to copy, distribute and modify it."
19666 srcdir=$srcdir
19667 INSTALL="$INSTALL"
19668 _ACEOF
19669
19670 cat >>$CONFIG_STATUS <<\_ACEOF
19671 # If no file are specified by the user, then we need to provide default
19672 # value. By we need to know if files were specified by the user.
19673 ac_need_defaults=:
19674 while test $# != 0
19675 do
19676 case $1 in
19677 --*=*)
19678 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19679 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19680 ac_shift=:
19681 ;;
19682 -*)
19683 ac_option=$1
19684 ac_optarg=$2
19685 ac_shift=shift
19686 ;;
19687 *) # This is not an option, so the user has probably given explicit
19688 # arguments.
19689 ac_option=$1
19690 ac_need_defaults=false;;
19691 esac
19692
19693 case $ac_option in
19694 # Handling of the options.
19695 _ACEOF
19696 cat >>$CONFIG_STATUS <<\_ACEOF
19697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19698 ac_cs_recheck=: ;;
19699 --version | --vers* | -V )
19700 echo "$ac_cs_version"; exit 0 ;;
19701 --he | --h)
19702 # Conflict between --help and --header
19703 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19704 Try \`$0 --help' for more information." >&5
19705 echo "$as_me: error: ambiguous option: $1
19706 Try \`$0 --help' for more information." >&2;}
19707 { (exit 1); exit 1; }; };;
19708 --help | --hel | -h )
19709 echo "$ac_cs_usage"; exit 0 ;;
19710 --debug | --d* | -d )
19711 debug=: ;;
19712 --file | --fil | --fi | --f )
19713 $ac_shift
19714 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19715 ac_need_defaults=false;;
19716 --header | --heade | --head | --hea )
19717 $ac_shift
19718 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19719 ac_need_defaults=false;;
19720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19721 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19722 ac_cs_silent=: ;;
19723
19724 # This is an error.
19725 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19726 Try \`$0 --help' for more information." >&5
19727 echo "$as_me: error: unrecognized option: $1
19728 Try \`$0 --help' for more information." >&2;}
19729 { (exit 1); exit 1; }; } ;;
19730
19731 *) ac_config_targets="$ac_config_targets $1" ;;
19732
19733 esac
19734 shift
19735 done
19736
19737 ac_configure_extra_args=
19738
19739 if $ac_cs_silent; then
19740 exec 6>/dev/null
19741 ac_configure_extra_args="$ac_configure_extra_args --silent"
19742 fi
19743
19744 _ACEOF
19745 cat >>$CONFIG_STATUS <<_ACEOF
19746 if \$ac_cs_recheck; then
19747 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19748 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19749 fi
19750
19751 _ACEOF
19752
19753 cat >>$CONFIG_STATUS <<_ACEOF
19754 #
19755 # INIT-COMMANDS section.
19756 #
19757
19758 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19759
19760 _ACEOF
19761
19762
19763
19764 cat >>$CONFIG_STATUS <<\_ACEOF
19765 for ac_config_target in $ac_config_targets
19766 do
19767 case "$ac_config_target" in
19768 # Handling of arguments.
19769 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19770 "libdssialsacompat.pc" ) CONFIG_FILES="$CONFIG_FILES libdssialsacompat.pc" ;;
19771 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19772 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19773 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19774 { (exit 1); exit 1; }; };;
19775 esac
19776 done
19777
19778 # If the user did not use the arguments to specify the items to instantiate,
19779 # then the envvar interface is used. Set only those that are not.
19780 # We use the long form for the default assignment because of an extremely
19781 # bizarre bug on SunOS 4.1.3.
19782 if $ac_need_defaults; then
19783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19785 fi
19786
19787 # Have a temporary directory for convenience. Make it in the build tree
19788 # simply because there is no reason to put it here, and in addition,
19789 # creating and moving files from /tmp can sometimes cause problems.
19790 # Create a temporary directory, and hook for its removal unless debugging.
19791 $debug ||
19792 {
19793 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19794 trap '{ (exit 1); exit 1; }' 1 2 13 15
19795 }
19796
19797 # Create a (secure) tmp directory for tmp files.
19798
19799 {
19800 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19801 test -n "$tmp" && test -d "$tmp"
19802 } ||
19803 {
19804 tmp=./confstat$$-$RANDOM
19805 (umask 077 && mkdir $tmp)
19806 } ||
19807 {
19808 echo "$me: cannot create a temporary directory in ." >&2
19809 { (exit 1); exit 1; }
19810 }
19811
19812 _ACEOF
19813
19814 cat >>$CONFIG_STATUS <<_ACEOF
19815
19816 #
19817 # CONFIG_FILES section.
19818 #
19819
19820 # No need to generate the scripts if there are no CONFIG_FILES.
19821 # This happens for instance when ./config.status config.h
19822 if test -n "\$CONFIG_FILES"; then
19823 # Protect against being on the right side of a sed subst in config.status.
19824 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19825 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19826 s,@SHELL@,$SHELL,;t t
19827 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19828 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19829 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19830 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19831 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19832 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19833 s,@exec_prefix@,$exec_prefix,;t t
19834 s,@prefix@,$prefix,;t t
19835 s,@program_transform_name@,$program_transform_name,;t t
19836 s,@bindir@,$bindir,;t t
19837 s,@sbindir@,$sbindir,;t t
19838 s,@libexecdir@,$libexecdir,;t t
19839 s,@datadir@,$datadir,;t t
19840 s,@sysconfdir@,$sysconfdir,;t t
19841 s,@sharedstatedir@,$sharedstatedir,;t t
19842 s,@localstatedir@,$localstatedir,;t t
19843 s,@libdir@,$libdir,;t t
19844 s,@includedir@,$includedir,;t t
19845 s,@oldincludedir@,$oldincludedir,;t t
19846 s,@infodir@,$infodir,;t t
19847 s,@mandir@,$mandir,;t t
19848 s,@build_alias@,$build_alias,;t t
19849 s,@host_alias@,$host_alias,;t t
19850 s,@target_alias@,$target_alias,;t t
19851 s,@DEFS@,$DEFS,;t t
19852 s,@ECHO_C@,$ECHO_C,;t t
19853 s,@ECHO_N@,$ECHO_N,;t t
19854 s,@ECHO_T@,$ECHO_T,;t t
19855 s,@LIBS@,$LIBS,;t t
19856 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19857 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19858 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19859 s,@PACKAGE@,$PACKAGE,;t t
19860 s,@VERSION@,$VERSION,;t t
19861 s,@ACLOCAL@,$ACLOCAL,;t t
19862 s,@AUTOCONF@,$AUTOCONF,;t t
19863 s,@AUTOMAKE@,$AUTOMAKE,;t t
19864 s,@AUTOHEADER@,$AUTOHEADER,;t t
19865 s,@MAKEINFO@,$MAKEINFO,;t t
19866 s,@AMTAR@,$AMTAR,;t t
19867 s,@install_sh@,$install_sh,;t t
19868 s,@STRIP@,$STRIP,;t t
19869 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19870 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19871 s,@AWK@,$AWK,;t t
19872 s,@SET_MAKE@,$SET_MAKE,;t t
19873 s,@CC@,$CC,;t t
19874 s,@CFLAGS@,$CFLAGS,;t t
19875 s,@LDFLAGS@,$LDFLAGS,;t t
19876 s,@CPPFLAGS@,$CPPFLAGS,;t t
19877 s,@ac_ct_CC@,$ac_ct_CC,;t t
19878 s,@EXEEXT@,$EXEEXT,;t t
19879 s,@OBJEXT@,$OBJEXT,;t t
19880 s,@DEPDIR@,$DEPDIR,;t t
19881 s,@am__include@,$am__include,;t t
19882 s,@am__quote@,$am__quote,;t t
19883 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19884 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19885 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19886 s,@CCDEPMODE@,$CCDEPMODE,;t t
19887 s,@CPP@,$CPP,;t t
19888 s,@EGREP@,$EGREP,;t t
19889 s,@build@,$build,;t t
19890 s,@build_cpu@,$build_cpu,;t t
19891 s,@build_vendor@,$build_vendor,;t t
19892 s,@build_os@,$build_os,;t t
19893 s,@host@,$host,;t t
19894 s,@host_cpu@,$host_cpu,;t t
19895 s,@host_vendor@,$host_vendor,;t t
19896 s,@host_os@,$host_os,;t t
19897 s,@LN_S@,$LN_S,;t t
19898 s,@ECHO@,$ECHO,;t t
19899 s,@AR@,$AR,;t t
19900 s,@ac_ct_AR@,$ac_ct_AR,;t t
19901 s,@RANLIB@,$RANLIB,;t t
19902 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19903 s,@CXX@,$CXX,;t t
19904 s,@CXXFLAGS@,$CXXFLAGS,;t t
19905 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19906 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19907 s,@CXXCPP@,$CXXCPP,;t t
19908 s,@F77@,$F77,;t t
19909 s,@FFLAGS@,$FFLAGS,;t t
19910 s,@ac_ct_F77@,$ac_ct_F77,;t t
19911 s,@LIBTOOL@,$LIBTOOL,;t t
19912 s,@LIBOBJS@,$LIBOBJS,;t t
19913 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19914 CEOF
19915
19916 _ACEOF
19917
19918 cat >>$CONFIG_STATUS <<\_ACEOF
19919 # Split the substitutions into bite-sized pieces for seds with
19920 # small command number limits, like on Digital OSF/1 and HP-UX.
19921 ac_max_sed_lines=48
19922 ac_sed_frag=1 # Number of current file.
19923 ac_beg=1 # First line for current file.
19924 ac_end=$ac_max_sed_lines # Line after last line for current file.
19925 ac_more_lines=:
19926 ac_sed_cmds=
19927 while $ac_more_lines; do
19928 if test $ac_beg -gt 1; then
19929 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19930 else
19931 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19932 fi
19933 if test ! -s $tmp/subs.frag; then
19934 ac_more_lines=false
19935 else
19936 # The purpose of the label and of the branching condition is to
19937 # speed up the sed processing (if there are no `@' at all, there
19938 # is no need to browse any of the substitutions).
19939 # These are the two extra sed commands mentioned above.
19940 (echo ':t
19941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19942 if test -z "$ac_sed_cmds"; then
19943 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19944 else
19945 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19946 fi
19947 ac_sed_frag=`expr $ac_sed_frag + 1`
19948 ac_beg=$ac_end
19949 ac_end=`expr $ac_end + $ac_max_sed_lines`
19950 fi
19951 done
19952 if test -z "$ac_sed_cmds"; then
19953 ac_sed_cmds=cat
19954 fi
19955 fi # test -n "$CONFIG_FILES"
19956
19957 _ACEOF
19958 cat >>$CONFIG_STATUS <<\_ACEOF
19959 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19961 case $ac_file in
19962 - | *:- | *:-:* ) # input from stdin
19963 cat >$tmp/stdin
19964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19968 * ) ac_file_in=$ac_file.in ;;
19969 esac
19970
19971 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19972 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19974 X"$ac_file" : 'X\(//\)[^/]' \| \
19975 X"$ac_file" : 'X\(//\)$' \| \
19976 X"$ac_file" : 'X\(/\)' \| \
19977 . : '\(.\)' 2>/dev/null ||
19978 echo X"$ac_file" |
19979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19981 /^X\(\/\/\)$/{ s//\1/; q; }
19982 /^X\(\/\).*/{ s//\1/; q; }
19983 s/.*/./; q'`
19984 { if $as_mkdir_p; then
19985 mkdir -p "$ac_dir"
19986 else
19987 as_dir="$ac_dir"
19988 as_dirs=
19989 while test ! -d "$as_dir"; do
19990 as_dirs="$as_dir $as_dirs"
19991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19993 X"$as_dir" : 'X\(//\)[^/]' \| \
19994 X"$as_dir" : 'X\(//\)$' \| \
19995 X"$as_dir" : 'X\(/\)' \| \
19996 . : '\(.\)' 2>/dev/null ||
19997 echo X"$as_dir" |
19998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20000 /^X\(\/\/\)$/{ s//\1/; q; }
20001 /^X\(\/\).*/{ s//\1/; q; }
20002 s/.*/./; q'`
20003 done
20004 test ! -n "$as_dirs" || mkdir $as_dirs
20005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20006 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20007 { (exit 1); exit 1; }; }; }
20008
20009 ac_builddir=.
20010
20011 if test "$ac_dir" != .; then
20012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20013 # A "../" for each directory in $ac_dir_suffix.
20014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20015 else
20016 ac_dir_suffix= ac_top_builddir=
20017 fi
20018
20019 case $srcdir in
20020 .) # No --srcdir option. We are building in place.
20021 ac_srcdir=.
20022 if test -z "$ac_top_builddir"; then
20023 ac_top_srcdir=.
20024 else
20025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20026 fi ;;
20027 [\\/]* | ?:[\\/]* ) # Absolute path.
20028 ac_srcdir=$srcdir$ac_dir_suffix;
20029 ac_top_srcdir=$srcdir ;;
20030 *) # Relative path.
20031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20033 esac
20034 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20035 # absolute.
20036 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20037 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20038 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20039 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20040
20041
20042 case $INSTALL in
20043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20044 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20045 esac
20046
20047 if test x"$ac_file" != x-; then
20048 { echo "$as_me:$LINENO: creating $ac_file" >&5
20049 echo "$as_me: creating $ac_file" >&6;}
20050 rm -f "$ac_file"
20051 fi
20052 # Let's still pretend it is `configure' which instantiates (i.e., don't
20053 # use $as_me), people would be surprised to read:
20054 # /* config.h. Generated by config.status. */
20055 if test x"$ac_file" = x-; then
20056 configure_input=
20057 else
20058 configure_input="$ac_file. "
20059 fi
20060 configure_input=$configure_input"Generated from `echo $ac_file_in |
20061 sed 's,.*/,,'` by configure."
20062
20063 # First look for the input files in the build tree, otherwise in the
20064 # src tree.
20065 ac_file_inputs=`IFS=:
20066 for f in $ac_file_in; do
20067 case $f in
20068 -) echo $tmp/stdin ;;
20069 [\\/$]*)
20070 # Absolute (can't be DOS-style, as IFS=:)
20071 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20072 echo "$as_me: error: cannot find input file: $f" >&2;}
20073 { (exit 1); exit 1; }; }
20074 echo $f;;
20075 *) # Relative
20076 if test -f "$f"; then
20077 # Build tree
20078 echo $f
20079 elif test -f "$srcdir/$f"; then
20080 # Source tree
20081 echo $srcdir/$f
20082 else
20083 # /dev/null tree
20084 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20085 echo "$as_me: error: cannot find input file: $f" >&2;}
20086 { (exit 1); exit 1; }; }
20087 fi;;
20088 esac
20089 done` || { (exit 1); exit 1; }
20090 _ACEOF
20091 cat >>$CONFIG_STATUS <<_ACEOF
20092 sed "$ac_vpsub
20093 $extrasub
20094 _ACEOF
20095 cat >>$CONFIG_STATUS <<\_ACEOF
20096 :t
20097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20098 s,@configure_input@,$configure_input,;t t
20099 s,@srcdir@,$ac_srcdir,;t t
20100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20101 s,@top_srcdir@,$ac_top_srcdir,;t t
20102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20103 s,@builddir@,$ac_builddir,;t t
20104 s,@abs_builddir@,$ac_abs_builddir,;t t
20105 s,@top_builddir@,$ac_top_builddir,;t t
20106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20107 s,@INSTALL@,$ac_INSTALL,;t t
20108 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20109 rm -f $tmp/stdin
20110 if test x"$ac_file" != x-; then
20111 mv $tmp/out $ac_file
20112 else
20113 cat $tmp/out
20114 rm -f $tmp/out
20115 fi
20116
20117 done
20118 _ACEOF
20119 cat >>$CONFIG_STATUS <<\_ACEOF
20120
20121 #
20122 # CONFIG_COMMANDS section.
20123 #
20124 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20125 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20126 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20127 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20128 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20129 X"$ac_dest" : 'X\(//\)[^/]' \| \
20130 X"$ac_dest" : 'X\(//\)$' \| \
20131 X"$ac_dest" : 'X\(/\)' \| \
20132 . : '\(.\)' 2>/dev/null ||
20133 echo X"$ac_dest" |
20134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20136 /^X\(\/\/\)$/{ s//\1/; q; }
20137 /^X\(\/\).*/{ s//\1/; q; }
20138 s/.*/./; q'`
20139 ac_builddir=.
20140
20141 if test "$ac_dir" != .; then
20142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20143 # A "../" for each directory in $ac_dir_suffix.
20144 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20145 else
20146 ac_dir_suffix= ac_top_builddir=
20147 fi
20148
20149 case $srcdir in
20150 .) # No --srcdir option. We are building in place.
20151 ac_srcdir=.
20152 if test -z "$ac_top_builddir"; then
20153 ac_top_srcdir=.
20154 else
20155 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20156 fi ;;
20157 [\\/]* | ?:[\\/]* ) # Absolute path.
20158 ac_srcdir=$srcdir$ac_dir_suffix;
20159 ac_top_srcdir=$srcdir ;;
20160 *) # Relative path.
20161 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20162 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20163 esac
20164 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20165 # absolute.
20166 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20167 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20168 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20169 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20170
20171
20172 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20173 echo "$as_me: executing $ac_dest commands" >&6;}
20174 case $ac_dest in
20175 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20176 # Strip MF so we end up with the name of the file.
20177 mf=`echo "$mf" | sed -e 's/:.*$//'`
20178 # Check whether this is an Automake generated Makefile or not.
20179 # We used to match only the files named `Makefile.in', but
20180 # some people rename them; so instead we look at the file content.
20181 # Grep'ing the first line is not enough: some people post-process
20182 # each Makefile.in and add a new line on top of each file to say so.
20183 # So let's grep whole file.
20184 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20185 dirpart=`(dirname "$mf") 2>/dev/null ||
20186 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20187 X"$mf" : 'X\(//\)[^/]' \| \
20188 X"$mf" : 'X\(//\)$' \| \
20189 X"$mf" : 'X\(/\)' \| \
20190 . : '\(.\)' 2>/dev/null ||
20191 echo X"$mf" |
20192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20194 /^X\(\/\/\)$/{ s//\1/; q; }
20195 /^X\(\/\).*/{ s//\1/; q; }
20196 s/.*/./; q'`
20197 else
20198 continue
20199 fi
20200 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20201 # Extract the definition of DEP_FILES from the Makefile without
20202 # running `make'.
20203 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20204 test -z "$DEPDIR" && continue
20205 # When using ansi2knr, U may be empty or an underscore; expand it
20206 U=`sed -n -e '/^U = / s///p' < "$mf"`
20207 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20208 # We invoke sed twice because it is the simplest approach to
20209 # changing $(DEPDIR) to its actual value in the expansion.
20210 for file in `sed -n -e '
20211 /^DEP_FILES = .*\\\\$/ {
20212 s/^DEP_FILES = //
20213 :loop
20214 s/\\\\$//
20215 p
20216 n
20217 /\\\\$/ b loop
20218 p
20219 }
20220 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20221 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20222 # Make sure the directory exists.
20223 test -f "$dirpart/$file" && continue
20224 fdir=`(dirname "$file") 2>/dev/null ||
20225 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20226 X"$file" : 'X\(//\)[^/]' \| \
20227 X"$file" : 'X\(//\)$' \| \
20228 X"$file" : 'X\(/\)' \| \
20229 . : '\(.\)' 2>/dev/null ||
20230 echo X"$file" |
20231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20233 /^X\(\/\/\)$/{ s//\1/; q; }
20234 /^X\(\/\).*/{ s//\1/; q; }
20235 s/.*/./; q'`
20236 { if $as_mkdir_p; then
20237 mkdir -p $dirpart/$fdir
20238 else
20239 as_dir=$dirpart/$fdir
20240 as_dirs=
20241 while test ! -d "$as_dir"; do
20242 as_dirs="$as_dir $as_dirs"
20243 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20245 X"$as_dir" : 'X\(//\)[^/]' \| \
20246 X"$as_dir" : 'X\(//\)$' \| \
20247 X"$as_dir" : 'X\(/\)' \| \
20248 . : '\(.\)' 2>/dev/null ||
20249 echo X"$as_dir" |
20250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20252 /^X\(\/\/\)$/{ s//\1/; q; }
20253 /^X\(\/\).*/{ s//\1/; q; }
20254 s/.*/./; q'`
20255 done
20256 test ! -n "$as_dirs" || mkdir $as_dirs
20257 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20258 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20259 { (exit 1); exit 1; }; }; }
20260
20261 # echo "creating $dirpart/$file"
20262 echo '# dummy' > "$dirpart/$file"
20263 done
20264 done
20265 ;;
20266 esac
20267 done
20268 _ACEOF
20269
20270 cat >>$CONFIG_STATUS <<\_ACEOF
20271
20272 { (exit 0); exit 0; }
20273 _ACEOF
20274 chmod +x $CONFIG_STATUS
20275 ac_clean_files=$ac_clean_files_save
20276
20277
20278 # configure is writing to config.log, and then calls config.status.
20279 # config.status does its own redirection, appending to config.log.
20280 # Unfortunately, on DOS this fails, as config.log is still kept open
20281 # by configure, so config.status won't be able to write to it; its
20282 # output is simply discarded. So we exec the FD to /dev/null,
20283 # effectively closing config.log, so it can be properly (re)opened and
20284 # appended to by config.status. When coming back to configure, we
20285 # need to make the FD available again.
20286 if test "$no_create" != yes; then
20287 ac_cs_success=:
20288 ac_config_status_args=
20289 test "$silent" = yes &&
20290 ac_config_status_args="$ac_config_status_args --quiet"
20291 exec 5>/dev/null
20292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20293 exec 5>>config.log
20294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20295 # would make configure fail if this is the last instruction.
20296 $ac_cs_success || { (exit 1); exit 1; }
20297 fi
20298
20299