Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / gdbmobj / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for gdbmobj 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='gdbmobj'
425 PACKAGE_TARNAME='gdbmobj'
426 PACKAGE_VERSION='0.10'
427 PACKAGE_STRING='gdbmobj 0.10'
428 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
429
430 ac_unique_file="gdbmobj.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBGDBM FOUND_GDBM_TRUE FOUND_GDBM_FALSE LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806 done
807
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881 else
882 ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures gdbmobj 0.10 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1007
1008 cat <<\_ACEOF
1009
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of gdbmobj 0.10:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039
1040 Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CPP C preprocessor
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1062
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1065
1066 Report bugs to <courier-users@lists.sourceforge.net>.
1067 _ACEOF
1068 fi
1069
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1076
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 else
1082 ac_dir_suffix= ac_top_builddir=
1083 fi
1084
1085 case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 esac
1100
1101 # Do not use `cd foo && pwd` to compute absolute paths, because
1102 # the directories may not exist.
1103 case `pwd` in
1104 .) ac_abs_builddir="$ac_dir";;
1105 *)
1106 case "$ac_dir" in
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *)
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1123 *)
1124 case $ac_srcdir in
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *)
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 esac;;
1138 esac
1139
1140 cd $ac_dir
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1143 echo
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1146 echo
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1150 echo
1151 $ac_configure --help
1152 else
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 fi
1155 cd $ac_popdir
1156 done
1157 fi
1158
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1161 cat <<\_ACEOF
1162 gdbmobj configure 0.10
1163 generated by GNU Autoconf 2.59
1164
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1168 _ACEOF
1169 exit 0
1170 fi
1171 exec 5>config.log
1172 cat >&5 <<_ACEOF
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1175
1176 It was created by gdbmobj $as_me 0.10, which was
1177 generated by GNU Autoconf 2.59. Invocation command line was
1178
1179 $ $0 $@
1180
1181 _ACEOF
1182 {
1183 cat <<_ASUNAME
1184 ## --------- ##
1185 ## Platform. ##
1186 ## --------- ##
1187
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196
1197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204
1205 _ASUNAME
1206
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 for as_dir in $PATH
1209 do
1210 IFS=$as_save_IFS
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1213 done
1214
1215 } >&5
1216
1217 cat >&5 <<_ACEOF
1218
1219
1220 ## ----------- ##
1221 ## Core tests. ##
1222 ## ----------- ##
1223
1224 _ACEOF
1225
1226
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_configure_args=
1233 ac_configure_args0=
1234 ac_configure_args1=
1235 ac_sep=
1236 ac_must_keep_next=false
1237 for ac_pass in 1 2
1238 do
1239 for ac_arg
1240 do
1241 case $ac_arg in
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 continue ;;
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 esac
1249 case $ac_pass in
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251 2)
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1255 else
1256 case $ac_arg in
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263 esac
1264 ;;
1265 -* ) ac_must_keep_next=true ;;
1266 esac
1267 fi
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1270 ac_sep=" "
1271 ;;
1272 esac
1273 done
1274 done
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log. We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close' the trap.
1283 trap 'exit_status=$?
1284 # Save into config.log some information that might help in debugging.
1285 {
1286 echo
1287
1288 cat <<\_ASBOX
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1292 _ASBOX
1293 echo
1294 # The following way of writing the cache mishandles newlines in values,
1295 {
1296 (set) 2>&1 |
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298 *ac_space=\ *)
1299 sed -n \
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 ;;
1303 *)
1304 sed -n \
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ;;
1307 esac;
1308 }
1309 echo
1310
1311 cat <<\_ASBOX
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1315 _ASBOX
1316 echo
1317 for ac_var in $ac_subst_vars
1318 do
1319 eval ac_val=$`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1321 done | sort
1322 echo
1323
1324 if test -n "$ac_subst_files"; then
1325 cat <<\_ASBOX
1326 ## ------------- ##
1327 ## Output files. ##
1328 ## ------------- ##
1329 _ASBOX
1330 echo
1331 for ac_var in $ac_subst_files
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337 fi
1338
1339 if test -s confdefs.h; then
1340 cat <<\_ASBOX
1341 ## ----------- ##
1342 ## confdefs.h. ##
1343 ## ----------- ##
1344 _ASBOX
1345 echo
1346 sed "/^$/d" confdefs.h | sort
1347 echo
1348 fi
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1352 } >&5
1353 rm -f core *.core &&
1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355 exit $exit_status
1356 ' 0
1357 for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 done
1360 ac_signal=0
1361
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365 echo >confdefs.h
1366
1367 # Predefined preprocessor variables.
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 _ACEOF
1372
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 _ACEOF
1392
1393
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399 else
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401 fi
1402 fi
1403 for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's/^/| /' "$ac_site_file" >&5
1408 . "$ac_site_file"
1409 fi
1410 done
1411
1412 if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1418 case $cache_file in
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1421 esac
1422 fi
1423 else
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1426 >$cache_file
1427 fi
1428
1429 # Check that the precious variables saved in the cache have kept the same
1430 # value.
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1439 set,)
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1443 ,set)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,);;
1448 *)
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453 echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455 echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1457 fi;;
1458 esac
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1461 case $ac_new_val in
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1465 esac
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 esac
1470 fi
1471 done
1472 if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1478 fi
1479
1480 ac_ext=c
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513 >confdefs.h # Kill PACKAGE_ macros
1514
1515
1516 am__api_version="1.9"
1517 ac_aux_dir=
1518 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1519 if test -f $ac_dir/install-sh; then
1520 ac_aux_dir=$ac_dir
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1522 break
1523 elif test -f $ac_dir/install.sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1526 break
1527 elif test -f $ac_dir/shtool; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1530 break
1531 fi
1532 done
1533 if test -z "$ac_aux_dir"; then
1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1535 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1536 { (exit 1); exit 1; }; }
1537 fi
1538 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542 # Find a good install program. We prefer a C program (faster),
1543 # so one script is as good as another. But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1548 # AIX /bin/install
1549 # AmigaOS /C/install, which installs bootblocks on floppy discs
1550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553 # OS/2's system install, which has a completely different semantic
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557 if test -z "$INSTALL"; then
1558 if test "${ac_cv_path_install+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 # Account for people who put trailing slashes in PATH elements.
1567 case $as_dir/ in
1568 ./ | .// | /cC/* | \
1569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1571 /usr/ucb/* ) ;;
1572 *)
1573 # OSF1 and SCO ODT 3.0 have their own names for install.
1574 # Don't use installbsd from OSF since it installs stuff as root
1575 # by default.
1576 for ac_prog in ginstall scoinst install; do
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579 if test $ac_prog = install &&
1580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581 # AIX install. It has an incompatible calling convention.
1582 :
1583 elif test $ac_prog = install &&
1584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # program-specific install script used by HP pwplus--don't use.
1586 :
1587 else
1588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1589 break 3
1590 fi
1591 fi
1592 done
1593 done
1594 ;;
1595 esac
1596 done
1597
1598
1599 fi
1600 if test "${ac_cv_path_install+set}" = set; then
1601 INSTALL=$ac_cv_path_install
1602 else
1603 # As a last resort, use the slow shell script. We don't cache a
1604 # path for INSTALL within a source directory, because that will
1605 # break other packages using the cache if that directory is
1606 # removed, or if the path is relative.
1607 INSTALL=$ac_install_sh
1608 fi
1609 fi
1610 echo "$as_me:$LINENO: result: $INSTALL" >&5
1611 echo "${ECHO_T}$INSTALL" >&6
1612
1613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614 # It thinks the first close brace ends the variable substitution.
1615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616
1617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618
1619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620
1621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1623 # Just in case
1624 sleep 1
1625 echo timestamp > conftest.file
1626 # Do `set' in a subshell so we don't clobber the current shell's
1627 # arguments. Must try -L first in case configure is actually a
1628 # symlink; some systems play weird games with the mod time of symlinks
1629 # (eg FreeBSD returns the mod time of the symlink's containing
1630 # directory).
1631 if (
1632 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633 if test "$*" = "X"; then
1634 # -L didn't work.
1635 set X `ls -t $srcdir/configure conftest.file`
1636 fi
1637 rm -f conftest.file
1638 if test "$*" != "X $srcdir/configure conftest.file" \
1639 && test "$*" != "X conftest.file $srcdir/configure"; then
1640
1641 # If neither matched, then we have a broken ls. This can happen
1642 # if, for instance, CONFIG_SHELL is bash and it inherits a
1643 # broken ls alias from the environment. This has actually
1644 # happened. Such a system could not be considered "sane".
1645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1646 alias in your environment" >&5
1647 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&2;}
1649 { (exit 1); exit 1; }; }
1650 fi
1651
1652 test "$2" = conftest.file
1653 )
1654 then
1655 # Ok.
1656 :
1657 else
1658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659 Check your system clock" >&5
1660 echo "$as_me: error: newly created file is older than distributed files!
1661 Check your system clock" >&2;}
1662 { (exit 1); exit 1; }; }
1663 fi
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1666 test "$program_prefix" != NONE &&
1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668 # Use a double $ so make ignores it.
1669 test "$program_suffix" != NONE &&
1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671 # Double any \ or $. echo might interpret backslashes.
1672 # By default was `s,x,x', remove it if useless.
1673 cat <<\_ACEOF >conftest.sed
1674 s/[\\$]/&&/g;s/;s,x,x,$//
1675 _ACEOF
1676 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677 rm conftest.sed
1678
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir=`cd $ac_aux_dir && pwd`
1681
1682 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685 am_missing_run="$MISSING --run "
1686 else
1687 am_missing_run=
1688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1690 fi
1691
1692 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1693 # We used to keeping the `.' as first argument, in order to
1694 # allow $(mkdir_p) to be used without argument. As in
1695 # $(mkdir_p) $(somedir)
1696 # where $(somedir) is conditionally defined. However this is wrong
1697 # for two reasons:
1698 # 1. if the package is installed by a user who cannot write `.'
1699 # make install will fail,
1700 # 2. the above comment should most certainly read
1701 # $(mkdir_p) $(DESTDIR)$(somedir)
1702 # so it does not work when $(somedir) is undefined and
1703 # $(DESTDIR) is not.
1704 # To support the latter case, we have to write
1705 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1706 # so the `.' trick is pointless.
1707 mkdir_p='mkdir -p --'
1708 else
1709 # On NextStep and OpenStep, the `mkdir' command does not
1710 # recognize any option. It will interpret all options as
1711 # directories to create, and then abort because `.' already
1712 # exists.
1713 for d in ./-p ./--version;
1714 do
1715 test -d $d && rmdir $d
1716 done
1717 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1718 if test -f "$ac_aux_dir/mkinstalldirs"; then
1719 mkdir_p='$(mkinstalldirs)'
1720 else
1721 mkdir_p='$(install_sh) -d'
1722 fi
1723 fi
1724
1725 for ac_prog in gawk mawk nawk awk
1726 do
1727 # Extract the first word of "$ac_prog", so it can be a program name with args.
1728 set dummy $ac_prog; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_AWK+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 if test -n "$AWK"; then
1735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_AWK="$ac_prog"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 break 2
1747 fi
1748 done
1749 done
1750
1751 fi
1752 fi
1753 AWK=$ac_cv_prog_AWK
1754 if test -n "$AWK"; then
1755 echo "$as_me:$LINENO: result: $AWK" >&5
1756 echo "${ECHO_T}$AWK" >&6
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1760 fi
1761
1762 test -n "$AWK" && break
1763 done
1764
1765 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1766 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1767 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1768 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 cat >conftest.make <<\_ACEOF
1772 all:
1773 @echo 'ac_maketemp="$(MAKE)"'
1774 _ACEOF
1775 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1776 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1777 if test -n "$ac_maketemp"; then
1778 eval ac_cv_prog_make_${ac_make}_set=yes
1779 else
1780 eval ac_cv_prog_make_${ac_make}_set=no
1781 fi
1782 rm -f conftest.make
1783 fi
1784 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1785 echo "$as_me:$LINENO: result: yes" >&5
1786 echo "${ECHO_T}yes" >&6
1787 SET_MAKE=
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 SET_MAKE="MAKE=${MAKE-make}"
1792 fi
1793
1794 rm -rf .tst 2>/dev/null
1795 mkdir .tst 2>/dev/null
1796 if test -d .tst; then
1797 am__leading_dot=.
1798 else
1799 am__leading_dot=_
1800 fi
1801 rmdir .tst 2>/dev/null
1802
1803 # test to see if srcdir already configured
1804 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805 test -f $srcdir/config.status; then
1806 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
1810
1811 # test whether we have cygpath
1812 if test -z "$CYGPATH_W"; then
1813 if (cygpath --version) >/dev/null 2>/dev/null; then
1814 CYGPATH_W='cygpath -w'
1815 else
1816 CYGPATH_W=echo
1817 fi
1818 fi
1819
1820
1821 # Define the identity of the package.
1822 PACKAGE='gdbmobj'
1823 VERSION='0.10'
1824
1825
1826 # Some tools Automake needs.
1827
1828 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1829
1830
1831 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1832
1833
1834 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1835
1836
1837 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1838
1839
1840 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1841
1842 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1843
1844 # Installed binaries are usually stripped using `strip' when the user
1845 # run `make install-strip'. However `strip' might not be the right
1846 # tool to use in cross-compilation environments, therefore Automake
1847 # will honor the `STRIP' environment variable to overrule this program.
1848 if test "$cross_compiling" != no; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1851 set dummy ${ac_tool_prefix}strip; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_STRIP+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$STRIP"; then
1858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871 done
1872 done
1873
1874 fi
1875 fi
1876 STRIP=$ac_cv_prog_STRIP
1877 if test -n "$STRIP"; then
1878 echo "$as_me:$LINENO: result: $STRIP" >&5
1879 echo "${ECHO_T}$STRIP" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885 fi
1886 if test -z "$ac_cv_prog_STRIP"; then
1887 ac_ct_STRIP=$STRIP
1888 # Extract the first word of "strip", so it can be a program name with args.
1889 set dummy strip; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 if test -n "$ac_ct_STRIP"; then
1896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1900 do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_STRIP="strip"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909 done
1910 done
1911
1912 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1913 fi
1914 fi
1915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1916 if test -n "$ac_ct_STRIP"; then
1917 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1918 echo "${ECHO_T}$ac_ct_STRIP" >&6
1919 else
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1922 fi
1923
1924 STRIP=$ac_ct_STRIP
1925 else
1926 STRIP="$ac_cv_prog_STRIP"
1927 fi
1928
1929 fi
1930 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1931
1932 # We need awk for the "check" target. The system "awk" is bad on
1933 # some platforms.
1934 # Always define AMTAR for backward compatibility.
1935
1936 AMTAR=${AMTAR-"${am_missing_run}tar"}
1937
1938 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1939
1940
1941
1942
1943
1944 ac_config_headers="$ac_config_headers config.h"
1945
1946
1947 ac_ext=c
1948 ac_cpp='$CPP $CPPFLAGS'
1949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952 if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1954 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974 done
1975 done
1976
1977 fi
1978 fi
1979 CC=$ac_cv_prog_CC
1980 if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6
1983 else
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988 fi
1989 if test -z "$ac_cv_prog_CC"; then
1990 ac_ct_CC=$CC
1991 # Extract the first word of "gcc", so it can be a program name with args.
1992 set dummy gcc; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_CC="gcc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2
2011 fi
2012 done
2013 done
2014
2015 fi
2016 fi
2017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018 if test -n "$ac_ct_CC"; then
2019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020 echo "${ECHO_T}$ac_ct_CC" >&6
2021 else
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2024 fi
2025
2026 CC=$ac_ct_CC
2027 else
2028 CC="$ac_cv_prog_CC"
2029 fi
2030
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}cc; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC="${ac_tool_prefix}cc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054 done
2055 done
2056
2057 fi
2058 fi
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2063 else
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2067
2068 fi
2069 if test -z "$ac_cv_prog_CC"; then
2070 ac_ct_CC=$CC
2071 # Extract the first word of "cc", so it can be a program name with args.
2072 set dummy cc; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC="cc"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2091 fi
2092 done
2093 done
2094
2095 fi
2096 fi
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6
2101 else
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2104 fi
2105
2106 CC=$ac_ct_CC
2107 else
2108 CC="$ac_cv_prog_CC"
2109 fi
2110
2111 fi
2112 if test -z "$CC"; then
2113 # Extract the first word of "cc", so it can be a program name with args.
2114 set dummy cc; ac_word=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 else
2123 ac_prog_rejected=no
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2132 ac_prog_rejected=yes
2133 continue
2134 fi
2135 ac_cv_prog_CC="cc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
2138 fi
2139 done
2140 done
2141
2142 if test $ac_prog_rejected = yes; then
2143 # We found a bogon in the path, so make sure we never use it.
2144 set dummy $ac_cv_prog_CC
2145 shift
2146 if test $# != 0; then
2147 # We chose a different compiler from the bogus one.
2148 # However, it has the same basename, so the bogon will be chosen
2149 # first if we set CC to just the basename; use the full file name.
2150 shift
2151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152 fi
2153 fi
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2160 else
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2163 fi
2164
2165 fi
2166 if test -z "$CC"; then
2167 if test -n "$ac_tool_prefix"; then
2168 for ac_prog in cl
2169 do
2170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2172 echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2179 else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 break 2
2190 fi
2191 done
2192 done
2193
2194 fi
2195 fi
2196 CC=$ac_cv_prog_CC
2197 if test -n "$CC"; then
2198 echo "$as_me:$LINENO: result: $CC" >&5
2199 echo "${ECHO_T}$CC" >&6
2200 else
2201 echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2203 fi
2204
2205 test -n "$CC" && break
2206 done
2207 fi
2208 if test -z "$CC"; then
2209 ac_ct_CC=$CC
2210 for ac_prog in cl
2211 do
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213 set dummy $ac_prog; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 if test -n "$ac_ct_CC"; then
2220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_ac_ct_CC="$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2232 fi
2233 done
2234 done
2235
2236 fi
2237 fi
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6
2242 else
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2245 fi
2246
2247 test -n "$ac_ct_CC" && break
2248 done
2249
2250 CC=$ac_ct_CC
2251 fi
2252
2253 fi
2254
2255
2256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: no acceptable C compiler found in \$PATH
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2261
2262 # Provide some information about the compiler.
2263 echo "$as_me:$LINENO:" \
2264 "checking for C compiler version" >&5
2265 ac_compiler=`set X $ac_compile; echo $2`
2266 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2267 (eval $ac_compiler --version </dev/null >&5) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2272 (eval $ac_compiler -v </dev/null >&5) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2276 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2277 (eval $ac_compiler -V </dev/null >&5) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2281
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h. */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2288
2289 int
2290 main ()
2291 {
2292
2293 ;
2294 return 0;
2295 }
2296 _ACEOF
2297 ac_clean_files_save=$ac_clean_files
2298 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2299 # Try to create an executable without -o first, disregard a.out.
2300 # It will help us diagnose broken compilers, and finding out an intuition
2301 # of exeext.
2302 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2303 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2304 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2305 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2306 (eval $ac_link_default) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # Find the output, starting from the most likely. This scheme is
2311 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2312 # resort.
2313
2314 # Be careful to initialize this variable, since it used to be cached.
2315 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2316 ac_cv_exeext=
2317 # b.out is created by i960 compilers.
2318 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2319 do
2320 test -f "$ac_file" || continue
2321 case $ac_file in
2322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2323 ;;
2324 conftest.$ac_ext )
2325 # This is the source file.
2326 ;;
2327 [ab].out )
2328 # We found the default executable, but exeext='' is most
2329 # certainly right.
2330 break;;
2331 *.* )
2332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333 # FIXME: I believe we export ac_cv_exeext for Libtool,
2334 # but it would be cool to find out if it's true. Does anybody
2335 # maintain Libtool? --akim.
2336 export ac_cv_exeext
2337 break;;
2338 * )
2339 break;;
2340 esac
2341 done
2342 else
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&2;}
2350 { (exit 77); exit 77; }; }
2351 fi
2352
2353 ac_exeext=$ac_cv_exeext
2354 echo "$as_me:$LINENO: result: $ac_file" >&5
2355 echo "${ECHO_T}$ac_file" >&6
2356
2357 # Check the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try='./$ac_file'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 cross_compiling=no
2371 else
2372 if test "$cross_compiling" = maybe; then
2373 cross_compiling=yes
2374 else
2375 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2376 If you meant to cross compile, use \`--host'.
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2382 fi
2383 fi
2384 fi
2385 echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6
2387
2388 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2389 ac_clean_files=$ac_clean_files_save
2390 # Check the compiler produces executables we can run. If not, either
2391 # the compiler is broken, or we cross compile.
2392 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2393 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2394 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2395 echo "${ECHO_T}$cross_compiling" >&6
2396
2397 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2398 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2400 (eval $ac_link) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; then
2404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2405 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2406 # work properly (i.e., refer to `conftest.exe'), while it won't with
2407 # `rm'.
2408 for ac_file in conftest.exe conftest conftest.*; do
2409 test -f "$ac_file" || continue
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413 export ac_cv_exeext
2414 break;;
2415 * ) break;;
2416 esac
2417 done
2418 else
2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2424 fi
2425
2426 rm -f conftest$ac_cv_exeext
2427 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428 echo "${ECHO_T}$ac_cv_exeext" >&6
2429
2430 rm -f conftest.$ac_ext
2431 EXEEXT=$ac_cv_exeext
2432 ac_exeext=$EXEEXT
2433 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2434 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2435 if test "${ac_cv_objext+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444
2445 int
2446 main ()
2447 {
2448
2449 ;
2450 return 0;
2451 }
2452 _ACEOF
2453 rm -f conftest.o conftest.obj
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2463 break;;
2464 esac
2465 done
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2473 See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }
2475 fi
2476
2477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2478 fi
2479 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480 echo "${ECHO_T}$ac_cv_objext" >&6
2481 OBJEXT=$ac_cv_objext
2482 ac_objext=$OBJEXT
2483 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h. */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494
2495 int
2496 main ()
2497 {
2498 #ifndef __GNUC__
2499 choke me
2500 #endif
2501
2502 ;
2503 return 0;
2504 }
2505 _ACEOF
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_compiler_gnu=yes
2529 else
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_compiler_gnu=no
2534 fi
2535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2537
2538 fi
2539 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2541 GCC=`test $ac_compiler_gnu = yes && echo yes`
2542 ac_test_CFLAGS=${CFLAGS+set}
2543 ac_save_CFLAGS=$CFLAGS
2544 CFLAGS="-g"
2545 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2546 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2547 if test "${ac_cv_prog_cc_g+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h. */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556
2557 int
2558 main ()
2559 {
2560
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_prog_cc_g=yes
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_cv_prog_cc_g=no
2593 fi
2594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2598 if test "$ac_test_CFLAGS" = set; then
2599 CFLAGS=$ac_save_CFLAGS
2600 elif test $ac_cv_prog_cc_g = yes; then
2601 if test "$GCC" = yes; then
2602 CFLAGS="-g -O2"
2603 else
2604 CFLAGS="-g"
2605 fi
2606 else
2607 if test "$GCC" = yes; then
2608 CFLAGS="-O2"
2609 else
2610 CFLAGS=
2611 fi
2612 fi
2613 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2614 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2615 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 ac_cv_prog_cc_stdc=no
2619 ac_save_CC=$CC
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2626 #include <stdarg.h>
2627 #include <stdio.h>
2628 #include <sys/types.h>
2629 #include <sys/stat.h>
2630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2631 struct buf { int x; };
2632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2633 static char *e (p, i)
2634 char **p;
2635 int i;
2636 {
2637 return p[i];
2638 }
2639 static char *f (char * (*g) (char **, int), char **p, ...)
2640 {
2641 char *s;
2642 va_list v;
2643 va_start (v,p);
2644 s = g (p, va_arg (v,int));
2645 va_end (v);
2646 return s;
2647 }
2648
2649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2650 function prototypes and stuff, but not '\xHH' hex character constants.
2651 These don't provoke an error unfortunately, instead are silently treated
2652 as 'x'. The following induces an error, until -std1 is added to get
2653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2654 array size at least. It's necessary to write '\x00'==0 to get something
2655 that's true only with -std1. */
2656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2657
2658 int test (int i, double x);
2659 struct s1 {int (*f) (int a);};
2660 struct s2 {int (*f) (double a);};
2661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2662 int argc;
2663 char **argv;
2664 int
2665 main ()
2666 {
2667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2668 ;
2669 return 0;
2670 }
2671 _ACEOF
2672 # Don't try gcc -ansi; that turns off useful extensions and
2673 # breaks some systems' header files.
2674 # AIX -qlanglvl=ansi
2675 # Ultrix and OSF/1 -std1
2676 # HP-UX 10.20 and later -Ae
2677 # HP-UX older versions -Aa -D_HPUX_SOURCE
2678 # SVR4 -Xc -D__EXTENSIONS__
2679 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2680 do
2681 CC="$ac_save_CC $ac_arg"
2682 rm -f conftest.$ac_objext
2683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684 (eval $ac_compile) 2>conftest.er1
2685 ac_status=$?
2686 grep -v '^ *+' conftest.er1 >conftest.err
2687 rm -f conftest.er1
2688 cat conftest.err >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -z "$ac_c_werror_flag"
2692 || test ! -s conftest.err'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 ac_cv_prog_cc_stdc=$ac_arg
2705 break
2706 else
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 fi
2711 rm -f conftest.err conftest.$ac_objext
2712 done
2713 rm -f conftest.$ac_ext conftest.$ac_objext
2714 CC=$ac_save_CC
2715
2716 fi
2717
2718 case "x$ac_cv_prog_cc_stdc" in
2719 x|xno)
2720 echo "$as_me:$LINENO: result: none needed" >&5
2721 echo "${ECHO_T}none needed" >&6 ;;
2722 *)
2723 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2724 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2725 CC="$CC $ac_cv_prog_cc_stdc" ;;
2726 esac
2727
2728 # Some people use a C++ compiler to compile C. Since we use `exit',
2729 # in C++ we need to declare it. In case someone uses the same compiler
2730 # for both compiling C and C++ we need to have the C++ compiler decide
2731 # the declaration of exit, since it's the most demanding environment.
2732 cat >conftest.$ac_ext <<_ACEOF
2733 #ifndef __cplusplus
2734 choke me
2735 #endif
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 for ac_declaration in \
2760 '' \
2761 'extern "C" void std::exit (int) throw (); using std::exit;' \
2762 'extern "C" void std::exit (int); using std::exit;' \
2763 'extern "C" void exit (int) throw ();' \
2764 'extern "C" void exit (int);' \
2765 'void exit (int);'
2766 do
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 $ac_declaration
2774 #include <stdlib.h>
2775 int
2776 main ()
2777 {
2778 exit (42);
2779 ;
2780 return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 :
2806 else
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 continue
2811 fi
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819 $ac_declaration
2820 int
2821 main ()
2822 {
2823 exit (42);
2824 ;
2825 return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 break
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 fi
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857 done
2858 rm -f conftest*
2859 if test -n "$ac_declaration"; then
2860 echo '#ifdef __cplusplus' >>confdefs.h
2861 echo $ac_declaration >>confdefs.h
2862 echo '#endif' >>confdefs.h
2863 fi
2864
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 fi
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 DEPDIR="${am__leading_dot}deps"
2877
2878 ac_config_commands="$ac_config_commands depfiles"
2879
2880
2881 am_make=${MAKE-make}
2882 cat > confinc << 'END'
2883 am__doit:
2884 @echo done
2885 .PHONY: am__doit
2886 END
2887 # If we don't find an include directive, just comment out the code.
2888 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2889 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2890 am__include="#"
2891 am__quote=
2892 _am_result=none
2893 # First try GNU make style include.
2894 echo "include confinc" > confmf
2895 # We grep out `Entering directory' and `Leaving directory'
2896 # messages which can occur if `w' ends up in MAKEFLAGS.
2897 # In particular we don't look at `^make:' because GNU make might
2898 # be invoked under some other name (usually "gmake"), in which
2899 # case it prints its new name instead of `make'.
2900 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2901 am__include=include
2902 am__quote=
2903 _am_result=GNU
2904 fi
2905 # Now try BSD make style include.
2906 if test "$am__include" = "#"; then
2907 echo '.include "confinc"' > confmf
2908 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2909 am__include=.include
2910 am__quote="\""
2911 _am_result=BSD
2912 fi
2913 fi
2914
2915
2916 echo "$as_me:$LINENO: result: $_am_result" >&5
2917 echo "${ECHO_T}$_am_result" >&6
2918 rm -f confinc confmf
2919
2920 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2921 if test "${enable_dependency_tracking+set}" = set; then
2922 enableval="$enable_dependency_tracking"
2923
2924 fi;
2925 if test "x$enable_dependency_tracking" != xno; then
2926 am_depcomp="$ac_aux_dir/depcomp"
2927 AMDEPBACKSLASH='\'
2928 fi
2929
2930
2931 if test "x$enable_dependency_tracking" != xno; then
2932 AMDEP_TRUE=
2933 AMDEP_FALSE='#'
2934 else
2935 AMDEP_TRUE='#'
2936 AMDEP_FALSE=
2937 fi
2938
2939
2940
2941
2942 depcc="$CC" am_compiler_list=
2943
2944 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2945 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2946 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2950 # We make a subdir and do the tests there. Otherwise we can end up
2951 # making bogus files that we don't know about and never remove. For
2952 # instance it was reported that on HP-UX the gcc test will end up
2953 # making a dummy file named `D' -- because `-MD' means `put the output
2954 # in D'.
2955 mkdir conftest.dir
2956 # Copy depcomp to subdir because otherwise we won't find it if we're
2957 # using a relative directory.
2958 cp "$am_depcomp" conftest.dir
2959 cd conftest.dir
2960 # We will build objects and dependencies in a subdirectory because
2961 # it helps to detect inapplicable dependency modes. For instance
2962 # both Tru64's cc and ICC support -MD to output dependencies as a
2963 # side effect of compilation, but ICC will put the dependencies in
2964 # the current directory while Tru64 will put them in the object
2965 # directory.
2966 mkdir sub
2967
2968 am_cv_CC_dependencies_compiler_type=none
2969 if test "$am_compiler_list" = ""; then
2970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2971 fi
2972 for depmode in $am_compiler_list; do
2973 # Setup a source with many dependencies, because some compilers
2974 # like to wrap large dependency lists on column 80 (with \), and
2975 # we should not choose a depcomp mode which is confused by this.
2976 #
2977 # We need to recreate these files for each test, as the compiler may
2978 # overwrite some of them when testing with obscure command lines.
2979 # This happens at least with the AIX C compiler.
2980 : > sub/conftest.c
2981 for i in 1 2 3 4 5 6; do
2982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2984 # Solaris 8's {/usr,}/bin/sh.
2985 touch sub/conftst$i.h
2986 done
2987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2988
2989 case $depmode in
2990 nosideeffect)
2991 # after this tag, mechanisms are not by side-effect, so they'll
2992 # only be used when explicitly requested
2993 if test "x$enable_dependency_tracking" = xyes; then
2994 continue
2995 else
2996 break
2997 fi
2998 ;;
2999 none) break ;;
3000 esac
3001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3002 # mode. It turns out that the SunPro C++ compiler does not properly
3003 # handle `-M -o', and we need to detect this.
3004 if depmode=$depmode \
3005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3008 >/dev/null 2>conftest.err &&
3009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3010 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3012 # icc doesn't choke on unknown options, it will just issue warnings
3013 # or remarks (even with -Werror). So we grep stderr for any message
3014 # that says an option was ignored or not supported.
3015 # When given -MP, icc 7.0 and 7.1 complain thusly:
3016 # icc: Command line warning: ignoring option '-M'; no argument required
3017 # The diagnosis changed in icc 8.0:
3018 # icc: Command line remark: option '-MP' not supported
3019 if (grep 'ignoring option' conftest.err ||
3020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3021 am_cv_CC_dependencies_compiler_type=$depmode
3022 break
3023 fi
3024 fi
3025 done
3026
3027 cd ..
3028 rm -rf conftest.dir
3029 else
3030 am_cv_CC_dependencies_compiler_type=none
3031 fi
3032
3033 fi
3034 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3035 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3036 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3037
3038
3039
3040 if
3041 test "x$enable_dependency_tracking" != xno \
3042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3043 am__fastdepCC_TRUE=
3044 am__fastdepCC_FALSE='#'
3045 else
3046 am__fastdepCC_TRUE='#'
3047 am__fastdepCC_FALSE=
3048 fi
3049
3050
3051
3052 ac_ext=c
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3058 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3059 # On Suns, sometimes $CPP names a directory.
3060 if test -n "$CPP" && test -d "$CPP"; then
3061 CPP=
3062 fi
3063 if test -z "$CPP"; then
3064 if test "${ac_cv_prog_CPP+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 # Double quotes because CPP needs to be expanded
3068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3069 do
3070 ac_preproc_ok=false
3071 for ac_c_preproc_warn_flag in '' yes
3072 do
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #ifdef __STDC__
3086 # include <limits.h>
3087 #else
3088 # include <assert.h>
3089 #endif
3090 Syntax error
3091 _ACEOF
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103 else
3104 ac_cpp_err=
3105 fi
3106 else
3107 ac_cpp_err=yes
3108 fi
3109 if test -z "$ac_cpp_err"; then
3110 :
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 # Broken: fails on valid input.
3116 continue
3117 fi
3118 rm -f conftest.err conftest.$ac_ext
3119
3120 # OK, works on sane cases. Now check whether non-existent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <ac_nonexistent.h>
3129 _ACEOF
3130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } >/dev/null; then
3138 if test -s conftest.err; then
3139 ac_cpp_err=$ac_c_preproc_warn_flag
3140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3141 else
3142 ac_cpp_err=
3143 fi
3144 else
3145 ac_cpp_err=yes
3146 fi
3147 if test -z "$ac_cpp_err"; then
3148 # Broken: success on invalid input.
3149 continue
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164 break
3165 fi
3166
3167 done
3168 ac_cv_prog_CPP=$CPP
3169
3170 fi
3171 CPP=$ac_cv_prog_CPP
3172 else
3173 ac_cv_prog_CPP=$CPP
3174 fi
3175 echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6
3177 ac_preproc_ok=false
3178 for ac_c_preproc_warn_flag in '' yes
3179 do
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h. */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3192 #ifdef __STDC__
3193 # include <limits.h>
3194 #else
3195 # include <assert.h>
3196 #endif
3197 Syntax error
3198 _ACEOF
3199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } >/dev/null; then
3207 if test -s conftest.err; then
3208 ac_cpp_err=$ac_c_preproc_warn_flag
3209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210 else
3211 ac_cpp_err=
3212 fi
3213 else
3214 ac_cpp_err=yes
3215 fi
3216 if test -z "$ac_cpp_err"; then
3217 :
3218 else
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 # Broken: fails on valid input.
3223 continue
3224 fi
3225 rm -f conftest.err conftest.$ac_ext
3226
3227 # OK, works on sane cases. Now check whether non-existent headers
3228 # can be detected and how.
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <ac_nonexistent.h>
3236 _ACEOF
3237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } >/dev/null; then
3245 if test -s conftest.err; then
3246 ac_cpp_err=$ac_c_preproc_warn_flag
3247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3248 else
3249 ac_cpp_err=
3250 fi
3251 else
3252 ac_cpp_err=yes
3253 fi
3254 if test -z "$ac_cpp_err"; then
3255 # Broken: success on invalid input.
3256 continue
3257 else
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 # Passes both tests.
3262 ac_preproc_ok=:
3263 break
3264 fi
3265 rm -f conftest.err conftest.$ac_ext
3266
3267 done
3268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3269 rm -f conftest.err conftest.$ac_ext
3270 if $ac_preproc_ok; then
3271 :
3272 else
3273 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&5
3275 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3276 See \`config.log' for more details." >&2;}
3277 { (exit 1); exit 1; }; }
3278 fi
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285
3286
3287 echo "$as_me:$LINENO: checking for egrep" >&5
3288 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3289 if test "${ac_cv_prog_egrep+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3293 then ac_cv_prog_egrep='grep -E'
3294 else ac_cv_prog_egrep='egrep'
3295 fi
3296 fi
3297 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3298 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3299 EGREP=$ac_cv_prog_egrep
3300
3301
3302
3303 echo "$as_me:$LINENO: checking for AIX" >&5
3304 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #ifdef _AIX
3312 yes
3313 #endif
3314
3315 _ACEOF
3316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3317 $EGREP "yes" >/dev/null 2>&1; then
3318 echo "$as_me:$LINENO: result: yes" >&5
3319 echo "${ECHO_T}yes" >&6
3320 cat >>confdefs.h <<\_ACEOF
3321 #define _ALL_SOURCE 1
3322 _ACEOF
3323
3324 else
3325 echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3327 fi
3328 rm -f conftest*
3329
3330
3331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3333 if test "${ac_cv_header_stdc+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342 #include <stdlib.h>
3343 #include <stdarg.h>
3344 #include <string.h>
3345 #include <float.h>
3346
3347 int
3348 main ()
3349 {
3350
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_header_stdc=yes
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 ac_cv_header_stdc=no
3383 fi
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385
3386 if test $ac_cv_header_stdc = yes; then
3387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <string.h>
3395
3396 _ACEOF
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "memchr" >/dev/null 2>&1; then
3399 :
3400 else
3401 ac_cv_header_stdc=no
3402 fi
3403 rm -f conftest*
3404
3405 fi
3406
3407 if test $ac_cv_header_stdc = yes; then
3408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <stdlib.h>
3416
3417 _ACEOF
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "free" >/dev/null 2>&1; then
3420 :
3421 else
3422 ac_cv_header_stdc=no
3423 fi
3424 rm -f conftest*
3425
3426 fi
3427
3428 if test $ac_cv_header_stdc = yes; then
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430 if test "$cross_compiling" = yes; then
3431 :
3432 else
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <ctype.h>
3440 #if ((' ' & 0x0FF) == 0x020)
3441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3443 #else
3444 # define ISLOWER(c) \
3445 (('a' <= (c) && (c) <= 'i') \
3446 || ('j' <= (c) && (c) <= 'r') \
3447 || ('s' <= (c) && (c) <= 'z'))
3448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3449 #endif
3450
3451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3452 int
3453 main ()
3454 {
3455 int i;
3456 for (i = 0; i < 256; i++)
3457 if (XOR (islower (i), ISLOWER (i))
3458 || toupper (i) != TOUPPER (i))
3459 exit(2);
3460 exit (0);
3461 }
3462 _ACEOF
3463 rm -f conftest$ac_exeext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465 (eval $ac_link) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 :
3475 else
3476 echo "$as_me: program exited with status $ac_status" >&5
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3479
3480 ( exit $ac_status )
3481 ac_cv_header_stdc=no
3482 fi
3483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3484 fi
3485 fi
3486 fi
3487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489 if test $ac_cv_header_stdc = yes; then
3490
3491 cat >>confdefs.h <<\_ACEOF
3492 #define STDC_HEADERS 1
3493 _ACEOF
3494
3495 fi
3496
3497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3508 inttypes.h stdint.h unistd.h
3509 do
3510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 $ac_includes_default
3523
3524 #include <$ac_header>
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 eval "$as_ac_Header=yes"
3549 else
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 eval "$as_ac_Header=no"
3554 fi
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3560 cat >>confdefs.h <<_ACEOF
3561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3562 _ACEOF
3563
3564 fi
3565
3566 done
3567
3568
3569 if test "${ac_cv_header_minix_config_h+set}" = set; then
3570 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3571 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3572 if test "${ac_cv_header_minix_config_h+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 fi
3575 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3576 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3577 else
3578 # Is the header compilable?
3579 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3580 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 $ac_includes_default
3588 #include <minix/config.h>
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_header_compiler=yes
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 ac_header_compiler=no
3618 fi
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3621 echo "${ECHO_T}$ac_header_compiler" >&6
3622
3623 # Is the header present?
3624 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3625 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <minix/config.h>
3633 _ACEOF
3634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } >/dev/null; then
3642 if test -s conftest.err; then
3643 ac_cpp_err=$ac_c_preproc_warn_flag
3644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3645 else
3646 ac_cpp_err=
3647 fi
3648 else
3649 ac_cpp_err=yes
3650 fi
3651 if test -z "$ac_cpp_err"; then
3652 ac_header_preproc=yes
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657 ac_header_preproc=no
3658 fi
3659 rm -f conftest.err conftest.$ac_ext
3660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3661 echo "${ECHO_T}$ac_header_preproc" >&6
3662
3663 # So? What about this header?
3664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3665 yes:no: )
3666 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3667 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3668 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3669 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3670 ac_header_preproc=yes
3671 ;;
3672 no:yes:* )
3673 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3674 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3675 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3676 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3677 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3678 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3679 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3680 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3681 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3682 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3683 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3684 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3685 (
3686 cat <<\_ASBOX
3687 ## -------------------------------------------------- ##
3688 ## Report this to courier-users@lists.sourceforge.net ##
3689 ## -------------------------------------------------- ##
3690 _ASBOX
3691 ) |
3692 sed "s/^/$as_me: WARNING: /" >&2
3693 ;;
3694 esac
3695 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3696 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3697 if test "${ac_cv_header_minix_config_h+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 ac_cv_header_minix_config_h=$ac_header_preproc
3701 fi
3702 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3703 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3704
3705 fi
3706 if test $ac_cv_header_minix_config_h = yes; then
3707 MINIX=yes
3708 else
3709 MINIX=
3710 fi
3711
3712
3713 if test "$MINIX" = yes; then
3714
3715 cat >>confdefs.h <<\_ACEOF
3716 #define _POSIX_SOURCE 1
3717 _ACEOF
3718
3719
3720 cat >>confdefs.h <<\_ACEOF
3721 #define _POSIX_1_SOURCE 2
3722 _ACEOF
3723
3724
3725 cat >>confdefs.h <<\_ACEOF
3726 #define _MINIX 1
3727 _ACEOF
3728
3729 fi
3730
3731
3732 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3733 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3734 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 ac_check_lib_save_LIBS=$LIBS
3738 LIBS="-lcposix $LIBS"
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 #ifdef __cplusplus
3748 extern "C"
3749 #endif
3750 /* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3752 char strerror ();
3753 int
3754 main ()
3755 {
3756 strerror ();
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 rm -f conftest.$ac_objext conftest$ac_exeext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3763 (eval $ac_link) 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest$ac_exeext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 ac_cv_lib_cposix_strerror=yes
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 ac_cv_lib_cposix_strerror=no
3789 fi
3790 rm -f conftest.err conftest.$ac_objext \
3791 conftest$ac_exeext conftest.$ac_ext
3792 LIBS=$ac_check_lib_save_LIBS
3793 fi
3794 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3795 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3796 if test $ac_cv_lib_cposix_strerror = yes; then
3797 LIBS="$LIBS -lcposix"
3798 fi
3799
3800
3801
3802 for ac_prog in gawk mawk nawk awk
3803 do
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_prog_AWK+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if test -n "$AWK"; then
3812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_AWK="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825 done
3826 done
3827
3828 fi
3829 fi
3830 AWK=$ac_cv_prog_AWK
3831 if test -n "$AWK"; then
3832 echo "$as_me:$LINENO: result: $AWK" >&5
3833 echo "${ECHO_T}$AWK" >&6
3834 else
3835 echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3837 fi
3838
3839 test -n "$AWK" && break
3840 done
3841
3842 ac_ext=cc
3843 ac_cpp='$CXXCPP $CPPFLAGS'
3844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3847 if test -n "$ac_tool_prefix"; then
3848 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3849 do
3850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3852 echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_CXX+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 if test -n "$CXX"; then
3858 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3870 fi
3871 done
3872 done
3873
3874 fi
3875 fi
3876 CXX=$ac_cv_prog_CXX
3877 if test -n "$CXX"; then
3878 echo "$as_me:$LINENO: result: $CXX" >&5
3879 echo "${ECHO_T}$CXX" >&6
3880 else
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883 fi
3884
3885 test -n "$CXX" && break
3886 done
3887 fi
3888 if test -z "$CXX"; then
3889 ac_ct_CXX=$CXX
3890 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3891 do
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 if test -n "$ac_ct_CXX"; then
3900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_CXX="$ac_prog"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915
3916 fi
3917 fi
3918 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3919 if test -n "$ac_ct_CXX"; then
3920 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3921 echo "${ECHO_T}$ac_ct_CXX" >&6
3922 else
3923 echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3925 fi
3926
3927 test -n "$ac_ct_CXX" && break
3928 done
3929 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3930
3931 CXX=$ac_ct_CXX
3932 fi
3933
3934
3935 # Provide some information about the compiler.
3936 echo "$as_me:$LINENO:" \
3937 "checking for C++ compiler version" >&5
3938 ac_compiler=`set X $ac_compile; echo $2`
3939 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3940 (eval $ac_compiler --version </dev/null >&5) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }
3944 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3945 (eval $ac_compiler -v </dev/null >&5) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }
3949 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3950 (eval $ac_compiler -V </dev/null >&5) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }
3954
3955 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3956 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3957 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966
3967 int
3968 main ()
3969 {
3970 #ifndef __GNUC__
3971 choke me
3972 #endif
3973
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_cxx_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_compiler_gnu=yes
4001 else
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 ac_compiler_gnu=no
4006 fi
4007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4009
4010 fi
4011 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4012 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4013 GXX=`test $ac_compiler_gnu = yes && echo yes`
4014 ac_test_CXXFLAGS=${CXXFLAGS+set}
4015 ac_save_CXXFLAGS=$CXXFLAGS
4016 CXXFLAGS="-g"
4017 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4018 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4019 if test "${ac_cv_prog_cxx_g+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028
4029 int
4030 main ()
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 rm -f conftest.$ac_objext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>conftest.er1
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try='test -z "$ac_cxx_werror_flag"
4047 || test ! -s conftest.err'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 ac_cv_prog_cxx_g=yes
4060 else
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4063
4064 ac_cv_prog_cxx_g=no
4065 fi
4066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4067 fi
4068 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4069 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4070 if test "$ac_test_CXXFLAGS" = set; then
4071 CXXFLAGS=$ac_save_CXXFLAGS
4072 elif test $ac_cv_prog_cxx_g = yes; then
4073 if test "$GXX" = yes; then
4074 CXXFLAGS="-g -O2"
4075 else
4076 CXXFLAGS="-g"
4077 fi
4078 else
4079 if test "$GXX" = yes; then
4080 CXXFLAGS="-O2"
4081 else
4082 CXXFLAGS=
4083 fi
4084 fi
4085 for ac_declaration in \
4086 '' \
4087 'extern "C" void std::exit (int) throw (); using std::exit;' \
4088 'extern "C" void std::exit (int); using std::exit;' \
4089 'extern "C" void exit (int) throw ();' \
4090 'extern "C" void exit (int);' \
4091 'void exit (int);'
4092 do
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 $ac_declaration
4100 #include <stdlib.h>
4101 int
4102 main ()
4103 {
4104 exit (42);
4105 ;
4106 return 0;
4107 }
4108 _ACEOF
4109 rm -f conftest.$ac_objext
4110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_cxx_werror_flag"
4119 || test ! -s conftest.err'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 :
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 continue
4137 fi
4138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 $ac_declaration
4146 int
4147 main ()
4148 {
4149 exit (42);
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_cxx_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 break
4177 else
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 fi
4182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183 done
4184 rm -f conftest*
4185 if test -n "$ac_declaration"; then
4186 echo '#ifdef __cplusplus' >>confdefs.h
4187 echo $ac_declaration >>confdefs.h
4188 echo '#endif' >>confdefs.h
4189 fi
4190
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197 depcc="$CXX" am_compiler_list=
4198
4199 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4200 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4201 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4205 # We make a subdir and do the tests there. Otherwise we can end up
4206 # making bogus files that we don't know about and never remove. For
4207 # instance it was reported that on HP-UX the gcc test will end up
4208 # making a dummy file named `D' -- because `-MD' means `put the output
4209 # in D'.
4210 mkdir conftest.dir
4211 # Copy depcomp to subdir because otherwise we won't find it if we're
4212 # using a relative directory.
4213 cp "$am_depcomp" conftest.dir
4214 cd conftest.dir
4215 # We will build objects and dependencies in a subdirectory because
4216 # it helps to detect inapplicable dependency modes. For instance
4217 # both Tru64's cc and ICC support -MD to output dependencies as a
4218 # side effect of compilation, but ICC will put the dependencies in
4219 # the current directory while Tru64 will put them in the object
4220 # directory.
4221 mkdir sub
4222
4223 am_cv_CXX_dependencies_compiler_type=none
4224 if test "$am_compiler_list" = ""; then
4225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4226 fi
4227 for depmode in $am_compiler_list; do
4228 # Setup a source with many dependencies, because some compilers
4229 # like to wrap large dependency lists on column 80 (with \), and
4230 # we should not choose a depcomp mode which is confused by this.
4231 #
4232 # We need to recreate these files for each test, as the compiler may
4233 # overwrite some of them when testing with obscure command lines.
4234 # This happens at least with the AIX C compiler.
4235 : > sub/conftest.c
4236 for i in 1 2 3 4 5 6; do
4237 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4239 # Solaris 8's {/usr,}/bin/sh.
4240 touch sub/conftst$i.h
4241 done
4242 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4243
4244 case $depmode in
4245 nosideeffect)
4246 # after this tag, mechanisms are not by side-effect, so they'll
4247 # only be used when explicitly requested
4248 if test "x$enable_dependency_tracking" = xyes; then
4249 continue
4250 else
4251 break
4252 fi
4253 ;;
4254 none) break ;;
4255 esac
4256 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4257 # mode. It turns out that the SunPro C++ compiler does not properly
4258 # handle `-M -o', and we need to detect this.
4259 if depmode=$depmode \
4260 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4262 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4263 >/dev/null 2>conftest.err &&
4264 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4265 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4266 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4267 # icc doesn't choke on unknown options, it will just issue warnings
4268 # or remarks (even with -Werror). So we grep stderr for any message
4269 # that says an option was ignored or not supported.
4270 # When given -MP, icc 7.0 and 7.1 complain thusly:
4271 # icc: Command line warning: ignoring option '-M'; no argument required
4272 # The diagnosis changed in icc 8.0:
4273 # icc: Command line remark: option '-MP' not supported
4274 if (grep 'ignoring option' conftest.err ||
4275 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4276 am_cv_CXX_dependencies_compiler_type=$depmode
4277 break
4278 fi
4279 fi
4280 done
4281
4282 cd ..
4283 rm -rf conftest.dir
4284 else
4285 am_cv_CXX_dependencies_compiler_type=none
4286 fi
4287
4288 fi
4289 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4290 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4291 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4292
4293
4294
4295 if
4296 test "x$enable_dependency_tracking" != xno \
4297 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4298 am__fastdepCXX_TRUE=
4299 am__fastdepCXX_FALSE='#'
4300 else
4301 am__fastdepCXX_TRUE='#'
4302 am__fastdepCXX_FALSE=
4303 fi
4304
4305
4306 # Check whether --enable-shared or --disable-shared was given.
4307 if test "${enable_shared+set}" = set; then
4308 enableval="$enable_shared"
4309 p=${PACKAGE-default}
4310 case $enableval in
4311 yes) enable_shared=yes ;;
4312 no) enable_shared=no ;;
4313 *)
4314 enable_shared=no
4315 # Look at the argument we got. We use all the common list separators.
4316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317 for pkg in $enableval; do
4318 IFS="$lt_save_ifs"
4319 if test "X$pkg" = "X$p"; then
4320 enable_shared=yes
4321 fi
4322 done
4323 IFS="$lt_save_ifs"
4324 ;;
4325 esac
4326 else
4327 enable_shared=yes
4328 fi;
4329
4330 # Check whether --enable-static or --disable-static was given.
4331 if test "${enable_static+set}" = set; then
4332 enableval="$enable_static"
4333 p=${PACKAGE-default}
4334 case $enableval in
4335 yes) enable_static=yes ;;
4336 no) enable_static=no ;;
4337 *)
4338 enable_static=no
4339 # Look at the argument we got. We use all the common list separators.
4340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4341 for pkg in $enableval; do
4342 IFS="$lt_save_ifs"
4343 if test "X$pkg" = "X$p"; then
4344 enable_static=yes
4345 fi
4346 done
4347 IFS="$lt_save_ifs"
4348 ;;
4349 esac
4350 else
4351 enable_static=yes
4352 fi;
4353
4354 # Check whether --enable-fast-install or --disable-fast-install was given.
4355 if test "${enable_fast_install+set}" = set; then
4356 enableval="$enable_fast_install"
4357 p=${PACKAGE-default}
4358 case $enableval in
4359 yes) enable_fast_install=yes ;;
4360 no) enable_fast_install=no ;;
4361 *)
4362 enable_fast_install=no
4363 # Look at the argument we got. We use all the common list separators.
4364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4365 for pkg in $enableval; do
4366 IFS="$lt_save_ifs"
4367 if test "X$pkg" = "X$p"; then
4368 enable_fast_install=yes
4369 fi
4370 done
4371 IFS="$lt_save_ifs"
4372 ;;
4373 esac
4374 else
4375 enable_fast_install=yes
4376 fi;
4377
4378 # Make sure we can run config.sub.
4379 $ac_config_sub sun4 >/dev/null 2>&1 ||
4380 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4381 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4382 { (exit 1); exit 1; }; }
4383
4384 echo "$as_me:$LINENO: checking build system type" >&5
4385 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4386 if test "${ac_cv_build+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 ac_cv_build_alias=$build_alias
4390 test -z "$ac_cv_build_alias" &&
4391 ac_cv_build_alias=`$ac_config_guess`
4392 test -z "$ac_cv_build_alias" &&
4393 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4394 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4395 { (exit 1); exit 1; }; }
4396 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4398 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4399 { (exit 1); exit 1; }; }
4400
4401 fi
4402 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4403 echo "${ECHO_T}$ac_cv_build" >&6
4404 build=$ac_cv_build
4405 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4406 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4407 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4408
4409
4410 echo "$as_me:$LINENO: checking host system type" >&5
4411 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4412 if test "${ac_cv_host+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 ac_cv_host_alias=$host_alias
4416 test -z "$ac_cv_host_alias" &&
4417 ac_cv_host_alias=$ac_cv_build_alias
4418 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4420 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4421 { (exit 1); exit 1; }; }
4422
4423 fi
4424 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4425 echo "${ECHO_T}$ac_cv_host" >&6
4426 host=$ac_cv_host
4427 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4428 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4429 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4430
4431
4432 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4433 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4434 if test "${lt_cv_path_SED+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 # Loop through the user's path and test for sed and gsed.
4438 # Then use that list of sed's as ones to test for truncation.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for lt_ac_prog in sed gsed; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4447 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4448 fi
4449 done
4450 done
4451 done
4452 IFS=$as_save_IFS
4453 lt_ac_max=0
4454 lt_ac_count=0
4455 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4456 # along with /bin/sed that truncates output.
4457 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4458 test ! -f $lt_ac_sed && continue
4459 cat /dev/null > conftest.in
4460 lt_ac_count=0
4461 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4462 # Check for GNU sed and select it if it is found.
4463 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4464 lt_cv_path_SED=$lt_ac_sed
4465 break
4466 fi
4467 while true; do
4468 cat conftest.in conftest.in >conftest.tmp
4469 mv conftest.tmp conftest.in
4470 cp conftest.in conftest.nl
4471 echo >>conftest.nl
4472 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4473 cmp -s conftest.out conftest.nl || break
4474 # 10000 chars as input seems more than enough
4475 test $lt_ac_count -gt 10 && break
4476 lt_ac_count=`expr $lt_ac_count + 1`
4477 if test $lt_ac_count -gt $lt_ac_max; then
4478 lt_ac_max=$lt_ac_count
4479 lt_cv_path_SED=$lt_ac_sed
4480 fi
4481 done
4482 done
4483
4484 fi
4485
4486 SED=$lt_cv_path_SED
4487
4488 echo "$as_me:$LINENO: result: $SED" >&5
4489 echo "${ECHO_T}$SED" >&6
4490
4491
4492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4493 if test "${with_gnu_ld+set}" = set; then
4494 withval="$with_gnu_ld"
4495 test "$withval" = no || with_gnu_ld=yes
4496 else
4497 with_gnu_ld=no
4498 fi;
4499 ac_prog=ld
4500 if test "$GCC" = yes; then
4501 # Check if gcc -print-prog-name=ld gives a path.
4502 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4503 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4504 case $host in
4505 *-*-mingw*)
4506 # gcc leaves a trailing carriage return which upsets mingw
4507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4508 *)
4509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4510 esac
4511 case $ac_prog in
4512 # Accept absolute paths.
4513 [\\/]* | ?:[\\/]*)
4514 re_direlt='/[^/][^/]*/\.\./'
4515 # Canonicalize the pathname of ld
4516 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4517 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4518 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4519 done
4520 test -z "$LD" && LD="$ac_prog"
4521 ;;
4522 "")
4523 # If it fails, then pretend we aren't using GCC.
4524 ac_prog=ld
4525 ;;
4526 *)
4527 # If it is relative, then search for the first ld in PATH.
4528 with_gnu_ld=unknown
4529 ;;
4530 esac
4531 elif test "$with_gnu_ld" = yes; then
4532 echo "$as_me:$LINENO: checking for GNU ld" >&5
4533 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4534 else
4535 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4536 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4537 fi
4538 if test "${lt_cv_path_LD+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 if test -z "$LD"; then
4542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4543 for ac_dir in $PATH; do
4544 IFS="$lt_save_ifs"
4545 test -z "$ac_dir" && ac_dir=.
4546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4547 lt_cv_path_LD="$ac_dir/$ac_prog"
4548 # Check to see if the program is GNU ld. I'd rather use --version,
4549 # but apparently some variants of GNU ld only accept -v.
4550 # Break only if it was the GNU/non-GNU ld that we prefer.
4551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4552 *GNU* | *'with BFD'*)
4553 test "$with_gnu_ld" != no && break
4554 ;;
4555 *)
4556 test "$with_gnu_ld" != yes && break
4557 ;;
4558 esac
4559 fi
4560 done
4561 IFS="$lt_save_ifs"
4562 else
4563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4564 fi
4565 fi
4566
4567 LD="$lt_cv_path_LD"
4568 if test -n "$LD"; then
4569 echo "$as_me:$LINENO: result: $LD" >&5
4570 echo "${ECHO_T}$LD" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4574 fi
4575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4577 { (exit 1); exit 1; }; }
4578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4584 case `$LD -v 2>&1 </dev/null` in
4585 *GNU* | *'with BFD'*)
4586 lt_cv_prog_gnu_ld=yes
4587 ;;
4588 *)
4589 lt_cv_prog_gnu_ld=no
4590 ;;
4591 esac
4592 fi
4593 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4594 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4595 with_gnu_ld=$lt_cv_prog_gnu_ld
4596
4597
4598 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4599 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4600 if test "${lt_cv_ld_reload_flag+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 lt_cv_ld_reload_flag='-r'
4604 fi
4605 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4606 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4607 reload_flag=$lt_cv_ld_reload_flag
4608 case $reload_flag in
4609 "" | " "*) ;;
4610 *) reload_flag=" $reload_flag" ;;
4611 esac
4612 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4613 case $host_os in
4614 darwin*)
4615 if test "$GCC" = yes; then
4616 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4617 else
4618 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4619 fi
4620 ;;
4621 esac
4622
4623 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4624 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4625 if test "${lt_cv_path_NM+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 if test -n "$NM"; then
4629 # Let the user override the test.
4630 lt_cv_path_NM="$NM"
4631 else
4632 lt_nm_to_check="${ac_tool_prefix}nm"
4633 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4634 lt_nm_to_check="$lt_nm_to_check nm"
4635 fi
4636 for lt_tmp_nm in $lt_nm_to_check; do
4637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4638 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4639 IFS="$lt_save_ifs"
4640 test -z "$ac_dir" && ac_dir=.
4641 tmp_nm="$ac_dir/$lt_tmp_nm"
4642 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4643 # Check to see if the nm accepts a BSD-compat flag.
4644 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4645 # nm: unknown option "B" ignored
4646 # Tru64's nm complains that /dev/null is an invalid object file
4647 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4648 */dev/null* | *'Invalid file or object type'*)
4649 lt_cv_path_NM="$tmp_nm -B"
4650 break
4651 ;;
4652 *)
4653 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4654 */dev/null*)
4655 lt_cv_path_NM="$tmp_nm -p"
4656 break
4657 ;;
4658 *)
4659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4660 continue # so that we can try to find one that supports BSD flags
4661 ;;
4662 esac
4663 ;;
4664 esac
4665 fi
4666 done
4667 IFS="$lt_save_ifs"
4668 done
4669 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4670 fi
4671 fi
4672 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4673 echo "${ECHO_T}$lt_cv_path_NM" >&6
4674 NM="$lt_cv_path_NM"
4675
4676 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4678 LN_S=$as_ln_s
4679 if test "$LN_S" = "ln -s"; then
4680 echo "$as_me:$LINENO: result: yes" >&5
4681 echo "${ECHO_T}yes" >&6
4682 else
4683 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4684 echo "${ECHO_T}no, using $LN_S" >&6
4685 fi
4686
4687 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4688 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4689 if test "${lt_cv_deplibs_check_method+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 lt_cv_file_magic_cmd='$MAGIC_CMD'
4693 lt_cv_file_magic_test_file=
4694 lt_cv_deplibs_check_method='unknown'
4695 # Need to set the preceding variable on all platforms that support
4696 # interlibrary dependencies.
4697 # 'none' -- dependencies not supported.
4698 # `unknown' -- same as none, but documents that we really don't know.
4699 # 'pass_all' -- all dependencies passed with no checks.
4700 # 'test_compile' -- check by making test program.
4701 # 'file_magic [[regex]]' -- check by looking for files in library path
4702 # which responds to the $file_magic_cmd with a given extended regex.
4703 # If you have `file' or equivalent on your system and you're not sure
4704 # whether `pass_all' will *always* work, you probably want this one.
4705
4706 case $host_os in
4707 aix4* | aix5*)
4708 lt_cv_deplibs_check_method=pass_all
4709 ;;
4710
4711 beos*)
4712 lt_cv_deplibs_check_method=pass_all
4713 ;;
4714
4715 bsdi[45]*)
4716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4717 lt_cv_file_magic_cmd='/usr/bin/file -L'
4718 lt_cv_file_magic_test_file=/shlib/libc.so
4719 ;;
4720
4721 cygwin*)
4722 # func_win32_libid is a shell function defined in ltmain.sh
4723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4724 lt_cv_file_magic_cmd='func_win32_libid'
4725 ;;
4726
4727 mingw* | pw32*)
4728 # Base MSYS/MinGW do not provide the 'file' command needed by
4729 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4730 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4731 lt_cv_file_magic_cmd='$OBJDUMP -f'
4732 ;;
4733
4734 darwin* | rhapsody*)
4735 lt_cv_deplibs_check_method=pass_all
4736 ;;
4737
4738 freebsd* | kfreebsd*-gnu | dragonfly*)
4739 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4740 case $host_cpu in
4741 i*86 )
4742 # Not sure whether the presence of OpenBSD here was a mistake.
4743 # Let's accept both of them until this is cleared up.
4744 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4745 lt_cv_file_magic_cmd=/usr/bin/file
4746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4747 ;;
4748 esac
4749 else
4750 lt_cv_deplibs_check_method=pass_all
4751 fi
4752 ;;
4753
4754 gnu*)
4755 lt_cv_deplibs_check_method=pass_all
4756 ;;
4757
4758 hpux10.20* | hpux11*)
4759 lt_cv_file_magic_cmd=/usr/bin/file
4760 case $host_cpu in
4761 ia64*)
4762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4763 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4764 ;;
4765 hppa*64*)
4766 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]'
4767 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4768 ;;
4769 *)
4770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4771 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4772 ;;
4773 esac
4774 ;;
4775
4776 interix3*)
4777 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4779 ;;
4780
4781 irix5* | irix6* | nonstopux*)
4782 case $LD in
4783 *-32|*"-32 ") libmagic=32-bit;;
4784 *-n32|*"-n32 ") libmagic=N32;;
4785 *-64|*"-64 ") libmagic=64-bit;;
4786 *) libmagic=never-match;;
4787 esac
4788 lt_cv_deplibs_check_method=pass_all
4789 ;;
4790
4791 # This must be Linux ELF.
4792 linux*)
4793 lt_cv_deplibs_check_method=pass_all
4794 ;;
4795
4796 netbsd*)
4797 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4799 else
4800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4801 fi
4802 ;;
4803
4804 newos6*)
4805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4806 lt_cv_file_magic_cmd=/usr/bin/file
4807 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4808 ;;
4809
4810 nto-qnx*)
4811 lt_cv_deplibs_check_method=unknown
4812 ;;
4813
4814 openbsd*)
4815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4817 else
4818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4819 fi
4820 ;;
4821
4822 osf3* | osf4* | osf5*)
4823 lt_cv_deplibs_check_method=pass_all
4824 ;;
4825
4826 solaris*)
4827 lt_cv_deplibs_check_method=pass_all
4828 ;;
4829
4830 sysv4 | sysv4.3*)
4831 case $host_vendor in
4832 motorola)
4833 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]'
4834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4835 ;;
4836 ncr)
4837 lt_cv_deplibs_check_method=pass_all
4838 ;;
4839 sequent)
4840 lt_cv_file_magic_cmd='/bin/file'
4841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4842 ;;
4843 sni)
4844 lt_cv_file_magic_cmd='/bin/file'
4845 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4846 lt_cv_file_magic_test_file=/lib/libc.so
4847 ;;
4848 siemens)
4849 lt_cv_deplibs_check_method=pass_all
4850 ;;
4851 pc)
4852 lt_cv_deplibs_check_method=pass_all
4853 ;;
4854 esac
4855 ;;
4856
4857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4858 lt_cv_deplibs_check_method=pass_all
4859 ;;
4860 esac
4861
4862 fi
4863 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4864 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4865 file_magic_cmd=$lt_cv_file_magic_cmd
4866 deplibs_check_method=$lt_cv_deplibs_check_method
4867 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4868
4869
4870
4871
4872 # If no C compiler was specified, use CC.
4873 LTCC=${LTCC-"$CC"}
4874
4875 # If no C compiler flags were specified, use CFLAGS.
4876 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4877
4878 # Allow CC to be a program name with arguments.
4879 compiler=$CC
4880
4881 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4882 if test "${enable_libtool_lock+set}" = set; then
4883 enableval="$enable_libtool_lock"
4884
4885 fi;
4886 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4887
4888 # Some flags need to be propagated to the compiler or linker for good
4889 # libtool support.
4890 case $host in
4891 ia64-*-hpux*)
4892 # Find out which ABI we are using.
4893 echo 'int i;' > conftest.$ac_ext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 case `/usr/bin/file conftest.$ac_objext` in
4900 *ELF-32*)
4901 HPUX_IA64_MODE="32"
4902 ;;
4903 *ELF-64*)
4904 HPUX_IA64_MODE="64"
4905 ;;
4906 esac
4907 fi
4908 rm -rf conftest*
4909 ;;
4910 *-*-irix6*)
4911 # Find out which ABI we are using.
4912 echo '#line 4912 "configure"' > conftest.$ac_ext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; then
4918 if test "$lt_cv_prog_gnu_ld" = yes; then
4919 case `/usr/bin/file conftest.$ac_objext` in
4920 *32-bit*)
4921 LD="${LD-ld} -melf32bsmip"
4922 ;;
4923 *N32*)
4924 LD="${LD-ld} -melf32bmipn32"
4925 ;;
4926 *64-bit*)
4927 LD="${LD-ld} -melf64bmip"
4928 ;;
4929 esac
4930 else
4931 case `/usr/bin/file conftest.$ac_objext` in
4932 *32-bit*)
4933 LD="${LD-ld} -32"
4934 ;;
4935 *N32*)
4936 LD="${LD-ld} -n32"
4937 ;;
4938 *64-bit*)
4939 LD="${LD-ld} -64"
4940 ;;
4941 esac
4942 fi
4943 fi
4944 rm -rf conftest*
4945 ;;
4946
4947 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4948 # Find out which ABI we are using.
4949 echo 'int i;' > conftest.$ac_ext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; then
4955 case `/usr/bin/file conftest.o` in
4956 *32-bit*)
4957 case $host in
4958 x86_64-*linux*)
4959 LD="${LD-ld} -m elf_i386"
4960 ;;
4961 ppc64-*linux*|powerpc64-*linux*)
4962 LD="${LD-ld} -m elf32ppclinux"
4963 ;;
4964 s390x-*linux*)
4965 LD="${LD-ld} -m elf_s390"
4966 ;;
4967 sparc64-*linux*)
4968 LD="${LD-ld} -m elf32_sparc"
4969 ;;
4970 esac
4971 ;;
4972 *64-bit*)
4973 case $host in
4974 x86_64-*linux*)
4975 LD="${LD-ld} -m elf_x86_64"
4976 ;;
4977 ppc*-*linux*|powerpc*-*linux*)
4978 LD="${LD-ld} -m elf64ppc"
4979 ;;
4980 s390*-*linux*)
4981 LD="${LD-ld} -m elf64_s390"
4982 ;;
4983 sparc*-*linux*)
4984 LD="${LD-ld} -m elf64_sparc"
4985 ;;
4986 esac
4987 ;;
4988 esac
4989 fi
4990 rm -rf conftest*
4991 ;;
4992
4993 *-*-sco3.2v5*)
4994 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4995 SAVE_CFLAGS="$CFLAGS"
4996 CFLAGS="$CFLAGS -belf"
4997 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4998 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4999 if test "${lt_cv_cc_needs_belf+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002 ac_ext=c
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014
5015 int
5016 main ()
5017 {
5018
5019 ;
5020 return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext conftest$ac_exeext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5025 (eval $ac_link) 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 lt_cv_cc_needs_belf=yes
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 lt_cv_cc_needs_belf=no
5051 fi
5052 rm -f conftest.err conftest.$ac_objext \
5053 conftest$ac_exeext conftest.$ac_ext
5054 ac_ext=c
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060 fi
5061 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5062 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5063 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5064 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5065 CFLAGS="$SAVE_CFLAGS"
5066 fi
5067 ;;
5068 sparc*-*solaris*)
5069 # Find out which ABI we are using.
5070 echo 'int i;' > conftest.$ac_ext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; then
5076 case `/usr/bin/file conftest.o` in
5077 *64-bit*)
5078 case $lt_cv_prog_gnu_ld in
5079 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5080 *) LD="${LD-ld} -64" ;;
5081 esac
5082 ;;
5083 esac
5084 fi
5085 rm -rf conftest*
5086 ;;
5087
5088
5089 esac
5090
5091 need_locks="$enable_libtool_lock"
5092
5093
5094
5095 for ac_header in dlfcn.h
5096 do
5097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 fi
5104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5106 else
5107 # Is the header compilable?
5108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 #include <$ac_header>
5118 _ACEOF
5119 rm -f conftest.$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_header_compiler=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_header_compiler=no
5147 fi
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5150 echo "${ECHO_T}$ac_header_compiler" >&6
5151
5152 # Is the header present?
5153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 #include <$ac_header>
5162 _ACEOF
5163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null; then
5171 if test -s conftest.err; then
5172 ac_cpp_err=$ac_c_preproc_warn_flag
5173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5174 else
5175 ac_cpp_err=
5176 fi
5177 else
5178 ac_cpp_err=yes
5179 fi
5180 if test -z "$ac_cpp_err"; then
5181 ac_header_preproc=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_header_preproc=no
5187 fi
5188 rm -f conftest.err conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190 echo "${ECHO_T}$ac_header_preproc" >&6
5191
5192 # So? What about this header?
5193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5194 yes:no: )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc=yes
5200 ;;
5201 no:yes:* )
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5214 (
5215 cat <<\_ASBOX
5216 ## -------------------------------------------------- ##
5217 ## Report this to courier-users@lists.sourceforge.net ##
5218 ## -------------------------------------------------- ##
5219 _ASBOX
5220 ) |
5221 sed "s/^/$as_me: WARNING: /" >&2
5222 ;;
5223 esac
5224 echo "$as_me:$LINENO: checking for $ac_header" >&5
5225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 eval "$as_ac_Header=\$ac_header_preproc"
5230 fi
5231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5233
5234 fi
5235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5236 cat >>confdefs.h <<_ACEOF
5237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5239
5240 fi
5241
5242 done
5243
5244
5245
5246 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5247 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5248 (test "X$CXX" != "Xg++"))) ; then
5249 ac_ext=cc
5250 ac_cpp='$CXXCPP $CPPFLAGS'
5251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5254 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5255 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5256 if test -z "$CXXCPP"; then
5257 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 # Double quotes because CXXCPP needs to be expanded
5261 for CXXCPP in "$CXX -E" "/lib/cpp"
5262 do
5263 ac_preproc_ok=false
5264 for ac_cxx_preproc_warn_flag in '' yes
5265 do
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #ifdef __STDC__
5279 # include <limits.h>
5280 #else
5281 # include <assert.h>
5282 #endif
5283 Syntax error
5284 _ACEOF
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev/null; then
5293 if test -s conftest.err; then
5294 ac_cpp_err=$ac_cxx_preproc_warn_flag
5295 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5296 else
5297 ac_cpp_err=
5298 fi
5299 else
5300 ac_cpp_err=yes
5301 fi
5302 if test -z "$ac_cpp_err"; then
5303 :
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 # Broken: fails on valid input.
5309 continue
5310 fi
5311 rm -f conftest.err conftest.$ac_ext
5312
5313 # OK, works on sane cases. Now check whether non-existent headers
5314 # can be detected and how.
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 #include <ac_nonexistent.h>
5322 _ACEOF
5323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } >/dev/null; then
5331 if test -s conftest.err; then
5332 ac_cpp_err=$ac_cxx_preproc_warn_flag
5333 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5334 else
5335 ac_cpp_err=
5336 fi
5337 else
5338 ac_cpp_err=yes
5339 fi
5340 if test -z "$ac_cpp_err"; then
5341 # Broken: success on invalid input.
5342 continue
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5346
5347 # Passes both tests.
5348 ac_preproc_ok=:
5349 break
5350 fi
5351 rm -f conftest.err conftest.$ac_ext
5352
5353 done
5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355 rm -f conftest.err conftest.$ac_ext
5356 if $ac_preproc_ok; then
5357 break
5358 fi
5359
5360 done
5361 ac_cv_prog_CXXCPP=$CXXCPP
5362
5363 fi
5364 CXXCPP=$ac_cv_prog_CXXCPP
5365 else
5366 ac_cv_prog_CXXCPP=$CXXCPP
5367 fi
5368 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5369 echo "${ECHO_T}$CXXCPP" >&6
5370 ac_preproc_ok=false
5371 for ac_cxx_preproc_warn_flag in '' yes
5372 do
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 #ifdef __STDC__
5386 # include <limits.h>
5387 #else
5388 # include <assert.h>
5389 #endif
5390 Syntax error
5391 _ACEOF
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_cxx_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5403 else
5404 ac_cpp_err=
5405 fi
5406 else
5407 ac_cpp_err=yes
5408 fi
5409 if test -z "$ac_cpp_err"; then
5410 :
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 # Broken: fails on valid input.
5416 continue
5417 fi
5418 rm -f conftest.err conftest.$ac_ext
5419
5420 # OK, works on sane cases. Now check whether non-existent headers
5421 # can be detected and how.
5422 cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5429 _ACEOF
5430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null; then
5438 if test -s conftest.err; then
5439 ac_cpp_err=$ac_cxx_preproc_warn_flag
5440 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5441 else
5442 ac_cpp_err=
5443 fi
5444 else
5445 ac_cpp_err=yes
5446 fi
5447 if test -z "$ac_cpp_err"; then
5448 # Broken: success on invalid input.
5449 continue
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 # Passes both tests.
5455 ac_preproc_ok=:
5456 break
5457 fi
5458 rm -f conftest.err conftest.$ac_ext
5459
5460 done
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.err conftest.$ac_ext
5463 if $ac_preproc_ok; then
5464 :
5465 else
5466 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5467 See \`config.log' for more details." >&5
5468 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5469 See \`config.log' for more details." >&2;}
5470 { (exit 1); exit 1; }; }
5471 fi
5472
5473 ac_ext=cc
5474 ac_cpp='$CXXCPP $CPPFLAGS'
5475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5478
5479 fi
5480
5481
5482 ac_ext=f
5483 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5484 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5486 if test -n "$ac_tool_prefix"; then
5487 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5488 do
5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5491 echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5493 if test "${ac_cv_prog_F77+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496 if test -n "$F77"; then
5497 ac_cv_prog_F77="$F77" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510 done
5511 done
5512
5513 fi
5514 fi
5515 F77=$ac_cv_prog_F77
5516 if test -n "$F77"; then
5517 echo "$as_me:$LINENO: result: $F77" >&5
5518 echo "${ECHO_T}$F77" >&6
5519 else
5520 echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6
5522 fi
5523
5524 test -n "$F77" && break
5525 done
5526 fi
5527 if test -z "$F77"; then
5528 ac_ct_F77=$F77
5529 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5530 do
5531 # Extract the first word of "$ac_prog", so it can be a program name with args.
5532 set dummy $ac_prog; ac_word=$2
5533 echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 if test -n "$ac_ct_F77"; then
5539 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_F77="$ac_prog"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554
5555 fi
5556 fi
5557 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5558 if test -n "$ac_ct_F77"; then
5559 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5560 echo "${ECHO_T}$ac_ct_F77" >&6
5561 else
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5564 fi
5565
5566 test -n "$ac_ct_F77" && break
5567 done
5568
5569 F77=$ac_ct_F77
5570 fi
5571
5572
5573 # Provide some information about the compiler.
5574 echo "$as_me:5574:" \
5575 "checking for Fortran 77 compiler version" >&5
5576 ac_compiler=`set X $ac_compile; echo $2`
5577 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5578 (eval $ac_compiler --version </dev/null >&5) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }
5582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5583 (eval $ac_compiler -v </dev/null >&5) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }
5587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5588 (eval $ac_compiler -V </dev/null >&5) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }
5592 rm -f a.out
5593
5594 # If we don't use `.F' as extension, the preprocessor is not run on the
5595 # input file. (Note that this only needs to work for GNU compilers.)
5596 ac_save_ext=$ac_ext
5597 ac_ext=F
5598 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5599 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5600 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 cat >conftest.$ac_ext <<_ACEOF
5604 program main
5605 #ifndef __GNUC__
5606 choke me
5607 #endif
5608
5609 end
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_f77_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 (eval $ac_try) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_compiler_gnu=yes
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_compiler_gnu=no
5639 fi
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5642
5643 fi
5644 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5645 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5646 ac_ext=$ac_save_ext
5647 ac_test_FFLAGS=${FFLAGS+set}
5648 ac_save_FFLAGS=$FFLAGS
5649 FFLAGS=
5650 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5651 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5652 if test "${ac_cv_prog_f77_g+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 FFLAGS=-g
5656 cat >conftest.$ac_ext <<_ACEOF
5657 program main
5658
5659 end
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_f77_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_prog_f77_g=yes
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_cv_prog_f77_g=no
5689 fi
5690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691
5692 fi
5693 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5694 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5695 if test "$ac_test_FFLAGS" = set; then
5696 FFLAGS=$ac_save_FFLAGS
5697 elif test $ac_cv_prog_f77_g = yes; then
5698 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5699 FFLAGS="-g -O2"
5700 else
5701 FFLAGS="-g"
5702 fi
5703 else
5704 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5705 FFLAGS="-O2"
5706 else
5707 FFLAGS=
5708 fi
5709 fi
5710
5711 G77=`test $ac_compiler_gnu = yes && echo yes`
5712 ac_ext=c
5713 ac_cpp='$CPP $CPPFLAGS'
5714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717
5718
5719
5720 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5721
5722 # find the maximum length of command line arguments
5723 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5724 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5725 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 i=0
5729 teststring="ABCD"
5730
5731 case $build_os in
5732 msdosdjgpp*)
5733 # On DJGPP, this test can blow up pretty badly due to problems in libc
5734 # (any single argument exceeding 2000 bytes causes a buffer overrun
5735 # during glob expansion). Even if it were fixed, the result of this
5736 # check would be larger than it should be.
5737 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5738 ;;
5739
5740 gnu*)
5741 # Under GNU Hurd, this test is not required because there is
5742 # no limit to the length of command line arguments.
5743 # Libtool will interpret -1 as no limit whatsoever
5744 lt_cv_sys_max_cmd_len=-1;
5745 ;;
5746
5747 cygwin* | mingw*)
5748 # On Win9x/ME, this test blows up -- it succeeds, but takes
5749 # about 5 minutes as the teststring grows exponentially.
5750 # Worse, since 9x/ME are not pre-emptively multitasking,
5751 # you end up with a "frozen" computer, even though with patience
5752 # the test eventually succeeds (with a max line length of 256k).
5753 # Instead, let's just punt: use the minimum linelength reported by
5754 # all of the supported platforms: 8192 (on NT/2K/XP).
5755 lt_cv_sys_max_cmd_len=8192;
5756 ;;
5757
5758 amigaos*)
5759 # On AmigaOS with pdksh, this test takes hours, literally.
5760 # So we just punt and use a minimum line length of 8192.
5761 lt_cv_sys_max_cmd_len=8192;
5762 ;;
5763
5764 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5765 # This has been around since 386BSD, at least. Likely further.
5766 if test -x /sbin/sysctl; then
5767 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5768 elif test -x /usr/sbin/sysctl; then
5769 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5770 else
5771 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5772 fi
5773 # And add a safety zone
5774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5776 ;;
5777
5778 interix*)
5779 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5780 lt_cv_sys_max_cmd_len=196608
5781 ;;
5782
5783 osf*)
5784 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5785 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5786 # nice to cause kernel panics so lets avoid the loop below.
5787 # First set a reasonable default.
5788 lt_cv_sys_max_cmd_len=16384
5789 #
5790 if test -x /sbin/sysconfig; then
5791 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5792 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5793 esac
5794 fi
5795 ;;
5796 sco3.2v5*)
5797 lt_cv_sys_max_cmd_len=102400
5798 ;;
5799 sysv5* | sco5v6* | sysv4.2uw2*)
5800 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5801 if test -n "$kargmax"; then
5802 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5803 else
5804 lt_cv_sys_max_cmd_len=32768
5805 fi
5806 ;;
5807 *)
5808 # If test is not a shell built-in, we'll probably end up computing a
5809 # maximum length that is only half of the actual maximum length, but
5810 # we can't tell.
5811 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5812 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5813 = "XX$teststring") >/dev/null 2>&1 &&
5814 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5815 lt_cv_sys_max_cmd_len=$new_result &&
5816 test $i != 17 # 1/2 MB should be enough
5817 do
5818 i=`expr $i + 1`
5819 teststring=$teststring$teststring
5820 done
5821 teststring=
5822 # Add a significant safety factor because C++ compilers can tack on massive
5823 # amounts of additional arguments before passing them to the linker.
5824 # It appears as though 1/2 is a usable value.
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5826 ;;
5827 esac
5828
5829 fi
5830
5831 if test -n $lt_cv_sys_max_cmd_len ; then
5832 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5833 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5834 else
5835 echo "$as_me:$LINENO: result: none" >&5
5836 echo "${ECHO_T}none" >&6
5837 fi
5838
5839
5840
5841
5842 # Check for command to grab the raw symbol name followed by C symbol from nm.
5843 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5844 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5845 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848
5849 # These are sane defaults that work on at least a few old systems.
5850 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5851
5852 # Character class describing NM global symbol codes.
5853 symcode='[BCDEGRST]'
5854
5855 # Regexp to match symbols that can be accessed directly from C.
5856 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5857
5858 # Transform an extracted symbol line into a proper C declaration
5859 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5860
5861 # Transform an extracted symbol line into symbol name and symbol address
5862 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'"
5863
5864 # Define system-specific variables.
5865 case $host_os in
5866 aix*)
5867 symcode='[BCDT]'
5868 ;;
5869 cygwin* | mingw* | pw32*)
5870 symcode='[ABCDGISTW]'
5871 ;;
5872 hpux*) # Its linker distinguishes data from code symbols
5873 if test "$host_cpu" = ia64; then
5874 symcode='[ABCDEGRST]'
5875 fi
5876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5877 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'"
5878 ;;
5879 linux*)
5880 if test "$host_cpu" = ia64; then
5881 symcode='[ABCDGIRSTW]'
5882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5883 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'"
5884 fi
5885 ;;
5886 irix* | nonstopux*)
5887 symcode='[BCDEGRST]'
5888 ;;
5889 osf*)
5890 symcode='[BCDEGQRST]'
5891 ;;
5892 solaris*)
5893 symcode='[BDRT]'
5894 ;;
5895 sco3.2v5*)
5896 symcode='[DT]'
5897 ;;
5898 sysv4.2uw2*)
5899 symcode='[DT]'
5900 ;;
5901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5902 symcode='[ABDT]'
5903 ;;
5904 sysv4)
5905 symcode='[DFNSTU]'
5906 ;;
5907 esac
5908
5909 # Handle CRLF in mingw tool chain
5910 opt_cr=
5911 case $build_os in
5912 mingw*)
5913 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5914 ;;
5915 esac
5916
5917 # If we're using GNU nm, then use its standard symbol codes.
5918 case `$NM -V 2>&1` in
5919 *GNU* | *'with BFD'*)
5920 symcode='[ABCDGIRSTW]' ;;
5921 esac
5922
5923 # Try without a prefix undercore, then with it.
5924 for ac_symprfx in "" "_"; do
5925
5926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5927 symxfrm="\\1 $ac_symprfx\\2 \\2"
5928
5929 # Write the raw and C identifiers.
5930 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5931
5932 # Check to see that the pipe works correctly.
5933 pipe_works=no
5934
5935 rm -f conftest*
5936 cat > conftest.$ac_ext <<EOF
5937 #ifdef __cplusplus
5938 extern "C" {
5939 #endif
5940 char nm_test_var;
5941 void nm_test_func(){}
5942 #ifdef __cplusplus
5943 }
5944 #endif
5945 int main(){nm_test_var='a';nm_test_func();return(0);}
5946 EOF
5947
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; then
5953 # Now try to grab the symbols.
5954 nlist=conftest.nm
5955 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && test -s "$nlist"; then
5960 # Try sorting and uniquifying the output.
5961 if sort "$nlist" | uniq > "$nlist"T; then
5962 mv -f "$nlist"T "$nlist"
5963 else
5964 rm -f "$nlist"T
5965 fi
5966
5967 # Make sure that we snagged all the symbols we need.
5968 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5969 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5970 cat <<EOF > conftest.$ac_ext
5971 #ifdef __cplusplus
5972 extern "C" {
5973 #endif
5974
5975 EOF
5976 # Now generate the symbol file.
5977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5978
5979 cat <<EOF >> conftest.$ac_ext
5980 #if defined (__STDC__) && __STDC__
5981 # define lt_ptr_t void *
5982 #else
5983 # define lt_ptr_t char *
5984 # define const
5985 #endif
5986
5987 /* The mapping between symbol names and symbols. */
5988 const struct {
5989 const char *name;
5990 lt_ptr_t address;
5991 }
5992 lt_preloaded_symbols[] =
5993 {
5994 EOF
5995 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5996 cat <<\EOF >> conftest.$ac_ext
5997 {0, (lt_ptr_t) 0}
5998 };
5999
6000 #ifdef __cplusplus
6001 }
6002 #endif
6003 EOF
6004 # Now try linking the two files.
6005 mv conftest.$ac_objext conftstm.$ac_objext
6006 lt_save_LIBS="$LIBS"
6007 lt_save_CFLAGS="$CFLAGS"
6008 LIBS="conftstm.$ac_objext"
6009 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011 (eval $ac_link) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6015 pipe_works=yes
6016 fi
6017 LIBS="$lt_save_LIBS"
6018 CFLAGS="$lt_save_CFLAGS"
6019 else
6020 echo "cannot find nm_test_func in $nlist" >&5
6021 fi
6022 else
6023 echo "cannot find nm_test_var in $nlist" >&5
6024 fi
6025 else
6026 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6027 fi
6028 else
6029 echo "$progname: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 fi
6032 rm -f conftest* conftst*
6033
6034 # Do not use the global_symbol_pipe unless it works.
6035 if test "$pipe_works" = yes; then
6036 break
6037 else
6038 lt_cv_sys_global_symbol_pipe=
6039 fi
6040 done
6041
6042 fi
6043
6044 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6045 lt_cv_sys_global_symbol_to_cdecl=
6046 fi
6047 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6048 echo "$as_me:$LINENO: result: failed" >&5
6049 echo "${ECHO_T}failed" >&6
6050 else
6051 echo "$as_me:$LINENO: result: ok" >&5
6052 echo "${ECHO_T}ok" >&6
6053 fi
6054
6055 echo "$as_me:$LINENO: checking for objdir" >&5
6056 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6057 if test "${lt_cv_objdir+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 rm -f .libs 2>/dev/null
6061 mkdir .libs 2>/dev/null
6062 if test -d .libs; then
6063 lt_cv_objdir=.libs
6064 else
6065 # MS-DOS does not allow filenames that begin with a dot.
6066 lt_cv_objdir=_libs
6067 fi
6068 rmdir .libs 2>/dev/null
6069 fi
6070 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6071 echo "${ECHO_T}$lt_cv_objdir" >&6
6072 objdir=$lt_cv_objdir
6073
6074
6075
6076
6077
6078 case $host_os in
6079 aix3*)
6080 # AIX sometimes has problems with the GCC collect2 program. For some
6081 # reason, if we set the COLLECT_NAMES environment variable, the problems
6082 # vanish in a puff of smoke.
6083 if test "X${COLLECT_NAMES+set}" != Xset; then
6084 COLLECT_NAMES=
6085 export COLLECT_NAMES
6086 fi
6087 ;;
6088 esac
6089
6090 # Sed substitution that helps us do robust quoting. It backslashifies
6091 # metacharacters that are still active within double-quoted strings.
6092 Xsed='sed -e 1s/^X//'
6093 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6094
6095 # Same as above, but do not quote variable references.
6096 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6097
6098 # Sed substitution to delay expansion of an escaped shell variable in a
6099 # double_quote_subst'ed string.
6100 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6101
6102 # Sed substitution to avoid accidental globbing in evaled expressions
6103 no_glob_subst='s/\*/\\\*/g'
6104
6105 # Constants:
6106 rm="rm -f"
6107
6108 # Global variables:
6109 default_ofile=libtool
6110 can_build_shared=yes
6111
6112 # All known linkers require a `.a' archive for static linking (except MSVC,
6113 # which needs '.lib').
6114 libext=a
6115 ltmain="$ac_aux_dir/ltmain.sh"
6116 ofile="$default_ofile"
6117 with_gnu_ld="$lt_cv_prog_gnu_ld"
6118
6119 if test -n "$ac_tool_prefix"; then
6120 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6121 set dummy ${ac_tool_prefix}ar; ac_word=$2
6122 echo "$as_me:$LINENO: checking for $ac_word" >&5
6123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6124 if test "${ac_cv_prog_AR+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 if test -n "$AR"; then
6128 ac_cv_prog_AR="$AR" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_AR="${ac_tool_prefix}ar"
6138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143
6144 fi
6145 fi
6146 AR=$ac_cv_prog_AR
6147 if test -n "$AR"; then
6148 echo "$as_me:$LINENO: result: $AR" >&5
6149 echo "${ECHO_T}$AR" >&6
6150 else
6151 echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6153 fi
6154
6155 fi
6156 if test -z "$ac_cv_prog_AR"; then
6157 ac_ct_AR=$AR
6158 # Extract the first word of "ar", so it can be a program name with args.
6159 set dummy ar; ac_word=$2
6160 echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 if test -n "$ac_ct_AR"; then
6166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_AR="ar"
6176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181
6182 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6183 fi
6184 fi
6185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6186 if test -n "$ac_ct_AR"; then
6187 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6188 echo "${ECHO_T}$ac_ct_AR" >&6
6189 else
6190 echo "$as_me:$LINENO: result: no" >&5
6191 echo "${ECHO_T}no" >&6
6192 fi
6193
6194 AR=$ac_ct_AR
6195 else
6196 AR="$ac_cv_prog_AR"
6197 fi
6198
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6202 echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6204 if test "${ac_cv_prog_RANLIB+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 if test -n "$RANLIB"; then
6208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223
6224 fi
6225 fi
6226 RANLIB=$ac_cv_prog_RANLIB
6227 if test -n "$RANLIB"; then
6228 echo "$as_me:$LINENO: result: $RANLIB" >&5
6229 echo "${ECHO_T}$RANLIB" >&6
6230 else
6231 echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6
6233 fi
6234
6235 fi
6236 if test -z "$ac_cv_prog_RANLIB"; then
6237 ac_ct_RANLIB=$RANLIB
6238 # Extract the first word of "ranlib", so it can be a program name with args.
6239 set dummy ranlib; ac_word=$2
6240 echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245 if test -n "$ac_ct_RANLIB"; then
6246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_ac_ct_RANLIB="ranlib"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259 done
6260 done
6261
6262 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6263 fi
6264 fi
6265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6266 if test -n "$ac_ct_RANLIB"; then
6267 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6268 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6269 else
6270 echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6272 fi
6273
6274 RANLIB=$ac_ct_RANLIB
6275 else
6276 RANLIB="$ac_cv_prog_RANLIB"
6277 fi
6278
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}strip; ac_word=$2
6282 echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6284 if test "${ac_cv_prog_STRIP+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287 if test -n "$STRIP"; then
6288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303
6304 fi
6305 fi
6306 STRIP=$ac_cv_prog_STRIP
6307 if test -n "$STRIP"; then
6308 echo "$as_me:$LINENO: result: $STRIP" >&5
6309 echo "${ECHO_T}$STRIP" >&6
6310 else
6311 echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6
6313 fi
6314
6315 fi
6316 if test -z "$ac_cv_prog_STRIP"; then
6317 ac_ct_STRIP=$STRIP
6318 # Extract the first word of "strip", so it can be a program name with args.
6319 set dummy strip; ac_word=$2
6320 echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 if test -n "$ac_ct_STRIP"; then
6326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_STRIP="strip"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339 done
6340 done
6341
6342 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6343 fi
6344 fi
6345 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6346 if test -n "$ac_ct_STRIP"; then
6347 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6348 echo "${ECHO_T}$ac_ct_STRIP" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6352 fi
6353
6354 STRIP=$ac_ct_STRIP
6355 else
6356 STRIP="$ac_cv_prog_STRIP"
6357 fi
6358
6359
6360 old_CC="$CC"
6361 old_CFLAGS="$CFLAGS"
6362
6363 # Set sane defaults for various variables
6364 test -z "$AR" && AR=ar
6365 test -z "$AR_FLAGS" && AR_FLAGS=cru
6366 test -z "$AS" && AS=as
6367 test -z "$CC" && CC=cc
6368 test -z "$LTCC" && LTCC=$CC
6369 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6370 test -z "$DLLTOOL" && DLLTOOL=dlltool
6371 test -z "$LD" && LD=ld
6372 test -z "$LN_S" && LN_S="ln -s"
6373 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6374 test -z "$NM" && NM=nm
6375 test -z "$SED" && SED=sed
6376 test -z "$OBJDUMP" && OBJDUMP=objdump
6377 test -z "$RANLIB" && RANLIB=:
6378 test -z "$STRIP" && STRIP=:
6379 test -z "$ac_objext" && ac_objext=o
6380
6381 # Determine commands to create old-style static archives.
6382 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6383 old_postinstall_cmds='chmod 644 $oldlib'
6384 old_postuninstall_cmds=
6385
6386 if test -n "$RANLIB"; then
6387 case $host_os in
6388 openbsd*)
6389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6390 ;;
6391 *)
6392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6393 ;;
6394 esac
6395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6396 fi
6397
6398 for cc_temp in $compiler""; do
6399 case $cc_temp in
6400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6402 \-*) ;;
6403 *) break;;
6404 esac
6405 done
6406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6407
6408
6409 # Only perform the check for file, if the check method requires it
6410 case $deplibs_check_method in
6411 file_magic*)
6412 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6413 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6414 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6415 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418 case $MAGIC_CMD in
6419 [\\/*] | ?:[\\/]*)
6420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6421 ;;
6422 *)
6423 lt_save_MAGIC_CMD="$MAGIC_CMD"
6424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6426 for ac_dir in $ac_dummy; do
6427 IFS="$lt_save_ifs"
6428 test -z "$ac_dir" && ac_dir=.
6429 if test -f $ac_dir/${ac_tool_prefix}file; then
6430 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6431 if test -n "$file_magic_test_file"; then
6432 case $deplibs_check_method in
6433 "file_magic "*)
6434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6437 $EGREP "$file_magic_regex" > /dev/null; then
6438 :
6439 else
6440 cat <<EOF 1>&2
6441
6442 *** Warning: the command libtool uses to detect shared libraries,
6443 *** $file_magic_cmd, produces output that libtool cannot recognize.
6444 *** The result is that libtool may fail to recognize shared libraries
6445 *** as such. This will affect the creation of libtool libraries that
6446 *** depend on shared libraries, but programs linked with such libtool
6447 *** libraries will work regardless of this problem. Nevertheless, you
6448 *** may want to report the problem to your system manager and/or to
6449 *** bug-libtool@gnu.org
6450
6451 EOF
6452 fi ;;
6453 esac
6454 fi
6455 break
6456 fi
6457 done
6458 IFS="$lt_save_ifs"
6459 MAGIC_CMD="$lt_save_MAGIC_CMD"
6460 ;;
6461 esac
6462 fi
6463
6464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6465 if test -n "$MAGIC_CMD"; then
6466 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6467 echo "${ECHO_T}$MAGIC_CMD" >&6
6468 else
6469 echo "$as_me:$LINENO: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6471 fi
6472
6473 if test -z "$lt_cv_path_MAGIC_CMD"; then
6474 if test -n "$ac_tool_prefix"; then
6475 echo "$as_me:$LINENO: checking for file" >&5
6476 echo $ECHO_N "checking for file... $ECHO_C" >&6
6477 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 case $MAGIC_CMD in
6481 [\\/*] | ?:[\\/]*)
6482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6483 ;;
6484 *)
6485 lt_save_MAGIC_CMD="$MAGIC_CMD"
6486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6488 for ac_dir in $ac_dummy; do
6489 IFS="$lt_save_ifs"
6490 test -z "$ac_dir" && ac_dir=.
6491 if test -f $ac_dir/file; then
6492 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6493 if test -n "$file_magic_test_file"; then
6494 case $deplibs_check_method in
6495 "file_magic "*)
6496 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6499 $EGREP "$file_magic_regex" > /dev/null; then
6500 :
6501 else
6502 cat <<EOF 1>&2
6503
6504 *** Warning: the command libtool uses to detect shared libraries,
6505 *** $file_magic_cmd, produces output that libtool cannot recognize.
6506 *** The result is that libtool may fail to recognize shared libraries
6507 *** as such. This will affect the creation of libtool libraries that
6508 *** depend on shared libraries, but programs linked with such libtool
6509 *** libraries will work regardless of this problem. Nevertheless, you
6510 *** may want to report the problem to your system manager and/or to
6511 *** bug-libtool@gnu.org
6512
6513 EOF
6514 fi ;;
6515 esac
6516 fi
6517 break
6518 fi
6519 done
6520 IFS="$lt_save_ifs"
6521 MAGIC_CMD="$lt_save_MAGIC_CMD"
6522 ;;
6523 esac
6524 fi
6525
6526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6527 if test -n "$MAGIC_CMD"; then
6528 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6529 echo "${ECHO_T}$MAGIC_CMD" >&6
6530 else
6531 echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6
6533 fi
6534
6535 else
6536 MAGIC_CMD=:
6537 fi
6538 fi
6539
6540 fi
6541 ;;
6542 esac
6543
6544 enable_dlopen=no
6545 enable_win32_dll=no
6546
6547 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6548 if test "${enable_libtool_lock+set}" = set; then
6549 enableval="$enable_libtool_lock"
6550
6551 fi;
6552 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6553
6554
6555 # Check whether --with-pic or --without-pic was given.
6556 if test "${with_pic+set}" = set; then
6557 withval="$with_pic"
6558 pic_mode="$withval"
6559 else
6560 pic_mode=default
6561 fi;
6562 test -z "$pic_mode" && pic_mode=default
6563
6564 # Use C for the default configuration in the libtool script
6565 tagname=
6566 lt_save_CC="$CC"
6567 ac_ext=c
6568 ac_cpp='$CPP $CPPFLAGS'
6569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572
6573
6574 # Source file extension for C test sources.
6575 ac_ext=c
6576
6577 # Object file extension for compiled C test sources.
6578 objext=o
6579 objext=$objext
6580
6581 # Code to be used in simple compile tests
6582 lt_simple_compile_test_code="int some_variable = 0;\n"
6583
6584 # Code to be used in simple link tests
6585 lt_simple_link_test_code='int main(){return(0);}\n'
6586
6587
6588 # If no C compiler was specified, use CC.
6589 LTCC=${LTCC-"$CC"}
6590
6591 # If no C compiler flags were specified, use CFLAGS.
6592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6593
6594 # Allow CC to be a program name with arguments.
6595 compiler=$CC
6596
6597
6598 # save warnings/boilerplate of simple test code
6599 ac_outfile=conftest.$ac_objext
6600 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6602 _lt_compiler_boilerplate=`cat conftest.err`
6603 $rm conftest*
6604
6605 ac_outfile=conftest.$ac_objext
6606 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6608 _lt_linker_boilerplate=`cat conftest.err`
6609 $rm conftest*
6610
6611
6612
6613 lt_prog_compiler_no_builtin_flag=
6614
6615 if test "$GCC" = yes; then
6616 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6617
6618
6619 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6620 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6621 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 lt_cv_prog_compiler_rtti_exceptions=no
6625 ac_outfile=conftest.$ac_objext
6626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6627 lt_compiler_flag="-fno-rtti -fno-exceptions"
6628 # Insert the option either (1) after the last *FLAGS variable, or
6629 # (2) before a word containing "conftest.", or (3) at the end.
6630 # Note that $ac_compile itself does not contain backslashes and begins
6631 # with a dollar sign (not a hyphen), so the echo should work correctly.
6632 # The option is referenced via a variable to avoid confusing sed.
6633 lt_compile=`echo "$ac_compile" | $SED \
6634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6636 -e 's:$: $lt_compiler_flag:'`
6637 (eval echo "\"\$as_me:6637: $lt_compile\"" >&5)
6638 (eval "$lt_compile" 2>conftest.err)
6639 ac_status=$?
6640 cat conftest.err >&5
6641 echo "$as_me:6641: \$? = $ac_status" >&5
6642 if (exit $ac_status) && test -s "$ac_outfile"; then
6643 # The compiler can only warn and ignore the option if not recognized
6644 # So say no if there are warnings other than the usual output.
6645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6648 lt_cv_prog_compiler_rtti_exceptions=yes
6649 fi
6650 fi
6651 $rm conftest*
6652
6653 fi
6654 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6655 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6656
6657 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6658 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6659 else
6660 :
6661 fi
6662
6663 fi
6664
6665 lt_prog_compiler_wl=
6666 lt_prog_compiler_pic=
6667 lt_prog_compiler_static=
6668
6669 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6670 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6671
6672 if test "$GCC" = yes; then
6673 lt_prog_compiler_wl='-Wl,'
6674 lt_prog_compiler_static='-static'
6675
6676 case $host_os in
6677 aix*)
6678 # All AIX code is PIC.
6679 if test "$host_cpu" = ia64; then
6680 # AIX 5 now supports IA64 processor
6681 lt_prog_compiler_static='-Bstatic'
6682 fi
6683 ;;
6684
6685 amigaos*)
6686 # FIXME: we need at least 68020 code to build shared libraries, but
6687 # adding the `-m68020' flag to GCC prevents building anything better,
6688 # like `-m68040'.
6689 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6690 ;;
6691
6692 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6693 # PIC is the default for these OSes.
6694 ;;
6695
6696 mingw* | pw32* | os2*)
6697 # This hack is so that the source file can tell whether it is being
6698 # built for inclusion in a dll (and should export symbols for example).
6699 lt_prog_compiler_pic='-DDLL_EXPORT'
6700 ;;
6701
6702 darwin* | rhapsody*)
6703 # PIC is the default on this platform
6704 # Common symbols not allowed in MH_DYLIB files
6705 lt_prog_compiler_pic='-fno-common'
6706 ;;
6707
6708 interix3*)
6709 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6710 # Instead, we relocate shared libraries at runtime.
6711 ;;
6712
6713 msdosdjgpp*)
6714 # Just because we use GCC doesn't mean we suddenly get shared libraries
6715 # on systems that don't support them.
6716 lt_prog_compiler_can_build_shared=no
6717 enable_shared=no
6718 ;;
6719
6720 sysv4*MP*)
6721 if test -d /usr/nec; then
6722 lt_prog_compiler_pic=-Kconform_pic
6723 fi
6724 ;;
6725
6726 hpux*)
6727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6728 # not for PA HP-UX.
6729 case $host_cpu in
6730 hppa*64*|ia64*)
6731 # +Z the default
6732 ;;
6733 *)
6734 lt_prog_compiler_pic='-fPIC'
6735 ;;
6736 esac
6737 ;;
6738
6739 *)
6740 lt_prog_compiler_pic='-fPIC'
6741 ;;
6742 esac
6743 else
6744 # PORTME Check for flag to pass linker flags through the system compiler.
6745 case $host_os in
6746 aix*)
6747 lt_prog_compiler_wl='-Wl,'
6748 if test "$host_cpu" = ia64; then
6749 # AIX 5 now supports IA64 processor
6750 lt_prog_compiler_static='-Bstatic'
6751 else
6752 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6753 fi
6754 ;;
6755 darwin*)
6756 # PIC is the default on this platform
6757 # Common symbols not allowed in MH_DYLIB files
6758 case $cc_basename in
6759 xlc*)
6760 lt_prog_compiler_pic='-qnocommon'
6761 lt_prog_compiler_wl='-Wl,'
6762 ;;
6763 esac
6764 ;;
6765
6766 mingw* | pw32* | os2*)
6767 # This hack is so that the source file can tell whether it is being
6768 # built for inclusion in a dll (and should export symbols for example).
6769 lt_prog_compiler_pic='-DDLL_EXPORT'
6770 ;;
6771
6772 hpux9* | hpux10* | hpux11*)
6773 lt_prog_compiler_wl='-Wl,'
6774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6775 # not for PA HP-UX.
6776 case $host_cpu in
6777 hppa*64*|ia64*)
6778 # +Z the default
6779 ;;
6780 *)
6781 lt_prog_compiler_pic='+Z'
6782 ;;
6783 esac
6784 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6785 lt_prog_compiler_static='${wl}-a ${wl}archive'
6786 ;;
6787
6788 irix5* | irix6* | nonstopux*)
6789 lt_prog_compiler_wl='-Wl,'
6790 # PIC (with -KPIC) is the default.
6791 lt_prog_compiler_static='-non_shared'
6792 ;;
6793
6794 newsos6)
6795 lt_prog_compiler_pic='-KPIC'
6796 lt_prog_compiler_static='-Bstatic'
6797 ;;
6798
6799 linux*)
6800 case $cc_basename in
6801 icc* | ecc*)
6802 lt_prog_compiler_wl='-Wl,'
6803 lt_prog_compiler_pic='-KPIC'
6804 lt_prog_compiler_static='-static'
6805 ;;
6806 pgcc* | pgf77* | pgf90* | pgf95*)
6807 # Portland Group compilers (*not* the Pentium gcc compiler,
6808 # which looks to be a dead project)
6809 lt_prog_compiler_wl='-Wl,'
6810 lt_prog_compiler_pic='-fpic'
6811 lt_prog_compiler_static='-Bstatic'
6812 ;;
6813 ccc*)
6814 lt_prog_compiler_wl='-Wl,'
6815 # All Alpha code is PIC.
6816 lt_prog_compiler_static='-non_shared'
6817 ;;
6818 esac
6819 ;;
6820
6821 osf3* | osf4* | osf5*)
6822 lt_prog_compiler_wl='-Wl,'
6823 # All OSF/1 code is PIC.
6824 lt_prog_compiler_static='-non_shared'
6825 ;;
6826
6827 solaris*)
6828 lt_prog_compiler_pic='-KPIC'
6829 lt_prog_compiler_static='-Bstatic'
6830 case $cc_basename in
6831 f77* | f90* | f95*)
6832 lt_prog_compiler_wl='-Qoption ld ';;
6833 *)
6834 lt_prog_compiler_wl='-Wl,';;
6835 esac
6836 ;;
6837
6838 sunos4*)
6839 lt_prog_compiler_wl='-Qoption ld '
6840 lt_prog_compiler_pic='-PIC'
6841 lt_prog_compiler_static='-Bstatic'
6842 ;;
6843
6844 sysv4 | sysv4.2uw2* | sysv4.3*)
6845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='-KPIC'
6847 lt_prog_compiler_static='-Bstatic'
6848 ;;
6849
6850 sysv4*MP*)
6851 if test -d /usr/nec ;then
6852 lt_prog_compiler_pic='-Kconform_pic'
6853 lt_prog_compiler_static='-Bstatic'
6854 fi
6855 ;;
6856
6857 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-KPIC'
6860 lt_prog_compiler_static='-Bstatic'
6861 ;;
6862
6863 unicos*)
6864 lt_prog_compiler_wl='-Wl,'
6865 lt_prog_compiler_can_build_shared=no
6866 ;;
6867
6868 uts4*)
6869 lt_prog_compiler_pic='-pic'
6870 lt_prog_compiler_static='-Bstatic'
6871 ;;
6872
6873 *)
6874 lt_prog_compiler_can_build_shared=no
6875 ;;
6876 esac
6877 fi
6878
6879 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6880 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6881
6882 #
6883 # Check to make sure the PIC flag actually works.
6884 #
6885 if test -n "$lt_prog_compiler_pic"; then
6886
6887 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6888 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6889 if test "${lt_prog_compiler_pic_works+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892 lt_prog_compiler_pic_works=no
6893 ac_outfile=conftest.$ac_objext
6894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6895 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6896 # Insert the option either (1) after the last *FLAGS variable, or
6897 # (2) before a word containing "conftest.", or (3) at the end.
6898 # Note that $ac_compile itself does not contain backslashes and begins
6899 # with a dollar sign (not a hyphen), so the echo should work correctly.
6900 # The option is referenced via a variable to avoid confusing sed.
6901 lt_compile=`echo "$ac_compile" | $SED \
6902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6904 -e 's:$: $lt_compiler_flag:'`
6905 (eval echo "\"\$as_me:6905: $lt_compile\"" >&5)
6906 (eval "$lt_compile" 2>conftest.err)
6907 ac_status=$?
6908 cat conftest.err >&5
6909 echo "$as_me:6909: \$? = $ac_status" >&5
6910 if (exit $ac_status) && test -s "$ac_outfile"; then
6911 # The compiler can only warn and ignore the option if not recognized
6912 # So say no if there are warnings other than the usual output.
6913 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6916 lt_prog_compiler_pic_works=yes
6917 fi
6918 fi
6919 $rm conftest*
6920
6921 fi
6922 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6923 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6924
6925 if test x"$lt_prog_compiler_pic_works" = xyes; then
6926 case $lt_prog_compiler_pic in
6927 "" | " "*) ;;
6928 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6929 esac
6930 else
6931 lt_prog_compiler_pic=
6932 lt_prog_compiler_can_build_shared=no
6933 fi
6934
6935 fi
6936 case $host_os in
6937 # For platforms which do not support PIC, -DPIC is meaningless:
6938 *djgpp*)
6939 lt_prog_compiler_pic=
6940 ;;
6941 *)
6942 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6943 ;;
6944 esac
6945
6946 #
6947 # Check to make sure the static flag actually works.
6948 #
6949 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6950 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6951 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6952 if test "${lt_prog_compiler_static_works+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 lt_prog_compiler_static_works=no
6956 save_LDFLAGS="$LDFLAGS"
6957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6958 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6960 # The linker can only warn and ignore the option if not recognized
6961 # So say no if there are warnings
6962 if test -s conftest.err; then
6963 # Append any errors to the config.log.
6964 cat conftest.err 1>&5
6965 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6967 if diff conftest.exp conftest.er2 >/dev/null; then
6968 lt_prog_compiler_static_works=yes
6969 fi
6970 else
6971 lt_prog_compiler_static_works=yes
6972 fi
6973 fi
6974 $rm conftest*
6975 LDFLAGS="$save_LDFLAGS"
6976
6977 fi
6978 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6979 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6980
6981 if test x"$lt_prog_compiler_static_works" = xyes; then
6982 :
6983 else
6984 lt_prog_compiler_static=
6985 fi
6986
6987
6988 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6989 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6990 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993 lt_cv_prog_compiler_c_o=no
6994 $rm -r conftest 2>/dev/null
6995 mkdir conftest
6996 cd conftest
6997 mkdir out
6998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6999
7000 lt_compiler_flag="-o out/conftest2.$ac_objext"
7001 # Insert the option either (1) after the last *FLAGS variable, or
7002 # (2) before a word containing "conftest.", or (3) at the end.
7003 # Note that $ac_compile itself does not contain backslashes and begins
7004 # with a dollar sign (not a hyphen), so the echo should work correctly.
7005 lt_compile=`echo "$ac_compile" | $SED \
7006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7008 -e 's:$: $lt_compiler_flag:'`
7009 (eval echo "\"\$as_me:7009: $lt_compile\"" >&5)
7010 (eval "$lt_compile" 2>out/conftest.err)
7011 ac_status=$?
7012 cat out/conftest.err >&5
7013 echo "$as_me:7013: \$? = $ac_status" >&5
7014 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7015 then
7016 # The compiler can only warn and ignore the option if not recognized
7017 # So say no if there are warnings
7018 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7021 lt_cv_prog_compiler_c_o=yes
7022 fi
7023 fi
7024 chmod u+w . 2>&5
7025 $rm conftest*
7026 # SGI C++ compiler will create directory out/ii_files/ for
7027 # template instantiation
7028 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7029 $rm out/* && rmdir out
7030 cd ..
7031 rmdir conftest
7032 $rm conftest*
7033
7034 fi
7035 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7036 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7037
7038
7039 hard_links="nottested"
7040 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7041 # do not overwrite the value of need_locks provided by the user
7042 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7043 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7044 hard_links=yes
7045 $rm conftest*
7046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7047 touch conftest.a
7048 ln conftest.a conftest.b 2>&5 || hard_links=no
7049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7050 echo "$as_me:$LINENO: result: $hard_links" >&5
7051 echo "${ECHO_T}$hard_links" >&6
7052 if test "$hard_links" = no; then
7053 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7054 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7055 need_locks=warn
7056 fi
7057 else
7058 need_locks=no
7059 fi
7060
7061 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7062 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7063
7064 runpath_var=
7065 allow_undefined_flag=
7066 enable_shared_with_static_runtimes=no
7067 archive_cmds=
7068 archive_expsym_cmds=
7069 old_archive_From_new_cmds=
7070 old_archive_from_expsyms_cmds=
7071 export_dynamic_flag_spec=
7072 whole_archive_flag_spec=
7073 thread_safe_flag_spec=
7074 hardcode_libdir_flag_spec=
7075 hardcode_libdir_flag_spec_ld=
7076 hardcode_libdir_separator=
7077 hardcode_direct=no
7078 hardcode_minus_L=no
7079 hardcode_shlibpath_var=unsupported
7080 link_all_deplibs=unknown
7081 hardcode_automatic=no
7082 module_cmds=
7083 module_expsym_cmds=
7084 always_export_symbols=no
7085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7086 # include_expsyms should be a list of space-separated symbols to be *always*
7087 # included in the symbol list
7088 include_expsyms=
7089 # exclude_expsyms can be an extended regexp of symbols to exclude
7090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7092 # as well as any symbol that contains `d'.
7093 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7095 # platforms (ab)use it in PIC code, but their linkers get confused if
7096 # the symbol is explicitly referenced. Since portable code cannot
7097 # rely on this symbol name, it's probably fine to never include it in
7098 # preloaded symbol tables.
7099 extract_expsyms_cmds=
7100 # Just being paranoid about ensuring that cc_basename is set.
7101 for cc_temp in $compiler""; do
7102 case $cc_temp in
7103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7105 \-*) ;;
7106 *) break;;
7107 esac
7108 done
7109 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7110
7111 case $host_os in
7112 cygwin* | mingw* | pw32*)
7113 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7114 # When not using gcc, we currently assume that we are using
7115 # Microsoft Visual C++.
7116 if test "$GCC" != yes; then
7117 with_gnu_ld=no
7118 fi
7119 ;;
7120 interix*)
7121 # we just hope/assume this is gcc and not c89 (= MSVC++)
7122 with_gnu_ld=yes
7123 ;;
7124 openbsd*)
7125 with_gnu_ld=no
7126 ;;
7127 esac
7128
7129 ld_shlibs=yes
7130 if test "$with_gnu_ld" = yes; then
7131 # If archive_cmds runs LD, not CC, wlarc should be empty
7132 wlarc='${wl}'
7133
7134 # Set some defaults for GNU ld with shared library support. These
7135 # are reset later if shared libraries are not supported. Putting them
7136 # here allows them to be overridden if necessary.
7137 runpath_var=LD_RUN_PATH
7138 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7139 export_dynamic_flag_spec='${wl}--export-dynamic'
7140 # ancient GNU ld didn't support --whole-archive et. al.
7141 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7142 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7143 else
7144 whole_archive_flag_spec=
7145 fi
7146 supports_anon_versioning=no
7147 case `$LD -v 2>/dev/null` in
7148 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7149 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7150 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7151 *\ 2.11.*) ;; # other 2.11 versions
7152 *) supports_anon_versioning=yes ;;
7153 esac
7154
7155 # See if GNU ld supports shared libraries.
7156 case $host_os in
7157 aix3* | aix4* | aix5*)
7158 # On AIX/PPC, the GNU linker is very broken
7159 if test "$host_cpu" != ia64; then
7160 ld_shlibs=no
7161 cat <<EOF 1>&2
7162
7163 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7164 *** to be unable to reliably create shared libraries on AIX.
7165 *** Therefore, libtool is disabling shared libraries support. If you
7166 *** really care for shared libraries, you may want to modify your PATH
7167 *** so that a non-GNU linker is found, and then restart.
7168
7169 EOF
7170 fi
7171 ;;
7172
7173 amigaos*)
7174 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7175 hardcode_libdir_flag_spec='-L$libdir'
7176 hardcode_minus_L=yes
7177
7178 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7179 # that the semantics of dynamic libraries on AmigaOS, at least up
7180 # to version 4, is to share data among multiple programs linked
7181 # with the same dynamic library. Since this doesn't match the
7182 # behavior of shared libraries on other platforms, we can't use
7183 # them.
7184 ld_shlibs=no
7185 ;;
7186
7187 beos*)
7188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7189 allow_undefined_flag=unsupported
7190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7191 # support --undefined. This deserves some investigation. FIXME
7192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7193 else
7194 ld_shlibs=no
7195 fi
7196 ;;
7197
7198 cygwin* | mingw* | pw32*)
7199 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7200 # as there is no search path for DLLs.
7201 hardcode_libdir_flag_spec='-L$libdir'
7202 allow_undefined_flag=unsupported
7203 always_export_symbols=no
7204 enable_shared_with_static_runtimes=yes
7205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7206
7207 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7209 # If the export-symbols file already is a .def file (1st line
7210 # is EXPORTS), use it as is; otherwise, prepend...
7211 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7212 cp $export_symbols $output_objdir/$soname.def;
7213 else
7214 echo EXPORTS > $output_objdir/$soname.def;
7215 cat $export_symbols >> $output_objdir/$soname.def;
7216 fi~
7217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7218 else
7219 ld_shlibs=no
7220 fi
7221 ;;
7222
7223 interix3*)
7224 hardcode_direct=no
7225 hardcode_shlibpath_var=no
7226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7227 export_dynamic_flag_spec='${wl}-E'
7228 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7229 # Instead, shared libraries are loaded at an image base (0x10000000 by
7230 # default) and relocated if they conflict, which is a slow very memory
7231 # consuming and fragmenting process. To avoid this, we pick a random,
7232 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7233 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7235 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7236 ;;
7237
7238 linux*)
7239 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7240 tmp_addflag=
7241 case $cc_basename,$host_cpu in
7242 pgcc*) # Portland Group C compiler
7243 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7244 tmp_addflag=' $pic_flag'
7245 ;;
7246 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7247 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7248 tmp_addflag=' $pic_flag -Mnomain' ;;
7249 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7250 tmp_addflag=' -i_dynamic' ;;
7251 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7252 tmp_addflag=' -i_dynamic -nofor_main' ;;
7253 ifc* | ifort*) # Intel Fortran compiler
7254 tmp_addflag=' -nofor_main' ;;
7255 esac
7256 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7257
7258 if test $supports_anon_versioning = yes; then
7259 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7261 $echo "local: *; };" >> $output_objdir/$libname.ver~
7262 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7263 fi
7264 else
7265 ld_shlibs=no
7266 fi
7267 ;;
7268
7269 netbsd*)
7270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7271 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7272 wlarc=
7273 else
7274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7276 fi
7277 ;;
7278
7279 solaris*)
7280 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7281 ld_shlibs=no
7282 cat <<EOF 1>&2
7283
7284 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7285 *** create shared libraries on Solaris systems. Therefore, libtool
7286 *** is disabling shared libraries support. We urge you to upgrade GNU
7287 *** binutils to release 2.9.1 or newer. Another option is to modify
7288 *** your PATH or compiler configuration so that the native linker is
7289 *** used, and then restart.
7290
7291 EOF
7292 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7295 else
7296 ld_shlibs=no
7297 fi
7298 ;;
7299
7300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7301 case `$LD -v 2>&1` in
7302 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7303 ld_shlibs=no
7304 cat <<_LT_EOF 1>&2
7305
7306 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7307 *** reliably create shared libraries on SCO systems. Therefore, libtool
7308 *** is disabling shared libraries support. We urge you to upgrade GNU
7309 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7310 *** your PATH or compiler configuration so that the native linker is
7311 *** used, and then restart.
7312
7313 _LT_EOF
7314 ;;
7315 *)
7316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7317 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7320 else
7321 ld_shlibs=no
7322 fi
7323 ;;
7324 esac
7325 ;;
7326
7327 sunos4*)
7328 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7329 wlarc=
7330 hardcode_direct=yes
7331 hardcode_shlibpath_var=no
7332 ;;
7333
7334 *)
7335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7338 else
7339 ld_shlibs=no
7340 fi
7341 ;;
7342 esac
7343
7344 if test "$ld_shlibs" = no; then
7345 runpath_var=
7346 hardcode_libdir_flag_spec=
7347 export_dynamic_flag_spec=
7348 whole_archive_flag_spec=
7349 fi
7350 else
7351 # PORTME fill in a description of your system's linker (not GNU ld)
7352 case $host_os in
7353 aix3*)
7354 allow_undefined_flag=unsupported
7355 always_export_symbols=yes
7356 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7357 # Note: this linker hardcodes the directories in LIBPATH if there
7358 # are no directories specified by -L.
7359 hardcode_minus_L=yes
7360 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7361 # Neither direct hardcoding nor static linking is supported with a
7362 # broken collect2.
7363 hardcode_direct=unsupported
7364 fi
7365 ;;
7366
7367 aix4* | aix5*)
7368 if test "$host_cpu" = ia64; then
7369 # On IA64, the linker does run time linking by default, so we don't
7370 # have to do anything special.
7371 aix_use_runtimelinking=no
7372 exp_sym_flag='-Bexport'
7373 no_entry_flag=""
7374 else
7375 # If we're using GNU nm, then we don't want the "-C" option.
7376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7377 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7378 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'
7379 else
7380 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'
7381 fi
7382 aix_use_runtimelinking=no
7383
7384 # Test if we are trying to use run time linking or normal
7385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7386 # need to do runtime linking.
7387 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7388 for ld_flag in $LDFLAGS; do
7389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7390 aix_use_runtimelinking=yes
7391 break
7392 fi
7393 done
7394 ;;
7395 esac
7396
7397 exp_sym_flag='-bexport'
7398 no_entry_flag='-bnoentry'
7399 fi
7400
7401 # When large executables or shared objects are built, AIX ld can
7402 # have problems creating the table of contents. If linking a library
7403 # or program results in "error TOC overflow" add -mminimal-toc to
7404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7406
7407 archive_cmds=''
7408 hardcode_direct=yes
7409 hardcode_libdir_separator=':'
7410 link_all_deplibs=yes
7411
7412 if test "$GCC" = yes; then
7413 case $host_os in aix4.[012]|aix4.[012].*)
7414 # We only want to do this on AIX 4.2 and lower, the check
7415 # below for broken collect2 doesn't work under 4.3+
7416 collect2name=`${CC} -print-prog-name=collect2`
7417 if test -f "$collect2name" && \
7418 strings "$collect2name" | grep resolve_lib_name >/dev/null
7419 then
7420 # We have reworked collect2
7421 hardcode_direct=yes
7422 else
7423 # We have old collect2
7424 hardcode_direct=unsupported
7425 # It fails to find uninstalled libraries when the uninstalled
7426 # path is not listed in the libpath. Setting hardcode_minus_L
7427 # to unsupported forces relinking
7428 hardcode_minus_L=yes
7429 hardcode_libdir_flag_spec='-L$libdir'
7430 hardcode_libdir_separator=
7431 fi
7432 ;;
7433 esac
7434 shared_flag='-shared'
7435 if test "$aix_use_runtimelinking" = yes; then
7436 shared_flag="$shared_flag "'${wl}-G'
7437 fi
7438 else
7439 # not using gcc
7440 if test "$host_cpu" = ia64; then
7441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7442 # chokes on -Wl,-G. The following line is correct:
7443 shared_flag='-G'
7444 else
7445 if test "$aix_use_runtimelinking" = yes; then
7446 shared_flag='${wl}-G'
7447 else
7448 shared_flag='${wl}-bM:SRE'
7449 fi
7450 fi
7451 fi
7452
7453 # It seems that -bexpall does not export symbols beginning with
7454 # underscore (_), so it is better to generate a list of symbols to export.
7455 always_export_symbols=yes
7456 if test "$aix_use_runtimelinking" = yes; then
7457 # Warning - without using the other runtime loading flags (-brtl),
7458 # -berok will link without error, but may produce a broken library.
7459 allow_undefined_flag='-berok'
7460 # Determine the default libpath from the value encoded in an empty executable.
7461 cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h. */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467
7468 int
7469 main ()
7470 {
7471
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 rm -f conftest.$ac_objext conftest$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -z "$ac_c_werror_flag"
7486 || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest$ac_exeext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498
7499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7500 }'`
7501 # Check for a 64-bit object if we didn't find anything.
7502 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; }
7503 }'`; fi
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 fi
7509 rm -f conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7512
7513 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7514 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7515 else
7516 if test "$host_cpu" = ia64; then
7517 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7518 allow_undefined_flag="-z nodefs"
7519 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7520 else
7521 # Determine the default libpath from the value encoded in an empty executable.
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528
7529 int
7530 main ()
7531 {
7532
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 rm -f conftest.$ac_objext conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559
7560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7561 }'`
7562 # Check for a 64-bit object if we didn't find anything.
7563 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; }
7564 }'`; fi
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569 fi
7570 rm -f conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7573
7574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7575 # Warning - without using the other run time loading flags,
7576 # -berok will link without error, but may produce a broken library.
7577 no_undefined_flag=' ${wl}-bernotok'
7578 allow_undefined_flag=' ${wl}-berok'
7579 # Exported symbols can be pulled into shared objects from archives
7580 whole_archive_flag_spec='$convenience'
7581 archive_cmds_need_lc=yes
7582 # This is similar to how AIX traditionally builds its shared libraries.
7583 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7584 fi
7585 fi
7586 ;;
7587
7588 amigaos*)
7589 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7590 hardcode_libdir_flag_spec='-L$libdir'
7591 hardcode_minus_L=yes
7592 # see comment about different semantics on the GNU ld section
7593 ld_shlibs=no
7594 ;;
7595
7596 bsdi[45]*)
7597 export_dynamic_flag_spec=-rdynamic
7598 ;;
7599
7600 cygwin* | mingw* | pw32*)
7601 # When not using gcc, we currently assume that we are using
7602 # Microsoft Visual C++.
7603 # hardcode_libdir_flag_spec is actually meaningless, as there is
7604 # no search path for DLLs.
7605 hardcode_libdir_flag_spec=' '
7606 allow_undefined_flag=unsupported
7607 # Tell ltmain to make .lib files, not .a files.
7608 libext=lib
7609 # Tell ltmain to make .dll files, not .so files.
7610 shrext_cmds=".dll"
7611 # FIXME: Setting linknames here is a bad hack.
7612 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7613 # The linker will automatically build a .lib file if we build a DLL.
7614 old_archive_From_new_cmds='true'
7615 # FIXME: Should let the user specify the lib program.
7616 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7617 fix_srcfile_path='`cygpath -w "$srcfile"`'
7618 enable_shared_with_static_runtimes=yes
7619 ;;
7620
7621 darwin* | rhapsody*)
7622 case $host_os in
7623 rhapsody* | darwin1.[012])
7624 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7625 ;;
7626 *) # Darwin 1.3 on
7627 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7628 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7629 else
7630 case ${MACOSX_DEPLOYMENT_TARGET} in
7631 10.[012])
7632 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7633 ;;
7634 10.*)
7635 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7636 ;;
7637 esac
7638 fi
7639 ;;
7640 esac
7641 archive_cmds_need_lc=no
7642 hardcode_direct=no
7643 hardcode_automatic=yes
7644 hardcode_shlibpath_var=unsupported
7645 whole_archive_flag_spec=''
7646 link_all_deplibs=yes
7647 if test "$GCC" = yes ; then
7648 output_verbose_link_cmd='echo'
7649 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7650 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7652 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7653 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7654 else
7655 case $cc_basename in
7656 xlc*)
7657 output_verbose_link_cmd='echo'
7658 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7659 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7661 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7662 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7663 ;;
7664 *)
7665 ld_shlibs=no
7666 ;;
7667 esac
7668 fi
7669 ;;
7670
7671 dgux*)
7672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7673 hardcode_libdir_flag_spec='-L$libdir'
7674 hardcode_shlibpath_var=no
7675 ;;
7676
7677 freebsd1*)
7678 ld_shlibs=no
7679 ;;
7680
7681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7682 # support. Future versions do this automatically, but an explicit c++rt0.o
7683 # does not break anything, and helps significantly (at the cost of a little
7684 # extra space).
7685 freebsd2.2*)
7686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7687 hardcode_libdir_flag_spec='-R$libdir'
7688 hardcode_direct=yes
7689 hardcode_shlibpath_var=no
7690 ;;
7691
7692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7693 freebsd2*)
7694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7695 hardcode_direct=yes
7696 hardcode_minus_L=yes
7697 hardcode_shlibpath_var=no
7698 ;;
7699
7700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7701 freebsd* | kfreebsd*-gnu | dragonfly*)
7702 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7703 hardcode_libdir_flag_spec='-R$libdir'
7704 hardcode_direct=yes
7705 hardcode_shlibpath_var=no
7706 ;;
7707
7708 hpux9*)
7709 if test "$GCC" = yes; then
7710 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7711 else
7712 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7713 fi
7714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7715 hardcode_libdir_separator=:
7716 hardcode_direct=yes
7717
7718 # hardcode_minus_L: Not really in the search PATH,
7719 # but as the default location of the library.
7720 hardcode_minus_L=yes
7721 export_dynamic_flag_spec='${wl}-E'
7722 ;;
7723
7724 hpux10*)
7725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7726 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7727 else
7728 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7729 fi
7730 if test "$with_gnu_ld" = no; then
7731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7732 hardcode_libdir_separator=:
7733
7734 hardcode_direct=yes
7735 export_dynamic_flag_spec='${wl}-E'
7736
7737 # hardcode_minus_L: Not really in the search PATH,
7738 # but as the default location of the library.
7739 hardcode_minus_L=yes
7740 fi
7741 ;;
7742
7743 hpux11*)
7744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7745 case $host_cpu in
7746 hppa*64*)
7747 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7748 ;;
7749 ia64*)
7750 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7751 ;;
7752 *)
7753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7754 ;;
7755 esac
7756 else
7757 case $host_cpu in
7758 hppa*64*)
7759 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7760 ;;
7761 ia64*)
7762 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7763 ;;
7764 *)
7765 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7766 ;;
7767 esac
7768 fi
7769 if test "$with_gnu_ld" = no; then
7770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7771 hardcode_libdir_separator=:
7772
7773 case $host_cpu in
7774 hppa*64*|ia64*)
7775 hardcode_libdir_flag_spec_ld='+b $libdir'
7776 hardcode_direct=no
7777 hardcode_shlibpath_var=no
7778 ;;
7779 *)
7780 hardcode_direct=yes
7781 export_dynamic_flag_spec='${wl}-E'
7782
7783 # hardcode_minus_L: Not really in the search PATH,
7784 # but as the default location of the library.
7785 hardcode_minus_L=yes
7786 ;;
7787 esac
7788 fi
7789 ;;
7790
7791 irix5* | irix6* | nonstopux*)
7792 if test "$GCC" = yes; then
7793 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'
7794 else
7795 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'
7796 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7797 fi
7798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7799 hardcode_libdir_separator=:
7800 link_all_deplibs=yes
7801 ;;
7802
7803 netbsd*)
7804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7806 else
7807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7808 fi
7809 hardcode_libdir_flag_spec='-R$libdir'
7810 hardcode_direct=yes
7811 hardcode_shlibpath_var=no
7812 ;;
7813
7814 newsos6)
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_direct=yes
7817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7818 hardcode_libdir_separator=:
7819 hardcode_shlibpath_var=no
7820 ;;
7821
7822 openbsd*)
7823 hardcode_direct=yes
7824 hardcode_shlibpath_var=no
7825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7829 export_dynamic_flag_spec='${wl}-E'
7830 else
7831 case $host_os in
7832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_libdir_flag_spec='-R$libdir'
7835 ;;
7836 *)
7837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7839 ;;
7840 esac
7841 fi
7842 ;;
7843
7844 os2*)
7845 hardcode_libdir_flag_spec='-L$libdir'
7846 hardcode_minus_L=yes
7847 allow_undefined_flag=unsupported
7848 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7849 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7850 ;;
7851
7852 osf3*)
7853 if test "$GCC" = yes; then
7854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855 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'
7856 else
7857 allow_undefined_flag=' -expect_unresolved \*'
7858 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'
7859 fi
7860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7861 hardcode_libdir_separator=:
7862 ;;
7863
7864 osf4* | osf5*) # as osf3* with the addition of -msym flag
7865 if test "$GCC" = yes; then
7866 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7867 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'
7868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7869 else
7870 allow_undefined_flag=' -expect_unresolved \*'
7871 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'
7872 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7873 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7874
7875 # Both c and cxx compiler support -rpath directly
7876 hardcode_libdir_flag_spec='-rpath $libdir'
7877 fi
7878 hardcode_libdir_separator=:
7879 ;;
7880
7881 solaris*)
7882 no_undefined_flag=' -z text'
7883 if test "$GCC" = yes; then
7884 wlarc='${wl}'
7885 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7886 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7888 else
7889 wlarc=''
7890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7893 fi
7894 hardcode_libdir_flag_spec='-R$libdir'
7895 hardcode_shlibpath_var=no
7896 case $host_os in
7897 solaris2.[0-5] | solaris2.[0-5].*) ;;
7898 *)
7899 # The compiler driver will combine linker options so we
7900 # cannot just pass the convience library names through
7901 # without $wl, iff we do not link with $LD.
7902 # Luckily, gcc supports the same syntax we need for Sun Studio.
7903 # Supported since Solaris 2.6 (maybe 2.5.1?)
7904 case $wlarc in
7905 '')
7906 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7907 *)
7908 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7909 esac ;;
7910 esac
7911 link_all_deplibs=yes
7912 ;;
7913
7914 sunos4*)
7915 if test "x$host_vendor" = xsequent; then
7916 # Use $CC to link under sequent, because it throws in some extra .o
7917 # files that make .init and .fini sections work.
7918 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7919 else
7920 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7921 fi
7922 hardcode_libdir_flag_spec='-L$libdir'
7923 hardcode_direct=yes
7924 hardcode_minus_L=yes
7925 hardcode_shlibpath_var=no
7926 ;;
7927
7928 sysv4)
7929 case $host_vendor in
7930 sni)
7931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7932 hardcode_direct=yes # is this really true???
7933 ;;
7934 siemens)
7935 ## LD is ld it makes a PLAMLIB
7936 ## CC just makes a GrossModule.
7937 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7938 reload_cmds='$CC -r -o $output$reload_objs'
7939 hardcode_direct=no
7940 ;;
7941 motorola)
7942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7944 ;;
7945 esac
7946 runpath_var='LD_RUN_PATH'
7947 hardcode_shlibpath_var=no
7948 ;;
7949
7950 sysv4.3*)
7951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7952 hardcode_shlibpath_var=no
7953 export_dynamic_flag_spec='-Bexport'
7954 ;;
7955
7956 sysv4*MP*)
7957 if test -d /usr/nec; then
7958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_shlibpath_var=no
7960 runpath_var=LD_RUN_PATH
7961 hardcode_runpath_var=yes
7962 ld_shlibs=yes
7963 fi
7964 ;;
7965
7966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7967 no_undefined_flag='${wl}-z,text'
7968 archive_cmds_need_lc=no
7969 hardcode_shlibpath_var=no
7970 runpath_var='LD_RUN_PATH'
7971
7972 if test "$GCC" = yes; then
7973 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7974 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7975 else
7976 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7978 fi
7979 ;;
7980
7981 sysv5* | sco3.2v5* | sco5v6*)
7982 # Note: We can NOT use -z defs as we might desire, because we do not
7983 # link with -lc, and that would cause any symbols used from libc to
7984 # always be unresolved, which means just about no library would
7985 # ever link correctly. If we're not using GNU ld we use -z text
7986 # though, which does catch some bad symbols but isn't as heavy-handed
7987 # as -z defs.
7988 no_undefined_flag='${wl}-z,text'
7989 allow_undefined_flag='${wl}-z,nodefs'
7990 archive_cmds_need_lc=no
7991 hardcode_shlibpath_var=no
7992 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7993 hardcode_libdir_separator=':'
7994 link_all_deplibs=yes
7995 export_dynamic_flag_spec='${wl}-Bexport'
7996 runpath_var='LD_RUN_PATH'
7997
7998 if test "$GCC" = yes; then
7999 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8000 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8001 else
8002 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8004 fi
8005 ;;
8006
8007 uts4*)
8008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8009 hardcode_libdir_flag_spec='-L$libdir'
8010 hardcode_shlibpath_var=no
8011 ;;
8012
8013 *)
8014 ld_shlibs=no
8015 ;;
8016 esac
8017 fi
8018
8019 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8020 echo "${ECHO_T}$ld_shlibs" >&6
8021 test "$ld_shlibs" = no && can_build_shared=no
8022
8023 #
8024 # Do we need to explicitly link libc?
8025 #
8026 case "x$archive_cmds_need_lc" in
8027 x|xyes)
8028 # Assume -lc should be added
8029 archive_cmds_need_lc=yes
8030
8031 if test "$enable_shared" = yes && test "$GCC" = yes; then
8032 case $archive_cmds in
8033 *'~'*)
8034 # FIXME: we may have to deal with multi-command sequences.
8035 ;;
8036 '$CC '*)
8037 # Test whether the compiler implicitly links with -lc since on some
8038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8039 # to ld, don't add -lc before -lgcc.
8040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8042 $rm conftest*
8043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046 (eval $ac_compile) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } 2>conftest.err; then
8050 soname=conftest
8051 lib=conftest
8052 libobjs=conftest.$ac_objext
8053 deplibs=
8054 wl=$lt_prog_compiler_wl
8055 pic_flag=$lt_prog_compiler_pic
8056 compiler_flags=-v
8057 linker_flags=-v
8058 verstring=
8059 output_objdir=.
8060 libname=conftest
8061 lt_save_allow_undefined_flag=$allow_undefined_flag
8062 allow_undefined_flag=
8063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8064 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }
8068 then
8069 archive_cmds_need_lc=no
8070 else
8071 archive_cmds_need_lc=yes
8072 fi
8073 allow_undefined_flag=$lt_save_allow_undefined_flag
8074 else
8075 cat conftest.err 1>&5
8076 fi
8077 $rm conftest*
8078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8079 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8080 ;;
8081 esac
8082 fi
8083 ;;
8084 esac
8085
8086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8088 library_names_spec=
8089 libname_spec='lib$name'
8090 soname_spec=
8091 shrext_cmds=".so"
8092 postinstall_cmds=
8093 postuninstall_cmds=
8094 finish_cmds=
8095 finish_eval=
8096 shlibpath_var=
8097 shlibpath_overrides_runpath=unknown
8098 version_type=none
8099 dynamic_linker="$host_os ld.so"
8100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8101 if test "$GCC" = yes; then
8102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8103 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8104 # if the path contains ";" then we assume it to be the separator
8105 # otherwise default to the standard path separator (i.e. ":") - it is
8106 # assumed that no part of a normal pathname contains ";" but that should
8107 # okay in the real world where ";" in dirpaths is itself problematic.
8108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8109 else
8110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8111 fi
8112 else
8113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8114 fi
8115 need_lib_prefix=unknown
8116 hardcode_into_libs=no
8117
8118 # when you set need_version to no, make sure it does not cause -set_version
8119 # flags to be left without arguments
8120 need_version=unknown
8121
8122 case $host_os in
8123 aix3*)
8124 version_type=linux
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8126 shlibpath_var=LIBPATH
8127
8128 # AIX 3 has no versioning support, so we append a major version to the name.
8129 soname_spec='${libname}${release}${shared_ext}$major'
8130 ;;
8131
8132 aix4* | aix5*)
8133 version_type=linux
8134 need_lib_prefix=no
8135 need_version=no
8136 hardcode_into_libs=yes
8137 if test "$host_cpu" = ia64; then
8138 # AIX 5 supports IA64
8139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8140 shlibpath_var=LD_LIBRARY_PATH
8141 else
8142 # With GCC up to 2.95.x, collect2 would create an import file
8143 # for dependence libraries. The import file would start with
8144 # the line `#! .'. This would cause the generated library to
8145 # depend on `.', always an invalid library. This was fixed in
8146 # development snapshots of GCC prior to 3.0.
8147 case $host_os in
8148 aix4 | aix4.[01] | aix4.[01].*)
8149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8150 echo ' yes '
8151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8152 :
8153 else
8154 can_build_shared=no
8155 fi
8156 ;;
8157 esac
8158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8159 # soname into executable. Probably we can add versioning support to
8160 # collect2, so additional links can be useful in future.
8161 if test "$aix_use_runtimelinking" = yes; then
8162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8163 # instead of lib<name>.a to let people know that these are not
8164 # typical AIX shared libraries.
8165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8166 else
8167 # We preserve .a as extension for shared libraries through AIX4.2
8168 # and later when we are not doing run time linking.
8169 library_names_spec='${libname}${release}.a $libname.a'
8170 soname_spec='${libname}${release}${shared_ext}$major'
8171 fi
8172 shlibpath_var=LIBPATH
8173 fi
8174 ;;
8175
8176 amigaos*)
8177 library_names_spec='$libname.ixlibrary $libname.a'
8178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8179 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'
8180 ;;
8181
8182 beos*)
8183 library_names_spec='${libname}${shared_ext}'
8184 dynamic_linker="$host_os ld.so"
8185 shlibpath_var=LIBRARY_PATH
8186 ;;
8187
8188 bsdi[45]*)
8189 version_type=linux
8190 need_version=no
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192 soname_spec='${libname}${release}${shared_ext}$major'
8193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8194 shlibpath_var=LD_LIBRARY_PATH
8195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8197 # the default ld.so.conf also contains /usr/contrib/lib and
8198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8199 # libtool to hard-code these into programs
8200 ;;
8201
8202 cygwin* | mingw* | pw32*)
8203 version_type=windows
8204 shrext_cmds=".dll"
8205 need_version=no
8206 need_lib_prefix=no
8207
8208 case $GCC,$host_os in
8209 yes,cygwin* | yes,mingw* | yes,pw32*)
8210 library_names_spec='$libname.dll.a'
8211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8212 postinstall_cmds='base_file=`basename \${file}`~
8213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8214 dldir=$destdir/`dirname \$dlpath`~
8215 test -d \$dldir || mkdir -p \$dldir~
8216 $install_prog $dir/$dlname \$dldir/$dlname~
8217 chmod a+x \$dldir/$dlname'
8218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8219 dlpath=$dir/\$dldll~
8220 $rm \$dlpath'
8221 shlibpath_overrides_runpath=yes
8222
8223 case $host_os in
8224 cygwin*)
8225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8228 ;;
8229 mingw*)
8230 # MinGW DLLs use traditional 'lib' prefix
8231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8234 # It is most probably a Windows format PATH printed by
8235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8236 # path with ; separators, and with drive letters. We can handle the
8237 # drive letters (cygwin fileutils understands them), so leave them,
8238 # especially as we might pass files found there to a mingw objdump,
8239 # which wouldn't understand a cygwinified path. Ahh.
8240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8241 else
8242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8243 fi
8244 ;;
8245 pw32*)
8246 # pw32 DLLs use 'pw' prefix rather than 'lib'
8247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8248 ;;
8249 esac
8250 ;;
8251
8252 *)
8253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8254 ;;
8255 esac
8256 dynamic_linker='Win32 ld.exe'
8257 # FIXME: first we should search . and the directory the executable is in
8258 shlibpath_var=PATH
8259 ;;
8260
8261 darwin* | rhapsody*)
8262 dynamic_linker="$host_os dyld"
8263 version_type=darwin
8264 need_lib_prefix=no
8265 need_version=no
8266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8267 soname_spec='${libname}${release}${major}$shared_ext'
8268 shlibpath_overrides_runpath=yes
8269 shlibpath_var=DYLD_LIBRARY_PATH
8270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8272 if test "$GCC" = yes; then
8273 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"`
8274 else
8275 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8276 fi
8277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8278 ;;
8279
8280 dgux*)
8281 version_type=linux
8282 need_lib_prefix=no
8283 need_version=no
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 shlibpath_var=LD_LIBRARY_PATH
8287 ;;
8288
8289 freebsd1*)
8290 dynamic_linker=no
8291 ;;
8292
8293 kfreebsd*-gnu)
8294 version_type=linux
8295 need_lib_prefix=no
8296 need_version=no
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=no
8301 hardcode_into_libs=yes
8302 dynamic_linker='GNU ld.so'
8303 ;;
8304
8305 freebsd* | dragonfly*)
8306 # DragonFly does not have aout. When/if they implement a new
8307 # versioning mechanism, adjust this.
8308 if test -x /usr/bin/objformat; then
8309 objformat=`/usr/bin/objformat`
8310 else
8311 case $host_os in
8312 freebsd[123]*) objformat=aout ;;
8313 *) objformat=elf ;;
8314 esac
8315 fi
8316 version_type=freebsd-$objformat
8317 case $version_type in
8318 freebsd-elf*)
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8320 need_version=no
8321 need_lib_prefix=no
8322 ;;
8323 freebsd-*)
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8325 need_version=yes
8326 ;;
8327 esac
8328 shlibpath_var=LD_LIBRARY_PATH
8329 case $host_os in
8330 freebsd2*)
8331 shlibpath_overrides_runpath=yes
8332 ;;
8333 freebsd3.[01]* | freebsdelf3.[01]*)
8334 shlibpath_overrides_runpath=yes
8335 hardcode_into_libs=yes
8336 ;;
8337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8339 shlibpath_overrides_runpath=no
8340 hardcode_into_libs=yes
8341 ;;
8342 freebsd*) # from 4.6 on
8343 shlibpath_overrides_runpath=yes
8344 hardcode_into_libs=yes
8345 ;;
8346 esac
8347 ;;
8348
8349 gnu*)
8350 version_type=linux
8351 need_lib_prefix=no
8352 need_version=no
8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8354 soname_spec='${libname}${release}${shared_ext}$major'
8355 shlibpath_var=LD_LIBRARY_PATH
8356 hardcode_into_libs=yes
8357 ;;
8358
8359 hpux9* | hpux10* | hpux11*)
8360 # Give a soname corresponding to the major version so that dld.sl refuses to
8361 # link against other versions.
8362 version_type=sunos
8363 need_lib_prefix=no
8364 need_version=no
8365 case $host_cpu in
8366 ia64*)
8367 shrext_cmds='.so'
8368 hardcode_into_libs=yes
8369 dynamic_linker="$host_os dld.so"
8370 shlibpath_var=LD_LIBRARY_PATH
8371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373 soname_spec='${libname}${release}${shared_ext}$major'
8374 if test "X$HPUX_IA64_MODE" = X32; then
8375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8376 else
8377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8378 fi
8379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8380 ;;
8381 hppa*64*)
8382 shrext_cmds='.sl'
8383 hardcode_into_libs=yes
8384 dynamic_linker="$host_os dld.sl"
8385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8391 ;;
8392 *)
8393 shrext_cmds='.sl'
8394 dynamic_linker="$host_os dld.sl"
8395 shlibpath_var=SHLIB_PATH
8396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398 soname_spec='${libname}${release}${shared_ext}$major'
8399 ;;
8400 esac
8401 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8402 postinstall_cmds='chmod 555 $lib'
8403 ;;
8404
8405 interix3*)
8406 version_type=linux
8407 need_lib_prefix=no
8408 need_version=no
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8410 soname_spec='${libname}${release}${shared_ext}$major'
8411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath=no
8414 hardcode_into_libs=yes
8415 ;;
8416
8417 irix5* | irix6* | nonstopux*)
8418 case $host_os in
8419 nonstopux*) version_type=nonstopux ;;
8420 *)
8421 if test "$lt_cv_prog_gnu_ld" = yes; then
8422 version_type=linux
8423 else
8424 version_type=irix
8425 fi ;;
8426 esac
8427 need_lib_prefix=no
8428 need_version=no
8429 soname_spec='${libname}${release}${shared_ext}$major'
8430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8431 case $host_os in
8432 irix5* | nonstopux*)
8433 libsuff= shlibsuff=
8434 ;;
8435 *)
8436 case $LD in # libtool.m4 will add one of these switches to LD
8437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8438 libsuff= shlibsuff= libmagic=32-bit;;
8439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8440 libsuff=32 shlibsuff=N32 libmagic=N32;;
8441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8443 *) libsuff= shlibsuff= libmagic=never-match;;
8444 esac
8445 ;;
8446 esac
8447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8448 shlibpath_overrides_runpath=no
8449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8451 hardcode_into_libs=yes
8452 ;;
8453
8454 # No shared lib support for Linux oldld, aout, or coff.
8455 linux*oldld* | linux*aout* | linux*coff*)
8456 dynamic_linker=no
8457 ;;
8458
8459 # This must be Linux ELF.
8460 linux*)
8461 version_type=linux
8462 need_lib_prefix=no
8463 need_version=no
8464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465 soname_spec='${libname}${release}${shared_ext}$major'
8466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath=no
8469 # This implies no fast_install, which is unacceptable.
8470 # Some rework will be needed to allow for fast_install
8471 # before this can be enabled.
8472 hardcode_into_libs=yes
8473
8474 # find out which ABI we are using
8475 libsuff=
8476 case "$host_cpu" in
8477 x86_64*|s390x*|powerpc64*)
8478 echo '#line 8478 "configure"' > conftest.$ac_ext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; then
8484 case `/usr/bin/file conftest.$ac_objext` in
8485 *64-bit*)
8486 libsuff=64
8487 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8488 ;;
8489 esac
8490 fi
8491 rm -rf conftest*
8492 ;;
8493 esac
8494
8495 # Append ld.so.conf contents to the search path
8496 if test -f /etc/ld.so.conf; then
8497 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8498 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8499 fi
8500
8501 # We used to test for /lib/ld.so.1 and disable shared libraries on
8502 # powerpc, because MkLinux only supported shared libraries with the
8503 # GNU dynamic linker. Since this was broken with cross compilers,
8504 # most powerpc-linux boxes support dynamic linking these days and
8505 # people can always --disable-shared, the test was removed, and we
8506 # assume the GNU/Linux dynamic linker is in use.
8507 dynamic_linker='GNU/Linux ld.so'
8508 ;;
8509
8510 knetbsd*-gnu)
8511 version_type=linux
8512 need_lib_prefix=no
8513 need_version=no
8514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8515 soname_spec='${libname}${release}${shared_ext}$major'
8516 shlibpath_var=LD_LIBRARY_PATH
8517 shlibpath_overrides_runpath=no
8518 hardcode_into_libs=yes
8519 dynamic_linker='GNU ld.so'
8520 ;;
8521
8522 netbsd*)
8523 version_type=sunos
8524 need_lib_prefix=no
8525 need_version=no
8526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8529 dynamic_linker='NetBSD (a.out) ld.so'
8530 else
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8532 soname_spec='${libname}${release}${shared_ext}$major'
8533 dynamic_linker='NetBSD ld.elf_so'
8534 fi
8535 shlibpath_var=LD_LIBRARY_PATH
8536 shlibpath_overrides_runpath=yes
8537 hardcode_into_libs=yes
8538 ;;
8539
8540 newsos6)
8541 version_type=linux
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543 shlibpath_var=LD_LIBRARY_PATH
8544 shlibpath_overrides_runpath=yes
8545 ;;
8546
8547 nto-qnx*)
8548 version_type=linux
8549 need_lib_prefix=no
8550 need_version=no
8551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552 soname_spec='${libname}${release}${shared_ext}$major'
8553 shlibpath_var=LD_LIBRARY_PATH
8554 shlibpath_overrides_runpath=yes
8555 ;;
8556
8557 openbsd*)
8558 version_type=sunos
8559 sys_lib_dlsearch_path_spec="/usr/lib"
8560 need_lib_prefix=no
8561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8562 case $host_os in
8563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8564 *) need_version=no ;;
8565 esac
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8570 case $host_os in
8571 openbsd2.[89] | openbsd2.[89].*)
8572 shlibpath_overrides_runpath=no
8573 ;;
8574 *)
8575 shlibpath_overrides_runpath=yes
8576 ;;
8577 esac
8578 else
8579 shlibpath_overrides_runpath=yes
8580 fi
8581 ;;
8582
8583 os2*)
8584 libname_spec='$name'
8585 shrext_cmds=".dll"
8586 need_lib_prefix=no
8587 library_names_spec='$libname${shared_ext} $libname.a'
8588 dynamic_linker='OS/2 ld.exe'
8589 shlibpath_var=LIBPATH
8590 ;;
8591
8592 osf3* | osf4* | osf5*)
8593 version_type=osf
8594 need_lib_prefix=no
8595 need_version=no
8596 soname_spec='${libname}${release}${shared_ext}$major'
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8598 shlibpath_var=LD_LIBRARY_PATH
8599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8601 ;;
8602
8603 solaris*)
8604 version_type=linux
8605 need_lib_prefix=no
8606 need_version=no
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 shlibpath_var=LD_LIBRARY_PATH
8610 shlibpath_overrides_runpath=yes
8611 hardcode_into_libs=yes
8612 # ldd complains unless libraries are executable
8613 postinstall_cmds='chmod +x $lib'
8614 ;;
8615
8616 sunos4*)
8617 version_type=sunos
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8620 shlibpath_var=LD_LIBRARY_PATH
8621 shlibpath_overrides_runpath=yes
8622 if test "$with_gnu_ld" = yes; then
8623 need_lib_prefix=no
8624 fi
8625 need_version=yes
8626 ;;
8627
8628 sysv4 | sysv4.3*)
8629 version_type=linux
8630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8631 soname_spec='${libname}${release}${shared_ext}$major'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 case $host_vendor in
8634 sni)
8635 shlibpath_overrides_runpath=no
8636 need_lib_prefix=no
8637 export_dynamic_flag_spec='${wl}-Blargedynsym'
8638 runpath_var=LD_RUN_PATH
8639 ;;
8640 siemens)
8641 need_lib_prefix=no
8642 ;;
8643 motorola)
8644 need_lib_prefix=no
8645 need_version=no
8646 shlibpath_overrides_runpath=no
8647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8648 ;;
8649 esac
8650 ;;
8651
8652 sysv4*MP*)
8653 if test -d /usr/nec ;then
8654 version_type=linux
8655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8656 soname_spec='$libname${shared_ext}.$major'
8657 shlibpath_var=LD_LIBRARY_PATH
8658 fi
8659 ;;
8660
8661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8662 version_type=freebsd-elf
8663 need_lib_prefix=no
8664 need_version=no
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 shlibpath_var=LD_LIBRARY_PATH
8668 hardcode_into_libs=yes
8669 if test "$with_gnu_ld" = yes; then
8670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8671 shlibpath_overrides_runpath=no
8672 else
8673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8674 shlibpath_overrides_runpath=yes
8675 case $host_os in
8676 sco3.2v5*)
8677 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8678 ;;
8679 esac
8680 fi
8681 sys_lib_dlsearch_path_spec='/usr/lib'
8682 ;;
8683
8684 uts4*)
8685 version_type=linux
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 shlibpath_var=LD_LIBRARY_PATH
8689 ;;
8690
8691 *)
8692 dynamic_linker=no
8693 ;;
8694 esac
8695 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8696 echo "${ECHO_T}$dynamic_linker" >&6
8697 test "$dynamic_linker" = no && can_build_shared=no
8698
8699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8700 if test "$GCC" = yes; then
8701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8702 fi
8703
8704 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8705 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8706 hardcode_action=
8707 if test -n "$hardcode_libdir_flag_spec" || \
8708 test -n "$runpath_var" || \
8709 test "X$hardcode_automatic" = "Xyes" ; then
8710
8711 # We can hardcode non-existant directories.
8712 if test "$hardcode_direct" != no &&
8713 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8714 # have to relink, otherwise we might link with an installed library
8715 # when we should be linking with a yet-to-be-installed one
8716 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8717 test "$hardcode_minus_L" != no; then
8718 # Linking always hardcodes the temporary library directory.
8719 hardcode_action=relink
8720 else
8721 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8722 hardcode_action=immediate
8723 fi
8724 else
8725 # We cannot hardcode anything, or else we can only hardcode existing
8726 # directories.
8727 hardcode_action=unsupported
8728 fi
8729 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8730 echo "${ECHO_T}$hardcode_action" >&6
8731
8732 if test "$hardcode_action" = relink; then
8733 # Fast installation is not supported
8734 enable_fast_install=no
8735 elif test "$shlibpath_overrides_runpath" = yes ||
8736 test "$enable_shared" = no; then
8737 # Fast installation is not necessary
8738 enable_fast_install=needless
8739 fi
8740
8741 striplib=
8742 old_striplib=
8743 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8744 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8745 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8746 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8747 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8748 echo "$as_me:$LINENO: result: yes" >&5
8749 echo "${ECHO_T}yes" >&6
8750 else
8751 # FIXME - insert some real tests, host_os isn't really good enough
8752 case $host_os in
8753 darwin*)
8754 if test -n "$STRIP" ; then
8755 striplib="$STRIP -x"
8756 echo "$as_me:$LINENO: result: yes" >&5
8757 echo "${ECHO_T}yes" >&6
8758 else
8759 echo "$as_me:$LINENO: result: no" >&5
8760 echo "${ECHO_T}no" >&6
8761 fi
8762 ;;
8763 *)
8764 echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6
8766 ;;
8767 esac
8768 fi
8769
8770 if test "x$enable_dlopen" != xyes; then
8771 enable_dlopen=unknown
8772 enable_dlopen_self=unknown
8773 enable_dlopen_self_static=unknown
8774 else
8775 lt_cv_dlopen=no
8776 lt_cv_dlopen_libs=
8777
8778 case $host_os in
8779 beos*)
8780 lt_cv_dlopen="load_add_on"
8781 lt_cv_dlopen_libs=
8782 lt_cv_dlopen_self=yes
8783 ;;
8784
8785 mingw* | pw32*)
8786 lt_cv_dlopen="LoadLibrary"
8787 lt_cv_dlopen_libs=
8788 ;;
8789
8790 cygwin*)
8791 lt_cv_dlopen="dlopen"
8792 lt_cv_dlopen_libs=
8793 ;;
8794
8795 darwin*)
8796 # if libdl is installed we need to link against it
8797 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8798 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 ac_check_lib_save_LIBS=$LIBS
8803 LIBS="-ldl $LIBS"
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h. */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810
8811 /* Override any gcc2 internal prototype to avoid an error. */
8812 #ifdef __cplusplus
8813 extern "C"
8814 #endif
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8817 char dlopen ();
8818 int
8819 main ()
8820 {
8821 dlopen ();
8822 ;
8823 return 0;
8824 }
8825 _ACEOF
8826 rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828 (eval $ac_link) 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try='test -s conftest$ac_exeext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_cv_lib_dl_dlopen=yes
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_cv_lib_dl_dlopen=no
8854 fi
8855 rm -f conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 LIBS=$ac_check_lib_save_LIBS
8858 fi
8859 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8861 if test $ac_cv_lib_dl_dlopen = yes; then
8862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8863 else
8864
8865 lt_cv_dlopen="dyld"
8866 lt_cv_dlopen_libs=
8867 lt_cv_dlopen_self=yes
8868
8869 fi
8870
8871 ;;
8872
8873 *)
8874 echo "$as_me:$LINENO: checking for shl_load" >&5
8875 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8876 if test "${ac_cv_func_shl_load+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 else
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8887 #define shl_load innocuous_shl_load
8888
8889 /* System header to define __stub macros and hopefully few prototypes,
8890 which can conflict with char shl_load (); below.
8891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892 <limits.h> exists even on freestanding compilers. */
8893
8894 #ifdef __STDC__
8895 # include <limits.h>
8896 #else
8897 # include <assert.h>
8898 #endif
8899
8900 #undef shl_load
8901
8902 /* Override any gcc2 internal prototype to avoid an error. */
8903 #ifdef __cplusplus
8904 extern "C"
8905 {
8906 #endif
8907 /* We use char because int might match the return type of a gcc2
8908 builtin and then its argument prototype would still apply. */
8909 char shl_load ();
8910 /* The GNU C library defines this for functions which it implements
8911 to always fail with ENOSYS. Some functions are actually named
8912 something starting with __ and the normal name is an alias. */
8913 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8914 choke me
8915 #else
8916 char (*f) () = shl_load;
8917 #endif
8918 #ifdef __cplusplus
8919 }
8920 #endif
8921
8922 int
8923 main ()
8924 {
8925 return f != shl_load;
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932 (eval $ac_link) 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -z "$ac_c_werror_flag"
8940 || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_func_shl_load=yes
8953 else
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957 ac_cv_func_shl_load=no
8958 fi
8959 rm -f conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 fi
8962 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8963 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8964 if test $ac_cv_func_shl_load = yes; then
8965 lt_cv_dlopen="shl_load"
8966 else
8967 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8968 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972 ac_check_lib_save_LIBS=$LIBS
8973 LIBS="-ldld $LIBS"
8974 cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h. */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980
8981 /* Override any gcc2 internal prototype to avoid an error. */
8982 #ifdef __cplusplus
8983 extern "C"
8984 #endif
8985 /* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8987 char shl_load ();
8988 int
8989 main ()
8990 {
8991 shl_load ();
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 ac_cv_lib_dld_shl_load=yes
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 ac_cv_lib_dld_shl_load=no
9024 fi
9025 rm -f conftest.err conftest.$ac_objext \
9026 conftest$ac_exeext conftest.$ac_ext
9027 LIBS=$ac_check_lib_save_LIBS
9028 fi
9029 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9030 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9031 if test $ac_cv_lib_dld_shl_load = yes; then
9032 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9033 else
9034 echo "$as_me:$LINENO: checking for dlopen" >&5
9035 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9036 if test "${ac_cv_func_dlopen+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039 cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9047 #define dlopen innocuous_dlopen
9048
9049 /* System header to define __stub macros and hopefully few prototypes,
9050 which can conflict with char dlopen (); below.
9051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9052 <limits.h> exists even on freestanding compilers. */
9053
9054 #ifdef __STDC__
9055 # include <limits.h>
9056 #else
9057 # include <assert.h>
9058 #endif
9059
9060 #undef dlopen
9061
9062 /* Override any gcc2 internal prototype to avoid an error. */
9063 #ifdef __cplusplus
9064 extern "C"
9065 {
9066 #endif
9067 /* We use char because int might match the return type of a gcc2
9068 builtin and then its argument prototype would still apply. */
9069 char dlopen ();
9070 /* The GNU C library defines this for functions which it implements
9071 to always fail with ENOSYS. Some functions are actually named
9072 something starting with __ and the normal name is an alias. */
9073 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9074 choke me
9075 #else
9076 char (*f) () = dlopen;
9077 #endif
9078 #ifdef __cplusplus
9079 }
9080 #endif
9081
9082 int
9083 main ()
9084 {
9085 return f != dlopen;
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag"
9100 || test ! -s conftest.err'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 (eval $ac_try) 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest$ac_exeext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_cv_func_dlopen=yes
9113 else
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ac_cv_func_dlopen=no
9118 fi
9119 rm -f conftest.err conftest.$ac_objext \
9120 conftest$ac_exeext conftest.$ac_ext
9121 fi
9122 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9123 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9124 if test $ac_cv_func_dlopen = yes; then
9125 lt_cv_dlopen="dlopen"
9126 else
9127 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9128 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9129 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132 ac_check_lib_save_LIBS=$LIBS
9133 LIBS="-ldl $LIBS"
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140
9141 /* Override any gcc2 internal prototype to avoid an error. */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9147 char dlopen ();
9148 int
9149 main ()
9150 {
9151 dlopen ();
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_lib_dl_dlopen=yes
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_cv_lib_dl_dlopen=no
9184 fi
9185 rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 LIBS=$ac_check_lib_save_LIBS
9188 fi
9189 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9190 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9191 if test $ac_cv_lib_dl_dlopen = yes; then
9192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9193 else
9194 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9195 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9196 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 ac_check_lib_save_LIBS=$LIBS
9200 LIBS="-lsvld $LIBS"
9201 cat >conftest.$ac_ext <<_ACEOF
9202 /* confdefs.h. */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207
9208 /* Override any gcc2 internal prototype to avoid an error. */
9209 #ifdef __cplusplus
9210 extern "C"
9211 #endif
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9214 char dlopen ();
9215 int
9216 main ()
9217 {
9218 dlopen ();
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 rm -f conftest.$ac_objext conftest$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_lib_svld_dlopen=yes
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250 ac_cv_lib_svld_dlopen=no
9251 fi
9252 rm -f conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9255 fi
9256 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9257 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9258 if test $ac_cv_lib_svld_dlopen = yes; then
9259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9260 else
9261 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9262 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9263 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-ldld $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h. */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274
9275 /* Override any gcc2 internal prototype to avoid an error. */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9281 char dld_link ();
9282 int
9283 main ()
9284 {
9285 dld_link ();
9286 ;
9287 return 0;
9288 }
9289 _ACEOF
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -z "$ac_c_werror_flag"
9300 || test ! -s conftest.err'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; } &&
9306 { ac_try='test -s conftest$ac_exeext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_lib_dld_dld_link=yes
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317 ac_cv_lib_dld_dld_link=no
9318 fi
9319 rm -f conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9322 fi
9323 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9324 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9325 if test $ac_cv_lib_dld_dld_link = yes; then
9326 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9327 fi
9328
9329
9330 fi
9331
9332
9333 fi
9334
9335
9336 fi
9337
9338
9339 fi
9340
9341
9342 fi
9343
9344 ;;
9345 esac
9346
9347 if test "x$lt_cv_dlopen" != xno; then
9348 enable_dlopen=yes
9349 else
9350 enable_dlopen=no
9351 fi
9352
9353 case $lt_cv_dlopen in
9354 dlopen)
9355 save_CPPFLAGS="$CPPFLAGS"
9356 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9357
9358 save_LDFLAGS="$LDFLAGS"
9359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9360
9361 save_LIBS="$LIBS"
9362 LIBS="$lt_cv_dlopen_libs $LIBS"
9363
9364 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9365 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9366 if test "${lt_cv_dlopen_self+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369 if test "$cross_compiling" = yes; then :
9370 lt_cv_dlopen_self=cross
9371 else
9372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9373 lt_status=$lt_dlunknown
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9375 "configure"
9376 #include "confdefs.h"
9377
9378 #if HAVE_DLFCN_H
9379 #include <dlfcn.h>
9380 #endif
9381
9382 #include <stdio.h>
9383
9384 #ifdef RTLD_GLOBAL
9385 # define LT_DLGLOBAL RTLD_GLOBAL
9386 #else
9387 # ifdef DL_GLOBAL
9388 # define LT_DLGLOBAL DL_GLOBAL
9389 # else
9390 # define LT_DLGLOBAL 0
9391 # endif
9392 #endif
9393
9394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9395 find out it does not work in some platform. */
9396 #ifndef LT_DLLAZY_OR_NOW
9397 # ifdef RTLD_LAZY
9398 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9399 # else
9400 # ifdef DL_LAZY
9401 # define LT_DLLAZY_OR_NOW DL_LAZY
9402 # else
9403 # ifdef RTLD_NOW
9404 # define LT_DLLAZY_OR_NOW RTLD_NOW
9405 # else
9406 # ifdef DL_NOW
9407 # define LT_DLLAZY_OR_NOW DL_NOW
9408 # else
9409 # define LT_DLLAZY_OR_NOW 0
9410 # endif
9411 # endif
9412 # endif
9413 # endif
9414 #endif
9415
9416 #ifdef __cplusplus
9417 extern "C" void exit (int);
9418 #endif
9419
9420 void fnord() { int i=42;}
9421 int main ()
9422 {
9423 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9424 int status = $lt_dlunknown;
9425
9426 if (self)
9427 {
9428 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9429 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9430 /* dlclose (self); */
9431 }
9432 else
9433 puts (dlerror ());
9434
9435 exit (status);
9436 }
9437 EOF
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9443 (./conftest; exit; ) >&5 2>/dev/null
9444 lt_status=$?
9445 case x$lt_status in
9446 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9447 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9448 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9449 esac
9450 else :
9451 # compilation failed
9452 lt_cv_dlopen_self=no
9453 fi
9454 fi
9455 rm -fr conftest*
9456
9457
9458 fi
9459 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9460 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9461
9462 if test "x$lt_cv_dlopen_self" = xyes; then
9463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9464 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9465 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9466 if test "${lt_cv_dlopen_self_static+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 if test "$cross_compiling" = yes; then :
9470 lt_cv_dlopen_self_static=cross
9471 else
9472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9473 lt_status=$lt_dlunknown
9474 cat > conftest.$ac_ext <<EOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9477
9478 #if HAVE_DLFCN_H
9479 #include <dlfcn.h>
9480 #endif
9481
9482 #include <stdio.h>
9483
9484 #ifdef RTLD_GLOBAL
9485 # define LT_DLGLOBAL RTLD_GLOBAL
9486 #else
9487 # ifdef DL_GLOBAL
9488 # define LT_DLGLOBAL DL_GLOBAL
9489 # else
9490 # define LT_DLGLOBAL 0
9491 # endif
9492 #endif
9493
9494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9495 find out it does not work in some platform. */
9496 #ifndef LT_DLLAZY_OR_NOW
9497 # ifdef RTLD_LAZY
9498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9499 # else
9500 # ifdef DL_LAZY
9501 # define LT_DLLAZY_OR_NOW DL_LAZY
9502 # else
9503 # ifdef RTLD_NOW
9504 # define LT_DLLAZY_OR_NOW RTLD_NOW
9505 # else
9506 # ifdef DL_NOW
9507 # define LT_DLLAZY_OR_NOW DL_NOW
9508 # else
9509 # define LT_DLLAZY_OR_NOW 0
9510 # endif
9511 # endif
9512 # endif
9513 # endif
9514 #endif
9515
9516 #ifdef __cplusplus
9517 extern "C" void exit (int);
9518 #endif
9519
9520 void fnord() { int i=42;}
9521 int main ()
9522 {
9523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9524 int status = $lt_dlunknown;
9525
9526 if (self)
9527 {
9528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9530 /* dlclose (self); */
9531 }
9532 else
9533 puts (dlerror ());
9534
9535 exit (status);
9536 }
9537 EOF
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9543 (./conftest; exit; ) >&5 2>/dev/null
9544 lt_status=$?
9545 case x$lt_status in
9546 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9547 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9548 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9549 esac
9550 else :
9551 # compilation failed
9552 lt_cv_dlopen_self_static=no
9553 fi
9554 fi
9555 rm -fr conftest*
9556
9557
9558 fi
9559 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9560 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9561 fi
9562
9563 CPPFLAGS="$save_CPPFLAGS"
9564 LDFLAGS="$save_LDFLAGS"
9565 LIBS="$save_LIBS"
9566 ;;
9567 esac
9568
9569 case $lt_cv_dlopen_self in
9570 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9571 *) enable_dlopen_self=unknown ;;
9572 esac
9573
9574 case $lt_cv_dlopen_self_static in
9575 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9576 *) enable_dlopen_self_static=unknown ;;
9577 esac
9578 fi
9579
9580
9581 # Report which library types will actually be built
9582 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9583 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9584 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9585 echo "${ECHO_T}$can_build_shared" >&6
9586
9587 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9588 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9589 test "$can_build_shared" = "no" && enable_shared=no
9590
9591 # On AIX, shared libraries and static libraries use the same namespace, and
9592 # are all built from PIC.
9593 case $host_os in
9594 aix3*)
9595 test "$enable_shared" = yes && enable_static=no
9596 if test -n "$RANLIB"; then
9597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9598 postinstall_cmds='$RANLIB $lib'
9599 fi
9600 ;;
9601
9602 aix4* | aix5*)
9603 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9604 test "$enable_shared" = yes && enable_static=no
9605 fi
9606 ;;
9607 esac
9608 echo "$as_me:$LINENO: result: $enable_shared" >&5
9609 echo "${ECHO_T}$enable_shared" >&6
9610
9611 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9612 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9613 # Make sure either enable_shared or enable_static is yes.
9614 test "$enable_shared" = yes || enable_static=yes
9615 echo "$as_me:$LINENO: result: $enable_static" >&5
9616 echo "${ECHO_T}$enable_static" >&6
9617
9618 # The else clause should only fire when bootstrapping the
9619 # libtool distribution, otherwise you forgot to ship ltmain.sh
9620 # with your package, and you will get complaints that there are
9621 # no rules to generate ltmain.sh.
9622 if test -f "$ltmain"; then
9623 # See if we are running on zsh, and set the options which allow our commands through
9624 # without removal of \ escapes.
9625 if test -n "${ZSH_VERSION+set}" ; then
9626 setopt NO_GLOB_SUBST
9627 fi
9628 # Now quote all the things that may contain metacharacters while being
9629 # careful not to overquote the AC_SUBSTed values. We take copies of the
9630 # variables and quote the copies for generation of the libtool script.
9631 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9632 SED SHELL STRIP \
9633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9635 deplibs_check_method reload_flag reload_cmds need_locks \
9636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9637 lt_cv_sys_global_symbol_to_c_name_address \
9638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9639 old_postinstall_cmds old_postuninstall_cmds \
9640 compiler \
9641 CC \
9642 LD \
9643 lt_prog_compiler_wl \
9644 lt_prog_compiler_pic \
9645 lt_prog_compiler_static \
9646 lt_prog_compiler_no_builtin_flag \
9647 export_dynamic_flag_spec \
9648 thread_safe_flag_spec \
9649 whole_archive_flag_spec \
9650 enable_shared_with_static_runtimes \
9651 old_archive_cmds \
9652 old_archive_from_new_cmds \
9653 predep_objects \
9654 postdep_objects \
9655 predeps \
9656 postdeps \
9657 compiler_lib_search_path \
9658 archive_cmds \
9659 archive_expsym_cmds \
9660 postinstall_cmds \
9661 postuninstall_cmds \
9662 old_archive_from_expsyms_cmds \
9663 allow_undefined_flag \
9664 no_undefined_flag \
9665 export_symbols_cmds \
9666 hardcode_libdir_flag_spec \
9667 hardcode_libdir_flag_spec_ld \
9668 hardcode_libdir_separator \
9669 hardcode_automatic \
9670 module_cmds \
9671 module_expsym_cmds \
9672 lt_cv_prog_compiler_c_o \
9673 exclude_expsyms \
9674 include_expsyms; do
9675
9676 case $var in
9677 old_archive_cmds | \
9678 old_archive_from_new_cmds | \
9679 archive_cmds | \
9680 archive_expsym_cmds | \
9681 module_cmds | \
9682 module_expsym_cmds | \
9683 old_archive_from_expsyms_cmds | \
9684 export_symbols_cmds | \
9685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9686 postinstall_cmds | postuninstall_cmds | \
9687 old_postinstall_cmds | old_postuninstall_cmds | \
9688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9689 # Double-quote double-evaled strings.
9690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9691 ;;
9692 *)
9693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9694 ;;
9695 esac
9696 done
9697
9698 case $lt_echo in
9699 *'\$0 --fallback-echo"')
9700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9701 ;;
9702 esac
9703
9704 cfgfile="${ofile}T"
9705 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9706 $rm -f "$cfgfile"
9707 { echo "$as_me:$LINENO: creating $ofile" >&5
9708 echo "$as_me: creating $ofile" >&6;}
9709
9710 cat <<__EOF__ >> "$cfgfile"
9711 #! $SHELL
9712
9713 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9714 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9715 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9716 #
9717 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9718 # Free Software Foundation, Inc.
9719 #
9720 # This file is part of GNU Libtool:
9721 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9722 #
9723 # This program is free software; you can redistribute it and/or modify
9724 # it under the terms of the GNU General Public License as published by
9725 # the Free Software Foundation; either version 2 of the License, or
9726 # (at your option) any later version.
9727 #
9728 # This program is distributed in the hope that it will be useful, but
9729 # WITHOUT ANY WARRANTY; without even the implied warranty of
9730 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9731 # General Public License for more details.
9732 #
9733 # You should have received a copy of the GNU General Public License
9734 # along with this program; if not, write to the Free Software
9735 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9736 #
9737 # As a special exception to the GNU General Public License, if you
9738 # distribute this file as part of a program that contains a
9739 # configuration script generated by Autoconf, you may include it under
9740 # the same distribution terms that you use for the rest of that program.
9741
9742 # A sed program that does not truncate output.
9743 SED=$lt_SED
9744
9745 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9746 Xsed="$SED -e 1s/^X//"
9747
9748 # The HP-UX ksh and POSIX shell print the target directory to stdout
9749 # if CDPATH is set.
9750 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9751
9752 # The names of the tagged configurations supported by this script.
9753 available_tags=
9754
9755 # ### BEGIN LIBTOOL CONFIG
9756
9757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9758
9759 # Shell to use when invoking shell scripts.
9760 SHELL=$lt_SHELL
9761
9762 # Whether or not to build shared libraries.
9763 build_libtool_libs=$enable_shared
9764
9765 # Whether or not to build static libraries.
9766 build_old_libs=$enable_static
9767
9768 # Whether or not to add -lc for building shared libraries.
9769 build_libtool_need_lc=$archive_cmds_need_lc
9770
9771 # Whether or not to disallow shared libs when runtime libs are static
9772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9773
9774 # Whether or not to optimize for fast installation.
9775 fast_install=$enable_fast_install
9776
9777 # The host system.
9778 host_alias=$host_alias
9779 host=$host
9780 host_os=$host_os
9781
9782 # The build system.
9783 build_alias=$build_alias
9784 build=$build
9785 build_os=$build_os
9786
9787 # An echo program that does not interpret backslashes.
9788 echo=$lt_echo
9789
9790 # The archiver.
9791 AR=$lt_AR
9792 AR_FLAGS=$lt_AR_FLAGS
9793
9794 # A C compiler.
9795 LTCC=$lt_LTCC
9796
9797 # LTCC compiler flags.
9798 LTCFLAGS=$lt_LTCFLAGS
9799
9800 # A language-specific compiler.
9801 CC=$lt_compiler
9802
9803 # Is the compiler the GNU C compiler?
9804 with_gcc=$GCC
9805
9806 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9807 gcc_ver=\`gcc -dumpversion\`
9808
9809 # An ERE matcher.
9810 EGREP=$lt_EGREP
9811
9812 # The linker used to build libraries.
9813 LD=$lt_LD
9814
9815 # Whether we need hard or soft links.
9816 LN_S=$lt_LN_S
9817
9818 # A BSD-compatible nm program.
9819 NM=$lt_NM
9820
9821 # A symbol stripping program
9822 STRIP=$lt_STRIP
9823
9824 # Used to examine libraries when file_magic_cmd begins "file"
9825 MAGIC_CMD=$MAGIC_CMD
9826
9827 # Used on cygwin: DLL creation program.
9828 DLLTOOL="$DLLTOOL"
9829
9830 # Used on cygwin: object dumper.
9831 OBJDUMP="$OBJDUMP"
9832
9833 # Used on cygwin: assembler.
9834 AS="$AS"
9835
9836 # The name of the directory that contains temporary libtool files.
9837 objdir=$objdir
9838
9839 # How to create reloadable object files.
9840 reload_flag=$lt_reload_flag
9841 reload_cmds=$lt_reload_cmds
9842
9843 # How to pass a linker flag through the compiler.
9844 wl=$lt_lt_prog_compiler_wl
9845
9846 # Object file suffix (normally "o").
9847 objext="$ac_objext"
9848
9849 # Old archive suffix (normally "a").
9850 libext="$libext"
9851
9852 # Shared library suffix (normally ".so").
9853 shrext_cmds='$shrext_cmds'
9854
9855 # Executable file suffix (normally "").
9856 exeext="$exeext"
9857
9858 # Additional compiler flags for building library objects.
9859 pic_flag=$lt_lt_prog_compiler_pic
9860 pic_mode=$pic_mode
9861
9862 # What is the maximum length of a command?
9863 max_cmd_len=$lt_cv_sys_max_cmd_len
9864
9865 # Does compiler simultaneously support -c and -o options?
9866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9867
9868 # Must we lock files when doing compilation?
9869 need_locks=$lt_need_locks
9870
9871 # Do we need the lib prefix for modules?
9872 need_lib_prefix=$need_lib_prefix
9873
9874 # Do we need a version for libraries?
9875 need_version=$need_version
9876
9877 # Whether dlopen is supported.
9878 dlopen_support=$enable_dlopen
9879
9880 # Whether dlopen of programs is supported.
9881 dlopen_self=$enable_dlopen_self
9882
9883 # Whether dlopen of statically linked programs is supported.
9884 dlopen_self_static=$enable_dlopen_self_static
9885
9886 # Compiler flag to prevent dynamic linking.
9887 link_static_flag=$lt_lt_prog_compiler_static
9888
9889 # Compiler flag to turn off builtin functions.
9890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9891
9892 # Compiler flag to allow reflexive dlopens.
9893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9894
9895 # Compiler flag to generate shared objects directly from archives.
9896 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9897
9898 # Compiler flag to generate thread-safe objects.
9899 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9900
9901 # Library versioning type.
9902 version_type=$version_type
9903
9904 # Format of library name prefix.
9905 libname_spec=$lt_libname_spec
9906
9907 # List of archive names. First name is the real one, the rest are links.
9908 # The last name is the one that the linker finds with -lNAME.
9909 library_names_spec=$lt_library_names_spec
9910
9911 # The coded name of the library, if different from the real name.
9912 soname_spec=$lt_soname_spec
9913
9914 # Commands used to build and install an old-style archive.
9915 RANLIB=$lt_RANLIB
9916 old_archive_cmds=$lt_old_archive_cmds
9917 old_postinstall_cmds=$lt_old_postinstall_cmds
9918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9919
9920 # Create an old-style archive from a shared archive.
9921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9922
9923 # Create a temporary old-style archive to link instead of a shared archive.
9924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9925
9926 # Commands used to build and install a shared archive.
9927 archive_cmds=$lt_archive_cmds
9928 archive_expsym_cmds=$lt_archive_expsym_cmds
9929 postinstall_cmds=$lt_postinstall_cmds
9930 postuninstall_cmds=$lt_postuninstall_cmds
9931
9932 # Commands used to build a loadable module (assumed same as above if empty)
9933 module_cmds=$lt_module_cmds
9934 module_expsym_cmds=$lt_module_expsym_cmds
9935
9936 # Commands to strip libraries.
9937 old_striplib=$lt_old_striplib
9938 striplib=$lt_striplib
9939
9940 # Dependencies to place before the objects being linked to create a
9941 # shared library.
9942 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9943
9944 # Dependencies to place after the objects being linked to create a
9945 # shared library.
9946 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9947
9948 # Dependencies to place before the objects being linked to create a
9949 # shared library.
9950 predeps=$lt_predeps
9951
9952 # Dependencies to place after the objects being linked to create a
9953 # shared library.
9954 postdeps=$lt_postdeps
9955
9956 # The library search path used internally by the compiler when linking
9957 # a shared library.
9958 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9959
9960 # Method to check whether dependent libraries are shared objects.
9961 deplibs_check_method=$lt_deplibs_check_method
9962
9963 # Command to use when deplibs_check_method == file_magic.
9964 file_magic_cmd=$lt_file_magic_cmd
9965
9966 # Flag that allows shared libraries with undefined symbols to be built.
9967 allow_undefined_flag=$lt_allow_undefined_flag
9968
9969 # Flag that forces no undefined symbols.
9970 no_undefined_flag=$lt_no_undefined_flag
9971
9972 # Commands used to finish a libtool library installation in a directory.
9973 finish_cmds=$lt_finish_cmds
9974
9975 # Same as above, but a single script fragment to be evaled but not shown.
9976 finish_eval=$lt_finish_eval
9977
9978 # Take the output of nm and produce a listing of raw symbols and C names.
9979 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9980
9981 # Transform the output of nm in a proper C declaration
9982 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9983
9984 # Transform the output of nm in a C name address pair
9985 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9986
9987 # This is the shared library runtime path variable.
9988 runpath_var=$runpath_var
9989
9990 # This is the shared library path variable.
9991 shlibpath_var=$shlibpath_var
9992
9993 # Is shlibpath searched before the hard-coded library search path?
9994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9995
9996 # How to hardcode a shared library path into an executable.
9997 hardcode_action=$hardcode_action
9998
9999 # Whether we should hardcode library paths into libraries.
10000 hardcode_into_libs=$hardcode_into_libs
10001
10002 # Flag to hardcode \$libdir into a binary during linking.
10003 # This must work even if \$libdir does not exist.
10004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10005
10006 # If ld is used when linking, flag to hardcode \$libdir into
10007 # a binary during linking. This must work even if \$libdir does
10008 # not exist.
10009 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10010
10011 # Whether we need a single -rpath flag with a separated argument.
10012 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10013
10014 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10015 # resulting binary.
10016 hardcode_direct=$hardcode_direct
10017
10018 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10019 # resulting binary.
10020 hardcode_minus_L=$hardcode_minus_L
10021
10022 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10023 # the resulting binary.
10024 hardcode_shlibpath_var=$hardcode_shlibpath_var
10025
10026 # Set to yes if building a shared library automatically hardcodes DIR into the library
10027 # and all subsequent libraries and executables linked against it.
10028 hardcode_automatic=$hardcode_automatic
10029
10030 # Variables whose values should be saved in libtool wrapper scripts and
10031 # restored at relink time.
10032 variables_saved_for_relink="$variables_saved_for_relink"
10033
10034 # Whether libtool must link a program against all its dependency libraries.
10035 link_all_deplibs=$link_all_deplibs
10036
10037 # Compile-time system search path for libraries
10038 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10039
10040 # Run-time system search path for libraries
10041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10042
10043 # Fix the shell variable \$srcfile for the compiler.
10044 fix_srcfile_path="$fix_srcfile_path"
10045
10046 # Set to yes if exported symbols are required.
10047 always_export_symbols=$always_export_symbols
10048
10049 # The commands to list exported symbols.
10050 export_symbols_cmds=$lt_export_symbols_cmds
10051
10052 # The commands to extract the exported symbol list from a shared archive.
10053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10054
10055 # Symbols that should not be listed in the preloaded symbols.
10056 exclude_expsyms=$lt_exclude_expsyms
10057
10058 # Symbols that must always be exported.
10059 include_expsyms=$lt_include_expsyms
10060
10061 # ### END LIBTOOL CONFIG
10062
10063 __EOF__
10064
10065
10066 case $host_os in
10067 aix3*)
10068 cat <<\EOF >> "$cfgfile"
10069
10070 # AIX sometimes has problems with the GCC collect2 program. For some
10071 # reason, if we set the COLLECT_NAMES environment variable, the problems
10072 # vanish in a puff of smoke.
10073 if test "X${COLLECT_NAMES+set}" != Xset; then
10074 COLLECT_NAMES=
10075 export COLLECT_NAMES
10076 fi
10077 EOF
10078 ;;
10079 esac
10080
10081 # We use sed instead of cat because bash on DJGPP gets confused if
10082 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10083 # text mode, it properly converts lines to CR/LF. This bash problem
10084 # is reportedly fixed, but why not run on old versions too?
10085 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10086
10087 mv -f "$cfgfile" "$ofile" || \
10088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10089 chmod +x "$ofile"
10090
10091 else
10092 # If there is no Makefile yet, we rely on a make rule to execute
10093 # `config.status --recheck' to rerun these tests and create the
10094 # libtool script then.
10095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10096 if test -f "$ltmain_in"; then
10097 test -f Makefile && make "$ltmain"
10098 fi
10099 fi
10100
10101
10102 ac_ext=c
10103 ac_cpp='$CPP $CPPFLAGS'
10104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10107
10108 CC="$lt_save_CC"
10109
10110
10111 # Check whether --with-tags or --without-tags was given.
10112 if test "${with_tags+set}" = set; then
10113 withval="$with_tags"
10114 tagnames="$withval"
10115 fi;
10116
10117 if test -f "$ltmain" && test -n "$tagnames"; then
10118 if test ! -f "${ofile}"; then
10119 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10120 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10121 fi
10122
10123 if test -z "$LTCC"; then
10124 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10125 if test -z "$LTCC"; then
10126 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10127 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10128 else
10129 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10130 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10131 fi
10132 fi
10133 if test -z "$LTCFLAGS"; then
10134 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10135 fi
10136
10137 # Extract list of available tagged configurations in $ofile.
10138 # Note that this assumes the entire list is on one line.
10139 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10140
10141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10142 for tagname in $tagnames; do
10143 IFS="$lt_save_ifs"
10144 # Check whether tagname contains only valid characters
10145 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10146 "") ;;
10147 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10148 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10149 { (exit 1); exit 1; }; }
10150 ;;
10151 esac
10152
10153 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10154 then
10155 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10156 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10157 { (exit 1); exit 1; }; }
10158 fi
10159
10160 # Update the list of available tags.
10161 if test -n "$tagname"; then
10162 echo appending configuration tag \"$tagname\" to $ofile
10163
10164 case $tagname in
10165 CXX)
10166 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10167 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10168 (test "X$CXX" != "Xg++"))) ; then
10169 ac_ext=cc
10170 ac_cpp='$CXXCPP $CPPFLAGS'
10171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10174
10175
10176
10177
10178 archive_cmds_need_lc_CXX=no
10179 allow_undefined_flag_CXX=
10180 always_export_symbols_CXX=no
10181 archive_expsym_cmds_CXX=
10182 export_dynamic_flag_spec_CXX=
10183 hardcode_direct_CXX=no
10184 hardcode_libdir_flag_spec_CXX=
10185 hardcode_libdir_flag_spec_ld_CXX=
10186 hardcode_libdir_separator_CXX=
10187 hardcode_minus_L_CXX=no
10188 hardcode_shlibpath_var_CXX=unsupported
10189 hardcode_automatic_CXX=no
10190 module_cmds_CXX=
10191 module_expsym_cmds_CXX=
10192 link_all_deplibs_CXX=unknown
10193 old_archive_cmds_CXX=$old_archive_cmds
10194 no_undefined_flag_CXX=
10195 whole_archive_flag_spec_CXX=
10196 enable_shared_with_static_runtimes_CXX=no
10197
10198 # Dependencies to place before and after the object being linked:
10199 predep_objects_CXX=
10200 postdep_objects_CXX=
10201 predeps_CXX=
10202 postdeps_CXX=
10203 compiler_lib_search_path_CXX=
10204
10205 # Source file extension for C++ test sources.
10206 ac_ext=cpp
10207
10208 # Object file extension for compiled C++ test sources.
10209 objext=o
10210 objext_CXX=$objext
10211
10212 # Code to be used in simple compile tests
10213 lt_simple_compile_test_code="int some_variable = 0;\n"
10214
10215 # Code to be used in simple link tests
10216 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10217
10218 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10219
10220 # If no C compiler was specified, use CC.
10221 LTCC=${LTCC-"$CC"}
10222
10223 # If no C compiler flags were specified, use CFLAGS.
10224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10225
10226 # Allow CC to be a program name with arguments.
10227 compiler=$CC
10228
10229
10230 # save warnings/boilerplate of simple test code
10231 ac_outfile=conftest.$ac_objext
10232 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10234 _lt_compiler_boilerplate=`cat conftest.err`
10235 $rm conftest*
10236
10237 ac_outfile=conftest.$ac_objext
10238 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10240 _lt_linker_boilerplate=`cat conftest.err`
10241 $rm conftest*
10242
10243
10244 # Allow CC to be a program name with arguments.
10245 lt_save_CC=$CC
10246 lt_save_LD=$LD
10247 lt_save_GCC=$GCC
10248 GCC=$GXX
10249 lt_save_with_gnu_ld=$with_gnu_ld
10250 lt_save_path_LD=$lt_cv_path_LD
10251 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10252 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10253 else
10254 $as_unset lt_cv_prog_gnu_ld
10255 fi
10256 if test -n "${lt_cv_path_LDCXX+set}"; then
10257 lt_cv_path_LD=$lt_cv_path_LDCXX
10258 else
10259 $as_unset lt_cv_path_LD
10260 fi
10261 test -z "${LDCXX+set}" || LD=$LDCXX
10262 CC=${CXX-"c++"}
10263 compiler=$CC
10264 compiler_CXX=$CC
10265 for cc_temp in $compiler""; do
10266 case $cc_temp in
10267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10269 \-*) ;;
10270 *) break;;
10271 esac
10272 done
10273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10274
10275
10276 # We don't want -fno-exception wen compiling C++ code, so set the
10277 # no_builtin_flag separately
10278 if test "$GXX" = yes; then
10279 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10280 else
10281 lt_prog_compiler_no_builtin_flag_CXX=
10282 fi
10283
10284 if test "$GXX" = yes; then
10285 # Set up default GNU C++ configuration
10286
10287
10288 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10289 if test "${with_gnu_ld+set}" = set; then
10290 withval="$with_gnu_ld"
10291 test "$withval" = no || with_gnu_ld=yes
10292 else
10293 with_gnu_ld=no
10294 fi;
10295 ac_prog=ld
10296 if test "$GCC" = yes; then
10297 # Check if gcc -print-prog-name=ld gives a path.
10298 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10299 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10300 case $host in
10301 *-*-mingw*)
10302 # gcc leaves a trailing carriage return which upsets mingw
10303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10304 *)
10305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10306 esac
10307 case $ac_prog in
10308 # Accept absolute paths.
10309 [\\/]* | ?:[\\/]*)
10310 re_direlt='/[^/][^/]*/\.\./'
10311 # Canonicalize the pathname of ld
10312 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10313 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10314 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10315 done
10316 test -z "$LD" && LD="$ac_prog"
10317 ;;
10318 "")
10319 # If it fails, then pretend we aren't using GCC.
10320 ac_prog=ld
10321 ;;
10322 *)
10323 # If it is relative, then search for the first ld in PATH.
10324 with_gnu_ld=unknown
10325 ;;
10326 esac
10327 elif test "$with_gnu_ld" = yes; then
10328 echo "$as_me:$LINENO: checking for GNU ld" >&5
10329 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10330 else
10331 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10332 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10333 fi
10334 if test "${lt_cv_path_LD+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337 if test -z "$LD"; then
10338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10339 for ac_dir in $PATH; do
10340 IFS="$lt_save_ifs"
10341 test -z "$ac_dir" && ac_dir=.
10342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10343 lt_cv_path_LD="$ac_dir/$ac_prog"
10344 # Check to see if the program is GNU ld. I'd rather use --version,
10345 # but apparently some variants of GNU ld only accept -v.
10346 # Break only if it was the GNU/non-GNU ld that we prefer.
10347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10348 *GNU* | *'with BFD'*)
10349 test "$with_gnu_ld" != no && break
10350 ;;
10351 *)
10352 test "$with_gnu_ld" != yes && break
10353 ;;
10354 esac
10355 fi
10356 done
10357 IFS="$lt_save_ifs"
10358 else
10359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10360 fi
10361 fi
10362
10363 LD="$lt_cv_path_LD"
10364 if test -n "$LD"; then
10365 echo "$as_me:$LINENO: result: $LD" >&5
10366 echo "${ECHO_T}$LD" >&6
10367 else
10368 echo "$as_me:$LINENO: result: no" >&5
10369 echo "${ECHO_T}no" >&6
10370 fi
10371 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10372 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10373 { (exit 1); exit 1; }; }
10374 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10375 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10376 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10380 case `$LD -v 2>&1 </dev/null` in
10381 *GNU* | *'with BFD'*)
10382 lt_cv_prog_gnu_ld=yes
10383 ;;
10384 *)
10385 lt_cv_prog_gnu_ld=no
10386 ;;
10387 esac
10388 fi
10389 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10390 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10391 with_gnu_ld=$lt_cv_prog_gnu_ld
10392
10393
10394
10395 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10396 # archiving commands below assume that GNU ld is being used.
10397 if test "$with_gnu_ld" = yes; then
10398 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399 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'
10400
10401 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10403
10404 # If archive_cmds runs LD, not CC, wlarc should be empty
10405 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10406 # investigate it a little bit more. (MM)
10407 wlarc='${wl}'
10408
10409 # ancient GNU ld didn't support --whole-archive et. al.
10410 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10411 grep 'no-whole-archive' > /dev/null; then
10412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10413 else
10414 whole_archive_flag_spec_CXX=
10415 fi
10416 else
10417 with_gnu_ld=no
10418 wlarc=
10419
10420 # A generic and very simple default shared library creation
10421 # command for GNU C++ for the case where it uses the native
10422 # linker, instead of GNU ld. If possible, this setting should
10423 # overridden to take advantage of the native linker features on
10424 # the platform it is being used on.
10425 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10426 fi
10427
10428 # Commands to make compiler produce verbose output that lists
10429 # what "hidden" libraries, object files and flags are used when
10430 # linking a shared library.
10431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10432
10433 else
10434 GXX=no
10435 with_gnu_ld=no
10436 wlarc=
10437 fi
10438
10439 # PORTME: fill in a description of your system's C++ link characteristics
10440 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10441 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10442 ld_shlibs_CXX=yes
10443 case $host_os in
10444 aix3*)
10445 # FIXME: insert proper C++ library support
10446 ld_shlibs_CXX=no
10447 ;;
10448 aix4* | aix5*)
10449 if test "$host_cpu" = ia64; then
10450 # On IA64, the linker does run time linking by default, so we don't
10451 # have to do anything special.
10452 aix_use_runtimelinking=no
10453 exp_sym_flag='-Bexport'
10454 no_entry_flag=""
10455 else
10456 aix_use_runtimelinking=no
10457
10458 # Test if we are trying to use run time linking or normal
10459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10460 # need to do runtime linking.
10461 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10462 for ld_flag in $LDFLAGS; do
10463 case $ld_flag in
10464 *-brtl*)
10465 aix_use_runtimelinking=yes
10466 break
10467 ;;
10468 esac
10469 done
10470 ;;
10471 esac
10472
10473 exp_sym_flag='-bexport'
10474 no_entry_flag='-bnoentry'
10475 fi
10476
10477 # When large executables or shared objects are built, AIX ld can
10478 # have problems creating the table of contents. If linking a library
10479 # or program results in "error TOC overflow" add -mminimal-toc to
10480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10482
10483 archive_cmds_CXX=''
10484 hardcode_direct_CXX=yes
10485 hardcode_libdir_separator_CXX=':'
10486 link_all_deplibs_CXX=yes
10487
10488 if test "$GXX" = yes; then
10489 case $host_os in aix4.[012]|aix4.[012].*)
10490 # We only want to do this on AIX 4.2 and lower, the check
10491 # below for broken collect2 doesn't work under 4.3+
10492 collect2name=`${CC} -print-prog-name=collect2`
10493 if test -f "$collect2name" && \
10494 strings "$collect2name" | grep resolve_lib_name >/dev/null
10495 then
10496 # We have reworked collect2
10497 hardcode_direct_CXX=yes
10498 else
10499 # We have old collect2
10500 hardcode_direct_CXX=unsupported
10501 # It fails to find uninstalled libraries when the uninstalled
10502 # path is not listed in the libpath. Setting hardcode_minus_L
10503 # to unsupported forces relinking
10504 hardcode_minus_L_CXX=yes
10505 hardcode_libdir_flag_spec_CXX='-L$libdir'
10506 hardcode_libdir_separator_CXX=
10507 fi
10508 ;;
10509 esac
10510 shared_flag='-shared'
10511 if test "$aix_use_runtimelinking" = yes; then
10512 shared_flag="$shared_flag "'${wl}-G'
10513 fi
10514 else
10515 # not using gcc
10516 if test "$host_cpu" = ia64; then
10517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10518 # chokes on -Wl,-G. The following line is correct:
10519 shared_flag='-G'
10520 else
10521 if test "$aix_use_runtimelinking" = yes; then
10522 shared_flag='${wl}-G'
10523 else
10524 shared_flag='${wl}-bM:SRE'
10525 fi
10526 fi
10527 fi
10528
10529 # It seems that -bexpall does not export symbols beginning with
10530 # underscore (_), so it is better to generate a list of symbols to export.
10531 always_export_symbols_CXX=yes
10532 if test "$aix_use_runtimelinking" = yes; then
10533 # Warning - without using the other runtime loading flags (-brtl),
10534 # -berok will link without error, but may produce a broken library.
10535 allow_undefined_flag_CXX='-berok'
10536 # Determine the default libpath from the value encoded in an empty executable.
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543
10544 int
10545 main ()
10546 {
10547
10548 ;
10549 return 0;
10550 }
10551 _ACEOF
10552 rm -f conftest.$ac_objext conftest$ac_exeext
10553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554 (eval $ac_link) 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -z "$ac_cxx_werror_flag"
10562 || test ! -s conftest.err'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; } &&
10568 { ac_try='test -s conftest$ac_exeext'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
10574
10575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10576 }'`
10577 # Check for a 64-bit object if we didn't find anything.
10578 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; }
10579 }'`; fi
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584 fi
10585 rm -f conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10588
10589 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10590
10591 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10592 else
10593 if test "$host_cpu" = ia64; then
10594 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10595 allow_undefined_flag_CXX="-z nodefs"
10596 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10597 else
10598 # Determine the default libpath from the value encoded in an empty executable.
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605
10606 int
10607 main ()
10608 {
10609
10610 ;
10611 return 0;
10612 }
10613 _ACEOF
10614 rm -f conftest.$ac_objext conftest$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -z "$ac_cxx_werror_flag"
10624 || test ! -s conftest.err'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636
10637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10638 }'`
10639 # Check for a 64-bit object if we didn't find anything.
10640 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; }
10641 }'`; fi
10642 else
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646 fi
10647 rm -f conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10650
10651 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10652 # Warning - without using the other run time loading flags,
10653 # -berok will link without error, but may produce a broken library.
10654 no_undefined_flag_CXX=' ${wl}-bernotok'
10655 allow_undefined_flag_CXX=' ${wl}-berok'
10656 # Exported symbols can be pulled into shared objects from archives
10657 whole_archive_flag_spec_CXX='$convenience'
10658 archive_cmds_need_lc_CXX=yes
10659 # This is similar to how AIX traditionally builds its shared libraries.
10660 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10661 fi
10662 fi
10663 ;;
10664
10665 beos*)
10666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10667 allow_undefined_flag_CXX=unsupported
10668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10669 # support --undefined. This deserves some investigation. FIXME
10670 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10671 else
10672 ld_shlibs_CXX=no
10673 fi
10674 ;;
10675
10676 chorus*)
10677 case $cc_basename in
10678 *)
10679 # FIXME: insert proper C++ library support
10680 ld_shlibs_CXX=no
10681 ;;
10682 esac
10683 ;;
10684
10685 cygwin* | mingw* | pw32*)
10686 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10687 # as there is no search path for DLLs.
10688 hardcode_libdir_flag_spec_CXX='-L$libdir'
10689 allow_undefined_flag_CXX=unsupported
10690 always_export_symbols_CXX=no
10691 enable_shared_with_static_runtimes_CXX=yes
10692
10693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10694 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10695 # If the export-symbols file already is a .def file (1st line
10696 # is EXPORTS), use it as is; otherwise, prepend...
10697 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10698 cp $export_symbols $output_objdir/$soname.def;
10699 else
10700 echo EXPORTS > $output_objdir/$soname.def;
10701 cat $export_symbols >> $output_objdir/$soname.def;
10702 fi~
10703 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10704 else
10705 ld_shlibs_CXX=no
10706 fi
10707 ;;
10708 darwin* | rhapsody*)
10709 case $host_os in
10710 rhapsody* | darwin1.[012])
10711 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10712 ;;
10713 *) # Darwin 1.3 on
10714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10715 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10716 else
10717 case ${MACOSX_DEPLOYMENT_TARGET} in
10718 10.[012])
10719 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10720 ;;
10721 10.*)
10722 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10723 ;;
10724 esac
10725 fi
10726 ;;
10727 esac
10728 archive_cmds_need_lc_CXX=no
10729 hardcode_direct_CXX=no
10730 hardcode_automatic_CXX=yes
10731 hardcode_shlibpath_var_CXX=unsupported
10732 whole_archive_flag_spec_CXX=''
10733 link_all_deplibs_CXX=yes
10734
10735 if test "$GXX" = yes ; then
10736 lt_int_apple_cc_single_mod=no
10737 output_verbose_link_cmd='echo'
10738 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10739 lt_int_apple_cc_single_mod=yes
10740 fi
10741 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10742 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10743 else
10744 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10745 fi
10746 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10748 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10749 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10750 else
10751 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10752 fi
10753 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10754 else
10755 case $cc_basename in
10756 xlc*)
10757 output_verbose_link_cmd='echo'
10758 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10759 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10761 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10762 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10763 ;;
10764 *)
10765 ld_shlibs_CXX=no
10766 ;;
10767 esac
10768 fi
10769 ;;
10770
10771 dgux*)
10772 case $cc_basename in
10773 ec++*)
10774 # FIXME: insert proper C++ library support
10775 ld_shlibs_CXX=no
10776 ;;
10777 ghcx*)
10778 # Green Hills C++ Compiler
10779 # FIXME: insert proper C++ library support
10780 ld_shlibs_CXX=no
10781 ;;
10782 *)
10783 # FIXME: insert proper C++ library support
10784 ld_shlibs_CXX=no
10785 ;;
10786 esac
10787 ;;
10788 freebsd[12]*)
10789 # C++ shared libraries reported to be fairly broken before switch to ELF
10790 ld_shlibs_CXX=no
10791 ;;
10792 freebsd-elf*)
10793 archive_cmds_need_lc_CXX=no
10794 ;;
10795 freebsd* | kfreebsd*-gnu | dragonfly*)
10796 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10797 # conventions
10798 ld_shlibs_CXX=yes
10799 ;;
10800 gnu*)
10801 ;;
10802 hpux9*)
10803 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10804 hardcode_libdir_separator_CXX=:
10805 export_dynamic_flag_spec_CXX='${wl}-E'
10806 hardcode_direct_CXX=yes
10807 hardcode_minus_L_CXX=yes # Not in the search PATH,
10808 # but as the default
10809 # location of the library.
10810
10811 case $cc_basename in
10812 CC*)
10813 # FIXME: insert proper C++ library support
10814 ld_shlibs_CXX=no
10815 ;;
10816 aCC*)
10817 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10818 # Commands to make compiler produce verbose output that lists
10819 # what "hidden" libraries, object files and flags are used when
10820 # linking a shared library.
10821 #
10822 # There doesn't appear to be a way to prevent this compiler from
10823 # explicitly linking system object files so we need to strip them
10824 # from the output so that they don't get included in the library
10825 # dependencies.
10826 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'
10827 ;;
10828 *)
10829 if test "$GXX" = yes; then
10830 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10831 else
10832 # FIXME: insert proper C++ library support
10833 ld_shlibs_CXX=no
10834 fi
10835 ;;
10836 esac
10837 ;;
10838 hpux10*|hpux11*)
10839 if test $with_gnu_ld = no; then
10840 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10841 hardcode_libdir_separator_CXX=:
10842
10843 case $host_cpu in
10844 hppa*64*|ia64*)
10845 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10846 ;;
10847 *)
10848 export_dynamic_flag_spec_CXX='${wl}-E'
10849 ;;
10850 esac
10851 fi
10852 case $host_cpu in
10853 hppa*64*|ia64*)
10854 hardcode_direct_CXX=no
10855 hardcode_shlibpath_var_CXX=no
10856 ;;
10857 *)
10858 hardcode_direct_CXX=yes
10859 hardcode_minus_L_CXX=yes # Not in the search PATH,
10860 # but as the default
10861 # location of the library.
10862 ;;
10863 esac
10864
10865 case $cc_basename in
10866 CC*)
10867 # FIXME: insert proper C++ library support
10868 ld_shlibs_CXX=no
10869 ;;
10870 aCC*)
10871 case $host_cpu in
10872 hppa*64*)
10873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10874 ;;
10875 ia64*)
10876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10877 ;;
10878 *)
10879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10880 ;;
10881 esac
10882 # Commands to make compiler produce verbose output that lists
10883 # what "hidden" libraries, object files and flags are used when
10884 # linking a shared library.
10885 #
10886 # There doesn't appear to be a way to prevent this compiler from
10887 # explicitly linking system object files so we need to strip them
10888 # from the output so that they don't get included in the library
10889 # dependencies.
10890 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'
10891 ;;
10892 *)
10893 if test "$GXX" = yes; then
10894 if test $with_gnu_ld = no; then
10895 case $host_cpu in
10896 hppa*64*)
10897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10898 ;;
10899 ia64*)
10900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10901 ;;
10902 *)
10903 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'
10904 ;;
10905 esac
10906 fi
10907 else
10908 # FIXME: insert proper C++ library support
10909 ld_shlibs_CXX=no
10910 fi
10911 ;;
10912 esac
10913 ;;
10914 interix3*)
10915 hardcode_direct_CXX=no
10916 hardcode_shlibpath_var_CXX=no
10917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10918 export_dynamic_flag_spec_CXX='${wl}-E'
10919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10920 # Instead, shared libraries are loaded at an image base (0x10000000 by
10921 # default) and relocated if they conflict, which is a slow very memory
10922 # consuming and fragmenting process. To avoid this, we pick a random,
10923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10925 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10926 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10927 ;;
10928 irix5* | irix6*)
10929 case $cc_basename in
10930 CC*)
10931 # SGI C++
10932 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 ${output_objdir}/so_locations -o $lib'
10933
10934 # Archives containing C++ object files must be created using
10935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10936 # necessary to make sure instantiated templates are included
10937 # in the archive.
10938 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10939 ;;
10940 *)
10941 if test "$GXX" = yes; then
10942 if test "$with_gnu_ld" = no; then
10943 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}${output_objdir}/so_locations -o $lib'
10944 else
10945 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'
10946 fi
10947 fi
10948 link_all_deplibs_CXX=yes
10949 ;;
10950 esac
10951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10952 hardcode_libdir_separator_CXX=:
10953 ;;
10954 linux*)
10955 case $cc_basename in
10956 KCC*)
10957 # Kuck and Associates, Inc. (KAI) C++ Compiler
10958
10959 # KCC will only create a shared library if the output file
10960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10961 # to its proper name (with version) after linking.
10962 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'
10963 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'
10964 # Commands to make compiler produce verbose output that lists
10965 # what "hidden" libraries, object files and flags are used when
10966 # linking a shared library.
10967 #
10968 # There doesn't appear to be a way to prevent this compiler from
10969 # explicitly linking system object files so we need to strip them
10970 # from the output so that they don't get included in the library
10971 # dependencies.
10972 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'
10973
10974 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10976
10977 # Archives containing C++ object files must be created using
10978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10980 ;;
10981 icpc*)
10982 # Intel C++
10983 with_gnu_ld=yes
10984 # version 8.0 and above of icpc choke on multiply defined symbols
10985 # if we add $predep_objects and $postdep_objects, however 7.1 and
10986 # earlier do not add the objects themselves.
10987 case `$CC -V 2>&1` in
10988 *"Version 7."*)
10989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10990 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'
10991 ;;
10992 *) # Version 8.0 or newer
10993 tmp_idyn=
10994 case $host_cpu in
10995 ia64*) tmp_idyn=' -i_dynamic';;
10996 esac
10997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10999 ;;
11000 esac
11001 archive_cmds_need_lc_CXX=no
11002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11005 ;;
11006 pgCC*)
11007 # Portland Group C++ compiler
11008 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11009 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11010
11011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11013 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11014 ;;
11015 cxx*)
11016 # Compaq C++
11017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11018 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'
11019
11020 runpath_var=LD_RUN_PATH
11021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11022 hardcode_libdir_separator_CXX=:
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 -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'
11033 ;;
11034 esac
11035 ;;
11036 lynxos*)
11037 # FIXME: insert proper C++ library support
11038 ld_shlibs_CXX=no
11039 ;;
11040 m88k*)
11041 # FIXME: insert proper C++ library support
11042 ld_shlibs_CXX=no
11043 ;;
11044 mvs*)
11045 case $cc_basename in
11046 cxx*)
11047 # FIXME: insert proper C++ library support
11048 ld_shlibs_CXX=no
11049 ;;
11050 *)
11051 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no
11053 ;;
11054 esac
11055 ;;
11056 netbsd*)
11057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11058 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11059 wlarc=
11060 hardcode_libdir_flag_spec_CXX='-R$libdir'
11061 hardcode_direct_CXX=yes
11062 hardcode_shlibpath_var_CXX=no
11063 fi
11064 # Workaround some broken pre-1.5 toolchains
11065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11066 ;;
11067 openbsd2*)
11068 # C++ shared libraries are fairly broken
11069 ld_shlibs_CXX=no
11070 ;;
11071 openbsd*)
11072 hardcode_direct_CXX=yes
11073 hardcode_shlibpath_var_CXX=no
11074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11078 export_dynamic_flag_spec_CXX='${wl}-E'
11079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11080 fi
11081 output_verbose_link_cmd='echo'
11082 ;;
11083 osf3*)
11084 case $cc_basename in
11085 KCC*)
11086 # Kuck and Associates, Inc. (KAI) C++ Compiler
11087
11088 # KCC will only create a shared library if the output file
11089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11090 # to its proper name (with version) after linking.
11091 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'
11092
11093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11094 hardcode_libdir_separator_CXX=:
11095
11096 # Archives containing C++ object files must be created using
11097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11098 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11099
11100 ;;
11101 RCC*)
11102 # Rational C++ 2.4.1
11103 # FIXME: insert proper C++ library support
11104 ld_shlibs_CXX=no
11105 ;;
11106 cxx*)
11107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11108 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 ${output_objdir}/so_locations -o $lib'
11109
11110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11111 hardcode_libdir_separator_CXX=:
11112
11113 # Commands to make compiler produce verbose output that lists
11114 # what "hidden" libraries, object files and flags are used when
11115 # linking a shared library.
11116 #
11117 # There doesn't appear to be a way to prevent this compiler from
11118 # explicitly linking system object files so we need to strip them
11119 # from the output so that they don't get included in the library
11120 # dependencies.
11121 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'
11122 ;;
11123 *)
11124 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11126 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}${output_objdir}/so_locations -o $lib'
11127
11128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11129 hardcode_libdir_separator_CXX=:
11130
11131 # Commands to make compiler produce verbose output that lists
11132 # what "hidden" libraries, object files and flags are used when
11133 # linking a shared library.
11134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11135
11136 else
11137 # FIXME: insert proper C++ library support
11138 ld_shlibs_CXX=no
11139 fi
11140 ;;
11141 esac
11142 ;;
11143 osf4* | osf5*)
11144 case $cc_basename in
11145 KCC*)
11146 # Kuck and Associates, Inc. (KAI) C++ Compiler
11147
11148 # KCC will only create a shared library if the output file
11149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11150 # to its proper name (with version) after linking.
11151 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'
11152
11153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11154 hardcode_libdir_separator_CXX=:
11155
11156 # Archives containing C++ object files must be created using
11157 # the KAI C++ compiler.
11158 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11159 ;;
11160 RCC*)
11161 # Rational C++ 2.4.1
11162 # FIXME: insert proper C++ library support
11163 ld_shlibs_CXX=no
11164 ;;
11165 cxx*)
11166 allow_undefined_flag_CXX=' -expect_unresolved \*'
11167 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 ${output_objdir}/so_locations -o $lib'
11168 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11169 echo "-hidden">> $lib.exp~
11170 $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 ${output_objdir}/so_locations -o $lib~
11171 $rm $lib.exp'
11172
11173 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11174 hardcode_libdir_separator_CXX=:
11175
11176 # Commands to make compiler produce verbose output that lists
11177 # what "hidden" libraries, object files and flags are used when
11178 # linking a shared library.
11179 #
11180 # There doesn't appear to be a way to prevent this compiler from
11181 # explicitly linking system object files so we need to strip them
11182 # from the output so that they don't get included in the library
11183 # dependencies.
11184 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'
11185 ;;
11186 *)
11187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11189 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}${output_objdir}/so_locations -o $lib'
11190
11191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11192 hardcode_libdir_separator_CXX=:
11193
11194 # Commands to make compiler produce verbose output that lists
11195 # what "hidden" libraries, object files and flags are used when
11196 # linking a shared library.
11197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11198
11199 else
11200 # FIXME: insert proper C++ library support
11201 ld_shlibs_CXX=no
11202 fi
11203 ;;
11204 esac
11205 ;;
11206 psos*)
11207 # FIXME: insert proper C++ library support
11208 ld_shlibs_CXX=no
11209 ;;
11210 sunos4*)
11211 case $cc_basename in
11212 CC*)
11213 # Sun C++ 4.x
11214 # FIXME: insert proper C++ library support
11215 ld_shlibs_CXX=no
11216 ;;
11217 lcc*)
11218 # Lucid
11219 # FIXME: insert proper C++ library support
11220 ld_shlibs_CXX=no
11221 ;;
11222 *)
11223 # FIXME: insert proper C++ library support
11224 ld_shlibs_CXX=no
11225 ;;
11226 esac
11227 ;;
11228 solaris*)
11229 case $cc_basename in
11230 CC*)
11231 # Sun C++ 4.2, 5.x and Centerline C++
11232 archive_cmds_need_lc_CXX=yes
11233 no_undefined_flag_CXX=' -zdefs'
11234 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11235 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11236 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11237
11238 hardcode_libdir_flag_spec_CXX='-R$libdir'
11239 hardcode_shlibpath_var_CXX=no
11240 case $host_os in
11241 solaris2.[0-5] | solaris2.[0-5].*) ;;
11242 *)
11243 # The C++ compiler is used as linker so we must use $wl
11244 # flag to pass the commands to the underlying system
11245 # linker. We must also pass each convience library through
11246 # to the system linker between allextract/defaultextract.
11247 # The C++ compiler will combine linker options so we
11248 # cannot just pass the convience library names through
11249 # without $wl.
11250 # Supported since Solaris 2.6 (maybe 2.5.1?)
11251 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11252 ;;
11253 esac
11254 link_all_deplibs_CXX=yes
11255
11256 output_verbose_link_cmd='echo'
11257
11258 # Archives containing C++ object files must be created using
11259 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11260 # necessary to make sure instantiated templates are included
11261 # in the archive.
11262 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11263 ;;
11264 gcx*)
11265 # Green Hills C++ Compiler
11266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11267
11268 # The C++ compiler must be used to create the archive.
11269 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11270 ;;
11271 *)
11272 # GNU C++ compiler with Solaris linker
11273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11274 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11275 if $CC --version | grep -v '^2\.7' > /dev/null; then
11276 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11277 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11278 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11279
11280 # Commands to make compiler produce verbose output that lists
11281 # what "hidden" libraries, object files and flags are used when
11282 # linking a shared library.
11283 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11284 else
11285 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11286 # platform.
11287 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11288 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11289 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11290
11291 # Commands to make compiler produce verbose output that lists
11292 # what "hidden" libraries, object files and flags are used when
11293 # linking a shared library.
11294 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11295 fi
11296
11297 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11298 fi
11299 ;;
11300 esac
11301 ;;
11302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11303 no_undefined_flag_CXX='${wl}-z,text'
11304 archive_cmds_need_lc_CXX=no
11305 hardcode_shlibpath_var_CXX=no
11306 runpath_var='LD_RUN_PATH'
11307
11308 case $cc_basename in
11309 CC*)
11310 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312 ;;
11313 *)
11314 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11316 ;;
11317 esac
11318 ;;
11319 sysv5* | sco3.2v5* | sco5v6*)
11320 # Note: We can NOT use -z defs as we might desire, because we do not
11321 # link with -lc, and that would cause any symbols used from libc to
11322 # always be unresolved, which means just about no library would
11323 # ever link correctly. If we're not using GNU ld we use -z text
11324 # though, which does catch some bad symbols but isn't as heavy-handed
11325 # as -z defs.
11326 # For security reasons, it is highly recommended that you always
11327 # use absolute paths for naming shared libraries, and exclude the
11328 # DT_RUNPATH tag from executables and libraries. But doing so
11329 # requires that you compile everything twice, which is a pain.
11330 # So that behaviour is only enabled if SCOABSPATH is set to a
11331 # non-empty value in the environment. Most likely only useful for
11332 # creating official distributions of packages.
11333 # This is a hack until libtool officially supports absolute path
11334 # names for shared libraries.
11335 no_undefined_flag_CXX='${wl}-z,text'
11336 allow_undefined_flag_CXX='${wl}-z,nodefs'
11337 archive_cmds_need_lc_CXX=no
11338 hardcode_shlibpath_var_CXX=no
11339 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11340 hardcode_libdir_separator_CXX=':'
11341 link_all_deplibs_CXX=yes
11342 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11343 runpath_var='LD_RUN_PATH'
11344
11345 case $cc_basename in
11346 CC*)
11347 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11348 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11349 ;;
11350 *)
11351 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11352 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11353 ;;
11354 esac
11355 ;;
11356 tandem*)
11357 case $cc_basename in
11358 NCC*)
11359 # NonStop-UX NCC 3.20
11360 # FIXME: insert proper C++ library support
11361 ld_shlibs_CXX=no
11362 ;;
11363 *)
11364 # FIXME: insert proper C++ library support
11365 ld_shlibs_CXX=no
11366 ;;
11367 esac
11368 ;;
11369 vxworks*)
11370 # FIXME: insert proper C++ library support
11371 ld_shlibs_CXX=no
11372 ;;
11373 *)
11374 # FIXME: insert proper C++ library support
11375 ld_shlibs_CXX=no
11376 ;;
11377 esac
11378 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11379 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11380 test "$ld_shlibs_CXX" = no && can_build_shared=no
11381
11382 GCC_CXX="$GXX"
11383 LD_CXX="$LD"
11384
11385
11386 cat > conftest.$ac_ext <<EOF
11387 class Foo
11388 {
11389 public:
11390 Foo (void) { a = 0; }
11391 private:
11392 int a;
11393 };
11394 EOF
11395
11396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11397 (eval $ac_compile) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; then
11401 # Parse the compiler output and extract the necessary
11402 # objects, libraries and library flags.
11403
11404 # Sentinel used to keep track of whether or not we are before
11405 # the conftest object file.
11406 pre_test_object_deps_done=no
11407
11408 # The `*' in the case matches for architectures that use `case' in
11409 # $output_verbose_cmd can trigger glob expansion during the loop
11410 # eval without this substitution.
11411 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11412
11413 for p in `eval $output_verbose_link_cmd`; do
11414 case $p in
11415
11416 -L* | -R* | -l*)
11417 # Some compilers place space between "-{L,R}" and the path.
11418 # Remove the space.
11419 if test $p = "-L" \
11420 || test $p = "-R"; then
11421 prev=$p
11422 continue
11423 else
11424 prev=
11425 fi
11426
11427 if test "$pre_test_object_deps_done" = no; then
11428 case $p in
11429 -L* | -R*)
11430 # Internal compiler library paths should come after those
11431 # provided the user. The postdeps already come after the
11432 # user supplied libs so there is no need to process them.
11433 if test -z "$compiler_lib_search_path_CXX"; then
11434 compiler_lib_search_path_CXX="${prev}${p}"
11435 else
11436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11437 fi
11438 ;;
11439 # The "-l" case would never come before the object being
11440 # linked, so don't bother handling this case.
11441 esac
11442 else
11443 if test -z "$postdeps_CXX"; then
11444 postdeps_CXX="${prev}${p}"
11445 else
11446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11447 fi
11448 fi
11449 ;;
11450
11451 *.$objext)
11452 # This assumes that the test object file only shows up
11453 # once in the compiler output.
11454 if test "$p" = "conftest.$objext"; then
11455 pre_test_object_deps_done=yes
11456 continue
11457 fi
11458
11459 if test "$pre_test_object_deps_done" = no; then
11460 if test -z "$predep_objects_CXX"; then
11461 predep_objects_CXX="$p"
11462 else
11463 predep_objects_CXX="$predep_objects_CXX $p"
11464 fi
11465 else
11466 if test -z "$postdep_objects_CXX"; then
11467 postdep_objects_CXX="$p"
11468 else
11469 postdep_objects_CXX="$postdep_objects_CXX $p"
11470 fi
11471 fi
11472 ;;
11473
11474 *) ;; # Ignore the rest.
11475
11476 esac
11477 done
11478
11479 # Clean up.
11480 rm -f a.out a.exe
11481 else
11482 echo "libtool.m4: error: problem compiling CXX test program"
11483 fi
11484
11485 $rm -f confest.$objext
11486
11487 # PORTME: override above test on systems where it is broken
11488 case $host_os in
11489 interix3*)
11490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11491 # hack all around it, let's just trust "g++" to DTRT.
11492 predep_objects_CXX=
11493 postdep_objects_CXX=
11494 postdeps_CXX=
11495 ;;
11496
11497 solaris*)
11498 case $cc_basename in
11499 CC*)
11500 # Adding this requires a known-good setup of shared libraries for
11501 # Sun compiler versions before 5.6, else PIC objects from an old
11502 # archive will be linked into the output, leading to subtle bugs.
11503 postdeps_CXX='-lCstd -lCrun'
11504 ;;
11505 esac
11506 ;;
11507 esac
11508
11509
11510 case " $postdeps_CXX " in
11511 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11512 esac
11513
11514 lt_prog_compiler_wl_CXX=
11515 lt_prog_compiler_pic_CXX=
11516 lt_prog_compiler_static_CXX=
11517
11518 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11520
11521 # C++ specific cases for pic, static, wl, etc.
11522 if test "$GXX" = yes; then
11523 lt_prog_compiler_wl_CXX='-Wl,'
11524 lt_prog_compiler_static_CXX='-static'
11525
11526 case $host_os in
11527 aix*)
11528 # All AIX code is PIC.
11529 if test "$host_cpu" = ia64; then
11530 # AIX 5 now supports IA64 processor
11531 lt_prog_compiler_static_CXX='-Bstatic'
11532 fi
11533 ;;
11534 amigaos*)
11535 # FIXME: we need at least 68020 code to build shared libraries, but
11536 # adding the `-m68020' flag to GCC prevents building anything better,
11537 # like `-m68040'.
11538 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11539 ;;
11540 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11541 # PIC is the default for these OSes.
11542 ;;
11543 mingw* | os2* | pw32*)
11544 # This hack is so that the source file can tell whether it is being
11545 # built for inclusion in a dll (and should export symbols for example).
11546 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11547 ;;
11548 darwin* | rhapsody*)
11549 # PIC is the default on this platform
11550 # Common symbols not allowed in MH_DYLIB files
11551 lt_prog_compiler_pic_CXX='-fno-common'
11552 ;;
11553 *djgpp*)
11554 # DJGPP does not support shared libraries at all
11555 lt_prog_compiler_pic_CXX=
11556 ;;
11557 interix3*)
11558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11559 # Instead, we relocate shared libraries at runtime.
11560 ;;
11561 sysv4*MP*)
11562 if test -d /usr/nec; then
11563 lt_prog_compiler_pic_CXX=-Kconform_pic
11564 fi
11565 ;;
11566 hpux*)
11567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11568 # not for PA HP-UX.
11569 case $host_cpu in
11570 hppa*64*|ia64*)
11571 ;;
11572 *)
11573 lt_prog_compiler_pic_CXX='-fPIC'
11574 ;;
11575 esac
11576 ;;
11577 *)
11578 lt_prog_compiler_pic_CXX='-fPIC'
11579 ;;
11580 esac
11581 else
11582 case $host_os in
11583 aix4* | aix5*)
11584 # All AIX code is PIC.
11585 if test "$host_cpu" = ia64; then
11586 # AIX 5 now supports IA64 processor
11587 lt_prog_compiler_static_CXX='-Bstatic'
11588 else
11589 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11590 fi
11591 ;;
11592 chorus*)
11593 case $cc_basename in
11594 cxch68*)
11595 # Green Hills C++ Compiler
11596 # _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"
11597 ;;
11598 esac
11599 ;;
11600 darwin*)
11601 # PIC is the default on this platform
11602 # Common symbols not allowed in MH_DYLIB files
11603 case $cc_basename in
11604 xlc*)
11605 lt_prog_compiler_pic_CXX='-qnocommon'
11606 lt_prog_compiler_wl_CXX='-Wl,'
11607 ;;
11608 esac
11609 ;;
11610 dgux*)
11611 case $cc_basename in
11612 ec++*)
11613 lt_prog_compiler_pic_CXX='-KPIC'
11614 ;;
11615 ghcx*)
11616 # Green Hills C++ Compiler
11617 lt_prog_compiler_pic_CXX='-pic'
11618 ;;
11619 *)
11620 ;;
11621 esac
11622 ;;
11623 freebsd* | kfreebsd*-gnu | dragonfly*)
11624 # FreeBSD uses GNU C++
11625 ;;
11626 hpux9* | hpux10* | hpux11*)
11627 case $cc_basename in
11628 CC*)
11629 lt_prog_compiler_wl_CXX='-Wl,'
11630 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11631 if test "$host_cpu" != ia64; then
11632 lt_prog_compiler_pic_CXX='+Z'
11633 fi
11634 ;;
11635 aCC*)
11636 lt_prog_compiler_wl_CXX='-Wl,'
11637 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11638 case $host_cpu in
11639 hppa*64*|ia64*)
11640 # +Z the default
11641 ;;
11642 *)
11643 lt_prog_compiler_pic_CXX='+Z'
11644 ;;
11645 esac
11646 ;;
11647 *)
11648 ;;
11649 esac
11650 ;;
11651 interix*)
11652 # This is c89, which is MS Visual C++ (no shared libs)
11653 # Anyone wants to do a port?
11654 ;;
11655 irix5* | irix6* | nonstopux*)
11656 case $cc_basename in
11657 CC*)
11658 lt_prog_compiler_wl_CXX='-Wl,'
11659 lt_prog_compiler_static_CXX='-non_shared'
11660 # CC pic flag -KPIC is the default.
11661 ;;
11662 *)
11663 ;;
11664 esac
11665 ;;
11666 linux*)
11667 case $cc_basename in
11668 KCC*)
11669 # KAI C++ Compiler
11670 lt_prog_compiler_wl_CXX='--backend -Wl,'
11671 lt_prog_compiler_pic_CXX='-fPIC'
11672 ;;
11673 icpc* | ecpc*)
11674 # Intel C++
11675 lt_prog_compiler_wl_CXX='-Wl,'
11676 lt_prog_compiler_pic_CXX='-KPIC'
11677 lt_prog_compiler_static_CXX='-static'
11678 ;;
11679 pgCC*)
11680 # Portland Group C++ compiler.
11681 lt_prog_compiler_wl_CXX='-Wl,'
11682 lt_prog_compiler_pic_CXX='-fpic'
11683 lt_prog_compiler_static_CXX='-Bstatic'
11684 ;;
11685 cxx*)
11686 # Compaq C++
11687 # Make sure the PIC flag is empty. It appears that all Alpha
11688 # Linux and Compaq Tru64 Unix objects are PIC.
11689 lt_prog_compiler_pic_CXX=
11690 lt_prog_compiler_static_CXX='-non_shared'
11691 ;;
11692 *)
11693 ;;
11694 esac
11695 ;;
11696 lynxos*)
11697 ;;
11698 m88k*)
11699 ;;
11700 mvs*)
11701 case $cc_basename in
11702 cxx*)
11703 lt_prog_compiler_pic_CXX='-W c,exportall'
11704 ;;
11705 *)
11706 ;;
11707 esac
11708 ;;
11709 netbsd*)
11710 ;;
11711 osf3* | osf4* | osf5*)
11712 case $cc_basename in
11713 KCC*)
11714 lt_prog_compiler_wl_CXX='--backend -Wl,'
11715 ;;
11716 RCC*)
11717 # Rational C++ 2.4.1
11718 lt_prog_compiler_pic_CXX='-pic'
11719 ;;
11720 cxx*)
11721 # Digital/Compaq C++
11722 lt_prog_compiler_wl_CXX='-Wl,'
11723 # Make sure the PIC flag is empty. It appears that all Alpha
11724 # Linux and Compaq Tru64 Unix objects are PIC.
11725 lt_prog_compiler_pic_CXX=
11726 lt_prog_compiler_static_CXX='-non_shared'
11727 ;;
11728 *)
11729 ;;
11730 esac
11731 ;;
11732 psos*)
11733 ;;
11734 solaris*)
11735 case $cc_basename in
11736 CC*)
11737 # Sun C++ 4.2, 5.x and Centerline C++
11738 lt_prog_compiler_pic_CXX='-KPIC'
11739 lt_prog_compiler_static_CXX='-Bstatic'
11740 lt_prog_compiler_wl_CXX='-Qoption ld '
11741 ;;
11742 gcx*)
11743 # Green Hills C++ Compiler
11744 lt_prog_compiler_pic_CXX='-PIC'
11745 ;;
11746 *)
11747 ;;
11748 esac
11749 ;;
11750 sunos4*)
11751 case $cc_basename in
11752 CC*)
11753 # Sun C++ 4.x
11754 lt_prog_compiler_pic_CXX='-pic'
11755 lt_prog_compiler_static_CXX='-Bstatic'
11756 ;;
11757 lcc*)
11758 # Lucid
11759 lt_prog_compiler_pic_CXX='-pic'
11760 ;;
11761 *)
11762 ;;
11763 esac
11764 ;;
11765 tandem*)
11766 case $cc_basename in
11767 NCC*)
11768 # NonStop-UX NCC 3.20
11769 lt_prog_compiler_pic_CXX='-KPIC'
11770 ;;
11771 *)
11772 ;;
11773 esac
11774 ;;
11775 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11776 case $cc_basename in
11777 CC*)
11778 lt_prog_compiler_wl_CXX='-Wl,'
11779 lt_prog_compiler_pic_CXX='-KPIC'
11780 lt_prog_compiler_static_CXX='-Bstatic'
11781 ;;
11782 esac
11783 ;;
11784 vxworks*)
11785 ;;
11786 *)
11787 lt_prog_compiler_can_build_shared_CXX=no
11788 ;;
11789 esac
11790 fi
11791
11792 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11793 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11794
11795 #
11796 # Check to make sure the PIC flag actually works.
11797 #
11798 if test -n "$lt_prog_compiler_pic_CXX"; then
11799
11800 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11801 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11802 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805 lt_prog_compiler_pic_works_CXX=no
11806 ac_outfile=conftest.$ac_objext
11807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11808 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11809 # Insert the option either (1) after the last *FLAGS variable, or
11810 # (2) before a word containing "conftest.", or (3) at the end.
11811 # Note that $ac_compile itself does not contain backslashes and begins
11812 # with a dollar sign (not a hyphen), so the echo should work correctly.
11813 # The option is referenced via a variable to avoid confusing sed.
11814 lt_compile=`echo "$ac_compile" | $SED \
11815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11817 -e 's:$: $lt_compiler_flag:'`
11818 (eval echo "\"\$as_me:11818: $lt_compile\"" >&5)
11819 (eval "$lt_compile" 2>conftest.err)
11820 ac_status=$?
11821 cat conftest.err >&5
11822 echo "$as_me:11822: \$? = $ac_status" >&5
11823 if (exit $ac_status) && test -s "$ac_outfile"; then
11824 # The compiler can only warn and ignore the option if not recognized
11825 # So say no if there are warnings other than the usual output.
11826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11829 lt_prog_compiler_pic_works_CXX=yes
11830 fi
11831 fi
11832 $rm conftest*
11833
11834 fi
11835 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11836 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11837
11838 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11839 case $lt_prog_compiler_pic_CXX in
11840 "" | " "*) ;;
11841 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11842 esac
11843 else
11844 lt_prog_compiler_pic_CXX=
11845 lt_prog_compiler_can_build_shared_CXX=no
11846 fi
11847
11848 fi
11849 case $host_os in
11850 # For platforms which do not support PIC, -DPIC is meaningless:
11851 *djgpp*)
11852 lt_prog_compiler_pic_CXX=
11853 ;;
11854 *)
11855 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11856 ;;
11857 esac
11858
11859 #
11860 # Check to make sure the static flag actually works.
11861 #
11862 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11863 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11864 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11865 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868 lt_prog_compiler_static_works_CXX=no
11869 save_LDFLAGS="$LDFLAGS"
11870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11871 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11873 # The linker can only warn and ignore the option if not recognized
11874 # So say no if there are warnings
11875 if test -s conftest.err; then
11876 # Append any errors to the config.log.
11877 cat conftest.err 1>&5
11878 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11880 if diff conftest.exp conftest.er2 >/dev/null; then
11881 lt_prog_compiler_static_works_CXX=yes
11882 fi
11883 else
11884 lt_prog_compiler_static_works_CXX=yes
11885 fi
11886 fi
11887 $rm conftest*
11888 LDFLAGS="$save_LDFLAGS"
11889
11890 fi
11891 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11892 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11893
11894 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11895 :
11896 else
11897 lt_prog_compiler_static_CXX=
11898 fi
11899
11900
11901 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11902 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11903 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906 lt_cv_prog_compiler_c_o_CXX=no
11907 $rm -r conftest 2>/dev/null
11908 mkdir conftest
11909 cd conftest
11910 mkdir out
11911 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11912
11913 lt_compiler_flag="-o out/conftest2.$ac_objext"
11914 # Insert the option either (1) after the last *FLAGS variable, or
11915 # (2) before a word containing "conftest.", or (3) at the end.
11916 # Note that $ac_compile itself does not contain backslashes and begins
11917 # with a dollar sign (not a hyphen), so the echo should work correctly.
11918 lt_compile=`echo "$ac_compile" | $SED \
11919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11921 -e 's:$: $lt_compiler_flag:'`
11922 (eval echo "\"\$as_me:11922: $lt_compile\"" >&5)
11923 (eval "$lt_compile" 2>out/conftest.err)
11924 ac_status=$?
11925 cat out/conftest.err >&5
11926 echo "$as_me:11926: \$? = $ac_status" >&5
11927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11928 then
11929 # The compiler can only warn and ignore the option if not recognized
11930 # So say no if there are warnings
11931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11934 lt_cv_prog_compiler_c_o_CXX=yes
11935 fi
11936 fi
11937 chmod u+w . 2>&5
11938 $rm conftest*
11939 # SGI C++ compiler will create directory out/ii_files/ for
11940 # template instantiation
11941 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11942 $rm out/* && rmdir out
11943 cd ..
11944 rmdir conftest
11945 $rm conftest*
11946
11947 fi
11948 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11949 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11950
11951
11952 hard_links="nottested"
11953 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11954 # do not overwrite the value of need_locks provided by the user
11955 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11956 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11957 hard_links=yes
11958 $rm conftest*
11959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11960 touch conftest.a
11961 ln conftest.a conftest.b 2>&5 || hard_links=no
11962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11963 echo "$as_me:$LINENO: result: $hard_links" >&5
11964 echo "${ECHO_T}$hard_links" >&6
11965 if test "$hard_links" = no; then
11966 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11967 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11968 need_locks=warn
11969 fi
11970 else
11971 need_locks=no
11972 fi
11973
11974 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11975 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11976
11977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11978 case $host_os in
11979 aix4* | aix5*)
11980 # If we're using GNU nm, then we don't want the "-C" option.
11981 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11982 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11983 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'
11984 else
11985 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'
11986 fi
11987 ;;
11988 pw32*)
11989 export_symbols_cmds_CXX="$ltdll_cmds"
11990 ;;
11991 cygwin* | mingw*)
11992 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11993 ;;
11994 *)
11995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11996 ;;
11997 esac
11998
11999 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12000 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12001 test "$ld_shlibs_CXX" = no && can_build_shared=no
12002
12003 #
12004 # Do we need to explicitly link libc?
12005 #
12006 case "x$archive_cmds_need_lc_CXX" in
12007 x|xyes)
12008 # Assume -lc should be added
12009 archive_cmds_need_lc_CXX=yes
12010
12011 if test "$enable_shared" = yes && test "$GCC" = yes; then
12012 case $archive_cmds_CXX in
12013 *'~'*)
12014 # FIXME: we may have to deal with multi-command sequences.
12015 ;;
12016 '$CC '*)
12017 # Test whether the compiler implicitly links with -lc since on some
12018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12019 # to ld, don't add -lc before -lgcc.
12020 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12021 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12022 $rm conftest*
12023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12024
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } 2>conftest.err; then
12030 soname=conftest
12031 lib=conftest
12032 libobjs=conftest.$ac_objext
12033 deplibs=
12034 wl=$lt_prog_compiler_wl_CXX
12035 pic_flag=$lt_prog_compiler_pic_CXX
12036 compiler_flags=-v
12037 linker_flags=-v
12038 verstring=
12039 output_objdir=.
12040 libname=conftest
12041 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12042 allow_undefined_flag_CXX=
12043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12044 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }
12048 then
12049 archive_cmds_need_lc_CXX=no
12050 else
12051 archive_cmds_need_lc_CXX=yes
12052 fi
12053 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12054 else
12055 cat conftest.err 1>&5
12056 fi
12057 $rm conftest*
12058 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12059 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12060 ;;
12061 esac
12062 fi
12063 ;;
12064 esac
12065
12066 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12067 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12068 library_names_spec=
12069 libname_spec='lib$name'
12070 soname_spec=
12071 shrext_cmds=".so"
12072 postinstall_cmds=
12073 postuninstall_cmds=
12074 finish_cmds=
12075 finish_eval=
12076 shlibpath_var=
12077 shlibpath_overrides_runpath=unknown
12078 version_type=none
12079 dynamic_linker="$host_os ld.so"
12080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12081 if test "$GCC" = yes; then
12082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12083 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12084 # if the path contains ";" then we assume it to be the separator
12085 # otherwise default to the standard path separator (i.e. ":") - it is
12086 # assumed that no part of a normal pathname contains ";" but that should
12087 # okay in the real world where ";" in dirpaths is itself problematic.
12088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12089 else
12090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12091 fi
12092 else
12093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12094 fi
12095 need_lib_prefix=unknown
12096 hardcode_into_libs=no
12097
12098 # when you set need_version to no, make sure it does not cause -set_version
12099 # flags to be left without arguments
12100 need_version=unknown
12101
12102 case $host_os in
12103 aix3*)
12104 version_type=linux
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12106 shlibpath_var=LIBPATH
12107
12108 # AIX 3 has no versioning support, so we append a major version to the name.
12109 soname_spec='${libname}${release}${shared_ext}$major'
12110 ;;
12111
12112 aix4* | aix5*)
12113 version_type=linux
12114 need_lib_prefix=no
12115 need_version=no
12116 hardcode_into_libs=yes
12117 if test "$host_cpu" = ia64; then
12118 # AIX 5 supports IA64
12119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 else
12122 # With GCC up to 2.95.x, collect2 would create an import file
12123 # for dependence libraries. The import file would start with
12124 # the line `#! .'. This would cause the generated library to
12125 # depend on `.', always an invalid library. This was fixed in
12126 # development snapshots of GCC prior to 3.0.
12127 case $host_os in
12128 aix4 | aix4.[01] | aix4.[01].*)
12129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12130 echo ' yes '
12131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12132 :
12133 else
12134 can_build_shared=no
12135 fi
12136 ;;
12137 esac
12138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12139 # soname into executable. Probably we can add versioning support to
12140 # collect2, so additional links can be useful in future.
12141 if test "$aix_use_runtimelinking" = yes; then
12142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12143 # instead of lib<name>.a to let people know that these are not
12144 # typical AIX shared libraries.
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12146 else
12147 # We preserve .a as extension for shared libraries through AIX4.2
12148 # and later when we are not doing run time linking.
12149 library_names_spec='${libname}${release}.a $libname.a'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 fi
12152 shlibpath_var=LIBPATH
12153 fi
12154 ;;
12155
12156 amigaos*)
12157 library_names_spec='$libname.ixlibrary $libname.a'
12158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12159 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'
12160 ;;
12161
12162 beos*)
12163 library_names_spec='${libname}${shared_ext}'
12164 dynamic_linker="$host_os ld.so"
12165 shlibpath_var=LIBRARY_PATH
12166 ;;
12167
12168 bsdi[45]*)
12169 version_type=linux
12170 need_version=no
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172 soname_spec='${libname}${release}${shared_ext}$major'
12173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12177 # the default ld.so.conf also contains /usr/contrib/lib and
12178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12179 # libtool to hard-code these into programs
12180 ;;
12181
12182 cygwin* | mingw* | pw32*)
12183 version_type=windows
12184 shrext_cmds=".dll"
12185 need_version=no
12186 need_lib_prefix=no
12187
12188 case $GCC,$host_os in
12189 yes,cygwin* | yes,mingw* | yes,pw32*)
12190 library_names_spec='$libname.dll.a'
12191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12192 postinstall_cmds='base_file=`basename \${file}`~
12193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12194 dldir=$destdir/`dirname \$dlpath`~
12195 test -d \$dldir || mkdir -p \$dldir~
12196 $install_prog $dir/$dlname \$dldir/$dlname~
12197 chmod a+x \$dldir/$dlname'
12198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12199 dlpath=$dir/\$dldll~
12200 $rm \$dlpath'
12201 shlibpath_overrides_runpath=yes
12202
12203 case $host_os in
12204 cygwin*)
12205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12206 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12207 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12208 ;;
12209 mingw*)
12210 # MinGW DLLs use traditional 'lib' prefix
12211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12213 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12214 # It is most probably a Windows format PATH printed by
12215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12216 # path with ; separators, and with drive letters. We can handle the
12217 # drive letters (cygwin fileutils understands them), so leave them,
12218 # especially as we might pass files found there to a mingw objdump,
12219 # which wouldn't understand a cygwinified path. Ahh.
12220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12221 else
12222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12223 fi
12224 ;;
12225 pw32*)
12226 # pw32 DLLs use 'pw' prefix rather than 'lib'
12227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12228 ;;
12229 esac
12230 ;;
12231
12232 *)
12233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12234 ;;
12235 esac
12236 dynamic_linker='Win32 ld.exe'
12237 # FIXME: first we should search . and the directory the executable is in
12238 shlibpath_var=PATH
12239 ;;
12240
12241 darwin* | rhapsody*)
12242 dynamic_linker="$host_os dyld"
12243 version_type=darwin
12244 need_lib_prefix=no
12245 need_version=no
12246 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12247 soname_spec='${libname}${release}${major}$shared_ext'
12248 shlibpath_overrides_runpath=yes
12249 shlibpath_var=DYLD_LIBRARY_PATH
12250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12252 if test "$GCC" = yes; then
12253 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"`
12254 else
12255 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12256 fi
12257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12258 ;;
12259
12260 dgux*)
12261 version_type=linux
12262 need_lib_prefix=no
12263 need_version=no
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 ;;
12268
12269 freebsd1*)
12270 dynamic_linker=no
12271 ;;
12272
12273 kfreebsd*-gnu)
12274 version_type=linux
12275 need_lib_prefix=no
12276 need_version=no
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=no
12281 hardcode_into_libs=yes
12282 dynamic_linker='GNU ld.so'
12283 ;;
12284
12285 freebsd* | dragonfly*)
12286 # DragonFly does not have aout. When/if they implement a new
12287 # versioning mechanism, adjust this.
12288 if test -x /usr/bin/objformat; then
12289 objformat=`/usr/bin/objformat`
12290 else
12291 case $host_os in
12292 freebsd[123]*) objformat=aout ;;
12293 *) objformat=elf ;;
12294 esac
12295 fi
12296 version_type=freebsd-$objformat
12297 case $version_type in
12298 freebsd-elf*)
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12300 need_version=no
12301 need_lib_prefix=no
12302 ;;
12303 freebsd-*)
12304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12305 need_version=yes
12306 ;;
12307 esac
12308 shlibpath_var=LD_LIBRARY_PATH
12309 case $host_os in
12310 freebsd2*)
12311 shlibpath_overrides_runpath=yes
12312 ;;
12313 freebsd3.[01]* | freebsdelf3.[01]*)
12314 shlibpath_overrides_runpath=yes
12315 hardcode_into_libs=yes
12316 ;;
12317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12319 shlibpath_overrides_runpath=no
12320 hardcode_into_libs=yes
12321 ;;
12322 freebsd*) # from 4.6 on
12323 shlibpath_overrides_runpath=yes
12324 hardcode_into_libs=yes
12325 ;;
12326 esac
12327 ;;
12328
12329 gnu*)
12330 version_type=linux
12331 need_lib_prefix=no
12332 need_version=no
12333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12334 soname_spec='${libname}${release}${shared_ext}$major'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 hardcode_into_libs=yes
12337 ;;
12338
12339 hpux9* | hpux10* | hpux11*)
12340 # Give a soname corresponding to the major version so that dld.sl refuses to
12341 # link against other versions.
12342 version_type=sunos
12343 need_lib_prefix=no
12344 need_version=no
12345 case $host_cpu in
12346 ia64*)
12347 shrext_cmds='.so'
12348 hardcode_into_libs=yes
12349 dynamic_linker="$host_os dld.so"
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353 soname_spec='${libname}${release}${shared_ext}$major'
12354 if test "X$HPUX_IA64_MODE" = X32; then
12355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12356 else
12357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12358 fi
12359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12360 ;;
12361 hppa*64*)
12362 shrext_cmds='.sl'
12363 hardcode_into_libs=yes
12364 dynamic_linker="$host_os dld.sl"
12365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368 soname_spec='${libname}${release}${shared_ext}$major'
12369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12371 ;;
12372 *)
12373 shrext_cmds='.sl'
12374 dynamic_linker="$host_os dld.sl"
12375 shlibpath_var=SHLIB_PATH
12376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378 soname_spec='${libname}${release}${shared_ext}$major'
12379 ;;
12380 esac
12381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12382 postinstall_cmds='chmod 555 $lib'
12383 ;;
12384
12385 interix3*)
12386 version_type=linux
12387 need_lib_prefix=no
12388 need_version=no
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12390 soname_spec='${libname}${release}${shared_ext}$major'
12391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 shlibpath_overrides_runpath=no
12394 hardcode_into_libs=yes
12395 ;;
12396
12397 irix5* | irix6* | nonstopux*)
12398 case $host_os in
12399 nonstopux*) version_type=nonstopux ;;
12400 *)
12401 if test "$lt_cv_prog_gnu_ld" = yes; then
12402 version_type=linux
12403 else
12404 version_type=irix
12405 fi ;;
12406 esac
12407 need_lib_prefix=no
12408 need_version=no
12409 soname_spec='${libname}${release}${shared_ext}$major'
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12411 case $host_os in
12412 irix5* | nonstopux*)
12413 libsuff= shlibsuff=
12414 ;;
12415 *)
12416 case $LD in # libtool.m4 will add one of these switches to LD
12417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12418 libsuff= shlibsuff= libmagic=32-bit;;
12419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12420 libsuff=32 shlibsuff=N32 libmagic=N32;;
12421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12423 *) libsuff= shlibsuff= libmagic=never-match;;
12424 esac
12425 ;;
12426 esac
12427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12428 shlibpath_overrides_runpath=no
12429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12431 hardcode_into_libs=yes
12432 ;;
12433
12434 # No shared lib support for Linux oldld, aout, or coff.
12435 linux*oldld* | linux*aout* | linux*coff*)
12436 dynamic_linker=no
12437 ;;
12438
12439 # This must be Linux ELF.
12440 linux*)
12441 version_type=linux
12442 need_lib_prefix=no
12443 need_version=no
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445 soname_spec='${libname}${release}${shared_ext}$major'
12446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=no
12449 # This implies no fast_install, which is unacceptable.
12450 # Some rework will be needed to allow for fast_install
12451 # before this can be enabled.
12452 hardcode_into_libs=yes
12453
12454 # find out which ABI we are using
12455 libsuff=
12456 case "$host_cpu" in
12457 x86_64*|s390x*|powerpc64*)
12458 echo '#line 12458 "configure"' > conftest.$ac_ext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; then
12464 case `/usr/bin/file conftest.$ac_objext` in
12465 *64-bit*)
12466 libsuff=64
12467 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12468 ;;
12469 esac
12470 fi
12471 rm -rf conftest*
12472 ;;
12473 esac
12474
12475 # Append ld.so.conf contents to the search path
12476 if test -f /etc/ld.so.conf; then
12477 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12478 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12479 fi
12480
12481 # We used to test for /lib/ld.so.1 and disable shared libraries on
12482 # powerpc, because MkLinux only supported shared libraries with the
12483 # GNU dynamic linker. Since this was broken with cross compilers,
12484 # most powerpc-linux boxes support dynamic linking these days and
12485 # people can always --disable-shared, the test was removed, and we
12486 # assume the GNU/Linux dynamic linker is in use.
12487 dynamic_linker='GNU/Linux ld.so'
12488 ;;
12489
12490 knetbsd*-gnu)
12491 version_type=linux
12492 need_lib_prefix=no
12493 need_version=no
12494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12495 soname_spec='${libname}${release}${shared_ext}$major'
12496 shlibpath_var=LD_LIBRARY_PATH
12497 shlibpath_overrides_runpath=no
12498 hardcode_into_libs=yes
12499 dynamic_linker='GNU ld.so'
12500 ;;
12501
12502 netbsd*)
12503 version_type=sunos
12504 need_lib_prefix=no
12505 need_version=no
12506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12509 dynamic_linker='NetBSD (a.out) ld.so'
12510 else
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 dynamic_linker='NetBSD ld.elf_so'
12514 fi
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=yes
12517 hardcode_into_libs=yes
12518 ;;
12519
12520 newsos6)
12521 version_type=linux
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=yes
12525 ;;
12526
12527 nto-qnx*)
12528 version_type=linux
12529 need_lib_prefix=no
12530 need_version=no
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12532 soname_spec='${libname}${release}${shared_ext}$major'
12533 shlibpath_var=LD_LIBRARY_PATH
12534 shlibpath_overrides_runpath=yes
12535 ;;
12536
12537 openbsd*)
12538 version_type=sunos
12539 sys_lib_dlsearch_path_spec="/usr/lib"
12540 need_lib_prefix=no
12541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12542 case $host_os in
12543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12544 *) need_version=no ;;
12545 esac
12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12548 shlibpath_var=LD_LIBRARY_PATH
12549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12550 case $host_os in
12551 openbsd2.[89] | openbsd2.[89].*)
12552 shlibpath_overrides_runpath=no
12553 ;;
12554 *)
12555 shlibpath_overrides_runpath=yes
12556 ;;
12557 esac
12558 else
12559 shlibpath_overrides_runpath=yes
12560 fi
12561 ;;
12562
12563 os2*)
12564 libname_spec='$name'
12565 shrext_cmds=".dll"
12566 need_lib_prefix=no
12567 library_names_spec='$libname${shared_ext} $libname.a'
12568 dynamic_linker='OS/2 ld.exe'
12569 shlibpath_var=LIBPATH
12570 ;;
12571
12572 osf3* | osf4* | osf5*)
12573 version_type=osf
12574 need_lib_prefix=no
12575 need_version=no
12576 soname_spec='${libname}${release}${shared_ext}$major'
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12578 shlibpath_var=LD_LIBRARY_PATH
12579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12581 ;;
12582
12583 solaris*)
12584 version_type=linux
12585 need_lib_prefix=no
12586 need_version=no
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588 soname_spec='${libname}${release}${shared_ext}$major'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 shlibpath_overrides_runpath=yes
12591 hardcode_into_libs=yes
12592 # ldd complains unless libraries are executable
12593 postinstall_cmds='chmod +x $lib'
12594 ;;
12595
12596 sunos4*)
12597 version_type=sunos
12598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=yes
12602 if test "$with_gnu_ld" = yes; then
12603 need_lib_prefix=no
12604 fi
12605 need_version=yes
12606 ;;
12607
12608 sysv4 | sysv4.3*)
12609 version_type=linux
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 shlibpath_var=LD_LIBRARY_PATH
12613 case $host_vendor in
12614 sni)
12615 shlibpath_overrides_runpath=no
12616 need_lib_prefix=no
12617 export_dynamic_flag_spec='${wl}-Blargedynsym'
12618 runpath_var=LD_RUN_PATH
12619 ;;
12620 siemens)
12621 need_lib_prefix=no
12622 ;;
12623 motorola)
12624 need_lib_prefix=no
12625 need_version=no
12626 shlibpath_overrides_runpath=no
12627 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12628 ;;
12629 esac
12630 ;;
12631
12632 sysv4*MP*)
12633 if test -d /usr/nec ;then
12634 version_type=linux
12635 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12636 soname_spec='$libname${shared_ext}.$major'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 fi
12639 ;;
12640
12641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12642 version_type=freebsd-elf
12643 need_lib_prefix=no
12644 need_version=no
12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12646 soname_spec='${libname}${release}${shared_ext}$major'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 hardcode_into_libs=yes
12649 if test "$with_gnu_ld" = yes; then
12650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12651 shlibpath_overrides_runpath=no
12652 else
12653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12654 shlibpath_overrides_runpath=yes
12655 case $host_os in
12656 sco3.2v5*)
12657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12658 ;;
12659 esac
12660 fi
12661 sys_lib_dlsearch_path_spec='/usr/lib'
12662 ;;
12663
12664 uts4*)
12665 version_type=linux
12666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667 soname_spec='${libname}${release}${shared_ext}$major'
12668 shlibpath_var=LD_LIBRARY_PATH
12669 ;;
12670
12671 *)
12672 dynamic_linker=no
12673 ;;
12674 esac
12675 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12676 echo "${ECHO_T}$dynamic_linker" >&6
12677 test "$dynamic_linker" = no && can_build_shared=no
12678
12679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12680 if test "$GCC" = yes; then
12681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12682 fi
12683
12684 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12685 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12686 hardcode_action_CXX=
12687 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12688 test -n "$runpath_var_CXX" || \
12689 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12690
12691 # We can hardcode non-existant directories.
12692 if test "$hardcode_direct_CXX" != no &&
12693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12694 # have to relink, otherwise we might link with an installed library
12695 # when we should be linking with a yet-to-be-installed one
12696 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12697 test "$hardcode_minus_L_CXX" != no; then
12698 # Linking always hardcodes the temporary library directory.
12699 hardcode_action_CXX=relink
12700 else
12701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12702 hardcode_action_CXX=immediate
12703 fi
12704 else
12705 # We cannot hardcode anything, or else we can only hardcode existing
12706 # directories.
12707 hardcode_action_CXX=unsupported
12708 fi
12709 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12710 echo "${ECHO_T}$hardcode_action_CXX" >&6
12711
12712 if test "$hardcode_action_CXX" = relink; then
12713 # Fast installation is not supported
12714 enable_fast_install=no
12715 elif test "$shlibpath_overrides_runpath" = yes ||
12716 test "$enable_shared" = no; then
12717 # Fast installation is not necessary
12718 enable_fast_install=needless
12719 fi
12720
12721
12722 # The else clause should only fire when bootstrapping the
12723 # libtool distribution, otherwise you forgot to ship ltmain.sh
12724 # with your package, and you will get complaints that there are
12725 # no rules to generate ltmain.sh.
12726 if test -f "$ltmain"; then
12727 # See if we are running on zsh, and set the options which allow our commands through
12728 # without removal of \ escapes.
12729 if test -n "${ZSH_VERSION+set}" ; then
12730 setopt NO_GLOB_SUBST
12731 fi
12732 # Now quote all the things that may contain metacharacters while being
12733 # careful not to overquote the AC_SUBSTed values. We take copies of the
12734 # variables and quote the copies for generation of the libtool script.
12735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12736 SED SHELL STRIP \
12737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12739 deplibs_check_method reload_flag reload_cmds need_locks \
12740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12741 lt_cv_sys_global_symbol_to_c_name_address \
12742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12743 old_postinstall_cmds old_postuninstall_cmds \
12744 compiler_CXX \
12745 CC_CXX \
12746 LD_CXX \
12747 lt_prog_compiler_wl_CXX \
12748 lt_prog_compiler_pic_CXX \
12749 lt_prog_compiler_static_CXX \
12750 lt_prog_compiler_no_builtin_flag_CXX \
12751 export_dynamic_flag_spec_CXX \
12752 thread_safe_flag_spec_CXX \
12753 whole_archive_flag_spec_CXX \
12754 enable_shared_with_static_runtimes_CXX \
12755 old_archive_cmds_CXX \
12756 old_archive_from_new_cmds_CXX \
12757 predep_objects_CXX \
12758 postdep_objects_CXX \
12759 predeps_CXX \
12760 postdeps_CXX \
12761 compiler_lib_search_path_CXX \
12762 archive_cmds_CXX \
12763 archive_expsym_cmds_CXX \
12764 postinstall_cmds_CXX \
12765 postuninstall_cmds_CXX \
12766 old_archive_from_expsyms_cmds_CXX \
12767 allow_undefined_flag_CXX \
12768 no_undefined_flag_CXX \
12769 export_symbols_cmds_CXX \
12770 hardcode_libdir_flag_spec_CXX \
12771 hardcode_libdir_flag_spec_ld_CXX \
12772 hardcode_libdir_separator_CXX \
12773 hardcode_automatic_CXX \
12774 module_cmds_CXX \
12775 module_expsym_cmds_CXX \
12776 lt_cv_prog_compiler_c_o_CXX \
12777 exclude_expsyms_CXX \
12778 include_expsyms_CXX; do
12779
12780 case $var in
12781 old_archive_cmds_CXX | \
12782 old_archive_from_new_cmds_CXX | \
12783 archive_cmds_CXX | \
12784 archive_expsym_cmds_CXX | \
12785 module_cmds_CXX | \
12786 module_expsym_cmds_CXX | \
12787 old_archive_from_expsyms_cmds_CXX | \
12788 export_symbols_cmds_CXX | \
12789 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12790 postinstall_cmds | postuninstall_cmds | \
12791 old_postinstall_cmds | old_postuninstall_cmds | \
12792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12793 # Double-quote double-evaled strings.
12794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12795 ;;
12796 *)
12797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12798 ;;
12799 esac
12800 done
12801
12802 case $lt_echo in
12803 *'\$0 --fallback-echo"')
12804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12805 ;;
12806 esac
12807
12808 cfgfile="$ofile"
12809
12810 cat <<__EOF__ >> "$cfgfile"
12811 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12812
12813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12814
12815 # Shell to use when invoking shell scripts.
12816 SHELL=$lt_SHELL
12817
12818 # Whether or not to build shared libraries.
12819 build_libtool_libs=$enable_shared
12820
12821 # Whether or not to build static libraries.
12822 build_old_libs=$enable_static
12823
12824 # Whether or not to add -lc for building shared libraries.
12825 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12826
12827 # Whether or not to disallow shared libs when runtime libs are static
12828 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12829
12830 # Whether or not to optimize for fast installation.
12831 fast_install=$enable_fast_install
12832
12833 # The host system.
12834 host_alias=$host_alias
12835 host=$host
12836 host_os=$host_os
12837
12838 # The build system.
12839 build_alias=$build_alias
12840 build=$build
12841 build_os=$build_os
12842
12843 # An echo program that does not interpret backslashes.
12844 echo=$lt_echo
12845
12846 # The archiver.
12847 AR=$lt_AR
12848 AR_FLAGS=$lt_AR_FLAGS
12849
12850 # A C compiler.
12851 LTCC=$lt_LTCC
12852
12853 # LTCC compiler flags.
12854 LTCFLAGS=$lt_LTCFLAGS
12855
12856 # A language-specific compiler.
12857 CC=$lt_compiler_CXX
12858
12859 # Is the compiler the GNU C compiler?
12860 with_gcc=$GCC_CXX
12861
12862 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12863 gcc_ver=\`gcc -dumpversion\`
12864
12865 # An ERE matcher.
12866 EGREP=$lt_EGREP
12867
12868 # The linker used to build libraries.
12869 LD=$lt_LD_CXX
12870
12871 # Whether we need hard or soft links.
12872 LN_S=$lt_LN_S
12873
12874 # A BSD-compatible nm program.
12875 NM=$lt_NM
12876
12877 # A symbol stripping program
12878 STRIP=$lt_STRIP
12879
12880 # Used to examine libraries when file_magic_cmd begins "file"
12881 MAGIC_CMD=$MAGIC_CMD
12882
12883 # Used on cygwin: DLL creation program.
12884 DLLTOOL="$DLLTOOL"
12885
12886 # Used on cygwin: object dumper.
12887 OBJDUMP="$OBJDUMP"
12888
12889 # Used on cygwin: assembler.
12890 AS="$AS"
12891
12892 # The name of the directory that contains temporary libtool files.
12893 objdir=$objdir
12894
12895 # How to create reloadable object files.
12896 reload_flag=$lt_reload_flag
12897 reload_cmds=$lt_reload_cmds
12898
12899 # How to pass a linker flag through the compiler.
12900 wl=$lt_lt_prog_compiler_wl_CXX
12901
12902 # Object file suffix (normally "o").
12903 objext="$ac_objext"
12904
12905 # Old archive suffix (normally "a").
12906 libext="$libext"
12907
12908 # Shared library suffix (normally ".so").
12909 shrext_cmds='$shrext_cmds'
12910
12911 # Executable file suffix (normally "").
12912 exeext="$exeext"
12913
12914 # Additional compiler flags for building library objects.
12915 pic_flag=$lt_lt_prog_compiler_pic_CXX
12916 pic_mode=$pic_mode
12917
12918 # What is the maximum length of a command?
12919 max_cmd_len=$lt_cv_sys_max_cmd_len
12920
12921 # Does compiler simultaneously support -c and -o options?
12922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12923
12924 # Must we lock files when doing compilation?
12925 need_locks=$lt_need_locks
12926
12927 # Do we need the lib prefix for modules?
12928 need_lib_prefix=$need_lib_prefix
12929
12930 # Do we need a version for libraries?
12931 need_version=$need_version
12932
12933 # Whether dlopen is supported.
12934 dlopen_support=$enable_dlopen
12935
12936 # Whether dlopen of programs is supported.
12937 dlopen_self=$enable_dlopen_self
12938
12939 # Whether dlopen of statically linked programs is supported.
12940 dlopen_self_static=$enable_dlopen_self_static
12941
12942 # Compiler flag to prevent dynamic linking.
12943 link_static_flag=$lt_lt_prog_compiler_static_CXX
12944
12945 # Compiler flag to turn off builtin functions.
12946 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12947
12948 # Compiler flag to allow reflexive dlopens.
12949 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12950
12951 # Compiler flag to generate shared objects directly from archives.
12952 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12953
12954 # Compiler flag to generate thread-safe objects.
12955 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12956
12957 # Library versioning type.
12958 version_type=$version_type
12959
12960 # Format of library name prefix.
12961 libname_spec=$lt_libname_spec
12962
12963 # List of archive names. First name is the real one, the rest are links.
12964 # The last name is the one that the linker finds with -lNAME.
12965 library_names_spec=$lt_library_names_spec
12966
12967 # The coded name of the library, if different from the real name.
12968 soname_spec=$lt_soname_spec
12969
12970 # Commands used to build and install an old-style archive.
12971 RANLIB=$lt_RANLIB
12972 old_archive_cmds=$lt_old_archive_cmds_CXX
12973 old_postinstall_cmds=$lt_old_postinstall_cmds
12974 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12975
12976 # Create an old-style archive from a shared archive.
12977 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12978
12979 # Create a temporary old-style archive to link instead of a shared archive.
12980 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12981
12982 # Commands used to build and install a shared archive.
12983 archive_cmds=$lt_archive_cmds_CXX
12984 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12985 postinstall_cmds=$lt_postinstall_cmds
12986 postuninstall_cmds=$lt_postuninstall_cmds
12987
12988 # Commands used to build a loadable module (assumed same as above if empty)
12989 module_cmds=$lt_module_cmds_CXX
12990 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12991
12992 # Commands to strip libraries.
12993 old_striplib=$lt_old_striplib
12994 striplib=$lt_striplib
12995
12996 # Dependencies to place before the objects being linked to create a
12997 # shared library.
12998 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12999
13000 # Dependencies to place after the objects being linked to create a
13001 # shared library.
13002 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13003
13004 # Dependencies to place before the objects being linked to create a
13005 # shared library.
13006 predeps=$lt_predeps_CXX
13007
13008 # Dependencies to place after the objects being linked to create a
13009 # shared library.
13010 postdeps=$lt_postdeps_CXX
13011
13012 # The library search path used internally by the compiler when linking
13013 # a shared library.
13014 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13015
13016 # Method to check whether dependent libraries are shared objects.
13017 deplibs_check_method=$lt_deplibs_check_method
13018
13019 # Command to use when deplibs_check_method == file_magic.
13020 file_magic_cmd=$lt_file_magic_cmd
13021
13022 # Flag that allows shared libraries with undefined symbols to be built.
13023 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13024
13025 # Flag that forces no undefined symbols.
13026 no_undefined_flag=$lt_no_undefined_flag_CXX
13027
13028 # Commands used to finish a libtool library installation in a directory.
13029 finish_cmds=$lt_finish_cmds
13030
13031 # Same as above, but a single script fragment to be evaled but not shown.
13032 finish_eval=$lt_finish_eval
13033
13034 # Take the output of nm and produce a listing of raw symbols and C names.
13035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13036
13037 # Transform the output of nm in a proper C declaration
13038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13039
13040 # Transform the output of nm in a C name address pair
13041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13042
13043 # This is the shared library runtime path variable.
13044 runpath_var=$runpath_var
13045
13046 # This is the shared library path variable.
13047 shlibpath_var=$shlibpath_var
13048
13049 # Is shlibpath searched before the hard-coded library search path?
13050 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13051
13052 # How to hardcode a shared library path into an executable.
13053 hardcode_action=$hardcode_action_CXX
13054
13055 # Whether we should hardcode library paths into libraries.
13056 hardcode_into_libs=$hardcode_into_libs
13057
13058 # Flag to hardcode \$libdir into a binary during linking.
13059 # This must work even if \$libdir does not exist.
13060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13061
13062 # If ld is used when linking, flag to hardcode \$libdir into
13063 # a binary during linking. This must work even if \$libdir does
13064 # not exist.
13065 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13066
13067 # Whether we need a single -rpath flag with a separated argument.
13068 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13069
13070 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13071 # resulting binary.
13072 hardcode_direct=$hardcode_direct_CXX
13073
13074 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13075 # resulting binary.
13076 hardcode_minus_L=$hardcode_minus_L_CXX
13077
13078 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13079 # the resulting binary.
13080 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13081
13082 # Set to yes if building a shared library automatically hardcodes DIR into the library
13083 # and all subsequent libraries and executables linked against it.
13084 hardcode_automatic=$hardcode_automatic_CXX
13085
13086 # Variables whose values should be saved in libtool wrapper scripts and
13087 # restored at relink time.
13088 variables_saved_for_relink="$variables_saved_for_relink"
13089
13090 # Whether libtool must link a program against all its dependency libraries.
13091 link_all_deplibs=$link_all_deplibs_CXX
13092
13093 # Compile-time system search path for libraries
13094 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13095
13096 # Run-time system search path for libraries
13097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13098
13099 # Fix the shell variable \$srcfile for the compiler.
13100 fix_srcfile_path="$fix_srcfile_path_CXX"
13101
13102 # Set to yes if exported symbols are required.
13103 always_export_symbols=$always_export_symbols_CXX
13104
13105 # The commands to list exported symbols.
13106 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13107
13108 # The commands to extract the exported symbol list from a shared archive.
13109 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13110
13111 # Symbols that should not be listed in the preloaded symbols.
13112 exclude_expsyms=$lt_exclude_expsyms_CXX
13113
13114 # Symbols that must always be exported.
13115 include_expsyms=$lt_include_expsyms_CXX
13116
13117 # ### END LIBTOOL TAG CONFIG: $tagname
13118
13119 __EOF__
13120
13121
13122 else
13123 # If there is no Makefile yet, we rely on a make rule to execute
13124 # `config.status --recheck' to rerun these tests and create the
13125 # libtool script then.
13126 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13127 if test -f "$ltmain_in"; then
13128 test -f Makefile && make "$ltmain"
13129 fi
13130 fi
13131
13132
13133 ac_ext=c
13134 ac_cpp='$CPP $CPPFLAGS'
13135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13138
13139 CC=$lt_save_CC
13140 LDCXX=$LD
13141 LD=$lt_save_LD
13142 GCC=$lt_save_GCC
13143 with_gnu_ldcxx=$with_gnu_ld
13144 with_gnu_ld=$lt_save_with_gnu_ld
13145 lt_cv_path_LDCXX=$lt_cv_path_LD
13146 lt_cv_path_LD=$lt_save_path_LD
13147 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13148 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13149
13150 else
13151 tagname=""
13152 fi
13153 ;;
13154
13155 F77)
13156 if test -n "$F77" && test "X$F77" != "Xno"; then
13157
13158 ac_ext=f
13159 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13160 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13161 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13162
13163
13164 archive_cmds_need_lc_F77=no
13165 allow_undefined_flag_F77=
13166 always_export_symbols_F77=no
13167 archive_expsym_cmds_F77=
13168 export_dynamic_flag_spec_F77=
13169 hardcode_direct_F77=no
13170 hardcode_libdir_flag_spec_F77=
13171 hardcode_libdir_flag_spec_ld_F77=
13172 hardcode_libdir_separator_F77=
13173 hardcode_minus_L_F77=no
13174 hardcode_automatic_F77=no
13175 module_cmds_F77=
13176 module_expsym_cmds_F77=
13177 link_all_deplibs_F77=unknown
13178 old_archive_cmds_F77=$old_archive_cmds
13179 no_undefined_flag_F77=
13180 whole_archive_flag_spec_F77=
13181 enable_shared_with_static_runtimes_F77=no
13182
13183 # Source file extension for f77 test sources.
13184 ac_ext=f
13185
13186 # Object file extension for compiled f77 test sources.
13187 objext=o
13188 objext_F77=$objext
13189
13190 # Code to be used in simple compile tests
13191 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13192
13193 # Code to be used in simple link tests
13194 lt_simple_link_test_code=" program t\n end\n"
13195
13196 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13197
13198 # If no C compiler was specified, use CC.
13199 LTCC=${LTCC-"$CC"}
13200
13201 # If no C compiler flags were specified, use CFLAGS.
13202 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13203
13204 # Allow CC to be a program name with arguments.
13205 compiler=$CC
13206
13207
13208 # save warnings/boilerplate of simple test code
13209 ac_outfile=conftest.$ac_objext
13210 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13211 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13212 _lt_compiler_boilerplate=`cat conftest.err`
13213 $rm conftest*
13214
13215 ac_outfile=conftest.$ac_objext
13216 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13217 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13218 _lt_linker_boilerplate=`cat conftest.err`
13219 $rm conftest*
13220
13221
13222 # Allow CC to be a program name with arguments.
13223 lt_save_CC="$CC"
13224 CC=${F77-"f77"}
13225 compiler=$CC
13226 compiler_F77=$CC
13227 for cc_temp in $compiler""; do
13228 case $cc_temp in
13229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13231 \-*) ;;
13232 *) break;;
13233 esac
13234 done
13235 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13236
13237
13238 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13239 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13240 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13241 echo "${ECHO_T}$can_build_shared" >&6
13242
13243 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13244 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13245 test "$can_build_shared" = "no" && enable_shared=no
13246
13247 # On AIX, shared libraries and static libraries use the same namespace, and
13248 # are all built from PIC.
13249 case $host_os in
13250 aix3*)
13251 test "$enable_shared" = yes && enable_static=no
13252 if test -n "$RANLIB"; then
13253 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13254 postinstall_cmds='$RANLIB $lib'
13255 fi
13256 ;;
13257 aix4* | aix5*)
13258 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13259 test "$enable_shared" = yes && enable_static=no
13260 fi
13261 ;;
13262 esac
13263 echo "$as_me:$LINENO: result: $enable_shared" >&5
13264 echo "${ECHO_T}$enable_shared" >&6
13265
13266 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13267 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13268 # Make sure either enable_shared or enable_static is yes.
13269 test "$enable_shared" = yes || enable_static=yes
13270 echo "$as_me:$LINENO: result: $enable_static" >&5
13271 echo "${ECHO_T}$enable_static" >&6
13272
13273 GCC_F77="$G77"
13274 LD_F77="$LD"
13275
13276 lt_prog_compiler_wl_F77=
13277 lt_prog_compiler_pic_F77=
13278 lt_prog_compiler_static_F77=
13279
13280 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13282
13283 if test "$GCC" = yes; then
13284 lt_prog_compiler_wl_F77='-Wl,'
13285 lt_prog_compiler_static_F77='-static'
13286
13287 case $host_os in
13288 aix*)
13289 # All AIX code is PIC.
13290 if test "$host_cpu" = ia64; then
13291 # AIX 5 now supports IA64 processor
13292 lt_prog_compiler_static_F77='-Bstatic'
13293 fi
13294 ;;
13295
13296 amigaos*)
13297 # FIXME: we need at least 68020 code to build shared libraries, but
13298 # adding the `-m68020' flag to GCC prevents building anything better,
13299 # like `-m68040'.
13300 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13301 ;;
13302
13303 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13304 # PIC is the default for these OSes.
13305 ;;
13306
13307 mingw* | pw32* | os2*)
13308 # This hack is so that the source file can tell whether it is being
13309 # built for inclusion in a dll (and should export symbols for example).
13310 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13311 ;;
13312
13313 darwin* | rhapsody*)
13314 # PIC is the default on this platform
13315 # Common symbols not allowed in MH_DYLIB files
13316 lt_prog_compiler_pic_F77='-fno-common'
13317 ;;
13318
13319 interix3*)
13320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13321 # Instead, we relocate shared libraries at runtime.
13322 ;;
13323
13324 msdosdjgpp*)
13325 # Just because we use GCC doesn't mean we suddenly get shared libraries
13326 # on systems that don't support them.
13327 lt_prog_compiler_can_build_shared_F77=no
13328 enable_shared=no
13329 ;;
13330
13331 sysv4*MP*)
13332 if test -d /usr/nec; then
13333 lt_prog_compiler_pic_F77=-Kconform_pic
13334 fi
13335 ;;
13336
13337 hpux*)
13338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13339 # not for PA HP-UX.
13340 case $host_cpu in
13341 hppa*64*|ia64*)
13342 # +Z the default
13343 ;;
13344 *)
13345 lt_prog_compiler_pic_F77='-fPIC'
13346 ;;
13347 esac
13348 ;;
13349
13350 *)
13351 lt_prog_compiler_pic_F77='-fPIC'
13352 ;;
13353 esac
13354 else
13355 # PORTME Check for flag to pass linker flags through the system compiler.
13356 case $host_os in
13357 aix*)
13358 lt_prog_compiler_wl_F77='-Wl,'
13359 if test "$host_cpu" = ia64; then
13360 # AIX 5 now supports IA64 processor
13361 lt_prog_compiler_static_F77='-Bstatic'
13362 else
13363 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13364 fi
13365 ;;
13366 darwin*)
13367 # PIC is the default on this platform
13368 # Common symbols not allowed in MH_DYLIB files
13369 case $cc_basename in
13370 xlc*)
13371 lt_prog_compiler_pic_F77='-qnocommon'
13372 lt_prog_compiler_wl_F77='-Wl,'
13373 ;;
13374 esac
13375 ;;
13376
13377 mingw* | pw32* | os2*)
13378 # This hack is so that the source file can tell whether it is being
13379 # built for inclusion in a dll (and should export symbols for example).
13380 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13381 ;;
13382
13383 hpux9* | hpux10* | hpux11*)
13384 lt_prog_compiler_wl_F77='-Wl,'
13385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13386 # not for PA HP-UX.
13387 case $host_cpu in
13388 hppa*64*|ia64*)
13389 # +Z the default
13390 ;;
13391 *)
13392 lt_prog_compiler_pic_F77='+Z'
13393 ;;
13394 esac
13395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13396 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13397 ;;
13398
13399 irix5* | irix6* | nonstopux*)
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 # PIC (with -KPIC) is the default.
13402 lt_prog_compiler_static_F77='-non_shared'
13403 ;;
13404
13405 newsos6)
13406 lt_prog_compiler_pic_F77='-KPIC'
13407 lt_prog_compiler_static_F77='-Bstatic'
13408 ;;
13409
13410 linux*)
13411 case $cc_basename in
13412 icc* | ecc*)
13413 lt_prog_compiler_wl_F77='-Wl,'
13414 lt_prog_compiler_pic_F77='-KPIC'
13415 lt_prog_compiler_static_F77='-static'
13416 ;;
13417 pgcc* | pgf77* | pgf90* | pgf95*)
13418 # Portland Group compilers (*not* the Pentium gcc compiler,
13419 # which looks to be a dead project)
13420 lt_prog_compiler_wl_F77='-Wl,'
13421 lt_prog_compiler_pic_F77='-fpic'
13422 lt_prog_compiler_static_F77='-Bstatic'
13423 ;;
13424 ccc*)
13425 lt_prog_compiler_wl_F77='-Wl,'
13426 # All Alpha code is PIC.
13427 lt_prog_compiler_static_F77='-non_shared'
13428 ;;
13429 esac
13430 ;;
13431
13432 osf3* | osf4* | osf5*)
13433 lt_prog_compiler_wl_F77='-Wl,'
13434 # All OSF/1 code is PIC.
13435 lt_prog_compiler_static_F77='-non_shared'
13436 ;;
13437
13438 solaris*)
13439 lt_prog_compiler_pic_F77='-KPIC'
13440 lt_prog_compiler_static_F77='-Bstatic'
13441 case $cc_basename in
13442 f77* | f90* | f95*)
13443 lt_prog_compiler_wl_F77='-Qoption ld ';;
13444 *)
13445 lt_prog_compiler_wl_F77='-Wl,';;
13446 esac
13447 ;;
13448
13449 sunos4*)
13450 lt_prog_compiler_wl_F77='-Qoption ld '
13451 lt_prog_compiler_pic_F77='-PIC'
13452 lt_prog_compiler_static_F77='-Bstatic'
13453 ;;
13454
13455 sysv4 | sysv4.2uw2* | sysv4.3*)
13456 lt_prog_compiler_wl_F77='-Wl,'
13457 lt_prog_compiler_pic_F77='-KPIC'
13458 lt_prog_compiler_static_F77='-Bstatic'
13459 ;;
13460
13461 sysv4*MP*)
13462 if test -d /usr/nec ;then
13463 lt_prog_compiler_pic_F77='-Kconform_pic'
13464 lt_prog_compiler_static_F77='-Bstatic'
13465 fi
13466 ;;
13467
13468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13469 lt_prog_compiler_wl_F77='-Wl,'
13470 lt_prog_compiler_pic_F77='-KPIC'
13471 lt_prog_compiler_static_F77='-Bstatic'
13472 ;;
13473
13474 unicos*)
13475 lt_prog_compiler_wl_F77='-Wl,'
13476 lt_prog_compiler_can_build_shared_F77=no
13477 ;;
13478
13479 uts4*)
13480 lt_prog_compiler_pic_F77='-pic'
13481 lt_prog_compiler_static_F77='-Bstatic'
13482 ;;
13483
13484 *)
13485 lt_prog_compiler_can_build_shared_F77=no
13486 ;;
13487 esac
13488 fi
13489
13490 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13491 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13492
13493 #
13494 # Check to make sure the PIC flag actually works.
13495 #
13496 if test -n "$lt_prog_compiler_pic_F77"; then
13497
13498 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13499 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13500 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503 lt_prog_compiler_pic_works_F77=no
13504 ac_outfile=conftest.$ac_objext
13505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13506 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13507 # Insert the option either (1) after the last *FLAGS variable, or
13508 # (2) before a word containing "conftest.", or (3) at the end.
13509 # Note that $ac_compile itself does not contain backslashes and begins
13510 # with a dollar sign (not a hyphen), so the echo should work correctly.
13511 # The option is referenced via a variable to avoid confusing sed.
13512 lt_compile=`echo "$ac_compile" | $SED \
13513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13515 -e 's:$: $lt_compiler_flag:'`
13516 (eval echo "\"\$as_me:13516: $lt_compile\"" >&5)
13517 (eval "$lt_compile" 2>conftest.err)
13518 ac_status=$?
13519 cat conftest.err >&5
13520 echo "$as_me:13520: \$? = $ac_status" >&5
13521 if (exit $ac_status) && test -s "$ac_outfile"; then
13522 # The compiler can only warn and ignore the option if not recognized
13523 # So say no if there are warnings other than the usual output.
13524 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13527 lt_prog_compiler_pic_works_F77=yes
13528 fi
13529 fi
13530 $rm conftest*
13531
13532 fi
13533 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13534 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13535
13536 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13537 case $lt_prog_compiler_pic_F77 in
13538 "" | " "*) ;;
13539 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13540 esac
13541 else
13542 lt_prog_compiler_pic_F77=
13543 lt_prog_compiler_can_build_shared_F77=no
13544 fi
13545
13546 fi
13547 case $host_os in
13548 # For platforms which do not support PIC, -DPIC is meaningless:
13549 *djgpp*)
13550 lt_prog_compiler_pic_F77=
13551 ;;
13552 *)
13553 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13554 ;;
13555 esac
13556
13557 #
13558 # Check to make sure the static flag actually works.
13559 #
13560 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13561 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13562 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13563 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 lt_prog_compiler_static_works_F77=no
13567 save_LDFLAGS="$LDFLAGS"
13568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13569 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13571 # The linker can only warn and ignore the option if not recognized
13572 # So say no if there are warnings
13573 if test -s conftest.err; then
13574 # Append any errors to the config.log.
13575 cat conftest.err 1>&5
13576 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13578 if diff conftest.exp conftest.er2 >/dev/null; then
13579 lt_prog_compiler_static_works_F77=yes
13580 fi
13581 else
13582 lt_prog_compiler_static_works_F77=yes
13583 fi
13584 fi
13585 $rm conftest*
13586 LDFLAGS="$save_LDFLAGS"
13587
13588 fi
13589 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13590 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13591
13592 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13593 :
13594 else
13595 lt_prog_compiler_static_F77=
13596 fi
13597
13598
13599 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13600 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13601 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604 lt_cv_prog_compiler_c_o_F77=no
13605 $rm -r conftest 2>/dev/null
13606 mkdir conftest
13607 cd conftest
13608 mkdir out
13609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13610
13611 lt_compiler_flag="-o out/conftest2.$ac_objext"
13612 # Insert the option either (1) after the last *FLAGS variable, or
13613 # (2) before a word containing "conftest.", or (3) at the end.
13614 # Note that $ac_compile itself does not contain backslashes and begins
13615 # with a dollar sign (not a hyphen), so the echo should work correctly.
13616 lt_compile=`echo "$ac_compile" | $SED \
13617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13619 -e 's:$: $lt_compiler_flag:'`
13620 (eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
13621 (eval "$lt_compile" 2>out/conftest.err)
13622 ac_status=$?
13623 cat out/conftest.err >&5
13624 echo "$as_me:13624: \$? = $ac_status" >&5
13625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13626 then
13627 # The compiler can only warn and ignore the option if not recognized
13628 # So say no if there are warnings
13629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13632 lt_cv_prog_compiler_c_o_F77=yes
13633 fi
13634 fi
13635 chmod u+w . 2>&5
13636 $rm conftest*
13637 # SGI C++ compiler will create directory out/ii_files/ for
13638 # template instantiation
13639 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13640 $rm out/* && rmdir out
13641 cd ..
13642 rmdir conftest
13643 $rm conftest*
13644
13645 fi
13646 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13647 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13648
13649
13650 hard_links="nottested"
13651 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13652 # do not overwrite the value of need_locks provided by the user
13653 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13654 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13655 hard_links=yes
13656 $rm conftest*
13657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13658 touch conftest.a
13659 ln conftest.a conftest.b 2>&5 || hard_links=no
13660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13661 echo "$as_me:$LINENO: result: $hard_links" >&5
13662 echo "${ECHO_T}$hard_links" >&6
13663 if test "$hard_links" = no; then
13664 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13665 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13666 need_locks=warn
13667 fi
13668 else
13669 need_locks=no
13670 fi
13671
13672 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13673 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13674
13675 runpath_var=
13676 allow_undefined_flag_F77=
13677 enable_shared_with_static_runtimes_F77=no
13678 archive_cmds_F77=
13679 archive_expsym_cmds_F77=
13680 old_archive_From_new_cmds_F77=
13681 old_archive_from_expsyms_cmds_F77=
13682 export_dynamic_flag_spec_F77=
13683 whole_archive_flag_spec_F77=
13684 thread_safe_flag_spec_F77=
13685 hardcode_libdir_flag_spec_F77=
13686 hardcode_libdir_flag_spec_ld_F77=
13687 hardcode_libdir_separator_F77=
13688 hardcode_direct_F77=no
13689 hardcode_minus_L_F77=no
13690 hardcode_shlibpath_var_F77=unsupported
13691 link_all_deplibs_F77=unknown
13692 hardcode_automatic_F77=no
13693 module_cmds_F77=
13694 module_expsym_cmds_F77=
13695 always_export_symbols_F77=no
13696 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13697 # include_expsyms should be a list of space-separated symbols to be *always*
13698 # included in the symbol list
13699 include_expsyms_F77=
13700 # exclude_expsyms can be an extended regexp of symbols to exclude
13701 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13702 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13703 # as well as any symbol that contains `d'.
13704 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13705 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13706 # platforms (ab)use it in PIC code, but their linkers get confused if
13707 # the symbol is explicitly referenced. Since portable code cannot
13708 # rely on this symbol name, it's probably fine to never include it in
13709 # preloaded symbol tables.
13710 extract_expsyms_cmds=
13711 # Just being paranoid about ensuring that cc_basename is set.
13712 for cc_temp in $compiler""; do
13713 case $cc_temp in
13714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13716 \-*) ;;
13717 *) break;;
13718 esac
13719 done
13720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13721
13722 case $host_os in
13723 cygwin* | mingw* | pw32*)
13724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13725 # When not using gcc, we currently assume that we are using
13726 # Microsoft Visual C++.
13727 if test "$GCC" != yes; then
13728 with_gnu_ld=no
13729 fi
13730 ;;
13731 interix*)
13732 # we just hope/assume this is gcc and not c89 (= MSVC++)
13733 with_gnu_ld=yes
13734 ;;
13735 openbsd*)
13736 with_gnu_ld=no
13737 ;;
13738 esac
13739
13740 ld_shlibs_F77=yes
13741 if test "$with_gnu_ld" = yes; then
13742 # If archive_cmds runs LD, not CC, wlarc should be empty
13743 wlarc='${wl}'
13744
13745 # Set some defaults for GNU ld with shared library support. These
13746 # are reset later if shared libraries are not supported. Putting them
13747 # here allows them to be overridden if necessary.
13748 runpath_var=LD_RUN_PATH
13749 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13750 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13751 # ancient GNU ld didn't support --whole-archive et. al.
13752 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13753 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13754 else
13755 whole_archive_flag_spec_F77=
13756 fi
13757 supports_anon_versioning=no
13758 case `$LD -v 2>/dev/null` in
13759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13762 *\ 2.11.*) ;; # other 2.11 versions
13763 *) supports_anon_versioning=yes ;;
13764 esac
13765
13766 # See if GNU ld supports shared libraries.
13767 case $host_os in
13768 aix3* | aix4* | aix5*)
13769 # On AIX/PPC, the GNU linker is very broken
13770 if test "$host_cpu" != ia64; then
13771 ld_shlibs_F77=no
13772 cat <<EOF 1>&2
13773
13774 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13775 *** to be unable to reliably create shared libraries on AIX.
13776 *** Therefore, libtool is disabling shared libraries support. If you
13777 *** really care for shared libraries, you may want to modify your PATH
13778 *** so that a non-GNU linker is found, and then restart.
13779
13780 EOF
13781 fi
13782 ;;
13783
13784 amigaos*)
13785 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13786 hardcode_libdir_flag_spec_F77='-L$libdir'
13787 hardcode_minus_L_F77=yes
13788
13789 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13790 # that the semantics of dynamic libraries on AmigaOS, at least up
13791 # to version 4, is to share data among multiple programs linked
13792 # with the same dynamic library. Since this doesn't match the
13793 # behavior of shared libraries on other platforms, we can't use
13794 # them.
13795 ld_shlibs_F77=no
13796 ;;
13797
13798 beos*)
13799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13800 allow_undefined_flag_F77=unsupported
13801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13802 # support --undefined. This deserves some investigation. FIXME
13803 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13804 else
13805 ld_shlibs_F77=no
13806 fi
13807 ;;
13808
13809 cygwin* | mingw* | pw32*)
13810 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13811 # as there is no search path for DLLs.
13812 hardcode_libdir_flag_spec_F77='-L$libdir'
13813 allow_undefined_flag_F77=unsupported
13814 always_export_symbols_F77=no
13815 enable_shared_with_static_runtimes_F77=yes
13816 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13817
13818 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13819 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13820 # If the export-symbols file already is a .def file (1st line
13821 # is EXPORTS), use it as is; otherwise, prepend...
13822 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13823 cp $export_symbols $output_objdir/$soname.def;
13824 else
13825 echo EXPORTS > $output_objdir/$soname.def;
13826 cat $export_symbols >> $output_objdir/$soname.def;
13827 fi~
13828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13829 else
13830 ld_shlibs_F77=no
13831 fi
13832 ;;
13833
13834 interix3*)
13835 hardcode_direct_F77=no
13836 hardcode_shlibpath_var_F77=no
13837 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13838 export_dynamic_flag_spec_F77='${wl}-E'
13839 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13840 # Instead, shared libraries are loaded at an image base (0x10000000 by
13841 # default) and relocated if they conflict, which is a slow very memory
13842 # consuming and fragmenting process. To avoid this, we pick a random,
13843 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13844 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13845 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13846 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13847 ;;
13848
13849 linux*)
13850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13851 tmp_addflag=
13852 case $cc_basename,$host_cpu in
13853 pgcc*) # Portland Group C compiler
13854 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13855 tmp_addflag=' $pic_flag'
13856 ;;
13857 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13858 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13859 tmp_addflag=' $pic_flag -Mnomain' ;;
13860 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13861 tmp_addflag=' -i_dynamic' ;;
13862 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13863 tmp_addflag=' -i_dynamic -nofor_main' ;;
13864 ifc* | ifort*) # Intel Fortran compiler
13865 tmp_addflag=' -nofor_main' ;;
13866 esac
13867 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868
13869 if test $supports_anon_versioning = yes; then
13870 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13872 $echo "local: *; };" >> $output_objdir/$libname.ver~
13873 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13874 fi
13875 else
13876 ld_shlibs_F77=no
13877 fi
13878 ;;
13879
13880 netbsd*)
13881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13882 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13883 wlarc=
13884 else
13885 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13886 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13887 fi
13888 ;;
13889
13890 solaris*)
13891 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13892 ld_shlibs_F77=no
13893 cat <<EOF 1>&2
13894
13895 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13896 *** create shared libraries on Solaris systems. Therefore, libtool
13897 *** is disabling shared libraries support. We urge you to upgrade GNU
13898 *** binutils to release 2.9.1 or newer. Another option is to modify
13899 *** your PATH or compiler configuration so that the native linker is
13900 *** used, and then restart.
13901
13902 EOF
13903 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13905 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13906 else
13907 ld_shlibs_F77=no
13908 fi
13909 ;;
13910
13911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13912 case `$LD -v 2>&1` in
13913 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13914 ld_shlibs_F77=no
13915 cat <<_LT_EOF 1>&2
13916
13917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13918 *** reliably create shared libraries on SCO systems. Therefore, libtool
13919 *** is disabling shared libraries support. We urge you to upgrade GNU
13920 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13921 *** your PATH or compiler configuration so that the native linker is
13922 *** used, and then restart.
13923
13924 _LT_EOF
13925 ;;
13926 *)
13927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13928 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13931 else
13932 ld_shlibs_F77=no
13933 fi
13934 ;;
13935 esac
13936 ;;
13937
13938 sunos4*)
13939 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13940 wlarc=
13941 hardcode_direct_F77=yes
13942 hardcode_shlibpath_var_F77=no
13943 ;;
13944
13945 *)
13946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13948 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13949 else
13950 ld_shlibs_F77=no
13951 fi
13952 ;;
13953 esac
13954
13955 if test "$ld_shlibs_F77" = no; then
13956 runpath_var=
13957 hardcode_libdir_flag_spec_F77=
13958 export_dynamic_flag_spec_F77=
13959 whole_archive_flag_spec_F77=
13960 fi
13961 else
13962 # PORTME fill in a description of your system's linker (not GNU ld)
13963 case $host_os in
13964 aix3*)
13965 allow_undefined_flag_F77=unsupported
13966 always_export_symbols_F77=yes
13967 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13968 # Note: this linker hardcodes the directories in LIBPATH if there
13969 # are no directories specified by -L.
13970 hardcode_minus_L_F77=yes
13971 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13972 # Neither direct hardcoding nor static linking is supported with a
13973 # broken collect2.
13974 hardcode_direct_F77=unsupported
13975 fi
13976 ;;
13977
13978 aix4* | aix5*)
13979 if test "$host_cpu" = ia64; then
13980 # On IA64, the linker does run time linking by default, so we don't
13981 # have to do anything special.
13982 aix_use_runtimelinking=no
13983 exp_sym_flag='-Bexport'
13984 no_entry_flag=""
13985 else
13986 # If we're using GNU nm, then we don't want the "-C" option.
13987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13989 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'
13990 else
13991 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'
13992 fi
13993 aix_use_runtimelinking=no
13994
13995 # Test if we are trying to use run time linking or normal
13996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13997 # need to do runtime linking.
13998 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13999 for ld_flag in $LDFLAGS; do
14000 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14001 aix_use_runtimelinking=yes
14002 break
14003 fi
14004 done
14005 ;;
14006 esac
14007
14008 exp_sym_flag='-bexport'
14009 no_entry_flag='-bnoentry'
14010 fi
14011
14012 # When large executables or shared objects are built, AIX ld can
14013 # have problems creating the table of contents. If linking a library
14014 # or program results in "error TOC overflow" add -mminimal-toc to
14015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14017
14018 archive_cmds_F77=''
14019 hardcode_direct_F77=yes
14020 hardcode_libdir_separator_F77=':'
14021 link_all_deplibs_F77=yes
14022
14023 if test "$GCC" = yes; then
14024 case $host_os in aix4.[012]|aix4.[012].*)
14025 # We only want to do this on AIX 4.2 and lower, the check
14026 # below for broken collect2 doesn't work under 4.3+
14027 collect2name=`${CC} -print-prog-name=collect2`
14028 if test -f "$collect2name" && \
14029 strings "$collect2name" | grep resolve_lib_name >/dev/null
14030 then
14031 # We have reworked collect2
14032 hardcode_direct_F77=yes
14033 else
14034 # We have old collect2
14035 hardcode_direct_F77=unsupported
14036 # It fails to find uninstalled libraries when the uninstalled
14037 # path is not listed in the libpath. Setting hardcode_minus_L
14038 # to unsupported forces relinking
14039 hardcode_minus_L_F77=yes
14040 hardcode_libdir_flag_spec_F77='-L$libdir'
14041 hardcode_libdir_separator_F77=
14042 fi
14043 ;;
14044 esac
14045 shared_flag='-shared'
14046 if test "$aix_use_runtimelinking" = yes; then
14047 shared_flag="$shared_flag "'${wl}-G'
14048 fi
14049 else
14050 # not using gcc
14051 if test "$host_cpu" = ia64; then
14052 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14053 # chokes on -Wl,-G. The following line is correct:
14054 shared_flag='-G'
14055 else
14056 if test "$aix_use_runtimelinking" = yes; then
14057 shared_flag='${wl}-G'
14058 else
14059 shared_flag='${wl}-bM:SRE'
14060 fi
14061 fi
14062 fi
14063
14064 # It seems that -bexpall does not export symbols beginning with
14065 # underscore (_), so it is better to generate a list of symbols to export.
14066 always_export_symbols_F77=yes
14067 if test "$aix_use_runtimelinking" = yes; then
14068 # Warning - without using the other runtime loading flags (-brtl),
14069 # -berok will link without error, but may produce a broken library.
14070 allow_undefined_flag_F77='-berok'
14071 # Determine the default libpath from the value encoded in an empty executable.
14072 cat >conftest.$ac_ext <<_ACEOF
14073 program main
14074
14075 end
14076 _ACEOF
14077 rm -f conftest.$ac_objext conftest$ac_exeext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14079 (eval $ac_link) 2>conftest.er1
14080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } &&
14086 { ac_try='test -z "$ac_f77_werror_flag"
14087 || test ! -s conftest.err'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
14099
14100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14101 }'`
14102 # Check for a 64-bit object if we didn't find anything.
14103 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; }
14104 }'`; fi
14105 else
14106 echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 fi
14110 rm -f conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14113
14114 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14115 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14116 else
14117 if test "$host_cpu" = ia64; then
14118 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14119 allow_undefined_flag_F77="-z nodefs"
14120 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14121 else
14122 # Determine the default libpath from the value encoded in an empty executable.
14123 cat >conftest.$ac_ext <<_ACEOF
14124 program main
14125
14126 end
14127 _ACEOF
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130 (eval $ac_link) 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -z "$ac_f77_werror_flag"
14138 || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150
14151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14152 }'`
14153 # Check for a 64-bit object if we didn't find anything.
14154 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; }
14155 }'`; fi
14156 else
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160 fi
14161 rm -f conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
14163 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14164
14165 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14166 # Warning - without using the other run time loading flags,
14167 # -berok will link without error, but may produce a broken library.
14168 no_undefined_flag_F77=' ${wl}-bernotok'
14169 allow_undefined_flag_F77=' ${wl}-berok'
14170 # Exported symbols can be pulled into shared objects from archives
14171 whole_archive_flag_spec_F77='$convenience'
14172 archive_cmds_need_lc_F77=yes
14173 # This is similar to how AIX traditionally builds its shared libraries.
14174 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14175 fi
14176 fi
14177 ;;
14178
14179 amigaos*)
14180 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14181 hardcode_libdir_flag_spec_F77='-L$libdir'
14182 hardcode_minus_L_F77=yes
14183 # see comment about different semantics on the GNU ld section
14184 ld_shlibs_F77=no
14185 ;;
14186
14187 bsdi[45]*)
14188 export_dynamic_flag_spec_F77=-rdynamic
14189 ;;
14190
14191 cygwin* | mingw* | pw32*)
14192 # When not using gcc, we currently assume that we are using
14193 # Microsoft Visual C++.
14194 # hardcode_libdir_flag_spec is actually meaningless, as there is
14195 # no search path for DLLs.
14196 hardcode_libdir_flag_spec_F77=' '
14197 allow_undefined_flag_F77=unsupported
14198 # Tell ltmain to make .lib files, not .a files.
14199 libext=lib
14200 # Tell ltmain to make .dll files, not .so files.
14201 shrext_cmds=".dll"
14202 # FIXME: Setting linknames here is a bad hack.
14203 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14204 # The linker will automatically build a .lib file if we build a DLL.
14205 old_archive_From_new_cmds_F77='true'
14206 # FIXME: Should let the user specify the lib program.
14207 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14208 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14209 enable_shared_with_static_runtimes_F77=yes
14210 ;;
14211
14212 darwin* | rhapsody*)
14213 case $host_os in
14214 rhapsody* | darwin1.[012])
14215 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14216 ;;
14217 *) # Darwin 1.3 on
14218 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14219 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14220 else
14221 case ${MACOSX_DEPLOYMENT_TARGET} in
14222 10.[012])
14223 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14224 ;;
14225 10.*)
14226 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14227 ;;
14228 esac
14229 fi
14230 ;;
14231 esac
14232 archive_cmds_need_lc_F77=no
14233 hardcode_direct_F77=no
14234 hardcode_automatic_F77=yes
14235 hardcode_shlibpath_var_F77=unsupported
14236 whole_archive_flag_spec_F77=''
14237 link_all_deplibs_F77=yes
14238 if test "$GCC" = yes ; then
14239 output_verbose_link_cmd='echo'
14240 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14241 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14243 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14244 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14245 else
14246 case $cc_basename in
14247 xlc*)
14248 output_verbose_link_cmd='echo'
14249 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14250 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14251 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14252 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14253 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14254 ;;
14255 *)
14256 ld_shlibs_F77=no
14257 ;;
14258 esac
14259 fi
14260 ;;
14261
14262 dgux*)
14263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264 hardcode_libdir_flag_spec_F77='-L$libdir'
14265 hardcode_shlibpath_var_F77=no
14266 ;;
14267
14268 freebsd1*)
14269 ld_shlibs_F77=no
14270 ;;
14271
14272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14273 # support. Future versions do this automatically, but an explicit c++rt0.o
14274 # does not break anything, and helps significantly (at the cost of a little
14275 # extra space).
14276 freebsd2.2*)
14277 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14278 hardcode_libdir_flag_spec_F77='-R$libdir'
14279 hardcode_direct_F77=yes
14280 hardcode_shlibpath_var_F77=no
14281 ;;
14282
14283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14284 freebsd2*)
14285 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14286 hardcode_direct_F77=yes
14287 hardcode_minus_L_F77=yes
14288 hardcode_shlibpath_var_F77=no
14289 ;;
14290
14291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14292 freebsd* | kfreebsd*-gnu | dragonfly*)
14293 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14294 hardcode_libdir_flag_spec_F77='-R$libdir'
14295 hardcode_direct_F77=yes
14296 hardcode_shlibpath_var_F77=no
14297 ;;
14298
14299 hpux9*)
14300 if test "$GCC" = yes; then
14301 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14302 else
14303 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14304 fi
14305 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14306 hardcode_libdir_separator_F77=:
14307 hardcode_direct_F77=yes
14308
14309 # hardcode_minus_L: Not really in the search PATH,
14310 # but as the default location of the library.
14311 hardcode_minus_L_F77=yes
14312 export_dynamic_flag_spec_F77='${wl}-E'
14313 ;;
14314
14315 hpux10*)
14316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14317 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14318 else
14319 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14320 fi
14321 if test "$with_gnu_ld" = no; then
14322 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14323 hardcode_libdir_separator_F77=:
14324
14325 hardcode_direct_F77=yes
14326 export_dynamic_flag_spec_F77='${wl}-E'
14327
14328 # hardcode_minus_L: Not really in the search PATH,
14329 # but as the default location of the library.
14330 hardcode_minus_L_F77=yes
14331 fi
14332 ;;
14333
14334 hpux11*)
14335 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14336 case $host_cpu in
14337 hppa*64*)
14338 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 ;;
14340 ia64*)
14341 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14342 ;;
14343 *)
14344 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14345 ;;
14346 esac
14347 else
14348 case $host_cpu in
14349 hppa*64*)
14350 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14351 ;;
14352 ia64*)
14353 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14354 ;;
14355 *)
14356 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14357 ;;
14358 esac
14359 fi
14360 if test "$with_gnu_ld" = no; then
14361 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14362 hardcode_libdir_separator_F77=:
14363
14364 case $host_cpu in
14365 hppa*64*|ia64*)
14366 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14367 hardcode_direct_F77=no
14368 hardcode_shlibpath_var_F77=no
14369 ;;
14370 *)
14371 hardcode_direct_F77=yes
14372 export_dynamic_flag_spec_F77='${wl}-E'
14373
14374 # hardcode_minus_L: Not really in the search PATH,
14375 # but as the default location of the library.
14376 hardcode_minus_L_F77=yes
14377 ;;
14378 esac
14379 fi
14380 ;;
14381
14382 irix5* | irix6* | nonstopux*)
14383 if test "$GCC" = yes; then
14384 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'
14385 else
14386 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'
14387 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14388 fi
14389 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14390 hardcode_libdir_separator_F77=:
14391 link_all_deplibs_F77=yes
14392 ;;
14393
14394 netbsd*)
14395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14396 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14397 else
14398 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14399 fi
14400 hardcode_libdir_flag_spec_F77='-R$libdir'
14401 hardcode_direct_F77=yes
14402 hardcode_shlibpath_var_F77=no
14403 ;;
14404
14405 newsos6)
14406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_direct_F77=yes
14408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14409 hardcode_libdir_separator_F77=:
14410 hardcode_shlibpath_var_F77=no
14411 ;;
14412
14413 openbsd*)
14414 hardcode_direct_F77=yes
14415 hardcode_shlibpath_var_F77=no
14416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14417 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14418 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14419 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14420 export_dynamic_flag_spec_F77='${wl}-E'
14421 else
14422 case $host_os in
14423 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14424 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14425 hardcode_libdir_flag_spec_F77='-R$libdir'
14426 ;;
14427 *)
14428 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14429 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14430 ;;
14431 esac
14432 fi
14433 ;;
14434
14435 os2*)
14436 hardcode_libdir_flag_spec_F77='-L$libdir'
14437 hardcode_minus_L_F77=yes
14438 allow_undefined_flag_F77=unsupported
14439 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14440 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14441 ;;
14442
14443 osf3*)
14444 if test "$GCC" = yes; then
14445 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14446 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'
14447 else
14448 allow_undefined_flag_F77=' -expect_unresolved \*'
14449 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'
14450 fi
14451 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14452 hardcode_libdir_separator_F77=:
14453 ;;
14454
14455 osf4* | osf5*) # as osf3* with the addition of -msym flag
14456 if test "$GCC" = yes; then
14457 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14458 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'
14459 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460 else
14461 allow_undefined_flag_F77=' -expect_unresolved \*'
14462 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'
14463 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~
14464 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14465
14466 # Both c and cxx compiler support -rpath directly
14467 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14468 fi
14469 hardcode_libdir_separator_F77=:
14470 ;;
14471
14472 solaris*)
14473 no_undefined_flag_F77=' -z text'
14474 if test "$GCC" = yes; then
14475 wlarc='${wl}'
14476 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14477 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14478 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14479 else
14480 wlarc=''
14481 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14484 fi
14485 hardcode_libdir_flag_spec_F77='-R$libdir'
14486 hardcode_shlibpath_var_F77=no
14487 case $host_os in
14488 solaris2.[0-5] | solaris2.[0-5].*) ;;
14489 *)
14490 # The compiler driver will combine linker options so we
14491 # cannot just pass the convience library names through
14492 # without $wl, iff we do not link with $LD.
14493 # Luckily, gcc supports the same syntax we need for Sun Studio.
14494 # Supported since Solaris 2.6 (maybe 2.5.1?)
14495 case $wlarc in
14496 '')
14497 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14498 *)
14499 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14500 esac ;;
14501 esac
14502 link_all_deplibs_F77=yes
14503 ;;
14504
14505 sunos4*)
14506 if test "x$host_vendor" = xsequent; then
14507 # Use $CC to link under sequent, because it throws in some extra .o
14508 # files that make .init and .fini sections work.
14509 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14510 else
14511 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14512 fi
14513 hardcode_libdir_flag_spec_F77='-L$libdir'
14514 hardcode_direct_F77=yes
14515 hardcode_minus_L_F77=yes
14516 hardcode_shlibpath_var_F77=no
14517 ;;
14518
14519 sysv4)
14520 case $host_vendor in
14521 sni)
14522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_direct_F77=yes # is this really true???
14524 ;;
14525 siemens)
14526 ## LD is ld it makes a PLAMLIB
14527 ## CC just makes a GrossModule.
14528 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14529 reload_cmds_F77='$CC -r -o $output$reload_objs'
14530 hardcode_direct_F77=no
14531 ;;
14532 motorola)
14533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14534 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14535 ;;
14536 esac
14537 runpath_var='LD_RUN_PATH'
14538 hardcode_shlibpath_var_F77=no
14539 ;;
14540
14541 sysv4.3*)
14542 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14543 hardcode_shlibpath_var_F77=no
14544 export_dynamic_flag_spec_F77='-Bexport'
14545 ;;
14546
14547 sysv4*MP*)
14548 if test -d /usr/nec; then
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_shlibpath_var_F77=no
14551 runpath_var=LD_RUN_PATH
14552 hardcode_runpath_var=yes
14553 ld_shlibs_F77=yes
14554 fi
14555 ;;
14556
14557 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14558 no_undefined_flag_F77='${wl}-z,text'
14559 archive_cmds_need_lc_F77=no
14560 hardcode_shlibpath_var_F77=no
14561 runpath_var='LD_RUN_PATH'
14562
14563 if test "$GCC" = yes; then
14564 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14565 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 else
14567 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14569 fi
14570 ;;
14571
14572 sysv5* | sco3.2v5* | sco5v6*)
14573 # Note: We can NOT use -z defs as we might desire, because we do not
14574 # link with -lc, and that would cause any symbols used from libc to
14575 # always be unresolved, which means just about no library would
14576 # ever link correctly. If we're not using GNU ld we use -z text
14577 # though, which does catch some bad symbols but isn't as heavy-handed
14578 # as -z defs.
14579 no_undefined_flag_F77='${wl}-z,text'
14580 allow_undefined_flag_F77='${wl}-z,nodefs'
14581 archive_cmds_need_lc_F77=no
14582 hardcode_shlibpath_var_F77=no
14583 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14584 hardcode_libdir_separator_F77=':'
14585 link_all_deplibs_F77=yes
14586 export_dynamic_flag_spec_F77='${wl}-Bexport'
14587 runpath_var='LD_RUN_PATH'
14588
14589 if test "$GCC" = yes; then
14590 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14592 else
14593 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14594 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14595 fi
14596 ;;
14597
14598 uts4*)
14599 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14600 hardcode_libdir_flag_spec_F77='-L$libdir'
14601 hardcode_shlibpath_var_F77=no
14602 ;;
14603
14604 *)
14605 ld_shlibs_F77=no
14606 ;;
14607 esac
14608 fi
14609
14610 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14611 echo "${ECHO_T}$ld_shlibs_F77" >&6
14612 test "$ld_shlibs_F77" = no && can_build_shared=no
14613
14614 #
14615 # Do we need to explicitly link libc?
14616 #
14617 case "x$archive_cmds_need_lc_F77" in
14618 x|xyes)
14619 # Assume -lc should be added
14620 archive_cmds_need_lc_F77=yes
14621
14622 if test "$enable_shared" = yes && test "$GCC" = yes; then
14623 case $archive_cmds_F77 in
14624 *'~'*)
14625 # FIXME: we may have to deal with multi-command sequences.
14626 ;;
14627 '$CC '*)
14628 # Test whether the compiler implicitly links with -lc since on some
14629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14630 # to ld, don't add -lc before -lgcc.
14631 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14633 $rm conftest*
14634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14635
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } 2>conftest.err; then
14641 soname=conftest
14642 lib=conftest
14643 libobjs=conftest.$ac_objext
14644 deplibs=
14645 wl=$lt_prog_compiler_wl_F77
14646 pic_flag=$lt_prog_compiler_pic_F77
14647 compiler_flags=-v
14648 linker_flags=-v
14649 verstring=
14650 output_objdir=.
14651 libname=conftest
14652 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14653 allow_undefined_flag_F77=
14654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14655 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }
14659 then
14660 archive_cmds_need_lc_F77=no
14661 else
14662 archive_cmds_need_lc_F77=yes
14663 fi
14664 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14665 else
14666 cat conftest.err 1>&5
14667 fi
14668 $rm conftest*
14669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14670 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14671 ;;
14672 esac
14673 fi
14674 ;;
14675 esac
14676
14677 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14678 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14679 library_names_spec=
14680 libname_spec='lib$name'
14681 soname_spec=
14682 shrext_cmds=".so"
14683 postinstall_cmds=
14684 postuninstall_cmds=
14685 finish_cmds=
14686 finish_eval=
14687 shlibpath_var=
14688 shlibpath_overrides_runpath=unknown
14689 version_type=none
14690 dynamic_linker="$host_os ld.so"
14691 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14692 if test "$GCC" = yes; then
14693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14694 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14695 # if the path contains ";" then we assume it to be the separator
14696 # otherwise default to the standard path separator (i.e. ":") - it is
14697 # assumed that no part of a normal pathname contains ";" but that should
14698 # okay in the real world where ";" in dirpaths is itself problematic.
14699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14700 else
14701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14702 fi
14703 else
14704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14705 fi
14706 need_lib_prefix=unknown
14707 hardcode_into_libs=no
14708
14709 # when you set need_version to no, make sure it does not cause -set_version
14710 # flags to be left without arguments
14711 need_version=unknown
14712
14713 case $host_os in
14714 aix3*)
14715 version_type=linux
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14717 shlibpath_var=LIBPATH
14718
14719 # AIX 3 has no versioning support, so we append a major version to the name.
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 ;;
14722
14723 aix4* | aix5*)
14724 version_type=linux
14725 need_lib_prefix=no
14726 need_version=no
14727 hardcode_into_libs=yes
14728 if test "$host_cpu" = ia64; then
14729 # AIX 5 supports IA64
14730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 else
14733 # With GCC up to 2.95.x, collect2 would create an import file
14734 # for dependence libraries. The import file would start with
14735 # the line `#! .'. This would cause the generated library to
14736 # depend on `.', always an invalid library. This was fixed in
14737 # development snapshots of GCC prior to 3.0.
14738 case $host_os in
14739 aix4 | aix4.[01] | aix4.[01].*)
14740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14741 echo ' yes '
14742 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14743 :
14744 else
14745 can_build_shared=no
14746 fi
14747 ;;
14748 esac
14749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14750 # soname into executable. Probably we can add versioning support to
14751 # collect2, so additional links can be useful in future.
14752 if test "$aix_use_runtimelinking" = yes; then
14753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14754 # instead of lib<name>.a to let people know that these are not
14755 # typical AIX shared libraries.
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 else
14758 # We preserve .a as extension for shared libraries through AIX4.2
14759 # and later when we are not doing run time linking.
14760 library_names_spec='${libname}${release}.a $libname.a'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 fi
14763 shlibpath_var=LIBPATH
14764 fi
14765 ;;
14766
14767 amigaos*)
14768 library_names_spec='$libname.ixlibrary $libname.a'
14769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14770 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'
14771 ;;
14772
14773 beos*)
14774 library_names_spec='${libname}${shared_ext}'
14775 dynamic_linker="$host_os ld.so"
14776 shlibpath_var=LIBRARY_PATH
14777 ;;
14778
14779 bsdi[45]*)
14780 version_type=linux
14781 need_version=no
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14788 # the default ld.so.conf also contains /usr/contrib/lib and
14789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14790 # libtool to hard-code these into programs
14791 ;;
14792
14793 cygwin* | mingw* | pw32*)
14794 version_type=windows
14795 shrext_cmds=".dll"
14796 need_version=no
14797 need_lib_prefix=no
14798
14799 case $GCC,$host_os in
14800 yes,cygwin* | yes,mingw* | yes,pw32*)
14801 library_names_spec='$libname.dll.a'
14802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14803 postinstall_cmds='base_file=`basename \${file}`~
14804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14805 dldir=$destdir/`dirname \$dlpath`~
14806 test -d \$dldir || mkdir -p \$dldir~
14807 $install_prog $dir/$dlname \$dldir/$dlname~
14808 chmod a+x \$dldir/$dlname'
14809 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14810 dlpath=$dir/\$dldll~
14811 $rm \$dlpath'
14812 shlibpath_overrides_runpath=yes
14813
14814 case $host_os in
14815 cygwin*)
14816 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14817 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14818 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14819 ;;
14820 mingw*)
14821 # MinGW DLLs use traditional 'lib' prefix
14822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14823 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14824 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14825 # It is most probably a Windows format PATH printed by
14826 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14827 # path with ; separators, and with drive letters. We can handle the
14828 # drive letters (cygwin fileutils understands them), so leave them,
14829 # especially as we might pass files found there to a mingw objdump,
14830 # which wouldn't understand a cygwinified path. Ahh.
14831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14832 else
14833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14834 fi
14835 ;;
14836 pw32*)
14837 # pw32 DLLs use 'pw' prefix rather than 'lib'
14838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14839 ;;
14840 esac
14841 ;;
14842
14843 *)
14844 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14845 ;;
14846 esac
14847 dynamic_linker='Win32 ld.exe'
14848 # FIXME: first we should search . and the directory the executable is in
14849 shlibpath_var=PATH
14850 ;;
14851
14852 darwin* | rhapsody*)
14853 dynamic_linker="$host_os dyld"
14854 version_type=darwin
14855 need_lib_prefix=no
14856 need_version=no
14857 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14858 soname_spec='${libname}${release}${major}$shared_ext'
14859 shlibpath_overrides_runpath=yes
14860 shlibpath_var=DYLD_LIBRARY_PATH
14861 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14862 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14863 if test "$GCC" = yes; then
14864 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"`
14865 else
14866 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14867 fi
14868 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14869 ;;
14870
14871 dgux*)
14872 version_type=linux
14873 need_lib_prefix=no
14874 need_version=no
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 ;;
14879
14880 freebsd1*)
14881 dynamic_linker=no
14882 ;;
14883
14884 kfreebsd*-gnu)
14885 version_type=linux
14886 need_lib_prefix=no
14887 need_version=no
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14889 soname_spec='${libname}${release}${shared_ext}$major'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=no
14892 hardcode_into_libs=yes
14893 dynamic_linker='GNU ld.so'
14894 ;;
14895
14896 freebsd* | dragonfly*)
14897 # DragonFly does not have aout. When/if they implement a new
14898 # versioning mechanism, adjust this.
14899 if test -x /usr/bin/objformat; then
14900 objformat=`/usr/bin/objformat`
14901 else
14902 case $host_os in
14903 freebsd[123]*) objformat=aout ;;
14904 *) objformat=elf ;;
14905 esac
14906 fi
14907 version_type=freebsd-$objformat
14908 case $version_type in
14909 freebsd-elf*)
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14911 need_version=no
14912 need_lib_prefix=no
14913 ;;
14914 freebsd-*)
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14916 need_version=yes
14917 ;;
14918 esac
14919 shlibpath_var=LD_LIBRARY_PATH
14920 case $host_os in
14921 freebsd2*)
14922 shlibpath_overrides_runpath=yes
14923 ;;
14924 freebsd3.[01]* | freebsdelf3.[01]*)
14925 shlibpath_overrides_runpath=yes
14926 hardcode_into_libs=yes
14927 ;;
14928 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14929 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14930 shlibpath_overrides_runpath=no
14931 hardcode_into_libs=yes
14932 ;;
14933 freebsd*) # from 4.6 on
14934 shlibpath_overrides_runpath=yes
14935 hardcode_into_libs=yes
14936 ;;
14937 esac
14938 ;;
14939
14940 gnu*)
14941 version_type=linux
14942 need_lib_prefix=no
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 hardcode_into_libs=yes
14948 ;;
14949
14950 hpux9* | hpux10* | hpux11*)
14951 # Give a soname corresponding to the major version so that dld.sl refuses to
14952 # link against other versions.
14953 version_type=sunos
14954 need_lib_prefix=no
14955 need_version=no
14956 case $host_cpu in
14957 ia64*)
14958 shrext_cmds='.so'
14959 hardcode_into_libs=yes
14960 dynamic_linker="$host_os dld.so"
14961 shlibpath_var=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 if test "X$HPUX_IA64_MODE" = X32; then
14966 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14967 else
14968 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14969 fi
14970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14971 ;;
14972 hppa*64*)
14973 shrext_cmds='.sl'
14974 hardcode_into_libs=yes
14975 dynamic_linker="$host_os dld.sl"
14976 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14982 ;;
14983 *)
14984 shrext_cmds='.sl'
14985 dynamic_linker="$host_os dld.sl"
14986 shlibpath_var=SHLIB_PATH
14987 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 ;;
14991 esac
14992 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14993 postinstall_cmds='chmod 555 $lib'
14994 ;;
14995
14996 interix3*)
14997 version_type=linux
14998 need_lib_prefix=no
14999 need_version=no
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=no
15005 hardcode_into_libs=yes
15006 ;;
15007
15008 irix5* | irix6* | nonstopux*)
15009 case $host_os in
15010 nonstopux*) version_type=nonstopux ;;
15011 *)
15012 if test "$lt_cv_prog_gnu_ld" = yes; then
15013 version_type=linux
15014 else
15015 version_type=irix
15016 fi ;;
15017 esac
15018 need_lib_prefix=no
15019 need_version=no
15020 soname_spec='${libname}${release}${shared_ext}$major'
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15022 case $host_os in
15023 irix5* | nonstopux*)
15024 libsuff= shlibsuff=
15025 ;;
15026 *)
15027 case $LD in # libtool.m4 will add one of these switches to LD
15028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15029 libsuff= shlibsuff= libmagic=32-bit;;
15030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15031 libsuff=32 shlibsuff=N32 libmagic=N32;;
15032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15034 *) libsuff= shlibsuff= libmagic=never-match;;
15035 esac
15036 ;;
15037 esac
15038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15039 shlibpath_overrides_runpath=no
15040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15042 hardcode_into_libs=yes
15043 ;;
15044
15045 # No shared lib support for Linux oldld, aout, or coff.
15046 linux*oldld* | linux*aout* | linux*coff*)
15047 dynamic_linker=no
15048 ;;
15049
15050 # This must be Linux ELF.
15051 linux*)
15052 version_type=linux
15053 need_lib_prefix=no
15054 need_version=no
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath=no
15060 # This implies no fast_install, which is unacceptable.
15061 # Some rework will be needed to allow for fast_install
15062 # before this can be enabled.
15063 hardcode_into_libs=yes
15064
15065 # find out which ABI we are using
15066 libsuff=
15067 case "$host_cpu" in
15068 x86_64*|s390x*|powerpc64*)
15069 echo '#line 15069 "configure"' > conftest.$ac_ext
15070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15071 (eval $ac_compile) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; then
15075 case `/usr/bin/file conftest.$ac_objext` in
15076 *64-bit*)
15077 libsuff=64
15078 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15079 ;;
15080 esac
15081 fi
15082 rm -rf conftest*
15083 ;;
15084 esac
15085
15086 # Append ld.so.conf contents to the search path
15087 if test -f /etc/ld.so.conf; then
15088 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15089 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15090 fi
15091
15092 # We used to test for /lib/ld.so.1 and disable shared libraries on
15093 # powerpc, because MkLinux only supported shared libraries with the
15094 # GNU dynamic linker. Since this was broken with cross compilers,
15095 # most powerpc-linux boxes support dynamic linking these days and
15096 # people can always --disable-shared, the test was removed, and we
15097 # assume the GNU/Linux dynamic linker is in use.
15098 dynamic_linker='GNU/Linux ld.so'
15099 ;;
15100
15101 knetbsd*-gnu)
15102 version_type=linux
15103 need_lib_prefix=no
15104 need_version=no
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=no
15109 hardcode_into_libs=yes
15110 dynamic_linker='GNU ld.so'
15111 ;;
15112
15113 netbsd*)
15114 version_type=sunos
15115 need_lib_prefix=no
15116 need_version=no
15117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15120 dynamic_linker='NetBSD (a.out) ld.so'
15121 else
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15123 soname_spec='${libname}${release}${shared_ext}$major'
15124 dynamic_linker='NetBSD ld.elf_so'
15125 fi
15126 shlibpath_var=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath=yes
15128 hardcode_into_libs=yes
15129 ;;
15130
15131 newsos6)
15132 version_type=linux
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 shlibpath_var=LD_LIBRARY_PATH
15135 shlibpath_overrides_runpath=yes
15136 ;;
15137
15138 nto-qnx*)
15139 version_type=linux
15140 need_lib_prefix=no
15141 need_version=no
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 shlibpath_overrides_runpath=yes
15146 ;;
15147
15148 openbsd*)
15149 version_type=sunos
15150 sys_lib_dlsearch_path_spec="/usr/lib"
15151 need_lib_prefix=no
15152 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15153 case $host_os in
15154 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15155 *) need_version=no ;;
15156 esac
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15161 case $host_os in
15162 openbsd2.[89] | openbsd2.[89].*)
15163 shlibpath_overrides_runpath=no
15164 ;;
15165 *)
15166 shlibpath_overrides_runpath=yes
15167 ;;
15168 esac
15169 else
15170 shlibpath_overrides_runpath=yes
15171 fi
15172 ;;
15173
15174 os2*)
15175 libname_spec='$name'
15176 shrext_cmds=".dll"
15177 need_lib_prefix=no
15178 library_names_spec='$libname${shared_ext} $libname.a'
15179 dynamic_linker='OS/2 ld.exe'
15180 shlibpath_var=LIBPATH
15181 ;;
15182
15183 osf3* | osf4* | osf5*)
15184 version_type=osf
15185 need_lib_prefix=no
15186 need_version=no
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15191 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15192 ;;
15193
15194 solaris*)
15195 version_type=linux
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=yes
15202 hardcode_into_libs=yes
15203 # ldd complains unless libraries are executable
15204 postinstall_cmds='chmod +x $lib'
15205 ;;
15206
15207 sunos4*)
15208 version_type=sunos
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=yes
15213 if test "$with_gnu_ld" = yes; then
15214 need_lib_prefix=no
15215 fi
15216 need_version=yes
15217 ;;
15218
15219 sysv4 | sysv4.3*)
15220 version_type=linux
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 case $host_vendor in
15225 sni)
15226 shlibpath_overrides_runpath=no
15227 need_lib_prefix=no
15228 export_dynamic_flag_spec='${wl}-Blargedynsym'
15229 runpath_var=LD_RUN_PATH
15230 ;;
15231 siemens)
15232 need_lib_prefix=no
15233 ;;
15234 motorola)
15235 need_lib_prefix=no
15236 need_version=no
15237 shlibpath_overrides_runpath=no
15238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15239 ;;
15240 esac
15241 ;;
15242
15243 sysv4*MP*)
15244 if test -d /usr/nec ;then
15245 version_type=linux
15246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15247 soname_spec='$libname${shared_ext}.$major'
15248 shlibpath_var=LD_LIBRARY_PATH
15249 fi
15250 ;;
15251
15252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15253 version_type=freebsd-elf
15254 need_lib_prefix=no
15255 need_version=no
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 hardcode_into_libs=yes
15260 if test "$with_gnu_ld" = yes; then
15261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15262 shlibpath_overrides_runpath=no
15263 else
15264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15265 shlibpath_overrides_runpath=yes
15266 case $host_os in
15267 sco3.2v5*)
15268 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15269 ;;
15270 esac
15271 fi
15272 sys_lib_dlsearch_path_spec='/usr/lib'
15273 ;;
15274
15275 uts4*)
15276 version_type=linux
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 ;;
15281
15282 *)
15283 dynamic_linker=no
15284 ;;
15285 esac
15286 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15287 echo "${ECHO_T}$dynamic_linker" >&6
15288 test "$dynamic_linker" = no && can_build_shared=no
15289
15290 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15291 if test "$GCC" = yes; then
15292 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15293 fi
15294
15295 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15296 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15297 hardcode_action_F77=
15298 if test -n "$hardcode_libdir_flag_spec_F77" || \
15299 test -n "$runpath_var_F77" || \
15300 test "X$hardcode_automatic_F77" = "Xyes" ; then
15301
15302 # We can hardcode non-existant directories.
15303 if test "$hardcode_direct_F77" != no &&
15304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15305 # have to relink, otherwise we might link with an installed library
15306 # when we should be linking with a yet-to-be-installed one
15307 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15308 test "$hardcode_minus_L_F77" != no; then
15309 # Linking always hardcodes the temporary library directory.
15310 hardcode_action_F77=relink
15311 else
15312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15313 hardcode_action_F77=immediate
15314 fi
15315 else
15316 # We cannot hardcode anything, or else we can only hardcode existing
15317 # directories.
15318 hardcode_action_F77=unsupported
15319 fi
15320 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15321 echo "${ECHO_T}$hardcode_action_F77" >&6
15322
15323 if test "$hardcode_action_F77" = relink; then
15324 # Fast installation is not supported
15325 enable_fast_install=no
15326 elif test "$shlibpath_overrides_runpath" = yes ||
15327 test "$enable_shared" = no; then
15328 # Fast installation is not necessary
15329 enable_fast_install=needless
15330 fi
15331
15332
15333 # The else clause should only fire when bootstrapping the
15334 # libtool distribution, otherwise you forgot to ship ltmain.sh
15335 # with your package, and you will get complaints that there are
15336 # no rules to generate ltmain.sh.
15337 if test -f "$ltmain"; then
15338 # See if we are running on zsh, and set the options which allow our commands through
15339 # without removal of \ escapes.
15340 if test -n "${ZSH_VERSION+set}" ; then
15341 setopt NO_GLOB_SUBST
15342 fi
15343 # Now quote all the things that may contain metacharacters while being
15344 # careful not to overquote the AC_SUBSTed values. We take copies of the
15345 # variables and quote the copies for generation of the libtool script.
15346 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15347 SED SHELL STRIP \
15348 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15349 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15350 deplibs_check_method reload_flag reload_cmds need_locks \
15351 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15352 lt_cv_sys_global_symbol_to_c_name_address \
15353 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15354 old_postinstall_cmds old_postuninstall_cmds \
15355 compiler_F77 \
15356 CC_F77 \
15357 LD_F77 \
15358 lt_prog_compiler_wl_F77 \
15359 lt_prog_compiler_pic_F77 \
15360 lt_prog_compiler_static_F77 \
15361 lt_prog_compiler_no_builtin_flag_F77 \
15362 export_dynamic_flag_spec_F77 \
15363 thread_safe_flag_spec_F77 \
15364 whole_archive_flag_spec_F77 \
15365 enable_shared_with_static_runtimes_F77 \
15366 old_archive_cmds_F77 \
15367 old_archive_from_new_cmds_F77 \
15368 predep_objects_F77 \
15369 postdep_objects_F77 \
15370 predeps_F77 \
15371 postdeps_F77 \
15372 compiler_lib_search_path_F77 \
15373 archive_cmds_F77 \
15374 archive_expsym_cmds_F77 \
15375 postinstall_cmds_F77 \
15376 postuninstall_cmds_F77 \
15377 old_archive_from_expsyms_cmds_F77 \
15378 allow_undefined_flag_F77 \
15379 no_undefined_flag_F77 \
15380 export_symbols_cmds_F77 \
15381 hardcode_libdir_flag_spec_F77 \
15382 hardcode_libdir_flag_spec_ld_F77 \
15383 hardcode_libdir_separator_F77 \
15384 hardcode_automatic_F77 \
15385 module_cmds_F77 \
15386 module_expsym_cmds_F77 \
15387 lt_cv_prog_compiler_c_o_F77 \
15388 exclude_expsyms_F77 \
15389 include_expsyms_F77; do
15390
15391 case $var in
15392 old_archive_cmds_F77 | \
15393 old_archive_from_new_cmds_F77 | \
15394 archive_cmds_F77 | \
15395 archive_expsym_cmds_F77 | \
15396 module_cmds_F77 | \
15397 module_expsym_cmds_F77 | \
15398 old_archive_from_expsyms_cmds_F77 | \
15399 export_symbols_cmds_F77 | \
15400 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15401 postinstall_cmds | postuninstall_cmds | \
15402 old_postinstall_cmds | old_postuninstall_cmds | \
15403 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15404 # Double-quote double-evaled strings.
15405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15406 ;;
15407 *)
15408 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15409 ;;
15410 esac
15411 done
15412
15413 case $lt_echo in
15414 *'\$0 --fallback-echo"')
15415 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15416 ;;
15417 esac
15418
15419 cfgfile="$ofile"
15420
15421 cat <<__EOF__ >> "$cfgfile"
15422 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15423
15424 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15425
15426 # Shell to use when invoking shell scripts.
15427 SHELL=$lt_SHELL
15428
15429 # Whether or not to build shared libraries.
15430 build_libtool_libs=$enable_shared
15431
15432 # Whether or not to build static libraries.
15433 build_old_libs=$enable_static
15434
15435 # Whether or not to add -lc for building shared libraries.
15436 build_libtool_need_lc=$archive_cmds_need_lc_F77
15437
15438 # Whether or not to disallow shared libs when runtime libs are static
15439 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15440
15441 # Whether or not to optimize for fast installation.
15442 fast_install=$enable_fast_install
15443
15444 # The host system.
15445 host_alias=$host_alias
15446 host=$host
15447 host_os=$host_os
15448
15449 # The build system.
15450 build_alias=$build_alias
15451 build=$build
15452 build_os=$build_os
15453
15454 # An echo program that does not interpret backslashes.
15455 echo=$lt_echo
15456
15457 # The archiver.
15458 AR=$lt_AR
15459 AR_FLAGS=$lt_AR_FLAGS
15460
15461 # A C compiler.
15462 LTCC=$lt_LTCC
15463
15464 # LTCC compiler flags.
15465 LTCFLAGS=$lt_LTCFLAGS
15466
15467 # A language-specific compiler.
15468 CC=$lt_compiler_F77
15469
15470 # Is the compiler the GNU C compiler?
15471 with_gcc=$GCC_F77
15472
15473 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15474 gcc_ver=\`gcc -dumpversion\`
15475
15476 # An ERE matcher.
15477 EGREP=$lt_EGREP
15478
15479 # The linker used to build libraries.
15480 LD=$lt_LD_F77
15481
15482 # Whether we need hard or soft links.
15483 LN_S=$lt_LN_S
15484
15485 # A BSD-compatible nm program.
15486 NM=$lt_NM
15487
15488 # A symbol stripping program
15489 STRIP=$lt_STRIP
15490
15491 # Used to examine libraries when file_magic_cmd begins "file"
15492 MAGIC_CMD=$MAGIC_CMD
15493
15494 # Used on cygwin: DLL creation program.
15495 DLLTOOL="$DLLTOOL"
15496
15497 # Used on cygwin: object dumper.
15498 OBJDUMP="$OBJDUMP"
15499
15500 # Used on cygwin: assembler.
15501 AS="$AS"
15502
15503 # The name of the directory that contains temporary libtool files.
15504 objdir=$objdir
15505
15506 # How to create reloadable object files.
15507 reload_flag=$lt_reload_flag
15508 reload_cmds=$lt_reload_cmds
15509
15510 # How to pass a linker flag through the compiler.
15511 wl=$lt_lt_prog_compiler_wl_F77
15512
15513 # Object file suffix (normally "o").
15514 objext="$ac_objext"
15515
15516 # Old archive suffix (normally "a").
15517 libext="$libext"
15518
15519 # Shared library suffix (normally ".so").
15520 shrext_cmds='$shrext_cmds'
15521
15522 # Executable file suffix (normally "").
15523 exeext="$exeext"
15524
15525 # Additional compiler flags for building library objects.
15526 pic_flag=$lt_lt_prog_compiler_pic_F77
15527 pic_mode=$pic_mode
15528
15529 # What is the maximum length of a command?
15530 max_cmd_len=$lt_cv_sys_max_cmd_len
15531
15532 # Does compiler simultaneously support -c and -o options?
15533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15534
15535 # Must we lock files when doing compilation?
15536 need_locks=$lt_need_locks
15537
15538 # Do we need the lib prefix for modules?
15539 need_lib_prefix=$need_lib_prefix
15540
15541 # Do we need a version for libraries?
15542 need_version=$need_version
15543
15544 # Whether dlopen is supported.
15545 dlopen_support=$enable_dlopen
15546
15547 # Whether dlopen of programs is supported.
15548 dlopen_self=$enable_dlopen_self
15549
15550 # Whether dlopen of statically linked programs is supported.
15551 dlopen_self_static=$enable_dlopen_self_static
15552
15553 # Compiler flag to prevent dynamic linking.
15554 link_static_flag=$lt_lt_prog_compiler_static_F77
15555
15556 # Compiler flag to turn off builtin functions.
15557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15558
15559 # Compiler flag to allow reflexive dlopens.
15560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15561
15562 # Compiler flag to generate shared objects directly from archives.
15563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15564
15565 # Compiler flag to generate thread-safe objects.
15566 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15567
15568 # Library versioning type.
15569 version_type=$version_type
15570
15571 # Format of library name prefix.
15572 libname_spec=$lt_libname_spec
15573
15574 # List of archive names. First name is the real one, the rest are links.
15575 # The last name is the one that the linker finds with -lNAME.
15576 library_names_spec=$lt_library_names_spec
15577
15578 # The coded name of the library, if different from the real name.
15579 soname_spec=$lt_soname_spec
15580
15581 # Commands used to build and install an old-style archive.
15582 RANLIB=$lt_RANLIB
15583 old_archive_cmds=$lt_old_archive_cmds_F77
15584 old_postinstall_cmds=$lt_old_postinstall_cmds
15585 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15586
15587 # Create an old-style archive from a shared archive.
15588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15589
15590 # Create a temporary old-style archive to link instead of a shared archive.
15591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15592
15593 # Commands used to build and install a shared archive.
15594 archive_cmds=$lt_archive_cmds_F77
15595 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15596 postinstall_cmds=$lt_postinstall_cmds
15597 postuninstall_cmds=$lt_postuninstall_cmds
15598
15599 # Commands used to build a loadable module (assumed same as above if empty)
15600 module_cmds=$lt_module_cmds_F77
15601 module_expsym_cmds=$lt_module_expsym_cmds_F77
15602
15603 # Commands to strip libraries.
15604 old_striplib=$lt_old_striplib
15605 striplib=$lt_striplib
15606
15607 # Dependencies to place before the objects being linked to create a
15608 # shared library.
15609 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15610
15611 # Dependencies to place after the objects being linked to create a
15612 # shared library.
15613 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15614
15615 # Dependencies to place before the objects being linked to create a
15616 # shared library.
15617 predeps=$lt_predeps_F77
15618
15619 # Dependencies to place after the objects being linked to create a
15620 # shared library.
15621 postdeps=$lt_postdeps_F77
15622
15623 # The library search path used internally by the compiler when linking
15624 # a shared library.
15625 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15626
15627 # Method to check whether dependent libraries are shared objects.
15628 deplibs_check_method=$lt_deplibs_check_method
15629
15630 # Command to use when deplibs_check_method == file_magic.
15631 file_magic_cmd=$lt_file_magic_cmd
15632
15633 # Flag that allows shared libraries with undefined symbols to be built.
15634 allow_undefined_flag=$lt_allow_undefined_flag_F77
15635
15636 # Flag that forces no undefined symbols.
15637 no_undefined_flag=$lt_no_undefined_flag_F77
15638
15639 # Commands used to finish a libtool library installation in a directory.
15640 finish_cmds=$lt_finish_cmds
15641
15642 # Same as above, but a single script fragment to be evaled but not shown.
15643 finish_eval=$lt_finish_eval
15644
15645 # Take the output of nm and produce a listing of raw symbols and C names.
15646 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15647
15648 # Transform the output of nm in a proper C declaration
15649 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15650
15651 # Transform the output of nm in a C name address pair
15652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15653
15654 # This is the shared library runtime path variable.
15655 runpath_var=$runpath_var
15656
15657 # This is the shared library path variable.
15658 shlibpath_var=$shlibpath_var
15659
15660 # Is shlibpath searched before the hard-coded library search path?
15661 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15662
15663 # How to hardcode a shared library path into an executable.
15664 hardcode_action=$hardcode_action_F77
15665
15666 # Whether we should hardcode library paths into libraries.
15667 hardcode_into_libs=$hardcode_into_libs
15668
15669 # Flag to hardcode \$libdir into a binary during linking.
15670 # This must work even if \$libdir does not exist.
15671 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15672
15673 # If ld is used when linking, flag to hardcode \$libdir into
15674 # a binary during linking. This must work even if \$libdir does
15675 # not exist.
15676 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15677
15678 # Whether we need a single -rpath flag with a separated argument.
15679 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15680
15681 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15682 # resulting binary.
15683 hardcode_direct=$hardcode_direct_F77
15684
15685 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15686 # resulting binary.
15687 hardcode_minus_L=$hardcode_minus_L_F77
15688
15689 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15690 # the resulting binary.
15691 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15692
15693 # Set to yes if building a shared library automatically hardcodes DIR into the library
15694 # and all subsequent libraries and executables linked against it.
15695 hardcode_automatic=$hardcode_automatic_F77
15696
15697 # Variables whose values should be saved in libtool wrapper scripts and
15698 # restored at relink time.
15699 variables_saved_for_relink="$variables_saved_for_relink"
15700
15701 # Whether libtool must link a program against all its dependency libraries.
15702 link_all_deplibs=$link_all_deplibs_F77
15703
15704 # Compile-time system search path for libraries
15705 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15706
15707 # Run-time system search path for libraries
15708 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15709
15710 # Fix the shell variable \$srcfile for the compiler.
15711 fix_srcfile_path="$fix_srcfile_path_F77"
15712
15713 # Set to yes if exported symbols are required.
15714 always_export_symbols=$always_export_symbols_F77
15715
15716 # The commands to list exported symbols.
15717 export_symbols_cmds=$lt_export_symbols_cmds_F77
15718
15719 # The commands to extract the exported symbol list from a shared archive.
15720 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15721
15722 # Symbols that should not be listed in the preloaded symbols.
15723 exclude_expsyms=$lt_exclude_expsyms_F77
15724
15725 # Symbols that must always be exported.
15726 include_expsyms=$lt_include_expsyms_F77
15727
15728 # ### END LIBTOOL TAG CONFIG: $tagname
15729
15730 __EOF__
15731
15732
15733 else
15734 # If there is no Makefile yet, we rely on a make rule to execute
15735 # `config.status --recheck' to rerun these tests and create the
15736 # libtool script then.
15737 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15738 if test -f "$ltmain_in"; then
15739 test -f Makefile && make "$ltmain"
15740 fi
15741 fi
15742
15743
15744 ac_ext=c
15745 ac_cpp='$CPP $CPPFLAGS'
15746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15749
15750 CC="$lt_save_CC"
15751
15752 else
15753 tagname=""
15754 fi
15755 ;;
15756
15757 GCJ)
15758 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15759
15760
15761
15762 # Source file extension for Java test sources.
15763 ac_ext=java
15764
15765 # Object file extension for compiled Java test sources.
15766 objext=o
15767 objext_GCJ=$objext
15768
15769 # Code to be used in simple compile tests
15770 lt_simple_compile_test_code="class foo {}\n"
15771
15772 # Code to be used in simple link tests
15773 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15774
15775 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15776
15777 # If no C compiler was specified, use CC.
15778 LTCC=${LTCC-"$CC"}
15779
15780 # If no C compiler flags were specified, use CFLAGS.
15781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15782
15783 # Allow CC to be a program name with arguments.
15784 compiler=$CC
15785
15786
15787 # save warnings/boilerplate of simple test code
15788 ac_outfile=conftest.$ac_objext
15789 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15790 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15791 _lt_compiler_boilerplate=`cat conftest.err`
15792 $rm conftest*
15793
15794 ac_outfile=conftest.$ac_objext
15795 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15796 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15797 _lt_linker_boilerplate=`cat conftest.err`
15798 $rm conftest*
15799
15800
15801 # Allow CC to be a program name with arguments.
15802 lt_save_CC="$CC"
15803 CC=${GCJ-"gcj"}
15804 compiler=$CC
15805 compiler_GCJ=$CC
15806 for cc_temp in $compiler""; do
15807 case $cc_temp in
15808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15810 \-*) ;;
15811 *) break;;
15812 esac
15813 done
15814 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15815
15816
15817 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15818 archive_cmds_need_lc_GCJ=no
15819
15820 old_archive_cmds_GCJ=$old_archive_cmds
15821
15822
15823 lt_prog_compiler_no_builtin_flag_GCJ=
15824
15825 if test "$GCC" = yes; then
15826 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15827
15828
15829 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15830 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15831 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15833 else
15834 lt_cv_prog_compiler_rtti_exceptions=no
15835 ac_outfile=conftest.$ac_objext
15836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15837 lt_compiler_flag="-fno-rtti -fno-exceptions"
15838 # Insert the option either (1) after the last *FLAGS variable, or
15839 # (2) before a word containing "conftest.", or (3) at the end.
15840 # Note that $ac_compile itself does not contain backslashes and begins
15841 # with a dollar sign (not a hyphen), so the echo should work correctly.
15842 # The option is referenced via a variable to avoid confusing sed.
15843 lt_compile=`echo "$ac_compile" | $SED \
15844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15846 -e 's:$: $lt_compiler_flag:'`
15847 (eval echo "\"\$as_me:15847: $lt_compile\"" >&5)
15848 (eval "$lt_compile" 2>conftest.err)
15849 ac_status=$?
15850 cat conftest.err >&5
15851 echo "$as_me:15851: \$? = $ac_status" >&5
15852 if (exit $ac_status) && test -s "$ac_outfile"; then
15853 # The compiler can only warn and ignore the option if not recognized
15854 # So say no if there are warnings other than the usual output.
15855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15858 lt_cv_prog_compiler_rtti_exceptions=yes
15859 fi
15860 fi
15861 $rm conftest*
15862
15863 fi
15864 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15865 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15866
15867 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15868 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15869 else
15870 :
15871 fi
15872
15873 fi
15874
15875 lt_prog_compiler_wl_GCJ=
15876 lt_prog_compiler_pic_GCJ=
15877 lt_prog_compiler_static_GCJ=
15878
15879 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15880 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15881
15882 if test "$GCC" = yes; then
15883 lt_prog_compiler_wl_GCJ='-Wl,'
15884 lt_prog_compiler_static_GCJ='-static'
15885
15886 case $host_os in
15887 aix*)
15888 # All AIX code is PIC.
15889 if test "$host_cpu" = ia64; then
15890 # AIX 5 now supports IA64 processor
15891 lt_prog_compiler_static_GCJ='-Bstatic'
15892 fi
15893 ;;
15894
15895 amigaos*)
15896 # FIXME: we need at least 68020 code to build shared libraries, but
15897 # adding the `-m68020' flag to GCC prevents building anything better,
15898 # like `-m68040'.
15899 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15900 ;;
15901
15902 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15903 # PIC is the default for these OSes.
15904 ;;
15905
15906 mingw* | pw32* | os2*)
15907 # This hack is so that the source file can tell whether it is being
15908 # built for inclusion in a dll (and should export symbols for example).
15909 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15910 ;;
15911
15912 darwin* | rhapsody*)
15913 # PIC is the default on this platform
15914 # Common symbols not allowed in MH_DYLIB files
15915 lt_prog_compiler_pic_GCJ='-fno-common'
15916 ;;
15917
15918 interix3*)
15919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15920 # Instead, we relocate shared libraries at runtime.
15921 ;;
15922
15923 msdosdjgpp*)
15924 # Just because we use GCC doesn't mean we suddenly get shared libraries
15925 # on systems that don't support them.
15926 lt_prog_compiler_can_build_shared_GCJ=no
15927 enable_shared=no
15928 ;;
15929
15930 sysv4*MP*)
15931 if test -d /usr/nec; then
15932 lt_prog_compiler_pic_GCJ=-Kconform_pic
15933 fi
15934 ;;
15935
15936 hpux*)
15937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15938 # not for PA HP-UX.
15939 case $host_cpu in
15940 hppa*64*|ia64*)
15941 # +Z the default
15942 ;;
15943 *)
15944 lt_prog_compiler_pic_GCJ='-fPIC'
15945 ;;
15946 esac
15947 ;;
15948
15949 *)
15950 lt_prog_compiler_pic_GCJ='-fPIC'
15951 ;;
15952 esac
15953 else
15954 # PORTME Check for flag to pass linker flags through the system compiler.
15955 case $host_os in
15956 aix*)
15957 lt_prog_compiler_wl_GCJ='-Wl,'
15958 if test "$host_cpu" = ia64; then
15959 # AIX 5 now supports IA64 processor
15960 lt_prog_compiler_static_GCJ='-Bstatic'
15961 else
15962 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15963 fi
15964 ;;
15965 darwin*)
15966 # PIC is the default on this platform
15967 # Common symbols not allowed in MH_DYLIB files
15968 case $cc_basename in
15969 xlc*)
15970 lt_prog_compiler_pic_GCJ='-qnocommon'
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15972 ;;
15973 esac
15974 ;;
15975
15976 mingw* | pw32* | os2*)
15977 # This hack is so that the source file can tell whether it is being
15978 # built for inclusion in a dll (and should export symbols for example).
15979 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15980 ;;
15981
15982 hpux9* | hpux10* | hpux11*)
15983 lt_prog_compiler_wl_GCJ='-Wl,'
15984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15985 # not for PA HP-UX.
15986 case $host_cpu in
15987 hppa*64*|ia64*)
15988 # +Z the default
15989 ;;
15990 *)
15991 lt_prog_compiler_pic_GCJ='+Z'
15992 ;;
15993 esac
15994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15995 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15996 ;;
15997
15998 irix5* | irix6* | nonstopux*)
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 # PIC (with -KPIC) is the default.
16001 lt_prog_compiler_static_GCJ='-non_shared'
16002 ;;
16003
16004 newsos6)
16005 lt_prog_compiler_pic_GCJ='-KPIC'
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16007 ;;
16008
16009 linux*)
16010 case $cc_basename in
16011 icc* | ecc*)
16012 lt_prog_compiler_wl_GCJ='-Wl,'
16013 lt_prog_compiler_pic_GCJ='-KPIC'
16014 lt_prog_compiler_static_GCJ='-static'
16015 ;;
16016 pgcc* | pgf77* | pgf90* | pgf95*)
16017 # Portland Group compilers (*not* the Pentium gcc compiler,
16018 # which looks to be a dead project)
16019 lt_prog_compiler_wl_GCJ='-Wl,'
16020 lt_prog_compiler_pic_GCJ='-fpic'
16021 lt_prog_compiler_static_GCJ='-Bstatic'
16022 ;;
16023 ccc*)
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 # All Alpha code is PIC.
16026 lt_prog_compiler_static_GCJ='-non_shared'
16027 ;;
16028 esac
16029 ;;
16030
16031 osf3* | osf4* | osf5*)
16032 lt_prog_compiler_wl_GCJ='-Wl,'
16033 # All OSF/1 code is PIC.
16034 lt_prog_compiler_static_GCJ='-non_shared'
16035 ;;
16036
16037 solaris*)
16038 lt_prog_compiler_pic_GCJ='-KPIC'
16039 lt_prog_compiler_static_GCJ='-Bstatic'
16040 case $cc_basename in
16041 f77* | f90* | f95*)
16042 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16043 *)
16044 lt_prog_compiler_wl_GCJ='-Wl,';;
16045 esac
16046 ;;
16047
16048 sunos4*)
16049 lt_prog_compiler_wl_GCJ='-Qoption ld '
16050 lt_prog_compiler_pic_GCJ='-PIC'
16051 lt_prog_compiler_static_GCJ='-Bstatic'
16052 ;;
16053
16054 sysv4 | sysv4.2uw2* | sysv4.3*)
16055 lt_prog_compiler_wl_GCJ='-Wl,'
16056 lt_prog_compiler_pic_GCJ='-KPIC'
16057 lt_prog_compiler_static_GCJ='-Bstatic'
16058 ;;
16059
16060 sysv4*MP*)
16061 if test -d /usr/nec ;then
16062 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16063 lt_prog_compiler_static_GCJ='-Bstatic'
16064 fi
16065 ;;
16066
16067 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16068 lt_prog_compiler_wl_GCJ='-Wl,'
16069 lt_prog_compiler_pic_GCJ='-KPIC'
16070 lt_prog_compiler_static_GCJ='-Bstatic'
16071 ;;
16072
16073 unicos*)
16074 lt_prog_compiler_wl_GCJ='-Wl,'
16075 lt_prog_compiler_can_build_shared_GCJ=no
16076 ;;
16077
16078 uts4*)
16079 lt_prog_compiler_pic_GCJ='-pic'
16080 lt_prog_compiler_static_GCJ='-Bstatic'
16081 ;;
16082
16083 *)
16084 lt_prog_compiler_can_build_shared_GCJ=no
16085 ;;
16086 esac
16087 fi
16088
16089 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16090 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16091
16092 #
16093 # Check to make sure the PIC flag actually works.
16094 #
16095 if test -n "$lt_prog_compiler_pic_GCJ"; then
16096
16097 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16098 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16099 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 else
16102 lt_prog_compiler_pic_works_GCJ=no
16103 ac_outfile=conftest.$ac_objext
16104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16105 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16106 # Insert the option either (1) after the last *FLAGS variable, or
16107 # (2) before a word containing "conftest.", or (3) at the end.
16108 # Note that $ac_compile itself does not contain backslashes and begins
16109 # with a dollar sign (not a hyphen), so the echo should work correctly.
16110 # The option is referenced via a variable to avoid confusing sed.
16111 lt_compile=`echo "$ac_compile" | $SED \
16112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16114 -e 's:$: $lt_compiler_flag:'`
16115 (eval echo "\"\$as_me:16115: $lt_compile\"" >&5)
16116 (eval "$lt_compile" 2>conftest.err)
16117 ac_status=$?
16118 cat conftest.err >&5
16119 echo "$as_me:16119: \$? = $ac_status" >&5
16120 if (exit $ac_status) && test -s "$ac_outfile"; then
16121 # The compiler can only warn and ignore the option if not recognized
16122 # So say no if there are warnings other than the usual output.
16123 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16126 lt_prog_compiler_pic_works_GCJ=yes
16127 fi
16128 fi
16129 $rm conftest*
16130
16131 fi
16132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16133 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16134
16135 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16136 case $lt_prog_compiler_pic_GCJ in
16137 "" | " "*) ;;
16138 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16139 esac
16140 else
16141 lt_prog_compiler_pic_GCJ=
16142 lt_prog_compiler_can_build_shared_GCJ=no
16143 fi
16144
16145 fi
16146 case $host_os in
16147 # For platforms which do not support PIC, -DPIC is meaningless:
16148 *djgpp*)
16149 lt_prog_compiler_pic_GCJ=
16150 ;;
16151 *)
16152 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16153 ;;
16154 esac
16155
16156 #
16157 # Check to make sure the static flag actually works.
16158 #
16159 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16160 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16161 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16162 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165 lt_prog_compiler_static_works_GCJ=no
16166 save_LDFLAGS="$LDFLAGS"
16167 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16168 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16169 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16170 # The linker can only warn and ignore the option if not recognized
16171 # So say no if there are warnings
16172 if test -s conftest.err; then
16173 # Append any errors to the config.log.
16174 cat conftest.err 1>&5
16175 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16177 if diff conftest.exp conftest.er2 >/dev/null; then
16178 lt_prog_compiler_static_works_GCJ=yes
16179 fi
16180 else
16181 lt_prog_compiler_static_works_GCJ=yes
16182 fi
16183 fi
16184 $rm conftest*
16185 LDFLAGS="$save_LDFLAGS"
16186
16187 fi
16188 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16189 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16190
16191 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16192 :
16193 else
16194 lt_prog_compiler_static_GCJ=
16195 fi
16196
16197
16198 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16199 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16200 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203 lt_cv_prog_compiler_c_o_GCJ=no
16204 $rm -r conftest 2>/dev/null
16205 mkdir conftest
16206 cd conftest
16207 mkdir out
16208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16209
16210 lt_compiler_flag="-o out/conftest2.$ac_objext"
16211 # Insert the option either (1) after the last *FLAGS variable, or
16212 # (2) before a word containing "conftest.", or (3) at the end.
16213 # Note that $ac_compile itself does not contain backslashes and begins
16214 # with a dollar sign (not a hyphen), so the echo should work correctly.
16215 lt_compile=`echo "$ac_compile" | $SED \
16216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16218 -e 's:$: $lt_compiler_flag:'`
16219 (eval echo "\"\$as_me:16219: $lt_compile\"" >&5)
16220 (eval "$lt_compile" 2>out/conftest.err)
16221 ac_status=$?
16222 cat out/conftest.err >&5
16223 echo "$as_me:16223: \$? = $ac_status" >&5
16224 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16225 then
16226 # The compiler can only warn and ignore the option if not recognized
16227 # So say no if there are warnings
16228 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16229 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16230 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16231 lt_cv_prog_compiler_c_o_GCJ=yes
16232 fi
16233 fi
16234 chmod u+w . 2>&5
16235 $rm conftest*
16236 # SGI C++ compiler will create directory out/ii_files/ for
16237 # template instantiation
16238 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16239 $rm out/* && rmdir out
16240 cd ..
16241 rmdir conftest
16242 $rm conftest*
16243
16244 fi
16245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16246 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16247
16248
16249 hard_links="nottested"
16250 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16251 # do not overwrite the value of need_locks provided by the user
16252 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16253 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16254 hard_links=yes
16255 $rm conftest*
16256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16257 touch conftest.a
16258 ln conftest.a conftest.b 2>&5 || hard_links=no
16259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16260 echo "$as_me:$LINENO: result: $hard_links" >&5
16261 echo "${ECHO_T}$hard_links" >&6
16262 if test "$hard_links" = no; then
16263 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16264 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16265 need_locks=warn
16266 fi
16267 else
16268 need_locks=no
16269 fi
16270
16271 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16272 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16273
16274 runpath_var=
16275 allow_undefined_flag_GCJ=
16276 enable_shared_with_static_runtimes_GCJ=no
16277 archive_cmds_GCJ=
16278 archive_expsym_cmds_GCJ=
16279 old_archive_From_new_cmds_GCJ=
16280 old_archive_from_expsyms_cmds_GCJ=
16281 export_dynamic_flag_spec_GCJ=
16282 whole_archive_flag_spec_GCJ=
16283 thread_safe_flag_spec_GCJ=
16284 hardcode_libdir_flag_spec_GCJ=
16285 hardcode_libdir_flag_spec_ld_GCJ=
16286 hardcode_libdir_separator_GCJ=
16287 hardcode_direct_GCJ=no
16288 hardcode_minus_L_GCJ=no
16289 hardcode_shlibpath_var_GCJ=unsupported
16290 link_all_deplibs_GCJ=unknown
16291 hardcode_automatic_GCJ=no
16292 module_cmds_GCJ=
16293 module_expsym_cmds_GCJ=
16294 always_export_symbols_GCJ=no
16295 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16296 # include_expsyms should be a list of space-separated symbols to be *always*
16297 # included in the symbol list
16298 include_expsyms_GCJ=
16299 # exclude_expsyms can be an extended regexp of symbols to exclude
16300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16302 # as well as any symbol that contains `d'.
16303 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16305 # platforms (ab)use it in PIC code, but their linkers get confused if
16306 # the symbol is explicitly referenced. Since portable code cannot
16307 # rely on this symbol name, it's probably fine to never include it in
16308 # preloaded symbol tables.
16309 extract_expsyms_cmds=
16310 # Just being paranoid about ensuring that cc_basename is set.
16311 for cc_temp in $compiler""; do
16312 case $cc_temp in
16313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16315 \-*) ;;
16316 *) break;;
16317 esac
16318 done
16319 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16320
16321 case $host_os in
16322 cygwin* | mingw* | pw32*)
16323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16324 # When not using gcc, we currently assume that we are using
16325 # Microsoft Visual C++.
16326 if test "$GCC" != yes; then
16327 with_gnu_ld=no
16328 fi
16329 ;;
16330 interix*)
16331 # we just hope/assume this is gcc and not c89 (= MSVC++)
16332 with_gnu_ld=yes
16333 ;;
16334 openbsd*)
16335 with_gnu_ld=no
16336 ;;
16337 esac
16338
16339 ld_shlibs_GCJ=yes
16340 if test "$with_gnu_ld" = yes; then
16341 # If archive_cmds runs LD, not CC, wlarc should be empty
16342 wlarc='${wl}'
16343
16344 # Set some defaults for GNU ld with shared library support. These
16345 # are reset later if shared libraries are not supported. Putting them
16346 # here allows them to be overridden if necessary.
16347 runpath_var=LD_RUN_PATH
16348 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16349 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16350 # ancient GNU ld didn't support --whole-archive et. al.
16351 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16352 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16353 else
16354 whole_archive_flag_spec_GCJ=
16355 fi
16356 supports_anon_versioning=no
16357 case `$LD -v 2>/dev/null` in
16358 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16359 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16360 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16361 *\ 2.11.*) ;; # other 2.11 versions
16362 *) supports_anon_versioning=yes ;;
16363 esac
16364
16365 # See if GNU ld supports shared libraries.
16366 case $host_os in
16367 aix3* | aix4* | aix5*)
16368 # On AIX/PPC, the GNU linker is very broken
16369 if test "$host_cpu" != ia64; then
16370 ld_shlibs_GCJ=no
16371 cat <<EOF 1>&2
16372
16373 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16374 *** to be unable to reliably create shared libraries on AIX.
16375 *** Therefore, libtool is disabling shared libraries support. If you
16376 *** really care for shared libraries, you may want to modify your PATH
16377 *** so that a non-GNU linker is found, and then restart.
16378
16379 EOF
16380 fi
16381 ;;
16382
16383 amigaos*)
16384 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16386 hardcode_minus_L_GCJ=yes
16387
16388 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16389 # that the semantics of dynamic libraries on AmigaOS, at least up
16390 # to version 4, is to share data among multiple programs linked
16391 # with the same dynamic library. Since this doesn't match the
16392 # behavior of shared libraries on other platforms, we can't use
16393 # them.
16394 ld_shlibs_GCJ=no
16395 ;;
16396
16397 beos*)
16398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16399 allow_undefined_flag_GCJ=unsupported
16400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16401 # support --undefined. This deserves some investigation. FIXME
16402 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16403 else
16404 ld_shlibs_GCJ=no
16405 fi
16406 ;;
16407
16408 cygwin* | mingw* | pw32*)
16409 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16410 # as there is no search path for DLLs.
16411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16412 allow_undefined_flag_GCJ=unsupported
16413 always_export_symbols_GCJ=no
16414 enable_shared_with_static_runtimes_GCJ=yes
16415 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16416
16417 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16418 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16419 # If the export-symbols file already is a .def file (1st line
16420 # is EXPORTS), use it as is; otherwise, prepend...
16421 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16422 cp $export_symbols $output_objdir/$soname.def;
16423 else
16424 echo EXPORTS > $output_objdir/$soname.def;
16425 cat $export_symbols >> $output_objdir/$soname.def;
16426 fi~
16427 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16428 else
16429 ld_shlibs_GCJ=no
16430 fi
16431 ;;
16432
16433 interix3*)
16434 hardcode_direct_GCJ=no
16435 hardcode_shlibpath_var_GCJ=no
16436 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16437 export_dynamic_flag_spec_GCJ='${wl}-E'
16438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16439 # Instead, shared libraries are loaded at an image base (0x10000000 by
16440 # default) and relocated if they conflict, which is a slow very memory
16441 # consuming and fragmenting process. To avoid this, we pick a random,
16442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16444 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16445 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16446 ;;
16447
16448 linux*)
16449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16450 tmp_addflag=
16451 case $cc_basename,$host_cpu in
16452 pgcc*) # Portland Group C compiler
16453 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16454 tmp_addflag=' $pic_flag'
16455 ;;
16456 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16457 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16458 tmp_addflag=' $pic_flag -Mnomain' ;;
16459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16460 tmp_addflag=' -i_dynamic' ;;
16461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16462 tmp_addflag=' -i_dynamic -nofor_main' ;;
16463 ifc* | ifort*) # Intel Fortran compiler
16464 tmp_addflag=' -nofor_main' ;;
16465 esac
16466 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16467
16468 if test $supports_anon_versioning = yes; then
16469 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16471 $echo "local: *; };" >> $output_objdir/$libname.ver~
16472 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16473 fi
16474 else
16475 ld_shlibs_GCJ=no
16476 fi
16477 ;;
16478
16479 netbsd*)
16480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16481 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16482 wlarc=
16483 else
16484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16486 fi
16487 ;;
16488
16489 solaris*)
16490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16491 ld_shlibs_GCJ=no
16492 cat <<EOF 1>&2
16493
16494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16495 *** create shared libraries on Solaris systems. Therefore, libtool
16496 *** is disabling shared libraries support. We urge you to upgrade GNU
16497 *** binutils to release 2.9.1 or newer. Another option is to modify
16498 *** your PATH or compiler configuration so that the native linker is
16499 *** used, and then restart.
16500
16501 EOF
16502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16505 else
16506 ld_shlibs_GCJ=no
16507 fi
16508 ;;
16509
16510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16511 case `$LD -v 2>&1` in
16512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16513 ld_shlibs_GCJ=no
16514 cat <<_LT_EOF 1>&2
16515
16516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16517 *** reliably create shared libraries on SCO systems. Therefore, libtool
16518 *** is disabling shared libraries support. We urge you to upgrade GNU
16519 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16520 *** your PATH or compiler configuration so that the native linker is
16521 *** used, and then restart.
16522
16523 _LT_EOF
16524 ;;
16525 *)
16526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16527 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16530 else
16531 ld_shlibs_GCJ=no
16532 fi
16533 ;;
16534 esac
16535 ;;
16536
16537 sunos4*)
16538 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16539 wlarc=
16540 hardcode_direct_GCJ=yes
16541 hardcode_shlibpath_var_GCJ=no
16542 ;;
16543
16544 *)
16545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16548 else
16549 ld_shlibs_GCJ=no
16550 fi
16551 ;;
16552 esac
16553
16554 if test "$ld_shlibs_GCJ" = no; then
16555 runpath_var=
16556 hardcode_libdir_flag_spec_GCJ=
16557 export_dynamic_flag_spec_GCJ=
16558 whole_archive_flag_spec_GCJ=
16559 fi
16560 else
16561 # PORTME fill in a description of your system's linker (not GNU ld)
16562 case $host_os in
16563 aix3*)
16564 allow_undefined_flag_GCJ=unsupported
16565 always_export_symbols_GCJ=yes
16566 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16567 # Note: this linker hardcodes the directories in LIBPATH if there
16568 # are no directories specified by -L.
16569 hardcode_minus_L_GCJ=yes
16570 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16571 # Neither direct hardcoding nor static linking is supported with a
16572 # broken collect2.
16573 hardcode_direct_GCJ=unsupported
16574 fi
16575 ;;
16576
16577 aix4* | aix5*)
16578 if test "$host_cpu" = ia64; then
16579 # On IA64, the linker does run time linking by default, so we don't
16580 # have to do anything special.
16581 aix_use_runtimelinking=no
16582 exp_sym_flag='-Bexport'
16583 no_entry_flag=""
16584 else
16585 # If we're using GNU nm, then we don't want the "-C" option.
16586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16588 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'
16589 else
16590 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'
16591 fi
16592 aix_use_runtimelinking=no
16593
16594 # Test if we are trying to use run time linking or normal
16595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16596 # need to do runtime linking.
16597 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16598 for ld_flag in $LDFLAGS; do
16599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16600 aix_use_runtimelinking=yes
16601 break
16602 fi
16603 done
16604 ;;
16605 esac
16606
16607 exp_sym_flag='-bexport'
16608 no_entry_flag='-bnoentry'
16609 fi
16610
16611 # When large executables or shared objects are built, AIX ld can
16612 # have problems creating the table of contents. If linking a library
16613 # or program results in "error TOC overflow" add -mminimal-toc to
16614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16616
16617 archive_cmds_GCJ=''
16618 hardcode_direct_GCJ=yes
16619 hardcode_libdir_separator_GCJ=':'
16620 link_all_deplibs_GCJ=yes
16621
16622 if test "$GCC" = yes; then
16623 case $host_os in aix4.[012]|aix4.[012].*)
16624 # We only want to do this on AIX 4.2 and lower, the check
16625 # below for broken collect2 doesn't work under 4.3+
16626 collect2name=`${CC} -print-prog-name=collect2`
16627 if test -f "$collect2name" && \
16628 strings "$collect2name" | grep resolve_lib_name >/dev/null
16629 then
16630 # We have reworked collect2
16631 hardcode_direct_GCJ=yes
16632 else
16633 # We have old collect2
16634 hardcode_direct_GCJ=unsupported
16635 # It fails to find uninstalled libraries when the uninstalled
16636 # path is not listed in the libpath. Setting hardcode_minus_L
16637 # to unsupported forces relinking
16638 hardcode_minus_L_GCJ=yes
16639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16640 hardcode_libdir_separator_GCJ=
16641 fi
16642 ;;
16643 esac
16644 shared_flag='-shared'
16645 if test "$aix_use_runtimelinking" = yes; then
16646 shared_flag="$shared_flag "'${wl}-G'
16647 fi
16648 else
16649 # not using gcc
16650 if test "$host_cpu" = ia64; then
16651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16652 # chokes on -Wl,-G. The following line is correct:
16653 shared_flag='-G'
16654 else
16655 if test "$aix_use_runtimelinking" = yes; then
16656 shared_flag='${wl}-G'
16657 else
16658 shared_flag='${wl}-bM:SRE'
16659 fi
16660 fi
16661 fi
16662
16663 # It seems that -bexpall does not export symbols beginning with
16664 # underscore (_), so it is better to generate a list of symbols to export.
16665 always_export_symbols_GCJ=yes
16666 if test "$aix_use_runtimelinking" = yes; then
16667 # Warning - without using the other runtime loading flags (-brtl),
16668 # -berok will link without error, but may produce a broken library.
16669 allow_undefined_flag_GCJ='-berok'
16670 # Determine the default libpath from the value encoded in an empty executable.
16671 cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h. */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677
16678 int
16679 main ()
16680 {
16681
16682 ;
16683 return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>conftest.er1
16689 ac_status=$?
16690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -z "$ac_c_werror_flag"
16696 || test ! -s conftest.err'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708
16709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16710 }'`
16711 # Check for a 64-bit object if we didn't find anything.
16712 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; }
16713 }'`; fi
16714 else
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718 fi
16719 rm -f conftest.err conftest.$ac_objext \
16720 conftest$ac_exeext conftest.$ac_ext
16721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16722
16723 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16724 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16725 else
16726 if test "$host_cpu" = ia64; then
16727 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16728 allow_undefined_flag_GCJ="-z nodefs"
16729 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16730 else
16731 # Determine the default libpath from the value encoded in an empty executable.
16732 cat >conftest.$ac_ext <<_ACEOF
16733 /* confdefs.h. */
16734 _ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738
16739 int
16740 main ()
16741 {
16742
16743 ;
16744 return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16749 (eval $ac_link) 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
16756 { ac_try='test -z "$ac_c_werror_flag"
16757 || test ! -s conftest.err'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest$ac_exeext'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769
16770 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16771 }'`
16772 # Check for a 64-bit object if we didn't find anything.
16773 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; }
16774 }'`; fi
16775 else
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 fi
16780 rm -f conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16783
16784 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16785 # Warning - without using the other run time loading flags,
16786 # -berok will link without error, but may produce a broken library.
16787 no_undefined_flag_GCJ=' ${wl}-bernotok'
16788 allow_undefined_flag_GCJ=' ${wl}-berok'
16789 # Exported symbols can be pulled into shared objects from archives
16790 whole_archive_flag_spec_GCJ='$convenience'
16791 archive_cmds_need_lc_GCJ=yes
16792 # This is similar to how AIX traditionally builds its shared libraries.
16793 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16794 fi
16795 fi
16796 ;;
16797
16798 amigaos*)
16799 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16801 hardcode_minus_L_GCJ=yes
16802 # see comment about different semantics on the GNU ld section
16803 ld_shlibs_GCJ=no
16804 ;;
16805
16806 bsdi[45]*)
16807 export_dynamic_flag_spec_GCJ=-rdynamic
16808 ;;
16809
16810 cygwin* | mingw* | pw32*)
16811 # When not using gcc, we currently assume that we are using
16812 # Microsoft Visual C++.
16813 # hardcode_libdir_flag_spec is actually meaningless, as there is
16814 # no search path for DLLs.
16815 hardcode_libdir_flag_spec_GCJ=' '
16816 allow_undefined_flag_GCJ=unsupported
16817 # Tell ltmain to make .lib files, not .a files.
16818 libext=lib
16819 # Tell ltmain to make .dll files, not .so files.
16820 shrext_cmds=".dll"
16821 # FIXME: Setting linknames here is a bad hack.
16822 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16823 # The linker will automatically build a .lib file if we build a DLL.
16824 old_archive_From_new_cmds_GCJ='true'
16825 # FIXME: Should let the user specify the lib program.
16826 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16827 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16828 enable_shared_with_static_runtimes_GCJ=yes
16829 ;;
16830
16831 darwin* | rhapsody*)
16832 case $host_os in
16833 rhapsody* | darwin1.[012])
16834 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16835 ;;
16836 *) # Darwin 1.3 on
16837 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16839 else
16840 case ${MACOSX_DEPLOYMENT_TARGET} in
16841 10.[012])
16842 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16843 ;;
16844 10.*)
16845 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16846 ;;
16847 esac
16848 fi
16849 ;;
16850 esac
16851 archive_cmds_need_lc_GCJ=no
16852 hardcode_direct_GCJ=no
16853 hardcode_automatic_GCJ=yes
16854 hardcode_shlibpath_var_GCJ=unsupported
16855 whole_archive_flag_spec_GCJ=''
16856 link_all_deplibs_GCJ=yes
16857 if test "$GCC" = yes ; then
16858 output_verbose_link_cmd='echo'
16859 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16860 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16862 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16863 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16864 else
16865 case $cc_basename in
16866 xlc*)
16867 output_verbose_link_cmd='echo'
16868 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16869 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16871 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16872 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16873 ;;
16874 *)
16875 ld_shlibs_GCJ=no
16876 ;;
16877 esac
16878 fi
16879 ;;
16880
16881 dgux*)
16882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16883 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16884 hardcode_shlibpath_var_GCJ=no
16885 ;;
16886
16887 freebsd1*)
16888 ld_shlibs_GCJ=no
16889 ;;
16890
16891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16892 # support. Future versions do this automatically, but an explicit c++rt0.o
16893 # does not break anything, and helps significantly (at the cost of a little
16894 # extra space).
16895 freebsd2.2*)
16896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16897 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16898 hardcode_direct_GCJ=yes
16899 hardcode_shlibpath_var_GCJ=no
16900 ;;
16901
16902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16903 freebsd2*)
16904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_direct_GCJ=yes
16906 hardcode_minus_L_GCJ=yes
16907 hardcode_shlibpath_var_GCJ=no
16908 ;;
16909
16910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16911 freebsd* | kfreebsd*-gnu | dragonfly*)
16912 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16914 hardcode_direct_GCJ=yes
16915 hardcode_shlibpath_var_GCJ=no
16916 ;;
16917
16918 hpux9*)
16919 if test "$GCC" = yes; then
16920 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16921 else
16922 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16923 fi
16924 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16925 hardcode_libdir_separator_GCJ=:
16926 hardcode_direct_GCJ=yes
16927
16928 # hardcode_minus_L: Not really in the search PATH,
16929 # but as the default location of the library.
16930 hardcode_minus_L_GCJ=yes
16931 export_dynamic_flag_spec_GCJ='${wl}-E'
16932 ;;
16933
16934 hpux10*)
16935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16936 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16937 else
16938 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16939 fi
16940 if test "$with_gnu_ld" = no; then
16941 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16942 hardcode_libdir_separator_GCJ=:
16943
16944 hardcode_direct_GCJ=yes
16945 export_dynamic_flag_spec_GCJ='${wl}-E'
16946
16947 # hardcode_minus_L: Not really in the search PATH,
16948 # but as the default location of the library.
16949 hardcode_minus_L_GCJ=yes
16950 fi
16951 ;;
16952
16953 hpux11*)
16954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16955 case $host_cpu in
16956 hppa*64*)
16957 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16958 ;;
16959 ia64*)
16960 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16961 ;;
16962 *)
16963 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16964 ;;
16965 esac
16966 else
16967 case $host_cpu in
16968 hppa*64*)
16969 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16970 ;;
16971 ia64*)
16972 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16973 ;;
16974 *)
16975 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16976 ;;
16977 esac
16978 fi
16979 if test "$with_gnu_ld" = no; then
16980 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16981 hardcode_libdir_separator_GCJ=:
16982
16983 case $host_cpu in
16984 hppa*64*|ia64*)
16985 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16986 hardcode_direct_GCJ=no
16987 hardcode_shlibpath_var_GCJ=no
16988 ;;
16989 *)
16990 hardcode_direct_GCJ=yes
16991 export_dynamic_flag_spec_GCJ='${wl}-E'
16992
16993 # hardcode_minus_L: Not really in the search PATH,
16994 # but as the default location of the library.
16995 hardcode_minus_L_GCJ=yes
16996 ;;
16997 esac
16998 fi
16999 ;;
17000
17001 irix5* | irix6* | nonstopux*)
17002 if test "$GCC" = yes; then
17003 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'
17004 else
17005 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'
17006 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17007 fi
17008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17009 hardcode_libdir_separator_GCJ=:
17010 link_all_deplibs_GCJ=yes
17011 ;;
17012
17013 netbsd*)
17014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17015 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17016 else
17017 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17018 fi
17019 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17020 hardcode_direct_GCJ=yes
17021 hardcode_shlibpath_var_GCJ=no
17022 ;;
17023
17024 newsos6)
17025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_direct_GCJ=yes
17027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17028 hardcode_libdir_separator_GCJ=:
17029 hardcode_shlibpath_var_GCJ=no
17030 ;;
17031
17032 openbsd*)
17033 hardcode_direct_GCJ=yes
17034 hardcode_shlibpath_var_GCJ=no
17035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17036 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17039 export_dynamic_flag_spec_GCJ='${wl}-E'
17040 else
17041 case $host_os in
17042 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17044 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17045 ;;
17046 *)
17047 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17049 ;;
17050 esac
17051 fi
17052 ;;
17053
17054 os2*)
17055 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17056 hardcode_minus_L_GCJ=yes
17057 allow_undefined_flag_GCJ=unsupported
17058 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17059 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17060 ;;
17061
17062 osf3*)
17063 if test "$GCC" = yes; then
17064 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17065 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'
17066 else
17067 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17068 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'
17069 fi
17070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17071 hardcode_libdir_separator_GCJ=:
17072 ;;
17073
17074 osf4* | osf5*) # as osf3* with the addition of -msym flag
17075 if test "$GCC" = yes; then
17076 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17077 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'
17078 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17079 else
17080 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17081 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'
17082 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~
17083 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17084
17085 # Both c and cxx compiler support -rpath directly
17086 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17087 fi
17088 hardcode_libdir_separator_GCJ=:
17089 ;;
17090
17091 solaris*)
17092 no_undefined_flag_GCJ=' -z text'
17093 if test "$GCC" = yes; then
17094 wlarc='${wl}'
17095 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17097 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17098 else
17099 wlarc=''
17100 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17101 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17103 fi
17104 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17105 hardcode_shlibpath_var_GCJ=no
17106 case $host_os in
17107 solaris2.[0-5] | solaris2.[0-5].*) ;;
17108 *)
17109 # The compiler driver will combine linker options so we
17110 # cannot just pass the convience library names through
17111 # without $wl, iff we do not link with $LD.
17112 # Luckily, gcc supports the same syntax we need for Sun Studio.
17113 # Supported since Solaris 2.6 (maybe 2.5.1?)
17114 case $wlarc in
17115 '')
17116 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17117 *)
17118 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17119 esac ;;
17120 esac
17121 link_all_deplibs_GCJ=yes
17122 ;;
17123
17124 sunos4*)
17125 if test "x$host_vendor" = xsequent; then
17126 # Use $CC to link under sequent, because it throws in some extra .o
17127 # files that make .init and .fini sections work.
17128 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17129 else
17130 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17131 fi
17132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17133 hardcode_direct_GCJ=yes
17134 hardcode_minus_L_GCJ=yes
17135 hardcode_shlibpath_var_GCJ=no
17136 ;;
17137
17138 sysv4)
17139 case $host_vendor in
17140 sni)
17141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17142 hardcode_direct_GCJ=yes # is this really true???
17143 ;;
17144 siemens)
17145 ## LD is ld it makes a PLAMLIB
17146 ## CC just makes a GrossModule.
17147 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17148 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17149 hardcode_direct_GCJ=no
17150 ;;
17151 motorola)
17152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17154 ;;
17155 esac
17156 runpath_var='LD_RUN_PATH'
17157 hardcode_shlibpath_var_GCJ=no
17158 ;;
17159
17160 sysv4.3*)
17161 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17162 hardcode_shlibpath_var_GCJ=no
17163 export_dynamic_flag_spec_GCJ='-Bexport'
17164 ;;
17165
17166 sysv4*MP*)
17167 if test -d /usr/nec; then
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_shlibpath_var_GCJ=no
17170 runpath_var=LD_RUN_PATH
17171 hardcode_runpath_var=yes
17172 ld_shlibs_GCJ=yes
17173 fi
17174 ;;
17175
17176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17177 no_undefined_flag_GCJ='${wl}-z,text'
17178 archive_cmds_need_lc_GCJ=no
17179 hardcode_shlibpath_var_GCJ=no
17180 runpath_var='LD_RUN_PATH'
17181
17182 if test "$GCC" = yes; then
17183 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17184 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17185 else
17186 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17187 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17188 fi
17189 ;;
17190
17191 sysv5* | sco3.2v5* | sco5v6*)
17192 # Note: We can NOT use -z defs as we might desire, because we do not
17193 # link with -lc, and that would cause any symbols used from libc to
17194 # always be unresolved, which means just about no library would
17195 # ever link correctly. If we're not using GNU ld we use -z text
17196 # though, which does catch some bad symbols but isn't as heavy-handed
17197 # as -z defs.
17198 no_undefined_flag_GCJ='${wl}-z,text'
17199 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17200 archive_cmds_need_lc_GCJ=no
17201 hardcode_shlibpath_var_GCJ=no
17202 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17203 hardcode_libdir_separator_GCJ=':'
17204 link_all_deplibs_GCJ=yes
17205 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17206 runpath_var='LD_RUN_PATH'
17207
17208 if test "$GCC" = yes; then
17209 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17210 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17211 else
17212 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17213 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17214 fi
17215 ;;
17216
17217 uts4*)
17218 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220 hardcode_shlibpath_var_GCJ=no
17221 ;;
17222
17223 *)
17224 ld_shlibs_GCJ=no
17225 ;;
17226 esac
17227 fi
17228
17229 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17230 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17231 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17232
17233 #
17234 # Do we need to explicitly link libc?
17235 #
17236 case "x$archive_cmds_need_lc_GCJ" in
17237 x|xyes)
17238 # Assume -lc should be added
17239 archive_cmds_need_lc_GCJ=yes
17240
17241 if test "$enable_shared" = yes && test "$GCC" = yes; then
17242 case $archive_cmds_GCJ in
17243 *'~'*)
17244 # FIXME: we may have to deal with multi-command sequences.
17245 ;;
17246 '$CC '*)
17247 # Test whether the compiler implicitly links with -lc since on some
17248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17249 # to ld, don't add -lc before -lgcc.
17250 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17251 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17252 $rm conftest*
17253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17254
17255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17256 (eval $ac_compile) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } 2>conftest.err; then
17260 soname=conftest
17261 lib=conftest
17262 libobjs=conftest.$ac_objext
17263 deplibs=
17264 wl=$lt_prog_compiler_wl_GCJ
17265 pic_flag=$lt_prog_compiler_pic_GCJ
17266 compiler_flags=-v
17267 linker_flags=-v
17268 verstring=
17269 output_objdir=.
17270 libname=conftest
17271 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17272 allow_undefined_flag_GCJ=
17273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17274 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }
17278 then
17279 archive_cmds_need_lc_GCJ=no
17280 else
17281 archive_cmds_need_lc_GCJ=yes
17282 fi
17283 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17284 else
17285 cat conftest.err 1>&5
17286 fi
17287 $rm conftest*
17288 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17289 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17290 ;;
17291 esac
17292 fi
17293 ;;
17294 esac
17295
17296 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17298 library_names_spec=
17299 libname_spec='lib$name'
17300 soname_spec=
17301 shrext_cmds=".so"
17302 postinstall_cmds=
17303 postuninstall_cmds=
17304 finish_cmds=
17305 finish_eval=
17306 shlibpath_var=
17307 shlibpath_overrides_runpath=unknown
17308 version_type=none
17309 dynamic_linker="$host_os ld.so"
17310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17311 if test "$GCC" = yes; then
17312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17313 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17314 # if the path contains ";" then we assume it to be the separator
17315 # otherwise default to the standard path separator (i.e. ":") - it is
17316 # assumed that no part of a normal pathname contains ";" but that should
17317 # okay in the real world where ";" in dirpaths is itself problematic.
17318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17319 else
17320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17321 fi
17322 else
17323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17324 fi
17325 need_lib_prefix=unknown
17326 hardcode_into_libs=no
17327
17328 # when you set need_version to no, make sure it does not cause -set_version
17329 # flags to be left without arguments
17330 need_version=unknown
17331
17332 case $host_os in
17333 aix3*)
17334 version_type=linux
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17336 shlibpath_var=LIBPATH
17337
17338 # AIX 3 has no versioning support, so we append a major version to the name.
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 ;;
17341
17342 aix4* | aix5*)
17343 version_type=linux
17344 need_lib_prefix=no
17345 need_version=no
17346 hardcode_into_libs=yes
17347 if test "$host_cpu" = ia64; then
17348 # AIX 5 supports IA64
17349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 else
17352 # With GCC up to 2.95.x, collect2 would create an import file
17353 # for dependence libraries. The import file would start with
17354 # the line `#! .'. This would cause the generated library to
17355 # depend on `.', always an invalid library. This was fixed in
17356 # development snapshots of GCC prior to 3.0.
17357 case $host_os in
17358 aix4 | aix4.[01] | aix4.[01].*)
17359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17360 echo ' yes '
17361 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17362 :
17363 else
17364 can_build_shared=no
17365 fi
17366 ;;
17367 esac
17368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17369 # soname into executable. Probably we can add versioning support to
17370 # collect2, so additional links can be useful in future.
17371 if test "$aix_use_runtimelinking" = yes; then
17372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17373 # instead of lib<name>.a to let people know that these are not
17374 # typical AIX shared libraries.
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 else
17377 # We preserve .a as extension for shared libraries through AIX4.2
17378 # and later when we are not doing run time linking.
17379 library_names_spec='${libname}${release}.a $libname.a'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 fi
17382 shlibpath_var=LIBPATH
17383 fi
17384 ;;
17385
17386 amigaos*)
17387 library_names_spec='$libname.ixlibrary $libname.a'
17388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17389 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'
17390 ;;
17391
17392 beos*)
17393 library_names_spec='${libname}${shared_ext}'
17394 dynamic_linker="$host_os ld.so"
17395 shlibpath_var=LIBRARY_PATH
17396 ;;
17397
17398 bsdi[45]*)
17399 version_type=linux
17400 need_version=no
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17407 # the default ld.so.conf also contains /usr/contrib/lib and
17408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17409 # libtool to hard-code these into programs
17410 ;;
17411
17412 cygwin* | mingw* | pw32*)
17413 version_type=windows
17414 shrext_cmds=".dll"
17415 need_version=no
17416 need_lib_prefix=no
17417
17418 case $GCC,$host_os in
17419 yes,cygwin* | yes,mingw* | yes,pw32*)
17420 library_names_spec='$libname.dll.a'
17421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17422 postinstall_cmds='base_file=`basename \${file}`~
17423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17424 dldir=$destdir/`dirname \$dlpath`~
17425 test -d \$dldir || mkdir -p \$dldir~
17426 $install_prog $dir/$dlname \$dldir/$dlname~
17427 chmod a+x \$dldir/$dlname'
17428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17429 dlpath=$dir/\$dldll~
17430 $rm \$dlpath'
17431 shlibpath_overrides_runpath=yes
17432
17433 case $host_os in
17434 cygwin*)
17435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17437 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17438 ;;
17439 mingw*)
17440 # MinGW DLLs use traditional 'lib' prefix
17441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17442 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17443 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17444 # It is most probably a Windows format PATH printed by
17445 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17446 # path with ; separators, and with drive letters. We can handle the
17447 # drive letters (cygwin fileutils understands them), so leave them,
17448 # especially as we might pass files found there to a mingw objdump,
17449 # which wouldn't understand a cygwinified path. Ahh.
17450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17451 else
17452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17453 fi
17454 ;;
17455 pw32*)
17456 # pw32 DLLs use 'pw' prefix rather than 'lib'
17457 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17458 ;;
17459 esac
17460 ;;
17461
17462 *)
17463 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17464 ;;
17465 esac
17466 dynamic_linker='Win32 ld.exe'
17467 # FIXME: first we should search . and the directory the executable is in
17468 shlibpath_var=PATH
17469 ;;
17470
17471 darwin* | rhapsody*)
17472 dynamic_linker="$host_os dyld"
17473 version_type=darwin
17474 need_lib_prefix=no
17475 need_version=no
17476 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17477 soname_spec='${libname}${release}${major}$shared_ext'
17478 shlibpath_overrides_runpath=yes
17479 shlibpath_var=DYLD_LIBRARY_PATH
17480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17481 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17482 if test "$GCC" = yes; then
17483 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"`
17484 else
17485 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17486 fi
17487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17488 ;;
17489
17490 dgux*)
17491 version_type=linux
17492 need_lib_prefix=no
17493 need_version=no
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 shlibpath_var=LD_LIBRARY_PATH
17497 ;;
17498
17499 freebsd1*)
17500 dynamic_linker=no
17501 ;;
17502
17503 kfreebsd*-gnu)
17504 version_type=linux
17505 need_lib_prefix=no
17506 need_version=no
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=no
17511 hardcode_into_libs=yes
17512 dynamic_linker='GNU ld.so'
17513 ;;
17514
17515 freebsd* | dragonfly*)
17516 # DragonFly does not have aout. When/if they implement a new
17517 # versioning mechanism, adjust this.
17518 if test -x /usr/bin/objformat; then
17519 objformat=`/usr/bin/objformat`
17520 else
17521 case $host_os in
17522 freebsd[123]*) objformat=aout ;;
17523 *) objformat=elf ;;
17524 esac
17525 fi
17526 version_type=freebsd-$objformat
17527 case $version_type in
17528 freebsd-elf*)
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17530 need_version=no
17531 need_lib_prefix=no
17532 ;;
17533 freebsd-*)
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17535 need_version=yes
17536 ;;
17537 esac
17538 shlibpath_var=LD_LIBRARY_PATH
17539 case $host_os in
17540 freebsd2*)
17541 shlibpath_overrides_runpath=yes
17542 ;;
17543 freebsd3.[01]* | freebsdelf3.[01]*)
17544 shlibpath_overrides_runpath=yes
17545 hardcode_into_libs=yes
17546 ;;
17547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17549 shlibpath_overrides_runpath=no
17550 hardcode_into_libs=yes
17551 ;;
17552 freebsd*) # from 4.6 on
17553 shlibpath_overrides_runpath=yes
17554 hardcode_into_libs=yes
17555 ;;
17556 esac
17557 ;;
17558
17559 gnu*)
17560 version_type=linux
17561 need_lib_prefix=no
17562 need_version=no
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 shlibpath_var=LD_LIBRARY_PATH
17566 hardcode_into_libs=yes
17567 ;;
17568
17569 hpux9* | hpux10* | hpux11*)
17570 # Give a soname corresponding to the major version so that dld.sl refuses to
17571 # link against other versions.
17572 version_type=sunos
17573 need_lib_prefix=no
17574 need_version=no
17575 case $host_cpu in
17576 ia64*)
17577 shrext_cmds='.so'
17578 hardcode_into_libs=yes
17579 dynamic_linker="$host_os dld.so"
17580 shlibpath_var=LD_LIBRARY_PATH
17581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583 soname_spec='${libname}${release}${shared_ext}$major'
17584 if test "X$HPUX_IA64_MODE" = X32; then
17585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17586 else
17587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17588 fi
17589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17590 ;;
17591 hppa*64*)
17592 shrext_cmds='.sl'
17593 hardcode_into_libs=yes
17594 dynamic_linker="$host_os dld.sl"
17595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598 soname_spec='${libname}${release}${shared_ext}$major'
17599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17601 ;;
17602 *)
17603 shrext_cmds='.sl'
17604 dynamic_linker="$host_os dld.sl"
17605 shlibpath_var=SHLIB_PATH
17606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 ;;
17610 esac
17611 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17612 postinstall_cmds='chmod 555 $lib'
17613 ;;
17614
17615 interix3*)
17616 version_type=linux
17617 need_lib_prefix=no
17618 need_version=no
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath=no
17624 hardcode_into_libs=yes
17625 ;;
17626
17627 irix5* | irix6* | nonstopux*)
17628 case $host_os in
17629 nonstopux*) version_type=nonstopux ;;
17630 *)
17631 if test "$lt_cv_prog_gnu_ld" = yes; then
17632 version_type=linux
17633 else
17634 version_type=irix
17635 fi ;;
17636 esac
17637 need_lib_prefix=no
17638 need_version=no
17639 soname_spec='${libname}${release}${shared_ext}$major'
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17641 case $host_os in
17642 irix5* | nonstopux*)
17643 libsuff= shlibsuff=
17644 ;;
17645 *)
17646 case $LD in # libtool.m4 will add one of these switches to LD
17647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17648 libsuff= shlibsuff= libmagic=32-bit;;
17649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17650 libsuff=32 shlibsuff=N32 libmagic=N32;;
17651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17652 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17653 *) libsuff= shlibsuff= libmagic=never-match;;
17654 esac
17655 ;;
17656 esac
17657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17658 shlibpath_overrides_runpath=no
17659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17661 hardcode_into_libs=yes
17662 ;;
17663
17664 # No shared lib support for Linux oldld, aout, or coff.
17665 linux*oldld* | linux*aout* | linux*coff*)
17666 dynamic_linker=no
17667 ;;
17668
17669 # This must be Linux ELF.
17670 linux*)
17671 version_type=linux
17672 need_lib_prefix=no
17673 need_version=no
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17677 shlibpath_var=LD_LIBRARY_PATH
17678 shlibpath_overrides_runpath=no
17679 # This implies no fast_install, which is unacceptable.
17680 # Some rework will be needed to allow for fast_install
17681 # before this can be enabled.
17682 hardcode_into_libs=yes
17683
17684 # find out which ABI we are using
17685 libsuff=
17686 case "$host_cpu" in
17687 x86_64*|s390x*|powerpc64*)
17688 echo '#line 17688 "configure"' > conftest.$ac_ext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690 (eval $ac_compile) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; then
17694 case `/usr/bin/file conftest.$ac_objext` in
17695 *64-bit*)
17696 libsuff=64
17697 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17698 ;;
17699 esac
17700 fi
17701 rm -rf conftest*
17702 ;;
17703 esac
17704
17705 # Append ld.so.conf contents to the search path
17706 if test -f /etc/ld.so.conf; then
17707 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17708 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17709 fi
17710
17711 # We used to test for /lib/ld.so.1 and disable shared libraries on
17712 # powerpc, because MkLinux only supported shared libraries with the
17713 # GNU dynamic linker. Since this was broken with cross compilers,
17714 # most powerpc-linux boxes support dynamic linking these days and
17715 # people can always --disable-shared, the test was removed, and we
17716 # assume the GNU/Linux dynamic linker is in use.
17717 dynamic_linker='GNU/Linux ld.so'
17718 ;;
17719
17720 knetbsd*-gnu)
17721 version_type=linux
17722 need_lib_prefix=no
17723 need_version=no
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath=no
17728 hardcode_into_libs=yes
17729 dynamic_linker='GNU ld.so'
17730 ;;
17731
17732 netbsd*)
17733 version_type=sunos
17734 need_lib_prefix=no
17735 need_version=no
17736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17739 dynamic_linker='NetBSD (a.out) ld.so'
17740 else
17741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 dynamic_linker='NetBSD ld.elf_so'
17744 fi
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=yes
17747 hardcode_into_libs=yes
17748 ;;
17749
17750 newsos6)
17751 version_type=linux
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753 shlibpath_var=LD_LIBRARY_PATH
17754 shlibpath_overrides_runpath=yes
17755 ;;
17756
17757 nto-qnx*)
17758 version_type=linux
17759 need_lib_prefix=no
17760 need_version=no
17761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17762 soname_spec='${libname}${release}${shared_ext}$major'
17763 shlibpath_var=LD_LIBRARY_PATH
17764 shlibpath_overrides_runpath=yes
17765 ;;
17766
17767 openbsd*)
17768 version_type=sunos
17769 sys_lib_dlsearch_path_spec="/usr/lib"
17770 need_lib_prefix=no
17771 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17772 case $host_os in
17773 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17774 *) need_version=no ;;
17775 esac
17776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17778 shlibpath_var=LD_LIBRARY_PATH
17779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17780 case $host_os in
17781 openbsd2.[89] | openbsd2.[89].*)
17782 shlibpath_overrides_runpath=no
17783 ;;
17784 *)
17785 shlibpath_overrides_runpath=yes
17786 ;;
17787 esac
17788 else
17789 shlibpath_overrides_runpath=yes
17790 fi
17791 ;;
17792
17793 os2*)
17794 libname_spec='$name'
17795 shrext_cmds=".dll"
17796 need_lib_prefix=no
17797 library_names_spec='$libname${shared_ext} $libname.a'
17798 dynamic_linker='OS/2 ld.exe'
17799 shlibpath_var=LIBPATH
17800 ;;
17801
17802 osf3* | osf4* | osf5*)
17803 version_type=osf
17804 need_lib_prefix=no
17805 need_version=no
17806 soname_spec='${libname}${release}${shared_ext}$major'
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17810 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17811 ;;
17812
17813 solaris*)
17814 version_type=linux
17815 need_lib_prefix=no
17816 need_version=no
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818 soname_spec='${libname}${release}${shared_ext}$major'
17819 shlibpath_var=LD_LIBRARY_PATH
17820 shlibpath_overrides_runpath=yes
17821 hardcode_into_libs=yes
17822 # ldd complains unless libraries are executable
17823 postinstall_cmds='chmod +x $lib'
17824 ;;
17825
17826 sunos4*)
17827 version_type=sunos
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=yes
17832 if test "$with_gnu_ld" = yes; then
17833 need_lib_prefix=no
17834 fi
17835 need_version=yes
17836 ;;
17837
17838 sysv4 | sysv4.3*)
17839 version_type=linux
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 soname_spec='${libname}${release}${shared_ext}$major'
17842 shlibpath_var=LD_LIBRARY_PATH
17843 case $host_vendor in
17844 sni)
17845 shlibpath_overrides_runpath=no
17846 need_lib_prefix=no
17847 export_dynamic_flag_spec='${wl}-Blargedynsym'
17848 runpath_var=LD_RUN_PATH
17849 ;;
17850 siemens)
17851 need_lib_prefix=no
17852 ;;
17853 motorola)
17854 need_lib_prefix=no
17855 need_version=no
17856 shlibpath_overrides_runpath=no
17857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17858 ;;
17859 esac
17860 ;;
17861
17862 sysv4*MP*)
17863 if test -d /usr/nec ;then
17864 version_type=linux
17865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17866 soname_spec='$libname${shared_ext}.$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 fi
17869 ;;
17870
17871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17872 version_type=freebsd-elf
17873 need_lib_prefix=no
17874 need_version=no
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 hardcode_into_libs=yes
17879 if test "$with_gnu_ld" = yes; then
17880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17881 shlibpath_overrides_runpath=no
17882 else
17883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17884 shlibpath_overrides_runpath=yes
17885 case $host_os in
17886 sco3.2v5*)
17887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17888 ;;
17889 esac
17890 fi
17891 sys_lib_dlsearch_path_spec='/usr/lib'
17892 ;;
17893
17894 uts4*)
17895 version_type=linux
17896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17897 soname_spec='${libname}${release}${shared_ext}$major'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 ;;
17900
17901 *)
17902 dynamic_linker=no
17903 ;;
17904 esac
17905 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17906 echo "${ECHO_T}$dynamic_linker" >&6
17907 test "$dynamic_linker" = no && can_build_shared=no
17908
17909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17910 if test "$GCC" = yes; then
17911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17912 fi
17913
17914 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17915 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17916 hardcode_action_GCJ=
17917 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17918 test -n "$runpath_var_GCJ" || \
17919 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17920
17921 # We can hardcode non-existant directories.
17922 if test "$hardcode_direct_GCJ" != no &&
17923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17924 # have to relink, otherwise we might link with an installed library
17925 # when we should be linking with a yet-to-be-installed one
17926 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17927 test "$hardcode_minus_L_GCJ" != no; then
17928 # Linking always hardcodes the temporary library directory.
17929 hardcode_action_GCJ=relink
17930 else
17931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17932 hardcode_action_GCJ=immediate
17933 fi
17934 else
17935 # We cannot hardcode anything, or else we can only hardcode existing
17936 # directories.
17937 hardcode_action_GCJ=unsupported
17938 fi
17939 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17940 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17941
17942 if test "$hardcode_action_GCJ" = relink; then
17943 # Fast installation is not supported
17944 enable_fast_install=no
17945 elif test "$shlibpath_overrides_runpath" = yes ||
17946 test "$enable_shared" = no; then
17947 # Fast installation is not necessary
17948 enable_fast_install=needless
17949 fi
17950
17951
17952 # The else clause should only fire when bootstrapping the
17953 # libtool distribution, otherwise you forgot to ship ltmain.sh
17954 # with your package, and you will get complaints that there are
17955 # no rules to generate ltmain.sh.
17956 if test -f "$ltmain"; then
17957 # See if we are running on zsh, and set the options which allow our commands through
17958 # without removal of \ escapes.
17959 if test -n "${ZSH_VERSION+set}" ; then
17960 setopt NO_GLOB_SUBST
17961 fi
17962 # Now quote all the things that may contain metacharacters while being
17963 # careful not to overquote the AC_SUBSTed values. We take copies of the
17964 # variables and quote the copies for generation of the libtool script.
17965 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17966 SED SHELL STRIP \
17967 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17968 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17969 deplibs_check_method reload_flag reload_cmds need_locks \
17970 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17971 lt_cv_sys_global_symbol_to_c_name_address \
17972 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17973 old_postinstall_cmds old_postuninstall_cmds \
17974 compiler_GCJ \
17975 CC_GCJ \
17976 LD_GCJ \
17977 lt_prog_compiler_wl_GCJ \
17978 lt_prog_compiler_pic_GCJ \
17979 lt_prog_compiler_static_GCJ \
17980 lt_prog_compiler_no_builtin_flag_GCJ \
17981 export_dynamic_flag_spec_GCJ \
17982 thread_safe_flag_spec_GCJ \
17983 whole_archive_flag_spec_GCJ \
17984 enable_shared_with_static_runtimes_GCJ \
17985 old_archive_cmds_GCJ \
17986 old_archive_from_new_cmds_GCJ \
17987 predep_objects_GCJ \
17988 postdep_objects_GCJ \
17989 predeps_GCJ \
17990 postdeps_GCJ \
17991 compiler_lib_search_path_GCJ \
17992 archive_cmds_GCJ \
17993 archive_expsym_cmds_GCJ \
17994 postinstall_cmds_GCJ \
17995 postuninstall_cmds_GCJ \
17996 old_archive_from_expsyms_cmds_GCJ \
17997 allow_undefined_flag_GCJ \
17998 no_undefined_flag_GCJ \
17999 export_symbols_cmds_GCJ \
18000 hardcode_libdir_flag_spec_GCJ \
18001 hardcode_libdir_flag_spec_ld_GCJ \
18002 hardcode_libdir_separator_GCJ \
18003 hardcode_automatic_GCJ \
18004 module_cmds_GCJ \
18005 module_expsym_cmds_GCJ \
18006 lt_cv_prog_compiler_c_o_GCJ \
18007 exclude_expsyms_GCJ \
18008 include_expsyms_GCJ; do
18009
18010 case $var in
18011 old_archive_cmds_GCJ | \
18012 old_archive_from_new_cmds_GCJ | \
18013 archive_cmds_GCJ | \
18014 archive_expsym_cmds_GCJ | \
18015 module_cmds_GCJ | \
18016 module_expsym_cmds_GCJ | \
18017 old_archive_from_expsyms_cmds_GCJ | \
18018 export_symbols_cmds_GCJ | \
18019 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18020 postinstall_cmds | postuninstall_cmds | \
18021 old_postinstall_cmds | old_postuninstall_cmds | \
18022 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18023 # Double-quote double-evaled strings.
18024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18025 ;;
18026 *)
18027 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18028 ;;
18029 esac
18030 done
18031
18032 case $lt_echo in
18033 *'\$0 --fallback-echo"')
18034 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18035 ;;
18036 esac
18037
18038 cfgfile="$ofile"
18039
18040 cat <<__EOF__ >> "$cfgfile"
18041 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18042
18043 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18044
18045 # Shell to use when invoking shell scripts.
18046 SHELL=$lt_SHELL
18047
18048 # Whether or not to build shared libraries.
18049 build_libtool_libs=$enable_shared
18050
18051 # Whether or not to build static libraries.
18052 build_old_libs=$enable_static
18053
18054 # Whether or not to add -lc for building shared libraries.
18055 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18056
18057 # Whether or not to disallow shared libs when runtime libs are static
18058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18059
18060 # Whether or not to optimize for fast installation.
18061 fast_install=$enable_fast_install
18062
18063 # The host system.
18064 host_alias=$host_alias
18065 host=$host
18066 host_os=$host_os
18067
18068 # The build system.
18069 build_alias=$build_alias
18070 build=$build
18071 build_os=$build_os
18072
18073 # An echo program that does not interpret backslashes.
18074 echo=$lt_echo
18075
18076 # The archiver.
18077 AR=$lt_AR
18078 AR_FLAGS=$lt_AR_FLAGS
18079
18080 # A C compiler.
18081 LTCC=$lt_LTCC
18082
18083 # LTCC compiler flags.
18084 LTCFLAGS=$lt_LTCFLAGS
18085
18086 # A language-specific compiler.
18087 CC=$lt_compiler_GCJ
18088
18089 # Is the compiler the GNU C compiler?
18090 with_gcc=$GCC_GCJ
18091
18092 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18093 gcc_ver=\`gcc -dumpversion\`
18094
18095 # An ERE matcher.
18096 EGREP=$lt_EGREP
18097
18098 # The linker used to build libraries.
18099 LD=$lt_LD_GCJ
18100
18101 # Whether we need hard or soft links.
18102 LN_S=$lt_LN_S
18103
18104 # A BSD-compatible nm program.
18105 NM=$lt_NM
18106
18107 # A symbol stripping program
18108 STRIP=$lt_STRIP
18109
18110 # Used to examine libraries when file_magic_cmd begins "file"
18111 MAGIC_CMD=$MAGIC_CMD
18112
18113 # Used on cygwin: DLL creation program.
18114 DLLTOOL="$DLLTOOL"
18115
18116 # Used on cygwin: object dumper.
18117 OBJDUMP="$OBJDUMP"
18118
18119 # Used on cygwin: assembler.
18120 AS="$AS"
18121
18122 # The name of the directory that contains temporary libtool files.
18123 objdir=$objdir
18124
18125 # How to create reloadable object files.
18126 reload_flag=$lt_reload_flag
18127 reload_cmds=$lt_reload_cmds
18128
18129 # How to pass a linker flag through the compiler.
18130 wl=$lt_lt_prog_compiler_wl_GCJ
18131
18132 # Object file suffix (normally "o").
18133 objext="$ac_objext"
18134
18135 # Old archive suffix (normally "a").
18136 libext="$libext"
18137
18138 # Shared library suffix (normally ".so").
18139 shrext_cmds='$shrext_cmds'
18140
18141 # Executable file suffix (normally "").
18142 exeext="$exeext"
18143
18144 # Additional compiler flags for building library objects.
18145 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18146 pic_mode=$pic_mode
18147
18148 # What is the maximum length of a command?
18149 max_cmd_len=$lt_cv_sys_max_cmd_len
18150
18151 # Does compiler simultaneously support -c and -o options?
18152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18153
18154 # Must we lock files when doing compilation?
18155 need_locks=$lt_need_locks
18156
18157 # Do we need the lib prefix for modules?
18158 need_lib_prefix=$need_lib_prefix
18159
18160 # Do we need a version for libraries?
18161 need_version=$need_version
18162
18163 # Whether dlopen is supported.
18164 dlopen_support=$enable_dlopen
18165
18166 # Whether dlopen of programs is supported.
18167 dlopen_self=$enable_dlopen_self
18168
18169 # Whether dlopen of statically linked programs is supported.
18170 dlopen_self_static=$enable_dlopen_self_static
18171
18172 # Compiler flag to prevent dynamic linking.
18173 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18174
18175 # Compiler flag to turn off builtin functions.
18176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18177
18178 # Compiler flag to allow reflexive dlopens.
18179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18180
18181 # Compiler flag to generate shared objects directly from archives.
18182 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18183
18184 # Compiler flag to generate thread-safe objects.
18185 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18186
18187 # Library versioning type.
18188 version_type=$version_type
18189
18190 # Format of library name prefix.
18191 libname_spec=$lt_libname_spec
18192
18193 # List of archive names. First name is the real one, the rest are links.
18194 # The last name is the one that the linker finds with -lNAME.
18195 library_names_spec=$lt_library_names_spec
18196
18197 # The coded name of the library, if different from the real name.
18198 soname_spec=$lt_soname_spec
18199
18200 # Commands used to build and install an old-style archive.
18201 RANLIB=$lt_RANLIB
18202 old_archive_cmds=$lt_old_archive_cmds_GCJ
18203 old_postinstall_cmds=$lt_old_postinstall_cmds
18204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18205
18206 # Create an old-style archive from a shared archive.
18207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18208
18209 # Create a temporary old-style archive to link instead of a shared archive.
18210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18211
18212 # Commands used to build and install a shared archive.
18213 archive_cmds=$lt_archive_cmds_GCJ
18214 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18215 postinstall_cmds=$lt_postinstall_cmds
18216 postuninstall_cmds=$lt_postuninstall_cmds
18217
18218 # Commands used to build a loadable module (assumed same as above if empty)
18219 module_cmds=$lt_module_cmds_GCJ
18220 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18221
18222 # Commands to strip libraries.
18223 old_striplib=$lt_old_striplib
18224 striplib=$lt_striplib
18225
18226 # Dependencies to place before the objects being linked to create a
18227 # shared library.
18228 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18229
18230 # Dependencies to place after the objects being linked to create a
18231 # shared library.
18232 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18233
18234 # Dependencies to place before the objects being linked to create a
18235 # shared library.
18236 predeps=$lt_predeps_GCJ
18237
18238 # Dependencies to place after the objects being linked to create a
18239 # shared library.
18240 postdeps=$lt_postdeps_GCJ
18241
18242 # The library search path used internally by the compiler when linking
18243 # a shared library.
18244 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18245
18246 # Method to check whether dependent libraries are shared objects.
18247 deplibs_check_method=$lt_deplibs_check_method
18248
18249 # Command to use when deplibs_check_method == file_magic.
18250 file_magic_cmd=$lt_file_magic_cmd
18251
18252 # Flag that allows shared libraries with undefined symbols to be built.
18253 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18254
18255 # Flag that forces no undefined symbols.
18256 no_undefined_flag=$lt_no_undefined_flag_GCJ
18257
18258 # Commands used to finish a libtool library installation in a directory.
18259 finish_cmds=$lt_finish_cmds
18260
18261 # Same as above, but a single script fragment to be evaled but not shown.
18262 finish_eval=$lt_finish_eval
18263
18264 # Take the output of nm and produce a listing of raw symbols and C names.
18265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18266
18267 # Transform the output of nm in a proper C declaration
18268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18269
18270 # Transform the output of nm in a C name address pair
18271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18272
18273 # This is the shared library runtime path variable.
18274 runpath_var=$runpath_var
18275
18276 # This is the shared library path variable.
18277 shlibpath_var=$shlibpath_var
18278
18279 # Is shlibpath searched before the hard-coded library search path?
18280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18281
18282 # How to hardcode a shared library path into an executable.
18283 hardcode_action=$hardcode_action_GCJ
18284
18285 # Whether we should hardcode library paths into libraries.
18286 hardcode_into_libs=$hardcode_into_libs
18287
18288 # Flag to hardcode \$libdir into a binary during linking.
18289 # This must work even if \$libdir does not exist.
18290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18291
18292 # If ld is used when linking, flag to hardcode \$libdir into
18293 # a binary during linking. This must work even if \$libdir does
18294 # not exist.
18295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18296
18297 # Whether we need a single -rpath flag with a separated argument.
18298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18299
18300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18301 # resulting binary.
18302 hardcode_direct=$hardcode_direct_GCJ
18303
18304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18305 # resulting binary.
18306 hardcode_minus_L=$hardcode_minus_L_GCJ
18307
18308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18309 # the resulting binary.
18310 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18311
18312 # Set to yes if building a shared library automatically hardcodes DIR into the library
18313 # and all subsequent libraries and executables linked against it.
18314 hardcode_automatic=$hardcode_automatic_GCJ
18315
18316 # Variables whose values should be saved in libtool wrapper scripts and
18317 # restored at relink time.
18318 variables_saved_for_relink="$variables_saved_for_relink"
18319
18320 # Whether libtool must link a program against all its dependency libraries.
18321 link_all_deplibs=$link_all_deplibs_GCJ
18322
18323 # Compile-time system search path for libraries
18324 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18325
18326 # Run-time system search path for libraries
18327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18328
18329 # Fix the shell variable \$srcfile for the compiler.
18330 fix_srcfile_path="$fix_srcfile_path_GCJ"
18331
18332 # Set to yes if exported symbols are required.
18333 always_export_symbols=$always_export_symbols_GCJ
18334
18335 # The commands to list exported symbols.
18336 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18337
18338 # The commands to extract the exported symbol list from a shared archive.
18339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18340
18341 # Symbols that should not be listed in the preloaded symbols.
18342 exclude_expsyms=$lt_exclude_expsyms_GCJ
18343
18344 # Symbols that must always be exported.
18345 include_expsyms=$lt_include_expsyms_GCJ
18346
18347 # ### END LIBTOOL TAG CONFIG: $tagname
18348
18349 __EOF__
18350
18351
18352 else
18353 # If there is no Makefile yet, we rely on a make rule to execute
18354 # `config.status --recheck' to rerun these tests and create the
18355 # libtool script then.
18356 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18357 if test -f "$ltmain_in"; then
18358 test -f Makefile && make "$ltmain"
18359 fi
18360 fi
18361
18362
18363 ac_ext=c
18364 ac_cpp='$CPP $CPPFLAGS'
18365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18368
18369 CC="$lt_save_CC"
18370
18371 else
18372 tagname=""
18373 fi
18374 ;;
18375
18376 RC)
18377
18378
18379
18380 # Source file extension for RC test sources.
18381 ac_ext=rc
18382
18383 # Object file extension for compiled RC test sources.
18384 objext=o
18385 objext_RC=$objext
18386
18387 # Code to be used in simple compile tests
18388 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18389
18390 # Code to be used in simple link tests
18391 lt_simple_link_test_code="$lt_simple_compile_test_code"
18392
18393 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18394
18395 # If no C compiler was specified, use CC.
18396 LTCC=${LTCC-"$CC"}
18397
18398 # If no C compiler flags were specified, use CFLAGS.
18399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18400
18401 # Allow CC to be a program name with arguments.
18402 compiler=$CC
18403
18404
18405 # save warnings/boilerplate of simple test code
18406 ac_outfile=conftest.$ac_objext
18407 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18408 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18409 _lt_compiler_boilerplate=`cat conftest.err`
18410 $rm conftest*
18411
18412 ac_outfile=conftest.$ac_objext
18413 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18414 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18415 _lt_linker_boilerplate=`cat conftest.err`
18416 $rm conftest*
18417
18418
18419 # Allow CC to be a program name with arguments.
18420 lt_save_CC="$CC"
18421 CC=${RC-"windres"}
18422 compiler=$CC
18423 compiler_RC=$CC
18424 for cc_temp in $compiler""; do
18425 case $cc_temp in
18426 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18427 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18428 \-*) ;;
18429 *) break;;
18430 esac
18431 done
18432 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18433
18434 lt_cv_prog_compiler_c_o_RC=yes
18435
18436 # The else clause should only fire when bootstrapping the
18437 # libtool distribution, otherwise you forgot to ship ltmain.sh
18438 # with your package, and you will get complaints that there are
18439 # no rules to generate ltmain.sh.
18440 if test -f "$ltmain"; then
18441 # See if we are running on zsh, and set the options which allow our commands through
18442 # without removal of \ escapes.
18443 if test -n "${ZSH_VERSION+set}" ; then
18444 setopt NO_GLOB_SUBST
18445 fi
18446 # Now quote all the things that may contain metacharacters while being
18447 # careful not to overquote the AC_SUBSTed values. We take copies of the
18448 # variables and quote the copies for generation of the libtool script.
18449 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18450 SED SHELL STRIP \
18451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18453 deplibs_check_method reload_flag reload_cmds need_locks \
18454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18455 lt_cv_sys_global_symbol_to_c_name_address \
18456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18457 old_postinstall_cmds old_postuninstall_cmds \
18458 compiler_RC \
18459 CC_RC \
18460 LD_RC \
18461 lt_prog_compiler_wl_RC \
18462 lt_prog_compiler_pic_RC \
18463 lt_prog_compiler_static_RC \
18464 lt_prog_compiler_no_builtin_flag_RC \
18465 export_dynamic_flag_spec_RC \
18466 thread_safe_flag_spec_RC \
18467 whole_archive_flag_spec_RC \
18468 enable_shared_with_static_runtimes_RC \
18469 old_archive_cmds_RC \
18470 old_archive_from_new_cmds_RC \
18471 predep_objects_RC \
18472 postdep_objects_RC \
18473 predeps_RC \
18474 postdeps_RC \
18475 compiler_lib_search_path_RC \
18476 archive_cmds_RC \
18477 archive_expsym_cmds_RC \
18478 postinstall_cmds_RC \
18479 postuninstall_cmds_RC \
18480 old_archive_from_expsyms_cmds_RC \
18481 allow_undefined_flag_RC \
18482 no_undefined_flag_RC \
18483 export_symbols_cmds_RC \
18484 hardcode_libdir_flag_spec_RC \
18485 hardcode_libdir_flag_spec_ld_RC \
18486 hardcode_libdir_separator_RC \
18487 hardcode_automatic_RC \
18488 module_cmds_RC \
18489 module_expsym_cmds_RC \
18490 lt_cv_prog_compiler_c_o_RC \
18491 exclude_expsyms_RC \
18492 include_expsyms_RC; do
18493
18494 case $var in
18495 old_archive_cmds_RC | \
18496 old_archive_from_new_cmds_RC | \
18497 archive_cmds_RC | \
18498 archive_expsym_cmds_RC | \
18499 module_cmds_RC | \
18500 module_expsym_cmds_RC | \
18501 old_archive_from_expsyms_cmds_RC | \
18502 export_symbols_cmds_RC | \
18503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18504 postinstall_cmds | postuninstall_cmds | \
18505 old_postinstall_cmds | old_postuninstall_cmds | \
18506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18507 # Double-quote double-evaled strings.
18508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18509 ;;
18510 *)
18511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18512 ;;
18513 esac
18514 done
18515
18516 case $lt_echo in
18517 *'\$0 --fallback-echo"')
18518 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18519 ;;
18520 esac
18521
18522 cfgfile="$ofile"
18523
18524 cat <<__EOF__ >> "$cfgfile"
18525 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18526
18527 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18528
18529 # Shell to use when invoking shell scripts.
18530 SHELL=$lt_SHELL
18531
18532 # Whether or not to build shared libraries.
18533 build_libtool_libs=$enable_shared
18534
18535 # Whether or not to build static libraries.
18536 build_old_libs=$enable_static
18537
18538 # Whether or not to add -lc for building shared libraries.
18539 build_libtool_need_lc=$archive_cmds_need_lc_RC
18540
18541 # Whether or not to disallow shared libs when runtime libs are static
18542 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18543
18544 # Whether or not to optimize for fast installation.
18545 fast_install=$enable_fast_install
18546
18547 # The host system.
18548 host_alias=$host_alias
18549 host=$host
18550 host_os=$host_os
18551
18552 # The build system.
18553 build_alias=$build_alias
18554 build=$build
18555 build_os=$build_os
18556
18557 # An echo program that does not interpret backslashes.
18558 echo=$lt_echo
18559
18560 # The archiver.
18561 AR=$lt_AR
18562 AR_FLAGS=$lt_AR_FLAGS
18563
18564 # A C compiler.
18565 LTCC=$lt_LTCC
18566
18567 # LTCC compiler flags.
18568 LTCFLAGS=$lt_LTCFLAGS
18569
18570 # A language-specific compiler.
18571 CC=$lt_compiler_RC
18572
18573 # Is the compiler the GNU C compiler?
18574 with_gcc=$GCC_RC
18575
18576 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18577 gcc_ver=\`gcc -dumpversion\`
18578
18579 # An ERE matcher.
18580 EGREP=$lt_EGREP
18581
18582 # The linker used to build libraries.
18583 LD=$lt_LD_RC
18584
18585 # Whether we need hard or soft links.
18586 LN_S=$lt_LN_S
18587
18588 # A BSD-compatible nm program.
18589 NM=$lt_NM
18590
18591 # A symbol stripping program
18592 STRIP=$lt_STRIP
18593
18594 # Used to examine libraries when file_magic_cmd begins "file"
18595 MAGIC_CMD=$MAGIC_CMD
18596
18597 # Used on cygwin: DLL creation program.
18598 DLLTOOL="$DLLTOOL"
18599
18600 # Used on cygwin: object dumper.
18601 OBJDUMP="$OBJDUMP"
18602
18603 # Used on cygwin: assembler.
18604 AS="$AS"
18605
18606 # The name of the directory that contains temporary libtool files.
18607 objdir=$objdir
18608
18609 # How to create reloadable object files.
18610 reload_flag=$lt_reload_flag
18611 reload_cmds=$lt_reload_cmds
18612
18613 # How to pass a linker flag through the compiler.
18614 wl=$lt_lt_prog_compiler_wl_RC
18615
18616 # Object file suffix (normally "o").
18617 objext="$ac_objext"
18618
18619 # Old archive suffix (normally "a").
18620 libext="$libext"
18621
18622 # Shared library suffix (normally ".so").
18623 shrext_cmds='$shrext_cmds'
18624
18625 # Executable file suffix (normally "").
18626 exeext="$exeext"
18627
18628 # Additional compiler flags for building library objects.
18629 pic_flag=$lt_lt_prog_compiler_pic_RC
18630 pic_mode=$pic_mode
18631
18632 # What is the maximum length of a command?
18633 max_cmd_len=$lt_cv_sys_max_cmd_len
18634
18635 # Does compiler simultaneously support -c and -o options?
18636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18637
18638 # Must we lock files when doing compilation?
18639 need_locks=$lt_need_locks
18640
18641 # Do we need the lib prefix for modules?
18642 need_lib_prefix=$need_lib_prefix
18643
18644 # Do we need a version for libraries?
18645 need_version=$need_version
18646
18647 # Whether dlopen is supported.
18648 dlopen_support=$enable_dlopen
18649
18650 # Whether dlopen of programs is supported.
18651 dlopen_self=$enable_dlopen_self
18652
18653 # Whether dlopen of statically linked programs is supported.
18654 dlopen_self_static=$enable_dlopen_self_static
18655
18656 # Compiler flag to prevent dynamic linking.
18657 link_static_flag=$lt_lt_prog_compiler_static_RC
18658
18659 # Compiler flag to turn off builtin functions.
18660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18661
18662 # Compiler flag to allow reflexive dlopens.
18663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18664
18665 # Compiler flag to generate shared objects directly from archives.
18666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18667
18668 # Compiler flag to generate thread-safe objects.
18669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18670
18671 # Library versioning type.
18672 version_type=$version_type
18673
18674 # Format of library name prefix.
18675 libname_spec=$lt_libname_spec
18676
18677 # List of archive names. First name is the real one, the rest are links.
18678 # The last name is the one that the linker finds with -lNAME.
18679 library_names_spec=$lt_library_names_spec
18680
18681 # The coded name of the library, if different from the real name.
18682 soname_spec=$lt_soname_spec
18683
18684 # Commands used to build and install an old-style archive.
18685 RANLIB=$lt_RANLIB
18686 old_archive_cmds=$lt_old_archive_cmds_RC
18687 old_postinstall_cmds=$lt_old_postinstall_cmds
18688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18689
18690 # Create an old-style archive from a shared archive.
18691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18692
18693 # Create a temporary old-style archive to link instead of a shared archive.
18694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18695
18696 # Commands used to build and install a shared archive.
18697 archive_cmds=$lt_archive_cmds_RC
18698 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18699 postinstall_cmds=$lt_postinstall_cmds
18700 postuninstall_cmds=$lt_postuninstall_cmds
18701
18702 # Commands used to build a loadable module (assumed same as above if empty)
18703 module_cmds=$lt_module_cmds_RC
18704 module_expsym_cmds=$lt_module_expsym_cmds_RC
18705
18706 # Commands to strip libraries.
18707 old_striplib=$lt_old_striplib
18708 striplib=$lt_striplib
18709
18710 # Dependencies to place before the objects being linked to create a
18711 # shared library.
18712 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18713
18714 # Dependencies to place after the objects being linked to create a
18715 # shared library.
18716 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18717
18718 # Dependencies to place before the objects being linked to create a
18719 # shared library.
18720 predeps=$lt_predeps_RC
18721
18722 # Dependencies to place after the objects being linked to create a
18723 # shared library.
18724 postdeps=$lt_postdeps_RC
18725
18726 # The library search path used internally by the compiler when linking
18727 # a shared library.
18728 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18729
18730 # Method to check whether dependent libraries are shared objects.
18731 deplibs_check_method=$lt_deplibs_check_method
18732
18733 # Command to use when deplibs_check_method == file_magic.
18734 file_magic_cmd=$lt_file_magic_cmd
18735
18736 # Flag that allows shared libraries with undefined symbols to be built.
18737 allow_undefined_flag=$lt_allow_undefined_flag_RC
18738
18739 # Flag that forces no undefined symbols.
18740 no_undefined_flag=$lt_no_undefined_flag_RC
18741
18742 # Commands used to finish a libtool library installation in a directory.
18743 finish_cmds=$lt_finish_cmds
18744
18745 # Same as above, but a single script fragment to be evaled but not shown.
18746 finish_eval=$lt_finish_eval
18747
18748 # Take the output of nm and produce a listing of raw symbols and C names.
18749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18750
18751 # Transform the output of nm in a proper C declaration
18752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18753
18754 # Transform the output of nm in a C name address pair
18755 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18756
18757 # This is the shared library runtime path variable.
18758 runpath_var=$runpath_var
18759
18760 # This is the shared library path variable.
18761 shlibpath_var=$shlibpath_var
18762
18763 # Is shlibpath searched before the hard-coded library search path?
18764 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18765
18766 # How to hardcode a shared library path into an executable.
18767 hardcode_action=$hardcode_action_RC
18768
18769 # Whether we should hardcode library paths into libraries.
18770 hardcode_into_libs=$hardcode_into_libs
18771
18772 # Flag to hardcode \$libdir into a binary during linking.
18773 # This must work even if \$libdir does not exist.
18774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18775
18776 # If ld is used when linking, flag to hardcode \$libdir into
18777 # a binary during linking. This must work even if \$libdir does
18778 # not exist.
18779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18780
18781 # Whether we need a single -rpath flag with a separated argument.
18782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18783
18784 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18785 # resulting binary.
18786 hardcode_direct=$hardcode_direct_RC
18787
18788 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18789 # resulting binary.
18790 hardcode_minus_L=$hardcode_minus_L_RC
18791
18792 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18793 # the resulting binary.
18794 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18795
18796 # Set to yes if building a shared library automatically hardcodes DIR into the library
18797 # and all subsequent libraries and executables linked against it.
18798 hardcode_automatic=$hardcode_automatic_RC
18799
18800 # Variables whose values should be saved in libtool wrapper scripts and
18801 # restored at relink time.
18802 variables_saved_for_relink="$variables_saved_for_relink"
18803
18804 # Whether libtool must link a program against all its dependency libraries.
18805 link_all_deplibs=$link_all_deplibs_RC
18806
18807 # Compile-time system search path for libraries
18808 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18809
18810 # Run-time system search path for libraries
18811 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18812
18813 # Fix the shell variable \$srcfile for the compiler.
18814 fix_srcfile_path="$fix_srcfile_path_RC"
18815
18816 # Set to yes if exported symbols are required.
18817 always_export_symbols=$always_export_symbols_RC
18818
18819 # The commands to list exported symbols.
18820 export_symbols_cmds=$lt_export_symbols_cmds_RC
18821
18822 # The commands to extract the exported symbol list from a shared archive.
18823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18824
18825 # Symbols that should not be listed in the preloaded symbols.
18826 exclude_expsyms=$lt_exclude_expsyms_RC
18827
18828 # Symbols that must always be exported.
18829 include_expsyms=$lt_include_expsyms_RC
18830
18831 # ### END LIBTOOL TAG CONFIG: $tagname
18832
18833 __EOF__
18834
18835
18836 else
18837 # If there is no Makefile yet, we rely on a make rule to execute
18838 # `config.status --recheck' to rerun these tests and create the
18839 # libtool script then.
18840 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18841 if test -f "$ltmain_in"; then
18842 test -f Makefile && make "$ltmain"
18843 fi
18844 fi
18845
18846
18847 ac_ext=c
18848 ac_cpp='$CPP $CPPFLAGS'
18849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18852
18853 CC="$lt_save_CC"
18854
18855 ;;
18856
18857 *)
18858 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18859 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18860 { (exit 1); exit 1; }; }
18861 ;;
18862 esac
18863
18864 # Append the new tag name to the list of available tags.
18865 if test -n "$tagname" ; then
18866 available_tags="$available_tags $tagname"
18867 fi
18868 fi
18869 done
18870 IFS="$lt_save_ifs"
18871
18872 # Now substitute the updated list of available tags.
18873 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18874 mv "${ofile}T" "$ofile"
18875 chmod +x "$ofile"
18876 else
18877 rm -f "${ofile}T"
18878 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18879 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18880 { (exit 1); exit 1; }; }
18881 fi
18882 fi
18883
18884
18885
18886 # This can be used to rebuild libtool when needed
18887 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18888
18889 # Always use our own libtool.
18890 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18891
18892 # Prevent multiple expansion
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915 saveLIBS="$LIBS"
18916 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
18917 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
18918 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921 ac_check_lib_save_LIBS=$LIBS
18922 LIBS="-lgdbm $LIBS"
18923 cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h. */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18929
18930 /* Override any gcc2 internal prototype to avoid an error. */
18931 #ifdef __cplusplus
18932 extern "C"
18933 #endif
18934 /* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18936 char gdbm_open ();
18937 int
18938 main ()
18939 {
18940 gdbm_open ();
18941 ;
18942 return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947 (eval $ac_link) 2>conftest.er1
18948 ac_status=$?
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_lib_gdbm_gdbm_open=yes
18968 else
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972 ac_cv_lib_gdbm_gdbm_open=no
18973 fi
18974 rm -f conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18977 fi
18978 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
18979 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
18980 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
18981 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
18982 fi
18983
18984
18985 echo "$as_me:$LINENO: checking for gdbm_open" >&5
18986 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
18987 if test "${ac_cv_func_gdbm_open+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h. */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998 #define gdbm_open innocuous_gdbm_open
18999
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char gdbm_open (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19004
19005 #ifdef __STDC__
19006 # include <limits.h>
19007 #else
19008 # include <assert.h>
19009 #endif
19010
19011 #undef gdbm_open
19012
19013 /* Override any gcc2 internal prototype to avoid an error. */
19014 #ifdef __cplusplus
19015 extern "C"
19016 {
19017 #endif
19018 /* We use char because int might match the return type of a gcc2
19019 builtin and then its argument prototype would still apply. */
19020 char gdbm_open ();
19021 /* The GNU C library defines this for functions which it implements
19022 to always fail with ENOSYS. Some functions are actually named
19023 something starting with __ and the normal name is an alias. */
19024 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19025 choke me
19026 #else
19027 char (*f) () = gdbm_open;
19028 #endif
19029 #ifdef __cplusplus
19030 }
19031 #endif
19032
19033 int
19034 main ()
19035 {
19036 return f != gdbm_open;
19037 ;
19038 return 0;
19039 }
19040 _ACEOF
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19043 (eval $ac_link) 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -z "$ac_c_werror_flag"
19051 || test ! -s conftest.err'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19063 ac_cv_func_gdbm_open=yes
19064 else
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19067
19068 ac_cv_func_gdbm_open=no
19069 fi
19070 rm -f conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072 fi
19073 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
19074 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
19075 if test $ac_cv_func_gdbm_open = yes; then
19076 FOUND_GDBM=1
19077 else
19078 FOUND_GDBM=0
19079 fi
19080
19081
19082 if test "$FOUND_GDBM" = 1
19083 then
19084
19085 for ac_func in gdbm_fdesc
19086 do
19087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19088 echo "$as_me:$LINENO: checking for $ac_func" >&5
19089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19090 if eval "test \"\${$as_ac_var+set}\" = set"; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 else
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19101 #define $ac_func innocuous_$ac_func
19102
19103 /* System header to define __stub macros and hopefully few prototypes,
19104 which can conflict with char $ac_func (); below.
19105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19106 <limits.h> exists even on freestanding compilers. */
19107
19108 #ifdef __STDC__
19109 # include <limits.h>
19110 #else
19111 # include <assert.h>
19112 #endif
19113
19114 #undef $ac_func
19115
19116 /* Override any gcc2 internal prototype to avoid an error. */
19117 #ifdef __cplusplus
19118 extern "C"
19119 {
19120 #endif
19121 /* We use char because int might match the return type of a gcc2
19122 builtin and then its argument prototype would still apply. */
19123 char $ac_func ();
19124 /* The GNU C library defines this for functions which it implements
19125 to always fail with ENOSYS. Some functions are actually named
19126 something starting with __ and the normal name is an alias. */
19127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19128 choke me
19129 #else
19130 char (*f) () = $ac_func;
19131 #endif
19132 #ifdef __cplusplus
19133 }
19134 #endif
19135
19136 int
19137 main ()
19138 {
19139 return f != $ac_func;
19140 ;
19141 return 0;
19142 }
19143 _ACEOF
19144 rm -f conftest.$ac_objext conftest$ac_exeext
19145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19146 (eval $ac_link) 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -z "$ac_c_werror_flag"
19154 || test ! -s conftest.err'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest$ac_exeext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 eval "$as_ac_var=yes"
19167 else
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171 eval "$as_ac_var=no"
19172 fi
19173 rm -f conftest.err conftest.$ac_objext \
19174 conftest$ac_exeext conftest.$ac_ext
19175 fi
19176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19178 if test `eval echo '${'$as_ac_var'}'` = yes; then
19179 cat >>confdefs.h <<_ACEOF
19180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19181 _ACEOF
19182
19183 fi
19184 done
19185
19186 fi
19187
19188
19189 for ac_header in unistd.h fcntl.h
19190 do
19191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19193 echo "$as_me:$LINENO: checking for $ac_header" >&5
19194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197 fi
19198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19200 else
19201 # Is the header compilable?
19202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 $ac_includes_default
19211 #include <$ac_header>
19212 _ACEOF
19213 rm -f conftest.$ac_objext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19215 (eval $ac_compile) 2>conftest.er1
19216 ac_status=$?
19217 grep -v '^ *+' conftest.er1 >conftest.err
19218 rm -f conftest.er1
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 ac_header_compiler=yes
19236 else
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19239
19240 ac_header_compiler=no
19241 fi
19242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19244 echo "${ECHO_T}$ac_header_compiler" >&6
19245
19246 # Is the header present?
19247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19249 cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h. */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 #include <$ac_header>
19256 _ACEOF
19257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } >/dev/null; then
19265 if test -s conftest.err; then
19266 ac_cpp_err=$ac_c_preproc_warn_flag
19267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19268 else
19269 ac_cpp_err=
19270 fi
19271 else
19272 ac_cpp_err=yes
19273 fi
19274 if test -z "$ac_cpp_err"; then
19275 ac_header_preproc=yes
19276 else
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19279
19280 ac_header_preproc=no
19281 fi
19282 rm -f conftest.err conftest.$ac_ext
19283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19284 echo "${ECHO_T}$ac_header_preproc" >&6
19285
19286 # So? What about this header?
19287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19288 yes:no: )
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19293 ac_header_preproc=yes
19294 ;;
19295 no:yes:* )
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19308 (
19309 cat <<\_ASBOX
19310 ## -------------------------------------------------- ##
19311 ## Report this to courier-users@lists.sourceforge.net ##
19312 ## -------------------------------------------------- ##
19313 _ASBOX
19314 ) |
19315 sed "s/^/$as_me: WARNING: /" >&2
19316 ;;
19317 esac
19318 echo "$as_me:$LINENO: checking for $ac_header" >&5
19319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323 eval "$as_ac_Header=\$ac_header_preproc"
19324 fi
19325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19327
19328 fi
19329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19330 cat >>confdefs.h <<_ACEOF
19331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19332 _ACEOF
19333
19334 fi
19335
19336 done
19337
19338
19339 LIBS="$saveLIBS"
19340
19341
19342
19343
19344
19345 if test "$FOUND_GDBM" = 1; then
19346 FOUND_GDBM_TRUE=
19347 FOUND_GDBM_FALSE='#'
19348 else
19349 FOUND_GDBM_TRUE='#'
19350 FOUND_GDBM_FALSE=
19351 fi
19352
19353
19354
19355 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19356 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19357 if test "${ac_cv_c_const+set}" = set; then
19358 echo $ECHO_N "(cached) $ECHO_C" >&6
19359 else
19360 cat >conftest.$ac_ext <<_ACEOF
19361 /* confdefs.h. */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19366
19367 int
19368 main ()
19369 {
19370 /* FIXME: Include the comments suggested by Paul. */
19371 #ifndef __cplusplus
19372 /* Ultrix mips cc rejects this. */
19373 typedef int charset[2];
19374 const charset x;
19375 /* SunOS 4.1.1 cc rejects this. */
19376 char const *const *ccp;
19377 char **p;
19378 /* NEC SVR4.0.2 mips cc rejects this. */
19379 struct point {int x, y;};
19380 static struct point const zero = {0,0};
19381 /* AIX XL C 1.02.0.0 rejects this.
19382 It does not let you subtract one const X* pointer from another in
19383 an arm of an if-expression whose if-part is not a constant
19384 expression */
19385 const char *g = "string";
19386 ccp = &g + (g ? g-g : 0);
19387 /* HPUX 7.0 cc rejects these. */
19388 ++ccp;
19389 p = (char**) ccp;
19390 ccp = (char const *const *) p;
19391 { /* SCO 3.2v4 cc rejects this. */
19392 char *t;
19393 char const *s = 0 ? (char *) 0 : (char const *) 0;
19394
19395 *t++ = 0;
19396 }
19397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19398 int x[] = {25, 17};
19399 const int *foo = &x[0];
19400 ++foo;
19401 }
19402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19403 typedef const int *iptr;
19404 iptr p = 0;
19405 ++p;
19406 }
19407 { /* AIX XL C 1.02.0.0 rejects this saying
19408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19409 struct s { int j; const int *ap[3]; };
19410 struct s *b; b->j = 5;
19411 }
19412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19413 const int foo = 10;
19414 }
19415 #endif
19416
19417 ;
19418 return 0;
19419 }
19420 _ACEOF
19421 rm -f conftest.$ac_objext
19422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423 (eval $ac_compile) 2>conftest.er1
19424 ac_status=$?
19425 grep -v '^ *+' conftest.er1 >conftest.err
19426 rm -f conftest.er1
19427 cat conftest.err >&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -z "$ac_c_werror_flag"
19431 || test ! -s conftest.err'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest.$ac_objext'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_c_const=yes
19444 else
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448 ac_cv_c_const=no
19449 fi
19450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19451 fi
19452 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19453 echo "${ECHO_T}$ac_cv_c_const" >&6
19454 if test $ac_cv_c_const = no; then
19455
19456 cat >>confdefs.h <<\_ACEOF
19457 #define const
19458 _ACEOF
19459
19460 fi
19461
19462 echo "$as_me:$LINENO: checking for size_t" >&5
19463 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19464 if test "${ac_cv_type_size_t+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467 cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h. */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 $ac_includes_default
19474 int
19475 main ()
19476 {
19477 if ((size_t *) 0)
19478 return 0;
19479 if (sizeof (size_t))
19480 return 0;
19481 ;
19482 return 0;
19483 }
19484 _ACEOF
19485 rm -f conftest.$ac_objext
19486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19487 (eval $ac_compile) 2>conftest.er1
19488 ac_status=$?
19489 grep -v '^ *+' conftest.er1 >conftest.err
19490 rm -f conftest.er1
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } &&
19494 { ac_try='test -z "$ac_c_werror_flag"
19495 || test ! -s conftest.err'
19496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 (eval $ac_try) 2>&5
19498 ac_status=$?
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; } &&
19501 { ac_try='test -s conftest.$ac_objext'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507 ac_cv_type_size_t=yes
19508 else
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512 ac_cv_type_size_t=no
19513 fi
19514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19515 fi
19516 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19517 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19518 if test $ac_cv_type_size_t = yes; then
19519 :
19520 else
19521
19522 cat >>confdefs.h <<_ACEOF
19523 #define size_t unsigned
19524 _ACEOF
19525
19526 fi
19527
19528
19529
19530 ac_ext=cc
19531 ac_cpp='$CXXCPP $CPPFLAGS'
19532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19535
19536 echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
19537 echo $ECHO_N "checking if the C++ compiler needs -fhandle-exceptions... $ECHO_C" >&6
19538 if test "${ac_cxx_need_handlexceptions+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h. */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547
19548 int
19549 main ()
19550 {
19551
19552 throw;
19553
19554 ;
19555 return 0;
19556 }
19557 _ACEOF
19558 rm -f conftest.$ac_objext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19560 (eval $ac_compile) 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_cxx_werror_flag"
19568 || test ! -s conftest.err'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_cxx_need_handlexceptions=no
19581 else
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585 ac_cxx_need_handlexceptions=yes
19586 fi
19587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588
19589 fi
19590 echo "$as_me:$LINENO: result: $ac_cxx_need_handlexceptions" >&5
19591 echo "${ECHO_T}$ac_cxx_need_handlexceptions" >&6
19592
19593 if test "$ac_cxx_need_handlexceptions" = "yes"
19594 then
19595 case "$CXXFLAGS" in
19596 *handle-exceptions*)
19597 ;;
19598 *)
19599 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
19600 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
19601 ;;
19602 esac
19603 fi
19604
19605 ac_config_files="$ac_config_files Makefile"
19606 cat >confcache <<\_ACEOF
19607 # This file is a shell script that caches the results of configure
19608 # tests run on this system so they can be shared between configure
19609 # scripts and configure runs, see configure's option --config-cache.
19610 # It is not useful on other systems. If it contains results you don't
19611 # want to keep, you may remove or edit it.
19612 #
19613 # config.status only pays attention to the cache file if you give it
19614 # the --recheck option to rerun configure.
19615 #
19616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19618 # following values.
19619
19620 _ACEOF
19621
19622 # The following way of writing the cache mishandles newlines in values,
19623 # but we know of no workaround that is simple, portable, and efficient.
19624 # So, don't put newlines in cache variables' values.
19625 # Ultrix sh set writes to stderr and can't be redirected directly,
19626 # and sets the high bit in the cache file unless we assign to the vars.
19627 {
19628 (set) 2>&1 |
19629 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19630 *ac_space=\ *)
19631 # `set' does not quote correctly, so add quotes (double-quote
19632 # substitution turns \\\\ into \\, and sed turns \\ into \).
19633 sed -n \
19634 "s/'/'\\\\''/g;
19635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19636 ;;
19637 *)
19638 # `set' quotes correctly as required by POSIX, so do not add quotes.
19639 sed -n \
19640 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19641 ;;
19642 esac;
19643 } |
19644 sed '
19645 t clear
19646 : clear
19647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19648 t end
19649 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19650 : end' >>confcache
19651 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19652 if test -w $cache_file; then
19653 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19654 cat confcache >$cache_file
19655 else
19656 echo "not updating unwritable cache $cache_file"
19657 fi
19658 fi
19659 rm -f confcache
19660
19661 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19662 # Let make expand exec_prefix.
19663 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19664
19665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19667 # trailing colons and then remove the whole line if VPATH becomes empty
19668 # (actually we leave an empty line to preserve line numbers).
19669 if test "x$srcdir" = x.; then
19670 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19671 s/:*\$(srcdir):*/:/;
19672 s/:*\${srcdir}:*/:/;
19673 s/:*@srcdir@:*/:/;
19674 s/^\([^=]*=[ ]*\):*/\1/;
19675 s/:*$//;
19676 s/^[^=]*=[ ]*$//;
19677 }'
19678 fi
19679
19680 DEFS=-DHAVE_CONFIG_H
19681
19682 ac_libobjs=
19683 ac_ltlibobjs=
19684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19685 # 1. Remove the extension, and $U if already installed.
19686 ac_i=`echo "$ac_i" |
19687 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19688 # 2. Add them.
19689 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19690 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19691 done
19692 LIBOBJS=$ac_libobjs
19693
19694 LTLIBOBJS=$ac_ltlibobjs
19695
19696
19697 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19698 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19699 Usually this means the macro was only invoked conditionally." >&5
19700 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19701 Usually this means the macro was only invoked conditionally." >&2;}
19702 { (exit 1); exit 1; }; }
19703 fi
19704 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19705 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19706 Usually this means the macro was only invoked conditionally." >&5
19707 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19708 Usually this means the macro was only invoked conditionally." >&2;}
19709 { (exit 1); exit 1; }; }
19710 fi
19711 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19712 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19713 Usually this means the macro was only invoked conditionally." >&5
19714 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19715 Usually this means the macro was only invoked conditionally." >&2;}
19716 { (exit 1); exit 1; }; }
19717 fi
19718 if test -z "${FOUND_GDBM_TRUE}" && test -z "${FOUND_GDBM_FALSE}"; then
19719 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GDBM\" was never defined.
19720 Usually this means the macro was only invoked conditionally." >&5
19721 echo "$as_me: error: conditional \"FOUND_GDBM\" was never defined.
19722 Usually this means the macro was only invoked conditionally." >&2;}
19723 { (exit 1); exit 1; }; }
19724 fi
19725
19726 : ${CONFIG_STATUS=./config.status}
19727 ac_clean_files_save=$ac_clean_files
19728 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19729 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19730 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19731 cat >$CONFIG_STATUS <<_ACEOF
19732 #! $SHELL
19733 # Generated by $as_me.
19734 # Run this file to recreate the current configuration.
19735 # Compiler output produced by configure, useful for debugging
19736 # configure, is in config.log if it exists.
19737
19738 debug=false
19739 ac_cs_recheck=false
19740 ac_cs_silent=false
19741 SHELL=\${CONFIG_SHELL-$SHELL}
19742 _ACEOF
19743
19744 cat >>$CONFIG_STATUS <<\_ACEOF
19745 ## --------------------- ##
19746 ## M4sh Initialization. ##
19747 ## --------------------- ##
19748
19749 # Be Bourne compatible
19750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19751 emulate sh
19752 NULLCMD=:
19753 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19754 # is contrary to our usage. Disable this feature.
19755 alias -g '${1+"$@"}'='"$@"'
19756 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19757 set -o posix
19758 fi
19759 DUALCASE=1; export DUALCASE # for MKS sh
19760
19761 # Support unset when possible.
19762 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19763 as_unset=unset
19764 else
19765 as_unset=false
19766 fi
19767
19768
19769 # Work around bugs in pre-3.0 UWIN ksh.
19770 $as_unset ENV MAIL MAILPATH
19771 PS1='$ '
19772 PS2='> '
19773 PS4='+ '
19774
19775 # NLS nuisances.
19776 for as_var in \
19777 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19778 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19779 LC_TELEPHONE LC_TIME
19780 do
19781 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19782 eval $as_var=C; export $as_var
19783 else
19784 $as_unset $as_var
19785 fi
19786 done
19787
19788 # Required to use basename.
19789 if expr a : '\(a\)' >/dev/null 2>&1; then
19790 as_expr=expr
19791 else
19792 as_expr=false
19793 fi
19794
19795 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19796 as_basename=basename
19797 else
19798 as_basename=false
19799 fi
19800
19801
19802 # Name of the executable.
19803 as_me=`$as_basename "$0" ||
19804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19805 X"$0" : 'X\(//\)$' \| \
19806 X"$0" : 'X\(/\)$' \| \
19807 . : '\(.\)' 2>/dev/null ||
19808 echo X/"$0" |
19809 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19810 /^X\/\(\/\/\)$/{ s//\1/; q; }
19811 /^X\/\(\/\).*/{ s//\1/; q; }
19812 s/.*/./; q'`
19813
19814
19815 # PATH needs CR, and LINENO needs CR and PATH.
19816 # Avoid depending upon Character Ranges.
19817 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19818 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19819 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19820 as_cr_digits='0123456789'
19821 as_cr_alnum=$as_cr_Letters$as_cr_digits
19822
19823 # The user is always right.
19824 if test "${PATH_SEPARATOR+set}" != set; then
19825 echo "#! /bin/sh" >conf$$.sh
19826 echo "exit 0" >>conf$$.sh
19827 chmod +x conf$$.sh
19828 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19829 PATH_SEPARATOR=';'
19830 else
19831 PATH_SEPARATOR=:
19832 fi
19833 rm -f conf$$.sh
19834 fi
19835
19836
19837 as_lineno_1=$LINENO
19838 as_lineno_2=$LINENO
19839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19840 test "x$as_lineno_1" != "x$as_lineno_2" &&
19841 test "x$as_lineno_3" = "x$as_lineno_2" || {
19842 # Find who we are. Look in the path if we contain no path at all
19843 # relative or not.
19844 case $0 in
19845 *[\\/]* ) as_myself=$0 ;;
19846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847 for as_dir in $PATH
19848 do
19849 IFS=$as_save_IFS
19850 test -z "$as_dir" && as_dir=.
19851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19852 done
19853
19854 ;;
19855 esac
19856 # We did not find ourselves, most probably we were run as `sh COMMAND'
19857 # in which case we are not to be found in the path.
19858 if test "x$as_myself" = x; then
19859 as_myself=$0
19860 fi
19861 if test ! -f "$as_myself"; then
19862 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19863 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19864 { (exit 1); exit 1; }; }
19865 fi
19866 case $CONFIG_SHELL in
19867 '')
19868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19869 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19870 do
19871 IFS=$as_save_IFS
19872 test -z "$as_dir" && as_dir=.
19873 for as_base in sh bash ksh sh5; do
19874 case $as_dir in
19875 /*)
19876 if ("$as_dir/$as_base" -c '
19877 as_lineno_1=$LINENO
19878 as_lineno_2=$LINENO
19879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19880 test "x$as_lineno_1" != "x$as_lineno_2" &&
19881 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19882 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19883 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19884 CONFIG_SHELL=$as_dir/$as_base
19885 export CONFIG_SHELL
19886 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19887 fi;;
19888 esac
19889 done
19890 done
19891 ;;
19892 esac
19893
19894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19895 # uniformly replaced by the line number. The first 'sed' inserts a
19896 # line-number line before each line; the second 'sed' does the real
19897 # work. The second script uses 'N' to pair each line-number line
19898 # with the numbered line, and appends trailing '-' during
19899 # substitution so that $LINENO is not a special case at line end.
19900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19901 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19902 sed '=' <$as_myself |
19903 sed '
19904 N
19905 s,$,-,
19906 : loop
19907 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19908 t loop
19909 s,-$,,
19910 s,^['$as_cr_digits']*\n,,
19911 ' >$as_me.lineno &&
19912 chmod +x $as_me.lineno ||
19913 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19914 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19915 { (exit 1); exit 1; }; }
19916
19917 # Don't try to exec as it changes $[0], causing all sort of problems
19918 # (the dirname of $[0] is not the place where we might find the
19919 # original and so on. Autoconf is especially sensible to this).
19920 . ./$as_me.lineno
19921 # Exit status is that of the last command.
19922 exit
19923 }
19924
19925
19926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19927 *c*,-n*) ECHO_N= ECHO_C='
19928 ' ECHO_T=' ' ;;
19929 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19930 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19931 esac
19932
19933 if expr a : '\(a\)' >/dev/null 2>&1; then
19934 as_expr=expr
19935 else
19936 as_expr=false
19937 fi
19938
19939 rm -f conf$$ conf$$.exe conf$$.file
19940 echo >conf$$.file
19941 if ln -s conf$$.file conf$$ 2>/dev/null; then
19942 # We could just check for DJGPP; but this test a) works b) is more generic
19943 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19944 if test -f conf$$.exe; then
19945 # Don't use ln at all; we don't have any links
19946 as_ln_s='cp -p'
19947 else
19948 as_ln_s='ln -s'
19949 fi
19950 elif ln conf$$.file conf$$ 2>/dev/null; then
19951 as_ln_s=ln
19952 else
19953 as_ln_s='cp -p'
19954 fi
19955 rm -f conf$$ conf$$.exe conf$$.file
19956
19957 if mkdir -p . 2>/dev/null; then
19958 as_mkdir_p=:
19959 else
19960 test -d ./-p && rmdir ./-p
19961 as_mkdir_p=false
19962 fi
19963
19964 as_executable_p="test -f"
19965
19966 # Sed expression to map a string onto a valid CPP name.
19967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19968
19969 # Sed expression to map a string onto a valid variable name.
19970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19971
19972
19973 # IFS
19974 # We need space, tab and new line, in precisely that order.
19975 as_nl='
19976 '
19977 IFS=" $as_nl"
19978
19979 # CDPATH.
19980 $as_unset CDPATH
19981
19982 exec 6>&1
19983
19984 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19985 # report actual input values of CONFIG_FILES etc. instead of their
19986 # values after options handling. Logging --version etc. is OK.
19987 exec 5>>config.log
19988 {
19989 echo
19990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19991 ## Running $as_me. ##
19992 _ASBOX
19993 } >&5
19994 cat >&5 <<_CSEOF
19995
19996 This file was extended by gdbmobj $as_me 0.10, which was
19997 generated by GNU Autoconf 2.59. Invocation command line was
19998
19999 CONFIG_FILES = $CONFIG_FILES
20000 CONFIG_HEADERS = $CONFIG_HEADERS
20001 CONFIG_LINKS = $CONFIG_LINKS
20002 CONFIG_COMMANDS = $CONFIG_COMMANDS
20003 $ $0 $@
20004
20005 _CSEOF
20006 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20007 echo >&5
20008 _ACEOF
20009
20010 # Files that config.status was made for.
20011 if test -n "$ac_config_files"; then
20012 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20013 fi
20014
20015 if test -n "$ac_config_headers"; then
20016 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20017 fi
20018
20019 if test -n "$ac_config_links"; then
20020 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20021 fi
20022
20023 if test -n "$ac_config_commands"; then
20024 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20025 fi
20026
20027 cat >>$CONFIG_STATUS <<\_ACEOF
20028
20029 ac_cs_usage="\
20030 \`$as_me' instantiates files from templates according to the
20031 current configuration.
20032
20033 Usage: $0 [OPTIONS] [FILE]...
20034
20035 -h, --help print this help, then exit
20036 -V, --version print version number, then exit
20037 -q, --quiet do not print progress messages
20038 -d, --debug don't remove temporary files
20039 --recheck update $as_me by reconfiguring in the same conditions
20040 --file=FILE[:TEMPLATE]
20041 instantiate the configuration file FILE
20042 --header=FILE[:TEMPLATE]
20043 instantiate the configuration header FILE
20044
20045 Configuration files:
20046 $config_files
20047
20048 Configuration headers:
20049 $config_headers
20050
20051 Configuration commands:
20052 $config_commands
20053
20054 Report bugs to <bug-autoconf@gnu.org>."
20055 _ACEOF
20056
20057 cat >>$CONFIG_STATUS <<_ACEOF
20058 ac_cs_version="\\
20059 gdbmobj config.status 0.10
20060 configured by $0, generated by GNU Autoconf 2.59,
20061 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20062
20063 Copyright (C) 2003 Free Software Foundation, Inc.
20064 This config.status script is free software; the Free Software Foundation
20065 gives unlimited permission to copy, distribute and modify it."
20066 srcdir=$srcdir
20067 INSTALL="$INSTALL"
20068 _ACEOF
20069
20070 cat >>$CONFIG_STATUS <<\_ACEOF
20071 # If no file are specified by the user, then we need to provide default
20072 # value. By we need to know if files were specified by the user.
20073 ac_need_defaults=:
20074 while test $# != 0
20075 do
20076 case $1 in
20077 --*=*)
20078 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20079 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20080 ac_shift=:
20081 ;;
20082 -*)
20083 ac_option=$1
20084 ac_optarg=$2
20085 ac_shift=shift
20086 ;;
20087 *) # This is not an option, so the user has probably given explicit
20088 # arguments.
20089 ac_option=$1
20090 ac_need_defaults=false;;
20091 esac
20092
20093 case $ac_option in
20094 # Handling of the options.
20095 _ACEOF
20096 cat >>$CONFIG_STATUS <<\_ACEOF
20097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20098 ac_cs_recheck=: ;;
20099 --version | --vers* | -V )
20100 echo "$ac_cs_version"; exit 0 ;;
20101 --he | --h)
20102 # Conflict between --help and --header
20103 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20104 Try \`$0 --help' for more information." >&5
20105 echo "$as_me: error: ambiguous option: $1
20106 Try \`$0 --help' for more information." >&2;}
20107 { (exit 1); exit 1; }; };;
20108 --help | --hel | -h )
20109 echo "$ac_cs_usage"; exit 0 ;;
20110 --debug | --d* | -d )
20111 debug=: ;;
20112 --file | --fil | --fi | --f )
20113 $ac_shift
20114 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20115 ac_need_defaults=false;;
20116 --header | --heade | --head | --hea )
20117 $ac_shift
20118 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20119 ac_need_defaults=false;;
20120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20122 ac_cs_silent=: ;;
20123
20124 # This is an error.
20125 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20126 Try \`$0 --help' for more information." >&5
20127 echo "$as_me: error: unrecognized option: $1
20128 Try \`$0 --help' for more information." >&2;}
20129 { (exit 1); exit 1; }; } ;;
20130
20131 *) ac_config_targets="$ac_config_targets $1" ;;
20132
20133 esac
20134 shift
20135 done
20136
20137 ac_configure_extra_args=
20138
20139 if $ac_cs_silent; then
20140 exec 6>/dev/null
20141 ac_configure_extra_args="$ac_configure_extra_args --silent"
20142 fi
20143
20144 _ACEOF
20145 cat >>$CONFIG_STATUS <<_ACEOF
20146 if \$ac_cs_recheck; then
20147 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20148 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20149 fi
20150
20151 _ACEOF
20152
20153 cat >>$CONFIG_STATUS <<_ACEOF
20154 #
20155 # INIT-COMMANDS section.
20156 #
20157
20158 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20159
20160 _ACEOF
20161
20162
20163
20164 cat >>$CONFIG_STATUS <<\_ACEOF
20165 for ac_config_target in $ac_config_targets
20166 do
20167 case "$ac_config_target" in
20168 # Handling of arguments.
20169 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20170 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20171 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20173 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20174 { (exit 1); exit 1; }; };;
20175 esac
20176 done
20177
20178 # If the user did not use the arguments to specify the items to instantiate,
20179 # then the envvar interface is used. Set only those that are not.
20180 # We use the long form for the default assignment because of an extremely
20181 # bizarre bug on SunOS 4.1.3.
20182 if $ac_need_defaults; then
20183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20185 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20186 fi
20187
20188 # Have a temporary directory for convenience. Make it in the build tree
20189 # simply because there is no reason to put it here, and in addition,
20190 # creating and moving files from /tmp can sometimes cause problems.
20191 # Create a temporary directory, and hook for its removal unless debugging.
20192 $debug ||
20193 {
20194 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20195 trap '{ (exit 1); exit 1; }' 1 2 13 15
20196 }
20197
20198 # Create a (secure) tmp directory for tmp files.
20199
20200 {
20201 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20202 test -n "$tmp" && test -d "$tmp"
20203 } ||
20204 {
20205 tmp=./confstat$$-$RANDOM
20206 (umask 077 && mkdir $tmp)
20207 } ||
20208 {
20209 echo "$me: cannot create a temporary directory in ." >&2
20210 { (exit 1); exit 1; }
20211 }
20212
20213 _ACEOF
20214
20215 cat >>$CONFIG_STATUS <<_ACEOF
20216
20217 #
20218 # CONFIG_FILES section.
20219 #
20220
20221 # No need to generate the scripts if there are no CONFIG_FILES.
20222 # This happens for instance when ./config.status config.h
20223 if test -n "\$CONFIG_FILES"; then
20224 # Protect against being on the right side of a sed subst in config.status.
20225 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20226 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20227 s,@SHELL@,$SHELL,;t t
20228 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20229 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20230 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20231 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20232 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20233 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20234 s,@exec_prefix@,$exec_prefix,;t t
20235 s,@prefix@,$prefix,;t t
20236 s,@program_transform_name@,$program_transform_name,;t t
20237 s,@bindir@,$bindir,;t t
20238 s,@sbindir@,$sbindir,;t t
20239 s,@libexecdir@,$libexecdir,;t t
20240 s,@datadir@,$datadir,;t t
20241 s,@sysconfdir@,$sysconfdir,;t t
20242 s,@sharedstatedir@,$sharedstatedir,;t t
20243 s,@localstatedir@,$localstatedir,;t t
20244 s,@libdir@,$libdir,;t t
20245 s,@includedir@,$includedir,;t t
20246 s,@oldincludedir@,$oldincludedir,;t t
20247 s,@infodir@,$infodir,;t t
20248 s,@mandir@,$mandir,;t t
20249 s,@build_alias@,$build_alias,;t t
20250 s,@host_alias@,$host_alias,;t t
20251 s,@target_alias@,$target_alias,;t t
20252 s,@DEFS@,$DEFS,;t t
20253 s,@ECHO_C@,$ECHO_C,;t t
20254 s,@ECHO_N@,$ECHO_N,;t t
20255 s,@ECHO_T@,$ECHO_T,;t t
20256 s,@LIBS@,$LIBS,;t t
20257 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20258 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20259 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20260 s,@CYGPATH_W@,$CYGPATH_W,;t t
20261 s,@PACKAGE@,$PACKAGE,;t t
20262 s,@VERSION@,$VERSION,;t t
20263 s,@ACLOCAL@,$ACLOCAL,;t t
20264 s,@AUTOCONF@,$AUTOCONF,;t t
20265 s,@AUTOMAKE@,$AUTOMAKE,;t t
20266 s,@AUTOHEADER@,$AUTOHEADER,;t t
20267 s,@MAKEINFO@,$MAKEINFO,;t t
20268 s,@install_sh@,$install_sh,;t t
20269 s,@STRIP@,$STRIP,;t t
20270 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20271 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20272 s,@mkdir_p@,$mkdir_p,;t t
20273 s,@AWK@,$AWK,;t t
20274 s,@SET_MAKE@,$SET_MAKE,;t t
20275 s,@am__leading_dot@,$am__leading_dot,;t t
20276 s,@AMTAR@,$AMTAR,;t t
20277 s,@am__tar@,$am__tar,;t t
20278 s,@am__untar@,$am__untar,;t t
20279 s,@CC@,$CC,;t t
20280 s,@CFLAGS@,$CFLAGS,;t t
20281 s,@LDFLAGS@,$LDFLAGS,;t t
20282 s,@CPPFLAGS@,$CPPFLAGS,;t t
20283 s,@ac_ct_CC@,$ac_ct_CC,;t t
20284 s,@EXEEXT@,$EXEEXT,;t t
20285 s,@OBJEXT@,$OBJEXT,;t t
20286 s,@DEPDIR@,$DEPDIR,;t t
20287 s,@am__include@,$am__include,;t t
20288 s,@am__quote@,$am__quote,;t t
20289 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20290 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20291 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20292 s,@CCDEPMODE@,$CCDEPMODE,;t t
20293 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20294 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20295 s,@CPP@,$CPP,;t t
20296 s,@EGREP@,$EGREP,;t t
20297 s,@CXX@,$CXX,;t t
20298 s,@CXXFLAGS@,$CXXFLAGS,;t t
20299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20300 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20301 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20302 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20303 s,@build@,$build,;t t
20304 s,@build_cpu@,$build_cpu,;t t
20305 s,@build_vendor@,$build_vendor,;t t
20306 s,@build_os@,$build_os,;t t
20307 s,@host@,$host,;t t
20308 s,@host_cpu@,$host_cpu,;t t
20309 s,@host_vendor@,$host_vendor,;t t
20310 s,@host_os@,$host_os,;t t
20311 s,@SED@,$SED,;t t
20312 s,@LN_S@,$LN_S,;t t
20313 s,@ECHO@,$ECHO,;t t
20314 s,@AR@,$AR,;t t
20315 s,@ac_ct_AR@,$ac_ct_AR,;t t
20316 s,@RANLIB@,$RANLIB,;t t
20317 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20318 s,@CXXCPP@,$CXXCPP,;t t
20319 s,@F77@,$F77,;t t
20320 s,@FFLAGS@,$FFLAGS,;t t
20321 s,@ac_ct_F77@,$ac_ct_F77,;t t
20322 s,@LIBTOOL@,$LIBTOOL,;t t
20323 s,@LIBGDBM@,$LIBGDBM,;t t
20324 s,@FOUND_GDBM_TRUE@,$FOUND_GDBM_TRUE,;t t
20325 s,@FOUND_GDBM_FALSE@,$FOUND_GDBM_FALSE,;t t
20326 s,@LIBOBJS@,$LIBOBJS,;t t
20327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20328 CEOF
20329
20330 _ACEOF
20331
20332 cat >>$CONFIG_STATUS <<\_ACEOF
20333 # Split the substitutions into bite-sized pieces for seds with
20334 # small command number limits, like on Digital OSF/1 and HP-UX.
20335 ac_max_sed_lines=48
20336 ac_sed_frag=1 # Number of current file.
20337 ac_beg=1 # First line for current file.
20338 ac_end=$ac_max_sed_lines # Line after last line for current file.
20339 ac_more_lines=:
20340 ac_sed_cmds=
20341 while $ac_more_lines; do
20342 if test $ac_beg -gt 1; then
20343 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20344 else
20345 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20346 fi
20347 if test ! -s $tmp/subs.frag; then
20348 ac_more_lines=false
20349 else
20350 # The purpose of the label and of the branching condition is to
20351 # speed up the sed processing (if there are no `@' at all, there
20352 # is no need to browse any of the substitutions).
20353 # These are the two extra sed commands mentioned above.
20354 (echo ':t
20355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20356 if test -z "$ac_sed_cmds"; then
20357 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20358 else
20359 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20360 fi
20361 ac_sed_frag=`expr $ac_sed_frag + 1`
20362 ac_beg=$ac_end
20363 ac_end=`expr $ac_end + $ac_max_sed_lines`
20364 fi
20365 done
20366 if test -z "$ac_sed_cmds"; then
20367 ac_sed_cmds=cat
20368 fi
20369 fi # test -n "$CONFIG_FILES"
20370
20371 _ACEOF
20372 cat >>$CONFIG_STATUS <<\_ACEOF
20373 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20375 case $ac_file in
20376 - | *:- | *:-:* ) # input from stdin
20377 cat >$tmp/stdin
20378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20382 * ) ac_file_in=$ac_file.in ;;
20383 esac
20384
20385 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20388 X"$ac_file" : 'X\(//\)[^/]' \| \
20389 X"$ac_file" : 'X\(//\)$' \| \
20390 X"$ac_file" : 'X\(/\)' \| \
20391 . : '\(.\)' 2>/dev/null ||
20392 echo X"$ac_file" |
20393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20395 /^X\(\/\/\)$/{ s//\1/; q; }
20396 /^X\(\/\).*/{ s//\1/; q; }
20397 s/.*/./; q'`
20398 { if $as_mkdir_p; then
20399 mkdir -p "$ac_dir"
20400 else
20401 as_dir="$ac_dir"
20402 as_dirs=
20403 while test ! -d "$as_dir"; do
20404 as_dirs="$as_dir $as_dirs"
20405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20407 X"$as_dir" : 'X\(//\)[^/]' \| \
20408 X"$as_dir" : 'X\(//\)$' \| \
20409 X"$as_dir" : 'X\(/\)' \| \
20410 . : '\(.\)' 2>/dev/null ||
20411 echo X"$as_dir" |
20412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20414 /^X\(\/\/\)$/{ s//\1/; q; }
20415 /^X\(\/\).*/{ s//\1/; q; }
20416 s/.*/./; q'`
20417 done
20418 test ! -n "$as_dirs" || mkdir $as_dirs
20419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20421 { (exit 1); exit 1; }; }; }
20422
20423 ac_builddir=.
20424
20425 if test "$ac_dir" != .; then
20426 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20427 # A "../" for each directory in $ac_dir_suffix.
20428 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20429 else
20430 ac_dir_suffix= ac_top_builddir=
20431 fi
20432
20433 case $srcdir in
20434 .) # No --srcdir option. We are building in place.
20435 ac_srcdir=.
20436 if test -z "$ac_top_builddir"; then
20437 ac_top_srcdir=.
20438 else
20439 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20440 fi ;;
20441 [\\/]* | ?:[\\/]* ) # Absolute path.
20442 ac_srcdir=$srcdir$ac_dir_suffix;
20443 ac_top_srcdir=$srcdir ;;
20444 *) # Relative path.
20445 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20446 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20447 esac
20448
20449 # Do not use `cd foo && pwd` to compute absolute paths, because
20450 # the directories may not exist.
20451 case `pwd` in
20452 .) ac_abs_builddir="$ac_dir";;
20453 *)
20454 case "$ac_dir" in
20455 .) ac_abs_builddir=`pwd`;;
20456 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20457 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20458 esac;;
20459 esac
20460 case $ac_abs_builddir in
20461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20462 *)
20463 case ${ac_top_builddir}. in
20464 .) ac_abs_top_builddir=$ac_abs_builddir;;
20465 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20466 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20467 esac;;
20468 esac
20469 case $ac_abs_builddir in
20470 .) ac_abs_srcdir=$ac_srcdir;;
20471 *)
20472 case $ac_srcdir in
20473 .) ac_abs_srcdir=$ac_abs_builddir;;
20474 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20475 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20476 esac;;
20477 esac
20478 case $ac_abs_builddir in
20479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20480 *)
20481 case $ac_top_srcdir in
20482 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20483 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20484 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20485 esac;;
20486 esac
20487
20488
20489 case $INSTALL in
20490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20491 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20492 esac
20493
20494 if test x"$ac_file" != x-; then
20495 { echo "$as_me:$LINENO: creating $ac_file" >&5
20496 echo "$as_me: creating $ac_file" >&6;}
20497 rm -f "$ac_file"
20498 fi
20499 # Let's still pretend it is `configure' which instantiates (i.e., don't
20500 # use $as_me), people would be surprised to read:
20501 # /* config.h. Generated by config.status. */
20502 if test x"$ac_file" = x-; then
20503 configure_input=
20504 else
20505 configure_input="$ac_file. "
20506 fi
20507 configure_input=$configure_input"Generated from `echo $ac_file_in |
20508 sed 's,.*/,,'` by configure."
20509
20510 # First look for the input files in the build tree, otherwise in the
20511 # src tree.
20512 ac_file_inputs=`IFS=:
20513 for f in $ac_file_in; do
20514 case $f in
20515 -) echo $tmp/stdin ;;
20516 [\\/$]*)
20517 # Absolute (can't be DOS-style, as IFS=:)
20518 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20519 echo "$as_me: error: cannot find input file: $f" >&2;}
20520 { (exit 1); exit 1; }; }
20521 echo "$f";;
20522 *) # Relative
20523 if test -f "$f"; then
20524 # Build tree
20525 echo "$f"
20526 elif test -f "$srcdir/$f"; then
20527 # Source tree
20528 echo "$srcdir/$f"
20529 else
20530 # /dev/null tree
20531 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20532 echo "$as_me: error: cannot find input file: $f" >&2;}
20533 { (exit 1); exit 1; }; }
20534 fi;;
20535 esac
20536 done` || { (exit 1); exit 1; }
20537 _ACEOF
20538 cat >>$CONFIG_STATUS <<_ACEOF
20539 sed "$ac_vpsub
20540 $extrasub
20541 _ACEOF
20542 cat >>$CONFIG_STATUS <<\_ACEOF
20543 :t
20544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20545 s,@configure_input@,$configure_input,;t t
20546 s,@srcdir@,$ac_srcdir,;t t
20547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20548 s,@top_srcdir@,$ac_top_srcdir,;t t
20549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20550 s,@builddir@,$ac_builddir,;t t
20551 s,@abs_builddir@,$ac_abs_builddir,;t t
20552 s,@top_builddir@,$ac_top_builddir,;t t
20553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20554 s,@INSTALL@,$ac_INSTALL,;t t
20555 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20556 rm -f $tmp/stdin
20557 if test x"$ac_file" != x-; then
20558 mv $tmp/out $ac_file
20559 else
20560 cat $tmp/out
20561 rm -f $tmp/out
20562 fi
20563
20564 done
20565 _ACEOF
20566 cat >>$CONFIG_STATUS <<\_ACEOF
20567
20568 #
20569 # CONFIG_HEADER section.
20570 #
20571
20572 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20573 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20574 #
20575 # ac_d sets the value in "#define NAME VALUE" lines.
20576 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20577 ac_dB='[ ].*$,\1#\2'
20578 ac_dC=' '
20579 ac_dD=',;t'
20580 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20581 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20582 ac_uB='$,\1#\2define\3'
20583 ac_uC=' '
20584 ac_uD=',;t'
20585
20586 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20588 case $ac_file in
20589 - | *:- | *:-:* ) # input from stdin
20590 cat >$tmp/stdin
20591 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20593 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20595 * ) ac_file_in=$ac_file.in ;;
20596 esac
20597
20598 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20599 echo "$as_me: creating $ac_file" >&6;}
20600
20601 # First look for the input files in the build tree, otherwise in the
20602 # src tree.
20603 ac_file_inputs=`IFS=:
20604 for f in $ac_file_in; do
20605 case $f in
20606 -) echo $tmp/stdin ;;
20607 [\\/$]*)
20608 # Absolute (can't be DOS-style, as IFS=:)
20609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20610 echo "$as_me: error: cannot find input file: $f" >&2;}
20611 { (exit 1); exit 1; }; }
20612 # Do quote $f, to prevent DOS paths from being IFS'd.
20613 echo "$f";;
20614 *) # Relative
20615 if test -f "$f"; then
20616 # Build tree
20617 echo "$f"
20618 elif test -f "$srcdir/$f"; then
20619 # Source tree
20620 echo "$srcdir/$f"
20621 else
20622 # /dev/null tree
20623 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20624 echo "$as_me: error: cannot find input file: $f" >&2;}
20625 { (exit 1); exit 1; }; }
20626 fi;;
20627 esac
20628 done` || { (exit 1); exit 1; }
20629 # Remove the trailing spaces.
20630 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20631
20632 _ACEOF
20633
20634 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20635 # `conftest.undefs', that substitutes the proper values into
20636 # config.h.in to produce config.h. The first handles `#define'
20637 # templates, and the second `#undef' templates.
20638 # And first: Protect against being on the right side of a sed subst in
20639 # config.status. Protect against being in an unquoted here document
20640 # in config.status.
20641 rm -f conftest.defines conftest.undefs
20642 # Using a here document instead of a string reduces the quoting nightmare.
20643 # Putting comments in sed scripts is not portable.
20644 #
20645 # `end' is used to avoid that the second main sed command (meant for
20646 # 0-ary CPP macros) applies to n-ary macro definitions.
20647 # See the Autoconf documentation for `clear'.
20648 cat >confdef2sed.sed <<\_ACEOF
20649 s/[\\&,]/\\&/g
20650 s,[\\$`],\\&,g
20651 t clear
20652 : clear
20653 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20654 t end
20655 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20656 : end
20657 _ACEOF
20658 # If some macros were called several times there might be several times
20659 # the same #defines, which is useless. Nevertheless, we may not want to
20660 # sort them, since we want the *last* AC-DEFINE to be honored.
20661 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20662 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20663 rm -f confdef2sed.sed
20664
20665 # This sed command replaces #undef with comments. This is necessary, for
20666 # example, in the case of _POSIX_SOURCE, which is predefined and required
20667 # on some systems where configure will not decide to define it.
20668 cat >>conftest.undefs <<\_ACEOF
20669 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20670 _ACEOF
20671
20672 # Break up conftest.defines because some shells have a limit on the size
20673 # of here documents, and old seds have small limits too (100 cmds).
20674 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20675 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20676 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20677 echo ' :' >>$CONFIG_STATUS
20678 rm -f conftest.tail
20679 while grep . conftest.defines >/dev/null
20680 do
20681 # Write a limited-size here document to $tmp/defines.sed.
20682 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20683 # Speed up: don't consider the non `#define' lines.
20684 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20685 # Work around the forget-to-reset-the-flag bug.
20686 echo 't clr' >>$CONFIG_STATUS
20687 echo ': clr' >>$CONFIG_STATUS
20688 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20689 echo 'CEOF
20690 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20691 rm -f $tmp/in
20692 mv $tmp/out $tmp/in
20693 ' >>$CONFIG_STATUS
20694 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20695 rm -f conftest.defines
20696 mv conftest.tail conftest.defines
20697 done
20698 rm -f conftest.defines
20699 echo ' fi # grep' >>$CONFIG_STATUS
20700 echo >>$CONFIG_STATUS
20701
20702 # Break up conftest.undefs because some shells have a limit on the size
20703 # of here documents, and old seds have small limits too (100 cmds).
20704 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20705 rm -f conftest.tail
20706 while grep . conftest.undefs >/dev/null
20707 do
20708 # Write a limited-size here document to $tmp/undefs.sed.
20709 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20710 # Speed up: don't consider the non `#undef'
20711 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20712 # Work around the forget-to-reset-the-flag bug.
20713 echo 't clr' >>$CONFIG_STATUS
20714 echo ': clr' >>$CONFIG_STATUS
20715 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20716 echo 'CEOF
20717 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20718 rm -f $tmp/in
20719 mv $tmp/out $tmp/in
20720 ' >>$CONFIG_STATUS
20721 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20722 rm -f conftest.undefs
20723 mv conftest.tail conftest.undefs
20724 done
20725 rm -f conftest.undefs
20726
20727 cat >>$CONFIG_STATUS <<\_ACEOF
20728 # Let's still pretend it is `configure' which instantiates (i.e., don't
20729 # use $as_me), people would be surprised to read:
20730 # /* config.h. Generated by config.status. */
20731 if test x"$ac_file" = x-; then
20732 echo "/* Generated by configure. */" >$tmp/config.h
20733 else
20734 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20735 fi
20736 cat $tmp/in >>$tmp/config.h
20737 rm -f $tmp/in
20738 if test x"$ac_file" != x-; then
20739 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20741 echo "$as_me: $ac_file is unchanged" >&6;}
20742 else
20743 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20745 X"$ac_file" : 'X\(//\)[^/]' \| \
20746 X"$ac_file" : 'X\(//\)$' \| \
20747 X"$ac_file" : 'X\(/\)' \| \
20748 . : '\(.\)' 2>/dev/null ||
20749 echo X"$ac_file" |
20750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20752 /^X\(\/\/\)$/{ s//\1/; q; }
20753 /^X\(\/\).*/{ s//\1/; q; }
20754 s/.*/./; q'`
20755 { if $as_mkdir_p; then
20756 mkdir -p "$ac_dir"
20757 else
20758 as_dir="$ac_dir"
20759 as_dirs=
20760 while test ! -d "$as_dir"; do
20761 as_dirs="$as_dir $as_dirs"
20762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20764 X"$as_dir" : 'X\(//\)[^/]' \| \
20765 X"$as_dir" : 'X\(//\)$' \| \
20766 X"$as_dir" : 'X\(/\)' \| \
20767 . : '\(.\)' 2>/dev/null ||
20768 echo X"$as_dir" |
20769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20771 /^X\(\/\/\)$/{ s//\1/; q; }
20772 /^X\(\/\).*/{ s//\1/; q; }
20773 s/.*/./; q'`
20774 done
20775 test ! -n "$as_dirs" || mkdir $as_dirs
20776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20778 { (exit 1); exit 1; }; }; }
20779
20780 rm -f $ac_file
20781 mv $tmp/config.h $ac_file
20782 fi
20783 else
20784 cat $tmp/config.h
20785 rm -f $tmp/config.h
20786 fi
20787 # Compute $ac_file's index in $config_headers.
20788 _am_stamp_count=1
20789 for _am_header in $config_headers :; do
20790 case $_am_header in
20791 $ac_file | $ac_file:* )
20792 break ;;
20793 * )
20794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20795 esac
20796 done
20797 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20798 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20799 X$ac_file : 'X\(//\)[^/]' \| \
20800 X$ac_file : 'X\(//\)$' \| \
20801 X$ac_file : 'X\(/\)' \| \
20802 . : '\(.\)' 2>/dev/null ||
20803 echo X$ac_file |
20804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20806 /^X\(\/\/\)$/{ s//\1/; q; }
20807 /^X\(\/\).*/{ s//\1/; q; }
20808 s/.*/./; q'`/stamp-h$_am_stamp_count
20809 done
20810 _ACEOF
20811 cat >>$CONFIG_STATUS <<\_ACEOF
20812
20813 #
20814 # CONFIG_COMMANDS section.
20815 #
20816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20821 X"$ac_dest" : 'X\(//\)[^/]' \| \
20822 X"$ac_dest" : 'X\(//\)$' \| \
20823 X"$ac_dest" : 'X\(/\)' \| \
20824 . : '\(.\)' 2>/dev/null ||
20825 echo X"$ac_dest" |
20826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20828 /^X\(\/\/\)$/{ s//\1/; q; }
20829 /^X\(\/\).*/{ s//\1/; q; }
20830 s/.*/./; q'`
20831 { if $as_mkdir_p; then
20832 mkdir -p "$ac_dir"
20833 else
20834 as_dir="$ac_dir"
20835 as_dirs=
20836 while test ! -d "$as_dir"; do
20837 as_dirs="$as_dir $as_dirs"
20838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20840 X"$as_dir" : 'X\(//\)[^/]' \| \
20841 X"$as_dir" : 'X\(//\)$' \| \
20842 X"$as_dir" : 'X\(/\)' \| \
20843 . : '\(.\)' 2>/dev/null ||
20844 echo X"$as_dir" |
20845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20847 /^X\(\/\/\)$/{ s//\1/; q; }
20848 /^X\(\/\).*/{ s//\1/; q; }
20849 s/.*/./; q'`
20850 done
20851 test ! -n "$as_dirs" || mkdir $as_dirs
20852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20854 { (exit 1); exit 1; }; }; }
20855
20856 ac_builddir=.
20857
20858 if test "$ac_dir" != .; then
20859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20860 # A "../" for each directory in $ac_dir_suffix.
20861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20862 else
20863 ac_dir_suffix= ac_top_builddir=
20864 fi
20865
20866 case $srcdir in
20867 .) # No --srcdir option. We are building in place.
20868 ac_srcdir=.
20869 if test -z "$ac_top_builddir"; then
20870 ac_top_srcdir=.
20871 else
20872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20873 fi ;;
20874 [\\/]* | ?:[\\/]* ) # Absolute path.
20875 ac_srcdir=$srcdir$ac_dir_suffix;
20876 ac_top_srcdir=$srcdir ;;
20877 *) # Relative path.
20878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20880 esac
20881
20882 # Do not use `cd foo && pwd` to compute absolute paths, because
20883 # the directories may not exist.
20884 case `pwd` in
20885 .) ac_abs_builddir="$ac_dir";;
20886 *)
20887 case "$ac_dir" in
20888 .) ac_abs_builddir=`pwd`;;
20889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20891 esac;;
20892 esac
20893 case $ac_abs_builddir in
20894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20895 *)
20896 case ${ac_top_builddir}. in
20897 .) ac_abs_top_builddir=$ac_abs_builddir;;
20898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20900 esac;;
20901 esac
20902 case $ac_abs_builddir in
20903 .) ac_abs_srcdir=$ac_srcdir;;
20904 *)
20905 case $ac_srcdir in
20906 .) ac_abs_srcdir=$ac_abs_builddir;;
20907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20909 esac;;
20910 esac
20911 case $ac_abs_builddir in
20912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20913 *)
20914 case $ac_top_srcdir in
20915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20918 esac;;
20919 esac
20920
20921
20922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20923 echo "$as_me: executing $ac_dest commands" >&6;}
20924 case $ac_dest in
20925 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20926 # Strip MF so we end up with the name of the file.
20927 mf=`echo "$mf" | sed -e 's/:.*$//'`
20928 # Check whether this is an Automake generated Makefile or not.
20929 # We used to match only the files named `Makefile.in', but
20930 # some people rename them; so instead we look at the file content.
20931 # Grep'ing the first line is not enough: some people post-process
20932 # each Makefile.in and add a new line on top of each file to say so.
20933 # So let's grep whole file.
20934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20935 dirpart=`(dirname "$mf") 2>/dev/null ||
20936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20937 X"$mf" : 'X\(//\)[^/]' \| \
20938 X"$mf" : 'X\(//\)$' \| \
20939 X"$mf" : 'X\(/\)' \| \
20940 . : '\(.\)' 2>/dev/null ||
20941 echo X"$mf" |
20942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20944 /^X\(\/\/\)$/{ s//\1/; q; }
20945 /^X\(\/\).*/{ s//\1/; q; }
20946 s/.*/./; q'`
20947 else
20948 continue
20949 fi
20950 # Extract the definition of DEPDIR, am__include, and am__quote
20951 # from the Makefile without running `make'.
20952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20953 test -z "$DEPDIR" && continue
20954 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20955 test -z "am__include" && continue
20956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20957 # When using ansi2knr, U may be empty or an underscore; expand it
20958 U=`sed -n 's/^U = //p' < "$mf"`
20959 # Find all dependency output files, they are included files with
20960 # $(DEPDIR) in their names. We invoke sed twice because it is the
20961 # simplest approach to changing $(DEPDIR) to its actual value in the
20962 # expansion.
20963 for file in `sed -n "
20964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20966 # Make sure the directory exists.
20967 test -f "$dirpart/$file" && continue
20968 fdir=`(dirname "$file") 2>/dev/null ||
20969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20970 X"$file" : 'X\(//\)[^/]' \| \
20971 X"$file" : 'X\(//\)$' \| \
20972 X"$file" : 'X\(/\)' \| \
20973 . : '\(.\)' 2>/dev/null ||
20974 echo X"$file" |
20975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20977 /^X\(\/\/\)$/{ s//\1/; q; }
20978 /^X\(\/\).*/{ s//\1/; q; }
20979 s/.*/./; q'`
20980 { if $as_mkdir_p; then
20981 mkdir -p $dirpart/$fdir
20982 else
20983 as_dir=$dirpart/$fdir
20984 as_dirs=
20985 while test ! -d "$as_dir"; do
20986 as_dirs="$as_dir $as_dirs"
20987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20989 X"$as_dir" : 'X\(//\)[^/]' \| \
20990 X"$as_dir" : 'X\(//\)$' \| \
20991 X"$as_dir" : 'X\(/\)' \| \
20992 . : '\(.\)' 2>/dev/null ||
20993 echo X"$as_dir" |
20994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20996 /^X\(\/\/\)$/{ s//\1/; q; }
20997 /^X\(\/\).*/{ s//\1/; q; }
20998 s/.*/./; q'`
20999 done
21000 test ! -n "$as_dirs" || mkdir $as_dirs
21001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21002 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21003 { (exit 1); exit 1; }; }; }
21004
21005 # echo "creating $dirpart/$file"
21006 echo '# dummy' > "$dirpart/$file"
21007 done
21008 done
21009 ;;
21010 esac
21011 done
21012 _ACEOF
21013
21014 cat >>$CONFIG_STATUS <<\_ACEOF
21015
21016 { (exit 0); exit 0; }
21017 _ACEOF
21018 chmod +x $CONFIG_STATUS
21019 ac_clean_files=$ac_clean_files_save
21020
21021
21022 # configure is writing to config.log, and then calls config.status.
21023 # config.status does its own redirection, appending to config.log.
21024 # Unfortunately, on DOS this fails, as config.log is still kept open
21025 # by configure, so config.status won't be able to write to it; its
21026 # output is simply discarded. So we exec the FD to /dev/null,
21027 # effectively closing config.log, so it can be properly (re)opened and
21028 # appended to by config.status. When coming back to configure, we
21029 # need to make the FD available again.
21030 if test "$no_create" != yes; then
21031 ac_cs_success=:
21032 ac_config_status_args=
21033 test "$silent" = yes &&
21034 ac_config_status_args="$ac_config_status_args --quiet"
21035 exec 5>/dev/null
21036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21037 exec 5>>config.log
21038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21039 # would make configure fail if this is the last instruction.
21040 $ac_cs_success || { (exit 1); exit 1; }
21041 fi
21042