bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59 for airbag 0.1. |
| 4 | # |
| 5 | # Report bugs to <opensource@google.com>. |
| 6 | # |
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
| 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
| 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
| 25 | |
| 26 | # Support unset when possible. |
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | test -d ./-p && rmdir ./-p |
| 224 | as_mkdir_p=false |
| 225 | fi |
| 226 | |
| 227 | as_executable_p="test -f" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid CPP name. |
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 231 | |
| 232 | # Sed expression to map a string onto a valid variable name. |
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 234 | |
| 235 | |
| 236 | # IFS |
| 237 | # We need space, tab and new line, in precisely that order. |
| 238 | as_nl=' |
| 239 | ' |
| 240 | IFS=" $as_nl" |
| 241 | |
| 242 | # CDPATH. |
| 243 | $as_unset CDPATH |
| 244 | |
| 245 | |
| 246 | |
| 247 | # Check that we are running under the correct shell. |
| 248 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 249 | |
| 250 | case X$ECHO in |
| 251 | X*--fallback-echo) |
| 252 | # Remove one level of quotation (which was required for Make). |
| 253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 254 | ;; |
| 255 | esac |
| 256 | |
| 257 | echo=${ECHO-echo} |
| 258 | if test "X$1" = X--no-reexec; then |
| 259 | # Discard the --no-reexec flag, and continue. |
| 260 | shift |
| 261 | elif test "X$1" = X--fallback-echo; then |
| 262 | # Avoid inline document here, it may be left over |
| 263 | : |
| 264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 265 | # Yippee, $echo works! |
| 266 | : |
| 267 | else |
| 268 | # Restart under the correct shell. |
| 269 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 270 | fi |
| 271 | |
| 272 | if test "X$1" = X--fallback-echo; then |
| 273 | # used as fallback echo |
| 274 | shift |
| 275 | cat <<EOF |
| 276 | $* |
| 277 | EOF |
| 278 | exit 0 |
| 279 | fi |
| 280 | |
| 281 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 282 | # if CDPATH is set. |
| 283 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 284 | |
| 285 | if test -z "$ECHO"; then |
| 286 | if test "X${echo_test_string+set}" != Xset; then |
| 287 | # find a string as large as possible, as long as the shell can cope with it |
| 288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 290 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 291 | echo_test_string="`eval $cmd`" && |
| 292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 293 | then |
| 294 | break |
| 295 | fi |
| 296 | done |
| 297 | fi |
| 298 | |
| 299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 301 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 302 | : |
| 303 | else |
| 304 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 305 | # backslashes. This makes it impossible to quote backslashes using |
| 306 | # echo "$something" | sed 's/\\/\\\\/g' |
| 307 | # |
| 308 | # So, first we look for a working echo in the user's PATH. |
| 309 | |
| 310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 311 | for dir in $PATH /usr/ucb; do |
| 312 | IFS="$lt_save_ifs" |
| 313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 316 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 317 | echo="$dir/echo" |
| 318 | break |
| 319 | fi |
| 320 | done |
| 321 | IFS="$lt_save_ifs" |
| 322 | |
| 323 | if test "X$echo" = Xecho; then |
| 324 | # We didn't find a better echo, so look for alternatives. |
| 325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 327 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 328 | # This shell has a builtin print -r that does the trick. |
| 329 | echo='print -r' |
| 330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 331 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 332 | # If we have ksh, try running configure again with it. |
| 333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 334 | export ORIGINAL_CONFIG_SHELL |
| 335 | CONFIG_SHELL=/bin/ksh |
| 336 | export CONFIG_SHELL |
| 337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 338 | else |
| 339 | # Try using printf. |
| 340 | echo='printf %s\n' |
| 341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 343 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 344 | # Cool, printf works |
| 345 | : |
| 346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 347 | test "X$echo_testing_string" = 'X\t' && |
| 348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 351 | export CONFIG_SHELL |
| 352 | SHELL="$CONFIG_SHELL" |
| 353 | export SHELL |
| 354 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = 'X\t' && |
| 357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 359 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 360 | else |
| 361 | # maybe with a smaller string... |
| 362 | prev=: |
| 363 | |
| 364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 366 | then |
| 367 | break |
| 368 | fi |
| 369 | prev="$cmd" |
| 370 | done |
| 371 | |
| 372 | if test "$prev" != 'sed 50q "$0"'; then |
| 373 | echo_test_string=`eval $prev` |
| 374 | export echo_test_string |
| 375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 376 | else |
| 377 | # Oops. We lost completely, so just stick with echo. |
| 378 | echo=echo |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | fi |
| 385 | |
| 386 | # Copy echo and quote the copy suitably for passing to libtool from |
| 387 | # the Makefile, instead of quoting the original, which is used later. |
| 388 | ECHO=$echo |
| 389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 391 | fi |
| 392 | |
| 393 | |
| 394 | |
| 395 | |
| 396 | tagnames=${tagnames+${tagnames},}CXX |
| 397 | |
| 398 | tagnames=${tagnames+${tagnames},}F77 |
| 399 | |
| 400 | # Name of the host. |
| 401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 402 | # so uname gets run too. |
| 403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 404 | |
| 405 | exec 6>&1 |
| 406 | |
| 407 | # |
| 408 | # Initializations. |
| 409 | # |
| 410 | ac_default_prefix=/usr/local |
| 411 | ac_config_libobj_dir=. |
| 412 | cross_compiling=no |
| 413 | subdirs= |
| 414 | MFLAGS= |
| 415 | MAKEFLAGS= |
| 416 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 417 | |
| 418 | # Maximum number of lines to put in a shell here document. |
| 419 | # This variable seems obsolete. It should probably be removed, and |
| 420 | # only ac_max_sed_lines should be used. |
| 421 | : ${ac_max_here_lines=38} |
| 422 | |
| 423 | # Identity of this package. |
| 424 | PACKAGE_NAME='airbag' |
| 425 | PACKAGE_TARNAME='airbag' |
| 426 | PACKAGE_VERSION='0.1' |
| 427 | PACKAGE_STRING='airbag 0.1' |
| 428 | PACKAGE_BUGREPORT='opensource@google.com' |
| 429 | |
| 430 | ac_unique_file="README" |
| 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 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS 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 airbag 0.1 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 airbag 0.1:";; |
| 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 | --enable-namespace=FOO to define these Google |
| 1040 | classes in the FOO namespace. --disable-namespace |
| 1041 | to define them in the global namespace. Default |
| 1042 | is to define them in namespace google_airbag. |
| 1043 | |
| 1044 | Optional Packages: |
| 1045 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1046 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1047 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1048 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1049 | both] |
| 1050 | --with-tags[=TAGS] |
| 1051 | include additional configurations [automatic] |
| 1052 | |
| 1053 | Some influential environment variables: |
| 1054 | CC C compiler command |
| 1055 | CFLAGS C compiler flags |
| 1056 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1057 | nonstandard directory <lib dir> |
| 1058 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1059 | headers in a nonstandard directory <include dir> |
| 1060 | CPP C preprocessor |
| 1061 | CXX C++ compiler command |
| 1062 | CXXFLAGS C++ compiler flags |
| 1063 | CXXCPP C++ preprocessor |
| 1064 | F77 Fortran 77 compiler command |
| 1065 | FFLAGS Fortran 77 compiler flags |
| 1066 | |
| 1067 | Use these variables to override the choices made by `configure' or to help |
| 1068 | it to find libraries and programs with nonstandard names/locations. |
| 1069 | |
| 1070 | Report bugs to <opensource@google.com>. |
| 1071 | _ACEOF |
| 1072 | fi |
| 1073 | |
| 1074 | if test "$ac_init_help" = "recursive"; then |
| 1075 | # If there are subdirs, report their specific --help. |
| 1076 | ac_popdir=`pwd` |
| 1077 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1078 | test -d $ac_dir || continue |
| 1079 | ac_builddir=. |
| 1080 | |
| 1081 | if test "$ac_dir" != .; then |
| 1082 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1083 | # A "../" for each directory in $ac_dir_suffix. |
| 1084 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1085 | else |
| 1086 | ac_dir_suffix= ac_top_builddir= |
| 1087 | fi |
| 1088 | |
| 1089 | case $srcdir in |
| 1090 | .) # No --srcdir option. We are building in place. |
| 1091 | ac_srcdir=. |
| 1092 | if test -z "$ac_top_builddir"; then |
| 1093 | ac_top_srcdir=. |
| 1094 | else |
| 1095 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1096 | fi ;; |
| 1097 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1098 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1099 | ac_top_srcdir=$srcdir ;; |
| 1100 | *) # Relative path. |
| 1101 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1102 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1103 | esac |
| 1104 | |
| 1105 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1106 | # the directories may not exist. |
| 1107 | case `pwd` in |
| 1108 | .) ac_abs_builddir="$ac_dir";; |
| 1109 | *) |
| 1110 | case "$ac_dir" in |
| 1111 | .) ac_abs_builddir=`pwd`;; |
| 1112 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1113 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1114 | esac;; |
| 1115 | esac |
| 1116 | case $ac_abs_builddir in |
| 1117 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1118 | *) |
| 1119 | case ${ac_top_builddir}. in |
| 1120 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1121 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1122 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1123 | esac;; |
| 1124 | esac |
| 1125 | case $ac_abs_builddir in |
| 1126 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1127 | *) |
| 1128 | case $ac_srcdir in |
| 1129 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1130 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1131 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1132 | esac;; |
| 1133 | esac |
| 1134 | case $ac_abs_builddir in |
| 1135 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1136 | *) |
| 1137 | case $ac_top_srcdir in |
| 1138 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1139 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1140 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1141 | esac;; |
| 1142 | esac |
| 1143 | |
| 1144 | cd $ac_dir |
| 1145 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1146 | if test -f $ac_srcdir/configure.gnu; then |
| 1147 | echo |
| 1148 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1149 | elif test -f $ac_srcdir/configure; then |
| 1150 | echo |
| 1151 | $SHELL $ac_srcdir/configure --help=recursive |
| 1152 | elif test -f $ac_srcdir/configure.ac || |
| 1153 | test -f $ac_srcdir/configure.in; then |
| 1154 | echo |
| 1155 | $ac_configure --help |
| 1156 | else |
| 1157 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1158 | fi |
| 1159 | cd "$ac_popdir" |
| 1160 | done |
| 1161 | fi |
| 1162 | |
| 1163 | test -n "$ac_init_help" && exit 0 |
| 1164 | if $ac_init_version; then |
| 1165 | cat <<\_ACEOF |
| 1166 | airbag configure 0.1 |
| 1167 | generated by GNU Autoconf 2.59 |
| 1168 | |
| 1169 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1170 | This configure script is free software; the Free Software Foundation |
| 1171 | gives unlimited permission to copy, distribute and modify it. |
| 1172 | _ACEOF |
| 1173 | exit 0 |
| 1174 | fi |
| 1175 | exec 5>config.log |
| 1176 | cat >&5 <<_ACEOF |
| 1177 | This file contains any messages produced by compilers while |
| 1178 | running configure, to aid debugging if configure makes a mistake. |
| 1179 | |
| 1180 | It was created by airbag $as_me 0.1, which was |
| 1181 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1182 | |
| 1183 | $ $0 $@ |
| 1184 | |
| 1185 | _ACEOF |
| 1186 | { |
| 1187 | cat <<_ASUNAME |
| 1188 | ## --------- ## |
| 1189 | ## Platform. ## |
| 1190 | ## --------- ## |
| 1191 | |
| 1192 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1193 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1194 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1195 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1196 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1197 | |
| 1198 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1199 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1200 | |
| 1201 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1202 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1203 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1204 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1205 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1206 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1207 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1208 | |
| 1209 | _ASUNAME |
| 1210 | |
| 1211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1212 | for as_dir in $PATH |
| 1213 | do |
| 1214 | IFS=$as_save_IFS |
| 1215 | test -z "$as_dir" && as_dir=. |
| 1216 | echo "PATH: $as_dir" |
| 1217 | done |
| 1218 | |
| 1219 | } >&5 |
| 1220 | |
| 1221 | cat >&5 <<_ACEOF |
| 1222 | |
| 1223 | |
| 1224 | ## ----------- ## |
| 1225 | ## Core tests. ## |
| 1226 | ## ----------- ## |
| 1227 | |
| 1228 | _ACEOF |
| 1229 | |
| 1230 | |
| 1231 | # Keep a trace of the command line. |
| 1232 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1233 | # Strip out --silent because we don't want to record it for future runs. |
| 1234 | # Also quote any args containing shell meta-characters. |
| 1235 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1236 | ac_configure_args= |
| 1237 | ac_configure_args0= |
| 1238 | ac_configure_args1= |
| 1239 | ac_sep= |
| 1240 | ac_must_keep_next=false |
| 1241 | for ac_pass in 1 2 |
| 1242 | do |
| 1243 | for ac_arg |
| 1244 | do |
| 1245 | case $ac_arg in |
| 1246 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1247 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1248 | | -silent | --silent | --silen | --sile | --sil) |
| 1249 | continue ;; |
| 1250 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1251 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1252 | esac |
| 1253 | case $ac_pass in |
| 1254 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1255 | 2) |
| 1256 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1257 | if test $ac_must_keep_next = true; then |
| 1258 | ac_must_keep_next=false # Got value, back to normal. |
| 1259 | else |
| 1260 | case $ac_arg in |
| 1261 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1262 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1263 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1264 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1265 | case "$ac_configure_args0 " in |
| 1266 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1267 | esac |
| 1268 | ;; |
| 1269 | -* ) ac_must_keep_next=true ;; |
| 1270 | esac |
| 1271 | fi |
| 1272 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1273 | # Get rid of the leading space. |
| 1274 | ac_sep=" " |
| 1275 | ;; |
| 1276 | esac |
| 1277 | done |
| 1278 | done |
| 1279 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1280 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1281 | |
| 1282 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1283 | # config.log. We remove comments because anyway the quotes in there |
| 1284 | # would cause problems or look ugly. |
| 1285 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1286 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1287 | trap 'exit_status=$? |
| 1288 | # Save into config.log some information that might help in debugging. |
| 1289 | { |
| 1290 | echo |
| 1291 | |
| 1292 | cat <<\_ASBOX |
| 1293 | ## ---------------- ## |
| 1294 | ## Cache variables. ## |
| 1295 | ## ---------------- ## |
| 1296 | _ASBOX |
| 1297 | echo |
| 1298 | # The following way of writing the cache mishandles newlines in values, |
| 1299 | { |
| 1300 | (set) 2>&1 | |
| 1301 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1302 | *ac_space=\ *) |
| 1303 | sed -n \ |
| 1304 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1305 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1306 | ;; |
| 1307 | *) |
| 1308 | sed -n \ |
| 1309 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1310 | ;; |
| 1311 | esac; |
| 1312 | } |
| 1313 | echo |
| 1314 | |
| 1315 | cat <<\_ASBOX |
| 1316 | ## ----------------- ## |
| 1317 | ## Output variables. ## |
| 1318 | ## ----------------- ## |
| 1319 | _ASBOX |
| 1320 | echo |
| 1321 | for ac_var in $ac_subst_vars |
| 1322 | do |
| 1323 | eval ac_val=$`echo $ac_var` |
| 1324 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1325 | done | sort |
| 1326 | echo |
| 1327 | |
| 1328 | if test -n "$ac_subst_files"; then |
| 1329 | cat <<\_ASBOX |
| 1330 | ## ------------- ## |
| 1331 | ## Output files. ## |
| 1332 | ## ------------- ## |
| 1333 | _ASBOX |
| 1334 | echo |
| 1335 | for ac_var in $ac_subst_files |
| 1336 | do |
| 1337 | eval ac_val=$`echo $ac_var` |
| 1338 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1339 | done | sort |
| 1340 | echo |
| 1341 | fi |
| 1342 | |
| 1343 | if test -s confdefs.h; then |
| 1344 | cat <<\_ASBOX |
| 1345 | ## ----------- ## |
| 1346 | ## confdefs.h. ## |
| 1347 | ## ----------- ## |
| 1348 | _ASBOX |
| 1349 | echo |
| 1350 | sed "/^$/d" confdefs.h | sort |
| 1351 | echo |
| 1352 | fi |
| 1353 | test "$ac_signal" != 0 && |
| 1354 | echo "$as_me: caught signal $ac_signal" |
| 1355 | echo "$as_me: exit $exit_status" |
| 1356 | } >&5 |
| 1357 | rm -f core *.core && |
| 1358 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1359 | exit $exit_status |
| 1360 | ' 0 |
| 1361 | for ac_signal in 1 2 13 15; do |
| 1362 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1363 | done |
| 1364 | ac_signal=0 |
| 1365 | |
| 1366 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1367 | rm -rf conftest* confdefs.h |
| 1368 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1369 | echo >confdefs.h |
| 1370 | |
| 1371 | # Predefined preprocessor variables. |
| 1372 | |
| 1373 | cat >>confdefs.h <<_ACEOF |
| 1374 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1375 | _ACEOF |
| 1376 | |
| 1377 | |
| 1378 | cat >>confdefs.h <<_ACEOF |
| 1379 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1380 | _ACEOF |
| 1381 | |
| 1382 | |
| 1383 | cat >>confdefs.h <<_ACEOF |
| 1384 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1385 | _ACEOF |
| 1386 | |
| 1387 | |
| 1388 | cat >>confdefs.h <<_ACEOF |
| 1389 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1390 | _ACEOF |
| 1391 | |
| 1392 | |
| 1393 | cat >>confdefs.h <<_ACEOF |
| 1394 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1395 | _ACEOF |
| 1396 | |
| 1397 | |
| 1398 | # Let the site file select an alternate cache file if it wants to. |
| 1399 | # Prefer explicitly selected file to automatically selected ones. |
| 1400 | if test -z "$CONFIG_SITE"; then |
| 1401 | if test "x$prefix" != xNONE; then |
| 1402 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1403 | else |
| 1404 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1405 | fi |
| 1406 | fi |
| 1407 | for ac_site_file in $CONFIG_SITE; do |
| 1408 | if test -r "$ac_site_file"; then |
| 1409 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1410 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1411 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1412 | . "$ac_site_file" |
| 1413 | fi |
| 1414 | done |
| 1415 | |
| 1416 | if test -r "$cache_file"; then |
| 1417 | # Some versions of bash will fail to source /dev/null (special |
| 1418 | # files actually), so we avoid doing that. |
| 1419 | if test -f "$cache_file"; then |
| 1420 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1421 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1422 | case $cache_file in |
| 1423 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1424 | *) . ./$cache_file;; |
| 1425 | esac |
| 1426 | fi |
| 1427 | else |
| 1428 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1429 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1430 | >$cache_file |
| 1431 | fi |
| 1432 | |
| 1433 | # Check that the precious variables saved in the cache have kept the same |
| 1434 | # value. |
| 1435 | ac_cache_corrupted=false |
| 1436 | for ac_var in `(set) 2>&1 | |
| 1437 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1438 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1439 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1440 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1441 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1442 | case $ac_old_set,$ac_new_set in |
| 1443 | set,) |
| 1444 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1445 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1446 | ac_cache_corrupted=: ;; |
| 1447 | ,set) |
| 1448 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1449 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1450 | ac_cache_corrupted=: ;; |
| 1451 | ,);; |
| 1452 | *) |
| 1453 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1454 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1455 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1456 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1457 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1458 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1459 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1460 | ac_cache_corrupted=: |
| 1461 | fi;; |
| 1462 | esac |
| 1463 | # Pass precious variables to config.status. |
| 1464 | if test "$ac_new_set" = set; then |
| 1465 | case $ac_new_val in |
| 1466 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1467 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1468 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1469 | esac |
| 1470 | case " $ac_configure_args " in |
| 1471 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1472 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1473 | esac |
| 1474 | fi |
| 1475 | done |
| 1476 | if $ac_cache_corrupted; then |
| 1477 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1478 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1479 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1480 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1481 | { (exit 1); exit 1; }; } |
| 1482 | fi |
| 1483 | |
| 1484 | ac_ext=c |
| 1485 | ac_cpp='$CPP $CPPFLAGS' |
| 1486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1489 | |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | |
| 1503 | |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | # The argument here is just something that should be in the current directory |
| 1517 | # (for sanity checking) |
| 1518 | |
| 1519 | am__api_version="1.9" |
| 1520 | ac_aux_dir= |
| 1521 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1522 | if test -f $ac_dir/install-sh; then |
| 1523 | ac_aux_dir=$ac_dir |
| 1524 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1525 | break |
| 1526 | elif test -f $ac_dir/install.sh; then |
| 1527 | ac_aux_dir=$ac_dir |
| 1528 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1529 | break |
| 1530 | elif test -f $ac_dir/shtool; then |
| 1531 | ac_aux_dir=$ac_dir |
| 1532 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1533 | break |
| 1534 | fi |
| 1535 | done |
| 1536 | if test -z "$ac_aux_dir"; then |
| 1537 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1538 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1539 | { (exit 1); exit 1; }; } |
| 1540 | fi |
| 1541 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1542 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1543 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1544 | |
| 1545 | # Find a good install program. We prefer a C program (faster), |
| 1546 | # so one script is as good as another. But avoid the broken or |
| 1547 | # incompatible versions: |
| 1548 | # SysV /etc/install, /usr/sbin/install |
| 1549 | # SunOS /usr/etc/install |
| 1550 | # IRIX /sbin/install |
| 1551 | # AIX /bin/install |
| 1552 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1553 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1554 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1555 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1556 | # OS/2's system install, which has a completely different semantic |
| 1557 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1558 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1559 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1560 | if test -z "$INSTALL"; then |
| 1561 | if test "${ac_cv_path_install+set}" = set; then |
| 1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1563 | else |
| 1564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1565 | for as_dir in $PATH |
| 1566 | do |
| 1567 | IFS=$as_save_IFS |
| 1568 | test -z "$as_dir" && as_dir=. |
| 1569 | # Account for people who put trailing slashes in PATH elements. |
| 1570 | case $as_dir/ in |
| 1571 | ./ | .// | /cC/* | \ |
| 1572 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1573 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1574 | /usr/ucb/* ) ;; |
| 1575 | *) |
| 1576 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1577 | # Don't use installbsd from OSF since it installs stuff as root |
| 1578 | # by default. |
| 1579 | for ac_prog in ginstall scoinst install; do |
| 1580 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1581 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1582 | if test $ac_prog = install && |
| 1583 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1584 | # AIX install. It has an incompatible calling convention. |
| 1585 | : |
| 1586 | elif test $ac_prog = install && |
| 1587 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1588 | # program-specific install script used by HP pwplus--don't use. |
| 1589 | : |
| 1590 | else |
| 1591 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1592 | break 3 |
| 1593 | fi |
| 1594 | fi |
| 1595 | done |
| 1596 | done |
| 1597 | ;; |
| 1598 | esac |
| 1599 | done |
| 1600 | |
| 1601 | |
| 1602 | fi |
| 1603 | if test "${ac_cv_path_install+set}" = set; then |
| 1604 | INSTALL=$ac_cv_path_install |
| 1605 | else |
| 1606 | # As a last resort, use the slow shell script. We don't cache a |
| 1607 | # path for INSTALL within a source directory, because that will |
| 1608 | # break other packages using the cache if that directory is |
| 1609 | # removed, or if the path is relative. |
| 1610 | INSTALL=$ac_install_sh |
| 1611 | fi |
| 1612 | fi |
| 1613 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1614 | echo "${ECHO_T}$INSTALL" >&6 |
| 1615 | |
| 1616 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1617 | # It thinks the first close brace ends the variable substitution. |
| 1618 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1619 | |
| 1620 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1621 | |
| 1622 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1623 | |
| 1624 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1625 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1626 | # Just in case |
| 1627 | sleep 1 |
| 1628 | echo timestamp > conftest.file |
| 1629 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1630 | # arguments. Must try -L first in case configure is actually a |
| 1631 | # symlink; some systems play weird games with the mod time of symlinks |
| 1632 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1633 | # directory). |
| 1634 | if ( |
| 1635 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1636 | if test "$*" = "X"; then |
| 1637 | # -L didn't work. |
| 1638 | set X `ls -t $srcdir/configure conftest.file` |
| 1639 | fi |
| 1640 | rm -f conftest.file |
| 1641 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1642 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1643 | |
| 1644 | # If neither matched, then we have a broken ls. This can happen |
| 1645 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1646 | # broken ls alias from the environment. This has actually |
| 1647 | # happened. Such a system could not be considered "sane". |
| 1648 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1649 | alias in your environment" >&5 |
| 1650 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1651 | alias in your environment" >&2;} |
| 1652 | { (exit 1); exit 1; }; } |
| 1653 | fi |
| 1654 | |
| 1655 | test "$2" = conftest.file |
| 1656 | ) |
| 1657 | then |
| 1658 | # Ok. |
| 1659 | : |
| 1660 | else |
| 1661 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1662 | Check your system clock" >&5 |
| 1663 | echo "$as_me: error: newly created file is older than distributed files! |
| 1664 | Check your system clock" >&2;} |
| 1665 | { (exit 1); exit 1; }; } |
| 1666 | fi |
| 1667 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1668 | echo "${ECHO_T}yes" >&6 |
| 1669 | test "$program_prefix" != NONE && |
| 1670 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1671 | # Use a double $ so make ignores it. |
| 1672 | test "$program_suffix" != NONE && |
| 1673 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1674 | # Double any \ or $. echo might interpret backslashes. |
| 1675 | # By default was `s,x,x', remove it if useless. |
| 1676 | cat <<\_ACEOF >conftest.sed |
| 1677 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1678 | _ACEOF |
| 1679 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1680 | rm conftest.sed |
| 1681 | |
| 1682 | # expand $ac_aux_dir to an absolute path |
| 1683 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1684 | |
| 1685 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1686 | # Use eval to expand $SHELL |
| 1687 | if eval "$MISSING --run true"; then |
| 1688 | am_missing_run="$MISSING --run " |
| 1689 | else |
| 1690 | am_missing_run= |
| 1691 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1692 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1693 | fi |
| 1694 | |
| 1695 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 1696 | # We used to keeping the `.' as first argument, in order to |
| 1697 | # allow $(mkdir_p) to be used without argument. As in |
| 1698 | # $(mkdir_p) $(somedir) |
| 1699 | # where $(somedir) is conditionally defined. However this is wrong |
| 1700 | # for two reasons: |
| 1701 | # 1. if the package is installed by a user who cannot write `.' |
| 1702 | # make install will fail, |
| 1703 | # 2. the above comment should most certainly read |
| 1704 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 1705 | # so it does not work when $(somedir) is undefined and |
| 1706 | # $(DESTDIR) is not. |
| 1707 | # To support the latter case, we have to write |
| 1708 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 1709 | # so the `.' trick is pointless. |
| 1710 | mkdir_p='mkdir -p --' |
| 1711 | else |
| 1712 | # On NextStep and OpenStep, the `mkdir' command does not |
| 1713 | # recognize any option. It will interpret all options as |
| 1714 | # directories to create, and then abort because `.' already |
| 1715 | # exists. |
| 1716 | for d in ./-p ./--version; |
| 1717 | do |
| 1718 | test -d $d && rmdir $d |
| 1719 | done |
| 1720 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 1721 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 1722 | mkdir_p='$(mkinstalldirs)' |
| 1723 | else |
| 1724 | mkdir_p='$(install_sh) -d' |
| 1725 | fi |
| 1726 | fi |
| 1727 | |
| 1728 | for ac_prog in gawk mawk nawk awk |
| 1729 | do |
| 1730 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1731 | set dummy $ac_prog; ac_word=$2 |
| 1732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1734 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1736 | else |
| 1737 | if test -n "$AWK"; then |
| 1738 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1739 | else |
| 1740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1741 | for as_dir in $PATH |
| 1742 | do |
| 1743 | IFS=$as_save_IFS |
| 1744 | test -z "$as_dir" && as_dir=. |
| 1745 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1747 | ac_cv_prog_AWK="$ac_prog" |
| 1748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1749 | break 2 |
| 1750 | fi |
| 1751 | done |
| 1752 | done |
| 1753 | |
| 1754 | fi |
| 1755 | fi |
| 1756 | AWK=$ac_cv_prog_AWK |
| 1757 | if test -n "$AWK"; then |
| 1758 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1759 | echo "${ECHO_T}$AWK" >&6 |
| 1760 | else |
| 1761 | echo "$as_me:$LINENO: result: no" >&5 |
| 1762 | echo "${ECHO_T}no" >&6 |
| 1763 | fi |
| 1764 | |
| 1765 | test -n "$AWK" && break |
| 1766 | done |
| 1767 | |
| 1768 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1769 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1770 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1771 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1773 | else |
| 1774 | cat >conftest.make <<\_ACEOF |
| 1775 | all: |
| 1776 | @echo 'ac_maketemp="$(MAKE)"' |
| 1777 | _ACEOF |
| 1778 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1779 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1780 | if test -n "$ac_maketemp"; then |
| 1781 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1782 | else |
| 1783 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1784 | fi |
| 1785 | rm -f conftest.make |
| 1786 | fi |
| 1787 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1788 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1789 | echo "${ECHO_T}yes" >&6 |
| 1790 | SET_MAKE= |
| 1791 | else |
| 1792 | echo "$as_me:$LINENO: result: no" >&5 |
| 1793 | echo "${ECHO_T}no" >&6 |
| 1794 | SET_MAKE="MAKE=${MAKE-make}" |
| 1795 | fi |
| 1796 | |
| 1797 | rm -rf .tst 2>/dev/null |
| 1798 | mkdir .tst 2>/dev/null |
| 1799 | if test -d .tst; then |
| 1800 | am__leading_dot=. |
| 1801 | else |
| 1802 | am__leading_dot=_ |
| 1803 | fi |
| 1804 | rmdir .tst 2>/dev/null |
| 1805 | |
| 1806 | # test to see if srcdir already configured |
| 1807 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1808 | test -f $srcdir/config.status; then |
| 1809 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1810 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1811 | { (exit 1); exit 1; }; } |
| 1812 | fi |
| 1813 | |
| 1814 | # test whether we have cygpath |
| 1815 | if test -z "$CYGPATH_W"; then |
| 1816 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 1817 | CYGPATH_W='cygpath -w' |
| 1818 | else |
| 1819 | CYGPATH_W=echo |
| 1820 | fi |
| 1821 | fi |
| 1822 | |
| 1823 | |
| 1824 | # Define the identity of the package. |
| 1825 | PACKAGE='airbag' |
| 1826 | VERSION='0.1' |
| 1827 | |
| 1828 | |
| 1829 | cat >>confdefs.h <<_ACEOF |
| 1830 | #define PACKAGE "$PACKAGE" |
| 1831 | _ACEOF |
| 1832 | |
| 1833 | |
| 1834 | cat >>confdefs.h <<_ACEOF |
| 1835 | #define VERSION "$VERSION" |
| 1836 | _ACEOF |
| 1837 | |
| 1838 | # Some tools Automake needs. |
| 1839 | |
| 1840 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1841 | |
| 1842 | |
| 1843 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1844 | |
| 1845 | |
| 1846 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1847 | |
| 1848 | |
| 1849 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1850 | |
| 1851 | |
| 1852 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1853 | |
| 1854 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1855 | |
| 1856 | # Installed binaries are usually stripped using `strip' when the user |
| 1857 | # run `make install-strip'. However `strip' might not be the right |
| 1858 | # tool to use in cross-compilation environments, therefore Automake |
| 1859 | # will honor the `STRIP' environment variable to overrule this program. |
| 1860 | if test "$cross_compiling" != no; then |
| 1861 | if test -n "$ac_tool_prefix"; then |
| 1862 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1863 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1866 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1868 | else |
| 1869 | if test -n "$STRIP"; then |
| 1870 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1871 | else |
| 1872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1873 | for as_dir in $PATH |
| 1874 | do |
| 1875 | IFS=$as_save_IFS |
| 1876 | test -z "$as_dir" && as_dir=. |
| 1877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1878 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1879 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1881 | break 2 |
| 1882 | fi |
| 1883 | done |
| 1884 | done |
| 1885 | |
| 1886 | fi |
| 1887 | fi |
| 1888 | STRIP=$ac_cv_prog_STRIP |
| 1889 | if test -n "$STRIP"; then |
| 1890 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1891 | echo "${ECHO_T}$STRIP" >&6 |
| 1892 | else |
| 1893 | echo "$as_me:$LINENO: result: no" >&5 |
| 1894 | echo "${ECHO_T}no" >&6 |
| 1895 | fi |
| 1896 | |
| 1897 | fi |
| 1898 | if test -z "$ac_cv_prog_STRIP"; then |
| 1899 | ac_ct_STRIP=$STRIP |
| 1900 | # Extract the first word of "strip", so it can be a program name with args. |
| 1901 | set dummy strip; ac_word=$2 |
| 1902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1904 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1906 | else |
| 1907 | if test -n "$ac_ct_STRIP"; then |
| 1908 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1909 | else |
| 1910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1911 | for as_dir in $PATH |
| 1912 | do |
| 1913 | IFS=$as_save_IFS |
| 1914 | test -z "$as_dir" && as_dir=. |
| 1915 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1916 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1917 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1919 | break 2 |
| 1920 | fi |
| 1921 | done |
| 1922 | done |
| 1923 | |
| 1924 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1925 | fi |
| 1926 | fi |
| 1927 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1928 | if test -n "$ac_ct_STRIP"; then |
| 1929 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1930 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1931 | else |
| 1932 | echo "$as_me:$LINENO: result: no" >&5 |
| 1933 | echo "${ECHO_T}no" >&6 |
| 1934 | fi |
| 1935 | |
| 1936 | STRIP=$ac_ct_STRIP |
| 1937 | else |
| 1938 | STRIP="$ac_cv_prog_STRIP" |
| 1939 | fi |
| 1940 | |
| 1941 | fi |
| 1942 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1943 | |
| 1944 | # We need awk for the "check" target. The system "awk" is bad on |
| 1945 | # some platforms. |
| 1946 | # Always define AMTAR for backward compatibility. |
| 1947 | |
| 1948 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1949 | |
| 1950 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | ac_config_headers="$ac_config_headers src/config.h" |
| 1957 | |
| 1958 | |
| 1959 | # Checks for programs. |
| 1960 | ac_ext=c |
| 1961 | ac_cpp='$CPP $CPPFLAGS' |
| 1962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1965 | if test -n "$ac_tool_prefix"; then |
| 1966 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1967 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1968 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1969 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1970 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1972 | else |
| 1973 | if test -n "$CC"; then |
| 1974 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1975 | else |
| 1976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1977 | for as_dir in $PATH |
| 1978 | do |
| 1979 | IFS=$as_save_IFS |
| 1980 | test -z "$as_dir" && as_dir=. |
| 1981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1982 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1983 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1985 | break 2 |
| 1986 | fi |
| 1987 | done |
| 1988 | done |
| 1989 | |
| 1990 | fi |
| 1991 | fi |
| 1992 | CC=$ac_cv_prog_CC |
| 1993 | if test -n "$CC"; then |
| 1994 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1995 | echo "${ECHO_T}$CC" >&6 |
| 1996 | else |
| 1997 | echo "$as_me:$LINENO: result: no" >&5 |
| 1998 | echo "${ECHO_T}no" >&6 |
| 1999 | fi |
| 2000 | |
| 2001 | fi |
| 2002 | if test -z "$ac_cv_prog_CC"; then |
| 2003 | ac_ct_CC=$CC |
| 2004 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2005 | set dummy gcc; ac_word=$2 |
| 2006 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2008 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2010 | else |
| 2011 | if test -n "$ac_ct_CC"; then |
| 2012 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2013 | else |
| 2014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2015 | for as_dir in $PATH |
| 2016 | do |
| 2017 | IFS=$as_save_IFS |
| 2018 | test -z "$as_dir" && as_dir=. |
| 2019 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2020 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2021 | ac_cv_prog_ac_ct_CC="gcc" |
| 2022 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2023 | break 2 |
| 2024 | fi |
| 2025 | done |
| 2026 | done |
| 2027 | |
| 2028 | fi |
| 2029 | fi |
| 2030 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2031 | if test -n "$ac_ct_CC"; then |
| 2032 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2033 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2034 | else |
| 2035 | echo "$as_me:$LINENO: result: no" >&5 |
| 2036 | echo "${ECHO_T}no" >&6 |
| 2037 | fi |
| 2038 | |
| 2039 | CC=$ac_ct_CC |
| 2040 | else |
| 2041 | CC="$ac_cv_prog_CC" |
| 2042 | fi |
| 2043 | |
| 2044 | if test -z "$CC"; then |
| 2045 | if test -n "$ac_tool_prefix"; then |
| 2046 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2047 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2050 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2052 | else |
| 2053 | if test -n "$CC"; then |
| 2054 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2055 | else |
| 2056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2057 | for as_dir in $PATH |
| 2058 | do |
| 2059 | IFS=$as_save_IFS |
| 2060 | test -z "$as_dir" && as_dir=. |
| 2061 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2063 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2065 | break 2 |
| 2066 | fi |
| 2067 | done |
| 2068 | done |
| 2069 | |
| 2070 | fi |
| 2071 | fi |
| 2072 | CC=$ac_cv_prog_CC |
| 2073 | if test -n "$CC"; then |
| 2074 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2075 | echo "${ECHO_T}$CC" >&6 |
| 2076 | else |
| 2077 | echo "$as_me:$LINENO: result: no" >&5 |
| 2078 | echo "${ECHO_T}no" >&6 |
| 2079 | fi |
| 2080 | |
| 2081 | fi |
| 2082 | if test -z "$ac_cv_prog_CC"; then |
| 2083 | ac_ct_CC=$CC |
| 2084 | # Extract the first word of "cc", so it can be a program name with args. |
| 2085 | set dummy cc; ac_word=$2 |
| 2086 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2088 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2090 | else |
| 2091 | if test -n "$ac_ct_CC"; then |
| 2092 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2093 | else |
| 2094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2095 | for as_dir in $PATH |
| 2096 | do |
| 2097 | IFS=$as_save_IFS |
| 2098 | test -z "$as_dir" && as_dir=. |
| 2099 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2100 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2101 | ac_cv_prog_ac_ct_CC="cc" |
| 2102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2103 | break 2 |
| 2104 | fi |
| 2105 | done |
| 2106 | done |
| 2107 | |
| 2108 | fi |
| 2109 | fi |
| 2110 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2111 | if test -n "$ac_ct_CC"; then |
| 2112 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2113 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2114 | else |
| 2115 | echo "$as_me:$LINENO: result: no" >&5 |
| 2116 | echo "${ECHO_T}no" >&6 |
| 2117 | fi |
| 2118 | |
| 2119 | CC=$ac_ct_CC |
| 2120 | else |
| 2121 | CC="$ac_cv_prog_CC" |
| 2122 | fi |
| 2123 | |
| 2124 | fi |
| 2125 | if test -z "$CC"; then |
| 2126 | # Extract the first word of "cc", so it can be a program name with args. |
| 2127 | set dummy cc; ac_word=$2 |
| 2128 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2130 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2132 | else |
| 2133 | if test -n "$CC"; then |
| 2134 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2135 | else |
| 2136 | ac_prog_rejected=no |
| 2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2138 | for as_dir in $PATH |
| 2139 | do |
| 2140 | IFS=$as_save_IFS |
| 2141 | test -z "$as_dir" && as_dir=. |
| 2142 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2144 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2145 | ac_prog_rejected=yes |
| 2146 | continue |
| 2147 | fi |
| 2148 | ac_cv_prog_CC="cc" |
| 2149 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2150 | break 2 |
| 2151 | fi |
| 2152 | done |
| 2153 | done |
| 2154 | |
| 2155 | if test $ac_prog_rejected = yes; then |
| 2156 | # We found a bogon in the path, so make sure we never use it. |
| 2157 | set dummy $ac_cv_prog_CC |
| 2158 | shift |
| 2159 | if test $# != 0; then |
| 2160 | # We chose a different compiler from the bogus one. |
| 2161 | # However, it has the same basename, so the bogon will be chosen |
| 2162 | # first if we set CC to just the basename; use the full file name. |
| 2163 | shift |
| 2164 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2165 | fi |
| 2166 | fi |
| 2167 | fi |
| 2168 | fi |
| 2169 | CC=$ac_cv_prog_CC |
| 2170 | if test -n "$CC"; then |
| 2171 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2172 | echo "${ECHO_T}$CC" >&6 |
| 2173 | else |
| 2174 | echo "$as_me:$LINENO: result: no" >&5 |
| 2175 | echo "${ECHO_T}no" >&6 |
| 2176 | fi |
| 2177 | |
| 2178 | fi |
| 2179 | if test -z "$CC"; then |
| 2180 | if test -n "$ac_tool_prefix"; then |
| 2181 | for ac_prog in cl |
| 2182 | do |
| 2183 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2184 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2187 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2189 | else |
| 2190 | if test -n "$CC"; then |
| 2191 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2192 | else |
| 2193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2194 | for as_dir in $PATH |
| 2195 | do |
| 2196 | IFS=$as_save_IFS |
| 2197 | test -z "$as_dir" && as_dir=. |
| 2198 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2200 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2202 | break 2 |
| 2203 | fi |
| 2204 | done |
| 2205 | done |
| 2206 | |
| 2207 | fi |
| 2208 | fi |
| 2209 | CC=$ac_cv_prog_CC |
| 2210 | if test -n "$CC"; then |
| 2211 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2212 | echo "${ECHO_T}$CC" >&6 |
| 2213 | else |
| 2214 | echo "$as_me:$LINENO: result: no" >&5 |
| 2215 | echo "${ECHO_T}no" >&6 |
| 2216 | fi |
| 2217 | |
| 2218 | test -n "$CC" && break |
| 2219 | done |
| 2220 | fi |
| 2221 | if test -z "$CC"; then |
| 2222 | ac_ct_CC=$CC |
| 2223 | for ac_prog in cl |
| 2224 | do |
| 2225 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2226 | set dummy $ac_prog; ac_word=$2 |
| 2227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2229 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2231 | else |
| 2232 | if test -n "$ac_ct_CC"; then |
| 2233 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2234 | else |
| 2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2236 | for as_dir in $PATH |
| 2237 | do |
| 2238 | IFS=$as_save_IFS |
| 2239 | test -z "$as_dir" && as_dir=. |
| 2240 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2242 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2244 | break 2 |
| 2245 | fi |
| 2246 | done |
| 2247 | done |
| 2248 | |
| 2249 | fi |
| 2250 | fi |
| 2251 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2252 | if test -n "$ac_ct_CC"; then |
| 2253 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2254 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2255 | else |
| 2256 | echo "$as_me:$LINENO: result: no" >&5 |
| 2257 | echo "${ECHO_T}no" >&6 |
| 2258 | fi |
| 2259 | |
| 2260 | test -n "$ac_ct_CC" && break |
| 2261 | done |
| 2262 | |
| 2263 | CC=$ac_ct_CC |
| 2264 | fi |
| 2265 | |
| 2266 | fi |
| 2267 | |
| 2268 | |
| 2269 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2270 | See \`config.log' for more details." >&5 |
| 2271 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2272 | See \`config.log' for more details." >&2;} |
| 2273 | { (exit 1); exit 1; }; } |
| 2274 | |
| 2275 | # Provide some information about the compiler. |
| 2276 | echo "$as_me:$LINENO:" \ |
| 2277 | "checking for C compiler version" >&5 |
| 2278 | ac_compiler=`set X $ac_compile; echo $2` |
| 2279 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2280 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2281 | ac_status=$? |
| 2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2283 | (exit $ac_status); } |
| 2284 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2285 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2286 | ac_status=$? |
| 2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2288 | (exit $ac_status); } |
| 2289 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2290 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2291 | ac_status=$? |
| 2292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2293 | (exit $ac_status); } |
| 2294 | |
| 2295 | cat >conftest.$ac_ext <<_ACEOF |
| 2296 | /* confdefs.h. */ |
| 2297 | _ACEOF |
| 2298 | cat confdefs.h >>conftest.$ac_ext |
| 2299 | cat >>conftest.$ac_ext <<_ACEOF |
| 2300 | /* end confdefs.h. */ |
| 2301 | |
| 2302 | int |
| 2303 | main () |
| 2304 | { |
| 2305 | |
| 2306 | ; |
| 2307 | return 0; |
| 2308 | } |
| 2309 | _ACEOF |
| 2310 | ac_clean_files_save=$ac_clean_files |
| 2311 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2312 | # Try to create an executable without -o first, disregard a.out. |
| 2313 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2314 | # of exeext. |
| 2315 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2316 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 2317 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2318 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2319 | (eval $ac_link_default) 2>&5 |
| 2320 | ac_status=$? |
| 2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2322 | (exit $ac_status); }; then |
| 2323 | # Find the output, starting from the most likely. This scheme is |
| 2324 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2325 | # resort. |
| 2326 | |
| 2327 | # Be careful to initialize this variable, since it used to be cached. |
| 2328 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2329 | ac_cv_exeext= |
| 2330 | # b.out is created by i960 compilers. |
| 2331 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2332 | do |
| 2333 | test -f "$ac_file" || continue |
| 2334 | case $ac_file in |
| 2335 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2336 | ;; |
| 2337 | conftest.$ac_ext ) |
| 2338 | # This is the source file. |
| 2339 | ;; |
| 2340 | [ab].out ) |
| 2341 | # We found the default executable, but exeext='' is most |
| 2342 | # certainly right. |
| 2343 | break;; |
| 2344 | *.* ) |
| 2345 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2346 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2347 | # but it would be cool to find out if it's true. Does anybody |
| 2348 | # maintain Libtool? --akim. |
| 2349 | export ac_cv_exeext |
| 2350 | break;; |
| 2351 | * ) |
| 2352 | break;; |
| 2353 | esac |
| 2354 | done |
| 2355 | else |
| 2356 | echo "$as_me: failed program was:" >&5 |
| 2357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2358 | |
| 2359 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2360 | See \`config.log' for more details." >&5 |
| 2361 | echo "$as_me: error: C compiler cannot create executables |
| 2362 | See \`config.log' for more details." >&2;} |
| 2363 | { (exit 77); exit 77; }; } |
| 2364 | fi |
| 2365 | |
| 2366 | ac_exeext=$ac_cv_exeext |
| 2367 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2368 | echo "${ECHO_T}$ac_file" >&6 |
| 2369 | |
| 2370 | # Check the compiler produces executables we can run. If not, either |
| 2371 | # the compiler is broken, or we cross compile. |
| 2372 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2373 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2374 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2375 | # If not cross compiling, check that we can run a simple program. |
| 2376 | if test "$cross_compiling" != yes; then |
| 2377 | if { ac_try='./$ac_file' |
| 2378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2379 | (eval $ac_try) 2>&5 |
| 2380 | ac_status=$? |
| 2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2382 | (exit $ac_status); }; }; then |
| 2383 | cross_compiling=no |
| 2384 | else |
| 2385 | if test "$cross_compiling" = maybe; then |
| 2386 | cross_compiling=yes |
| 2387 | else |
| 2388 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2389 | If you meant to cross compile, use \`--host'. |
| 2390 | See \`config.log' for more details." >&5 |
| 2391 | echo "$as_me: error: cannot run C compiled programs. |
| 2392 | If you meant to cross compile, use \`--host'. |
| 2393 | See \`config.log' for more details." >&2;} |
| 2394 | { (exit 1); exit 1; }; } |
| 2395 | fi |
| 2396 | fi |
| 2397 | fi |
| 2398 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2399 | echo "${ECHO_T}yes" >&6 |
| 2400 | |
| 2401 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2402 | ac_clean_files=$ac_clean_files_save |
| 2403 | # Check the compiler produces executables we can run. If not, either |
| 2404 | # the compiler is broken, or we cross compile. |
| 2405 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2406 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2407 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2408 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2409 | |
| 2410 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2411 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2413 | (eval $ac_link) 2>&5 |
| 2414 | ac_status=$? |
| 2415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2416 | (exit $ac_status); }; then |
| 2417 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2418 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2419 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2420 | # `rm'. |
| 2421 | for ac_file in conftest.exe conftest conftest.*; do |
| 2422 | test -f "$ac_file" || continue |
| 2423 | case $ac_file in |
| 2424 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2425 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2426 | export ac_cv_exeext |
| 2427 | break;; |
| 2428 | * ) break;; |
| 2429 | esac |
| 2430 | done |
| 2431 | else |
| 2432 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2433 | See \`config.log' for more details." >&5 |
| 2434 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2435 | See \`config.log' for more details." >&2;} |
| 2436 | { (exit 1); exit 1; }; } |
| 2437 | fi |
| 2438 | |
| 2439 | rm -f conftest$ac_cv_exeext |
| 2440 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2441 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2442 | |
| 2443 | rm -f conftest.$ac_ext |
| 2444 | EXEEXT=$ac_cv_exeext |
| 2445 | ac_exeext=$EXEEXT |
| 2446 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2447 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2448 | if test "${ac_cv_objext+set}" = set; then |
| 2449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2450 | else |
| 2451 | cat >conftest.$ac_ext <<_ACEOF |
| 2452 | /* confdefs.h. */ |
| 2453 | _ACEOF |
| 2454 | cat confdefs.h >>conftest.$ac_ext |
| 2455 | cat >>conftest.$ac_ext <<_ACEOF |
| 2456 | /* end confdefs.h. */ |
| 2457 | |
| 2458 | int |
| 2459 | main () |
| 2460 | { |
| 2461 | |
| 2462 | ; |
| 2463 | return 0; |
| 2464 | } |
| 2465 | _ACEOF |
| 2466 | rm -f conftest.o conftest.obj |
| 2467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2468 | (eval $ac_compile) 2>&5 |
| 2469 | ac_status=$? |
| 2470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2471 | (exit $ac_status); }; then |
| 2472 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2473 | case $ac_file in |
| 2474 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2475 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2476 | break;; |
| 2477 | esac |
| 2478 | done |
| 2479 | else |
| 2480 | echo "$as_me: failed program was:" >&5 |
| 2481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2482 | |
| 2483 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2484 | See \`config.log' for more details." >&5 |
| 2485 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2486 | See \`config.log' for more details." >&2;} |
| 2487 | { (exit 1); exit 1; }; } |
| 2488 | fi |
| 2489 | |
| 2490 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2491 | fi |
| 2492 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2493 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2494 | OBJEXT=$ac_cv_objext |
| 2495 | ac_objext=$OBJEXT |
| 2496 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2497 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2498 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2500 | else |
| 2501 | cat >conftest.$ac_ext <<_ACEOF |
| 2502 | /* confdefs.h. */ |
| 2503 | _ACEOF |
| 2504 | cat confdefs.h >>conftest.$ac_ext |
| 2505 | cat >>conftest.$ac_ext <<_ACEOF |
| 2506 | /* end confdefs.h. */ |
| 2507 | |
| 2508 | int |
| 2509 | main () |
| 2510 | { |
| 2511 | #ifndef __GNUC__ |
| 2512 | choke me |
| 2513 | #endif |
| 2514 | |
| 2515 | ; |
| 2516 | return 0; |
| 2517 | } |
| 2518 | _ACEOF |
| 2519 | rm -f conftest.$ac_objext |
| 2520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2521 | (eval $ac_compile) 2>conftest.er1 |
| 2522 | ac_status=$? |
| 2523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2524 | rm -f conftest.er1 |
| 2525 | cat conftest.err >&5 |
| 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2527 | (exit $ac_status); } && |
| 2528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2530 | (eval $ac_try) 2>&5 |
| 2531 | ac_status=$? |
| 2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2533 | (exit $ac_status); }; } && |
| 2534 | { ac_try='test -s conftest.$ac_objext' |
| 2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2536 | (eval $ac_try) 2>&5 |
| 2537 | ac_status=$? |
| 2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2539 | (exit $ac_status); }; }; then |
| 2540 | ac_compiler_gnu=yes |
| 2541 | else |
| 2542 | echo "$as_me: failed program was:" >&5 |
| 2543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2544 | |
| 2545 | ac_compiler_gnu=no |
| 2546 | fi |
| 2547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2548 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2549 | |
| 2550 | fi |
| 2551 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2552 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2553 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2554 | ac_test_CFLAGS=${CFLAGS+set} |
| 2555 | ac_save_CFLAGS=$CFLAGS |
| 2556 | CFLAGS="-g" |
| 2557 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2558 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2559 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2561 | else |
| 2562 | cat >conftest.$ac_ext <<_ACEOF |
| 2563 | /* confdefs.h. */ |
| 2564 | _ACEOF |
| 2565 | cat confdefs.h >>conftest.$ac_ext |
| 2566 | cat >>conftest.$ac_ext <<_ACEOF |
| 2567 | /* end confdefs.h. */ |
| 2568 | |
| 2569 | int |
| 2570 | main () |
| 2571 | { |
| 2572 | |
| 2573 | ; |
| 2574 | return 0; |
| 2575 | } |
| 2576 | _ACEOF |
| 2577 | rm -f conftest.$ac_objext |
| 2578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2579 | (eval $ac_compile) 2>conftest.er1 |
| 2580 | ac_status=$? |
| 2581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2582 | rm -f conftest.er1 |
| 2583 | cat conftest.err >&5 |
| 2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2585 | (exit $ac_status); } && |
| 2586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2588 | (eval $ac_try) 2>&5 |
| 2589 | ac_status=$? |
| 2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2591 | (exit $ac_status); }; } && |
| 2592 | { ac_try='test -s conftest.$ac_objext' |
| 2593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2594 | (eval $ac_try) 2>&5 |
| 2595 | ac_status=$? |
| 2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2597 | (exit $ac_status); }; }; then |
| 2598 | ac_cv_prog_cc_g=yes |
| 2599 | else |
| 2600 | echo "$as_me: failed program was:" >&5 |
| 2601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2602 | |
| 2603 | ac_cv_prog_cc_g=no |
| 2604 | fi |
| 2605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2606 | fi |
| 2607 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2608 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2609 | if test "$ac_test_CFLAGS" = set; then |
| 2610 | CFLAGS=$ac_save_CFLAGS |
| 2611 | elif test $ac_cv_prog_cc_g = yes; then |
| 2612 | if test "$GCC" = yes; then |
| 2613 | CFLAGS="-g -O2" |
| 2614 | else |
| 2615 | CFLAGS="-g" |
| 2616 | fi |
| 2617 | else |
| 2618 | if test "$GCC" = yes; then |
| 2619 | CFLAGS="-O2" |
| 2620 | else |
| 2621 | CFLAGS= |
| 2622 | fi |
| 2623 | fi |
| 2624 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2625 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2626 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2628 | else |
| 2629 | ac_cv_prog_cc_stdc=no |
| 2630 | ac_save_CC=$CC |
| 2631 | cat >conftest.$ac_ext <<_ACEOF |
| 2632 | /* confdefs.h. */ |
| 2633 | _ACEOF |
| 2634 | cat confdefs.h >>conftest.$ac_ext |
| 2635 | cat >>conftest.$ac_ext <<_ACEOF |
| 2636 | /* end confdefs.h. */ |
| 2637 | #include <stdarg.h> |
| 2638 | #include <stdio.h> |
| 2639 | #include <sys/types.h> |
| 2640 | #include <sys/stat.h> |
| 2641 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2642 | struct buf { int x; }; |
| 2643 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2644 | static char *e (p, i) |
| 2645 | char **p; |
| 2646 | int i; |
| 2647 | { |
| 2648 | return p[i]; |
| 2649 | } |
| 2650 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2651 | { |
| 2652 | char *s; |
| 2653 | va_list v; |
| 2654 | va_start (v,p); |
| 2655 | s = g (p, va_arg (v,int)); |
| 2656 | va_end (v); |
| 2657 | return s; |
| 2658 | } |
| 2659 | |
| 2660 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2661 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2662 | These don't provoke an error unfortunately, instead are silently treated |
| 2663 | as 'x'. The following induces an error, until -std1 is added to get |
| 2664 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2665 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2666 | that's true only with -std1. */ |
| 2667 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2668 | |
| 2669 | int test (int i, double x); |
| 2670 | struct s1 {int (*f) (int a);}; |
| 2671 | struct s2 {int (*f) (double a);}; |
| 2672 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2673 | int argc; |
| 2674 | char **argv; |
| 2675 | int |
| 2676 | main () |
| 2677 | { |
| 2678 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2679 | ; |
| 2680 | return 0; |
| 2681 | } |
| 2682 | _ACEOF |
| 2683 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2684 | # breaks some systems' header files. |
| 2685 | # AIX -qlanglvl=ansi |
| 2686 | # Ultrix and OSF/1 -std1 |
| 2687 | # HP-UX 10.20 and later -Ae |
| 2688 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2689 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2690 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2691 | do |
| 2692 | CC="$ac_save_CC $ac_arg" |
| 2693 | rm -f conftest.$ac_objext |
| 2694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2695 | (eval $ac_compile) 2>conftest.er1 |
| 2696 | ac_status=$? |
| 2697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2698 | rm -f conftest.er1 |
| 2699 | cat conftest.err >&5 |
| 2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2701 | (exit $ac_status); } && |
| 2702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2704 | (eval $ac_try) 2>&5 |
| 2705 | ac_status=$? |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); }; } && |
| 2708 | { ac_try='test -s conftest.$ac_objext' |
| 2709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2710 | (eval $ac_try) 2>&5 |
| 2711 | ac_status=$? |
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2713 | (exit $ac_status); }; }; then |
| 2714 | ac_cv_prog_cc_stdc=$ac_arg |
| 2715 | break |
| 2716 | else |
| 2717 | echo "$as_me: failed program was:" >&5 |
| 2718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2719 | |
| 2720 | fi |
| 2721 | rm -f conftest.err conftest.$ac_objext |
| 2722 | done |
| 2723 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2724 | CC=$ac_save_CC |
| 2725 | |
| 2726 | fi |
| 2727 | |
| 2728 | case "x$ac_cv_prog_cc_stdc" in |
| 2729 | x|xno) |
| 2730 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2731 | echo "${ECHO_T}none needed" >&6 ;; |
| 2732 | *) |
| 2733 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2734 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2735 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2736 | esac |
| 2737 | |
| 2738 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2739 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2740 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2741 | # the declaration of exit, since it's the most demanding environment. |
| 2742 | cat >conftest.$ac_ext <<_ACEOF |
| 2743 | #ifndef __cplusplus |
| 2744 | choke me |
| 2745 | #endif |
| 2746 | _ACEOF |
| 2747 | rm -f conftest.$ac_objext |
| 2748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2749 | (eval $ac_compile) 2>conftest.er1 |
| 2750 | ac_status=$? |
| 2751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2752 | rm -f conftest.er1 |
| 2753 | cat conftest.err >&5 |
| 2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2755 | (exit $ac_status); } && |
| 2756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2758 | (eval $ac_try) 2>&5 |
| 2759 | ac_status=$? |
| 2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2761 | (exit $ac_status); }; } && |
| 2762 | { ac_try='test -s conftest.$ac_objext' |
| 2763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2764 | (eval $ac_try) 2>&5 |
| 2765 | ac_status=$? |
| 2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2767 | (exit $ac_status); }; }; then |
| 2768 | for ac_declaration in \ |
| 2769 | '' \ |
| 2770 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2771 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2772 | 'extern "C" void exit (int) throw ();' \ |
| 2773 | 'extern "C" void exit (int);' \ |
| 2774 | 'void exit (int);' |
| 2775 | do |
| 2776 | cat >conftest.$ac_ext <<_ACEOF |
| 2777 | /* confdefs.h. */ |
| 2778 | _ACEOF |
| 2779 | cat confdefs.h >>conftest.$ac_ext |
| 2780 | cat >>conftest.$ac_ext <<_ACEOF |
| 2781 | /* end confdefs.h. */ |
| 2782 | $ac_declaration |
| 2783 | #include <stdlib.h> |
| 2784 | int |
| 2785 | main () |
| 2786 | { |
| 2787 | exit (42); |
| 2788 | ; |
| 2789 | return 0; |
| 2790 | } |
| 2791 | _ACEOF |
| 2792 | rm -f conftest.$ac_objext |
| 2793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2794 | (eval $ac_compile) 2>conftest.er1 |
| 2795 | ac_status=$? |
| 2796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2797 | rm -f conftest.er1 |
| 2798 | cat conftest.err >&5 |
| 2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2800 | (exit $ac_status); } && |
| 2801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2803 | (eval $ac_try) 2>&5 |
| 2804 | ac_status=$? |
| 2805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2806 | (exit $ac_status); }; } && |
| 2807 | { ac_try='test -s conftest.$ac_objext' |
| 2808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2809 | (eval $ac_try) 2>&5 |
| 2810 | ac_status=$? |
| 2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2812 | (exit $ac_status); }; }; then |
| 2813 | : |
| 2814 | else |
| 2815 | echo "$as_me: failed program was:" >&5 |
| 2816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2817 | |
| 2818 | continue |
| 2819 | fi |
| 2820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2821 | cat >conftest.$ac_ext <<_ACEOF |
| 2822 | /* confdefs.h. */ |
| 2823 | _ACEOF |
| 2824 | cat confdefs.h >>conftest.$ac_ext |
| 2825 | cat >>conftest.$ac_ext <<_ACEOF |
| 2826 | /* end confdefs.h. */ |
| 2827 | $ac_declaration |
| 2828 | int |
| 2829 | main () |
| 2830 | { |
| 2831 | exit (42); |
| 2832 | ; |
| 2833 | return 0; |
| 2834 | } |
| 2835 | _ACEOF |
| 2836 | rm -f conftest.$ac_objext |
| 2837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2838 | (eval $ac_compile) 2>conftest.er1 |
| 2839 | ac_status=$? |
| 2840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2841 | rm -f conftest.er1 |
| 2842 | cat conftest.err >&5 |
| 2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2844 | (exit $ac_status); } && |
| 2845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2847 | (eval $ac_try) 2>&5 |
| 2848 | ac_status=$? |
| 2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2850 | (exit $ac_status); }; } && |
| 2851 | { ac_try='test -s conftest.$ac_objext' |
| 2852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2853 | (eval $ac_try) 2>&5 |
| 2854 | ac_status=$? |
| 2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2856 | (exit $ac_status); }; }; then |
| 2857 | break |
| 2858 | else |
| 2859 | echo "$as_me: failed program was:" >&5 |
| 2860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2861 | |
| 2862 | fi |
| 2863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2864 | done |
| 2865 | rm -f conftest* |
| 2866 | if test -n "$ac_declaration"; then |
| 2867 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2868 | echo $ac_declaration >>confdefs.h |
| 2869 | echo '#endif' >>confdefs.h |
| 2870 | fi |
| 2871 | |
| 2872 | else |
| 2873 | echo "$as_me: failed program was:" >&5 |
| 2874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2875 | |
| 2876 | fi |
| 2877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2878 | ac_ext=c |
| 2879 | ac_cpp='$CPP $CPPFLAGS' |
| 2880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2883 | DEPDIR="${am__leading_dot}deps" |
| 2884 | |
| 2885 | ac_config_commands="$ac_config_commands depfiles" |
| 2886 | |
| 2887 | |
| 2888 | am_make=${MAKE-make} |
| 2889 | cat > confinc << 'END' |
| 2890 | am__doit: |
| 2891 | @echo done |
| 2892 | .PHONY: am__doit |
| 2893 | END |
| 2894 | # If we don't find an include directive, just comment out the code. |
| 2895 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2896 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2897 | am__include="#" |
| 2898 | am__quote= |
| 2899 | _am_result=none |
| 2900 | # First try GNU make style include. |
| 2901 | echo "include confinc" > confmf |
| 2902 | # We grep out `Entering directory' and `Leaving directory' |
| 2903 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2904 | # In particular we don't look at `^make:' because GNU make might |
| 2905 | # be invoked under some other name (usually "gmake"), in which |
| 2906 | # case it prints its new name instead of `make'. |
| 2907 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 2908 | am__include=include |
| 2909 | am__quote= |
| 2910 | _am_result=GNU |
| 2911 | fi |
| 2912 | # Now try BSD make style include. |
| 2913 | if test "$am__include" = "#"; then |
| 2914 | echo '.include "confinc"' > confmf |
| 2915 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2916 | am__include=.include |
| 2917 | am__quote="\"" |
| 2918 | _am_result=BSD |
| 2919 | fi |
| 2920 | fi |
| 2921 | |
| 2922 | |
| 2923 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2924 | echo "${ECHO_T}$_am_result" >&6 |
| 2925 | rm -f confinc confmf |
| 2926 | |
| 2927 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2928 | if test "${enable_dependency_tracking+set}" = set; then |
| 2929 | enableval="$enable_dependency_tracking" |
| 2930 | |
| 2931 | fi; |
| 2932 | if test "x$enable_dependency_tracking" != xno; then |
| 2933 | am_depcomp="$ac_aux_dir/depcomp" |
| 2934 | AMDEPBACKSLASH='\' |
| 2935 | fi |
| 2936 | |
| 2937 | |
| 2938 | if test "x$enable_dependency_tracking" != xno; then |
| 2939 | AMDEP_TRUE= |
| 2940 | AMDEP_FALSE='#' |
| 2941 | else |
| 2942 | AMDEP_TRUE='#' |
| 2943 | AMDEP_FALSE= |
| 2944 | fi |
| 2945 | |
| 2946 | |
| 2947 | |
| 2948 | |
| 2949 | depcc="$CC" am_compiler_list= |
| 2950 | |
| 2951 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2952 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2953 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2955 | else |
| 2956 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2957 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2958 | # making bogus files that we don't know about and never remove. For |
| 2959 | # instance it was reported that on HP-UX the gcc test will end up |
| 2960 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2961 | # in D'. |
| 2962 | mkdir conftest.dir |
| 2963 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2964 | # using a relative directory. |
| 2965 | cp "$am_depcomp" conftest.dir |
| 2966 | cd conftest.dir |
| 2967 | # We will build objects and dependencies in a subdirectory because |
| 2968 | # it helps to detect inapplicable dependency modes. For instance |
| 2969 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 2970 | # side effect of compilation, but ICC will put the dependencies in |
| 2971 | # the current directory while Tru64 will put them in the object |
| 2972 | # directory. |
| 2973 | mkdir sub |
| 2974 | |
| 2975 | am_cv_CC_dependencies_compiler_type=none |
| 2976 | if test "$am_compiler_list" = ""; then |
| 2977 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2978 | fi |
| 2979 | for depmode in $am_compiler_list; do |
| 2980 | # Setup a source with many dependencies, because some compilers |
| 2981 | # like to wrap large dependency lists on column 80 (with \), and |
| 2982 | # we should not choose a depcomp mode which is confused by this. |
| 2983 | # |
| 2984 | # We need to recreate these files for each test, as the compiler may |
| 2985 | # overwrite some of them when testing with obscure command lines. |
| 2986 | # This happens at least with the AIX C compiler. |
| 2987 | : > sub/conftest.c |
| 2988 | for i in 1 2 3 4 5 6; do |
| 2989 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 2990 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 2991 | # Solaris 8's {/usr,}/bin/sh. |
| 2992 | touch sub/conftst$i.h |
| 2993 | done |
| 2994 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 2995 | |
| 2996 | case $depmode in |
| 2997 | nosideeffect) |
| 2998 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2999 | # only be used when explicitly requested |
| 3000 | if test "x$enable_dependency_tracking" = xyes; then |
| 3001 | continue |
| 3002 | else |
| 3003 | break |
| 3004 | fi |
| 3005 | ;; |
| 3006 | none) break ;; |
| 3007 | esac |
| 3008 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3009 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3010 | # handle `-M -o', and we need to detect this. |
| 3011 | if depmode=$depmode \ |
| 3012 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3013 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3014 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3015 | >/dev/null 2>conftest.err && |
| 3016 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3017 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3018 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3019 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3020 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3021 | # that says an option was ignored or not supported. |
| 3022 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3023 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3024 | # The diagnosis changed in icc 8.0: |
| 3025 | # icc: Command line remark: option '-MP' not supported |
| 3026 | if (grep 'ignoring option' conftest.err || |
| 3027 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3028 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3029 | break |
| 3030 | fi |
| 3031 | fi |
| 3032 | done |
| 3033 | |
| 3034 | cd .. |
| 3035 | rm -rf conftest.dir |
| 3036 | else |
| 3037 | am_cv_CC_dependencies_compiler_type=none |
| 3038 | fi |
| 3039 | |
| 3040 | fi |
| 3041 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3042 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 3043 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3044 | |
| 3045 | |
| 3046 | |
| 3047 | if |
| 3048 | test "x$enable_dependency_tracking" != xno \ |
| 3049 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3050 | am__fastdepCC_TRUE= |
| 3051 | am__fastdepCC_FALSE='#' |
| 3052 | else |
| 3053 | am__fastdepCC_TRUE='#' |
| 3054 | am__fastdepCC_FALSE= |
| 3055 | fi |
| 3056 | |
| 3057 | |
| 3058 | ac_ext=c |
| 3059 | ac_cpp='$CPP $CPPFLAGS' |
| 3060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3063 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3064 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3065 | # On Suns, sometimes $CPP names a directory. |
| 3066 | if test -n "$CPP" && test -d "$CPP"; then |
| 3067 | CPP= |
| 3068 | fi |
| 3069 | if test -z "$CPP"; then |
| 3070 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3072 | else |
| 3073 | # Double quotes because CPP needs to be expanded |
| 3074 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3075 | do |
| 3076 | ac_preproc_ok=false |
| 3077 | for ac_c_preproc_warn_flag in '' yes |
| 3078 | do |
| 3079 | # Use a header file that comes with gcc, so configuring glibc |
| 3080 | # with a fresh cross-compiler works. |
| 3081 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3082 | # <limits.h> exists even on freestanding compilers. |
| 3083 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3084 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3085 | cat >conftest.$ac_ext <<_ACEOF |
| 3086 | /* confdefs.h. */ |
| 3087 | _ACEOF |
| 3088 | cat confdefs.h >>conftest.$ac_ext |
| 3089 | cat >>conftest.$ac_ext <<_ACEOF |
| 3090 | /* end confdefs.h. */ |
| 3091 | #ifdef __STDC__ |
| 3092 | # include <limits.h> |
| 3093 | #else |
| 3094 | # include <assert.h> |
| 3095 | #endif |
| 3096 | Syntax error |
| 3097 | _ACEOF |
| 3098 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3099 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3100 | ac_status=$? |
| 3101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3102 | rm -f conftest.er1 |
| 3103 | cat conftest.err >&5 |
| 3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3105 | (exit $ac_status); } >/dev/null; then |
| 3106 | if test -s conftest.err; then |
| 3107 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3108 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3109 | else |
| 3110 | ac_cpp_err= |
| 3111 | fi |
| 3112 | else |
| 3113 | ac_cpp_err=yes |
| 3114 | fi |
| 3115 | if test -z "$ac_cpp_err"; then |
| 3116 | : |
| 3117 | else |
| 3118 | echo "$as_me: failed program was:" >&5 |
| 3119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3120 | |
| 3121 | # Broken: fails on valid input. |
| 3122 | continue |
| 3123 | fi |
| 3124 | rm -f conftest.err conftest.$ac_ext |
| 3125 | |
| 3126 | # OK, works on sane cases. Now check whether non-existent headers |
| 3127 | # can be detected and how. |
| 3128 | cat >conftest.$ac_ext <<_ACEOF |
| 3129 | /* confdefs.h. */ |
| 3130 | _ACEOF |
| 3131 | cat confdefs.h >>conftest.$ac_ext |
| 3132 | cat >>conftest.$ac_ext <<_ACEOF |
| 3133 | /* end confdefs.h. */ |
| 3134 | #include <ac_nonexistent.h> |
| 3135 | _ACEOF |
| 3136 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3137 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3138 | ac_status=$? |
| 3139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3140 | rm -f conftest.er1 |
| 3141 | cat conftest.err >&5 |
| 3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3143 | (exit $ac_status); } >/dev/null; then |
| 3144 | if test -s conftest.err; then |
| 3145 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3146 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3147 | else |
| 3148 | ac_cpp_err= |
| 3149 | fi |
| 3150 | else |
| 3151 | ac_cpp_err=yes |
| 3152 | fi |
| 3153 | if test -z "$ac_cpp_err"; then |
| 3154 | # Broken: success on invalid input. |
| 3155 | continue |
| 3156 | else |
| 3157 | echo "$as_me: failed program was:" >&5 |
| 3158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3159 | |
| 3160 | # Passes both tests. |
| 3161 | ac_preproc_ok=: |
| 3162 | break |
| 3163 | fi |
| 3164 | rm -f conftest.err conftest.$ac_ext |
| 3165 | |
| 3166 | done |
| 3167 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3168 | rm -f conftest.err conftest.$ac_ext |
| 3169 | if $ac_preproc_ok; then |
| 3170 | break |
| 3171 | fi |
| 3172 | |
| 3173 | done |
| 3174 | ac_cv_prog_CPP=$CPP |
| 3175 | |
| 3176 | fi |
| 3177 | CPP=$ac_cv_prog_CPP |
| 3178 | else |
| 3179 | ac_cv_prog_CPP=$CPP |
| 3180 | fi |
| 3181 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3182 | echo "${ECHO_T}$CPP" >&6 |
| 3183 | ac_preproc_ok=false |
| 3184 | for ac_c_preproc_warn_flag in '' yes |
| 3185 | do |
| 3186 | # Use a header file that comes with gcc, so configuring glibc |
| 3187 | # with a fresh cross-compiler works. |
| 3188 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3189 | # <limits.h> exists even on freestanding compilers. |
| 3190 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3191 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3192 | cat >conftest.$ac_ext <<_ACEOF |
| 3193 | /* confdefs.h. */ |
| 3194 | _ACEOF |
| 3195 | cat confdefs.h >>conftest.$ac_ext |
| 3196 | cat >>conftest.$ac_ext <<_ACEOF |
| 3197 | /* end confdefs.h. */ |
| 3198 | #ifdef __STDC__ |
| 3199 | # include <limits.h> |
| 3200 | #else |
| 3201 | # include <assert.h> |
| 3202 | #endif |
| 3203 | Syntax error |
| 3204 | _ACEOF |
| 3205 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3206 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3207 | ac_status=$? |
| 3208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3209 | rm -f conftest.er1 |
| 3210 | cat conftest.err >&5 |
| 3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3212 | (exit $ac_status); } >/dev/null; then |
| 3213 | if test -s conftest.err; then |
| 3214 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3215 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3216 | else |
| 3217 | ac_cpp_err= |
| 3218 | fi |
| 3219 | else |
| 3220 | ac_cpp_err=yes |
| 3221 | fi |
| 3222 | if test -z "$ac_cpp_err"; then |
| 3223 | : |
| 3224 | else |
| 3225 | echo "$as_me: failed program was:" >&5 |
| 3226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3227 | |
| 3228 | # Broken: fails on valid input. |
| 3229 | continue |
| 3230 | fi |
| 3231 | rm -f conftest.err conftest.$ac_ext |
| 3232 | |
| 3233 | # OK, works on sane cases. Now check whether non-existent headers |
| 3234 | # can be detected and how. |
| 3235 | cat >conftest.$ac_ext <<_ACEOF |
| 3236 | /* confdefs.h. */ |
| 3237 | _ACEOF |
| 3238 | cat confdefs.h >>conftest.$ac_ext |
| 3239 | cat >>conftest.$ac_ext <<_ACEOF |
| 3240 | /* end confdefs.h. */ |
| 3241 | #include <ac_nonexistent.h> |
| 3242 | _ACEOF |
| 3243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3245 | ac_status=$? |
| 3246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3247 | rm -f conftest.er1 |
| 3248 | cat conftest.err >&5 |
| 3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3250 | (exit $ac_status); } >/dev/null; then |
| 3251 | if test -s conftest.err; then |
| 3252 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3253 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3254 | else |
| 3255 | ac_cpp_err= |
| 3256 | fi |
| 3257 | else |
| 3258 | ac_cpp_err=yes |
| 3259 | fi |
| 3260 | if test -z "$ac_cpp_err"; then |
| 3261 | # Broken: success on invalid input. |
| 3262 | continue |
| 3263 | else |
| 3264 | echo "$as_me: failed program was:" >&5 |
| 3265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3266 | |
| 3267 | # Passes both tests. |
| 3268 | ac_preproc_ok=: |
| 3269 | break |
| 3270 | fi |
| 3271 | rm -f conftest.err conftest.$ac_ext |
| 3272 | |
| 3273 | done |
| 3274 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3275 | rm -f conftest.err conftest.$ac_ext |
| 3276 | if $ac_preproc_ok; then |
| 3277 | : |
| 3278 | else |
| 3279 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3280 | See \`config.log' for more details." >&5 |
| 3281 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3282 | See \`config.log' for more details." >&2;} |
| 3283 | { (exit 1); exit 1; }; } |
| 3284 | fi |
| 3285 | |
| 3286 | ac_ext=c |
| 3287 | ac_cpp='$CPP $CPPFLAGS' |
| 3288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3291 | |
| 3292 | ac_ext=cc |
| 3293 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3294 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3295 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3296 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3297 | if test -n "$ac_tool_prefix"; then |
| 3298 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3299 | do |
| 3300 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3301 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3302 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3304 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3306 | else |
| 3307 | if test -n "$CXX"; then |
| 3308 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3309 | else |
| 3310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3311 | for as_dir in $PATH |
| 3312 | do |
| 3313 | IFS=$as_save_IFS |
| 3314 | test -z "$as_dir" && as_dir=. |
| 3315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3317 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3319 | break 2 |
| 3320 | fi |
| 3321 | done |
| 3322 | done |
| 3323 | |
| 3324 | fi |
| 3325 | fi |
| 3326 | CXX=$ac_cv_prog_CXX |
| 3327 | if test -n "$CXX"; then |
| 3328 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3329 | echo "${ECHO_T}$CXX" >&6 |
| 3330 | else |
| 3331 | echo "$as_me:$LINENO: result: no" >&5 |
| 3332 | echo "${ECHO_T}no" >&6 |
| 3333 | fi |
| 3334 | |
| 3335 | test -n "$CXX" && break |
| 3336 | done |
| 3337 | fi |
| 3338 | if test -z "$CXX"; then |
| 3339 | ac_ct_CXX=$CXX |
| 3340 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3341 | do |
| 3342 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3343 | set dummy $ac_prog; ac_word=$2 |
| 3344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3346 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3348 | else |
| 3349 | if test -n "$ac_ct_CXX"; then |
| 3350 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3351 | else |
| 3352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3353 | for as_dir in $PATH |
| 3354 | do |
| 3355 | IFS=$as_save_IFS |
| 3356 | test -z "$as_dir" && as_dir=. |
| 3357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3358 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3359 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3361 | break 2 |
| 3362 | fi |
| 3363 | done |
| 3364 | done |
| 3365 | |
| 3366 | fi |
| 3367 | fi |
| 3368 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3369 | if test -n "$ac_ct_CXX"; then |
| 3370 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3371 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 3372 | else |
| 3373 | echo "$as_me:$LINENO: result: no" >&5 |
| 3374 | echo "${ECHO_T}no" >&6 |
| 3375 | fi |
| 3376 | |
| 3377 | test -n "$ac_ct_CXX" && break |
| 3378 | done |
| 3379 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3380 | |
| 3381 | CXX=$ac_ct_CXX |
| 3382 | fi |
| 3383 | |
| 3384 | |
| 3385 | # Provide some information about the compiler. |
| 3386 | echo "$as_me:$LINENO:" \ |
| 3387 | "checking for C++ compiler version" >&5 |
| 3388 | ac_compiler=`set X $ac_compile; echo $2` |
| 3389 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3390 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3391 | ac_status=$? |
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3393 | (exit $ac_status); } |
| 3394 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3395 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3396 | ac_status=$? |
| 3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3398 | (exit $ac_status); } |
| 3399 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3400 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3401 | ac_status=$? |
| 3402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3403 | (exit $ac_status); } |
| 3404 | |
| 3405 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3406 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3407 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3409 | else |
| 3410 | cat >conftest.$ac_ext <<_ACEOF |
| 3411 | /* confdefs.h. */ |
| 3412 | _ACEOF |
| 3413 | cat confdefs.h >>conftest.$ac_ext |
| 3414 | cat >>conftest.$ac_ext <<_ACEOF |
| 3415 | /* end confdefs.h. */ |
| 3416 | |
| 3417 | int |
| 3418 | main () |
| 3419 | { |
| 3420 | #ifndef __GNUC__ |
| 3421 | choke me |
| 3422 | #endif |
| 3423 | |
| 3424 | ; |
| 3425 | return 0; |
| 3426 | } |
| 3427 | _ACEOF |
| 3428 | rm -f conftest.$ac_objext |
| 3429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3430 | (eval $ac_compile) 2>conftest.er1 |
| 3431 | ac_status=$? |
| 3432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3433 | rm -f conftest.er1 |
| 3434 | cat conftest.err >&5 |
| 3435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3436 | (exit $ac_status); } && |
| 3437 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3439 | (eval $ac_try) 2>&5 |
| 3440 | ac_status=$? |
| 3441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3442 | (exit $ac_status); }; } && |
| 3443 | { ac_try='test -s conftest.$ac_objext' |
| 3444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3445 | (eval $ac_try) 2>&5 |
| 3446 | ac_status=$? |
| 3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3448 | (exit $ac_status); }; }; then |
| 3449 | ac_compiler_gnu=yes |
| 3450 | else |
| 3451 | echo "$as_me: failed program was:" >&5 |
| 3452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3453 | |
| 3454 | ac_compiler_gnu=no |
| 3455 | fi |
| 3456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3457 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3458 | |
| 3459 | fi |
| 3460 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3461 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 3462 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3463 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3464 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3465 | CXXFLAGS="-g" |
| 3466 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3467 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 3468 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3470 | else |
| 3471 | cat >conftest.$ac_ext <<_ACEOF |
| 3472 | /* confdefs.h. */ |
| 3473 | _ACEOF |
| 3474 | cat confdefs.h >>conftest.$ac_ext |
| 3475 | cat >>conftest.$ac_ext <<_ACEOF |
| 3476 | /* end confdefs.h. */ |
| 3477 | |
| 3478 | int |
| 3479 | main () |
| 3480 | { |
| 3481 | |
| 3482 | ; |
| 3483 | return 0; |
| 3484 | } |
| 3485 | _ACEOF |
| 3486 | rm -f conftest.$ac_objext |
| 3487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3488 | (eval $ac_compile) 2>conftest.er1 |
| 3489 | ac_status=$? |
| 3490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3491 | rm -f conftest.er1 |
| 3492 | cat conftest.err >&5 |
| 3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3494 | (exit $ac_status); } && |
| 3495 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3497 | (eval $ac_try) 2>&5 |
| 3498 | ac_status=$? |
| 3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3500 | (exit $ac_status); }; } && |
| 3501 | { ac_try='test -s conftest.$ac_objext' |
| 3502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3503 | (eval $ac_try) 2>&5 |
| 3504 | ac_status=$? |
| 3505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3506 | (exit $ac_status); }; }; then |
| 3507 | ac_cv_prog_cxx_g=yes |
| 3508 | else |
| 3509 | echo "$as_me: failed program was:" >&5 |
| 3510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3511 | |
| 3512 | ac_cv_prog_cxx_g=no |
| 3513 | fi |
| 3514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3515 | fi |
| 3516 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3517 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 3518 | if test "$ac_test_CXXFLAGS" = set; then |
| 3519 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3520 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3521 | if test "$GXX" = yes; then |
| 3522 | CXXFLAGS="-g -O2" |
| 3523 | else |
| 3524 | CXXFLAGS="-g" |
| 3525 | fi |
| 3526 | else |
| 3527 | if test "$GXX" = yes; then |
| 3528 | CXXFLAGS="-O2" |
| 3529 | else |
| 3530 | CXXFLAGS= |
| 3531 | fi |
| 3532 | fi |
| 3533 | for ac_declaration in \ |
| 3534 | '' \ |
| 3535 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3536 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3537 | 'extern "C" void exit (int) throw ();' \ |
| 3538 | 'extern "C" void exit (int);' \ |
| 3539 | 'void exit (int);' |
| 3540 | do |
| 3541 | cat >conftest.$ac_ext <<_ACEOF |
| 3542 | /* confdefs.h. */ |
| 3543 | _ACEOF |
| 3544 | cat confdefs.h >>conftest.$ac_ext |
| 3545 | cat >>conftest.$ac_ext <<_ACEOF |
| 3546 | /* end confdefs.h. */ |
| 3547 | $ac_declaration |
| 3548 | #include <stdlib.h> |
| 3549 | int |
| 3550 | main () |
| 3551 | { |
| 3552 | exit (42); |
| 3553 | ; |
| 3554 | return 0; |
| 3555 | } |
| 3556 | _ACEOF |
| 3557 | rm -f conftest.$ac_objext |
| 3558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3559 | (eval $ac_compile) 2>conftest.er1 |
| 3560 | ac_status=$? |
| 3561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3562 | rm -f conftest.er1 |
| 3563 | cat conftest.err >&5 |
| 3564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3565 | (exit $ac_status); } && |
| 3566 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3568 | (eval $ac_try) 2>&5 |
| 3569 | ac_status=$? |
| 3570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3571 | (exit $ac_status); }; } && |
| 3572 | { ac_try='test -s conftest.$ac_objext' |
| 3573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3574 | (eval $ac_try) 2>&5 |
| 3575 | ac_status=$? |
| 3576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3577 | (exit $ac_status); }; }; then |
| 3578 | : |
| 3579 | else |
| 3580 | echo "$as_me: failed program was:" >&5 |
| 3581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3582 | |
| 3583 | continue |
| 3584 | fi |
| 3585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3586 | cat >conftest.$ac_ext <<_ACEOF |
| 3587 | /* confdefs.h. */ |
| 3588 | _ACEOF |
| 3589 | cat confdefs.h >>conftest.$ac_ext |
| 3590 | cat >>conftest.$ac_ext <<_ACEOF |
| 3591 | /* end confdefs.h. */ |
| 3592 | $ac_declaration |
| 3593 | int |
| 3594 | main () |
| 3595 | { |
| 3596 | exit (42); |
| 3597 | ; |
| 3598 | return 0; |
| 3599 | } |
| 3600 | _ACEOF |
| 3601 | rm -f conftest.$ac_objext |
| 3602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3603 | (eval $ac_compile) 2>conftest.er1 |
| 3604 | ac_status=$? |
| 3605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3606 | rm -f conftest.er1 |
| 3607 | cat conftest.err >&5 |
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3609 | (exit $ac_status); } && |
| 3610 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3612 | (eval $ac_try) 2>&5 |
| 3613 | ac_status=$? |
| 3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3615 | (exit $ac_status); }; } && |
| 3616 | { ac_try='test -s conftest.$ac_objext' |
| 3617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3618 | (eval $ac_try) 2>&5 |
| 3619 | ac_status=$? |
| 3620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3621 | (exit $ac_status); }; }; then |
| 3622 | break |
| 3623 | else |
| 3624 | echo "$as_me: failed program was:" >&5 |
| 3625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3626 | |
| 3627 | fi |
| 3628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3629 | done |
| 3630 | rm -f conftest* |
| 3631 | if test -n "$ac_declaration"; then |
| 3632 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3633 | echo $ac_declaration >>confdefs.h |
| 3634 | echo '#endif' >>confdefs.h |
| 3635 | fi |
| 3636 | |
| 3637 | ac_ext=c |
| 3638 | ac_cpp='$CPP $CPPFLAGS' |
| 3639 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3640 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3641 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3642 | |
| 3643 | depcc="$CXX" am_compiler_list= |
| 3644 | |
| 3645 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3646 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 3647 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 3648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3649 | else |
| 3650 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3651 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3652 | # making bogus files that we don't know about and never remove. For |
| 3653 | # instance it was reported that on HP-UX the gcc test will end up |
| 3654 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3655 | # in D'. |
| 3656 | mkdir conftest.dir |
| 3657 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3658 | # using a relative directory. |
| 3659 | cp "$am_depcomp" conftest.dir |
| 3660 | cd conftest.dir |
| 3661 | # We will build objects and dependencies in a subdirectory because |
| 3662 | # it helps to detect inapplicable dependency modes. For instance |
| 3663 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3664 | # side effect of compilation, but ICC will put the dependencies in |
| 3665 | # the current directory while Tru64 will put them in the object |
| 3666 | # directory. |
| 3667 | mkdir sub |
| 3668 | |
| 3669 | am_cv_CXX_dependencies_compiler_type=none |
| 3670 | if test "$am_compiler_list" = ""; then |
| 3671 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3672 | fi |
| 3673 | for depmode in $am_compiler_list; do |
| 3674 | # Setup a source with many dependencies, because some compilers |
| 3675 | # like to wrap large dependency lists on column 80 (with \), and |
| 3676 | # we should not choose a depcomp mode which is confused by this. |
| 3677 | # |
| 3678 | # We need to recreate these files for each test, as the compiler may |
| 3679 | # overwrite some of them when testing with obscure command lines. |
| 3680 | # This happens at least with the AIX C compiler. |
| 3681 | : > sub/conftest.c |
| 3682 | for i in 1 2 3 4 5 6; do |
| 3683 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3684 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3685 | # Solaris 8's {/usr,}/bin/sh. |
| 3686 | touch sub/conftst$i.h |
| 3687 | done |
| 3688 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3689 | |
| 3690 | case $depmode in |
| 3691 | nosideeffect) |
| 3692 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3693 | # only be used when explicitly requested |
| 3694 | if test "x$enable_dependency_tracking" = xyes; then |
| 3695 | continue |
| 3696 | else |
| 3697 | break |
| 3698 | fi |
| 3699 | ;; |
| 3700 | none) break ;; |
| 3701 | esac |
| 3702 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3703 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3704 | # handle `-M -o', and we need to detect this. |
| 3705 | if depmode=$depmode \ |
| 3706 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3707 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3708 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3709 | >/dev/null 2>conftest.err && |
| 3710 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3711 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3712 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3713 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3714 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3715 | # that says an option was ignored or not supported. |
| 3716 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3717 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3718 | # The diagnosis changed in icc 8.0: |
| 3719 | # icc: Command line remark: option '-MP' not supported |
| 3720 | if (grep 'ignoring option' conftest.err || |
| 3721 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3722 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 3723 | break |
| 3724 | fi |
| 3725 | fi |
| 3726 | done |
| 3727 | |
| 3728 | cd .. |
| 3729 | rm -rf conftest.dir |
| 3730 | else |
| 3731 | am_cv_CXX_dependencies_compiler_type=none |
| 3732 | fi |
| 3733 | |
| 3734 | fi |
| 3735 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 3736 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 3737 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 3738 | |
| 3739 | |
| 3740 | |
| 3741 | if |
| 3742 | test "x$enable_dependency_tracking" != xno \ |
| 3743 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 3744 | am__fastdepCXX_TRUE= |
| 3745 | am__fastdepCXX_FALSE='#' |
| 3746 | else |
| 3747 | am__fastdepCXX_TRUE='#' |
| 3748 | am__fastdepCXX_FALSE= |
| 3749 | fi |
| 3750 | |
| 3751 | |
| 3752 | |
| 3753 | # Check whether --enable-shared or --disable-shared was given. |
| 3754 | if test "${enable_shared+set}" = set; then |
| 3755 | enableval="$enable_shared" |
| 3756 | p=${PACKAGE-default} |
| 3757 | case $enableval in |
| 3758 | yes) enable_shared=yes ;; |
| 3759 | no) enable_shared=no ;; |
| 3760 | *) |
| 3761 | enable_shared=no |
| 3762 | # Look at the argument we got. We use all the common list separators. |
| 3763 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3764 | for pkg in $enableval; do |
| 3765 | IFS="$lt_save_ifs" |
| 3766 | if test "X$pkg" = "X$p"; then |
| 3767 | enable_shared=yes |
| 3768 | fi |
| 3769 | done |
| 3770 | IFS="$lt_save_ifs" |
| 3771 | ;; |
| 3772 | esac |
| 3773 | else |
| 3774 | enable_shared=yes |
| 3775 | fi; |
| 3776 | |
| 3777 | # Check whether --enable-static or --disable-static was given. |
| 3778 | if test "${enable_static+set}" = set; then |
| 3779 | enableval="$enable_static" |
| 3780 | p=${PACKAGE-default} |
| 3781 | case $enableval in |
| 3782 | yes) enable_static=yes ;; |
| 3783 | no) enable_static=no ;; |
| 3784 | *) |
| 3785 | enable_static=no |
| 3786 | # Look at the argument we got. We use all the common list separators. |
| 3787 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3788 | for pkg in $enableval; do |
| 3789 | IFS="$lt_save_ifs" |
| 3790 | if test "X$pkg" = "X$p"; then |
| 3791 | enable_static=yes |
| 3792 | fi |
| 3793 | done |
| 3794 | IFS="$lt_save_ifs" |
| 3795 | ;; |
| 3796 | esac |
| 3797 | else |
| 3798 | enable_static=yes |
| 3799 | fi; |
| 3800 | |
| 3801 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3802 | if test "${enable_fast_install+set}" = set; then |
| 3803 | enableval="$enable_fast_install" |
| 3804 | p=${PACKAGE-default} |
| 3805 | case $enableval in |
| 3806 | yes) enable_fast_install=yes ;; |
| 3807 | no) enable_fast_install=no ;; |
| 3808 | *) |
| 3809 | enable_fast_install=no |
| 3810 | # Look at the argument we got. We use all the common list separators. |
| 3811 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3812 | for pkg in $enableval; do |
| 3813 | IFS="$lt_save_ifs" |
| 3814 | if test "X$pkg" = "X$p"; then |
| 3815 | enable_fast_install=yes |
| 3816 | fi |
| 3817 | done |
| 3818 | IFS="$lt_save_ifs" |
| 3819 | ;; |
| 3820 | esac |
| 3821 | else |
| 3822 | enable_fast_install=yes |
| 3823 | fi; |
| 3824 | |
| 3825 | # Make sure we can run config.sub. |
| 3826 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 3827 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 3828 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 3829 | { (exit 1); exit 1; }; } |
| 3830 | |
| 3831 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 3832 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 3833 | if test "${ac_cv_build+set}" = set; then |
| 3834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3835 | else |
| 3836 | ac_cv_build_alias=$build_alias |
| 3837 | test -z "$ac_cv_build_alias" && |
| 3838 | ac_cv_build_alias=`$ac_config_guess` |
| 3839 | test -z "$ac_cv_build_alias" && |
| 3840 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3841 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3842 | { (exit 1); exit 1; }; } |
| 3843 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 3844 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 3845 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 3846 | { (exit 1); exit 1; }; } |
| 3847 | |
| 3848 | fi |
| 3849 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3850 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 3851 | build=$ac_cv_build |
| 3852 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3853 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3854 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3855 | |
| 3856 | |
| 3857 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 3858 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 3859 | if test "${ac_cv_host+set}" = set; then |
| 3860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3861 | else |
| 3862 | ac_cv_host_alias=$host_alias |
| 3863 | test -z "$ac_cv_host_alias" && |
| 3864 | ac_cv_host_alias=$ac_cv_build_alias |
| 3865 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 3866 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 3867 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 3868 | { (exit 1); exit 1; }; } |
| 3869 | |
| 3870 | fi |
| 3871 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3872 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 3873 | host=$ac_cv_host |
| 3874 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3875 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3876 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3877 | |
| 3878 | |
| 3879 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3880 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3881 | if test "${lt_cv_path_SED+set}" = set; then |
| 3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3883 | else |
| 3884 | # Loop through the user's path and test for sed and gsed. |
| 3885 | # Then use that list of sed's as ones to test for truncation. |
| 3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3887 | for as_dir in $PATH |
| 3888 | do |
| 3889 | IFS=$as_save_IFS |
| 3890 | test -z "$as_dir" && as_dir=. |
| 3891 | for lt_ac_prog in sed gsed; do |
| 3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3893 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3894 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3895 | fi |
| 3896 | done |
| 3897 | done |
| 3898 | done |
| 3899 | lt_ac_max=0 |
| 3900 | lt_ac_count=0 |
| 3901 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3902 | # along with /bin/sed that truncates output. |
| 3903 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3904 | test ! -f $lt_ac_sed && break |
| 3905 | cat /dev/null > conftest.in |
| 3906 | lt_ac_count=0 |
| 3907 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3908 | # Check for GNU sed and select it if it is found. |
| 3909 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3910 | lt_cv_path_SED=$lt_ac_sed |
| 3911 | break |
| 3912 | fi |
| 3913 | while true; do |
| 3914 | cat conftest.in conftest.in >conftest.tmp |
| 3915 | mv conftest.tmp conftest.in |
| 3916 | cp conftest.in conftest.nl |
| 3917 | echo >>conftest.nl |
| 3918 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3919 | cmp -s conftest.out conftest.nl || break |
| 3920 | # 10000 chars as input seems more than enough |
| 3921 | test $lt_ac_count -gt 10 && break |
| 3922 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3923 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3924 | lt_ac_max=$lt_ac_count |
| 3925 | lt_cv_path_SED=$lt_ac_sed |
| 3926 | fi |
| 3927 | done |
| 3928 | done |
| 3929 | SED=$lt_cv_path_SED |
| 3930 | |
| 3931 | fi |
| 3932 | |
| 3933 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3934 | echo "${ECHO_T}$SED" >&6 |
| 3935 | |
| 3936 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3937 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3938 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3940 | else |
| 3941 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3942 | then ac_cv_prog_egrep='grep -E' |
| 3943 | else ac_cv_prog_egrep='egrep' |
| 3944 | fi |
| 3945 | fi |
| 3946 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3947 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3948 | EGREP=$ac_cv_prog_egrep |
| 3949 | |
| 3950 | |
| 3951 | |
| 3952 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3953 | if test "${with_gnu_ld+set}" = set; then |
| 3954 | withval="$with_gnu_ld" |
| 3955 | test "$withval" = no || with_gnu_ld=yes |
| 3956 | else |
| 3957 | with_gnu_ld=no |
| 3958 | fi; |
| 3959 | ac_prog=ld |
| 3960 | if test "$GCC" = yes; then |
| 3961 | # Check if gcc -print-prog-name=ld gives a path. |
| 3962 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3963 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 3964 | case $host in |
| 3965 | *-*-mingw*) |
| 3966 | # gcc leaves a trailing carriage return which upsets mingw |
| 3967 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3968 | *) |
| 3969 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3970 | esac |
| 3971 | case $ac_prog in |
| 3972 | # Accept absolute paths. |
| 3973 | [\\/]* | ?:[\\/]*) |
| 3974 | re_direlt='/[^/][^/]*/\.\./' |
| 3975 | # Canonicalize the pathname of ld |
| 3976 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 3977 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3978 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 3979 | done |
| 3980 | test -z "$LD" && LD="$ac_prog" |
| 3981 | ;; |
| 3982 | "") |
| 3983 | # If it fails, then pretend we aren't using GCC. |
| 3984 | ac_prog=ld |
| 3985 | ;; |
| 3986 | *) |
| 3987 | # If it is relative, then search for the first ld in PATH. |
| 3988 | with_gnu_ld=unknown |
| 3989 | ;; |
| 3990 | esac |
| 3991 | elif test "$with_gnu_ld" = yes; then |
| 3992 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3993 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3994 | else |
| 3995 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3996 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3997 | fi |
| 3998 | if test "${lt_cv_path_LD+set}" = set; then |
| 3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4000 | else |
| 4001 | if test -z "$LD"; then |
| 4002 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4003 | for ac_dir in $PATH; do |
| 4004 | IFS="$lt_save_ifs" |
| 4005 | test -z "$ac_dir" && ac_dir=. |
| 4006 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4007 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4008 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4009 | # but apparently some GNU ld's only accept -v. |
| 4010 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4011 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4012 | *GNU* | *'with BFD'*) |
| 4013 | test "$with_gnu_ld" != no && break |
| 4014 | ;; |
| 4015 | *) |
| 4016 | test "$with_gnu_ld" != yes && break |
| 4017 | ;; |
| 4018 | esac |
| 4019 | fi |
| 4020 | done |
| 4021 | IFS="$lt_save_ifs" |
| 4022 | else |
| 4023 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4024 | fi |
| 4025 | fi |
| 4026 | |
| 4027 | LD="$lt_cv_path_LD" |
| 4028 | if test -n "$LD"; then |
| 4029 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4030 | echo "${ECHO_T}$LD" >&6 |
| 4031 | else |
| 4032 | echo "$as_me:$LINENO: result: no" >&5 |
| 4033 | echo "${ECHO_T}no" >&6 |
| 4034 | fi |
| 4035 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4036 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4037 | { (exit 1); exit 1; }; } |
| 4038 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4039 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 4040 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4042 | else |
| 4043 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 4044 | case `$LD -v 2>&1 </dev/null` in |
| 4045 | *GNU* | *'with BFD'*) |
| 4046 | lt_cv_prog_gnu_ld=yes |
| 4047 | ;; |
| 4048 | *) |
| 4049 | lt_cv_prog_gnu_ld=no |
| 4050 | ;; |
| 4051 | esac |
| 4052 | fi |
| 4053 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4054 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 4055 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4056 | |
| 4057 | |
| 4058 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4059 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 4060 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4062 | else |
| 4063 | lt_cv_ld_reload_flag='-r' |
| 4064 | fi |
| 4065 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4066 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 4067 | reload_flag=$lt_cv_ld_reload_flag |
| 4068 | case $reload_flag in |
| 4069 | "" | " "*) ;; |
| 4070 | *) reload_flag=" $reload_flag" ;; |
| 4071 | esac |
| 4072 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4073 | |
| 4074 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4075 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 4076 | if test "${lt_cv_path_NM+set}" = set; then |
| 4077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4078 | else |
| 4079 | if test -n "$NM"; then |
| 4080 | # Let the user override the test. |
| 4081 | lt_cv_path_NM="$NM" |
| 4082 | else |
| 4083 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4084 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 4085 | IFS="$lt_save_ifs" |
| 4086 | test -z "$ac_dir" && ac_dir=. |
| 4087 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 4088 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4089 | # Check to see if the nm accepts a BSD-compat flag. |
| 4090 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4091 | # nm: unknown option "B" ignored |
| 4092 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4093 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4094 | */dev/null* | *'Invalid file or object type'*) |
| 4095 | lt_cv_path_NM="$tmp_nm -B" |
| 4096 | break |
| 4097 | ;; |
| 4098 | *) |
| 4099 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4100 | */dev/null*) |
| 4101 | lt_cv_path_NM="$tmp_nm -p" |
| 4102 | break |
| 4103 | ;; |
| 4104 | *) |
| 4105 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4106 | continue # so that we can try to find one that supports BSD flags |
| 4107 | ;; |
| 4108 | esac |
| 4109 | esac |
| 4110 | fi |
| 4111 | done |
| 4112 | IFS="$lt_save_ifs" |
| 4113 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4114 | fi |
| 4115 | fi |
| 4116 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4117 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 4118 | NM="$lt_cv_path_NM" |
| 4119 | |
| 4120 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4121 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4122 | LN_S=$as_ln_s |
| 4123 | if test "$LN_S" = "ln -s"; then |
| 4124 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4125 | echo "${ECHO_T}yes" >&6 |
| 4126 | else |
| 4127 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4128 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4129 | fi |
| 4130 | |
| 4131 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4132 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 4133 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4135 | else |
| 4136 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4137 | lt_cv_file_magic_test_file= |
| 4138 | lt_cv_deplibs_check_method='unknown' |
| 4139 | # Need to set the preceding variable on all platforms that support |
| 4140 | # interlibrary dependencies. |
| 4141 | # 'none' -- dependencies not supported. |
| 4142 | # `unknown' -- same as none, but documents that we really don't know. |
| 4143 | # 'pass_all' -- all dependencies passed with no checks. |
| 4144 | # 'test_compile' -- check by making test program. |
| 4145 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4146 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4147 | # If you have `file' or equivalent on your system and you're not sure |
| 4148 | # whether `pass_all' will *always* work, you probably want this one. |
| 4149 | |
| 4150 | case $host_os in |
| 4151 | aix4* | aix5*) |
| 4152 | lt_cv_deplibs_check_method=pass_all |
| 4153 | ;; |
| 4154 | |
| 4155 | beos*) |
| 4156 | lt_cv_deplibs_check_method=pass_all |
| 4157 | ;; |
| 4158 | |
| 4159 | bsdi4*) |
| 4160 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4161 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4162 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4163 | ;; |
| 4164 | |
| 4165 | cygwin*) |
| 4166 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4167 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4168 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4169 | ;; |
| 4170 | |
| 4171 | mingw* | pw32*) |
| 4172 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4173 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4174 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4175 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4176 | ;; |
| 4177 | |
| 4178 | darwin* | rhapsody*) |
| 4179 | lt_cv_deplibs_check_method=pass_all |
| 4180 | ;; |
| 4181 | |
| 4182 | freebsd* | kfreebsd*-gnu) |
| 4183 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4184 | case $host_cpu in |
| 4185 | i*86 ) |
| 4186 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4187 | # Let's accept both of them until this is cleared up. |
| 4188 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 4189 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4190 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4191 | ;; |
| 4192 | esac |
| 4193 | else |
| 4194 | lt_cv_deplibs_check_method=pass_all |
| 4195 | fi |
| 4196 | ;; |
| 4197 | |
| 4198 | gnu*) |
| 4199 | lt_cv_deplibs_check_method=pass_all |
| 4200 | ;; |
| 4201 | |
| 4202 | hpux10.20* | hpux11*) |
| 4203 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4204 | case "$host_cpu" in |
| 4205 | ia64*) |
| 4206 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4207 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4208 | ;; |
| 4209 | hppa*64*) |
| 4210 | 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]' |
| 4211 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4212 | ;; |
| 4213 | *) |
| 4214 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4215 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4216 | ;; |
| 4217 | esac |
| 4218 | ;; |
| 4219 | |
| 4220 | irix5* | irix6* | nonstopux*) |
| 4221 | case $LD in |
| 4222 | *-32|*"-32 ") libmagic=32-bit;; |
| 4223 | *-n32|*"-n32 ") libmagic=N32;; |
| 4224 | *-64|*"-64 ") libmagic=64-bit;; |
| 4225 | *) libmagic=never-match;; |
| 4226 | esac |
| 4227 | lt_cv_deplibs_check_method=pass_all |
| 4228 | ;; |
| 4229 | |
| 4230 | # This must be Linux ELF. |
| 4231 | linux*) |
| 4232 | lt_cv_deplibs_check_method=pass_all |
| 4233 | ;; |
| 4234 | |
| 4235 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 4236 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4237 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4238 | else |
| 4239 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4240 | fi |
| 4241 | ;; |
| 4242 | |
| 4243 | newos6*) |
| 4244 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4245 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4246 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4247 | ;; |
| 4248 | |
| 4249 | nto-qnx*) |
| 4250 | lt_cv_deplibs_check_method=unknown |
| 4251 | ;; |
| 4252 | |
| 4253 | openbsd*) |
| 4254 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4255 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4256 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4257 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 4258 | else |
| 4259 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 4260 | fi |
| 4261 | ;; |
| 4262 | |
| 4263 | osf3* | osf4* | osf5*) |
| 4264 | lt_cv_deplibs_check_method=pass_all |
| 4265 | ;; |
| 4266 | |
| 4267 | sco3.2v5*) |
| 4268 | lt_cv_deplibs_check_method=pass_all |
| 4269 | ;; |
| 4270 | |
| 4271 | solaris*) |
| 4272 | lt_cv_deplibs_check_method=pass_all |
| 4273 | ;; |
| 4274 | |
| 4275 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4276 | case $host_vendor in |
| 4277 | motorola) |
| 4278 | 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]' |
| 4279 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4280 | ;; |
| 4281 | ncr) |
| 4282 | lt_cv_deplibs_check_method=pass_all |
| 4283 | ;; |
| 4284 | sequent) |
| 4285 | lt_cv_file_magic_cmd='/bin/file' |
| 4286 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4287 | ;; |
| 4288 | sni) |
| 4289 | lt_cv_file_magic_cmd='/bin/file' |
| 4290 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4291 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4292 | ;; |
| 4293 | siemens) |
| 4294 | lt_cv_deplibs_check_method=pass_all |
| 4295 | ;; |
| 4296 | esac |
| 4297 | ;; |
| 4298 | |
| 4299 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 4300 | lt_cv_deplibs_check_method=pass_all |
| 4301 | ;; |
| 4302 | esac |
| 4303 | |
| 4304 | fi |
| 4305 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4306 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 4307 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4308 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 4309 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 4310 | |
| 4311 | |
| 4312 | |
| 4313 | |
| 4314 | # If no C compiler was specified, use CC. |
| 4315 | LTCC=${LTCC-"$CC"} |
| 4316 | |
| 4317 | # Allow CC to be a program name with arguments. |
| 4318 | compiler=$CC |
| 4319 | |
| 4320 | |
| 4321 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4322 | if test "${enable_libtool_lock+set}" = set; then |
| 4323 | enableval="$enable_libtool_lock" |
| 4324 | |
| 4325 | fi; |
| 4326 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 4327 | |
| 4328 | # Some flags need to be propagated to the compiler or linker for good |
| 4329 | # libtool support. |
| 4330 | case $host in |
| 4331 | ia64-*-hpux*) |
| 4332 | # Find out which ABI we are using. |
| 4333 | echo 'int i;' > conftest.$ac_ext |
| 4334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4335 | (eval $ac_compile) 2>&5 |
| 4336 | ac_status=$? |
| 4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4338 | (exit $ac_status); }; then |
| 4339 | case `/usr/bin/file conftest.$ac_objext` in |
| 4340 | *ELF-32*) |
| 4341 | HPUX_IA64_MODE="32" |
| 4342 | ;; |
| 4343 | *ELF-64*) |
| 4344 | HPUX_IA64_MODE="64" |
| 4345 | ;; |
| 4346 | esac |
| 4347 | fi |
| 4348 | rm -rf conftest* |
| 4349 | ;; |
| 4350 | *-*-irix6*) |
| 4351 | # Find out which ABI we are using. |
| 4352 | echo '#line 4352 "configure"' > conftest.$ac_ext |
| 4353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4354 | (eval $ac_compile) 2>&5 |
| 4355 | ac_status=$? |
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4357 | (exit $ac_status); }; then |
| 4358 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4359 | case `/usr/bin/file conftest.$ac_objext` in |
| 4360 | *32-bit*) |
| 4361 | LD="${LD-ld} -melf32bsmip" |
| 4362 | ;; |
| 4363 | *N32*) |
| 4364 | LD="${LD-ld} -melf32bmipn32" |
| 4365 | ;; |
| 4366 | *64-bit*) |
| 4367 | LD="${LD-ld} -melf64bmip" |
| 4368 | ;; |
| 4369 | esac |
| 4370 | else |
| 4371 | case `/usr/bin/file conftest.$ac_objext` in |
| 4372 | *32-bit*) |
| 4373 | LD="${LD-ld} -32" |
| 4374 | ;; |
| 4375 | *N32*) |
| 4376 | LD="${LD-ld} -n32" |
| 4377 | ;; |
| 4378 | *64-bit*) |
| 4379 | LD="${LD-ld} -64" |
| 4380 | ;; |
| 4381 | esac |
| 4382 | fi |
| 4383 | fi |
| 4384 | rm -rf conftest* |
| 4385 | ;; |
| 4386 | |
| 4387 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4388 | # Find out which ABI we are using. |
| 4389 | echo 'int i;' > conftest.$ac_ext |
| 4390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4391 | (eval $ac_compile) 2>&5 |
| 4392 | ac_status=$? |
| 4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4394 | (exit $ac_status); }; then |
| 4395 | case "`/usr/bin/file conftest.o`" in |
| 4396 | *32-bit*) |
| 4397 | case $host in |
| 4398 | x86_64-*linux*) |
| 4399 | LD="${LD-ld} -m elf_i386" |
| 4400 | ;; |
| 4401 | ppc64-*linux*|powerpc64-*linux*) |
| 4402 | LD="${LD-ld} -m elf32ppclinux" |
| 4403 | ;; |
| 4404 | s390x-*linux*) |
| 4405 | LD="${LD-ld} -m elf_s390" |
| 4406 | ;; |
| 4407 | sparc64-*linux*) |
| 4408 | LD="${LD-ld} -m elf32_sparc" |
| 4409 | ;; |
| 4410 | esac |
| 4411 | ;; |
| 4412 | *64-bit*) |
| 4413 | case $host in |
| 4414 | x86_64-*linux*) |
| 4415 | LD="${LD-ld} -m elf_x86_64" |
| 4416 | ;; |
| 4417 | ppc*-*linux*|powerpc*-*linux*) |
| 4418 | LD="${LD-ld} -m elf64ppc" |
| 4419 | ;; |
| 4420 | s390*-*linux*) |
| 4421 | LD="${LD-ld} -m elf64_s390" |
| 4422 | ;; |
| 4423 | sparc*-*linux*) |
| 4424 | LD="${LD-ld} -m elf64_sparc" |
| 4425 | ;; |
| 4426 | esac |
| 4427 | ;; |
| 4428 | esac |
| 4429 | fi |
| 4430 | rm -rf conftest* |
| 4431 | ;; |
| 4432 | |
| 4433 | *-*-sco3.2v5*) |
| 4434 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4435 | SAVE_CFLAGS="$CFLAGS" |
| 4436 | CFLAGS="$CFLAGS -belf" |
| 4437 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4438 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4439 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4441 | else |
| 4442 | ac_ext=c |
| 4443 | ac_cpp='$CPP $CPPFLAGS' |
| 4444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4447 | |
| 4448 | cat >conftest.$ac_ext <<_ACEOF |
| 4449 | /* confdefs.h. */ |
| 4450 | _ACEOF |
| 4451 | cat confdefs.h >>conftest.$ac_ext |
| 4452 | cat >>conftest.$ac_ext <<_ACEOF |
| 4453 | /* end confdefs.h. */ |
| 4454 | |
| 4455 | int |
| 4456 | main () |
| 4457 | { |
| 4458 | |
| 4459 | ; |
| 4460 | return 0; |
| 4461 | } |
| 4462 | _ACEOF |
| 4463 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4465 | (eval $ac_link) 2>conftest.er1 |
| 4466 | ac_status=$? |
| 4467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4468 | rm -f conftest.er1 |
| 4469 | cat conftest.err >&5 |
| 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4471 | (exit $ac_status); } && |
| 4472 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4474 | (eval $ac_try) 2>&5 |
| 4475 | ac_status=$? |
| 4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4477 | (exit $ac_status); }; } && |
| 4478 | { ac_try='test -s conftest$ac_exeext' |
| 4479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4480 | (eval $ac_try) 2>&5 |
| 4481 | ac_status=$? |
| 4482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4483 | (exit $ac_status); }; }; then |
| 4484 | lt_cv_cc_needs_belf=yes |
| 4485 | else |
| 4486 | echo "$as_me: failed program was:" >&5 |
| 4487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4488 | |
| 4489 | lt_cv_cc_needs_belf=no |
| 4490 | fi |
| 4491 | rm -f conftest.err conftest.$ac_objext \ |
| 4492 | conftest$ac_exeext conftest.$ac_ext |
| 4493 | ac_ext=c |
| 4494 | ac_cpp='$CPP $CPPFLAGS' |
| 4495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4498 | |
| 4499 | fi |
| 4500 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4501 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4502 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4503 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4504 | CFLAGS="$SAVE_CFLAGS" |
| 4505 | fi |
| 4506 | ;; |
| 4507 | |
| 4508 | esac |
| 4509 | |
| 4510 | need_locks="$enable_libtool_lock" |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4515 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4516 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4518 | else |
| 4519 | cat >conftest.$ac_ext <<_ACEOF |
| 4520 | /* confdefs.h. */ |
| 4521 | _ACEOF |
| 4522 | cat confdefs.h >>conftest.$ac_ext |
| 4523 | cat >>conftest.$ac_ext <<_ACEOF |
| 4524 | /* end confdefs.h. */ |
| 4525 | #include <stdlib.h> |
| 4526 | #include <stdarg.h> |
| 4527 | #include <string.h> |
| 4528 | #include <float.h> |
| 4529 | |
| 4530 | int |
| 4531 | main () |
| 4532 | { |
| 4533 | |
| 4534 | ; |
| 4535 | return 0; |
| 4536 | } |
| 4537 | _ACEOF |
| 4538 | rm -f conftest.$ac_objext |
| 4539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4540 | (eval $ac_compile) 2>conftest.er1 |
| 4541 | ac_status=$? |
| 4542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4543 | rm -f conftest.er1 |
| 4544 | cat conftest.err >&5 |
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); } && |
| 4547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4549 | (eval $ac_try) 2>&5 |
| 4550 | ac_status=$? |
| 4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4552 | (exit $ac_status); }; } && |
| 4553 | { ac_try='test -s conftest.$ac_objext' |
| 4554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4555 | (eval $ac_try) 2>&5 |
| 4556 | ac_status=$? |
| 4557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4558 | (exit $ac_status); }; }; then |
| 4559 | ac_cv_header_stdc=yes |
| 4560 | else |
| 4561 | echo "$as_me: failed program was:" >&5 |
| 4562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4563 | |
| 4564 | ac_cv_header_stdc=no |
| 4565 | fi |
| 4566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4567 | |
| 4568 | if test $ac_cv_header_stdc = yes; then |
| 4569 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4570 | cat >conftest.$ac_ext <<_ACEOF |
| 4571 | /* confdefs.h. */ |
| 4572 | _ACEOF |
| 4573 | cat confdefs.h >>conftest.$ac_ext |
| 4574 | cat >>conftest.$ac_ext <<_ACEOF |
| 4575 | /* end confdefs.h. */ |
| 4576 | #include <string.h> |
| 4577 | |
| 4578 | _ACEOF |
| 4579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4580 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4581 | : |
| 4582 | else |
| 4583 | ac_cv_header_stdc=no |
| 4584 | fi |
| 4585 | rm -f conftest* |
| 4586 | |
| 4587 | fi |
| 4588 | |
| 4589 | if test $ac_cv_header_stdc = yes; then |
| 4590 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4591 | cat >conftest.$ac_ext <<_ACEOF |
| 4592 | /* confdefs.h. */ |
| 4593 | _ACEOF |
| 4594 | cat confdefs.h >>conftest.$ac_ext |
| 4595 | cat >>conftest.$ac_ext <<_ACEOF |
| 4596 | /* end confdefs.h. */ |
| 4597 | #include <stdlib.h> |
| 4598 | |
| 4599 | _ACEOF |
| 4600 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4601 | $EGREP "free" >/dev/null 2>&1; then |
| 4602 | : |
| 4603 | else |
| 4604 | ac_cv_header_stdc=no |
| 4605 | fi |
| 4606 | rm -f conftest* |
| 4607 | |
| 4608 | fi |
| 4609 | |
| 4610 | if test $ac_cv_header_stdc = yes; then |
| 4611 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4612 | if test "$cross_compiling" = yes; then |
| 4613 | : |
| 4614 | else |
| 4615 | cat >conftest.$ac_ext <<_ACEOF |
| 4616 | /* confdefs.h. */ |
| 4617 | _ACEOF |
| 4618 | cat confdefs.h >>conftest.$ac_ext |
| 4619 | cat >>conftest.$ac_ext <<_ACEOF |
| 4620 | /* end confdefs.h. */ |
| 4621 | #include <ctype.h> |
| 4622 | #if ((' ' & 0x0FF) == 0x020) |
| 4623 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4624 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4625 | #else |
| 4626 | # define ISLOWER(c) \ |
| 4627 | (('a' <= (c) && (c) <= 'i') \ |
| 4628 | || ('j' <= (c) && (c) <= 'r') \ |
| 4629 | || ('s' <= (c) && (c) <= 'z')) |
| 4630 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4631 | #endif |
| 4632 | |
| 4633 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4634 | int |
| 4635 | main () |
| 4636 | { |
| 4637 | int i; |
| 4638 | for (i = 0; i < 256; i++) |
| 4639 | if (XOR (islower (i), ISLOWER (i)) |
| 4640 | || toupper (i) != TOUPPER (i)) |
| 4641 | exit(2); |
| 4642 | exit (0); |
| 4643 | } |
| 4644 | _ACEOF |
| 4645 | rm -f conftest$ac_exeext |
| 4646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4647 | (eval $ac_link) 2>&5 |
| 4648 | ac_status=$? |
| 4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4650 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4652 | (eval $ac_try) 2>&5 |
| 4653 | ac_status=$? |
| 4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4655 | (exit $ac_status); }; }; then |
| 4656 | : |
| 4657 | else |
| 4658 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4659 | echo "$as_me: failed program was:" >&5 |
| 4660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4661 | |
| 4662 | ( exit $ac_status ) |
| 4663 | ac_cv_header_stdc=no |
| 4664 | fi |
| 4665 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4666 | fi |
| 4667 | fi |
| 4668 | fi |
| 4669 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4670 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4671 | if test $ac_cv_header_stdc = yes; then |
| 4672 | |
| 4673 | cat >>confdefs.h <<\_ACEOF |
| 4674 | #define STDC_HEADERS 1 |
| 4675 | _ACEOF |
| 4676 | |
| 4677 | fi |
| 4678 | |
| 4679 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4680 | |
| 4681 | |
| 4682 | |
| 4683 | |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | |
| 4688 | |
| 4689 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4690 | inttypes.h stdint.h unistd.h |
| 4691 | do |
| 4692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4693 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4697 | else |
| 4698 | cat >conftest.$ac_ext <<_ACEOF |
| 4699 | /* confdefs.h. */ |
| 4700 | _ACEOF |
| 4701 | cat confdefs.h >>conftest.$ac_ext |
| 4702 | cat >>conftest.$ac_ext <<_ACEOF |
| 4703 | /* end confdefs.h. */ |
| 4704 | $ac_includes_default |
| 4705 | |
| 4706 | #include <$ac_header> |
| 4707 | _ACEOF |
| 4708 | rm -f conftest.$ac_objext |
| 4709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4710 | (eval $ac_compile) 2>conftest.er1 |
| 4711 | ac_status=$? |
| 4712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4713 | rm -f conftest.er1 |
| 4714 | cat conftest.err >&5 |
| 4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4716 | (exit $ac_status); } && |
| 4717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4719 | (eval $ac_try) 2>&5 |
| 4720 | ac_status=$? |
| 4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4722 | (exit $ac_status); }; } && |
| 4723 | { ac_try='test -s conftest.$ac_objext' |
| 4724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4725 | (eval $ac_try) 2>&5 |
| 4726 | ac_status=$? |
| 4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4728 | (exit $ac_status); }; }; then |
| 4729 | eval "$as_ac_Header=yes" |
| 4730 | else |
| 4731 | echo "$as_me: failed program was:" >&5 |
| 4732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4733 | |
| 4734 | eval "$as_ac_Header=no" |
| 4735 | fi |
| 4736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4737 | fi |
| 4738 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4739 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4741 | cat >>confdefs.h <<_ACEOF |
| 4742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4743 | _ACEOF |
| 4744 | |
| 4745 | fi |
| 4746 | |
| 4747 | done |
| 4748 | |
| 4749 | |
| 4750 | |
| 4751 | for ac_header in dlfcn.h |
| 4752 | do |
| 4753 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4754 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4755 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4757 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4759 | fi |
| 4760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4761 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4762 | else |
| 4763 | # Is the header compilable? |
| 4764 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4765 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4766 | cat >conftest.$ac_ext <<_ACEOF |
| 4767 | /* confdefs.h. */ |
| 4768 | _ACEOF |
| 4769 | cat confdefs.h >>conftest.$ac_ext |
| 4770 | cat >>conftest.$ac_ext <<_ACEOF |
| 4771 | /* end confdefs.h. */ |
| 4772 | $ac_includes_default |
| 4773 | #include <$ac_header> |
| 4774 | _ACEOF |
| 4775 | rm -f conftest.$ac_objext |
| 4776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4777 | (eval $ac_compile) 2>conftest.er1 |
| 4778 | ac_status=$? |
| 4779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4780 | rm -f conftest.er1 |
| 4781 | cat conftest.err >&5 |
| 4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4783 | (exit $ac_status); } && |
| 4784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4786 | (eval $ac_try) 2>&5 |
| 4787 | ac_status=$? |
| 4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4789 | (exit $ac_status); }; } && |
| 4790 | { ac_try='test -s conftest.$ac_objext' |
| 4791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4792 | (eval $ac_try) 2>&5 |
| 4793 | ac_status=$? |
| 4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4795 | (exit $ac_status); }; }; then |
| 4796 | ac_header_compiler=yes |
| 4797 | else |
| 4798 | echo "$as_me: failed program was:" >&5 |
| 4799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4800 | |
| 4801 | ac_header_compiler=no |
| 4802 | fi |
| 4803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4804 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4805 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4806 | |
| 4807 | # Is the header present? |
| 4808 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4809 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4810 | cat >conftest.$ac_ext <<_ACEOF |
| 4811 | /* confdefs.h. */ |
| 4812 | _ACEOF |
| 4813 | cat confdefs.h >>conftest.$ac_ext |
| 4814 | cat >>conftest.$ac_ext <<_ACEOF |
| 4815 | /* end confdefs.h. */ |
| 4816 | #include <$ac_header> |
| 4817 | _ACEOF |
| 4818 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4819 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4820 | ac_status=$? |
| 4821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4822 | rm -f conftest.er1 |
| 4823 | cat conftest.err >&5 |
| 4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4825 | (exit $ac_status); } >/dev/null; then |
| 4826 | if test -s conftest.err; then |
| 4827 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4828 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4829 | else |
| 4830 | ac_cpp_err= |
| 4831 | fi |
| 4832 | else |
| 4833 | ac_cpp_err=yes |
| 4834 | fi |
| 4835 | if test -z "$ac_cpp_err"; then |
| 4836 | ac_header_preproc=yes |
| 4837 | else |
| 4838 | echo "$as_me: failed program was:" >&5 |
| 4839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4840 | |
| 4841 | ac_header_preproc=no |
| 4842 | fi |
| 4843 | rm -f conftest.err conftest.$ac_ext |
| 4844 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4845 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4846 | |
| 4847 | # So? What about this header? |
| 4848 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4849 | yes:no: ) |
| 4850 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4851 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4852 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4853 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4854 | ac_header_preproc=yes |
| 4855 | ;; |
| 4856 | no:yes:* ) |
| 4857 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4858 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4859 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4860 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4861 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4862 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4863 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4864 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4865 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4866 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4867 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4868 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4869 | ( |
| 4870 | cat <<\_ASBOX |
| 4871 | ## ------------------------------------ ## |
| 4872 | ## Report this to opensource@google.com ## |
| 4873 | ## ------------------------------------ ## |
| 4874 | _ASBOX |
| 4875 | ) | |
| 4876 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4877 | ;; |
| 4878 | esac |
| 4879 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4883 | else |
| 4884 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4885 | fi |
| 4886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4887 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4888 | |
| 4889 | fi |
| 4890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4891 | cat >>confdefs.h <<_ACEOF |
| 4892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4893 | _ACEOF |
| 4894 | |
| 4895 | fi |
| 4896 | |
| 4897 | done |
| 4898 | |
| 4899 | ac_ext=cc |
| 4900 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4901 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4902 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4903 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4904 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4905 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4906 | if test -z "$CXXCPP"; then |
| 4907 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4909 | else |
| 4910 | # Double quotes because CXXCPP needs to be expanded |
| 4911 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4912 | do |
| 4913 | ac_preproc_ok=false |
| 4914 | for ac_cxx_preproc_warn_flag in '' yes |
| 4915 | do |
| 4916 | # Use a header file that comes with gcc, so configuring glibc |
| 4917 | # with a fresh cross-compiler works. |
| 4918 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4919 | # <limits.h> exists even on freestanding compilers. |
| 4920 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4921 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4922 | cat >conftest.$ac_ext <<_ACEOF |
| 4923 | /* confdefs.h. */ |
| 4924 | _ACEOF |
| 4925 | cat confdefs.h >>conftest.$ac_ext |
| 4926 | cat >>conftest.$ac_ext <<_ACEOF |
| 4927 | /* end confdefs.h. */ |
| 4928 | #ifdef __STDC__ |
| 4929 | # include <limits.h> |
| 4930 | #else |
| 4931 | # include <assert.h> |
| 4932 | #endif |
| 4933 | Syntax error |
| 4934 | _ACEOF |
| 4935 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4936 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4937 | ac_status=$? |
| 4938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4939 | rm -f conftest.er1 |
| 4940 | cat conftest.err >&5 |
| 4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4942 | (exit $ac_status); } >/dev/null; then |
| 4943 | if test -s conftest.err; then |
| 4944 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4945 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4946 | else |
| 4947 | ac_cpp_err= |
| 4948 | fi |
| 4949 | else |
| 4950 | ac_cpp_err=yes |
| 4951 | fi |
| 4952 | if test -z "$ac_cpp_err"; then |
| 4953 | : |
| 4954 | else |
| 4955 | echo "$as_me: failed program was:" >&5 |
| 4956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4957 | |
| 4958 | # Broken: fails on valid input. |
| 4959 | continue |
| 4960 | fi |
| 4961 | rm -f conftest.err conftest.$ac_ext |
| 4962 | |
| 4963 | # OK, works on sane cases. Now check whether non-existent headers |
| 4964 | # can be detected and how. |
| 4965 | cat >conftest.$ac_ext <<_ACEOF |
| 4966 | /* confdefs.h. */ |
| 4967 | _ACEOF |
| 4968 | cat confdefs.h >>conftest.$ac_ext |
| 4969 | cat >>conftest.$ac_ext <<_ACEOF |
| 4970 | /* end confdefs.h. */ |
| 4971 | #include <ac_nonexistent.h> |
| 4972 | _ACEOF |
| 4973 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4974 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4975 | ac_status=$? |
| 4976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4977 | rm -f conftest.er1 |
| 4978 | cat conftest.err >&5 |
| 4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4980 | (exit $ac_status); } >/dev/null; then |
| 4981 | if test -s conftest.err; then |
| 4982 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4983 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4984 | else |
| 4985 | ac_cpp_err= |
| 4986 | fi |
| 4987 | else |
| 4988 | ac_cpp_err=yes |
| 4989 | fi |
| 4990 | if test -z "$ac_cpp_err"; then |
| 4991 | # Broken: success on invalid input. |
| 4992 | continue |
| 4993 | else |
| 4994 | echo "$as_me: failed program was:" >&5 |
| 4995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4996 | |
| 4997 | # Passes both tests. |
| 4998 | ac_preproc_ok=: |
| 4999 | break |
| 5000 | fi |
| 5001 | rm -f conftest.err conftest.$ac_ext |
| 5002 | |
| 5003 | done |
| 5004 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5005 | rm -f conftest.err conftest.$ac_ext |
| 5006 | if $ac_preproc_ok; then |
| 5007 | break |
| 5008 | fi |
| 5009 | |
| 5010 | done |
| 5011 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5012 | |
| 5013 | fi |
| 5014 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5015 | else |
| 5016 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5017 | fi |
| 5018 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5019 | echo "${ECHO_T}$CXXCPP" >&6 |
| 5020 | ac_preproc_ok=false |
| 5021 | for ac_cxx_preproc_warn_flag in '' yes |
| 5022 | do |
| 5023 | # Use a header file that comes with gcc, so configuring glibc |
| 5024 | # with a fresh cross-compiler works. |
| 5025 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5026 | # <limits.h> exists even on freestanding compilers. |
| 5027 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5028 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5029 | cat >conftest.$ac_ext <<_ACEOF |
| 5030 | /* confdefs.h. */ |
| 5031 | _ACEOF |
| 5032 | cat confdefs.h >>conftest.$ac_ext |
| 5033 | cat >>conftest.$ac_ext <<_ACEOF |
| 5034 | /* end confdefs.h. */ |
| 5035 | #ifdef __STDC__ |
| 5036 | # include <limits.h> |
| 5037 | #else |
| 5038 | # include <assert.h> |
| 5039 | #endif |
| 5040 | Syntax error |
| 5041 | _ACEOF |
| 5042 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5043 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5044 | ac_status=$? |
| 5045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5046 | rm -f conftest.er1 |
| 5047 | cat conftest.err >&5 |
| 5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5049 | (exit $ac_status); } >/dev/null; then |
| 5050 | if test -s conftest.err; then |
| 5051 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5052 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5053 | else |
| 5054 | ac_cpp_err= |
| 5055 | fi |
| 5056 | else |
| 5057 | ac_cpp_err=yes |
| 5058 | fi |
| 5059 | if test -z "$ac_cpp_err"; then |
| 5060 | : |
| 5061 | else |
| 5062 | echo "$as_me: failed program was:" >&5 |
| 5063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5064 | |
| 5065 | # Broken: fails on valid input. |
| 5066 | continue |
| 5067 | fi |
| 5068 | rm -f conftest.err conftest.$ac_ext |
| 5069 | |
| 5070 | # OK, works on sane cases. Now check whether non-existent headers |
| 5071 | # can be detected and how. |
| 5072 | cat >conftest.$ac_ext <<_ACEOF |
| 5073 | /* confdefs.h. */ |
| 5074 | _ACEOF |
| 5075 | cat confdefs.h >>conftest.$ac_ext |
| 5076 | cat >>conftest.$ac_ext <<_ACEOF |
| 5077 | /* end confdefs.h. */ |
| 5078 | #include <ac_nonexistent.h> |
| 5079 | _ACEOF |
| 5080 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5081 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5082 | ac_status=$? |
| 5083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5084 | rm -f conftest.er1 |
| 5085 | cat conftest.err >&5 |
| 5086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5087 | (exit $ac_status); } >/dev/null; then |
| 5088 | if test -s conftest.err; then |
| 5089 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5090 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5091 | else |
| 5092 | ac_cpp_err= |
| 5093 | fi |
| 5094 | else |
| 5095 | ac_cpp_err=yes |
| 5096 | fi |
| 5097 | if test -z "$ac_cpp_err"; then |
| 5098 | # Broken: success on invalid input. |
| 5099 | continue |
| 5100 | else |
| 5101 | echo "$as_me: failed program was:" >&5 |
| 5102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5103 | |
| 5104 | # Passes both tests. |
| 5105 | ac_preproc_ok=: |
| 5106 | break |
| 5107 | fi |
| 5108 | rm -f conftest.err conftest.$ac_ext |
| 5109 | |
| 5110 | done |
| 5111 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5112 | rm -f conftest.err conftest.$ac_ext |
| 5113 | if $ac_preproc_ok; then |
| 5114 | : |
| 5115 | else |
| 5116 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5117 | See \`config.log' for more details." >&5 |
| 5118 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5119 | See \`config.log' for more details." >&2;} |
| 5120 | { (exit 1); exit 1; }; } |
| 5121 | fi |
| 5122 | |
| 5123 | ac_ext=cc |
| 5124 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5125 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5126 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5127 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5128 | |
| 5129 | |
| 5130 | ac_ext=f |
| 5131 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 5132 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5133 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 5134 | if test -n "$ac_tool_prefix"; then |
| 5135 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 5136 | do |
| 5137 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5138 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5139 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5141 | if test "${ac_cv_prog_F77+set}" = set; then |
| 5142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5143 | else |
| 5144 | if test -n "$F77"; then |
| 5145 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 5146 | else |
| 5147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5148 | for as_dir in $PATH |
| 5149 | do |
| 5150 | IFS=$as_save_IFS |
| 5151 | test -z "$as_dir" && as_dir=. |
| 5152 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5153 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5154 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 5155 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5156 | break 2 |
| 5157 | fi |
| 5158 | done |
| 5159 | done |
| 5160 | |
| 5161 | fi |
| 5162 | fi |
| 5163 | F77=$ac_cv_prog_F77 |
| 5164 | if test -n "$F77"; then |
| 5165 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 5166 | echo "${ECHO_T}$F77" >&6 |
| 5167 | else |
| 5168 | echo "$as_me:$LINENO: result: no" >&5 |
| 5169 | echo "${ECHO_T}no" >&6 |
| 5170 | fi |
| 5171 | |
| 5172 | test -n "$F77" && break |
| 5173 | done |
| 5174 | fi |
| 5175 | if test -z "$F77"; then |
| 5176 | ac_ct_F77=$F77 |
| 5177 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 5178 | do |
| 5179 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5180 | set dummy $ac_prog; ac_word=$2 |
| 5181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5183 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5185 | else |
| 5186 | if test -n "$ac_ct_F77"; then |
| 5187 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5188 | else |
| 5189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5190 | for as_dir in $PATH |
| 5191 | do |
| 5192 | IFS=$as_save_IFS |
| 5193 | test -z "$as_dir" && as_dir=. |
| 5194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5195 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5196 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5198 | break 2 |
| 5199 | fi |
| 5200 | done |
| 5201 | done |
| 5202 | |
| 5203 | fi |
| 5204 | fi |
| 5205 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5206 | if test -n "$ac_ct_F77"; then |
| 5207 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5208 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 5209 | else |
| 5210 | echo "$as_me:$LINENO: result: no" >&5 |
| 5211 | echo "${ECHO_T}no" >&6 |
| 5212 | fi |
| 5213 | |
| 5214 | test -n "$ac_ct_F77" && break |
| 5215 | done |
| 5216 | |
| 5217 | F77=$ac_ct_F77 |
| 5218 | fi |
| 5219 | |
| 5220 | |
| 5221 | # Provide some information about the compiler. |
| 5222 | echo "$as_me:5222:" \ |
| 5223 | "checking for Fortran 77 compiler version" >&5 |
| 5224 | ac_compiler=`set X $ac_compile; echo $2` |
| 5225 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 5226 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 5227 | ac_status=$? |
| 5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5229 | (exit $ac_status); } |
| 5230 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 5231 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 5232 | ac_status=$? |
| 5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5234 | (exit $ac_status); } |
| 5235 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 5236 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 5237 | ac_status=$? |
| 5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5239 | (exit $ac_status); } |
| 5240 | rm -f a.out |
| 5241 | |
| 5242 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 5243 | # input file. (Note that this only needs to work for GNU compilers.) |
| 5244 | ac_save_ext=$ac_ext |
| 5245 | ac_ext=F |
| 5246 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 5247 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 5248 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 5249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5250 | else |
| 5251 | cat >conftest.$ac_ext <<_ACEOF |
| 5252 | program main |
| 5253 | #ifndef __GNUC__ |
| 5254 | choke me |
| 5255 | #endif |
| 5256 | |
| 5257 | end |
| 5258 | _ACEOF |
| 5259 | rm -f conftest.$ac_objext |
| 5260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5261 | (eval $ac_compile) 2>conftest.er1 |
| 5262 | ac_status=$? |
| 5263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5264 | rm -f conftest.er1 |
| 5265 | cat conftest.err >&5 |
| 5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5267 | (exit $ac_status); } && |
| 5268 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 5269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5270 | (eval $ac_try) 2>&5 |
| 5271 | ac_status=$? |
| 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5273 | (exit $ac_status); }; } && |
| 5274 | { ac_try='test -s conftest.$ac_objext' |
| 5275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5276 | (eval $ac_try) 2>&5 |
| 5277 | ac_status=$? |
| 5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5279 | (exit $ac_status); }; }; then |
| 5280 | ac_compiler_gnu=yes |
| 5281 | else |
| 5282 | echo "$as_me: failed program was:" >&5 |
| 5283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5284 | |
| 5285 | ac_compiler_gnu=no |
| 5286 | fi |
| 5287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5288 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 5289 | |
| 5290 | fi |
| 5291 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 5292 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 5293 | ac_ext=$ac_save_ext |
| 5294 | ac_test_FFLAGS=${FFLAGS+set} |
| 5295 | ac_save_FFLAGS=$FFLAGS |
| 5296 | FFLAGS= |
| 5297 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 5298 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 5299 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 5300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5301 | else |
| 5302 | FFLAGS=-g |
| 5303 | cat >conftest.$ac_ext <<_ACEOF |
| 5304 | program main |
| 5305 | |
| 5306 | end |
| 5307 | _ACEOF |
| 5308 | rm -f conftest.$ac_objext |
| 5309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5310 | (eval $ac_compile) 2>conftest.er1 |
| 5311 | ac_status=$? |
| 5312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5313 | rm -f conftest.er1 |
| 5314 | cat conftest.err >&5 |
| 5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5316 | (exit $ac_status); } && |
| 5317 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 5318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5319 | (eval $ac_try) 2>&5 |
| 5320 | ac_status=$? |
| 5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5322 | (exit $ac_status); }; } && |
| 5323 | { ac_try='test -s conftest.$ac_objext' |
| 5324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5325 | (eval $ac_try) 2>&5 |
| 5326 | ac_status=$? |
| 5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5328 | (exit $ac_status); }; }; then |
| 5329 | ac_cv_prog_f77_g=yes |
| 5330 | else |
| 5331 | echo "$as_me: failed program was:" >&5 |
| 5332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5333 | |
| 5334 | ac_cv_prog_f77_g=no |
| 5335 | fi |
| 5336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5337 | |
| 5338 | fi |
| 5339 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 5340 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 5341 | if test "$ac_test_FFLAGS" = set; then |
| 5342 | FFLAGS=$ac_save_FFLAGS |
| 5343 | elif test $ac_cv_prog_f77_g = yes; then |
| 5344 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 5345 | FFLAGS="-g -O2" |
| 5346 | else |
| 5347 | FFLAGS="-g" |
| 5348 | fi |
| 5349 | else |
| 5350 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 5351 | FFLAGS="-O2" |
| 5352 | else |
| 5353 | FFLAGS= |
| 5354 | fi |
| 5355 | fi |
| 5356 | |
| 5357 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 5358 | ac_ext=c |
| 5359 | ac_cpp='$CPP $CPPFLAGS' |
| 5360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5363 | |
| 5364 | |
| 5365 | |
| 5366 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 5367 | |
| 5368 | # find the maximum length of command line arguments |
| 5369 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 5370 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 5371 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 5372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5373 | else |
| 5374 | i=0 |
| 5375 | teststring="ABCD" |
| 5376 | |
| 5377 | case $build_os in |
| 5378 | msdosdjgpp*) |
| 5379 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5380 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5381 | # during glob expansion). Even if it were fixed, the result of this |
| 5382 | # check would be larger than it should be. |
| 5383 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5384 | ;; |
| 5385 | |
| 5386 | gnu*) |
| 5387 | # Under GNU Hurd, this test is not required because there is |
| 5388 | # no limit to the length of command line arguments. |
| 5389 | # Libtool will interpret -1 as no limit whatsoever |
| 5390 | lt_cv_sys_max_cmd_len=-1; |
| 5391 | ;; |
| 5392 | |
| 5393 | cygwin* | mingw*) |
| 5394 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5395 | # about 5 minutes as the teststring grows exponentially. |
| 5396 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5397 | # you end up with a "frozen" computer, even though with patience |
| 5398 | # the test eventually succeeds (with a max line length of 256k). |
| 5399 | # Instead, let's just punt: use the minimum linelength reported by |
| 5400 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5401 | lt_cv_sys_max_cmd_len=8192; |
| 5402 | ;; |
| 5403 | |
| 5404 | amigaos*) |
| 5405 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5406 | # So we just punt and use a minimum line length of 8192. |
| 5407 | lt_cv_sys_max_cmd_len=8192; |
| 5408 | ;; |
| 5409 | |
| 5410 | *) |
| 5411 | # If test is not a shell built-in, we'll probably end up computing a |
| 5412 | # maximum length that is only half of the actual maximum length, but |
| 5413 | # we can't tell. |
| 5414 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 5415 | = "XX$teststring") >/dev/null 2>&1 && |
| 5416 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 5417 | lt_cv_sys_max_cmd_len=$new_result && |
| 5418 | test $i != 17 # 1/2 MB should be enough |
| 5419 | do |
| 5420 | i=`expr $i + 1` |
| 5421 | teststring=$teststring$teststring |
| 5422 | done |
| 5423 | teststring= |
| 5424 | # Add a significant safety factor because C++ compilers can tack on massive |
| 5425 | # amounts of additional arguments before passing them to the linker. |
| 5426 | # It appears as though 1/2 is a usable value. |
| 5427 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5428 | ;; |
| 5429 | esac |
| 5430 | |
| 5431 | fi |
| 5432 | |
| 5433 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5434 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5435 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 5436 | else |
| 5437 | echo "$as_me:$LINENO: result: none" >&5 |
| 5438 | echo "${ECHO_T}none" >&6 |
| 5439 | fi |
| 5440 | |
| 5441 | |
| 5442 | |
| 5443 | |
| 5444 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5445 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5446 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 5447 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5449 | else |
| 5450 | |
| 5451 | # These are sane defaults that work on at least a few old systems. |
| 5452 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5453 | |
| 5454 | # Character class describing NM global symbol codes. |
| 5455 | symcode='[BCDEGRST]' |
| 5456 | |
| 5457 | # Regexp to match symbols that can be accessed directly from C. |
| 5458 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5459 | |
| 5460 | # Transform the above into a raw symbol and a C symbol. |
| 5461 | symxfrm='\1 \2\3 \3' |
| 5462 | |
| 5463 | # Transform an extracted symbol line into a proper C declaration |
| 5464 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 5465 | |
| 5466 | # Transform an extracted symbol line into symbol name and symbol address |
| 5467 | 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'" |
| 5468 | |
| 5469 | # Define system-specific variables. |
| 5470 | case $host_os in |
| 5471 | aix*) |
| 5472 | symcode='[BCDT]' |
| 5473 | ;; |
| 5474 | cygwin* | mingw* | pw32*) |
| 5475 | symcode='[ABCDGISTW]' |
| 5476 | ;; |
| 5477 | hpux*) # Its linker distinguishes data from code symbols |
| 5478 | if test "$host_cpu" = ia64; then |
| 5479 | symcode='[ABCDEGRST]' |
| 5480 | fi |
| 5481 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5482 | 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'" |
| 5483 | ;; |
| 5484 | irix* | nonstopux*) |
| 5485 | symcode='[BCDEGRST]' |
| 5486 | ;; |
| 5487 | osf*) |
| 5488 | symcode='[BCDEGQRST]' |
| 5489 | ;; |
| 5490 | solaris* | sysv5*) |
| 5491 | symcode='[BDRT]' |
| 5492 | ;; |
| 5493 | sysv4) |
| 5494 | symcode='[DFNSTU]' |
| 5495 | ;; |
| 5496 | esac |
| 5497 | |
| 5498 | # Handle CRLF in mingw tool chain |
| 5499 | opt_cr= |
| 5500 | case $build_os in |
| 5501 | mingw*) |
| 5502 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5503 | ;; |
| 5504 | esac |
| 5505 | |
| 5506 | # If we're using GNU nm, then use its standard symbol codes. |
| 5507 | case `$NM -V 2>&1` in |
| 5508 | *GNU* | *'with BFD'*) |
| 5509 | symcode='[ABCDGIRSTW]' ;; |
| 5510 | esac |
| 5511 | |
| 5512 | # Try without a prefix undercore, then with it. |
| 5513 | for ac_symprfx in "" "_"; do |
| 5514 | |
| 5515 | # Write the raw and C identifiers. |
| 5516 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 5517 | |
| 5518 | # Check to see that the pipe works correctly. |
| 5519 | pipe_works=no |
| 5520 | |
| 5521 | rm -f conftest* |
| 5522 | cat > conftest.$ac_ext <<EOF |
| 5523 | #ifdef __cplusplus |
| 5524 | extern "C" { |
| 5525 | #endif |
| 5526 | char nm_test_var; |
| 5527 | void nm_test_func(){} |
| 5528 | #ifdef __cplusplus |
| 5529 | } |
| 5530 | #endif |
| 5531 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5532 | EOF |
| 5533 | |
| 5534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5535 | (eval $ac_compile) 2>&5 |
| 5536 | ac_status=$? |
| 5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5538 | (exit $ac_status); }; then |
| 5539 | # Now try to grab the symbols. |
| 5540 | nlist=conftest.nm |
| 5541 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5542 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 5543 | ac_status=$? |
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5545 | (exit $ac_status); } && test -s "$nlist"; then |
| 5546 | # Try sorting and uniquifying the output. |
| 5547 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5548 | mv -f "$nlist"T "$nlist" |
| 5549 | else |
| 5550 | rm -f "$nlist"T |
| 5551 | fi |
| 5552 | |
| 5553 | # Make sure that we snagged all the symbols we need. |
| 5554 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 5555 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 5556 | cat <<EOF > conftest.$ac_ext |
| 5557 | #ifdef __cplusplus |
| 5558 | extern "C" { |
| 5559 | #endif |
| 5560 | |
| 5561 | EOF |
| 5562 | # Now generate the symbol file. |
| 5563 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 5564 | |
| 5565 | cat <<EOF >> conftest.$ac_ext |
| 5566 | #if defined (__STDC__) && __STDC__ |
| 5567 | # define lt_ptr_t void * |
| 5568 | #else |
| 5569 | # define lt_ptr_t char * |
| 5570 | # define const |
| 5571 | #endif |
| 5572 | |
| 5573 | /* The mapping between symbol names and symbols. */ |
| 5574 | const struct { |
| 5575 | const char *name; |
| 5576 | lt_ptr_t address; |
| 5577 | } |
| 5578 | lt_preloaded_symbols[] = |
| 5579 | { |
| 5580 | EOF |
| 5581 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 5582 | cat <<\EOF >> conftest.$ac_ext |
| 5583 | {0, (lt_ptr_t) 0} |
| 5584 | }; |
| 5585 | |
| 5586 | #ifdef __cplusplus |
| 5587 | } |
| 5588 | #endif |
| 5589 | EOF |
| 5590 | # Now try linking the two files. |
| 5591 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5592 | lt_save_LIBS="$LIBS" |
| 5593 | lt_save_CFLAGS="$CFLAGS" |
| 5594 | LIBS="conftstm.$ac_objext" |
| 5595 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5597 | (eval $ac_link) 2>&5 |
| 5598 | ac_status=$? |
| 5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5600 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5601 | pipe_works=yes |
| 5602 | fi |
| 5603 | LIBS="$lt_save_LIBS" |
| 5604 | CFLAGS="$lt_save_CFLAGS" |
| 5605 | else |
| 5606 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5607 | fi |
| 5608 | else |
| 5609 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5610 | fi |
| 5611 | else |
| 5612 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5613 | fi |
| 5614 | else |
| 5615 | echo "$progname: failed program was:" >&5 |
| 5616 | cat conftest.$ac_ext >&5 |
| 5617 | fi |
| 5618 | rm -f conftest* conftst* |
| 5619 | |
| 5620 | # Do not use the global_symbol_pipe unless it works. |
| 5621 | if test "$pipe_works" = yes; then |
| 5622 | break |
| 5623 | else |
| 5624 | lt_cv_sys_global_symbol_pipe= |
| 5625 | fi |
| 5626 | done |
| 5627 | |
| 5628 | fi |
| 5629 | |
| 5630 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5631 | lt_cv_sys_global_symbol_to_cdecl= |
| 5632 | fi |
| 5633 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5634 | echo "$as_me:$LINENO: result: failed" >&5 |
| 5635 | echo "${ECHO_T}failed" >&6 |
| 5636 | else |
| 5637 | echo "$as_me:$LINENO: result: ok" >&5 |
| 5638 | echo "${ECHO_T}ok" >&6 |
| 5639 | fi |
| 5640 | |
| 5641 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5642 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 5643 | if test "${lt_cv_objdir+set}" = set; then |
| 5644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5645 | else |
| 5646 | rm -f .libs 2>/dev/null |
| 5647 | mkdir .libs 2>/dev/null |
| 5648 | if test -d .libs; then |
| 5649 | lt_cv_objdir=.libs |
| 5650 | else |
| 5651 | # MS-DOS does not allow filenames that begin with a dot. |
| 5652 | lt_cv_objdir=_libs |
| 5653 | fi |
| 5654 | rmdir .libs 2>/dev/null |
| 5655 | fi |
| 5656 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5657 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 5658 | objdir=$lt_cv_objdir |
| 5659 | |
| 5660 | |
| 5661 | |
| 5662 | |
| 5663 | |
| 5664 | case $host_os in |
| 5665 | aix3*) |
| 5666 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5667 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5668 | # vanish in a puff of smoke. |
| 5669 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5670 | COLLECT_NAMES= |
| 5671 | export COLLECT_NAMES |
| 5672 | fi |
| 5673 | ;; |
| 5674 | esac |
| 5675 | |
| 5676 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5677 | # metacharacters that are still active within double-quoted strings. |
| 5678 | Xsed='sed -e s/^X//' |
| 5679 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5680 | |
| 5681 | # Same as above, but do not quote variable references. |
| 5682 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5683 | |
| 5684 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5685 | # double_quote_subst'ed string. |
| 5686 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5687 | |
| 5688 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5689 | no_glob_subst='s/\*/\\\*/g' |
| 5690 | |
| 5691 | # Constants: |
| 5692 | rm="rm -f" |
| 5693 | |
| 5694 | # Global variables: |
| 5695 | default_ofile=libtool |
| 5696 | can_build_shared=yes |
| 5697 | |
| 5698 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5699 | # which needs '.lib'). |
| 5700 | libext=a |
| 5701 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5702 | ofile="$default_ofile" |
| 5703 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5704 | |
| 5705 | if test -n "$ac_tool_prefix"; then |
| 5706 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5707 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5710 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5712 | else |
| 5713 | if test -n "$AR"; then |
| 5714 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5715 | else |
| 5716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5717 | for as_dir in $PATH |
| 5718 | do |
| 5719 | IFS=$as_save_IFS |
| 5720 | test -z "$as_dir" && as_dir=. |
| 5721 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5723 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5725 | break 2 |
| 5726 | fi |
| 5727 | done |
| 5728 | done |
| 5729 | |
| 5730 | fi |
| 5731 | fi |
| 5732 | AR=$ac_cv_prog_AR |
| 5733 | if test -n "$AR"; then |
| 5734 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5735 | echo "${ECHO_T}$AR" >&6 |
| 5736 | else |
| 5737 | echo "$as_me:$LINENO: result: no" >&5 |
| 5738 | echo "${ECHO_T}no" >&6 |
| 5739 | fi |
| 5740 | |
| 5741 | fi |
| 5742 | if test -z "$ac_cv_prog_AR"; then |
| 5743 | ac_ct_AR=$AR |
| 5744 | # Extract the first word of "ar", so it can be a program name with args. |
| 5745 | set dummy ar; ac_word=$2 |
| 5746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5748 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5750 | else |
| 5751 | if test -n "$ac_ct_AR"; then |
| 5752 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5753 | else |
| 5754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5755 | for as_dir in $PATH |
| 5756 | do |
| 5757 | IFS=$as_save_IFS |
| 5758 | test -z "$as_dir" && as_dir=. |
| 5759 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5761 | ac_cv_prog_ac_ct_AR="ar" |
| 5762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5763 | break 2 |
| 5764 | fi |
| 5765 | done |
| 5766 | done |
| 5767 | |
| 5768 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5769 | fi |
| 5770 | fi |
| 5771 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5772 | if test -n "$ac_ct_AR"; then |
| 5773 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5774 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5775 | else |
| 5776 | echo "$as_me:$LINENO: result: no" >&5 |
| 5777 | echo "${ECHO_T}no" >&6 |
| 5778 | fi |
| 5779 | |
| 5780 | AR=$ac_ct_AR |
| 5781 | else |
| 5782 | AR="$ac_cv_prog_AR" |
| 5783 | fi |
| 5784 | |
| 5785 | if test -n "$ac_tool_prefix"; then |
| 5786 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5787 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5790 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5792 | else |
| 5793 | if test -n "$RANLIB"; then |
| 5794 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5795 | else |
| 5796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5797 | for as_dir in $PATH |
| 5798 | do |
| 5799 | IFS=$as_save_IFS |
| 5800 | test -z "$as_dir" && as_dir=. |
| 5801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5803 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5805 | break 2 |
| 5806 | fi |
| 5807 | done |
| 5808 | done |
| 5809 | |
| 5810 | fi |
| 5811 | fi |
| 5812 | RANLIB=$ac_cv_prog_RANLIB |
| 5813 | if test -n "$RANLIB"; then |
| 5814 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5815 | echo "${ECHO_T}$RANLIB" >&6 |
| 5816 | else |
| 5817 | echo "$as_me:$LINENO: result: no" >&5 |
| 5818 | echo "${ECHO_T}no" >&6 |
| 5819 | fi |
| 5820 | |
| 5821 | fi |
| 5822 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5823 | ac_ct_RANLIB=$RANLIB |
| 5824 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5825 | set dummy ranlib; ac_word=$2 |
| 5826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5828 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5830 | else |
| 5831 | if test -n "$ac_ct_RANLIB"; then |
| 5832 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5833 | else |
| 5834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5835 | for as_dir in $PATH |
| 5836 | do |
| 5837 | IFS=$as_save_IFS |
| 5838 | test -z "$as_dir" && as_dir=. |
| 5839 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5841 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5843 | break 2 |
| 5844 | fi |
| 5845 | done |
| 5846 | done |
| 5847 | |
| 5848 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5849 | fi |
| 5850 | fi |
| 5851 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5852 | if test -n "$ac_ct_RANLIB"; then |
| 5853 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5854 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5855 | else |
| 5856 | echo "$as_me:$LINENO: result: no" >&5 |
| 5857 | echo "${ECHO_T}no" >&6 |
| 5858 | fi |
| 5859 | |
| 5860 | RANLIB=$ac_ct_RANLIB |
| 5861 | else |
| 5862 | RANLIB="$ac_cv_prog_RANLIB" |
| 5863 | fi |
| 5864 | |
| 5865 | if test -n "$ac_tool_prefix"; then |
| 5866 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5867 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5870 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5872 | else |
| 5873 | if test -n "$STRIP"; then |
| 5874 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5875 | else |
| 5876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5877 | for as_dir in $PATH |
| 5878 | do |
| 5879 | IFS=$as_save_IFS |
| 5880 | test -z "$as_dir" && as_dir=. |
| 5881 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5883 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5885 | break 2 |
| 5886 | fi |
| 5887 | done |
| 5888 | done |
| 5889 | |
| 5890 | fi |
| 5891 | fi |
| 5892 | STRIP=$ac_cv_prog_STRIP |
| 5893 | if test -n "$STRIP"; then |
| 5894 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5895 | echo "${ECHO_T}$STRIP" >&6 |
| 5896 | else |
| 5897 | echo "$as_me:$LINENO: result: no" >&5 |
| 5898 | echo "${ECHO_T}no" >&6 |
| 5899 | fi |
| 5900 | |
| 5901 | fi |
| 5902 | if test -z "$ac_cv_prog_STRIP"; then |
| 5903 | ac_ct_STRIP=$STRIP |
| 5904 | # Extract the first word of "strip", so it can be a program name with args. |
| 5905 | set dummy strip; ac_word=$2 |
| 5906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5908 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5910 | else |
| 5911 | if test -n "$ac_ct_STRIP"; then |
| 5912 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5913 | else |
| 5914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5915 | for as_dir in $PATH |
| 5916 | do |
| 5917 | IFS=$as_save_IFS |
| 5918 | test -z "$as_dir" && as_dir=. |
| 5919 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5921 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5923 | break 2 |
| 5924 | fi |
| 5925 | done |
| 5926 | done |
| 5927 | |
| 5928 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5929 | fi |
| 5930 | fi |
| 5931 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5932 | if test -n "$ac_ct_STRIP"; then |
| 5933 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5934 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5935 | else |
| 5936 | echo "$as_me:$LINENO: result: no" >&5 |
| 5937 | echo "${ECHO_T}no" >&6 |
| 5938 | fi |
| 5939 | |
| 5940 | STRIP=$ac_ct_STRIP |
| 5941 | else |
| 5942 | STRIP="$ac_cv_prog_STRIP" |
| 5943 | fi |
| 5944 | |
| 5945 | |
| 5946 | old_CC="$CC" |
| 5947 | old_CFLAGS="$CFLAGS" |
| 5948 | |
| 5949 | # Set sane defaults for various variables |
| 5950 | test -z "$AR" && AR=ar |
| 5951 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5952 | test -z "$AS" && AS=as |
| 5953 | test -z "$CC" && CC=cc |
| 5954 | test -z "$LTCC" && LTCC=$CC |
| 5955 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5956 | test -z "$LD" && LD=ld |
| 5957 | test -z "$LN_S" && LN_S="ln -s" |
| 5958 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5959 | test -z "$NM" && NM=nm |
| 5960 | test -z "$SED" && SED=sed |
| 5961 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5962 | test -z "$RANLIB" && RANLIB=: |
| 5963 | test -z "$STRIP" && STRIP=: |
| 5964 | test -z "$ac_objext" && ac_objext=o |
| 5965 | |
| 5966 | # Determine commands to create old-style static archives. |
| 5967 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5968 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5969 | old_postuninstall_cmds= |
| 5970 | |
| 5971 | if test -n "$RANLIB"; then |
| 5972 | case $host_os in |
| 5973 | openbsd*) |
| 5974 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5975 | ;; |
| 5976 | *) |
| 5977 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5978 | ;; |
| 5979 | esac |
| 5980 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5981 | fi |
| 5982 | |
| 5983 | # Only perform the check for file, if the check method requires it |
| 5984 | case $deplibs_check_method in |
| 5985 | file_magic*) |
| 5986 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5987 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5988 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5989 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5991 | else |
| 5992 | case $MAGIC_CMD in |
| 5993 | [\\/*] | ?:[\\/]*) |
| 5994 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5995 | ;; |
| 5996 | *) |
| 5997 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5998 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5999 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6000 | for ac_dir in $ac_dummy; do |
| 6001 | IFS="$lt_save_ifs" |
| 6002 | test -z "$ac_dir" && ac_dir=. |
| 6003 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6004 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6005 | if test -n "$file_magic_test_file"; then |
| 6006 | case $deplibs_check_method in |
| 6007 | "file_magic "*) |
| 6008 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 6009 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6010 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6011 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6012 | : |
| 6013 | else |
| 6014 | cat <<EOF 1>&2 |
| 6015 | |
| 6016 | *** Warning: the command libtool uses to detect shared libraries, |
| 6017 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6018 | *** The result is that libtool may fail to recognize shared libraries |
| 6019 | *** as such. This will affect the creation of libtool libraries that |
| 6020 | *** depend on shared libraries, but programs linked with such libtool |
| 6021 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6022 | *** may want to report the problem to your system manager and/or to |
| 6023 | *** bug-libtool@gnu.org |
| 6024 | |
| 6025 | EOF |
| 6026 | fi ;; |
| 6027 | esac |
| 6028 | fi |
| 6029 | break |
| 6030 | fi |
| 6031 | done |
| 6032 | IFS="$lt_save_ifs" |
| 6033 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6034 | ;; |
| 6035 | esac |
| 6036 | fi |
| 6037 | |
| 6038 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6039 | if test -n "$MAGIC_CMD"; then |
| 6040 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6041 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6042 | else |
| 6043 | echo "$as_me:$LINENO: result: no" >&5 |
| 6044 | echo "${ECHO_T}no" >&6 |
| 6045 | fi |
| 6046 | |
| 6047 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6048 | if test -n "$ac_tool_prefix"; then |
| 6049 | echo "$as_me:$LINENO: checking for file" >&5 |
| 6050 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 6051 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6053 | else |
| 6054 | case $MAGIC_CMD in |
| 6055 | [\\/*] | ?:[\\/]*) |
| 6056 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6057 | ;; |
| 6058 | *) |
| 6059 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6060 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6061 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6062 | for ac_dir in $ac_dummy; do |
| 6063 | IFS="$lt_save_ifs" |
| 6064 | test -z "$ac_dir" && ac_dir=. |
| 6065 | if test -f $ac_dir/file; then |
| 6066 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6067 | if test -n "$file_magic_test_file"; then |
| 6068 | case $deplibs_check_method in |
| 6069 | "file_magic "*) |
| 6070 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 6071 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6072 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6073 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6074 | : |
| 6075 | else |
| 6076 | cat <<EOF 1>&2 |
| 6077 | |
| 6078 | *** Warning: the command libtool uses to detect shared libraries, |
| 6079 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6080 | *** The result is that libtool may fail to recognize shared libraries |
| 6081 | *** as such. This will affect the creation of libtool libraries that |
| 6082 | *** depend on shared libraries, but programs linked with such libtool |
| 6083 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6084 | *** may want to report the problem to your system manager and/or to |
| 6085 | *** bug-libtool@gnu.org |
| 6086 | |
| 6087 | EOF |
| 6088 | fi ;; |
| 6089 | esac |
| 6090 | fi |
| 6091 | break |
| 6092 | fi |
| 6093 | done |
| 6094 | IFS="$lt_save_ifs" |
| 6095 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6096 | ;; |
| 6097 | esac |
| 6098 | fi |
| 6099 | |
| 6100 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6101 | if test -n "$MAGIC_CMD"; then |
| 6102 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6103 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6104 | else |
| 6105 | echo "$as_me:$LINENO: result: no" >&5 |
| 6106 | echo "${ECHO_T}no" >&6 |
| 6107 | fi |
| 6108 | |
| 6109 | else |
| 6110 | MAGIC_CMD=: |
| 6111 | fi |
| 6112 | fi |
| 6113 | |
| 6114 | fi |
| 6115 | ;; |
| 6116 | esac |
| 6117 | |
| 6118 | enable_dlopen=no |
| 6119 | enable_win32_dll=no |
| 6120 | |
| 6121 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 6122 | if test "${enable_libtool_lock+set}" = set; then |
| 6123 | enableval="$enable_libtool_lock" |
| 6124 | |
| 6125 | fi; |
| 6126 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6127 | |
| 6128 | |
| 6129 | # Check whether --with-pic or --without-pic was given. |
| 6130 | if test "${with_pic+set}" = set; then |
| 6131 | withval="$with_pic" |
| 6132 | pic_mode="$withval" |
| 6133 | else |
| 6134 | pic_mode=default |
| 6135 | fi; |
| 6136 | test -z "$pic_mode" && pic_mode=default |
| 6137 | |
| 6138 | # Use C for the default configuration in the libtool script |
| 6139 | tagname= |
| 6140 | lt_save_CC="$CC" |
| 6141 | ac_ext=c |
| 6142 | ac_cpp='$CPP $CPPFLAGS' |
| 6143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6146 | |
| 6147 | |
| 6148 | # Source file extension for C test sources. |
| 6149 | ac_ext=c |
| 6150 | |
| 6151 | # Object file extension for compiled C test sources. |
| 6152 | objext=o |
| 6153 | objext=$objext |
| 6154 | |
| 6155 | # Code to be used in simple compile tests |
| 6156 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 6157 | |
| 6158 | # Code to be used in simple link tests |
| 6159 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 6160 | |
| 6161 | |
| 6162 | # If no C compiler was specified, use CC. |
| 6163 | LTCC=${LTCC-"$CC"} |
| 6164 | |
| 6165 | # Allow CC to be a program name with arguments. |
| 6166 | compiler=$CC |
| 6167 | |
| 6168 | |
| 6169 | # |
| 6170 | # Check for any special shared library compilation flags. |
| 6171 | # |
| 6172 | lt_prog_cc_shlib= |
| 6173 | if test "$GCC" = no; then |
| 6174 | case $host_os in |
| 6175 | sco3.2v5*) |
| 6176 | lt_prog_cc_shlib='-belf' |
| 6177 | ;; |
| 6178 | esac |
| 6179 | fi |
| 6180 | if test -n "$lt_prog_cc_shlib"; then |
| 6181 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 6182 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 6183 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 6184 | else |
| 6185 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 6186 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 6187 | lt_cv_prog_cc_can_build_shared=no |
| 6188 | fi |
| 6189 | fi |
| 6190 | |
| 6191 | |
| 6192 | # |
| 6193 | # Check to make sure the static flag actually works. |
| 6194 | # |
| 6195 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 6196 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 6197 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 6198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6199 | else |
| 6200 | lt_prog_compiler_static_works=no |
| 6201 | save_LDFLAGS="$LDFLAGS" |
| 6202 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 6203 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 6204 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6205 | # The compiler can only warn and ignore the option if not recognized |
| 6206 | # So say no if there are warnings |
| 6207 | if test -s conftest.err; then |
| 6208 | # Append any errors to the config.log. |
| 6209 | cat conftest.err 1>&5 |
| 6210 | else |
| 6211 | lt_prog_compiler_static_works=yes |
| 6212 | fi |
| 6213 | fi |
| 6214 | $rm conftest* |
| 6215 | LDFLAGS="$save_LDFLAGS" |
| 6216 | |
| 6217 | fi |
| 6218 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 6219 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 6220 | |
| 6221 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 6222 | : |
| 6223 | else |
| 6224 | lt_prog_compiler_static= |
| 6225 | fi |
| 6226 | |
| 6227 | |
| 6228 | |
| 6229 | |
| 6230 | lt_prog_compiler_no_builtin_flag= |
| 6231 | |
| 6232 | if test "$GCC" = yes; then |
| 6233 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6234 | |
| 6235 | |
| 6236 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 6237 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 6238 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 6239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6240 | else |
| 6241 | lt_cv_prog_compiler_rtti_exceptions=no |
| 6242 | ac_outfile=conftest.$ac_objext |
| 6243 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6244 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6245 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6246 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6247 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6248 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6249 | # The option is referenced via a variable to avoid confusing sed. |
| 6250 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6251 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6252 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6253 | -e 's:$: $lt_compiler_flag:'` |
| 6254 | (eval echo "\"\$as_me:6254: $lt_compile\"" >&5) |
| 6255 | (eval "$lt_compile" 2>conftest.err) |
| 6256 | ac_status=$? |
| 6257 | cat conftest.err >&5 |
| 6258 | echo "$as_me:6258: \$? = $ac_status" >&5 |
| 6259 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6260 | # The compiler can only warn and ignore the option if not recognized |
| 6261 | # So say no if there are warnings |
| 6262 | if test ! -s conftest.err; then |
| 6263 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6264 | fi |
| 6265 | fi |
| 6266 | $rm conftest* |
| 6267 | |
| 6268 | fi |
| 6269 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 6270 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 6271 | |
| 6272 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6273 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6274 | else |
| 6275 | : |
| 6276 | fi |
| 6277 | |
| 6278 | fi |
| 6279 | |
| 6280 | lt_prog_compiler_wl= |
| 6281 | lt_prog_compiler_pic= |
| 6282 | lt_prog_compiler_static= |
| 6283 | |
| 6284 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 6285 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 6286 | |
| 6287 | if test "$GCC" = yes; then |
| 6288 | lt_prog_compiler_wl='-Wl,' |
| 6289 | lt_prog_compiler_static='-static' |
| 6290 | |
| 6291 | case $host_os in |
| 6292 | aix*) |
| 6293 | # All AIX code is PIC. |
| 6294 | if test "$host_cpu" = ia64; then |
| 6295 | # AIX 5 now supports IA64 processor |
| 6296 | lt_prog_compiler_static='-Bstatic' |
| 6297 | fi |
| 6298 | ;; |
| 6299 | |
| 6300 | amigaos*) |
| 6301 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6302 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6303 | # like `-m68040'. |
| 6304 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 6305 | ;; |
| 6306 | |
| 6307 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 6308 | # PIC is the default for these OSes. |
| 6309 | ;; |
| 6310 | |
| 6311 | mingw* | pw32* | os2*) |
| 6312 | # This hack is so that the source file can tell whether it is being |
| 6313 | # built for inclusion in a dll (and should export symbols for example). |
| 6314 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6315 | ;; |
| 6316 | |
| 6317 | darwin* | rhapsody*) |
| 6318 | # PIC is the default on this platform |
| 6319 | # Common symbols not allowed in MH_DYLIB files |
| 6320 | lt_prog_compiler_pic='-fno-common' |
| 6321 | ;; |
| 6322 | |
| 6323 | msdosdjgpp*) |
| 6324 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6325 | # on systems that don't support them. |
| 6326 | lt_prog_compiler_can_build_shared=no |
| 6327 | enable_shared=no |
| 6328 | ;; |
| 6329 | |
| 6330 | sysv4*MP*) |
| 6331 | if test -d /usr/nec; then |
| 6332 | lt_prog_compiler_pic=-Kconform_pic |
| 6333 | fi |
| 6334 | ;; |
| 6335 | |
| 6336 | hpux*) |
| 6337 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6338 | # not for PA HP-UX. |
| 6339 | case "$host_cpu" in |
| 6340 | hppa*64*|ia64*) |
| 6341 | # +Z the default |
| 6342 | ;; |
| 6343 | *) |
| 6344 | lt_prog_compiler_pic='-fPIC' |
| 6345 | ;; |
| 6346 | esac |
| 6347 | ;; |
| 6348 | |
| 6349 | *) |
| 6350 | lt_prog_compiler_pic='-fPIC' |
| 6351 | ;; |
| 6352 | esac |
| 6353 | else |
| 6354 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 6355 | case $host_os in |
| 6356 | aix*) |
| 6357 | lt_prog_compiler_wl='-Wl,' |
| 6358 | if test "$host_cpu" = ia64; then |
| 6359 | # AIX 5 now supports IA64 processor |
| 6360 | lt_prog_compiler_static='-Bstatic' |
| 6361 | else |
| 6362 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 6363 | fi |
| 6364 | ;; |
| 6365 | |
| 6366 | mingw* | pw32* | os2*) |
| 6367 | # This hack is so that the source file can tell whether it is being |
| 6368 | # built for inclusion in a dll (and should export symbols for example). |
| 6369 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6370 | ;; |
| 6371 | |
| 6372 | hpux9* | hpux10* | hpux11*) |
| 6373 | lt_prog_compiler_wl='-Wl,' |
| 6374 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6375 | # not for PA HP-UX. |
| 6376 | case "$host_cpu" in |
| 6377 | hppa*64*|ia64*) |
| 6378 | # +Z the default |
| 6379 | ;; |
| 6380 | *) |
| 6381 | lt_prog_compiler_pic='+Z' |
| 6382 | ;; |
| 6383 | esac |
| 6384 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6385 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 6386 | ;; |
| 6387 | |
| 6388 | irix5* | irix6* | nonstopux*) |
| 6389 | lt_prog_compiler_wl='-Wl,' |
| 6390 | # PIC (with -KPIC) is the default. |
| 6391 | lt_prog_compiler_static='-non_shared' |
| 6392 | ;; |
| 6393 | |
| 6394 | newsos6) |
| 6395 | lt_prog_compiler_pic='-KPIC' |
| 6396 | lt_prog_compiler_static='-Bstatic' |
| 6397 | ;; |
| 6398 | |
| 6399 | linux*) |
| 6400 | case $CC in |
| 6401 | icc* | ecc*) |
| 6402 | lt_prog_compiler_wl='-Wl,' |
| 6403 | lt_prog_compiler_pic='-KPIC' |
| 6404 | lt_prog_compiler_static='-static' |
| 6405 | ;; |
| 6406 | ccc*) |
| 6407 | lt_prog_compiler_wl='-Wl,' |
| 6408 | # All Alpha code is PIC. |
| 6409 | lt_prog_compiler_static='-non_shared' |
| 6410 | ;; |
| 6411 | esac |
| 6412 | ;; |
| 6413 | |
| 6414 | osf3* | osf4* | osf5*) |
| 6415 | lt_prog_compiler_wl='-Wl,' |
| 6416 | # All OSF/1 code is PIC. |
| 6417 | lt_prog_compiler_static='-non_shared' |
| 6418 | ;; |
| 6419 | |
| 6420 | sco3.2v5*) |
| 6421 | lt_prog_compiler_pic='-Kpic' |
| 6422 | lt_prog_compiler_static='-dn' |
| 6423 | ;; |
| 6424 | |
| 6425 | solaris*) |
| 6426 | lt_prog_compiler_wl='-Wl,' |
| 6427 | lt_prog_compiler_pic='-KPIC' |
| 6428 | lt_prog_compiler_static='-Bstatic' |
| 6429 | ;; |
| 6430 | |
| 6431 | sunos4*) |
| 6432 | lt_prog_compiler_wl='-Qoption ld ' |
| 6433 | lt_prog_compiler_pic='-PIC' |
| 6434 | lt_prog_compiler_static='-Bstatic' |
| 6435 | ;; |
| 6436 | |
| 6437 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6438 | lt_prog_compiler_wl='-Wl,' |
| 6439 | lt_prog_compiler_pic='-KPIC' |
| 6440 | lt_prog_compiler_static='-Bstatic' |
| 6441 | ;; |
| 6442 | |
| 6443 | sysv4*MP*) |
| 6444 | if test -d /usr/nec ;then |
| 6445 | lt_prog_compiler_pic='-Kconform_pic' |
| 6446 | lt_prog_compiler_static='-Bstatic' |
| 6447 | fi |
| 6448 | ;; |
| 6449 | |
| 6450 | uts4*) |
| 6451 | lt_prog_compiler_pic='-pic' |
| 6452 | lt_prog_compiler_static='-Bstatic' |
| 6453 | ;; |
| 6454 | |
| 6455 | *) |
| 6456 | lt_prog_compiler_can_build_shared=no |
| 6457 | ;; |
| 6458 | esac |
| 6459 | fi |
| 6460 | |
| 6461 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6462 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 6463 | |
| 6464 | # |
| 6465 | # Check to make sure the PIC flag actually works. |
| 6466 | # |
| 6467 | if test -n "$lt_prog_compiler_pic"; then |
| 6468 | |
| 6469 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6470 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 6471 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 6472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6473 | else |
| 6474 | lt_prog_compiler_pic_works=no |
| 6475 | ac_outfile=conftest.$ac_objext |
| 6476 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6477 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6478 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6479 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6480 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6481 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6482 | # The option is referenced via a variable to avoid confusing sed. |
| 6483 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6484 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6485 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6486 | -e 's:$: $lt_compiler_flag:'` |
| 6487 | (eval echo "\"\$as_me:6487: $lt_compile\"" >&5) |
| 6488 | (eval "$lt_compile" 2>conftest.err) |
| 6489 | ac_status=$? |
| 6490 | cat conftest.err >&5 |
| 6491 | echo "$as_me:6491: \$? = $ac_status" >&5 |
| 6492 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6493 | # The compiler can only warn and ignore the option if not recognized |
| 6494 | # So say no if there are warnings |
| 6495 | if test ! -s conftest.err; then |
| 6496 | lt_prog_compiler_pic_works=yes |
| 6497 | fi |
| 6498 | fi |
| 6499 | $rm conftest* |
| 6500 | |
| 6501 | fi |
| 6502 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 6503 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 6504 | |
| 6505 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 6506 | case $lt_prog_compiler_pic in |
| 6507 | "" | " "*) ;; |
| 6508 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6509 | esac |
| 6510 | else |
| 6511 | lt_prog_compiler_pic= |
| 6512 | lt_prog_compiler_can_build_shared=no |
| 6513 | fi |
| 6514 | |
| 6515 | fi |
| 6516 | case "$host_os" in |
| 6517 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6518 | *djgpp*) |
| 6519 | lt_prog_compiler_pic= |
| 6520 | ;; |
| 6521 | *) |
| 6522 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6523 | ;; |
| 6524 | esac |
| 6525 | |
| 6526 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6527 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 6528 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 6529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6530 | else |
| 6531 | lt_cv_prog_compiler_c_o=no |
| 6532 | $rm -r conftest 2>/dev/null |
| 6533 | mkdir conftest |
| 6534 | cd conftest |
| 6535 | mkdir out |
| 6536 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6537 | |
| 6538 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6539 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6540 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6541 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6542 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6543 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6544 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6545 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6546 | -e 's:$: $lt_compiler_flag:'` |
| 6547 | (eval echo "\"\$as_me:6547: $lt_compile\"" >&5) |
| 6548 | (eval "$lt_compile" 2>out/conftest.err) |
| 6549 | ac_status=$? |
| 6550 | cat out/conftest.err >&5 |
| 6551 | echo "$as_me:6551: \$? = $ac_status" >&5 |
| 6552 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6553 | then |
| 6554 | # The compiler can only warn and ignore the option if not recognized |
| 6555 | # So say no if there are warnings |
| 6556 | if test ! -s out/conftest.err; then |
| 6557 | lt_cv_prog_compiler_c_o=yes |
| 6558 | fi |
| 6559 | fi |
| 6560 | chmod u+w . |
| 6561 | $rm conftest* |
| 6562 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6563 | # template instantiation |
| 6564 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 6565 | $rm out/* && rmdir out |
| 6566 | cd .. |
| 6567 | rmdir conftest |
| 6568 | $rm conftest* |
| 6569 | |
| 6570 | fi |
| 6571 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6572 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 6573 | |
| 6574 | |
| 6575 | hard_links="nottested" |
| 6576 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 6577 | # do not overwrite the value of need_locks provided by the user |
| 6578 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6579 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 6580 | hard_links=yes |
| 6581 | $rm conftest* |
| 6582 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6583 | touch conftest.a |
| 6584 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6585 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6586 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6587 | echo "${ECHO_T}$hard_links" >&6 |
| 6588 | if test "$hard_links" = no; then |
| 6589 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6590 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 6591 | need_locks=warn |
| 6592 | fi |
| 6593 | else |
| 6594 | need_locks=no |
| 6595 | fi |
| 6596 | |
| 6597 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6598 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 6599 | |
| 6600 | runpath_var= |
| 6601 | allow_undefined_flag= |
| 6602 | enable_shared_with_static_runtimes=no |
| 6603 | archive_cmds= |
| 6604 | archive_expsym_cmds= |
| 6605 | old_archive_From_new_cmds= |
| 6606 | old_archive_from_expsyms_cmds= |
| 6607 | export_dynamic_flag_spec= |
| 6608 | whole_archive_flag_spec= |
| 6609 | thread_safe_flag_spec= |
| 6610 | hardcode_libdir_flag_spec= |
| 6611 | hardcode_libdir_flag_spec_ld= |
| 6612 | hardcode_libdir_separator= |
| 6613 | hardcode_direct=no |
| 6614 | hardcode_minus_L=no |
| 6615 | hardcode_shlibpath_var=unsupported |
| 6616 | link_all_deplibs=unknown |
| 6617 | hardcode_automatic=no |
| 6618 | module_cmds= |
| 6619 | module_expsym_cmds= |
| 6620 | always_export_symbols=no |
| 6621 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6622 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6623 | # included in the symbol list |
| 6624 | include_expsyms= |
| 6625 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6626 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6627 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6628 | # as well as any symbol that contains `d'. |
| 6629 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 6630 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6631 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6632 | # the symbol is explicitly referenced. Since portable code cannot |
| 6633 | # rely on this symbol name, it's probably fine to never include it in |
| 6634 | # preloaded symbol tables. |
| 6635 | extract_expsyms_cmds= |
| 6636 | |
| 6637 | case $host_os in |
| 6638 | cygwin* | mingw* | pw32*) |
| 6639 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6640 | # When not using gcc, we currently assume that we are using |
| 6641 | # Microsoft Visual C++. |
| 6642 | if test "$GCC" != yes; then |
| 6643 | with_gnu_ld=no |
| 6644 | fi |
| 6645 | ;; |
| 6646 | openbsd*) |
| 6647 | with_gnu_ld=no |
| 6648 | ;; |
| 6649 | esac |
| 6650 | |
| 6651 | ld_shlibs=yes |
| 6652 | if test "$with_gnu_ld" = yes; then |
| 6653 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6654 | wlarc='${wl}' |
| 6655 | |
| 6656 | # See if GNU ld supports shared libraries. |
| 6657 | case $host_os in |
| 6658 | aix3* | aix4* | aix5*) |
| 6659 | # On AIX/PPC, the GNU linker is very broken |
| 6660 | if test "$host_cpu" != ia64; then |
| 6661 | ld_shlibs=no |
| 6662 | cat <<EOF 1>&2 |
| 6663 | |
| 6664 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6665 | *** to be unable to reliably create shared libraries on AIX. |
| 6666 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6667 | *** really care for shared libraries, you may want to modify your PATH |
| 6668 | *** so that a non-GNU linker is found, and then restart. |
| 6669 | |
| 6670 | EOF |
| 6671 | fi |
| 6672 | ;; |
| 6673 | |
| 6674 | amigaos*) |
| 6675 | 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)' |
| 6676 | hardcode_libdir_flag_spec='-L$libdir' |
| 6677 | hardcode_minus_L=yes |
| 6678 | |
| 6679 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 6680 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 6681 | # to version 4, is to share data among multiple programs linked |
| 6682 | # with the same dynamic library. Since this doesn't match the |
| 6683 | # behavior of shared libraries on other platforms, we can't use |
| 6684 | # them. |
| 6685 | ld_shlibs=no |
| 6686 | ;; |
| 6687 | |
| 6688 | beos*) |
| 6689 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6690 | allow_undefined_flag=unsupported |
| 6691 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6692 | # support --undefined. This deserves some investigation. FIXME |
| 6693 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6694 | else |
| 6695 | ld_shlibs=no |
| 6696 | fi |
| 6697 | ;; |
| 6698 | |
| 6699 | cygwin* | mingw* | pw32*) |
| 6700 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6701 | # as there is no search path for DLLs. |
| 6702 | hardcode_libdir_flag_spec='-L$libdir' |
| 6703 | allow_undefined_flag=unsupported |
| 6704 | always_export_symbols=no |
| 6705 | enable_shared_with_static_runtimes=yes |
| 6706 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6707 | |
| 6708 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6709 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6710 | # If the export-symbols file already is a .def file (1st line |
| 6711 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6712 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6713 | cp $export_symbols $output_objdir/$soname.def; |
| 6714 | else |
| 6715 | echo EXPORTS > $output_objdir/$soname.def; |
| 6716 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6717 | fi~ |
| 6718 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6719 | else |
| 6720 | ld_shlibs=no |
| 6721 | fi |
| 6722 | ;; |
| 6723 | |
| 6724 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 6725 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6726 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6727 | wlarc= |
| 6728 | else |
| 6729 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6730 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6731 | fi |
| 6732 | ;; |
| 6733 | |
| 6734 | solaris* | sysv5*) |
| 6735 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6736 | ld_shlibs=no |
| 6737 | cat <<EOF 1>&2 |
| 6738 | |
| 6739 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6740 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6741 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6742 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6743 | *** your PATH or compiler configuration so that the native linker is |
| 6744 | *** used, and then restart. |
| 6745 | |
| 6746 | EOF |
| 6747 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6748 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6749 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6750 | else |
| 6751 | ld_shlibs=no |
| 6752 | fi |
| 6753 | ;; |
| 6754 | |
| 6755 | sunos4*) |
| 6756 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6757 | wlarc= |
| 6758 | hardcode_direct=yes |
| 6759 | hardcode_shlibpath_var=no |
| 6760 | ;; |
| 6761 | |
| 6762 | linux*) |
| 6763 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6764 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6765 | archive_cmds="$tmp_archive_cmds" |
| 6766 | supports_anon_versioning=no |
| 6767 | case `$LD -v 2>/dev/null` in |
| 6768 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6769 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6770 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6771 | *\ 2.11.*) ;; # other 2.11 versions |
| 6772 | *) supports_anon_versioning=yes ;; |
| 6773 | esac |
| 6774 | if test $supports_anon_versioning = yes; then |
| 6775 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 6776 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6777 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6778 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 6779 | else |
| 6780 | archive_expsym_cmds="$tmp_archive_cmds" |
| 6781 | fi |
| 6782 | link_all_deplibs=no |
| 6783 | else |
| 6784 | ld_shlibs=no |
| 6785 | fi |
| 6786 | ;; |
| 6787 | |
| 6788 | *) |
| 6789 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6790 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6791 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6792 | else |
| 6793 | ld_shlibs=no |
| 6794 | fi |
| 6795 | ;; |
| 6796 | esac |
| 6797 | |
| 6798 | if test "$ld_shlibs" = yes; then |
| 6799 | runpath_var=LD_RUN_PATH |
| 6800 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6801 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6802 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6803 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6804 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6805 | else |
| 6806 | whole_archive_flag_spec= |
| 6807 | fi |
| 6808 | fi |
| 6809 | else |
| 6810 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6811 | case $host_os in |
| 6812 | aix3*) |
| 6813 | allow_undefined_flag=unsupported |
| 6814 | always_export_symbols=yes |
| 6815 | 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' |
| 6816 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6817 | # are no directories specified by -L. |
| 6818 | hardcode_minus_L=yes |
| 6819 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6820 | # Neither direct hardcoding nor static linking is supported with a |
| 6821 | # broken collect2. |
| 6822 | hardcode_direct=unsupported |
| 6823 | fi |
| 6824 | ;; |
| 6825 | |
| 6826 | aix4* | aix5*) |
| 6827 | if test "$host_cpu" = ia64; then |
| 6828 | # On IA64, the linker does run time linking by default, so we don't |
| 6829 | # have to do anything special. |
| 6830 | aix_use_runtimelinking=no |
| 6831 | exp_sym_flag='-Bexport' |
| 6832 | no_entry_flag="" |
| 6833 | else |
| 6834 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6835 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6836 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6837 | 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' |
| 6838 | else |
| 6839 | 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' |
| 6840 | fi |
| 6841 | aix_use_runtimelinking=no |
| 6842 | |
| 6843 | # Test if we are trying to use run time linking or normal |
| 6844 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6845 | # need to do runtime linking. |
| 6846 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6847 | for ld_flag in $LDFLAGS; do |
| 6848 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6849 | aix_use_runtimelinking=yes |
| 6850 | break |
| 6851 | fi |
| 6852 | done |
| 6853 | esac |
| 6854 | |
| 6855 | exp_sym_flag='-bexport' |
| 6856 | no_entry_flag='-bnoentry' |
| 6857 | fi |
| 6858 | |
| 6859 | # When large executables or shared objects are built, AIX ld can |
| 6860 | # have problems creating the table of contents. If linking a library |
| 6861 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6862 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6863 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6864 | |
| 6865 | archive_cmds='' |
| 6866 | hardcode_direct=yes |
| 6867 | hardcode_libdir_separator=':' |
| 6868 | link_all_deplibs=yes |
| 6869 | |
| 6870 | if test "$GCC" = yes; then |
| 6871 | case $host_os in aix4.012|aix4.012.*) |
| 6872 | # We only want to do this on AIX 4.2 and lower, the check |
| 6873 | # below for broken collect2 doesn't work under 4.3+ |
| 6874 | collect2name=`${CC} -print-prog-name=collect2` |
| 6875 | if test -f "$collect2name" && \ |
| 6876 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6877 | then |
| 6878 | # We have reworked collect2 |
| 6879 | hardcode_direct=yes |
| 6880 | else |
| 6881 | # We have old collect2 |
| 6882 | hardcode_direct=unsupported |
| 6883 | # It fails to find uninstalled libraries when the uninstalled |
| 6884 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6885 | # to unsupported forces relinking |
| 6886 | hardcode_minus_L=yes |
| 6887 | hardcode_libdir_flag_spec='-L$libdir' |
| 6888 | hardcode_libdir_separator= |
| 6889 | fi |
| 6890 | esac |
| 6891 | shared_flag='-shared' |
| 6892 | else |
| 6893 | # not using gcc |
| 6894 | if test "$host_cpu" = ia64; then |
| 6895 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6896 | # chokes on -Wl,-G. The following line is correct: |
| 6897 | shared_flag='-G' |
| 6898 | else |
| 6899 | if test "$aix_use_runtimelinking" = yes; then |
| 6900 | shared_flag='${wl}-G' |
| 6901 | else |
| 6902 | shared_flag='${wl}-bM:SRE' |
| 6903 | fi |
| 6904 | fi |
| 6905 | fi |
| 6906 | |
| 6907 | # It seems that -bexpall does not export symbols beginning with |
| 6908 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6909 | always_export_symbols=yes |
| 6910 | if test "$aix_use_runtimelinking" = yes; then |
| 6911 | # Warning - without using the other runtime loading flags (-brtl), |
| 6912 | # -berok will link without error, but may produce a broken library. |
| 6913 | allow_undefined_flag='-berok' |
| 6914 | # Determine the default libpath from the value encoded in an empty executable. |
| 6915 | cat >conftest.$ac_ext <<_ACEOF |
| 6916 | /* confdefs.h. */ |
| 6917 | _ACEOF |
| 6918 | cat confdefs.h >>conftest.$ac_ext |
| 6919 | cat >>conftest.$ac_ext <<_ACEOF |
| 6920 | /* end confdefs.h. */ |
| 6921 | |
| 6922 | int |
| 6923 | main () |
| 6924 | { |
| 6925 | |
| 6926 | ; |
| 6927 | return 0; |
| 6928 | } |
| 6929 | _ACEOF |
| 6930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6932 | (eval $ac_link) 2>conftest.er1 |
| 6933 | ac_status=$? |
| 6934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6935 | rm -f conftest.er1 |
| 6936 | cat conftest.err >&5 |
| 6937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6938 | (exit $ac_status); } && |
| 6939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6941 | (eval $ac_try) 2>&5 |
| 6942 | ac_status=$? |
| 6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6944 | (exit $ac_status); }; } && |
| 6945 | { ac_try='test -s conftest$ac_exeext' |
| 6946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6947 | (eval $ac_try) 2>&5 |
| 6948 | ac_status=$? |
| 6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6950 | (exit $ac_status); }; }; then |
| 6951 | |
| 6952 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6953 | }'` |
| 6954 | # Check for a 64-bit object if we didn't find anything. |
| 6955 | 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; } |
| 6956 | }'`; fi |
| 6957 | else |
| 6958 | echo "$as_me: failed program was:" >&5 |
| 6959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6960 | |
| 6961 | fi |
| 6962 | rm -f conftest.err conftest.$ac_objext \ |
| 6963 | conftest$ac_exeext conftest.$ac_ext |
| 6964 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 6965 | |
| 6966 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6967 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 6968 | else |
| 6969 | if test "$host_cpu" = ia64; then |
| 6970 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6971 | allow_undefined_flag="-z nodefs" |
| 6972 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 6973 | else |
| 6974 | # Determine the default libpath from the value encoded in an empty executable. |
| 6975 | cat >conftest.$ac_ext <<_ACEOF |
| 6976 | /* confdefs.h. */ |
| 6977 | _ACEOF |
| 6978 | cat confdefs.h >>conftest.$ac_ext |
| 6979 | cat >>conftest.$ac_ext <<_ACEOF |
| 6980 | /* end confdefs.h. */ |
| 6981 | |
| 6982 | int |
| 6983 | main () |
| 6984 | { |
| 6985 | |
| 6986 | ; |
| 6987 | return 0; |
| 6988 | } |
| 6989 | _ACEOF |
| 6990 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6992 | (eval $ac_link) 2>conftest.er1 |
| 6993 | ac_status=$? |
| 6994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6995 | rm -f conftest.er1 |
| 6996 | cat conftest.err >&5 |
| 6997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6998 | (exit $ac_status); } && |
| 6999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7001 | (eval $ac_try) 2>&5 |
| 7002 | ac_status=$? |
| 7003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7004 | (exit $ac_status); }; } && |
| 7005 | { ac_try='test -s conftest$ac_exeext' |
| 7006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7007 | (eval $ac_try) 2>&5 |
| 7008 | ac_status=$? |
| 7009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7010 | (exit $ac_status); }; }; then |
| 7011 | |
| 7012 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7013 | }'` |
| 7014 | # Check for a 64-bit object if we didn't find anything. |
| 7015 | 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; } |
| 7016 | }'`; fi |
| 7017 | else |
| 7018 | echo "$as_me: failed program was:" >&5 |
| 7019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7020 | |
| 7021 | fi |
| 7022 | rm -f conftest.err conftest.$ac_objext \ |
| 7023 | conftest$ac_exeext conftest.$ac_ext |
| 7024 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7025 | |
| 7026 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7027 | # Warning - without using the other run time loading flags, |
| 7028 | # -berok will link without error, but may produce a broken library. |
| 7029 | no_undefined_flag=' ${wl}-bernotok' |
| 7030 | allow_undefined_flag=' ${wl}-berok' |
| 7031 | # -bexpall does not export symbols beginning with underscore (_) |
| 7032 | always_export_symbols=yes |
| 7033 | # Exported symbols can be pulled into shared objects from archives |
| 7034 | whole_archive_flag_spec=' ' |
| 7035 | archive_cmds_need_lc=yes |
| 7036 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 7037 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 7038 | fi |
| 7039 | fi |
| 7040 | ;; |
| 7041 | |
| 7042 | amigaos*) |
| 7043 | 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)' |
| 7044 | hardcode_libdir_flag_spec='-L$libdir' |
| 7045 | hardcode_minus_L=yes |
| 7046 | # see comment about different semantics on the GNU ld section |
| 7047 | ld_shlibs=no |
| 7048 | ;; |
| 7049 | |
| 7050 | bsdi4*) |
| 7051 | export_dynamic_flag_spec=-rdynamic |
| 7052 | ;; |
| 7053 | |
| 7054 | cygwin* | mingw* | pw32*) |
| 7055 | # When not using gcc, we currently assume that we are using |
| 7056 | # Microsoft Visual C++. |
| 7057 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 7058 | # no search path for DLLs. |
| 7059 | hardcode_libdir_flag_spec=' ' |
| 7060 | allow_undefined_flag=unsupported |
| 7061 | # Tell ltmain to make .lib files, not .a files. |
| 7062 | libext=lib |
| 7063 | # Tell ltmain to make .dll files, not .so files. |
| 7064 | shrext_cmds=".dll" |
| 7065 | # FIXME: Setting linknames here is a bad hack. |
| 7066 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 7067 | # The linker will automatically build a .lib file if we build a DLL. |
| 7068 | old_archive_From_new_cmds='true' |
| 7069 | # FIXME: Should let the user specify the lib program. |
| 7070 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 7071 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7072 | enable_shared_with_static_runtimes=yes |
| 7073 | ;; |
| 7074 | |
| 7075 | darwin* | rhapsody*) |
| 7076 | if test "$GXX" = yes ; then |
| 7077 | archive_cmds_need_lc=no |
| 7078 | case "$host_os" in |
| 7079 | rhapsody* | darwin1.[012]) |
| 7080 | allow_undefined_flag='-undefined suppress' |
| 7081 | ;; |
| 7082 | *) # Darwin 1.3 on |
| 7083 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 7084 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 7085 | else |
| 7086 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 7087 | 10.[012]) |
| 7088 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 7089 | ;; |
| 7090 | 10.*) |
| 7091 | allow_undefined_flag='-undefined dynamic_lookup' |
| 7092 | ;; |
| 7093 | esac |
| 7094 | fi |
| 7095 | ;; |
| 7096 | esac |
| 7097 | lt_int_apple_cc_single_mod=no |
| 7098 | output_verbose_link_cmd='echo' |
| 7099 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 7100 | lt_int_apple_cc_single_mod=yes |
| 7101 | fi |
| 7102 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 7103 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7104 | else |
| 7105 | archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7106 | fi |
| 7107 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7108 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 7109 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 7110 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7111 | else |
| 7112 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7113 | fi |
| 7114 | 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}' |
| 7115 | hardcode_direct=no |
| 7116 | hardcode_automatic=yes |
| 7117 | hardcode_shlibpath_var=unsupported |
| 7118 | whole_archive_flag_spec='-all_load $convenience' |
| 7119 | link_all_deplibs=yes |
| 7120 | else |
| 7121 | ld_shlibs=no |
| 7122 | fi |
| 7123 | ;; |
| 7124 | |
| 7125 | dgux*) |
| 7126 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7127 | hardcode_libdir_flag_spec='-L$libdir' |
| 7128 | hardcode_shlibpath_var=no |
| 7129 | ;; |
| 7130 | |
| 7131 | freebsd1*) |
| 7132 | ld_shlibs=no |
| 7133 | ;; |
| 7134 | |
| 7135 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7136 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7137 | # does not break anything, and helps significantly (at the cost of a little |
| 7138 | # extra space). |
| 7139 | freebsd2.2*) |
| 7140 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7141 | hardcode_libdir_flag_spec='-R$libdir' |
| 7142 | hardcode_direct=yes |
| 7143 | hardcode_shlibpath_var=no |
| 7144 | ;; |
| 7145 | |
| 7146 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7147 | freebsd2*) |
| 7148 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7149 | hardcode_direct=yes |
| 7150 | hardcode_minus_L=yes |
| 7151 | hardcode_shlibpath_var=no |
| 7152 | ;; |
| 7153 | |
| 7154 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 7155 | freebsd* | kfreebsd*-gnu) |
| 7156 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7157 | hardcode_libdir_flag_spec='-R$libdir' |
| 7158 | hardcode_direct=yes |
| 7159 | hardcode_shlibpath_var=no |
| 7160 | ;; |
| 7161 | |
| 7162 | hpux9*) |
| 7163 | if test "$GCC" = yes; then |
| 7164 | 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' |
| 7165 | else |
| 7166 | 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' |
| 7167 | fi |
| 7168 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7169 | hardcode_libdir_separator=: |
| 7170 | hardcode_direct=yes |
| 7171 | |
| 7172 | # hardcode_minus_L: Not really in the search PATH, |
| 7173 | # but as the default location of the library. |
| 7174 | hardcode_minus_L=yes |
| 7175 | export_dynamic_flag_spec='${wl}-E' |
| 7176 | ;; |
| 7177 | |
| 7178 | hpux10* | hpux11*) |
| 7179 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7180 | case "$host_cpu" in |
| 7181 | hppa*64*|ia64*) |
| 7182 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7183 | ;; |
| 7184 | *) |
| 7185 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7186 | ;; |
| 7187 | esac |
| 7188 | else |
| 7189 | case "$host_cpu" in |
| 7190 | hppa*64*|ia64*) |
| 7191 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7192 | ;; |
| 7193 | *) |
| 7194 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7195 | ;; |
| 7196 | esac |
| 7197 | fi |
| 7198 | if test "$with_gnu_ld" = no; then |
| 7199 | case "$host_cpu" in |
| 7200 | hppa*64*) |
| 7201 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7202 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 7203 | hardcode_libdir_separator=: |
| 7204 | hardcode_direct=no |
| 7205 | hardcode_shlibpath_var=no |
| 7206 | ;; |
| 7207 | ia64*) |
| 7208 | hardcode_libdir_flag_spec='-L$libdir' |
| 7209 | hardcode_direct=no |
| 7210 | hardcode_shlibpath_var=no |
| 7211 | |
| 7212 | # hardcode_minus_L: Not really in the search PATH, |
| 7213 | # but as the default location of the library. |
| 7214 | hardcode_minus_L=yes |
| 7215 | ;; |
| 7216 | *) |
| 7217 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7218 | hardcode_libdir_separator=: |
| 7219 | hardcode_direct=yes |
| 7220 | export_dynamic_flag_spec='${wl}-E' |
| 7221 | |
| 7222 | # hardcode_minus_L: Not really in the search PATH, |
| 7223 | # but as the default location of the library. |
| 7224 | hardcode_minus_L=yes |
| 7225 | ;; |
| 7226 | esac |
| 7227 | fi |
| 7228 | ;; |
| 7229 | |
| 7230 | irix5* | irix6* | nonstopux*) |
| 7231 | if test "$GCC" = yes; then |
| 7232 | 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' |
| 7233 | else |
| 7234 | 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' |
| 7235 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7236 | fi |
| 7237 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7238 | hardcode_libdir_separator=: |
| 7239 | link_all_deplibs=yes |
| 7240 | ;; |
| 7241 | |
| 7242 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 7243 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7244 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7245 | else |
| 7246 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7247 | fi |
| 7248 | hardcode_libdir_flag_spec='-R$libdir' |
| 7249 | hardcode_direct=yes |
| 7250 | hardcode_shlibpath_var=no |
| 7251 | ;; |
| 7252 | |
| 7253 | newsos6) |
| 7254 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7255 | hardcode_direct=yes |
| 7256 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7257 | hardcode_libdir_separator=: |
| 7258 | hardcode_shlibpath_var=no |
| 7259 | ;; |
| 7260 | |
| 7261 | openbsd*) |
| 7262 | hardcode_direct=yes |
| 7263 | hardcode_shlibpath_var=no |
| 7264 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7265 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7266 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7267 | export_dynamic_flag_spec='${wl}-E' |
| 7268 | else |
| 7269 | case $host_os in |
| 7270 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7271 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7272 | hardcode_libdir_flag_spec='-R$libdir' |
| 7273 | ;; |
| 7274 | *) |
| 7275 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7276 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7277 | ;; |
| 7278 | esac |
| 7279 | fi |
| 7280 | ;; |
| 7281 | |
| 7282 | os2*) |
| 7283 | hardcode_libdir_flag_spec='-L$libdir' |
| 7284 | hardcode_minus_L=yes |
| 7285 | allow_undefined_flag=unsupported |
| 7286 | 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' |
| 7287 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 7288 | ;; |
| 7289 | |
| 7290 | osf3*) |
| 7291 | if test "$GCC" = yes; then |
| 7292 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7293 | 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' |
| 7294 | else |
| 7295 | allow_undefined_flag=' -expect_unresolved \*' |
| 7296 | 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' |
| 7297 | fi |
| 7298 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7299 | hardcode_libdir_separator=: |
| 7300 | ;; |
| 7301 | |
| 7302 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 7303 | if test "$GCC" = yes; then |
| 7304 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7305 | 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' |
| 7306 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7307 | else |
| 7308 | allow_undefined_flag=' -expect_unresolved \*' |
| 7309 | 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' |
| 7310 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 7311 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 7312 | |
| 7313 | # Both c and cxx compiler support -rpath directly |
| 7314 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 7315 | fi |
| 7316 | hardcode_libdir_separator=: |
| 7317 | ;; |
| 7318 | |
| 7319 | sco3.2v5*) |
| 7320 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7321 | hardcode_shlibpath_var=no |
| 7322 | export_dynamic_flag_spec='${wl}-Bexport' |
| 7323 | runpath_var=LD_RUN_PATH |
| 7324 | hardcode_runpath_var=yes |
| 7325 | ;; |
| 7326 | |
| 7327 | solaris*) |
| 7328 | no_undefined_flag=' -z text' |
| 7329 | if test "$GCC" = yes; then |
| 7330 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7331 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7332 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 7333 | else |
| 7334 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7335 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7336 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7337 | fi |
| 7338 | hardcode_libdir_flag_spec='-R$libdir' |
| 7339 | hardcode_shlibpath_var=no |
| 7340 | case $host_os in |
| 7341 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 7342 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7343 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 7344 | esac |
| 7345 | link_all_deplibs=yes |
| 7346 | ;; |
| 7347 | |
| 7348 | sunos4*) |
| 7349 | if test "x$host_vendor" = xsequent; then |
| 7350 | # Use $CC to link under sequent, because it throws in some extra .o |
| 7351 | # files that make .init and .fini sections work. |
| 7352 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7353 | else |
| 7354 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 7355 | fi |
| 7356 | hardcode_libdir_flag_spec='-L$libdir' |
| 7357 | hardcode_direct=yes |
| 7358 | hardcode_minus_L=yes |
| 7359 | hardcode_shlibpath_var=no |
| 7360 | ;; |
| 7361 | |
| 7362 | sysv4) |
| 7363 | case $host_vendor in |
| 7364 | sni) |
| 7365 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7366 | hardcode_direct=yes # is this really true??? |
| 7367 | ;; |
| 7368 | siemens) |
| 7369 | ## LD is ld it makes a PLAMLIB |
| 7370 | ## CC just makes a GrossModule. |
| 7371 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7372 | reload_cmds='$CC -r -o $output$reload_objs' |
| 7373 | hardcode_direct=no |
| 7374 | ;; |
| 7375 | motorola) |
| 7376 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7377 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 7378 | ;; |
| 7379 | esac |
| 7380 | runpath_var='LD_RUN_PATH' |
| 7381 | hardcode_shlibpath_var=no |
| 7382 | ;; |
| 7383 | |
| 7384 | sysv4.3*) |
| 7385 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7386 | hardcode_shlibpath_var=no |
| 7387 | export_dynamic_flag_spec='-Bexport' |
| 7388 | ;; |
| 7389 | |
| 7390 | sysv4*MP*) |
| 7391 | if test -d /usr/nec; then |
| 7392 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7393 | hardcode_shlibpath_var=no |
| 7394 | runpath_var=LD_RUN_PATH |
| 7395 | hardcode_runpath_var=yes |
| 7396 | ld_shlibs=yes |
| 7397 | fi |
| 7398 | ;; |
| 7399 | |
| 7400 | sysv4.2uw2*) |
| 7401 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7402 | hardcode_direct=yes |
| 7403 | hardcode_minus_L=no |
| 7404 | hardcode_shlibpath_var=no |
| 7405 | hardcode_runpath_var=yes |
| 7406 | runpath_var=LD_RUN_PATH |
| 7407 | ;; |
| 7408 | |
| 7409 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 7410 | no_undefined_flag='${wl}-z ${wl}text' |
| 7411 | if test "$GCC" = yes; then |
| 7412 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7413 | else |
| 7414 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7415 | fi |
| 7416 | runpath_var='LD_RUN_PATH' |
| 7417 | hardcode_shlibpath_var=no |
| 7418 | ;; |
| 7419 | |
| 7420 | sysv5*) |
| 7421 | no_undefined_flag=' -z text' |
| 7422 | # $CC -shared without GNU ld will not create a library from C++ |
| 7423 | # object files and a static libstdc++, better avoid it by now |
| 7424 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7425 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7426 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7427 | hardcode_libdir_flag_spec= |
| 7428 | hardcode_shlibpath_var=no |
| 7429 | runpath_var='LD_RUN_PATH' |
| 7430 | ;; |
| 7431 | |
| 7432 | uts4*) |
| 7433 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7434 | hardcode_libdir_flag_spec='-L$libdir' |
| 7435 | hardcode_shlibpath_var=no |
| 7436 | ;; |
| 7437 | |
| 7438 | *) |
| 7439 | ld_shlibs=no |
| 7440 | ;; |
| 7441 | esac |
| 7442 | fi |
| 7443 | |
| 7444 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 7445 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 7446 | test "$ld_shlibs" = no && can_build_shared=no |
| 7447 | |
| 7448 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 7449 | if test "$GCC" = yes; then |
| 7450 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 7451 | fi |
| 7452 | |
| 7453 | # |
| 7454 | # Do we need to explicitly link libc? |
| 7455 | # |
| 7456 | case "x$archive_cmds_need_lc" in |
| 7457 | x|xyes) |
| 7458 | # Assume -lc should be added |
| 7459 | archive_cmds_need_lc=yes |
| 7460 | |
| 7461 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7462 | case $archive_cmds in |
| 7463 | *'~'*) |
| 7464 | # FIXME: we may have to deal with multi-command sequences. |
| 7465 | ;; |
| 7466 | '$CC '*) |
| 7467 | # Test whether the compiler implicitly links with -lc since on some |
| 7468 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7469 | # to ld, don't add -lc before -lgcc. |
| 7470 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7471 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7472 | $rm conftest* |
| 7473 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7474 | |
| 7475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7476 | (eval $ac_compile) 2>&5 |
| 7477 | ac_status=$? |
| 7478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7479 | (exit $ac_status); } 2>conftest.err; then |
| 7480 | soname=conftest |
| 7481 | lib=conftest |
| 7482 | libobjs=conftest.$ac_objext |
| 7483 | deplibs= |
| 7484 | wl=$lt_prog_compiler_wl |
| 7485 | compiler_flags=-v |
| 7486 | linker_flags=-v |
| 7487 | verstring= |
| 7488 | output_objdir=. |
| 7489 | libname=conftest |
| 7490 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 7491 | allow_undefined_flag= |
| 7492 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7493 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7494 | ac_status=$? |
| 7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7496 | (exit $ac_status); } |
| 7497 | then |
| 7498 | archive_cmds_need_lc=no |
| 7499 | else |
| 7500 | archive_cmds_need_lc=yes |
| 7501 | fi |
| 7502 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 7503 | else |
| 7504 | cat conftest.err 1>&5 |
| 7505 | fi |
| 7506 | $rm conftest* |
| 7507 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 7508 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 7509 | ;; |
| 7510 | esac |
| 7511 | fi |
| 7512 | ;; |
| 7513 | esac |
| 7514 | |
| 7515 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7516 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 7517 | library_names_spec= |
| 7518 | libname_spec='lib$name' |
| 7519 | soname_spec= |
| 7520 | shrext_cmds=".so" |
| 7521 | postinstall_cmds= |
| 7522 | postuninstall_cmds= |
| 7523 | finish_cmds= |
| 7524 | finish_eval= |
| 7525 | shlibpath_var= |
| 7526 | shlibpath_overrides_runpath=unknown |
| 7527 | version_type=none |
| 7528 | dynamic_linker="$host_os ld.so" |
| 7529 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 7530 | if test "$GCC" = yes; then |
| 7531 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7532 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 7533 | # if the path contains ";" then we assume it to be the separator |
| 7534 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7535 | # assumed that no part of a normal pathname contains ";" but that should |
| 7536 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7537 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7538 | else |
| 7539 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7540 | fi |
| 7541 | else |
| 7542 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7543 | fi |
| 7544 | need_lib_prefix=unknown |
| 7545 | hardcode_into_libs=no |
| 7546 | |
| 7547 | # when you set need_version to no, make sure it does not cause -set_version |
| 7548 | # flags to be left without arguments |
| 7549 | need_version=unknown |
| 7550 | |
| 7551 | case $host_os in |
| 7552 | aix3*) |
| 7553 | version_type=linux |
| 7554 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 7555 | shlibpath_var=LIBPATH |
| 7556 | |
| 7557 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7558 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7559 | ;; |
| 7560 | |
| 7561 | aix4* | aix5*) |
| 7562 | version_type=linux |
| 7563 | need_lib_prefix=no |
| 7564 | need_version=no |
| 7565 | hardcode_into_libs=yes |
| 7566 | if test "$host_cpu" = ia64; then |
| 7567 | # AIX 5 supports IA64 |
| 7568 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 7569 | shlibpath_var=LD_LIBRARY_PATH |
| 7570 | else |
| 7571 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7572 | # for dependence libraries. The import file would start with |
| 7573 | # the line `#! .'. This would cause the generated library to |
| 7574 | # depend on `.', always an invalid library. This was fixed in |
| 7575 | # development snapshots of GCC prior to 3.0. |
| 7576 | case $host_os in |
| 7577 | aix4 | aix4.[01] | aix4.[01].*) |
| 7578 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7579 | echo ' yes ' |
| 7580 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 7581 | : |
| 7582 | else |
| 7583 | can_build_shared=no |
| 7584 | fi |
| 7585 | ;; |
| 7586 | esac |
| 7587 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7588 | # soname into executable. Probably we can add versioning support to |
| 7589 | # collect2, so additional links can be useful in future. |
| 7590 | if test "$aix_use_runtimelinking" = yes; then |
| 7591 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7592 | # instead of lib<name>.a to let people know that these are not |
| 7593 | # typical AIX shared libraries. |
| 7594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7595 | else |
| 7596 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7597 | # and later when we are not doing run time linking. |
| 7598 | library_names_spec='${libname}${release}.a $libname.a' |
| 7599 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7600 | fi |
| 7601 | shlibpath_var=LIBPATH |
| 7602 | fi |
| 7603 | ;; |
| 7604 | |
| 7605 | amigaos*) |
| 7606 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7607 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7608 | 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' |
| 7609 | ;; |
| 7610 | |
| 7611 | beos*) |
| 7612 | library_names_spec='${libname}${shared_ext}' |
| 7613 | dynamic_linker="$host_os ld.so" |
| 7614 | shlibpath_var=LIBRARY_PATH |
| 7615 | ;; |
| 7616 | |
| 7617 | bsdi4*) |
| 7618 | version_type=linux |
| 7619 | need_version=no |
| 7620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7621 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7622 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7623 | shlibpath_var=LD_LIBRARY_PATH |
| 7624 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7625 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 7626 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7627 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7628 | # libtool to hard-code these into programs |
| 7629 | ;; |
| 7630 | |
| 7631 | cygwin* | mingw* | pw32*) |
| 7632 | version_type=windows |
| 7633 | shrext_cmds=".dll" |
| 7634 | need_version=no |
| 7635 | need_lib_prefix=no |
| 7636 | |
| 7637 | case $GCC,$host_os in |
| 7638 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 7639 | library_names_spec='$libname.dll.a' |
| 7640 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7641 | postinstall_cmds='base_file=`basename \${file}`~ |
| 7642 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 7643 | dldir=$destdir/`dirname \$dlpath`~ |
| 7644 | test -d \$dldir || mkdir -p \$dldir~ |
| 7645 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 7646 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 7647 | dlpath=$dir/\$dldll~ |
| 7648 | $rm \$dlpath' |
| 7649 | shlibpath_overrides_runpath=yes |
| 7650 | |
| 7651 | case $host_os in |
| 7652 | cygwin*) |
| 7653 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7654 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7655 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 7656 | ;; |
| 7657 | mingw*) |
| 7658 | # MinGW DLLs use traditional 'lib' prefix |
| 7659 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7660 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7661 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 7662 | # It is most probably a Windows format PATH printed by |
| 7663 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7664 | # path with ; separators, and with drive letters. We can handle the |
| 7665 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7666 | # especially as we might pass files found there to a mingw objdump, |
| 7667 | # which wouldn't understand a cygwinified path. Ahh. |
| 7668 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7669 | else |
| 7670 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7671 | fi |
| 7672 | ;; |
| 7673 | pw32*) |
| 7674 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7675 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 7676 | ;; |
| 7677 | esac |
| 7678 | ;; |
| 7679 | |
| 7680 | *) |
| 7681 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 7682 | ;; |
| 7683 | esac |
| 7684 | dynamic_linker='Win32 ld.exe' |
| 7685 | # FIXME: first we should search . and the directory the executable is in |
| 7686 | shlibpath_var=PATH |
| 7687 | ;; |
| 7688 | |
| 7689 | darwin* | rhapsody*) |
| 7690 | dynamic_linker="$host_os dyld" |
| 7691 | version_type=darwin |
| 7692 | need_lib_prefix=no |
| 7693 | need_version=no |
| 7694 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 7695 | soname_spec='${libname}${release}${major}$shared_ext' |
| 7696 | shlibpath_overrides_runpath=yes |
| 7697 | shlibpath_var=DYLD_LIBRARY_PATH |
| 7698 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 7699 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7700 | if test "$GCC" = yes; then |
| 7701 | 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"` |
| 7702 | else |
| 7703 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 7704 | fi |
| 7705 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7706 | ;; |
| 7707 | |
| 7708 | dgux*) |
| 7709 | version_type=linux |
| 7710 | need_lib_prefix=no |
| 7711 | need_version=no |
| 7712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7713 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7714 | shlibpath_var=LD_LIBRARY_PATH |
| 7715 | ;; |
| 7716 | |
| 7717 | freebsd1*) |
| 7718 | dynamic_linker=no |
| 7719 | ;; |
| 7720 | |
| 7721 | kfreebsd*-gnu) |
| 7722 | version_type=linux |
| 7723 | need_lib_prefix=no |
| 7724 | need_version=no |
| 7725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7727 | shlibpath_var=LD_LIBRARY_PATH |
| 7728 | shlibpath_overrides_runpath=no |
| 7729 | hardcode_into_libs=yes |
| 7730 | dynamic_linker='GNU ld.so' |
| 7731 | ;; |
| 7732 | |
| 7733 | freebsd*) |
| 7734 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7735 | version_type=freebsd-$objformat |
| 7736 | case $version_type in |
| 7737 | freebsd-elf*) |
| 7738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 7739 | need_version=no |
| 7740 | need_lib_prefix=no |
| 7741 | ;; |
| 7742 | freebsd-*) |
| 7743 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 7744 | need_version=yes |
| 7745 | ;; |
| 7746 | esac |
| 7747 | shlibpath_var=LD_LIBRARY_PATH |
| 7748 | case $host_os in |
| 7749 | freebsd2*) |
| 7750 | shlibpath_overrides_runpath=yes |
| 7751 | ;; |
| 7752 | freebsd3.01* | freebsdelf3.01*) |
| 7753 | shlibpath_overrides_runpath=yes |
| 7754 | hardcode_into_libs=yes |
| 7755 | ;; |
| 7756 | *) # from 3.2 on |
| 7757 | shlibpath_overrides_runpath=no |
| 7758 | hardcode_into_libs=yes |
| 7759 | ;; |
| 7760 | esac |
| 7761 | ;; |
| 7762 | |
| 7763 | gnu*) |
| 7764 | version_type=linux |
| 7765 | need_lib_prefix=no |
| 7766 | need_version=no |
| 7767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7769 | shlibpath_var=LD_LIBRARY_PATH |
| 7770 | hardcode_into_libs=yes |
| 7771 | ;; |
| 7772 | |
| 7773 | hpux9* | hpux10* | hpux11*) |
| 7774 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7775 | # link against other versions. |
| 7776 | version_type=sunos |
| 7777 | need_lib_prefix=no |
| 7778 | need_version=no |
| 7779 | case "$host_cpu" in |
| 7780 | ia64*) |
| 7781 | shrext_cmds='.so' |
| 7782 | hardcode_into_libs=yes |
| 7783 | dynamic_linker="$host_os dld.so" |
| 7784 | shlibpath_var=LD_LIBRARY_PATH |
| 7785 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7787 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7788 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7789 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7790 | else |
| 7791 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7792 | fi |
| 7793 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7794 | ;; |
| 7795 | hppa*64*) |
| 7796 | shrext_cmds='.sl' |
| 7797 | hardcode_into_libs=yes |
| 7798 | dynamic_linker="$host_os dld.sl" |
| 7799 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7800 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7802 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7803 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7804 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7805 | ;; |
| 7806 | *) |
| 7807 | shrext_cmds='.sl' |
| 7808 | dynamic_linker="$host_os dld.sl" |
| 7809 | shlibpath_var=SHLIB_PATH |
| 7810 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7812 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7813 | ;; |
| 7814 | esac |
| 7815 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7816 | postinstall_cmds='chmod 555 $lib' |
| 7817 | ;; |
| 7818 | |
| 7819 | irix5* | irix6* | nonstopux*) |
| 7820 | case $host_os in |
| 7821 | nonstopux*) version_type=nonstopux ;; |
| 7822 | *) |
| 7823 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7824 | version_type=linux |
| 7825 | else |
| 7826 | version_type=irix |
| 7827 | fi ;; |
| 7828 | esac |
| 7829 | need_lib_prefix=no |
| 7830 | need_version=no |
| 7831 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 7833 | case $host_os in |
| 7834 | irix5* | nonstopux*) |
| 7835 | libsuff= shlibsuff= |
| 7836 | ;; |
| 7837 | *) |
| 7838 | case $LD in # libtool.m4 will add one of these switches to LD |
| 7839 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7840 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7841 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7842 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7843 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7844 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 7845 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7846 | esac |
| 7847 | ;; |
| 7848 | esac |
| 7849 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7850 | shlibpath_overrides_runpath=no |
| 7851 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7852 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 7853 | hardcode_into_libs=yes |
| 7854 | ;; |
| 7855 | |
| 7856 | # No shared lib support for Linux oldld, aout, or coff. |
| 7857 | linux*oldld* | linux*aout* | linux*coff*) |
| 7858 | dynamic_linker=no |
| 7859 | ;; |
| 7860 | |
| 7861 | # This must be Linux ELF. |
| 7862 | linux*) |
| 7863 | version_type=linux |
| 7864 | need_lib_prefix=no |
| 7865 | need_version=no |
| 7866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7867 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7869 | shlibpath_var=LD_LIBRARY_PATH |
| 7870 | shlibpath_overrides_runpath=no |
| 7871 | # This implies no fast_install, which is unacceptable. |
| 7872 | # Some rework will be needed to allow for fast_install |
| 7873 | # before this can be enabled. |
| 7874 | hardcode_into_libs=yes |
| 7875 | |
| 7876 | # Append ld.so.conf contents to the search path |
| 7877 | if test -f /etc/ld.so.conf; then |
| 7878 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 7879 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 7880 | fi |
| 7881 | |
| 7882 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7883 | # powerpc, because MkLinux only supported shared libraries with the |
| 7884 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7885 | # most powerpc-linux boxes support dynamic linking these days and |
| 7886 | # people can always --disable-shared, the test was removed, and we |
| 7887 | # assume the GNU/Linux dynamic linker is in use. |
| 7888 | dynamic_linker='GNU/Linux ld.so' |
| 7889 | ;; |
| 7890 | |
| 7891 | netbsdelf*-gnu) |
| 7892 | version_type=linux |
| 7893 | need_lib_prefix=no |
| 7894 | need_version=no |
| 7895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7896 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7897 | shlibpath_var=LD_LIBRARY_PATH |
| 7898 | shlibpath_overrides_runpath=no |
| 7899 | hardcode_into_libs=yes |
| 7900 | dynamic_linker='NetBSD ld.elf_so' |
| 7901 | ;; |
| 7902 | |
| 7903 | knetbsd*-gnu) |
| 7904 | version_type=linux |
| 7905 | need_lib_prefix=no |
| 7906 | need_version=no |
| 7907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7908 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7909 | shlibpath_var=LD_LIBRARY_PATH |
| 7910 | shlibpath_overrides_runpath=no |
| 7911 | hardcode_into_libs=yes |
| 7912 | dynamic_linker='GNU ld.so' |
| 7913 | ;; |
| 7914 | |
| 7915 | netbsd*) |
| 7916 | version_type=sunos |
| 7917 | need_lib_prefix=no |
| 7918 | need_version=no |
| 7919 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7921 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7922 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7923 | else |
| 7924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7925 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7926 | dynamic_linker='NetBSD ld.elf_so' |
| 7927 | fi |
| 7928 | shlibpath_var=LD_LIBRARY_PATH |
| 7929 | shlibpath_overrides_runpath=yes |
| 7930 | hardcode_into_libs=yes |
| 7931 | ;; |
| 7932 | |
| 7933 | newsos6) |
| 7934 | version_type=linux |
| 7935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7936 | shlibpath_var=LD_LIBRARY_PATH |
| 7937 | shlibpath_overrides_runpath=yes |
| 7938 | ;; |
| 7939 | |
| 7940 | nto-qnx*) |
| 7941 | version_type=linux |
| 7942 | need_lib_prefix=no |
| 7943 | need_version=no |
| 7944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7945 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7946 | shlibpath_var=LD_LIBRARY_PATH |
| 7947 | shlibpath_overrides_runpath=yes |
| 7948 | ;; |
| 7949 | |
| 7950 | openbsd*) |
| 7951 | version_type=sunos |
| 7952 | need_lib_prefix=no |
| 7953 | need_version=yes |
| 7954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7955 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7956 | shlibpath_var=LD_LIBRARY_PATH |
| 7957 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7958 | case $host_os in |
| 7959 | openbsd2.[89] | openbsd2.[89].*) |
| 7960 | shlibpath_overrides_runpath=no |
| 7961 | ;; |
| 7962 | *) |
| 7963 | shlibpath_overrides_runpath=yes |
| 7964 | ;; |
| 7965 | esac |
| 7966 | else |
| 7967 | shlibpath_overrides_runpath=yes |
| 7968 | fi |
| 7969 | ;; |
| 7970 | |
| 7971 | os2*) |
| 7972 | libname_spec='$name' |
| 7973 | shrext_cmds=".dll" |
| 7974 | need_lib_prefix=no |
| 7975 | library_names_spec='$libname${shared_ext} $libname.a' |
| 7976 | dynamic_linker='OS/2 ld.exe' |
| 7977 | shlibpath_var=LIBPATH |
| 7978 | ;; |
| 7979 | |
| 7980 | osf3* | osf4* | osf5*) |
| 7981 | version_type=osf |
| 7982 | need_lib_prefix=no |
| 7983 | need_version=no |
| 7984 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7986 | shlibpath_var=LD_LIBRARY_PATH |
| 7987 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7988 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7989 | ;; |
| 7990 | |
| 7991 | sco3.2v5*) |
| 7992 | version_type=osf |
| 7993 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7995 | shlibpath_var=LD_LIBRARY_PATH |
| 7996 | ;; |
| 7997 | |
| 7998 | solaris*) |
| 7999 | version_type=linux |
| 8000 | need_lib_prefix=no |
| 8001 | need_version=no |
| 8002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8004 | shlibpath_var=LD_LIBRARY_PATH |
| 8005 | shlibpath_overrides_runpath=yes |
| 8006 | hardcode_into_libs=yes |
| 8007 | # ldd complains unless libraries are executable |
| 8008 | postinstall_cmds='chmod +x $lib' |
| 8009 | ;; |
| 8010 | |
| 8011 | sunos4*) |
| 8012 | version_type=sunos |
| 8013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8014 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8015 | shlibpath_var=LD_LIBRARY_PATH |
| 8016 | shlibpath_overrides_runpath=yes |
| 8017 | if test "$with_gnu_ld" = yes; then |
| 8018 | need_lib_prefix=no |
| 8019 | fi |
| 8020 | need_version=yes |
| 8021 | ;; |
| 8022 | |
| 8023 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 8024 | version_type=linux |
| 8025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8026 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8027 | shlibpath_var=LD_LIBRARY_PATH |
| 8028 | case $host_vendor in |
| 8029 | sni) |
| 8030 | shlibpath_overrides_runpath=no |
| 8031 | need_lib_prefix=no |
| 8032 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8033 | runpath_var=LD_RUN_PATH |
| 8034 | ;; |
| 8035 | siemens) |
| 8036 | need_lib_prefix=no |
| 8037 | ;; |
| 8038 | motorola) |
| 8039 | need_lib_prefix=no |
| 8040 | need_version=no |
| 8041 | shlibpath_overrides_runpath=no |
| 8042 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8043 | ;; |
| 8044 | esac |
| 8045 | ;; |
| 8046 | |
| 8047 | sysv4*MP*) |
| 8048 | if test -d /usr/nec ;then |
| 8049 | version_type=linux |
| 8050 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 8051 | soname_spec='$libname${shared_ext}.$major' |
| 8052 | shlibpath_var=LD_LIBRARY_PATH |
| 8053 | fi |
| 8054 | ;; |
| 8055 | |
| 8056 | uts4*) |
| 8057 | version_type=linux |
| 8058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8059 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8060 | shlibpath_var=LD_LIBRARY_PATH |
| 8061 | ;; |
| 8062 | |
| 8063 | *) |
| 8064 | dynamic_linker=no |
| 8065 | ;; |
| 8066 | esac |
| 8067 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 8068 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 8069 | test "$dynamic_linker" = no && can_build_shared=no |
| 8070 | |
| 8071 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 8072 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 8073 | hardcode_action= |
| 8074 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 8075 | test -n "$runpath_var " || \ |
| 8076 | test "X$hardcode_automatic"="Xyes" ; then |
| 8077 | |
| 8078 | # We can hardcode non-existant directories. |
| 8079 | if test "$hardcode_direct" != no && |
| 8080 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 8081 | # have to relink, otherwise we might link with an installed library |
| 8082 | # when we should be linking with a yet-to-be-installed one |
| 8083 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 8084 | test "$hardcode_minus_L" != no; then |
| 8085 | # Linking always hardcodes the temporary library directory. |
| 8086 | hardcode_action=relink |
| 8087 | else |
| 8088 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 8089 | hardcode_action=immediate |
| 8090 | fi |
| 8091 | else |
| 8092 | # We cannot hardcode anything, or else we can only hardcode existing |
| 8093 | # directories. |
| 8094 | hardcode_action=unsupported |
| 8095 | fi |
| 8096 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 8097 | echo "${ECHO_T}$hardcode_action" >&6 |
| 8098 | |
| 8099 | if test "$hardcode_action" = relink; then |
| 8100 | # Fast installation is not supported |
| 8101 | enable_fast_install=no |
| 8102 | elif test "$shlibpath_overrides_runpath" = yes || |
| 8103 | test "$enable_shared" = no; then |
| 8104 | # Fast installation is not necessary |
| 8105 | enable_fast_install=needless |
| 8106 | fi |
| 8107 | |
| 8108 | striplib= |
| 8109 | old_striplib= |
| 8110 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 8111 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 8112 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 8113 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 8114 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 8115 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8116 | echo "${ECHO_T}yes" >&6 |
| 8117 | else |
| 8118 | # FIXME - insert some real tests, host_os isn't really good enough |
| 8119 | case $host_os in |
| 8120 | darwin*) |
| 8121 | if test -n "$STRIP" ; then |
| 8122 | striplib="$STRIP -x" |
| 8123 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8124 | echo "${ECHO_T}yes" >&6 |
| 8125 | else |
| 8126 | echo "$as_me:$LINENO: result: no" >&5 |
| 8127 | echo "${ECHO_T}no" >&6 |
| 8128 | fi |
| 8129 | ;; |
| 8130 | *) |
| 8131 | echo "$as_me:$LINENO: result: no" >&5 |
| 8132 | echo "${ECHO_T}no" >&6 |
| 8133 | ;; |
| 8134 | esac |
| 8135 | fi |
| 8136 | |
| 8137 | if test "x$enable_dlopen" != xyes; then |
| 8138 | enable_dlopen=unknown |
| 8139 | enable_dlopen_self=unknown |
| 8140 | enable_dlopen_self_static=unknown |
| 8141 | else |
| 8142 | lt_cv_dlopen=no |
| 8143 | lt_cv_dlopen_libs= |
| 8144 | |
| 8145 | case $host_os in |
| 8146 | beos*) |
| 8147 | lt_cv_dlopen="load_add_on" |
| 8148 | lt_cv_dlopen_libs= |
| 8149 | lt_cv_dlopen_self=yes |
| 8150 | ;; |
| 8151 | |
| 8152 | mingw* | pw32*) |
| 8153 | lt_cv_dlopen="LoadLibrary" |
| 8154 | lt_cv_dlopen_libs= |
| 8155 | ;; |
| 8156 | |
| 8157 | cygwin*) |
| 8158 | lt_cv_dlopen="dlopen" |
| 8159 | lt_cv_dlopen_libs= |
| 8160 | ;; |
| 8161 | |
| 8162 | darwin*) |
| 8163 | # if libdl is installed we need to link against it |
| 8164 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8165 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8166 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8168 | else |
| 8169 | ac_check_lib_save_LIBS=$LIBS |
| 8170 | LIBS="-ldl $LIBS" |
| 8171 | cat >conftest.$ac_ext <<_ACEOF |
| 8172 | /* confdefs.h. */ |
| 8173 | _ACEOF |
| 8174 | cat confdefs.h >>conftest.$ac_ext |
| 8175 | cat >>conftest.$ac_ext <<_ACEOF |
| 8176 | /* end confdefs.h. */ |
| 8177 | |
| 8178 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8179 | #ifdef __cplusplus |
| 8180 | extern "C" |
| 8181 | #endif |
| 8182 | /* We use char because int might match the return type of a gcc2 |
| 8183 | builtin and then its argument prototype would still apply. */ |
| 8184 | char dlopen (); |
| 8185 | int |
| 8186 | main () |
| 8187 | { |
| 8188 | dlopen (); |
| 8189 | ; |
| 8190 | return 0; |
| 8191 | } |
| 8192 | _ACEOF |
| 8193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8195 | (eval $ac_link) 2>conftest.er1 |
| 8196 | ac_status=$? |
| 8197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8198 | rm -f conftest.er1 |
| 8199 | cat conftest.err >&5 |
| 8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8201 | (exit $ac_status); } && |
| 8202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8204 | (eval $ac_try) 2>&5 |
| 8205 | ac_status=$? |
| 8206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8207 | (exit $ac_status); }; } && |
| 8208 | { ac_try='test -s conftest$ac_exeext' |
| 8209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8210 | (eval $ac_try) 2>&5 |
| 8211 | ac_status=$? |
| 8212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8213 | (exit $ac_status); }; }; then |
| 8214 | ac_cv_lib_dl_dlopen=yes |
| 8215 | else |
| 8216 | echo "$as_me: failed program was:" >&5 |
| 8217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8218 | |
| 8219 | ac_cv_lib_dl_dlopen=no |
| 8220 | fi |
| 8221 | rm -f conftest.err conftest.$ac_objext \ |
| 8222 | conftest$ac_exeext conftest.$ac_ext |
| 8223 | LIBS=$ac_check_lib_save_LIBS |
| 8224 | fi |
| 8225 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8226 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8227 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8228 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8229 | else |
| 8230 | |
| 8231 | lt_cv_dlopen="dyld" |
| 8232 | lt_cv_dlopen_libs= |
| 8233 | lt_cv_dlopen_self=yes |
| 8234 | |
| 8235 | fi |
| 8236 | |
| 8237 | ;; |
| 8238 | |
| 8239 | *) |
| 8240 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8241 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 8242 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 8243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8244 | else |
| 8245 | cat >conftest.$ac_ext <<_ACEOF |
| 8246 | /* confdefs.h. */ |
| 8247 | _ACEOF |
| 8248 | cat confdefs.h >>conftest.$ac_ext |
| 8249 | cat >>conftest.$ac_ext <<_ACEOF |
| 8250 | /* end confdefs.h. */ |
| 8251 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 8252 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8253 | #define shl_load innocuous_shl_load |
| 8254 | |
| 8255 | /* System header to define __stub macros and hopefully few prototypes, |
| 8256 | which can conflict with char shl_load (); below. |
| 8257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8258 | <limits.h> exists even on freestanding compilers. */ |
| 8259 | |
| 8260 | #ifdef __STDC__ |
| 8261 | # include <limits.h> |
| 8262 | #else |
| 8263 | # include <assert.h> |
| 8264 | #endif |
| 8265 | |
| 8266 | #undef shl_load |
| 8267 | |
| 8268 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8269 | #ifdef __cplusplus |
| 8270 | extern "C" |
| 8271 | { |
| 8272 | #endif |
| 8273 | /* We use char because int might match the return type of a gcc2 |
| 8274 | builtin and then its argument prototype would still apply. */ |
| 8275 | char shl_load (); |
| 8276 | /* The GNU C library defines this for functions which it implements |
| 8277 | to always fail with ENOSYS. Some functions are actually named |
| 8278 | something starting with __ and the normal name is an alias. */ |
| 8279 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 8280 | choke me |
| 8281 | #else |
| 8282 | char (*f) () = shl_load; |
| 8283 | #endif |
| 8284 | #ifdef __cplusplus |
| 8285 | } |
| 8286 | #endif |
| 8287 | |
| 8288 | int |
| 8289 | main () |
| 8290 | { |
| 8291 | return f != shl_load; |
| 8292 | ; |
| 8293 | return 0; |
| 8294 | } |
| 8295 | _ACEOF |
| 8296 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8298 | (eval $ac_link) 2>conftest.er1 |
| 8299 | ac_status=$? |
| 8300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8301 | rm -f conftest.er1 |
| 8302 | cat conftest.err >&5 |
| 8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8304 | (exit $ac_status); } && |
| 8305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8307 | (eval $ac_try) 2>&5 |
| 8308 | ac_status=$? |
| 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8310 | (exit $ac_status); }; } && |
| 8311 | { ac_try='test -s conftest$ac_exeext' |
| 8312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8313 | (eval $ac_try) 2>&5 |
| 8314 | ac_status=$? |
| 8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8316 | (exit $ac_status); }; }; then |
| 8317 | ac_cv_func_shl_load=yes |
| 8318 | else |
| 8319 | echo "$as_me: failed program was:" >&5 |
| 8320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8321 | |
| 8322 | ac_cv_func_shl_load=no |
| 8323 | fi |
| 8324 | rm -f conftest.err conftest.$ac_objext \ |
| 8325 | conftest$ac_exeext conftest.$ac_ext |
| 8326 | fi |
| 8327 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8328 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 8329 | if test $ac_cv_func_shl_load = yes; then |
| 8330 | lt_cv_dlopen="shl_load" |
| 8331 | else |
| 8332 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8333 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8334 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8336 | else |
| 8337 | ac_check_lib_save_LIBS=$LIBS |
| 8338 | LIBS="-ldld $LIBS" |
| 8339 | cat >conftest.$ac_ext <<_ACEOF |
| 8340 | /* confdefs.h. */ |
| 8341 | _ACEOF |
| 8342 | cat confdefs.h >>conftest.$ac_ext |
| 8343 | cat >>conftest.$ac_ext <<_ACEOF |
| 8344 | /* end confdefs.h. */ |
| 8345 | |
| 8346 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8347 | #ifdef __cplusplus |
| 8348 | extern "C" |
| 8349 | #endif |
| 8350 | /* We use char because int might match the return type of a gcc2 |
| 8351 | builtin and then its argument prototype would still apply. */ |
| 8352 | char shl_load (); |
| 8353 | int |
| 8354 | main () |
| 8355 | { |
| 8356 | shl_load (); |
| 8357 | ; |
| 8358 | return 0; |
| 8359 | } |
| 8360 | _ACEOF |
| 8361 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8363 | (eval $ac_link) 2>conftest.er1 |
| 8364 | ac_status=$? |
| 8365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8366 | rm -f conftest.er1 |
| 8367 | cat conftest.err >&5 |
| 8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8369 | (exit $ac_status); } && |
| 8370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8372 | (eval $ac_try) 2>&5 |
| 8373 | ac_status=$? |
| 8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8375 | (exit $ac_status); }; } && |
| 8376 | { ac_try='test -s conftest$ac_exeext' |
| 8377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8378 | (eval $ac_try) 2>&5 |
| 8379 | ac_status=$? |
| 8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8381 | (exit $ac_status); }; }; then |
| 8382 | ac_cv_lib_dld_shl_load=yes |
| 8383 | else |
| 8384 | echo "$as_me: failed program was:" >&5 |
| 8385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8386 | |
| 8387 | ac_cv_lib_dld_shl_load=no |
| 8388 | fi |
| 8389 | rm -f conftest.err conftest.$ac_objext \ |
| 8390 | conftest$ac_exeext conftest.$ac_ext |
| 8391 | LIBS=$ac_check_lib_save_LIBS |
| 8392 | fi |
| 8393 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8394 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 8395 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 8396 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 8397 | else |
| 8398 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 8399 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 8400 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 8401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8402 | else |
| 8403 | cat >conftest.$ac_ext <<_ACEOF |
| 8404 | /* confdefs.h. */ |
| 8405 | _ACEOF |
| 8406 | cat confdefs.h >>conftest.$ac_ext |
| 8407 | cat >>conftest.$ac_ext <<_ACEOF |
| 8408 | /* end confdefs.h. */ |
| 8409 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 8410 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8411 | #define dlopen innocuous_dlopen |
| 8412 | |
| 8413 | /* System header to define __stub macros and hopefully few prototypes, |
| 8414 | which can conflict with char dlopen (); below. |
| 8415 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8416 | <limits.h> exists even on freestanding compilers. */ |
| 8417 | |
| 8418 | #ifdef __STDC__ |
| 8419 | # include <limits.h> |
| 8420 | #else |
| 8421 | # include <assert.h> |
| 8422 | #endif |
| 8423 | |
| 8424 | #undef dlopen |
| 8425 | |
| 8426 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8427 | #ifdef __cplusplus |
| 8428 | extern "C" |
| 8429 | { |
| 8430 | #endif |
| 8431 | /* We use char because int might match the return type of a gcc2 |
| 8432 | builtin and then its argument prototype would still apply. */ |
| 8433 | char dlopen (); |
| 8434 | /* The GNU C library defines this for functions which it implements |
| 8435 | to always fail with ENOSYS. Some functions are actually named |
| 8436 | something starting with __ and the normal name is an alias. */ |
| 8437 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 8438 | choke me |
| 8439 | #else |
| 8440 | char (*f) () = dlopen; |
| 8441 | #endif |
| 8442 | #ifdef __cplusplus |
| 8443 | } |
| 8444 | #endif |
| 8445 | |
| 8446 | int |
| 8447 | main () |
| 8448 | { |
| 8449 | return f != dlopen; |
| 8450 | ; |
| 8451 | return 0; |
| 8452 | } |
| 8453 | _ACEOF |
| 8454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8456 | (eval $ac_link) 2>conftest.er1 |
| 8457 | ac_status=$? |
| 8458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8459 | rm -f conftest.er1 |
| 8460 | cat conftest.err >&5 |
| 8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8462 | (exit $ac_status); } && |
| 8463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8465 | (eval $ac_try) 2>&5 |
| 8466 | ac_status=$? |
| 8467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8468 | (exit $ac_status); }; } && |
| 8469 | { ac_try='test -s conftest$ac_exeext' |
| 8470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8471 | (eval $ac_try) 2>&5 |
| 8472 | ac_status=$? |
| 8473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8474 | (exit $ac_status); }; }; then |
| 8475 | ac_cv_func_dlopen=yes |
| 8476 | else |
| 8477 | echo "$as_me: failed program was:" >&5 |
| 8478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8479 | |
| 8480 | ac_cv_func_dlopen=no |
| 8481 | fi |
| 8482 | rm -f conftest.err conftest.$ac_objext \ |
| 8483 | conftest$ac_exeext conftest.$ac_ext |
| 8484 | fi |
| 8485 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 8486 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 8487 | if test $ac_cv_func_dlopen = yes; then |
| 8488 | lt_cv_dlopen="dlopen" |
| 8489 | else |
| 8490 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8491 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8492 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8494 | else |
| 8495 | ac_check_lib_save_LIBS=$LIBS |
| 8496 | LIBS="-ldl $LIBS" |
| 8497 | cat >conftest.$ac_ext <<_ACEOF |
| 8498 | /* confdefs.h. */ |
| 8499 | _ACEOF |
| 8500 | cat confdefs.h >>conftest.$ac_ext |
| 8501 | cat >>conftest.$ac_ext <<_ACEOF |
| 8502 | /* end confdefs.h. */ |
| 8503 | |
| 8504 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8505 | #ifdef __cplusplus |
| 8506 | extern "C" |
| 8507 | #endif |
| 8508 | /* We use char because int might match the return type of a gcc2 |
| 8509 | builtin and then its argument prototype would still apply. */ |
| 8510 | char dlopen (); |
| 8511 | int |
| 8512 | main () |
| 8513 | { |
| 8514 | dlopen (); |
| 8515 | ; |
| 8516 | return 0; |
| 8517 | } |
| 8518 | _ACEOF |
| 8519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8521 | (eval $ac_link) 2>conftest.er1 |
| 8522 | ac_status=$? |
| 8523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8524 | rm -f conftest.er1 |
| 8525 | cat conftest.err >&5 |
| 8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8527 | (exit $ac_status); } && |
| 8528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8530 | (eval $ac_try) 2>&5 |
| 8531 | ac_status=$? |
| 8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8533 | (exit $ac_status); }; } && |
| 8534 | { ac_try='test -s conftest$ac_exeext' |
| 8535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8536 | (eval $ac_try) 2>&5 |
| 8537 | ac_status=$? |
| 8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8539 | (exit $ac_status); }; }; then |
| 8540 | ac_cv_lib_dl_dlopen=yes |
| 8541 | else |
| 8542 | echo "$as_me: failed program was:" >&5 |
| 8543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8544 | |
| 8545 | ac_cv_lib_dl_dlopen=no |
| 8546 | fi |
| 8547 | rm -f conftest.err conftest.$ac_objext \ |
| 8548 | conftest$ac_exeext conftest.$ac_ext |
| 8549 | LIBS=$ac_check_lib_save_LIBS |
| 8550 | fi |
| 8551 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8552 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8553 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8554 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8555 | else |
| 8556 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8557 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 8558 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8560 | else |
| 8561 | ac_check_lib_save_LIBS=$LIBS |
| 8562 | LIBS="-lsvld $LIBS" |
| 8563 | cat >conftest.$ac_ext <<_ACEOF |
| 8564 | /* confdefs.h. */ |
| 8565 | _ACEOF |
| 8566 | cat confdefs.h >>conftest.$ac_ext |
| 8567 | cat >>conftest.$ac_ext <<_ACEOF |
| 8568 | /* end confdefs.h. */ |
| 8569 | |
| 8570 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8571 | #ifdef __cplusplus |
| 8572 | extern "C" |
| 8573 | #endif |
| 8574 | /* We use char because int might match the return type of a gcc2 |
| 8575 | builtin and then its argument prototype would still apply. */ |
| 8576 | char dlopen (); |
| 8577 | int |
| 8578 | main () |
| 8579 | { |
| 8580 | dlopen (); |
| 8581 | ; |
| 8582 | return 0; |
| 8583 | } |
| 8584 | _ACEOF |
| 8585 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8587 | (eval $ac_link) 2>conftest.er1 |
| 8588 | ac_status=$? |
| 8589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8590 | rm -f conftest.er1 |
| 8591 | cat conftest.err >&5 |
| 8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8593 | (exit $ac_status); } && |
| 8594 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8596 | (eval $ac_try) 2>&5 |
| 8597 | ac_status=$? |
| 8598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8599 | (exit $ac_status); }; } && |
| 8600 | { ac_try='test -s conftest$ac_exeext' |
| 8601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8602 | (eval $ac_try) 2>&5 |
| 8603 | ac_status=$? |
| 8604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8605 | (exit $ac_status); }; }; then |
| 8606 | ac_cv_lib_svld_dlopen=yes |
| 8607 | else |
| 8608 | echo "$as_me: failed program was:" >&5 |
| 8609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8610 | |
| 8611 | ac_cv_lib_svld_dlopen=no |
| 8612 | fi |
| 8613 | rm -f conftest.err conftest.$ac_objext \ |
| 8614 | conftest$ac_exeext conftest.$ac_ext |
| 8615 | LIBS=$ac_check_lib_save_LIBS |
| 8616 | fi |
| 8617 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8618 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 8619 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8620 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 8621 | else |
| 8622 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8623 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 8624 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 8625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8626 | else |
| 8627 | ac_check_lib_save_LIBS=$LIBS |
| 8628 | LIBS="-ldld $LIBS" |
| 8629 | cat >conftest.$ac_ext <<_ACEOF |
| 8630 | /* confdefs.h. */ |
| 8631 | _ACEOF |
| 8632 | cat confdefs.h >>conftest.$ac_ext |
| 8633 | cat >>conftest.$ac_ext <<_ACEOF |
| 8634 | /* end confdefs.h. */ |
| 8635 | |
| 8636 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8637 | #ifdef __cplusplus |
| 8638 | extern "C" |
| 8639 | #endif |
| 8640 | /* We use char because int might match the return type of a gcc2 |
| 8641 | builtin and then its argument prototype would still apply. */ |
| 8642 | char dld_link (); |
| 8643 | int |
| 8644 | main () |
| 8645 | { |
| 8646 | dld_link (); |
| 8647 | ; |
| 8648 | return 0; |
| 8649 | } |
| 8650 | _ACEOF |
| 8651 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8653 | (eval $ac_link) 2>conftest.er1 |
| 8654 | ac_status=$? |
| 8655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8656 | rm -f conftest.er1 |
| 8657 | cat conftest.err >&5 |
| 8658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8659 | (exit $ac_status); } && |
| 8660 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8662 | (eval $ac_try) 2>&5 |
| 8663 | ac_status=$? |
| 8664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8665 | (exit $ac_status); }; } && |
| 8666 | { ac_try='test -s conftest$ac_exeext' |
| 8667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8668 | (eval $ac_try) 2>&5 |
| 8669 | ac_status=$? |
| 8670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8671 | (exit $ac_status); }; }; then |
| 8672 | ac_cv_lib_dld_dld_link=yes |
| 8673 | else |
| 8674 | echo "$as_me: failed program was:" >&5 |
| 8675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8676 | |
| 8677 | ac_cv_lib_dld_dld_link=no |
| 8678 | fi |
| 8679 | rm -f conftest.err conftest.$ac_objext \ |
| 8680 | conftest$ac_exeext conftest.$ac_ext |
| 8681 | LIBS=$ac_check_lib_save_LIBS |
| 8682 | fi |
| 8683 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8684 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 8685 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 8686 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 8687 | fi |
| 8688 | |
| 8689 | |
| 8690 | fi |
| 8691 | |
| 8692 | |
| 8693 | fi |
| 8694 | |
| 8695 | |
| 8696 | fi |
| 8697 | |
| 8698 | |
| 8699 | fi |
| 8700 | |
| 8701 | |
| 8702 | fi |
| 8703 | |
| 8704 | ;; |
| 8705 | esac |
| 8706 | |
| 8707 | if test "x$lt_cv_dlopen" != xno; then |
| 8708 | enable_dlopen=yes |
| 8709 | else |
| 8710 | enable_dlopen=no |
| 8711 | fi |
| 8712 | |
| 8713 | case $lt_cv_dlopen in |
| 8714 | dlopen) |
| 8715 | save_CPPFLAGS="$CPPFLAGS" |
| 8716 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 8717 | |
| 8718 | save_LDFLAGS="$LDFLAGS" |
| 8719 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8720 | |
| 8721 | save_LIBS="$LIBS" |
| 8722 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8723 | |
| 8724 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 8725 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8726 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8728 | else |
| 8729 | if test "$cross_compiling" = yes; then : |
| 8730 | lt_cv_dlopen_self=cross |
| 8731 | else |
| 8732 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8733 | lt_status=$lt_dlunknown |
| 8734 | cat > conftest.$ac_ext <<EOF |
| 8735 | #line 8735 "configure" |
| 8736 | #include "confdefs.h" |
| 8737 | |
| 8738 | #if HAVE_DLFCN_H |
| 8739 | #include <dlfcn.h> |
| 8740 | #endif |
| 8741 | |
| 8742 | #include <stdio.h> |
| 8743 | |
| 8744 | #ifdef RTLD_GLOBAL |
| 8745 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8746 | #else |
| 8747 | # ifdef DL_GLOBAL |
| 8748 | # define LT_DLGLOBAL DL_GLOBAL |
| 8749 | # else |
| 8750 | # define LT_DLGLOBAL 0 |
| 8751 | # endif |
| 8752 | #endif |
| 8753 | |
| 8754 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8755 | find out it does not work in some platform. */ |
| 8756 | #ifndef LT_DLLAZY_OR_NOW |
| 8757 | # ifdef RTLD_LAZY |
| 8758 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8759 | # else |
| 8760 | # ifdef DL_LAZY |
| 8761 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8762 | # else |
| 8763 | # ifdef RTLD_NOW |
| 8764 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8765 | # else |
| 8766 | # ifdef DL_NOW |
| 8767 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8768 | # else |
| 8769 | # define LT_DLLAZY_OR_NOW 0 |
| 8770 | # endif |
| 8771 | # endif |
| 8772 | # endif |
| 8773 | # endif |
| 8774 | #endif |
| 8775 | |
| 8776 | #ifdef __cplusplus |
| 8777 | extern "C" void exit (int); |
| 8778 | #endif |
| 8779 | |
| 8780 | void fnord() { int i=42;} |
| 8781 | int main () |
| 8782 | { |
| 8783 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8784 | int status = $lt_dlunknown; |
| 8785 | |
| 8786 | if (self) |
| 8787 | { |
| 8788 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8789 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8790 | /* dlclose (self); */ |
| 8791 | } |
| 8792 | |
| 8793 | exit (status); |
| 8794 | } |
| 8795 | EOF |
| 8796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8797 | (eval $ac_link) 2>&5 |
| 8798 | ac_status=$? |
| 8799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8800 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8801 | (./conftest; exit; ) 2>/dev/null |
| 8802 | lt_status=$? |
| 8803 | case x$lt_status in |
| 8804 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8805 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8806 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8807 | esac |
| 8808 | else : |
| 8809 | # compilation failed |
| 8810 | lt_cv_dlopen_self=no |
| 8811 | fi |
| 8812 | fi |
| 8813 | rm -fr conftest* |
| 8814 | |
| 8815 | |
| 8816 | fi |
| 8817 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 8818 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8819 | |
| 8820 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8821 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 8822 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8823 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8824 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8826 | else |
| 8827 | if test "$cross_compiling" = yes; then : |
| 8828 | lt_cv_dlopen_self_static=cross |
| 8829 | else |
| 8830 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8831 | lt_status=$lt_dlunknown |
| 8832 | cat > conftest.$ac_ext <<EOF |
| 8833 | #line 8833 "configure" |
| 8834 | #include "confdefs.h" |
| 8835 | |
| 8836 | #if HAVE_DLFCN_H |
| 8837 | #include <dlfcn.h> |
| 8838 | #endif |
| 8839 | |
| 8840 | #include <stdio.h> |
| 8841 | |
| 8842 | #ifdef RTLD_GLOBAL |
| 8843 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8844 | #else |
| 8845 | # ifdef DL_GLOBAL |
| 8846 | # define LT_DLGLOBAL DL_GLOBAL |
| 8847 | # else |
| 8848 | # define LT_DLGLOBAL 0 |
| 8849 | # endif |
| 8850 | #endif |
| 8851 | |
| 8852 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8853 | find out it does not work in some platform. */ |
| 8854 | #ifndef LT_DLLAZY_OR_NOW |
| 8855 | # ifdef RTLD_LAZY |
| 8856 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8857 | # else |
| 8858 | # ifdef DL_LAZY |
| 8859 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8860 | # else |
| 8861 | # ifdef RTLD_NOW |
| 8862 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8863 | # else |
| 8864 | # ifdef DL_NOW |
| 8865 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8866 | # else |
| 8867 | # define LT_DLLAZY_OR_NOW 0 |
| 8868 | # endif |
| 8869 | # endif |
| 8870 | # endif |
| 8871 | # endif |
| 8872 | #endif |
| 8873 | |
| 8874 | #ifdef __cplusplus |
| 8875 | extern "C" void exit (int); |
| 8876 | #endif |
| 8877 | |
| 8878 | void fnord() { int i=42;} |
| 8879 | int main () |
| 8880 | { |
| 8881 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8882 | int status = $lt_dlunknown; |
| 8883 | |
| 8884 | if (self) |
| 8885 | { |
| 8886 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8887 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8888 | /* dlclose (self); */ |
| 8889 | } |
| 8890 | |
| 8891 | exit (status); |
| 8892 | } |
| 8893 | EOF |
| 8894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8895 | (eval $ac_link) 2>&5 |
| 8896 | ac_status=$? |
| 8897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8898 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8899 | (./conftest; exit; ) 2>/dev/null |
| 8900 | lt_status=$? |
| 8901 | case x$lt_status in |
| 8902 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8903 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8904 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8905 | esac |
| 8906 | else : |
| 8907 | # compilation failed |
| 8908 | lt_cv_dlopen_self_static=no |
| 8909 | fi |
| 8910 | fi |
| 8911 | rm -fr conftest* |
| 8912 | |
| 8913 | |
| 8914 | fi |
| 8915 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 8916 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 8917 | fi |
| 8918 | |
| 8919 | CPPFLAGS="$save_CPPFLAGS" |
| 8920 | LDFLAGS="$save_LDFLAGS" |
| 8921 | LIBS="$save_LIBS" |
| 8922 | ;; |
| 8923 | esac |
| 8924 | |
| 8925 | case $lt_cv_dlopen_self in |
| 8926 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 8927 | *) enable_dlopen_self=unknown ;; |
| 8928 | esac |
| 8929 | |
| 8930 | case $lt_cv_dlopen_self_static in |
| 8931 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 8932 | *) enable_dlopen_self_static=unknown ;; |
| 8933 | esac |
| 8934 | fi |
| 8935 | |
| 8936 | |
| 8937 | # Report which librarie types wil actually be built |
| 8938 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8939 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8940 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8941 | echo "${ECHO_T}$can_build_shared" >&6 |
| 8942 | |
| 8943 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 8944 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 8945 | test "$can_build_shared" = "no" && enable_shared=no |
| 8946 | |
| 8947 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 8948 | # are all built from PIC. |
| 8949 | case "$host_os" in |
| 8950 | aix3*) |
| 8951 | test "$enable_shared" = yes && enable_static=no |
| 8952 | if test -n "$RANLIB"; then |
| 8953 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 8954 | postinstall_cmds='$RANLIB $lib' |
| 8955 | fi |
| 8956 | ;; |
| 8957 | |
| 8958 | aix4* | aix5*) |
| 8959 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 8960 | test "$enable_shared" = yes && enable_static=no |
| 8961 | fi |
| 8962 | ;; |
| 8963 | darwin* | rhapsody*) |
| 8964 | if test "$GCC" = yes; then |
| 8965 | archive_cmds_need_lc=no |
| 8966 | case "$host_os" in |
| 8967 | rhapsody* | darwin1.[012]) |
| 8968 | allow_undefined_flag='-undefined suppress' |
| 8969 | ;; |
| 8970 | *) # Darwin 1.3 on |
| 8971 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8972 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8973 | else |
| 8974 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8975 | 10.[012]) |
| 8976 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8977 | ;; |
| 8978 | 10.*) |
| 8979 | allow_undefined_flag='-undefined dynamic_lookup' |
| 8980 | ;; |
| 8981 | esac |
| 8982 | fi |
| 8983 | ;; |
| 8984 | esac |
| 8985 | output_verbose_link_cmd='echo' |
| 8986 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 8987 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8988 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 8989 | 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}' |
| 8990 | 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}' |
| 8991 | hardcode_direct=no |
| 8992 | hardcode_automatic=yes |
| 8993 | hardcode_shlibpath_var=unsupported |
| 8994 | whole_archive_flag_spec='-all_load $convenience' |
| 8995 | link_all_deplibs=yes |
| 8996 | else |
| 8997 | ld_shlibs=no |
| 8998 | fi |
| 8999 | ;; |
| 9000 | esac |
| 9001 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 9002 | echo "${ECHO_T}$enable_shared" >&6 |
| 9003 | |
| 9004 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 9005 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 9006 | # Make sure either enable_shared or enable_static is yes. |
| 9007 | test "$enable_shared" = yes || enable_static=yes |
| 9008 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 9009 | echo "${ECHO_T}$enable_static" >&6 |
| 9010 | |
| 9011 | # The else clause should only fire when bootstrapping the |
| 9012 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 9013 | # with your package, and you will get complaints that there are |
| 9014 | # no rules to generate ltmain.sh. |
| 9015 | if test -f "$ltmain"; then |
| 9016 | # See if we are running on zsh, and set the options which allow our commands through |
| 9017 | # without removal of \ escapes. |
| 9018 | if test -n "${ZSH_VERSION+set}" ; then |
| 9019 | setopt NO_GLOB_SUBST |
| 9020 | fi |
| 9021 | # Now quote all the things that may contain metacharacters while being |
| 9022 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 9023 | # variables and quote the copies for generation of the libtool script. |
| 9024 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 9025 | SED SHELL STRIP \ |
| 9026 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 9027 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 9028 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 9029 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 9030 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 9031 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 9032 | old_postinstall_cmds old_postuninstall_cmds \ |
| 9033 | compiler \ |
| 9034 | CC \ |
| 9035 | LD \ |
| 9036 | lt_prog_compiler_wl \ |
| 9037 | lt_prog_compiler_pic \ |
| 9038 | lt_prog_compiler_static \ |
| 9039 | lt_prog_compiler_no_builtin_flag \ |
| 9040 | export_dynamic_flag_spec \ |
| 9041 | thread_safe_flag_spec \ |
| 9042 | whole_archive_flag_spec \ |
| 9043 | enable_shared_with_static_runtimes \ |
| 9044 | old_archive_cmds \ |
| 9045 | old_archive_from_new_cmds \ |
| 9046 | predep_objects \ |
| 9047 | postdep_objects \ |
| 9048 | predeps \ |
| 9049 | postdeps \ |
| 9050 | compiler_lib_search_path \ |
| 9051 | archive_cmds \ |
| 9052 | archive_expsym_cmds \ |
| 9053 | postinstall_cmds \ |
| 9054 | postuninstall_cmds \ |
| 9055 | old_archive_from_expsyms_cmds \ |
| 9056 | allow_undefined_flag \ |
| 9057 | no_undefined_flag \ |
| 9058 | export_symbols_cmds \ |
| 9059 | hardcode_libdir_flag_spec \ |
| 9060 | hardcode_libdir_flag_spec_ld \ |
| 9061 | hardcode_libdir_separator \ |
| 9062 | hardcode_automatic \ |
| 9063 | module_cmds \ |
| 9064 | module_expsym_cmds \ |
| 9065 | lt_cv_prog_compiler_c_o \ |
| 9066 | exclude_expsyms \ |
| 9067 | include_expsyms; do |
| 9068 | |
| 9069 | case $var in |
| 9070 | old_archive_cmds | \ |
| 9071 | old_archive_from_new_cmds | \ |
| 9072 | archive_cmds | \ |
| 9073 | archive_expsym_cmds | \ |
| 9074 | module_cmds | \ |
| 9075 | module_expsym_cmds | \ |
| 9076 | old_archive_from_expsyms_cmds | \ |
| 9077 | export_symbols_cmds | \ |
| 9078 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 9079 | postinstall_cmds | postuninstall_cmds | \ |
| 9080 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 9081 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 9082 | # Double-quote double-evaled strings. |
| 9083 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 9084 | ;; |
| 9085 | *) |
| 9086 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 9087 | ;; |
| 9088 | esac |
| 9089 | done |
| 9090 | |
| 9091 | case $lt_echo in |
| 9092 | *'\$0 --fallback-echo"') |
| 9093 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 9094 | ;; |
| 9095 | esac |
| 9096 | |
| 9097 | cfgfile="${ofile}T" |
| 9098 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 9099 | $rm -f "$cfgfile" |
| 9100 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 9101 | echo "$as_me: creating $ofile" >&6;} |
| 9102 | |
| 9103 | cat <<__EOF__ >> "$cfgfile" |
| 9104 | #! $SHELL |
| 9105 | |
| 9106 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 9107 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 9108 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 9109 | # |
| 9110 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 9111 | # Free Software Foundation, Inc. |
| 9112 | # |
| 9113 | # This file is part of GNU Libtool: |
| 9114 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 9115 | # |
| 9116 | # This program is free software; you can redistribute it and/or modify |
| 9117 | # it under the terms of the GNU General Public License as published by |
| 9118 | # the Free Software Foundation; either version 2 of the License, or |
| 9119 | # (at your option) any later version. |
| 9120 | # |
| 9121 | # This program is distributed in the hope that it will be useful, but |
| 9122 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9123 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 9124 | # General Public License for more details. |
| 9125 | # |
| 9126 | # You should have received a copy of the GNU General Public License |
| 9127 | # along with this program; if not, write to the Free Software |
| 9128 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 9129 | # |
| 9130 | # As a special exception to the GNU General Public License, if you |
| 9131 | # distribute this file as part of a program that contains a |
| 9132 | # configuration script generated by Autoconf, you may include it under |
| 9133 | # the same distribution terms that you use for the rest of that program. |
| 9134 | |
| 9135 | # A sed program that does not truncate output. |
| 9136 | SED=$lt_SED |
| 9137 | |
| 9138 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 9139 | Xsed="$SED -e s/^X//" |
| 9140 | |
| 9141 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 9142 | # if CDPATH is set. |
| 9143 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 9144 | |
| 9145 | # The names of the tagged configurations supported by this script. |
| 9146 | available_tags= |
| 9147 | |
| 9148 | # ### BEGIN LIBTOOL CONFIG |
| 9149 | |
| 9150 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 9151 | |
| 9152 | # Shell to use when invoking shell scripts. |
| 9153 | SHELL=$lt_SHELL |
| 9154 | |
| 9155 | # Whether or not to build shared libraries. |
| 9156 | build_libtool_libs=$enable_shared |
| 9157 | |
| 9158 | # Whether or not to build static libraries. |
| 9159 | build_old_libs=$enable_static |
| 9160 | |
| 9161 | # Whether or not to add -lc for building shared libraries. |
| 9162 | build_libtool_need_lc=$archive_cmds_need_lc |
| 9163 | |
| 9164 | # Whether or not to disallow shared libs when runtime libs are static |
| 9165 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 9166 | |
| 9167 | # Whether or not to optimize for fast installation. |
| 9168 | fast_install=$enable_fast_install |
| 9169 | |
| 9170 | # The host system. |
| 9171 | host_alias=$host_alias |
| 9172 | host=$host |
| 9173 | |
| 9174 | # An echo program that does not interpret backslashes. |
| 9175 | echo=$lt_echo |
| 9176 | |
| 9177 | # The archiver. |
| 9178 | AR=$lt_AR |
| 9179 | AR_FLAGS=$lt_AR_FLAGS |
| 9180 | |
| 9181 | # A C compiler. |
| 9182 | LTCC=$lt_LTCC |
| 9183 | |
| 9184 | # A language-specific compiler. |
| 9185 | CC=$lt_compiler |
| 9186 | |
| 9187 | # Is the compiler the GNU C compiler? |
| 9188 | with_gcc=$GCC |
| 9189 | |
| 9190 | # An ERE matcher. |
| 9191 | EGREP=$lt_EGREP |
| 9192 | |
| 9193 | # The linker used to build libraries. |
| 9194 | LD=$lt_LD |
| 9195 | |
| 9196 | # Whether we need hard or soft links. |
| 9197 | LN_S=$lt_LN_S |
| 9198 | |
| 9199 | # A BSD-compatible nm program. |
| 9200 | NM=$lt_NM |
| 9201 | |
| 9202 | # A symbol stripping program |
| 9203 | STRIP=$lt_STRIP |
| 9204 | |
| 9205 | # Used to examine libraries when file_magic_cmd begins "file" |
| 9206 | MAGIC_CMD=$MAGIC_CMD |
| 9207 | |
| 9208 | # Used on cygwin: DLL creation program. |
| 9209 | DLLTOOL="$DLLTOOL" |
| 9210 | |
| 9211 | # Used on cygwin: object dumper. |
| 9212 | OBJDUMP="$OBJDUMP" |
| 9213 | |
| 9214 | # Used on cygwin: assembler. |
| 9215 | AS="$AS" |
| 9216 | |
| 9217 | # The name of the directory that contains temporary libtool files. |
| 9218 | objdir=$objdir |
| 9219 | |
| 9220 | # How to create reloadable object files. |
| 9221 | reload_flag=$lt_reload_flag |
| 9222 | reload_cmds=$lt_reload_cmds |
| 9223 | |
| 9224 | # How to pass a linker flag through the compiler. |
| 9225 | wl=$lt_lt_prog_compiler_wl |
| 9226 | |
| 9227 | # Object file suffix (normally "o"). |
| 9228 | objext="$ac_objext" |
| 9229 | |
| 9230 | # Old archive suffix (normally "a"). |
| 9231 | libext="$libext" |
| 9232 | |
| 9233 | # Shared library suffix (normally ".so"). |
| 9234 | shrext_cmds='$shrext_cmds' |
| 9235 | |
| 9236 | # Executable file suffix (normally ""). |
| 9237 | exeext="$exeext" |
| 9238 | |
| 9239 | # Additional compiler flags for building library objects. |
| 9240 | pic_flag=$lt_lt_prog_compiler_pic |
| 9241 | pic_mode=$pic_mode |
| 9242 | |
| 9243 | # What is the maximum length of a command? |
| 9244 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 9245 | |
| 9246 | # Does compiler simultaneously support -c and -o options? |
| 9247 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 9248 | |
| 9249 | # Must we lock files when doing compilation ? |
| 9250 | need_locks=$lt_need_locks |
| 9251 | |
| 9252 | # Do we need the lib prefix for modules? |
| 9253 | need_lib_prefix=$need_lib_prefix |
| 9254 | |
| 9255 | # Do we need a version for libraries? |
| 9256 | need_version=$need_version |
| 9257 | |
| 9258 | # Whether dlopen is supported. |
| 9259 | dlopen_support=$enable_dlopen |
| 9260 | |
| 9261 | # Whether dlopen of programs is supported. |
| 9262 | dlopen_self=$enable_dlopen_self |
| 9263 | |
| 9264 | # Whether dlopen of statically linked programs is supported. |
| 9265 | dlopen_self_static=$enable_dlopen_self_static |
| 9266 | |
| 9267 | # Compiler flag to prevent dynamic linking. |
| 9268 | link_static_flag=$lt_lt_prog_compiler_static |
| 9269 | |
| 9270 | # Compiler flag to turn off builtin functions. |
| 9271 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 9272 | |
| 9273 | # Compiler flag to allow reflexive dlopens. |
| 9274 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 9275 | |
| 9276 | # Compiler flag to generate shared objects directly from archives. |
| 9277 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 9278 | |
| 9279 | # Compiler flag to generate thread-safe objects. |
| 9280 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 9281 | |
| 9282 | # Library versioning type. |
| 9283 | version_type=$version_type |
| 9284 | |
| 9285 | # Format of library name prefix. |
| 9286 | libname_spec=$lt_libname_spec |
| 9287 | |
| 9288 | # List of archive names. First name is the real one, the rest are links. |
| 9289 | # The last name is the one that the linker finds with -lNAME. |
| 9290 | library_names_spec=$lt_library_names_spec |
| 9291 | |
| 9292 | # The coded name of the library, if different from the real name. |
| 9293 | soname_spec=$lt_soname_spec |
| 9294 | |
| 9295 | # Commands used to build and install an old-style archive. |
| 9296 | RANLIB=$lt_RANLIB |
| 9297 | old_archive_cmds=$lt_old_archive_cmds |
| 9298 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 9299 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 9300 | |
| 9301 | # Create an old-style archive from a shared archive. |
| 9302 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 9303 | |
| 9304 | # Create a temporary old-style archive to link instead of a shared archive. |
| 9305 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 9306 | |
| 9307 | # Commands used to build and install a shared archive. |
| 9308 | archive_cmds=$lt_archive_cmds |
| 9309 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 9310 | postinstall_cmds=$lt_postinstall_cmds |
| 9311 | postuninstall_cmds=$lt_postuninstall_cmds |
| 9312 | |
| 9313 | # Commands used to build a loadable module (assumed same as above if empty) |
| 9314 | module_cmds=$lt_module_cmds |
| 9315 | module_expsym_cmds=$lt_module_expsym_cmds |
| 9316 | |
| 9317 | # Commands to strip libraries. |
| 9318 | old_striplib=$lt_old_striplib |
| 9319 | striplib=$lt_striplib |
| 9320 | |
| 9321 | # Dependencies to place before the objects being linked to create a |
| 9322 | # shared library. |
| 9323 | predep_objects=$lt_predep_objects |
| 9324 | |
| 9325 | # Dependencies to place after the objects being linked to create a |
| 9326 | # shared library. |
| 9327 | postdep_objects=$lt_postdep_objects |
| 9328 | |
| 9329 | # Dependencies to place before the objects being linked to create a |
| 9330 | # shared library. |
| 9331 | predeps=$lt_predeps |
| 9332 | |
| 9333 | # Dependencies to place after the objects being linked to create a |
| 9334 | # shared library. |
| 9335 | postdeps=$lt_postdeps |
| 9336 | |
| 9337 | # The library search path used internally by the compiler when linking |
| 9338 | # a shared library. |
| 9339 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 9340 | |
| 9341 | # Method to check whether dependent libraries are shared objects. |
| 9342 | deplibs_check_method=$lt_deplibs_check_method |
| 9343 | |
| 9344 | # Command to use when deplibs_check_method == file_magic. |
| 9345 | file_magic_cmd=$lt_file_magic_cmd |
| 9346 | |
| 9347 | # Flag that allows shared libraries with undefined symbols to be built. |
| 9348 | allow_undefined_flag=$lt_allow_undefined_flag |
| 9349 | |
| 9350 | # Flag that forces no undefined symbols. |
| 9351 | no_undefined_flag=$lt_no_undefined_flag |
| 9352 | |
| 9353 | # Commands used to finish a libtool library installation in a directory. |
| 9354 | finish_cmds=$lt_finish_cmds |
| 9355 | |
| 9356 | # Same as above, but a single script fragment to be evaled but not shown. |
| 9357 | finish_eval=$lt_finish_eval |
| 9358 | |
| 9359 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 9360 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 9361 | |
| 9362 | # Transform the output of nm in a proper C declaration |
| 9363 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 9364 | |
| 9365 | # Transform the output of nm in a C name address pair |
| 9366 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 9367 | |
| 9368 | # This is the shared library runtime path variable. |
| 9369 | runpath_var=$runpath_var |
| 9370 | |
| 9371 | # This is the shared library path variable. |
| 9372 | shlibpath_var=$shlibpath_var |
| 9373 | |
| 9374 | # Is shlibpath searched before the hard-coded library search path? |
| 9375 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 9376 | |
| 9377 | # How to hardcode a shared library path into an executable. |
| 9378 | hardcode_action=$hardcode_action |
| 9379 | |
| 9380 | # Whether we should hardcode library paths into libraries. |
| 9381 | hardcode_into_libs=$hardcode_into_libs |
| 9382 | |
| 9383 | # Flag to hardcode \$libdir into a binary during linking. |
| 9384 | # This must work even if \$libdir does not exist. |
| 9385 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 9386 | |
| 9387 | # If ld is used when linking, flag to hardcode \$libdir into |
| 9388 | # a binary during linking. This must work even if \$libdir does |
| 9389 | # not exist. |
| 9390 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 9391 | |
| 9392 | # Whether we need a single -rpath flag with a separated argument. |
| 9393 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 9394 | |
| 9395 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 9396 | # resulting binary. |
| 9397 | hardcode_direct=$hardcode_direct |
| 9398 | |
| 9399 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 9400 | # resulting binary. |
| 9401 | hardcode_minus_L=$hardcode_minus_L |
| 9402 | |
| 9403 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 9404 | # the resulting binary. |
| 9405 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 9406 | |
| 9407 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 9408 | # and all subsequent libraries and executables linked against it. |
| 9409 | hardcode_automatic=$hardcode_automatic |
| 9410 | |
| 9411 | # Variables whose values should be saved in libtool wrapper scripts and |
| 9412 | # restored at relink time. |
| 9413 | variables_saved_for_relink="$variables_saved_for_relink" |
| 9414 | |
| 9415 | # Whether libtool must link a program against all its dependency libraries. |
| 9416 | link_all_deplibs=$link_all_deplibs |
| 9417 | |
| 9418 | # Compile-time system search path for libraries |
| 9419 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 9420 | |
| 9421 | # Run-time system search path for libraries |
| 9422 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 9423 | |
| 9424 | # Fix the shell variable \$srcfile for the compiler. |
| 9425 | fix_srcfile_path="$fix_srcfile_path" |
| 9426 | |
| 9427 | # Set to yes if exported symbols are required. |
| 9428 | always_export_symbols=$always_export_symbols |
| 9429 | |
| 9430 | # The commands to list exported symbols. |
| 9431 | export_symbols_cmds=$lt_export_symbols_cmds |
| 9432 | |
| 9433 | # The commands to extract the exported symbol list from a shared archive. |
| 9434 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 9435 | |
| 9436 | # Symbols that should not be listed in the preloaded symbols. |
| 9437 | exclude_expsyms=$lt_exclude_expsyms |
| 9438 | |
| 9439 | # Symbols that must always be exported. |
| 9440 | include_expsyms=$lt_include_expsyms |
| 9441 | |
| 9442 | # ### END LIBTOOL CONFIG |
| 9443 | |
| 9444 | __EOF__ |
| 9445 | |
| 9446 | |
| 9447 | case $host_os in |
| 9448 | aix3*) |
| 9449 | cat <<\EOF >> "$cfgfile" |
| 9450 | |
| 9451 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 9452 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9453 | # vanish in a puff of smoke. |
| 9454 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 9455 | COLLECT_NAMES= |
| 9456 | export COLLECT_NAMES |
| 9457 | fi |
| 9458 | EOF |
| 9459 | ;; |
| 9460 | esac |
| 9461 | |
| 9462 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 9463 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 9464 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 9465 | # is reportedly fixed, but why not run on old versions too? |
| 9466 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 9467 | |
| 9468 | mv -f "$cfgfile" "$ofile" || \ |
| 9469 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 9470 | chmod +x "$ofile" |
| 9471 | |
| 9472 | else |
| 9473 | # If there is no Makefile yet, we rely on a make rule to execute |
| 9474 | # `config.status --recheck' to rerun these tests and create the |
| 9475 | # libtool script then. |
| 9476 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 9477 | if test -f "$ltmain_in"; then |
| 9478 | test -f Makefile && make "$ltmain" |
| 9479 | fi |
| 9480 | fi |
| 9481 | |
| 9482 | |
| 9483 | ac_ext=c |
| 9484 | ac_cpp='$CPP $CPPFLAGS' |
| 9485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9488 | |
| 9489 | CC="$lt_save_CC" |
| 9490 | |
| 9491 | |
| 9492 | # Check whether --with-tags or --without-tags was given. |
| 9493 | if test "${with_tags+set}" = set; then |
| 9494 | withval="$with_tags" |
| 9495 | tagnames="$withval" |
| 9496 | fi; |
| 9497 | |
| 9498 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 9499 | if test ! -f "${ofile}"; then |
| 9500 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 9501 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 9502 | fi |
| 9503 | |
| 9504 | if test -z "$LTCC"; then |
| 9505 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 9506 | if test -z "$LTCC"; then |
| 9507 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 9508 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 9509 | else |
| 9510 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 9511 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 9512 | fi |
| 9513 | fi |
| 9514 | |
| 9515 | # Extract list of available tagged configurations in $ofile. |
| 9516 | # Note that this assumes the entire list is on one line. |
| 9517 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 9518 | |
| 9519 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9520 | for tagname in $tagnames; do |
| 9521 | IFS="$lt_save_ifs" |
| 9522 | # Check whether tagname contains only valid characters |
| 9523 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 9524 | "") ;; |
| 9525 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 9526 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 9527 | { (exit 1); exit 1; }; } |
| 9528 | ;; |
| 9529 | esac |
| 9530 | |
| 9531 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 9532 | then |
| 9533 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 9534 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 9535 | { (exit 1); exit 1; }; } |
| 9536 | fi |
| 9537 | |
| 9538 | # Update the list of available tags. |
| 9539 | if test -n "$tagname"; then |
| 9540 | echo appending configuration tag \"$tagname\" to $ofile |
| 9541 | |
| 9542 | case $tagname in |
| 9543 | CXX) |
| 9544 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 9545 | ac_ext=cc |
| 9546 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9550 | |
| 9551 | |
| 9552 | |
| 9553 | |
| 9554 | archive_cmds_need_lc_CXX=no |
| 9555 | allow_undefined_flag_CXX= |
| 9556 | always_export_symbols_CXX=no |
| 9557 | archive_expsym_cmds_CXX= |
| 9558 | export_dynamic_flag_spec_CXX= |
| 9559 | hardcode_direct_CXX=no |
| 9560 | hardcode_libdir_flag_spec_CXX= |
| 9561 | hardcode_libdir_flag_spec_ld_CXX= |
| 9562 | hardcode_libdir_separator_CXX= |
| 9563 | hardcode_minus_L_CXX=no |
| 9564 | hardcode_automatic_CXX=no |
| 9565 | module_cmds_CXX= |
| 9566 | module_expsym_cmds_CXX= |
| 9567 | link_all_deplibs_CXX=unknown |
| 9568 | old_archive_cmds_CXX=$old_archive_cmds |
| 9569 | no_undefined_flag_CXX= |
| 9570 | whole_archive_flag_spec_CXX= |
| 9571 | enable_shared_with_static_runtimes_CXX=no |
| 9572 | |
| 9573 | # Dependencies to place before and after the object being linked: |
| 9574 | predep_objects_CXX= |
| 9575 | postdep_objects_CXX= |
| 9576 | predeps_CXX= |
| 9577 | postdeps_CXX= |
| 9578 | compiler_lib_search_path_CXX= |
| 9579 | |
| 9580 | # Source file extension for C++ test sources. |
| 9581 | ac_ext=cc |
| 9582 | |
| 9583 | # Object file extension for compiled C++ test sources. |
| 9584 | objext=o |
| 9585 | objext_CXX=$objext |
| 9586 | |
| 9587 | # Code to be used in simple compile tests |
| 9588 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 9589 | |
| 9590 | # Code to be used in simple link tests |
| 9591 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 9592 | |
| 9593 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9594 | |
| 9595 | # If no C compiler was specified, use CC. |
| 9596 | LTCC=${LTCC-"$CC"} |
| 9597 | |
| 9598 | # Allow CC to be a program name with arguments. |
| 9599 | compiler=$CC |
| 9600 | |
| 9601 | |
| 9602 | # Allow CC to be a program name with arguments. |
| 9603 | lt_save_CC=$CC |
| 9604 | lt_save_LD=$LD |
| 9605 | lt_save_GCC=$GCC |
| 9606 | GCC=$GXX |
| 9607 | lt_save_with_gnu_ld=$with_gnu_ld |
| 9608 | lt_save_path_LD=$lt_cv_path_LD |
| 9609 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9610 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9611 | else |
| 9612 | unset lt_cv_prog_gnu_ld |
| 9613 | fi |
| 9614 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9615 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9616 | else |
| 9617 | unset lt_cv_path_LD |
| 9618 | fi |
| 9619 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 9620 | CC=${CXX-"c++"} |
| 9621 | compiler=$CC |
| 9622 | compiler_CXX=$CC |
| 9623 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 9624 | |
| 9625 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 9626 | # no_builtin_flag separately |
| 9627 | if test "$GXX" = yes; then |
| 9628 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 9629 | else |
| 9630 | lt_prog_compiler_no_builtin_flag_CXX= |
| 9631 | fi |
| 9632 | |
| 9633 | if test "$GXX" = yes; then |
| 9634 | # Set up default GNU C++ configuration |
| 9635 | |
| 9636 | |
| 9637 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 9638 | if test "${with_gnu_ld+set}" = set; then |
| 9639 | withval="$with_gnu_ld" |
| 9640 | test "$withval" = no || with_gnu_ld=yes |
| 9641 | else |
| 9642 | with_gnu_ld=no |
| 9643 | fi; |
| 9644 | ac_prog=ld |
| 9645 | if test "$GCC" = yes; then |
| 9646 | # Check if gcc -print-prog-name=ld gives a path. |
| 9647 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 9648 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 9649 | case $host in |
| 9650 | *-*-mingw*) |
| 9651 | # gcc leaves a trailing carriage return which upsets mingw |
| 9652 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9653 | *) |
| 9654 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9655 | esac |
| 9656 | case $ac_prog in |
| 9657 | # Accept absolute paths. |
| 9658 | [\\/]* | ?:[\\/]*) |
| 9659 | re_direlt='/[^/][^/]*/\.\./' |
| 9660 | # Canonicalize the pathname of ld |
| 9661 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 9662 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9663 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 9664 | done |
| 9665 | test -z "$LD" && LD="$ac_prog" |
| 9666 | ;; |
| 9667 | "") |
| 9668 | # If it fails, then pretend we aren't using GCC. |
| 9669 | ac_prog=ld |
| 9670 | ;; |
| 9671 | *) |
| 9672 | # If it is relative, then search for the first ld in PATH. |
| 9673 | with_gnu_ld=unknown |
| 9674 | ;; |
| 9675 | esac |
| 9676 | elif test "$with_gnu_ld" = yes; then |
| 9677 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9678 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 9679 | else |
| 9680 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9681 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 9682 | fi |
| 9683 | if test "${lt_cv_path_LD+set}" = set; then |
| 9684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9685 | else |
| 9686 | if test -z "$LD"; then |
| 9687 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9688 | for ac_dir in $PATH; do |
| 9689 | IFS="$lt_save_ifs" |
| 9690 | test -z "$ac_dir" && ac_dir=. |
| 9691 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9692 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9693 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9694 | # but apparently some GNU ld's only accept -v. |
| 9695 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9696 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9697 | *GNU* | *'with BFD'*) |
| 9698 | test "$with_gnu_ld" != no && break |
| 9699 | ;; |
| 9700 | *) |
| 9701 | test "$with_gnu_ld" != yes && break |
| 9702 | ;; |
| 9703 | esac |
| 9704 | fi |
| 9705 | done |
| 9706 | IFS="$lt_save_ifs" |
| 9707 | else |
| 9708 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9709 | fi |
| 9710 | fi |
| 9711 | |
| 9712 | LD="$lt_cv_path_LD" |
| 9713 | if test -n "$LD"; then |
| 9714 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9715 | echo "${ECHO_T}$LD" >&6 |
| 9716 | else |
| 9717 | echo "$as_me:$LINENO: result: no" >&5 |
| 9718 | echo "${ECHO_T}no" >&6 |
| 9719 | fi |
| 9720 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9721 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9722 | { (exit 1); exit 1; }; } |
| 9723 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9724 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9725 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9727 | else |
| 9728 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9729 | case `$LD -v 2>&1 </dev/null` in |
| 9730 | *GNU* | *'with BFD'*) |
| 9731 | lt_cv_prog_gnu_ld=yes |
| 9732 | ;; |
| 9733 | *) |
| 9734 | lt_cv_prog_gnu_ld=no |
| 9735 | ;; |
| 9736 | esac |
| 9737 | fi |
| 9738 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9739 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9740 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9741 | |
| 9742 | |
| 9743 | |
| 9744 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9745 | # archiving commands below assume that GNU ld is being used. |
| 9746 | if test "$with_gnu_ld" = yes; then |
| 9747 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9748 | 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' |
| 9749 | |
| 9750 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 9751 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9752 | |
| 9753 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9754 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9755 | # investigate it a little bit more. (MM) |
| 9756 | wlarc='${wl}' |
| 9757 | |
| 9758 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9759 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 9760 | grep 'no-whole-archive' > /dev/null; then |
| 9761 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9762 | else |
| 9763 | whole_archive_flag_spec_CXX= |
| 9764 | fi |
| 9765 | else |
| 9766 | with_gnu_ld=no |
| 9767 | wlarc= |
| 9768 | |
| 9769 | # A generic and very simple default shared library creation |
| 9770 | # command for GNU C++ for the case where it uses the native |
| 9771 | # linker, instead of GNU ld. If possible, this setting should |
| 9772 | # overridden to take advantage of the native linker features on |
| 9773 | # the platform it is being used on. |
| 9774 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9775 | fi |
| 9776 | |
| 9777 | # Commands to make compiler produce verbose output that lists |
| 9778 | # what "hidden" libraries, object files and flags are used when |
| 9779 | # linking a shared library. |
| 9780 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9781 | |
| 9782 | else |
| 9783 | GXX=no |
| 9784 | with_gnu_ld=no |
| 9785 | wlarc= |
| 9786 | fi |
| 9787 | |
| 9788 | # PORTME: fill in a description of your system's C++ link characteristics |
| 9789 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9790 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9791 | ld_shlibs_CXX=yes |
| 9792 | case $host_os in |
| 9793 | aix3*) |
| 9794 | # FIXME: insert proper C++ library support |
| 9795 | ld_shlibs_CXX=no |
| 9796 | ;; |
| 9797 | aix4* | aix5*) |
| 9798 | if test "$host_cpu" = ia64; then |
| 9799 | # On IA64, the linker does run time linking by default, so we don't |
| 9800 | # have to do anything special. |
| 9801 | aix_use_runtimelinking=no |
| 9802 | exp_sym_flag='-Bexport' |
| 9803 | no_entry_flag="" |
| 9804 | else |
| 9805 | aix_use_runtimelinking=no |
| 9806 | |
| 9807 | # Test if we are trying to use run time linking or normal |
| 9808 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9809 | # need to do runtime linking. |
| 9810 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9811 | for ld_flag in $LDFLAGS; do |
| 9812 | case $ld_flag in |
| 9813 | *-brtl*) |
| 9814 | aix_use_runtimelinking=yes |
| 9815 | break |
| 9816 | ;; |
| 9817 | esac |
| 9818 | done |
| 9819 | esac |
| 9820 | |
| 9821 | exp_sym_flag='-bexport' |
| 9822 | no_entry_flag='-bnoentry' |
| 9823 | fi |
| 9824 | |
| 9825 | # When large executables or shared objects are built, AIX ld can |
| 9826 | # have problems creating the table of contents. If linking a library |
| 9827 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9828 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9829 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9830 | |
| 9831 | archive_cmds_CXX='' |
| 9832 | hardcode_direct_CXX=yes |
| 9833 | hardcode_libdir_separator_CXX=':' |
| 9834 | link_all_deplibs_CXX=yes |
| 9835 | |
| 9836 | if test "$GXX" = yes; then |
| 9837 | case $host_os in aix4.012|aix4.012.*) |
| 9838 | # We only want to do this on AIX 4.2 and lower, the check |
| 9839 | # below for broken collect2 doesn't work under 4.3+ |
| 9840 | collect2name=`${CC} -print-prog-name=collect2` |
| 9841 | if test -f "$collect2name" && \ |
| 9842 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9843 | then |
| 9844 | # We have reworked collect2 |
| 9845 | hardcode_direct_CXX=yes |
| 9846 | else |
| 9847 | # We have old collect2 |
| 9848 | hardcode_direct_CXX=unsupported |
| 9849 | # It fails to find uninstalled libraries when the uninstalled |
| 9850 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9851 | # to unsupported forces relinking |
| 9852 | hardcode_minus_L_CXX=yes |
| 9853 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9854 | hardcode_libdir_separator_CXX= |
| 9855 | fi |
| 9856 | esac |
| 9857 | shared_flag='-shared' |
| 9858 | else |
| 9859 | # not using gcc |
| 9860 | if test "$host_cpu" = ia64; then |
| 9861 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9862 | # chokes on -Wl,-G. The following line is correct: |
| 9863 | shared_flag='-G' |
| 9864 | else |
| 9865 | if test "$aix_use_runtimelinking" = yes; then |
| 9866 | shared_flag='${wl}-G' |
| 9867 | else |
| 9868 | shared_flag='${wl}-bM:SRE' |
| 9869 | fi |
| 9870 | fi |
| 9871 | fi |
| 9872 | |
| 9873 | # It seems that -bexpall does not export symbols beginning with |
| 9874 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9875 | always_export_symbols_CXX=yes |
| 9876 | if test "$aix_use_runtimelinking" = yes; then |
| 9877 | # Warning - without using the other runtime loading flags (-brtl), |
| 9878 | # -berok will link without error, but may produce a broken library. |
| 9879 | allow_undefined_flag_CXX='-berok' |
| 9880 | # Determine the default libpath from the value encoded in an empty executable. |
| 9881 | cat >conftest.$ac_ext <<_ACEOF |
| 9882 | /* confdefs.h. */ |
| 9883 | _ACEOF |
| 9884 | cat confdefs.h >>conftest.$ac_ext |
| 9885 | cat >>conftest.$ac_ext <<_ACEOF |
| 9886 | /* end confdefs.h. */ |
| 9887 | |
| 9888 | int |
| 9889 | main () |
| 9890 | { |
| 9891 | |
| 9892 | ; |
| 9893 | return 0; |
| 9894 | } |
| 9895 | _ACEOF |
| 9896 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9898 | (eval $ac_link) 2>conftest.er1 |
| 9899 | ac_status=$? |
| 9900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9901 | rm -f conftest.er1 |
| 9902 | cat conftest.err >&5 |
| 9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9904 | (exit $ac_status); } && |
| 9905 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 9906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9907 | (eval $ac_try) 2>&5 |
| 9908 | ac_status=$? |
| 9909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9910 | (exit $ac_status); }; } && |
| 9911 | { ac_try='test -s conftest$ac_exeext' |
| 9912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9913 | (eval $ac_try) 2>&5 |
| 9914 | ac_status=$? |
| 9915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9916 | (exit $ac_status); }; }; then |
| 9917 | |
| 9918 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9919 | }'` |
| 9920 | # Check for a 64-bit object if we didn't find anything. |
| 9921 | 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; } |
| 9922 | }'`; fi |
| 9923 | else |
| 9924 | echo "$as_me: failed program was:" >&5 |
| 9925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9926 | |
| 9927 | fi |
| 9928 | rm -f conftest.err conftest.$ac_objext \ |
| 9929 | conftest$ac_exeext conftest.$ac_ext |
| 9930 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9931 | |
| 9932 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9933 | |
| 9934 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 9935 | else |
| 9936 | if test "$host_cpu" = ia64; then |
| 9937 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9938 | allow_undefined_flag_CXX="-z nodefs" |
| 9939 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 9940 | else |
| 9941 | # Determine the default libpath from the value encoded in an empty executable. |
| 9942 | cat >conftest.$ac_ext <<_ACEOF |
| 9943 | /* confdefs.h. */ |
| 9944 | _ACEOF |
| 9945 | cat confdefs.h >>conftest.$ac_ext |
| 9946 | cat >>conftest.$ac_ext <<_ACEOF |
| 9947 | /* end confdefs.h. */ |
| 9948 | |
| 9949 | int |
| 9950 | main () |
| 9951 | { |
| 9952 | |
| 9953 | ; |
| 9954 | return 0; |
| 9955 | } |
| 9956 | _ACEOF |
| 9957 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9959 | (eval $ac_link) 2>conftest.er1 |
| 9960 | ac_status=$? |
| 9961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9962 | rm -f conftest.er1 |
| 9963 | cat conftest.err >&5 |
| 9964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9965 | (exit $ac_status); } && |
| 9966 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 9967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9968 | (eval $ac_try) 2>&5 |
| 9969 | ac_status=$? |
| 9970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9971 | (exit $ac_status); }; } && |
| 9972 | { ac_try='test -s conftest$ac_exeext' |
| 9973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9974 | (eval $ac_try) 2>&5 |
| 9975 | ac_status=$? |
| 9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9977 | (exit $ac_status); }; }; then |
| 9978 | |
| 9979 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9980 | }'` |
| 9981 | # Check for a 64-bit object if we didn't find anything. |
| 9982 | 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; } |
| 9983 | }'`; fi |
| 9984 | else |
| 9985 | echo "$as_me: failed program was:" >&5 |
| 9986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9987 | |
| 9988 | fi |
| 9989 | rm -f conftest.err conftest.$ac_objext \ |
| 9990 | conftest$ac_exeext conftest.$ac_ext |
| 9991 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9992 | |
| 9993 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9994 | # Warning - without using the other run time loading flags, |
| 9995 | # -berok will link without error, but may produce a broken library. |
| 9996 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 9997 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 9998 | # -bexpall does not export symbols beginning with underscore (_) |
| 9999 | always_export_symbols_CXX=yes |
| 10000 | # Exported symbols can be pulled into shared objects from archives |
| 10001 | whole_archive_flag_spec_CXX=' ' |
| 10002 | archive_cmds_need_lc_CXX=yes |
| 10003 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 10004 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 10005 | fi |
| 10006 | fi |
| 10007 | ;; |
| 10008 | chorus*) |
| 10009 | case $cc_basename in |
| 10010 | *) |
| 10011 | # FIXME: insert proper C++ library support |
| 10012 | ld_shlibs_CXX=no |
| 10013 | ;; |
| 10014 | esac |
| 10015 | ;; |
| 10016 | |
| 10017 | cygwin* | mingw* | pw32*) |
| 10018 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 10019 | # as there is no search path for DLLs. |
| 10020 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10021 | allow_undefined_flag_CXX=unsupported |
| 10022 | always_export_symbols_CXX=no |
| 10023 | enable_shared_with_static_runtimes_CXX=yes |
| 10024 | |
| 10025 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 10026 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 10027 | # If the export-symbols file already is a .def file (1st line |
| 10028 | # is EXPORTS), use it as is; otherwise, prepend... |
| 10029 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10030 | cp $export_symbols $output_objdir/$soname.def; |
| 10031 | else |
| 10032 | echo EXPORTS > $output_objdir/$soname.def; |
| 10033 | cat $export_symbols >> $output_objdir/$soname.def; |
| 10034 | fi~ |
| 10035 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 10036 | else |
| 10037 | ld_shlibs_CXX=no |
| 10038 | fi |
| 10039 | ;; |
| 10040 | |
| 10041 | darwin* | rhapsody*) |
| 10042 | if test "$GXX" = yes; then |
| 10043 | archive_cmds_need_lc_CXX=no |
| 10044 | case "$host_os" in |
| 10045 | rhapsody* | darwin1.[012]) |
| 10046 | allow_undefined_flag_CXX='-undefined suppress' |
| 10047 | ;; |
| 10048 | *) # Darwin 1.3 on |
| 10049 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 10050 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 10051 | else |
| 10052 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 10053 | 10.[012]) |
| 10054 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 10055 | ;; |
| 10056 | 10.*) |
| 10057 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
| 10058 | ;; |
| 10059 | esac |
| 10060 | fi |
| 10061 | ;; |
| 10062 | esac |
| 10063 | lt_int_apple_cc_single_mod=no |
| 10064 | output_verbose_link_cmd='echo' |
| 10065 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 10066 | lt_int_apple_cc_single_mod=yes |
| 10067 | fi |
| 10068 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 10069 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 10070 | else |
| 10071 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 10072 | fi |
| 10073 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10074 | |
| 10075 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 10076 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 10077 | 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}' |
| 10078 | else |
| 10079 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10080 | fi |
| 10081 | 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}' |
| 10082 | hardcode_direct_CXX=no |
| 10083 | hardcode_automatic_CXX=yes |
| 10084 | hardcode_shlibpath_var_CXX=unsupported |
| 10085 | whole_archive_flag_spec_CXX='-all_load $convenience' |
| 10086 | link_all_deplibs_CXX=yes |
| 10087 | else |
| 10088 | ld_shlibs_CXX=no |
| 10089 | fi |
| 10090 | ;; |
| 10091 | |
| 10092 | dgux*) |
| 10093 | case $cc_basename in |
| 10094 | ec++) |
| 10095 | # FIXME: insert proper C++ library support |
| 10096 | ld_shlibs_CXX=no |
| 10097 | ;; |
| 10098 | ghcx) |
| 10099 | # Green Hills C++ Compiler |
| 10100 | # FIXME: insert proper C++ library support |
| 10101 | ld_shlibs_CXX=no |
| 10102 | ;; |
| 10103 | *) |
| 10104 | # FIXME: insert proper C++ library support |
| 10105 | ld_shlibs_CXX=no |
| 10106 | ;; |
| 10107 | esac |
| 10108 | ;; |
| 10109 | freebsd12*) |
| 10110 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 10111 | ld_shlibs_CXX=no |
| 10112 | ;; |
| 10113 | freebsd-elf*) |
| 10114 | archive_cmds_need_lc_CXX=no |
| 10115 | ;; |
| 10116 | freebsd* | kfreebsd*-gnu) |
| 10117 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 10118 | # conventions |
| 10119 | ld_shlibs_CXX=yes |
| 10120 | ;; |
| 10121 | gnu*) |
| 10122 | ;; |
| 10123 | hpux9*) |
| 10124 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10125 | hardcode_libdir_separator_CXX=: |
| 10126 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10127 | hardcode_direct_CXX=yes |
| 10128 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10129 | # but as the default |
| 10130 | # location of the library. |
| 10131 | |
| 10132 | case $cc_basename in |
| 10133 | CC) |
| 10134 | # FIXME: insert proper C++ library support |
| 10135 | ld_shlibs_CXX=no |
| 10136 | ;; |
| 10137 | aCC) |
| 10138 | 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' |
| 10139 | # Commands to make compiler produce verbose output that lists |
| 10140 | # what "hidden" libraries, object files and flags are used when |
| 10141 | # linking a shared library. |
| 10142 | # |
| 10143 | # There doesn't appear to be a way to prevent this compiler from |
| 10144 | # explicitly linking system object files so we need to strip them |
| 10145 | # from the output so that they don't get included in the library |
| 10146 | # dependencies. |
| 10147 | 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' |
| 10148 | ;; |
| 10149 | *) |
| 10150 | if test "$GXX" = yes; then |
| 10151 | 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' |
| 10152 | else |
| 10153 | # FIXME: insert proper C++ library support |
| 10154 | ld_shlibs_CXX=no |
| 10155 | fi |
| 10156 | ;; |
| 10157 | esac |
| 10158 | ;; |
| 10159 | hpux10*|hpux11*) |
| 10160 | if test $with_gnu_ld = no; then |
| 10161 | case "$host_cpu" in |
| 10162 | hppa*64*) |
| 10163 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10164 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 10165 | hardcode_libdir_separator_CXX=: |
| 10166 | ;; |
| 10167 | ia64*) |
| 10168 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10169 | ;; |
| 10170 | *) |
| 10171 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10172 | hardcode_libdir_separator_CXX=: |
| 10173 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10174 | ;; |
| 10175 | esac |
| 10176 | fi |
| 10177 | case "$host_cpu" in |
| 10178 | hppa*64*) |
| 10179 | hardcode_direct_CXX=no |
| 10180 | hardcode_shlibpath_var_CXX=no |
| 10181 | ;; |
| 10182 | ia64*) |
| 10183 | hardcode_direct_CXX=no |
| 10184 | hardcode_shlibpath_var_CXX=no |
| 10185 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10186 | # but as the default |
| 10187 | # location of the library. |
| 10188 | ;; |
| 10189 | *) |
| 10190 | hardcode_direct_CXX=yes |
| 10191 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10192 | # but as the default |
| 10193 | # location of the library. |
| 10194 | ;; |
| 10195 | esac |
| 10196 | |
| 10197 | case $cc_basename in |
| 10198 | CC) |
| 10199 | # FIXME: insert proper C++ library support |
| 10200 | ld_shlibs_CXX=no |
| 10201 | ;; |
| 10202 | aCC) |
| 10203 | case "$host_cpu" in |
| 10204 | hppa*64*|ia64*) |
| 10205 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 10206 | ;; |
| 10207 | *) |
| 10208 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10209 | ;; |
| 10210 | esac |
| 10211 | # Commands to make compiler produce verbose output that lists |
| 10212 | # what "hidden" libraries, object files and flags are used when |
| 10213 | # linking a shared library. |
| 10214 | # |
| 10215 | # There doesn't appear to be a way to prevent this compiler from |
| 10216 | # explicitly linking system object files so we need to strip them |
| 10217 | # from the output so that they don't get included in the library |
| 10218 | # dependencies. |
| 10219 | 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' |
| 10220 | ;; |
| 10221 | *) |
| 10222 | if test "$GXX" = yes; then |
| 10223 | if test $with_gnu_ld = no; then |
| 10224 | case "$host_cpu" in |
| 10225 | ia64*|hppa*64*) |
| 10226 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 10227 | ;; |
| 10228 | *) |
| 10229 | 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' |
| 10230 | ;; |
| 10231 | esac |
| 10232 | fi |
| 10233 | else |
| 10234 | # FIXME: insert proper C++ library support |
| 10235 | ld_shlibs_CXX=no |
| 10236 | fi |
| 10237 | ;; |
| 10238 | esac |
| 10239 | ;; |
| 10240 | irix5* | irix6*) |
| 10241 | case $cc_basename in |
| 10242 | CC) |
| 10243 | # SGI C++ |
| 10244 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10245 | |
| 10246 | # Archives containing C++ object files must be created using |
| 10247 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 10248 | # necessary to make sure instantiated templates are included |
| 10249 | # in the archive. |
| 10250 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 10251 | ;; |
| 10252 | *) |
| 10253 | if test "$GXX" = yes; then |
| 10254 | if test "$with_gnu_ld" = no; then |
| 10255 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10256 | else |
| 10257 | 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' |
| 10258 | fi |
| 10259 | fi |
| 10260 | link_all_deplibs_CXX=yes |
| 10261 | ;; |
| 10262 | esac |
| 10263 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10264 | hardcode_libdir_separator_CXX=: |
| 10265 | ;; |
| 10266 | linux*) |
| 10267 | case $cc_basename in |
| 10268 | KCC) |
| 10269 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10270 | |
| 10271 | # KCC will only create a shared library if the output file |
| 10272 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10273 | # to its proper name (with version) after linking. |
| 10274 | 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' |
| 10275 | 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' |
| 10276 | # Commands to make compiler produce verbose output that lists |
| 10277 | # what "hidden" libraries, object files and flags are used when |
| 10278 | # linking a shared library. |
| 10279 | # |
| 10280 | # There doesn't appear to be a way to prevent this compiler from |
| 10281 | # explicitly linking system object files so we need to strip them |
| 10282 | # from the output so that they don't get included in the library |
| 10283 | # dependencies. |
| 10284 | 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' |
| 10285 | |
| 10286 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 10287 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10288 | |
| 10289 | # Archives containing C++ object files must be created using |
| 10290 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10291 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10292 | ;; |
| 10293 | icpc) |
| 10294 | # Intel C++ |
| 10295 | with_gnu_ld=yes |
| 10296 | archive_cmds_need_lc_CXX=no |
| 10297 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10298 | 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' |
| 10299 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10300 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10301 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10302 | ;; |
| 10303 | cxx) |
| 10304 | # Compaq C++ |
| 10305 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10306 | 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' |
| 10307 | |
| 10308 | runpath_var=LD_RUN_PATH |
| 10309 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10310 | hardcode_libdir_separator_CXX=: |
| 10311 | |
| 10312 | # Commands to make compiler produce verbose output that lists |
| 10313 | # what "hidden" libraries, object files and flags are used when |
| 10314 | # linking a shared library. |
| 10315 | # |
| 10316 | # There doesn't appear to be a way to prevent this compiler from |
| 10317 | # explicitly linking system object files so we need to strip them |
| 10318 | # from the output so that they don't get included in the library |
| 10319 | # dependencies. |
| 10320 | 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' |
| 10321 | ;; |
| 10322 | esac |
| 10323 | ;; |
| 10324 | lynxos*) |
| 10325 | # FIXME: insert proper C++ library support |
| 10326 | ld_shlibs_CXX=no |
| 10327 | ;; |
| 10328 | m88k*) |
| 10329 | # FIXME: insert proper C++ library support |
| 10330 | ld_shlibs_CXX=no |
| 10331 | ;; |
| 10332 | mvs*) |
| 10333 | case $cc_basename in |
| 10334 | cxx) |
| 10335 | # FIXME: insert proper C++ library support |
| 10336 | ld_shlibs_CXX=no |
| 10337 | ;; |
| 10338 | *) |
| 10339 | # FIXME: insert proper C++ library support |
| 10340 | ld_shlibs_CXX=no |
| 10341 | ;; |
| 10342 | esac |
| 10343 | ;; |
| 10344 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 10345 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10346 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 10347 | wlarc= |
| 10348 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10349 | hardcode_direct_CXX=yes |
| 10350 | hardcode_shlibpath_var_CXX=no |
| 10351 | fi |
| 10352 | # Workaround some broken pre-1.5 toolchains |
| 10353 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 10354 | ;; |
| 10355 | osf3*) |
| 10356 | case $cc_basename in |
| 10357 | KCC) |
| 10358 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10359 | |
| 10360 | # KCC will only create a shared library if the output file |
| 10361 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10362 | # to its proper name (with version) after linking. |
| 10363 | 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' |
| 10364 | |
| 10365 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10366 | hardcode_libdir_separator_CXX=: |
| 10367 | |
| 10368 | # Archives containing C++ object files must be created using |
| 10369 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10370 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10371 | |
| 10372 | ;; |
| 10373 | RCC) |
| 10374 | # Rational C++ 2.4.1 |
| 10375 | # FIXME: insert proper C++ library support |
| 10376 | ld_shlibs_CXX=no |
| 10377 | ;; |
| 10378 | cxx) |
| 10379 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10380 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10381 | |
| 10382 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10383 | hardcode_libdir_separator_CXX=: |
| 10384 | |
| 10385 | # Commands to make compiler produce verbose output that lists |
| 10386 | # what "hidden" libraries, object files and flags are used when |
| 10387 | # linking a shared library. |
| 10388 | # |
| 10389 | # There doesn't appear to be a way to prevent this compiler from |
| 10390 | # explicitly linking system object files so we need to strip them |
| 10391 | # from the output so that they don't get included in the library |
| 10392 | # dependencies. |
| 10393 | 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' |
| 10394 | ;; |
| 10395 | *) |
| 10396 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10397 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10398 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10399 | |
| 10400 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10401 | hardcode_libdir_separator_CXX=: |
| 10402 | |
| 10403 | # Commands to make compiler produce verbose output that lists |
| 10404 | # what "hidden" libraries, object files and flags are used when |
| 10405 | # linking a shared library. |
| 10406 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10407 | |
| 10408 | else |
| 10409 | # FIXME: insert proper C++ library support |
| 10410 | ld_shlibs_CXX=no |
| 10411 | fi |
| 10412 | ;; |
| 10413 | esac |
| 10414 | ;; |
| 10415 | osf4* | osf5*) |
| 10416 | case $cc_basename in |
| 10417 | KCC) |
| 10418 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10419 | |
| 10420 | # KCC will only create a shared library if the output file |
| 10421 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10422 | # to its proper name (with version) after linking. |
| 10423 | 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' |
| 10424 | |
| 10425 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10426 | hardcode_libdir_separator_CXX=: |
| 10427 | |
| 10428 | # Archives containing C++ object files must be created using |
| 10429 | # the KAI C++ compiler. |
| 10430 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 10431 | ;; |
| 10432 | RCC) |
| 10433 | # Rational C++ 2.4.1 |
| 10434 | # FIXME: insert proper C++ library support |
| 10435 | ld_shlibs_CXX=no |
| 10436 | ;; |
| 10437 | cxx) |
| 10438 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 10439 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10440 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 10441 | echo "-hidden">> $lib.exp~ |
| 10442 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
| 10443 | $rm $lib.exp' |
| 10444 | |
| 10445 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10446 | hardcode_libdir_separator_CXX=: |
| 10447 | |
| 10448 | # Commands to make compiler produce verbose output that lists |
| 10449 | # what "hidden" libraries, object files and flags are used when |
| 10450 | # linking a shared library. |
| 10451 | # |
| 10452 | # There doesn't appear to be a way to prevent this compiler from |
| 10453 | # explicitly linking system object files so we need to strip them |
| 10454 | # from the output so that they don't get included in the library |
| 10455 | # dependencies. |
| 10456 | 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' |
| 10457 | ;; |
| 10458 | *) |
| 10459 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10460 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10461 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10462 | |
| 10463 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10464 | hardcode_libdir_separator_CXX=: |
| 10465 | |
| 10466 | # Commands to make compiler produce verbose output that lists |
| 10467 | # what "hidden" libraries, object files and flags are used when |
| 10468 | # linking a shared library. |
| 10469 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10470 | |
| 10471 | else |
| 10472 | # FIXME: insert proper C++ library support |
| 10473 | ld_shlibs_CXX=no |
| 10474 | fi |
| 10475 | ;; |
| 10476 | esac |
| 10477 | ;; |
| 10478 | psos*) |
| 10479 | # FIXME: insert proper C++ library support |
| 10480 | ld_shlibs_CXX=no |
| 10481 | ;; |
| 10482 | sco*) |
| 10483 | archive_cmds_need_lc_CXX=no |
| 10484 | case $cc_basename in |
| 10485 | CC) |
| 10486 | # FIXME: insert proper C++ library support |
| 10487 | ld_shlibs_CXX=no |
| 10488 | ;; |
| 10489 | *) |
| 10490 | # FIXME: insert proper C++ library support |
| 10491 | ld_shlibs_CXX=no |
| 10492 | ;; |
| 10493 | esac |
| 10494 | ;; |
| 10495 | sunos4*) |
| 10496 | case $cc_basename in |
| 10497 | CC) |
| 10498 | # Sun C++ 4.x |
| 10499 | # FIXME: insert proper C++ library support |
| 10500 | ld_shlibs_CXX=no |
| 10501 | ;; |
| 10502 | lcc) |
| 10503 | # Lucid |
| 10504 | # FIXME: insert proper C++ library support |
| 10505 | ld_shlibs_CXX=no |
| 10506 | ;; |
| 10507 | *) |
| 10508 | # FIXME: insert proper C++ library support |
| 10509 | ld_shlibs_CXX=no |
| 10510 | ;; |
| 10511 | esac |
| 10512 | ;; |
| 10513 | solaris*) |
| 10514 | case $cc_basename in |
| 10515 | CC) |
| 10516 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10517 | no_undefined_flag_CXX=' -zdefs' |
| 10518 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10519 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10520 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10521 | |
| 10522 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10523 | hardcode_shlibpath_var_CXX=no |
| 10524 | case $host_os in |
| 10525 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 10526 | *) |
| 10527 | # The C++ compiler is used as linker so we must use $wl |
| 10528 | # flag to pass the commands to the underlying system |
| 10529 | # linker. |
| 10530 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10531 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10532 | ;; |
| 10533 | esac |
| 10534 | link_all_deplibs_CXX=yes |
| 10535 | |
| 10536 | # Commands to make compiler produce verbose output that lists |
| 10537 | # what "hidden" libraries, object files and flags are used when |
| 10538 | # linking a shared library. |
| 10539 | # |
| 10540 | # There doesn't appear to be a way to prevent this compiler from |
| 10541 | # explicitly linking system object files so we need to strip them |
| 10542 | # from the output so that they don't get included in the library |
| 10543 | # dependencies. |
| 10544 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10545 | |
| 10546 | # Archives containing C++ object files must be created using |
| 10547 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 10548 | # necessary to make sure instantiated templates are included |
| 10549 | # in the archive. |
| 10550 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 10551 | ;; |
| 10552 | gcx) |
| 10553 | # Green Hills C++ Compiler |
| 10554 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10555 | |
| 10556 | # The C++ compiler must be used to create the archive. |
| 10557 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 10558 | ;; |
| 10559 | *) |
| 10560 | # GNU C++ compiler with Solaris linker |
| 10561 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10562 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 10563 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 10564 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10565 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10566 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10567 | |
| 10568 | # Commands to make compiler produce verbose output that lists |
| 10569 | # what "hidden" libraries, object files and flags are used when |
| 10570 | # linking a shared library. |
| 10571 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10572 | else |
| 10573 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 10574 | # platform. |
| 10575 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10576 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10577 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10578 | |
| 10579 | # Commands to make compiler produce verbose output that lists |
| 10580 | # what "hidden" libraries, object files and flags are used when |
| 10581 | # linking a shared library. |
| 10582 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10583 | fi |
| 10584 | |
| 10585 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 10586 | fi |
| 10587 | ;; |
| 10588 | esac |
| 10589 | ;; |
| 10590 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 10591 | archive_cmds_need_lc_CXX=no |
| 10592 | ;; |
| 10593 | tandem*) |
| 10594 | case $cc_basename in |
| 10595 | NCC) |
| 10596 | # NonStop-UX NCC 3.20 |
| 10597 | # FIXME: insert proper C++ library support |
| 10598 | ld_shlibs_CXX=no |
| 10599 | ;; |
| 10600 | *) |
| 10601 | # FIXME: insert proper C++ library support |
| 10602 | ld_shlibs_CXX=no |
| 10603 | ;; |
| 10604 | esac |
| 10605 | ;; |
| 10606 | vxworks*) |
| 10607 | # FIXME: insert proper C++ library support |
| 10608 | ld_shlibs_CXX=no |
| 10609 | ;; |
| 10610 | *) |
| 10611 | # FIXME: insert proper C++ library support |
| 10612 | ld_shlibs_CXX=no |
| 10613 | ;; |
| 10614 | esac |
| 10615 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10616 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10617 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10618 | |
| 10619 | GCC_CXX="$GXX" |
| 10620 | LD_CXX="$LD" |
| 10621 | |
| 10622 | |
| 10623 | cat > conftest.$ac_ext <<EOF |
| 10624 | class Foo |
| 10625 | { |
| 10626 | public: |
| 10627 | Foo (void) { a = 0; } |
| 10628 | private: |
| 10629 | int a; |
| 10630 | }; |
| 10631 | EOF |
| 10632 | |
| 10633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10634 | (eval $ac_compile) 2>&5 |
| 10635 | ac_status=$? |
| 10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10637 | (exit $ac_status); }; then |
| 10638 | # Parse the compiler output and extract the necessary |
| 10639 | # objects, libraries and library flags. |
| 10640 | |
| 10641 | # Sentinel used to keep track of whether or not we are before |
| 10642 | # the conftest object file. |
| 10643 | pre_test_object_deps_done=no |
| 10644 | |
| 10645 | # The `*' in the case matches for architectures that use `case' in |
| 10646 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 10647 | # eval without this substitution. |
| 10648 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 10649 | |
| 10650 | for p in `eval $output_verbose_link_cmd`; do |
| 10651 | case $p in |
| 10652 | |
| 10653 | -L* | -R* | -l*) |
| 10654 | # Some compilers place space between "-{L,R}" and the path. |
| 10655 | # Remove the space. |
| 10656 | if test $p = "-L" \ |
| 10657 | || test $p = "-R"; then |
| 10658 | prev=$p |
| 10659 | continue |
| 10660 | else |
| 10661 | prev= |
| 10662 | fi |
| 10663 | |
| 10664 | if test "$pre_test_object_deps_done" = no; then |
| 10665 | case $p in |
| 10666 | -L* | -R*) |
| 10667 | # Internal compiler library paths should come after those |
| 10668 | # provided the user. The postdeps already come after the |
| 10669 | # user supplied libs so there is no need to process them. |
| 10670 | if test -z "$compiler_lib_search_path_CXX"; then |
| 10671 | compiler_lib_search_path_CXX="${prev}${p}" |
| 10672 | else |
| 10673 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 10674 | fi |
| 10675 | ;; |
| 10676 | # The "-l" case would never come before the object being |
| 10677 | # linked, so don't bother handling this case. |
| 10678 | esac |
| 10679 | else |
| 10680 | if test -z "$postdeps_CXX"; then |
| 10681 | postdeps_CXX="${prev}${p}" |
| 10682 | else |
| 10683 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 10684 | fi |
| 10685 | fi |
| 10686 | ;; |
| 10687 | |
| 10688 | *.$objext) |
| 10689 | # This assumes that the test object file only shows up |
| 10690 | # once in the compiler output. |
| 10691 | if test "$p" = "conftest.$objext"; then |
| 10692 | pre_test_object_deps_done=yes |
| 10693 | continue |
| 10694 | fi |
| 10695 | |
| 10696 | if test "$pre_test_object_deps_done" = no; then |
| 10697 | if test -z "$predep_objects_CXX"; then |
| 10698 | predep_objects_CXX="$p" |
| 10699 | else |
| 10700 | predep_objects_CXX="$predep_objects_CXX $p" |
| 10701 | fi |
| 10702 | else |
| 10703 | if test -z "$postdep_objects_CXX"; then |
| 10704 | postdep_objects_CXX="$p" |
| 10705 | else |
| 10706 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 10707 | fi |
| 10708 | fi |
| 10709 | ;; |
| 10710 | |
| 10711 | *) ;; # Ignore the rest. |
| 10712 | |
| 10713 | esac |
| 10714 | done |
| 10715 | |
| 10716 | # Clean up. |
| 10717 | rm -f a.out a.exe |
| 10718 | else |
| 10719 | echo "libtool.m4: error: problem compiling CXX test program" |
| 10720 | fi |
| 10721 | |
| 10722 | $rm -f confest.$objext |
| 10723 | |
| 10724 | case " $postdeps_CXX " in |
| 10725 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 10726 | esac |
| 10727 | |
| 10728 | lt_prog_compiler_wl_CXX= |
| 10729 | lt_prog_compiler_pic_CXX= |
| 10730 | lt_prog_compiler_static_CXX= |
| 10731 | |
| 10732 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 10733 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 10734 | |
| 10735 | # C++ specific cases for pic, static, wl, etc. |
| 10736 | if test "$GXX" = yes; then |
| 10737 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10738 | lt_prog_compiler_static_CXX='-static' |
| 10739 | |
| 10740 | case $host_os in |
| 10741 | aix*) |
| 10742 | # All AIX code is PIC. |
| 10743 | if test "$host_cpu" = ia64; then |
| 10744 | # AIX 5 now supports IA64 processor |
| 10745 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10746 | fi |
| 10747 | ;; |
| 10748 | amigaos*) |
| 10749 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10750 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 10751 | # like `-m68040'. |
| 10752 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 10753 | ;; |
| 10754 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10755 | # PIC is the default for these OSes. |
| 10756 | ;; |
| 10757 | mingw* | os2* | pw32*) |
| 10758 | # This hack is so that the source file can tell whether it is being |
| 10759 | # built for inclusion in a dll (and should export symbols for example). |
| 10760 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 10761 | ;; |
| 10762 | darwin* | rhapsody*) |
| 10763 | # PIC is the default on this platform |
| 10764 | # Common symbols not allowed in MH_DYLIB files |
| 10765 | lt_prog_compiler_pic_CXX='-fno-common' |
| 10766 | ;; |
| 10767 | *djgpp*) |
| 10768 | # DJGPP does not support shared libraries at all |
| 10769 | lt_prog_compiler_pic_CXX= |
| 10770 | ;; |
| 10771 | sysv4*MP*) |
| 10772 | if test -d /usr/nec; then |
| 10773 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 10774 | fi |
| 10775 | ;; |
| 10776 | hpux*) |
| 10777 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10778 | # not for PA HP-UX. |
| 10779 | case "$host_cpu" in |
| 10780 | hppa*64*|ia64*) |
| 10781 | ;; |
| 10782 | *) |
| 10783 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10784 | ;; |
| 10785 | esac |
| 10786 | ;; |
| 10787 | *) |
| 10788 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10789 | ;; |
| 10790 | esac |
| 10791 | else |
| 10792 | case $host_os in |
| 10793 | aix4* | aix5*) |
| 10794 | # All AIX code is PIC. |
| 10795 | if test "$host_cpu" = ia64; then |
| 10796 | # AIX 5 now supports IA64 processor |
| 10797 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10798 | else |
| 10799 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 10800 | fi |
| 10801 | ;; |
| 10802 | chorus*) |
| 10803 | case $cc_basename in |
| 10804 | cxch68) |
| 10805 | # Green Hills C++ Compiler |
| 10806 | # _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" |
| 10807 | ;; |
| 10808 | esac |
| 10809 | ;; |
| 10810 | dgux*) |
| 10811 | case $cc_basename in |
| 10812 | ec++) |
| 10813 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10814 | ;; |
| 10815 | ghcx) |
| 10816 | # Green Hills C++ Compiler |
| 10817 | lt_prog_compiler_pic_CXX='-pic' |
| 10818 | ;; |
| 10819 | *) |
| 10820 | ;; |
| 10821 | esac |
| 10822 | ;; |
| 10823 | freebsd* | kfreebsd*-gnu) |
| 10824 | # FreeBSD uses GNU C++ |
| 10825 | ;; |
| 10826 | hpux9* | hpux10* | hpux11*) |
| 10827 | case $cc_basename in |
| 10828 | CC) |
| 10829 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10830 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10831 | if test "$host_cpu" != ia64; then |
| 10832 | lt_prog_compiler_pic_CXX='+Z' |
| 10833 | fi |
| 10834 | ;; |
| 10835 | aCC) |
| 10836 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10837 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10838 | case "$host_cpu" in |
| 10839 | hppa*64*|ia64*) |
| 10840 | # +Z the default |
| 10841 | ;; |
| 10842 | *) |
| 10843 | lt_prog_compiler_pic_CXX='+Z' |
| 10844 | ;; |
| 10845 | esac |
| 10846 | ;; |
| 10847 | *) |
| 10848 | ;; |
| 10849 | esac |
| 10850 | ;; |
| 10851 | irix5* | irix6* | nonstopux*) |
| 10852 | case $cc_basename in |
| 10853 | CC) |
| 10854 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10855 | lt_prog_compiler_static_CXX='-non_shared' |
| 10856 | # CC pic flag -KPIC is the default. |
| 10857 | ;; |
| 10858 | *) |
| 10859 | ;; |
| 10860 | esac |
| 10861 | ;; |
| 10862 | linux*) |
| 10863 | case $cc_basename in |
| 10864 | KCC) |
| 10865 | # KAI C++ Compiler |
| 10866 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10867 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10868 | ;; |
| 10869 | icpc) |
| 10870 | # Intel C++ |
| 10871 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10872 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10873 | lt_prog_compiler_static_CXX='-static' |
| 10874 | ;; |
| 10875 | cxx) |
| 10876 | # Compaq C++ |
| 10877 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10878 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10879 | lt_prog_compiler_pic_CXX= |
| 10880 | lt_prog_compiler_static_CXX='-non_shared' |
| 10881 | ;; |
| 10882 | *) |
| 10883 | ;; |
| 10884 | esac |
| 10885 | ;; |
| 10886 | lynxos*) |
| 10887 | ;; |
| 10888 | m88k*) |
| 10889 | ;; |
| 10890 | mvs*) |
| 10891 | case $cc_basename in |
| 10892 | cxx) |
| 10893 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 10894 | ;; |
| 10895 | *) |
| 10896 | ;; |
| 10897 | esac |
| 10898 | ;; |
| 10899 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 10900 | ;; |
| 10901 | osf3* | osf4* | osf5*) |
| 10902 | case $cc_basename in |
| 10903 | KCC) |
| 10904 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10905 | ;; |
| 10906 | RCC) |
| 10907 | # Rational C++ 2.4.1 |
| 10908 | lt_prog_compiler_pic_CXX='-pic' |
| 10909 | ;; |
| 10910 | cxx) |
| 10911 | # Digital/Compaq C++ |
| 10912 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10913 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10914 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10915 | lt_prog_compiler_pic_CXX= |
| 10916 | lt_prog_compiler_static_CXX='-non_shared' |
| 10917 | ;; |
| 10918 | *) |
| 10919 | ;; |
| 10920 | esac |
| 10921 | ;; |
| 10922 | psos*) |
| 10923 | ;; |
| 10924 | sco*) |
| 10925 | case $cc_basename in |
| 10926 | CC) |
| 10927 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10928 | ;; |
| 10929 | *) |
| 10930 | ;; |
| 10931 | esac |
| 10932 | ;; |
| 10933 | solaris*) |
| 10934 | case $cc_basename in |
| 10935 | CC) |
| 10936 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10937 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10938 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10939 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 10940 | ;; |
| 10941 | gcx) |
| 10942 | # Green Hills C++ Compiler |
| 10943 | lt_prog_compiler_pic_CXX='-PIC' |
| 10944 | ;; |
| 10945 | *) |
| 10946 | ;; |
| 10947 | esac |
| 10948 | ;; |
| 10949 | sunos4*) |
| 10950 | case $cc_basename in |
| 10951 | CC) |
| 10952 | # Sun C++ 4.x |
| 10953 | lt_prog_compiler_pic_CXX='-pic' |
| 10954 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10955 | ;; |
| 10956 | lcc) |
| 10957 | # Lucid |
| 10958 | lt_prog_compiler_pic_CXX='-pic' |
| 10959 | ;; |
| 10960 | *) |
| 10961 | ;; |
| 10962 | esac |
| 10963 | ;; |
| 10964 | tandem*) |
| 10965 | case $cc_basename in |
| 10966 | NCC) |
| 10967 | # NonStop-UX NCC 3.20 |
| 10968 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10969 | ;; |
| 10970 | *) |
| 10971 | ;; |
| 10972 | esac |
| 10973 | ;; |
| 10974 | unixware*) |
| 10975 | ;; |
| 10976 | vxworks*) |
| 10977 | ;; |
| 10978 | *) |
| 10979 | lt_prog_compiler_can_build_shared_CXX=no |
| 10980 | ;; |
| 10981 | esac |
| 10982 | fi |
| 10983 | |
| 10984 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 10985 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 10986 | |
| 10987 | # |
| 10988 | # Check to make sure the PIC flag actually works. |
| 10989 | # |
| 10990 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 10991 | |
| 10992 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 10993 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 10994 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 10995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10996 | else |
| 10997 | lt_prog_compiler_pic_works_CXX=no |
| 10998 | ac_outfile=conftest.$ac_objext |
| 10999 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11000 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 11001 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11002 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11003 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11004 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11005 | # The option is referenced via a variable to avoid confusing sed. |
| 11006 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11007 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 11008 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11009 | -e 's:$: $lt_compiler_flag:'` |
| 11010 | (eval echo "\"\$as_me:11010: $lt_compile\"" >&5) |
| 11011 | (eval "$lt_compile" 2>conftest.err) |
| 11012 | ac_status=$? |
| 11013 | cat conftest.err >&5 |
| 11014 | echo "$as_me:11014: \$? = $ac_status" >&5 |
| 11015 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11016 | # The compiler can only warn and ignore the option if not recognized |
| 11017 | # So say no if there are warnings |
| 11018 | if test ! -s conftest.err; then |
| 11019 | lt_prog_compiler_pic_works_CXX=yes |
| 11020 | fi |
| 11021 | fi |
| 11022 | $rm conftest* |
| 11023 | |
| 11024 | fi |
| 11025 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 11026 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 11027 | |
| 11028 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 11029 | case $lt_prog_compiler_pic_CXX in |
| 11030 | "" | " "*) ;; |
| 11031 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 11032 | esac |
| 11033 | else |
| 11034 | lt_prog_compiler_pic_CXX= |
| 11035 | lt_prog_compiler_can_build_shared_CXX=no |
| 11036 | fi |
| 11037 | |
| 11038 | fi |
| 11039 | case "$host_os" in |
| 11040 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 11041 | *djgpp*) |
| 11042 | lt_prog_compiler_pic_CXX= |
| 11043 | ;; |
| 11044 | *) |
| 11045 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 11046 | ;; |
| 11047 | esac |
| 11048 | |
| 11049 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11050 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 11051 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 11052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11053 | else |
| 11054 | lt_cv_prog_compiler_c_o_CXX=no |
| 11055 | $rm -r conftest 2>/dev/null |
| 11056 | mkdir conftest |
| 11057 | cd conftest |
| 11058 | mkdir out |
| 11059 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11060 | |
| 11061 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11062 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11063 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11064 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11065 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11066 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11067 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 11068 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11069 | -e 's:$: $lt_compiler_flag:'` |
| 11070 | (eval echo "\"\$as_me:11070: $lt_compile\"" >&5) |
| 11071 | (eval "$lt_compile" 2>out/conftest.err) |
| 11072 | ac_status=$? |
| 11073 | cat out/conftest.err >&5 |
| 11074 | echo "$as_me:11074: \$? = $ac_status" >&5 |
| 11075 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11076 | then |
| 11077 | # The compiler can only warn and ignore the option if not recognized |
| 11078 | # So say no if there are warnings |
| 11079 | if test ! -s out/conftest.err; then |
| 11080 | lt_cv_prog_compiler_c_o_CXX=yes |
| 11081 | fi |
| 11082 | fi |
| 11083 | chmod u+w . |
| 11084 | $rm conftest* |
| 11085 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11086 | # template instantiation |
| 11087 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 11088 | $rm out/* && rmdir out |
| 11089 | cd .. |
| 11090 | rmdir conftest |
| 11091 | $rm conftest* |
| 11092 | |
| 11093 | fi |
| 11094 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 11095 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 11096 | |
| 11097 | |
| 11098 | hard_links="nottested" |
| 11099 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 11100 | # do not overwrite the value of need_locks provided by the user |
| 11101 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 11102 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 11103 | hard_links=yes |
| 11104 | $rm conftest* |
| 11105 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11106 | touch conftest.a |
| 11107 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11108 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11109 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 11110 | echo "${ECHO_T}$hard_links" >&6 |
| 11111 | if test "$hard_links" = no; then |
| 11112 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 11113 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 11114 | need_locks=warn |
| 11115 | fi |
| 11116 | else |
| 11117 | need_locks=no |
| 11118 | fi |
| 11119 | |
| 11120 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11121 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 11122 | |
| 11123 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11124 | case $host_os in |
| 11125 | aix4* | aix5*) |
| 11126 | # If we're using GNU nm, then we don't want the "-C" option. |
| 11127 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 11128 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 11129 | 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' |
| 11130 | else |
| 11131 | 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' |
| 11132 | fi |
| 11133 | ;; |
| 11134 | pw32*) |
| 11135 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 11136 | ;; |
| 11137 | cygwin* | mingw*) |
| 11138 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 11139 | ;; |
| 11140 | linux*) |
| 11141 | link_all_deplibs_CXX=no |
| 11142 | ;; |
| 11143 | *) |
| 11144 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11145 | ;; |
| 11146 | esac |
| 11147 | |
| 11148 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11149 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 11150 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11151 | |
| 11152 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11153 | if test "$GCC" = yes; then |
| 11154 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11155 | fi |
| 11156 | |
| 11157 | # |
| 11158 | # Do we need to explicitly link libc? |
| 11159 | # |
| 11160 | case "x$archive_cmds_need_lc_CXX" in |
| 11161 | x|xyes) |
| 11162 | # Assume -lc should be added |
| 11163 | archive_cmds_need_lc_CXX=yes |
| 11164 | |
| 11165 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 11166 | case $archive_cmds_CXX in |
| 11167 | *'~'*) |
| 11168 | # FIXME: we may have to deal with multi-command sequences. |
| 11169 | ;; |
| 11170 | '$CC '*) |
| 11171 | # Test whether the compiler implicitly links with -lc since on some |
| 11172 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 11173 | # to ld, don't add -lc before -lgcc. |
| 11174 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 11175 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 11176 | $rm conftest* |
| 11177 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11178 | |
| 11179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11180 | (eval $ac_compile) 2>&5 |
| 11181 | ac_status=$? |
| 11182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11183 | (exit $ac_status); } 2>conftest.err; then |
| 11184 | soname=conftest |
| 11185 | lib=conftest |
| 11186 | libobjs=conftest.$ac_objext |
| 11187 | deplibs= |
| 11188 | wl=$lt_prog_compiler_wl_CXX |
| 11189 | compiler_flags=-v |
| 11190 | linker_flags=-v |
| 11191 | verstring= |
| 11192 | output_objdir=. |
| 11193 | libname=conftest |
| 11194 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 11195 | allow_undefined_flag_CXX= |
| 11196 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 11197 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 11198 | ac_status=$? |
| 11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11200 | (exit $ac_status); } |
| 11201 | then |
| 11202 | archive_cmds_need_lc_CXX=no |
| 11203 | else |
| 11204 | archive_cmds_need_lc_CXX=yes |
| 11205 | fi |
| 11206 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 11207 | else |
| 11208 | cat conftest.err 1>&5 |
| 11209 | fi |
| 11210 | $rm conftest* |
| 11211 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 11212 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 11213 | ;; |
| 11214 | esac |
| 11215 | fi |
| 11216 | ;; |
| 11217 | esac |
| 11218 | |
| 11219 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 11220 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 11221 | library_names_spec= |
| 11222 | libname_spec='lib$name' |
| 11223 | soname_spec= |
| 11224 | shrext_cmds=".so" |
| 11225 | postinstall_cmds= |
| 11226 | postuninstall_cmds= |
| 11227 | finish_cmds= |
| 11228 | finish_eval= |
| 11229 | shlibpath_var= |
| 11230 | shlibpath_overrides_runpath=unknown |
| 11231 | version_type=none |
| 11232 | dynamic_linker="$host_os ld.so" |
| 11233 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 11234 | if test "$GCC" = yes; then |
| 11235 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11236 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 11237 | # if the path contains ";" then we assume it to be the separator |
| 11238 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 11239 | # assumed that no part of a normal pathname contains ";" but that should |
| 11240 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 11241 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11242 | else |
| 11243 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11244 | fi |
| 11245 | else |
| 11246 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11247 | fi |
| 11248 | need_lib_prefix=unknown |
| 11249 | hardcode_into_libs=no |
| 11250 | |
| 11251 | # when you set need_version to no, make sure it does not cause -set_version |
| 11252 | # flags to be left without arguments |
| 11253 | need_version=unknown |
| 11254 | |
| 11255 | case $host_os in |
| 11256 | aix3*) |
| 11257 | version_type=linux |
| 11258 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11259 | shlibpath_var=LIBPATH |
| 11260 | |
| 11261 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 11262 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11263 | ;; |
| 11264 | |
| 11265 | aix4* | aix5*) |
| 11266 | version_type=linux |
| 11267 | need_lib_prefix=no |
| 11268 | need_version=no |
| 11269 | hardcode_into_libs=yes |
| 11270 | if test "$host_cpu" = ia64; then |
| 11271 | # AIX 5 supports IA64 |
| 11272 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11273 | shlibpath_var=LD_LIBRARY_PATH |
| 11274 | else |
| 11275 | # With GCC up to 2.95.x, collect2 would create an import file |
| 11276 | # for dependence libraries. The import file would start with |
| 11277 | # the line `#! .'. This would cause the generated library to |
| 11278 | # depend on `.', always an invalid library. This was fixed in |
| 11279 | # development snapshots of GCC prior to 3.0. |
| 11280 | case $host_os in |
| 11281 | aix4 | aix4.[01] | aix4.[01].*) |
| 11282 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 11283 | echo ' yes ' |
| 11284 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 11285 | : |
| 11286 | else |
| 11287 | can_build_shared=no |
| 11288 | fi |
| 11289 | ;; |
| 11290 | esac |
| 11291 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 11292 | # soname into executable. Probably we can add versioning support to |
| 11293 | # collect2, so additional links can be useful in future. |
| 11294 | if test "$aix_use_runtimelinking" = yes; then |
| 11295 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 11296 | # instead of lib<name>.a to let people know that these are not |
| 11297 | # typical AIX shared libraries. |
| 11298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11299 | else |
| 11300 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 11301 | # and later when we are not doing run time linking. |
| 11302 | library_names_spec='${libname}${release}.a $libname.a' |
| 11303 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11304 | fi |
| 11305 | shlibpath_var=LIBPATH |
| 11306 | fi |
| 11307 | ;; |
| 11308 | |
| 11309 | amigaos*) |
| 11310 | library_names_spec='$libname.ixlibrary $libname.a' |
| 11311 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 11312 | 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' |
| 11313 | ;; |
| 11314 | |
| 11315 | beos*) |
| 11316 | library_names_spec='${libname}${shared_ext}' |
| 11317 | dynamic_linker="$host_os ld.so" |
| 11318 | shlibpath_var=LIBRARY_PATH |
| 11319 | ;; |
| 11320 | |
| 11321 | bsdi4*) |
| 11322 | version_type=linux |
| 11323 | need_version=no |
| 11324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11325 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11326 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 11327 | shlibpath_var=LD_LIBRARY_PATH |
| 11328 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 11329 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 11330 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 11331 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 11332 | # libtool to hard-code these into programs |
| 11333 | ;; |
| 11334 | |
| 11335 | cygwin* | mingw* | pw32*) |
| 11336 | version_type=windows |
| 11337 | shrext_cmds=".dll" |
| 11338 | need_version=no |
| 11339 | need_lib_prefix=no |
| 11340 | |
| 11341 | case $GCC,$host_os in |
| 11342 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 11343 | library_names_spec='$libname.dll.a' |
| 11344 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 11345 | postinstall_cmds='base_file=`basename \${file}`~ |
| 11346 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 11347 | dldir=$destdir/`dirname \$dlpath`~ |
| 11348 | test -d \$dldir || mkdir -p \$dldir~ |
| 11349 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 11350 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 11351 | dlpath=$dir/\$dldll~ |
| 11352 | $rm \$dlpath' |
| 11353 | shlibpath_overrides_runpath=yes |
| 11354 | |
| 11355 | case $host_os in |
| 11356 | cygwin*) |
| 11357 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 11358 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11359 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 11360 | ;; |
| 11361 | mingw*) |
| 11362 | # MinGW DLLs use traditional 'lib' prefix |
| 11363 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11364 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11365 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 11366 | # It is most probably a Windows format PATH printed by |
| 11367 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 11368 | # path with ; separators, and with drive letters. We can handle the |
| 11369 | # drive letters (cygwin fileutils understands them), so leave them, |
| 11370 | # especially as we might pass files found there to a mingw objdump, |
| 11371 | # which wouldn't understand a cygwinified path. Ahh. |
| 11372 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11373 | else |
| 11374 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11375 | fi |
| 11376 | ;; |
| 11377 | pw32*) |
| 11378 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 11379 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 11380 | ;; |
| 11381 | esac |
| 11382 | ;; |
| 11383 | |
| 11384 | *) |
| 11385 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 11386 | ;; |
| 11387 | esac |
| 11388 | dynamic_linker='Win32 ld.exe' |
| 11389 | # FIXME: first we should search . and the directory the executable is in |
| 11390 | shlibpath_var=PATH |
| 11391 | ;; |
| 11392 | |
| 11393 | darwin* | rhapsody*) |
| 11394 | dynamic_linker="$host_os dyld" |
| 11395 | version_type=darwin |
| 11396 | need_lib_prefix=no |
| 11397 | need_version=no |
| 11398 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 11399 | soname_spec='${libname}${release}${major}$shared_ext' |
| 11400 | shlibpath_overrides_runpath=yes |
| 11401 | shlibpath_var=DYLD_LIBRARY_PATH |
| 11402 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 11403 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 11404 | if test "$GCC" = yes; then |
| 11405 | 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"` |
| 11406 | else |
| 11407 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 11408 | fi |
| 11409 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 11410 | ;; |
| 11411 | |
| 11412 | dgux*) |
| 11413 | version_type=linux |
| 11414 | need_lib_prefix=no |
| 11415 | need_version=no |
| 11416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 11417 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11418 | shlibpath_var=LD_LIBRARY_PATH |
| 11419 | ;; |
| 11420 | |
| 11421 | freebsd1*) |
| 11422 | dynamic_linker=no |
| 11423 | ;; |
| 11424 | |
| 11425 | kfreebsd*-gnu) |
| 11426 | version_type=linux |
| 11427 | need_lib_prefix=no |
| 11428 | need_version=no |
| 11429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11430 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11431 | shlibpath_var=LD_LIBRARY_PATH |
| 11432 | shlibpath_overrides_runpath=no |
| 11433 | hardcode_into_libs=yes |
| 11434 | dynamic_linker='GNU ld.so' |
| 11435 | ;; |
| 11436 | |
| 11437 | freebsd*) |
| 11438 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 11439 | version_type=freebsd-$objformat |
| 11440 | case $version_type in |
| 11441 | freebsd-elf*) |
| 11442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11443 | need_version=no |
| 11444 | need_lib_prefix=no |
| 11445 | ;; |
| 11446 | freebsd-*) |
| 11447 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 11448 | need_version=yes |
| 11449 | ;; |
| 11450 | esac |
| 11451 | shlibpath_var=LD_LIBRARY_PATH |
| 11452 | case $host_os in |
| 11453 | freebsd2*) |
| 11454 | shlibpath_overrides_runpath=yes |
| 11455 | ;; |
| 11456 | freebsd3.01* | freebsdelf3.01*) |
| 11457 | shlibpath_overrides_runpath=yes |
| 11458 | hardcode_into_libs=yes |
| 11459 | ;; |
| 11460 | *) # from 3.2 on |
| 11461 | shlibpath_overrides_runpath=no |
| 11462 | hardcode_into_libs=yes |
| 11463 | ;; |
| 11464 | esac |
| 11465 | ;; |
| 11466 | |
| 11467 | gnu*) |
| 11468 | version_type=linux |
| 11469 | need_lib_prefix=no |
| 11470 | need_version=no |
| 11471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 11472 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11473 | shlibpath_var=LD_LIBRARY_PATH |
| 11474 | hardcode_into_libs=yes |
| 11475 | ;; |
| 11476 | |
| 11477 | hpux9* | hpux10* | hpux11*) |
| 11478 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 11479 | # link against other versions. |
| 11480 | version_type=sunos |
| 11481 | need_lib_prefix=no |
| 11482 | need_version=no |
| 11483 | case "$host_cpu" in |
| 11484 | ia64*) |
| 11485 | shrext_cmds='.so' |
| 11486 | hardcode_into_libs=yes |
| 11487 | dynamic_linker="$host_os dld.so" |
| 11488 | shlibpath_var=LD_LIBRARY_PATH |
| 11489 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11491 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11492 | if test "X$HPUX_IA64_MODE" = X32; then |
| 11493 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 11494 | else |
| 11495 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 11496 | fi |
| 11497 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11498 | ;; |
| 11499 | hppa*64*) |
| 11500 | shrext_cmds='.sl' |
| 11501 | hardcode_into_libs=yes |
| 11502 | dynamic_linker="$host_os dld.sl" |
| 11503 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11504 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11506 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11507 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11508 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11509 | ;; |
| 11510 | *) |
| 11511 | shrext_cmds='.sl' |
| 11512 | dynamic_linker="$host_os dld.sl" |
| 11513 | shlibpath_var=SHLIB_PATH |
| 11514 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11516 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11517 | ;; |
| 11518 | esac |
| 11519 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 11520 | postinstall_cmds='chmod 555 $lib' |
| 11521 | ;; |
| 11522 | |
| 11523 | irix5* | irix6* | nonstopux*) |
| 11524 | case $host_os in |
| 11525 | nonstopux*) version_type=nonstopux ;; |
| 11526 | *) |
| 11527 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11528 | version_type=linux |
| 11529 | else |
| 11530 | version_type=irix |
| 11531 | fi ;; |
| 11532 | esac |
| 11533 | need_lib_prefix=no |
| 11534 | need_version=no |
| 11535 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11537 | case $host_os in |
| 11538 | irix5* | nonstopux*) |
| 11539 | libsuff= shlibsuff= |
| 11540 | ;; |
| 11541 | *) |
| 11542 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11543 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11544 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11545 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11546 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11547 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11548 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11549 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11550 | esac |
| 11551 | ;; |
| 11552 | esac |
| 11553 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11554 | shlibpath_overrides_runpath=no |
| 11555 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11556 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11557 | hardcode_into_libs=yes |
| 11558 | ;; |
| 11559 | |
| 11560 | # No shared lib support for Linux oldld, aout, or coff. |
| 11561 | linux*oldld* | linux*aout* | linux*coff*) |
| 11562 | dynamic_linker=no |
| 11563 | ;; |
| 11564 | |
| 11565 | # This must be Linux ELF. |
| 11566 | linux*) |
| 11567 | version_type=linux |
| 11568 | need_lib_prefix=no |
| 11569 | need_version=no |
| 11570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11571 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11572 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11573 | shlibpath_var=LD_LIBRARY_PATH |
| 11574 | shlibpath_overrides_runpath=no |
| 11575 | # This implies no fast_install, which is unacceptable. |
| 11576 | # Some rework will be needed to allow for fast_install |
| 11577 | # before this can be enabled. |
| 11578 | hardcode_into_libs=yes |
| 11579 | |
| 11580 | # Append ld.so.conf contents to the search path |
| 11581 | if test -f /etc/ld.so.conf; then |
| 11582 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 11583 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11584 | fi |
| 11585 | |
| 11586 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11587 | # powerpc, because MkLinux only supported shared libraries with the |
| 11588 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11589 | # most powerpc-linux boxes support dynamic linking these days and |
| 11590 | # people can always --disable-shared, the test was removed, and we |
| 11591 | # assume the GNU/Linux dynamic linker is in use. |
| 11592 | dynamic_linker='GNU/Linux ld.so' |
| 11593 | ;; |
| 11594 | |
| 11595 | netbsdelf*-gnu) |
| 11596 | version_type=linux |
| 11597 | need_lib_prefix=no |
| 11598 | need_version=no |
| 11599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11600 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11601 | shlibpath_var=LD_LIBRARY_PATH |
| 11602 | shlibpath_overrides_runpath=no |
| 11603 | hardcode_into_libs=yes |
| 11604 | dynamic_linker='NetBSD ld.elf_so' |
| 11605 | ;; |
| 11606 | |
| 11607 | knetbsd*-gnu) |
| 11608 | version_type=linux |
| 11609 | need_lib_prefix=no |
| 11610 | need_version=no |
| 11611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11612 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11613 | shlibpath_var=LD_LIBRARY_PATH |
| 11614 | shlibpath_overrides_runpath=no |
| 11615 | hardcode_into_libs=yes |
| 11616 | dynamic_linker='GNU ld.so' |
| 11617 | ;; |
| 11618 | |
| 11619 | netbsd*) |
| 11620 | version_type=sunos |
| 11621 | need_lib_prefix=no |
| 11622 | need_version=no |
| 11623 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11625 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11626 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11627 | else |
| 11628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11629 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11630 | dynamic_linker='NetBSD ld.elf_so' |
| 11631 | fi |
| 11632 | shlibpath_var=LD_LIBRARY_PATH |
| 11633 | shlibpath_overrides_runpath=yes |
| 11634 | hardcode_into_libs=yes |
| 11635 | ;; |
| 11636 | |
| 11637 | newsos6) |
| 11638 | version_type=linux |
| 11639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11640 | shlibpath_var=LD_LIBRARY_PATH |
| 11641 | shlibpath_overrides_runpath=yes |
| 11642 | ;; |
| 11643 | |
| 11644 | nto-qnx*) |
| 11645 | version_type=linux |
| 11646 | need_lib_prefix=no |
| 11647 | need_version=no |
| 11648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11649 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11650 | shlibpath_var=LD_LIBRARY_PATH |
| 11651 | shlibpath_overrides_runpath=yes |
| 11652 | ;; |
| 11653 | |
| 11654 | openbsd*) |
| 11655 | version_type=sunos |
| 11656 | need_lib_prefix=no |
| 11657 | need_version=yes |
| 11658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11659 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11660 | shlibpath_var=LD_LIBRARY_PATH |
| 11661 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11662 | case $host_os in |
| 11663 | openbsd2.[89] | openbsd2.[89].*) |
| 11664 | shlibpath_overrides_runpath=no |
| 11665 | ;; |
| 11666 | *) |
| 11667 | shlibpath_overrides_runpath=yes |
| 11668 | ;; |
| 11669 | esac |
| 11670 | else |
| 11671 | shlibpath_overrides_runpath=yes |
| 11672 | fi |
| 11673 | ;; |
| 11674 | |
| 11675 | os2*) |
| 11676 | libname_spec='$name' |
| 11677 | shrext_cmds=".dll" |
| 11678 | need_lib_prefix=no |
| 11679 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11680 | dynamic_linker='OS/2 ld.exe' |
| 11681 | shlibpath_var=LIBPATH |
| 11682 | ;; |
| 11683 | |
| 11684 | osf3* | osf4* | osf5*) |
| 11685 | version_type=osf |
| 11686 | need_lib_prefix=no |
| 11687 | need_version=no |
| 11688 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11690 | shlibpath_var=LD_LIBRARY_PATH |
| 11691 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11692 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11693 | ;; |
| 11694 | |
| 11695 | sco3.2v5*) |
| 11696 | version_type=osf |
| 11697 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11699 | shlibpath_var=LD_LIBRARY_PATH |
| 11700 | ;; |
| 11701 | |
| 11702 | solaris*) |
| 11703 | version_type=linux |
| 11704 | need_lib_prefix=no |
| 11705 | need_version=no |
| 11706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11707 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11708 | shlibpath_var=LD_LIBRARY_PATH |
| 11709 | shlibpath_overrides_runpath=yes |
| 11710 | hardcode_into_libs=yes |
| 11711 | # ldd complains unless libraries are executable |
| 11712 | postinstall_cmds='chmod +x $lib' |
| 11713 | ;; |
| 11714 | |
| 11715 | sunos4*) |
| 11716 | version_type=sunos |
| 11717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11718 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11719 | shlibpath_var=LD_LIBRARY_PATH |
| 11720 | shlibpath_overrides_runpath=yes |
| 11721 | if test "$with_gnu_ld" = yes; then |
| 11722 | need_lib_prefix=no |
| 11723 | fi |
| 11724 | need_version=yes |
| 11725 | ;; |
| 11726 | |
| 11727 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11728 | version_type=linux |
| 11729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11730 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11731 | shlibpath_var=LD_LIBRARY_PATH |
| 11732 | case $host_vendor in |
| 11733 | sni) |
| 11734 | shlibpath_overrides_runpath=no |
| 11735 | need_lib_prefix=no |
| 11736 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11737 | runpath_var=LD_RUN_PATH |
| 11738 | ;; |
| 11739 | siemens) |
| 11740 | need_lib_prefix=no |
| 11741 | ;; |
| 11742 | motorola) |
| 11743 | need_lib_prefix=no |
| 11744 | need_version=no |
| 11745 | shlibpath_overrides_runpath=no |
| 11746 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11747 | ;; |
| 11748 | esac |
| 11749 | ;; |
| 11750 | |
| 11751 | sysv4*MP*) |
| 11752 | if test -d /usr/nec ;then |
| 11753 | version_type=linux |
| 11754 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11755 | soname_spec='$libname${shared_ext}.$major' |
| 11756 | shlibpath_var=LD_LIBRARY_PATH |
| 11757 | fi |
| 11758 | ;; |
| 11759 | |
| 11760 | uts4*) |
| 11761 | version_type=linux |
| 11762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11763 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11764 | shlibpath_var=LD_LIBRARY_PATH |
| 11765 | ;; |
| 11766 | |
| 11767 | *) |
| 11768 | dynamic_linker=no |
| 11769 | ;; |
| 11770 | esac |
| 11771 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 11772 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11773 | test "$dynamic_linker" = no && can_build_shared=no |
| 11774 | |
| 11775 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 11776 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 11777 | hardcode_action_CXX= |
| 11778 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 11779 | test -n "$runpath_var CXX" || \ |
| 11780 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
| 11781 | |
| 11782 | # We can hardcode non-existant directories. |
| 11783 | if test "$hardcode_direct_CXX" != no && |
| 11784 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11785 | # have to relink, otherwise we might link with an installed library |
| 11786 | # when we should be linking with a yet-to-be-installed one |
| 11787 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 11788 | test "$hardcode_minus_L_CXX" != no; then |
| 11789 | # Linking always hardcodes the temporary library directory. |
| 11790 | hardcode_action_CXX=relink |
| 11791 | else |
| 11792 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11793 | hardcode_action_CXX=immediate |
| 11794 | fi |
| 11795 | else |
| 11796 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11797 | # directories. |
| 11798 | hardcode_action_CXX=unsupported |
| 11799 | fi |
| 11800 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 11801 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 11802 | |
| 11803 | if test "$hardcode_action_CXX" = relink; then |
| 11804 | # Fast installation is not supported |
| 11805 | enable_fast_install=no |
| 11806 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11807 | test "$enable_shared" = no; then |
| 11808 | # Fast installation is not necessary |
| 11809 | enable_fast_install=needless |
| 11810 | fi |
| 11811 | |
| 11812 | striplib= |
| 11813 | old_striplib= |
| 11814 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 11815 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 11816 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 11817 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11818 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11819 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11820 | echo "${ECHO_T}yes" >&6 |
| 11821 | else |
| 11822 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11823 | case $host_os in |
| 11824 | darwin*) |
| 11825 | if test -n "$STRIP" ; then |
| 11826 | striplib="$STRIP -x" |
| 11827 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11828 | echo "${ECHO_T}yes" >&6 |
| 11829 | else |
| 11830 | echo "$as_me:$LINENO: result: no" >&5 |
| 11831 | echo "${ECHO_T}no" >&6 |
| 11832 | fi |
| 11833 | ;; |
| 11834 | *) |
| 11835 | echo "$as_me:$LINENO: result: no" >&5 |
| 11836 | echo "${ECHO_T}no" >&6 |
| 11837 | ;; |
| 11838 | esac |
| 11839 | fi |
| 11840 | |
| 11841 | if test "x$enable_dlopen" != xyes; then |
| 11842 | enable_dlopen=unknown |
| 11843 | enable_dlopen_self=unknown |
| 11844 | enable_dlopen_self_static=unknown |
| 11845 | else |
| 11846 | lt_cv_dlopen=no |
| 11847 | lt_cv_dlopen_libs= |
| 11848 | |
| 11849 | case $host_os in |
| 11850 | beos*) |
| 11851 | lt_cv_dlopen="load_add_on" |
| 11852 | lt_cv_dlopen_libs= |
| 11853 | lt_cv_dlopen_self=yes |
| 11854 | ;; |
| 11855 | |
| 11856 | mingw* | pw32*) |
| 11857 | lt_cv_dlopen="LoadLibrary" |
| 11858 | lt_cv_dlopen_libs= |
| 11859 | ;; |
| 11860 | |
| 11861 | cygwin*) |
| 11862 | lt_cv_dlopen="dlopen" |
| 11863 | lt_cv_dlopen_libs= |
| 11864 | ;; |
| 11865 | |
| 11866 | darwin*) |
| 11867 | # if libdl is installed we need to link against it |
| 11868 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11869 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11870 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11872 | else |
| 11873 | ac_check_lib_save_LIBS=$LIBS |
| 11874 | LIBS="-ldl $LIBS" |
| 11875 | cat >conftest.$ac_ext <<_ACEOF |
| 11876 | /* confdefs.h. */ |
| 11877 | _ACEOF |
| 11878 | cat confdefs.h >>conftest.$ac_ext |
| 11879 | cat >>conftest.$ac_ext <<_ACEOF |
| 11880 | /* end confdefs.h. */ |
| 11881 | |
| 11882 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11883 | #ifdef __cplusplus |
| 11884 | extern "C" |
| 11885 | #endif |
| 11886 | /* We use char because int might match the return type of a gcc2 |
| 11887 | builtin and then its argument prototype would still apply. */ |
| 11888 | char dlopen (); |
| 11889 | int |
| 11890 | main () |
| 11891 | { |
| 11892 | dlopen (); |
| 11893 | ; |
| 11894 | return 0; |
| 11895 | } |
| 11896 | _ACEOF |
| 11897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11899 | (eval $ac_link) 2>conftest.er1 |
| 11900 | ac_status=$? |
| 11901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11902 | rm -f conftest.er1 |
| 11903 | cat conftest.err >&5 |
| 11904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11905 | (exit $ac_status); } && |
| 11906 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11908 | (eval $ac_try) 2>&5 |
| 11909 | ac_status=$? |
| 11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11911 | (exit $ac_status); }; } && |
| 11912 | { ac_try='test -s conftest$ac_exeext' |
| 11913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11914 | (eval $ac_try) 2>&5 |
| 11915 | ac_status=$? |
| 11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11917 | (exit $ac_status); }; }; then |
| 11918 | ac_cv_lib_dl_dlopen=yes |
| 11919 | else |
| 11920 | echo "$as_me: failed program was:" >&5 |
| 11921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11922 | |
| 11923 | ac_cv_lib_dl_dlopen=no |
| 11924 | fi |
| 11925 | rm -f conftest.err conftest.$ac_objext \ |
| 11926 | conftest$ac_exeext conftest.$ac_ext |
| 11927 | LIBS=$ac_check_lib_save_LIBS |
| 11928 | fi |
| 11929 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11930 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11931 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11932 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11933 | else |
| 11934 | |
| 11935 | lt_cv_dlopen="dyld" |
| 11936 | lt_cv_dlopen_libs= |
| 11937 | lt_cv_dlopen_self=yes |
| 11938 | |
| 11939 | fi |
| 11940 | |
| 11941 | ;; |
| 11942 | |
| 11943 | *) |
| 11944 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11945 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11946 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11948 | else |
| 11949 | cat >conftest.$ac_ext <<_ACEOF |
| 11950 | /* confdefs.h. */ |
| 11951 | _ACEOF |
| 11952 | cat confdefs.h >>conftest.$ac_ext |
| 11953 | cat >>conftest.$ac_ext <<_ACEOF |
| 11954 | /* end confdefs.h. */ |
| 11955 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 11956 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11957 | #define shl_load innocuous_shl_load |
| 11958 | |
| 11959 | /* System header to define __stub macros and hopefully few prototypes, |
| 11960 | which can conflict with char shl_load (); below. |
| 11961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11962 | <limits.h> exists even on freestanding compilers. */ |
| 11963 | |
| 11964 | #ifdef __STDC__ |
| 11965 | # include <limits.h> |
| 11966 | #else |
| 11967 | # include <assert.h> |
| 11968 | #endif |
| 11969 | |
| 11970 | #undef shl_load |
| 11971 | |
| 11972 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11973 | #ifdef __cplusplus |
| 11974 | extern "C" |
| 11975 | { |
| 11976 | #endif |
| 11977 | /* We use char because int might match the return type of a gcc2 |
| 11978 | builtin and then its argument prototype would still apply. */ |
| 11979 | char shl_load (); |
| 11980 | /* The GNU C library defines this for functions which it implements |
| 11981 | to always fail with ENOSYS. Some functions are actually named |
| 11982 | something starting with __ and the normal name is an alias. */ |
| 11983 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 11984 | choke me |
| 11985 | #else |
| 11986 | char (*f) () = shl_load; |
| 11987 | #endif |
| 11988 | #ifdef __cplusplus |
| 11989 | } |
| 11990 | #endif |
| 11991 | |
| 11992 | int |
| 11993 | main () |
| 11994 | { |
| 11995 | return f != shl_load; |
| 11996 | ; |
| 11997 | return 0; |
| 11998 | } |
| 11999 | _ACEOF |
| 12000 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12002 | (eval $ac_link) 2>conftest.er1 |
| 12003 | ac_status=$? |
| 12004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12005 | rm -f conftest.er1 |
| 12006 | cat conftest.err >&5 |
| 12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12008 | (exit $ac_status); } && |
| 12009 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 12010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12011 | (eval $ac_try) 2>&5 |
| 12012 | ac_status=$? |
| 12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12014 | (exit $ac_status); }; } && |
| 12015 | { ac_try='test -s conftest$ac_exeext' |
| 12016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12017 | (eval $ac_try) 2>&5 |
| 12018 | ac_status=$? |
| 12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12020 | (exit $ac_status); }; }; then |
| 12021 | ac_cv_func_shl_load=yes |
| 12022 | else |
| 12023 | echo "$as_me: failed program was:" >&5 |
| 12024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12025 | |
| 12026 | ac_cv_func_shl_load=no |
| 12027 | fi |
| 12028 | rm -f conftest.err conftest.$ac_objext \ |
| 12029 | conftest$ac_exeext conftest.$ac_ext |
| 12030 | fi |
| 12031 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 12032 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 12033 | if test $ac_cv_func_shl_load = yes; then |
| 12034 | lt_cv_dlopen="shl_load" |
| 12035 | else |
| 12036 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 12037 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 12038 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 12039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12040 | else |
| 12041 | ac_check_lib_save_LIBS=$LIBS |
| 12042 | LIBS="-ldld $LIBS" |
| 12043 | cat >conftest.$ac_ext <<_ACEOF |
| 12044 | /* confdefs.h. */ |
| 12045 | _ACEOF |
| 12046 | cat confdefs.h >>conftest.$ac_ext |
| 12047 | cat >>conftest.$ac_ext <<_ACEOF |
| 12048 | /* end confdefs.h. */ |
| 12049 | |
| 12050 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12051 | #ifdef __cplusplus |
| 12052 | extern "C" |
| 12053 | #endif |
| 12054 | /* We use char because int might match the return type of a gcc2 |
| 12055 | builtin and then its argument prototype would still apply. */ |
| 12056 | char shl_load (); |
| 12057 | int |
| 12058 | main () |
| 12059 | { |
| 12060 | shl_load (); |
| 12061 | ; |
| 12062 | return 0; |
| 12063 | } |
| 12064 | _ACEOF |
| 12065 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12067 | (eval $ac_link) 2>conftest.er1 |
| 12068 | ac_status=$? |
| 12069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12070 | rm -f conftest.er1 |
| 12071 | cat conftest.err >&5 |
| 12072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12073 | (exit $ac_status); } && |
| 12074 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 12075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12076 | (eval $ac_try) 2>&5 |
| 12077 | ac_status=$? |
| 12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12079 | (exit $ac_status); }; } && |
| 12080 | { ac_try='test -s conftest$ac_exeext' |
| 12081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12082 | (eval $ac_try) 2>&5 |
| 12083 | ac_status=$? |
| 12084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12085 | (exit $ac_status); }; }; then |
| 12086 | ac_cv_lib_dld_shl_load=yes |
| 12087 | else |
| 12088 | echo "$as_me: failed program was:" >&5 |
| 12089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12090 | |
| 12091 | ac_cv_lib_dld_shl_load=no |
| 12092 | fi |
| 12093 | rm -f conftest.err conftest.$ac_objext \ |
| 12094 | conftest$ac_exeext conftest.$ac_ext |
| 12095 | LIBS=$ac_check_lib_save_LIBS |
| 12096 | fi |
| 12097 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12098 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 12099 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 12100 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 12101 | else |
| 12102 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 12103 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 12104 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 12105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12106 | else |
| 12107 | cat >conftest.$ac_ext <<_ACEOF |
| 12108 | /* confdefs.h. */ |
| 12109 | _ACEOF |
| 12110 | cat confdefs.h >>conftest.$ac_ext |
| 12111 | cat >>conftest.$ac_ext <<_ACEOF |
| 12112 | /* end confdefs.h. */ |
| 12113 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 12114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12115 | #define dlopen innocuous_dlopen |
| 12116 | |
| 12117 | /* System header to define __stub macros and hopefully few prototypes, |
| 12118 | which can conflict with char dlopen (); below. |
| 12119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12120 | <limits.h> exists even on freestanding compilers. */ |
| 12121 | |
| 12122 | #ifdef __STDC__ |
| 12123 | # include <limits.h> |
| 12124 | #else |
| 12125 | # include <assert.h> |
| 12126 | #endif |
| 12127 | |
| 12128 | #undef dlopen |
| 12129 | |
| 12130 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12131 | #ifdef __cplusplus |
| 12132 | extern "C" |
| 12133 | { |
| 12134 | #endif |
| 12135 | /* We use char because int might match the return type of a gcc2 |
| 12136 | builtin and then its argument prototype would still apply. */ |
| 12137 | char dlopen (); |
| 12138 | /* The GNU C library defines this for functions which it implements |
| 12139 | to always fail with ENOSYS. Some functions are actually named |
| 12140 | something starting with __ and the normal name is an alias. */ |
| 12141 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 12142 | choke me |
| 12143 | #else |
| 12144 | char (*f) () = dlopen; |
| 12145 | #endif |
| 12146 | #ifdef __cplusplus |
| 12147 | } |
| 12148 | #endif |
| 12149 | |
| 12150 | int |
| 12151 | main () |
| 12152 | { |
| 12153 | return f != dlopen; |
| 12154 | ; |
| 12155 | return 0; |
| 12156 | } |
| 12157 | _ACEOF |
| 12158 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12160 | (eval $ac_link) 2>conftest.er1 |
| 12161 | ac_status=$? |
| 12162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12163 | rm -f conftest.er1 |
| 12164 | cat conftest.err >&5 |
| 12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12166 | (exit $ac_status); } && |
| 12167 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 12168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12169 | (eval $ac_try) 2>&5 |
| 12170 | ac_status=$? |
| 12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12172 | (exit $ac_status); }; } && |
| 12173 | { ac_try='test -s conftest$ac_exeext' |
| 12174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12175 | (eval $ac_try) 2>&5 |
| 12176 | ac_status=$? |
| 12177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12178 | (exit $ac_status); }; }; then |
| 12179 | ac_cv_func_dlopen=yes |
| 12180 | else |
| 12181 | echo "$as_me: failed program was:" >&5 |
| 12182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12183 | |
| 12184 | ac_cv_func_dlopen=no |
| 12185 | fi |
| 12186 | rm -f conftest.err conftest.$ac_objext \ |
| 12187 | conftest$ac_exeext conftest.$ac_ext |
| 12188 | fi |
| 12189 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 12190 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 12191 | if test $ac_cv_func_dlopen = yes; then |
| 12192 | lt_cv_dlopen="dlopen" |
| 12193 | else |
| 12194 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 12195 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 12196 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 12197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12198 | else |
| 12199 | ac_check_lib_save_LIBS=$LIBS |
| 12200 | LIBS="-ldl $LIBS" |
| 12201 | cat >conftest.$ac_ext <<_ACEOF |
| 12202 | /* confdefs.h. */ |
| 12203 | _ACEOF |
| 12204 | cat confdefs.h >>conftest.$ac_ext |
| 12205 | cat >>conftest.$ac_ext <<_ACEOF |
| 12206 | /* end confdefs.h. */ |
| 12207 | |
| 12208 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12209 | #ifdef __cplusplus |
| 12210 | extern "C" |
| 12211 | #endif |
| 12212 | /* We use char because int might match the return type of a gcc2 |
| 12213 | builtin and then its argument prototype would still apply. */ |
| 12214 | char dlopen (); |
| 12215 | int |
| 12216 | main () |
| 12217 | { |
| 12218 | dlopen (); |
| 12219 | ; |
| 12220 | return 0; |
| 12221 | } |
| 12222 | _ACEOF |
| 12223 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12225 | (eval $ac_link) 2>conftest.er1 |
| 12226 | ac_status=$? |
| 12227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12228 | rm -f conftest.er1 |
| 12229 | cat conftest.err >&5 |
| 12230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12231 | (exit $ac_status); } && |
| 12232 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 12233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12234 | (eval $ac_try) 2>&5 |
| 12235 | ac_status=$? |
| 12236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12237 | (exit $ac_status); }; } && |
| 12238 | { ac_try='test -s conftest$ac_exeext' |
| 12239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12240 | (eval $ac_try) 2>&5 |
| 12241 | ac_status=$? |
| 12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12243 | (exit $ac_status); }; }; then |
| 12244 | ac_cv_lib_dl_dlopen=yes |
| 12245 | else |
| 12246 | echo "$as_me: failed program was:" >&5 |
| 12247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12248 | |
| 12249 | ac_cv_lib_dl_dlopen=no |
| 12250 | fi |
| 12251 | rm -f conftest.err conftest.$ac_objext \ |
| 12252 | conftest$ac_exeext conftest.$ac_ext |
| 12253 | LIBS=$ac_check_lib_save_LIBS |
| 12254 | fi |
| 12255 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12256 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 12257 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 12258 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12259 | else |
| 12260 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 12261 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 12262 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 12263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12264 | else |
| 12265 | ac_check_lib_save_LIBS=$LIBS |
| 12266 | LIBS="-lsvld $LIBS" |
| 12267 | cat >conftest.$ac_ext <<_ACEOF |
| 12268 | /* confdefs.h. */ |
| 12269 | _ACEOF |
| 12270 | cat confdefs.h >>conftest.$ac_ext |
| 12271 | cat >>conftest.$ac_ext <<_ACEOF |
| 12272 | /* end confdefs.h. */ |
| 12273 | |
| 12274 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12275 | #ifdef __cplusplus |
| 12276 | extern "C" |
| 12277 | #endif |
| 12278 | /* We use char because int might match the return type of a gcc2 |
| 12279 | builtin and then its argument prototype would still apply. */ |
| 12280 | char dlopen (); |
| 12281 | int |
| 12282 | main () |
| 12283 | { |
| 12284 | dlopen (); |
| 12285 | ; |
| 12286 | return 0; |
| 12287 | } |
| 12288 | _ACEOF |
| 12289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12291 | (eval $ac_link) 2>conftest.er1 |
| 12292 | ac_status=$? |
| 12293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12294 | rm -f conftest.er1 |
| 12295 | cat conftest.err >&5 |
| 12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12297 | (exit $ac_status); } && |
| 12298 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 12299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12300 | (eval $ac_try) 2>&5 |
| 12301 | ac_status=$? |
| 12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12303 | (exit $ac_status); }; } && |
| 12304 | { ac_try='test -s conftest$ac_exeext' |
| 12305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12306 | (eval $ac_try) 2>&5 |
| 12307 | ac_status=$? |
| 12308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12309 | (exit $ac_status); }; }; then |
| 12310 | ac_cv_lib_svld_dlopen=yes |
| 12311 | else |
| 12312 | echo "$as_me: failed program was:" >&5 |
| 12313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12314 | |
| 12315 | ac_cv_lib_svld_dlopen=no |
| 12316 | fi |
| 12317 | rm -f conftest.err conftest.$ac_objext \ |
| 12318 | conftest$ac_exeext conftest.$ac_ext |
| 12319 | LIBS=$ac_check_lib_save_LIBS |
| 12320 | fi |
| 12321 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 12322 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 12323 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 12324 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 12325 | else |
| 12326 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 12327 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 12328 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 12329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12330 | else |
| 12331 | ac_check_lib_save_LIBS=$LIBS |
| 12332 | LIBS="-ldld $LIBS" |
| 12333 | cat >conftest.$ac_ext <<_ACEOF |
| 12334 | /* confdefs.h. */ |
| 12335 | _ACEOF |
| 12336 | cat confdefs.h >>conftest.$ac_ext |
| 12337 | cat >>conftest.$ac_ext <<_ACEOF |
| 12338 | /* end confdefs.h. */ |
| 12339 | |
| 12340 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12341 | #ifdef __cplusplus |
| 12342 | extern "C" |
| 12343 | #endif |
| 12344 | /* We use char because int might match the return type of a gcc2 |
| 12345 | builtin and then its argument prototype would still apply. */ |
| 12346 | char dld_link (); |
| 12347 | int |
| 12348 | main () |
| 12349 | { |
| 12350 | dld_link (); |
| 12351 | ; |
| 12352 | return 0; |
| 12353 | } |
| 12354 | _ACEOF |
| 12355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12357 | (eval $ac_link) 2>conftest.er1 |
| 12358 | ac_status=$? |
| 12359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12360 | rm -f conftest.er1 |
| 12361 | cat conftest.err >&5 |
| 12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12363 | (exit $ac_status); } && |
| 12364 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 12365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12366 | (eval $ac_try) 2>&5 |
| 12367 | ac_status=$? |
| 12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12369 | (exit $ac_status); }; } && |
| 12370 | { ac_try='test -s conftest$ac_exeext' |
| 12371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12372 | (eval $ac_try) 2>&5 |
| 12373 | ac_status=$? |
| 12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12375 | (exit $ac_status); }; }; then |
| 12376 | ac_cv_lib_dld_dld_link=yes |
| 12377 | else |
| 12378 | echo "$as_me: failed program was:" >&5 |
| 12379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12380 | |
| 12381 | ac_cv_lib_dld_dld_link=no |
| 12382 | fi |
| 12383 | rm -f conftest.err conftest.$ac_objext \ |
| 12384 | conftest$ac_exeext conftest.$ac_ext |
| 12385 | LIBS=$ac_check_lib_save_LIBS |
| 12386 | fi |
| 12387 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 12388 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 12389 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 12390 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 12391 | fi |
| 12392 | |
| 12393 | |
| 12394 | fi |
| 12395 | |
| 12396 | |
| 12397 | fi |
| 12398 | |
| 12399 | |
| 12400 | fi |
| 12401 | |
| 12402 | |
| 12403 | fi |
| 12404 | |
| 12405 | |
| 12406 | fi |
| 12407 | |
| 12408 | ;; |
| 12409 | esac |
| 12410 | |
| 12411 | if test "x$lt_cv_dlopen" != xno; then |
| 12412 | enable_dlopen=yes |
| 12413 | else |
| 12414 | enable_dlopen=no |
| 12415 | fi |
| 12416 | |
| 12417 | case $lt_cv_dlopen in |
| 12418 | dlopen) |
| 12419 | save_CPPFLAGS="$CPPFLAGS" |
| 12420 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12421 | |
| 12422 | save_LDFLAGS="$LDFLAGS" |
| 12423 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 12424 | |
| 12425 | save_LIBS="$LIBS" |
| 12426 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 12427 | |
| 12428 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 12429 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 12430 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 12431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12432 | else |
| 12433 | if test "$cross_compiling" = yes; then : |
| 12434 | lt_cv_dlopen_self=cross |
| 12435 | else |
| 12436 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12437 | lt_status=$lt_dlunknown |
| 12438 | cat > conftest.$ac_ext <<EOF |
| 12439 | #line 12439 "configure" |
| 12440 | #include "confdefs.h" |
| 12441 | |
| 12442 | #if HAVE_DLFCN_H |
| 12443 | #include <dlfcn.h> |
| 12444 | #endif |
| 12445 | |
| 12446 | #include <stdio.h> |
| 12447 | |
| 12448 | #ifdef RTLD_GLOBAL |
| 12449 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12450 | #else |
| 12451 | # ifdef DL_GLOBAL |
| 12452 | # define LT_DLGLOBAL DL_GLOBAL |
| 12453 | # else |
| 12454 | # define LT_DLGLOBAL 0 |
| 12455 | # endif |
| 12456 | #endif |
| 12457 | |
| 12458 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12459 | find out it does not work in some platform. */ |
| 12460 | #ifndef LT_DLLAZY_OR_NOW |
| 12461 | # ifdef RTLD_LAZY |
| 12462 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12463 | # else |
| 12464 | # ifdef DL_LAZY |
| 12465 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12466 | # else |
| 12467 | # ifdef RTLD_NOW |
| 12468 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12469 | # else |
| 12470 | # ifdef DL_NOW |
| 12471 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12472 | # else |
| 12473 | # define LT_DLLAZY_OR_NOW 0 |
| 12474 | # endif |
| 12475 | # endif |
| 12476 | # endif |
| 12477 | # endif |
| 12478 | #endif |
| 12479 | |
| 12480 | #ifdef __cplusplus |
| 12481 | extern "C" void exit (int); |
| 12482 | #endif |
| 12483 | |
| 12484 | void fnord() { int i=42;} |
| 12485 | int main () |
| 12486 | { |
| 12487 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12488 | int status = $lt_dlunknown; |
| 12489 | |
| 12490 | if (self) |
| 12491 | { |
| 12492 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12493 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12494 | /* dlclose (self); */ |
| 12495 | } |
| 12496 | |
| 12497 | exit (status); |
| 12498 | } |
| 12499 | EOF |
| 12500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12501 | (eval $ac_link) 2>&5 |
| 12502 | ac_status=$? |
| 12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12504 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12505 | (./conftest; exit; ) 2>/dev/null |
| 12506 | lt_status=$? |
| 12507 | case x$lt_status in |
| 12508 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 12509 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 12510 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 12511 | esac |
| 12512 | else : |
| 12513 | # compilation failed |
| 12514 | lt_cv_dlopen_self=no |
| 12515 | fi |
| 12516 | fi |
| 12517 | rm -fr conftest* |
| 12518 | |
| 12519 | |
| 12520 | fi |
| 12521 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 12522 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 12523 | |
| 12524 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 12525 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 12526 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 12527 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 12528 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 12529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12530 | else |
| 12531 | if test "$cross_compiling" = yes; then : |
| 12532 | lt_cv_dlopen_self_static=cross |
| 12533 | else |
| 12534 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12535 | lt_status=$lt_dlunknown |
| 12536 | cat > conftest.$ac_ext <<EOF |
| 12537 | #line 12537 "configure" |
| 12538 | #include "confdefs.h" |
| 12539 | |
| 12540 | #if HAVE_DLFCN_H |
| 12541 | #include <dlfcn.h> |
| 12542 | #endif |
| 12543 | |
| 12544 | #include <stdio.h> |
| 12545 | |
| 12546 | #ifdef RTLD_GLOBAL |
| 12547 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12548 | #else |
| 12549 | # ifdef DL_GLOBAL |
| 12550 | # define LT_DLGLOBAL DL_GLOBAL |
| 12551 | # else |
| 12552 | # define LT_DLGLOBAL 0 |
| 12553 | # endif |
| 12554 | #endif |
| 12555 | |
| 12556 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12557 | find out it does not work in some platform. */ |
| 12558 | #ifndef LT_DLLAZY_OR_NOW |
| 12559 | # ifdef RTLD_LAZY |
| 12560 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12561 | # else |
| 12562 | # ifdef DL_LAZY |
| 12563 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12564 | # else |
| 12565 | # ifdef RTLD_NOW |
| 12566 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12567 | # else |
| 12568 | # ifdef DL_NOW |
| 12569 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12570 | # else |
| 12571 | # define LT_DLLAZY_OR_NOW 0 |
| 12572 | # endif |
| 12573 | # endif |
| 12574 | # endif |
| 12575 | # endif |
| 12576 | #endif |
| 12577 | |
| 12578 | #ifdef __cplusplus |
| 12579 | extern "C" void exit (int); |
| 12580 | #endif |
| 12581 | |
| 12582 | void fnord() { int i=42;} |
| 12583 | int main () |
| 12584 | { |
| 12585 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12586 | int status = $lt_dlunknown; |
| 12587 | |
| 12588 | if (self) |
| 12589 | { |
| 12590 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12591 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12592 | /* dlclose (self); */ |
| 12593 | } |
| 12594 | |
| 12595 | exit (status); |
| 12596 | } |
| 12597 | EOF |
| 12598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12599 | (eval $ac_link) 2>&5 |
| 12600 | ac_status=$? |
| 12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12602 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12603 | (./conftest; exit; ) 2>/dev/null |
| 12604 | lt_status=$? |
| 12605 | case x$lt_status in |
| 12606 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12607 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12608 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 12609 | esac |
| 12610 | else : |
| 12611 | # compilation failed |
| 12612 | lt_cv_dlopen_self_static=no |
| 12613 | fi |
| 12614 | fi |
| 12615 | rm -fr conftest* |
| 12616 | |
| 12617 | |
| 12618 | fi |
| 12619 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 12620 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 12621 | fi |
| 12622 | |
| 12623 | CPPFLAGS="$save_CPPFLAGS" |
| 12624 | LDFLAGS="$save_LDFLAGS" |
| 12625 | LIBS="$save_LIBS" |
| 12626 | ;; |
| 12627 | esac |
| 12628 | |
| 12629 | case $lt_cv_dlopen_self in |
| 12630 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12631 | *) enable_dlopen_self=unknown ;; |
| 12632 | esac |
| 12633 | |
| 12634 | case $lt_cv_dlopen_self_static in |
| 12635 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12636 | *) enable_dlopen_self_static=unknown ;; |
| 12637 | esac |
| 12638 | fi |
| 12639 | |
| 12640 | |
| 12641 | # The else clause should only fire when bootstrapping the |
| 12642 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 12643 | # with your package, and you will get complaints that there are |
| 12644 | # no rules to generate ltmain.sh. |
| 12645 | if test -f "$ltmain"; then |
| 12646 | # See if we are running on zsh, and set the options which allow our commands through |
| 12647 | # without removal of \ escapes. |
| 12648 | if test -n "${ZSH_VERSION+set}" ; then |
| 12649 | setopt NO_GLOB_SUBST |
| 12650 | fi |
| 12651 | # Now quote all the things that may contain metacharacters while being |
| 12652 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 12653 | # variables and quote the copies for generation of the libtool script. |
| 12654 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 12655 | SED SHELL STRIP \ |
| 12656 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 12657 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 12658 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 12659 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 12660 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12661 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 12662 | old_postinstall_cmds old_postuninstall_cmds \ |
| 12663 | compiler_CXX \ |
| 12664 | CC_CXX \ |
| 12665 | LD_CXX \ |
| 12666 | lt_prog_compiler_wl_CXX \ |
| 12667 | lt_prog_compiler_pic_CXX \ |
| 12668 | lt_prog_compiler_static_CXX \ |
| 12669 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 12670 | export_dynamic_flag_spec_CXX \ |
| 12671 | thread_safe_flag_spec_CXX \ |
| 12672 | whole_archive_flag_spec_CXX \ |
| 12673 | enable_shared_with_static_runtimes_CXX \ |
| 12674 | old_archive_cmds_CXX \ |
| 12675 | old_archive_from_new_cmds_CXX \ |
| 12676 | predep_objects_CXX \ |
| 12677 | postdep_objects_CXX \ |
| 12678 | predeps_CXX \ |
| 12679 | postdeps_CXX \ |
| 12680 | compiler_lib_search_path_CXX \ |
| 12681 | archive_cmds_CXX \ |
| 12682 | archive_expsym_cmds_CXX \ |
| 12683 | postinstall_cmds_CXX \ |
| 12684 | postuninstall_cmds_CXX \ |
| 12685 | old_archive_from_expsyms_cmds_CXX \ |
| 12686 | allow_undefined_flag_CXX \ |
| 12687 | no_undefined_flag_CXX \ |
| 12688 | export_symbols_cmds_CXX \ |
| 12689 | hardcode_libdir_flag_spec_CXX \ |
| 12690 | hardcode_libdir_flag_spec_ld_CXX \ |
| 12691 | hardcode_libdir_separator_CXX \ |
| 12692 | hardcode_automatic_CXX \ |
| 12693 | module_cmds_CXX \ |
| 12694 | module_expsym_cmds_CXX \ |
| 12695 | lt_cv_prog_compiler_c_o_CXX \ |
| 12696 | exclude_expsyms_CXX \ |
| 12697 | include_expsyms_CXX; do |
| 12698 | |
| 12699 | case $var in |
| 12700 | old_archive_cmds_CXX | \ |
| 12701 | old_archive_from_new_cmds_CXX | \ |
| 12702 | archive_cmds_CXX | \ |
| 12703 | archive_expsym_cmds_CXX | \ |
| 12704 | module_cmds_CXX | \ |
| 12705 | module_expsym_cmds_CXX | \ |
| 12706 | old_archive_from_expsyms_cmds_CXX | \ |
| 12707 | export_symbols_cmds_CXX | \ |
| 12708 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 12709 | postinstall_cmds | postuninstall_cmds | \ |
| 12710 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 12711 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 12712 | # Double-quote double-evaled strings. |
| 12713 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 12714 | ;; |
| 12715 | *) |
| 12716 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 12717 | ;; |
| 12718 | esac |
| 12719 | done |
| 12720 | |
| 12721 | case $lt_echo in |
| 12722 | *'\$0 --fallback-echo"') |
| 12723 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 12724 | ;; |
| 12725 | esac |
| 12726 | |
| 12727 | cfgfile="$ofile" |
| 12728 | |
| 12729 | cat <<__EOF__ >> "$cfgfile" |
| 12730 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 12731 | |
| 12732 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12733 | |
| 12734 | # Shell to use when invoking shell scripts. |
| 12735 | SHELL=$lt_SHELL |
| 12736 | |
| 12737 | # Whether or not to build shared libraries. |
| 12738 | build_libtool_libs=$enable_shared |
| 12739 | |
| 12740 | # Whether or not to build static libraries. |
| 12741 | build_old_libs=$enable_static |
| 12742 | |
| 12743 | # Whether or not to add -lc for building shared libraries. |
| 12744 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 12745 | |
| 12746 | # Whether or not to disallow shared libs when runtime libs are static |
| 12747 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 12748 | |
| 12749 | # Whether or not to optimize for fast installation. |
| 12750 | fast_install=$enable_fast_install |
| 12751 | |
| 12752 | # The host system. |
| 12753 | host_alias=$host_alias |
| 12754 | host=$host |
| 12755 | |
| 12756 | # An echo program that does not interpret backslashes. |
| 12757 | echo=$lt_echo |
| 12758 | |
| 12759 | # The archiver. |
| 12760 | AR=$lt_AR |
| 12761 | AR_FLAGS=$lt_AR_FLAGS |
| 12762 | |
| 12763 | # A C compiler. |
| 12764 | LTCC=$lt_LTCC |
| 12765 | |
| 12766 | # A language-specific compiler. |
| 12767 | CC=$lt_compiler_CXX |
| 12768 | |
| 12769 | # Is the compiler the GNU C compiler? |
| 12770 | with_gcc=$GCC_CXX |
| 12771 | |
| 12772 | # An ERE matcher. |
| 12773 | EGREP=$lt_EGREP |
| 12774 | |
| 12775 | # The linker used to build libraries. |
| 12776 | LD=$lt_LD_CXX |
| 12777 | |
| 12778 | # Whether we need hard or soft links. |
| 12779 | LN_S=$lt_LN_S |
| 12780 | |
| 12781 | # A BSD-compatible nm program. |
| 12782 | NM=$lt_NM |
| 12783 | |
| 12784 | # A symbol stripping program |
| 12785 | STRIP=$lt_STRIP |
| 12786 | |
| 12787 | # Used to examine libraries when file_magic_cmd begins "file" |
| 12788 | MAGIC_CMD=$MAGIC_CMD |
| 12789 | |
| 12790 | # Used on cygwin: DLL creation program. |
| 12791 | DLLTOOL="$DLLTOOL" |
| 12792 | |
| 12793 | # Used on cygwin: object dumper. |
| 12794 | OBJDUMP="$OBJDUMP" |
| 12795 | |
| 12796 | # Used on cygwin: assembler. |
| 12797 | AS="$AS" |
| 12798 | |
| 12799 | # The name of the directory that contains temporary libtool files. |
| 12800 | objdir=$objdir |
| 12801 | |
| 12802 | # How to create reloadable object files. |
| 12803 | reload_flag=$lt_reload_flag |
| 12804 | reload_cmds=$lt_reload_cmds |
| 12805 | |
| 12806 | # How to pass a linker flag through the compiler. |
| 12807 | wl=$lt_lt_prog_compiler_wl_CXX |
| 12808 | |
| 12809 | # Object file suffix (normally "o"). |
| 12810 | objext="$ac_objext" |
| 12811 | |
| 12812 | # Old archive suffix (normally "a"). |
| 12813 | libext="$libext" |
| 12814 | |
| 12815 | # Shared library suffix (normally ".so"). |
| 12816 | shrext_cmds='$shrext_cmds' |
| 12817 | |
| 12818 | # Executable file suffix (normally ""). |
| 12819 | exeext="$exeext" |
| 12820 | |
| 12821 | # Additional compiler flags for building library objects. |
| 12822 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 12823 | pic_mode=$pic_mode |
| 12824 | |
| 12825 | # What is the maximum length of a command? |
| 12826 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 12827 | |
| 12828 | # Does compiler simultaneously support -c and -o options? |
| 12829 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 12830 | |
| 12831 | # Must we lock files when doing compilation ? |
| 12832 | need_locks=$lt_need_locks |
| 12833 | |
| 12834 | # Do we need the lib prefix for modules? |
| 12835 | need_lib_prefix=$need_lib_prefix |
| 12836 | |
| 12837 | # Do we need a version for libraries? |
| 12838 | need_version=$need_version |
| 12839 | |
| 12840 | # Whether dlopen is supported. |
| 12841 | dlopen_support=$enable_dlopen |
| 12842 | |
| 12843 | # Whether dlopen of programs is supported. |
| 12844 | dlopen_self=$enable_dlopen_self |
| 12845 | |
| 12846 | # Whether dlopen of statically linked programs is supported. |
| 12847 | dlopen_self_static=$enable_dlopen_self_static |
| 12848 | |
| 12849 | # Compiler flag to prevent dynamic linking. |
| 12850 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 12851 | |
| 12852 | # Compiler flag to turn off builtin functions. |
| 12853 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 12854 | |
| 12855 | # Compiler flag to allow reflexive dlopens. |
| 12856 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 12857 | |
| 12858 | # Compiler flag to generate shared objects directly from archives. |
| 12859 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 12860 | |
| 12861 | # Compiler flag to generate thread-safe objects. |
| 12862 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 12863 | |
| 12864 | # Library versioning type. |
| 12865 | version_type=$version_type |
| 12866 | |
| 12867 | # Format of library name prefix. |
| 12868 | libname_spec=$lt_libname_spec |
| 12869 | |
| 12870 | # List of archive names. First name is the real one, the rest are links. |
| 12871 | # The last name is the one that the linker finds with -lNAME. |
| 12872 | library_names_spec=$lt_library_names_spec |
| 12873 | |
| 12874 | # The coded name of the library, if different from the real name. |
| 12875 | soname_spec=$lt_soname_spec |
| 12876 | |
| 12877 | # Commands used to build and install an old-style archive. |
| 12878 | RANLIB=$lt_RANLIB |
| 12879 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12880 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12881 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12882 | |
| 12883 | # Create an old-style archive from a shared archive. |
| 12884 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12885 | |
| 12886 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12887 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12888 | |
| 12889 | # Commands used to build and install a shared archive. |
| 12890 | archive_cmds=$lt_archive_cmds_CXX |
| 12891 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12892 | postinstall_cmds=$lt_postinstall_cmds |
| 12893 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12894 | |
| 12895 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12896 | module_cmds=$lt_module_cmds_CXX |
| 12897 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12898 | |
| 12899 | # Commands to strip libraries. |
| 12900 | old_striplib=$lt_old_striplib |
| 12901 | striplib=$lt_striplib |
| 12902 | |
| 12903 | # Dependencies to place before the objects being linked to create a |
| 12904 | # shared library. |
| 12905 | predep_objects=$lt_predep_objects_CXX |
| 12906 | |
| 12907 | # Dependencies to place after the objects being linked to create a |
| 12908 | # shared library. |
| 12909 | postdep_objects=$lt_postdep_objects_CXX |
| 12910 | |
| 12911 | # Dependencies to place before the objects being linked to create a |
| 12912 | # shared library. |
| 12913 | predeps=$lt_predeps_CXX |
| 12914 | |
| 12915 | # Dependencies to place after the objects being linked to create a |
| 12916 | # shared library. |
| 12917 | postdeps=$lt_postdeps_CXX |
| 12918 | |
| 12919 | # The library search path used internally by the compiler when linking |
| 12920 | # a shared library. |
| 12921 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12922 | |
| 12923 | # Method to check whether dependent libraries are shared objects. |
| 12924 | deplibs_check_method=$lt_deplibs_check_method |
| 12925 | |
| 12926 | # Command to use when deplibs_check_method == file_magic. |
| 12927 | file_magic_cmd=$lt_file_magic_cmd |
| 12928 | |
| 12929 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12930 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12931 | |
| 12932 | # Flag that forces no undefined symbols. |
| 12933 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12934 | |
| 12935 | # Commands used to finish a libtool library installation in a directory. |
| 12936 | finish_cmds=$lt_finish_cmds |
| 12937 | |
| 12938 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12939 | finish_eval=$lt_finish_eval |
| 12940 | |
| 12941 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12942 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12943 | |
| 12944 | # Transform the output of nm in a proper C declaration |
| 12945 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12946 | |
| 12947 | # Transform the output of nm in a C name address pair |
| 12948 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12949 | |
| 12950 | # This is the shared library runtime path variable. |
| 12951 | runpath_var=$runpath_var |
| 12952 | |
| 12953 | # This is the shared library path variable. |
| 12954 | shlibpath_var=$shlibpath_var |
| 12955 | |
| 12956 | # Is shlibpath searched before the hard-coded library search path? |
| 12957 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12958 | |
| 12959 | # How to hardcode a shared library path into an executable. |
| 12960 | hardcode_action=$hardcode_action_CXX |
| 12961 | |
| 12962 | # Whether we should hardcode library paths into libraries. |
| 12963 | hardcode_into_libs=$hardcode_into_libs |
| 12964 | |
| 12965 | # Flag to hardcode \$libdir into a binary during linking. |
| 12966 | # This must work even if \$libdir does not exist. |
| 12967 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 12968 | |
| 12969 | # If ld is used when linking, flag to hardcode \$libdir into |
| 12970 | # a binary during linking. This must work even if \$libdir does |
| 12971 | # not exist. |
| 12972 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 12973 | |
| 12974 | # Whether we need a single -rpath flag with a separated argument. |
| 12975 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 12976 | |
| 12977 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 12978 | # resulting binary. |
| 12979 | hardcode_direct=$hardcode_direct_CXX |
| 12980 | |
| 12981 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 12982 | # resulting binary. |
| 12983 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 12984 | |
| 12985 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 12986 | # the resulting binary. |
| 12987 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 12988 | |
| 12989 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 12990 | # and all subsequent libraries and executables linked against it. |
| 12991 | hardcode_automatic=$hardcode_automatic_CXX |
| 12992 | |
| 12993 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12994 | # restored at relink time. |
| 12995 | variables_saved_for_relink="$variables_saved_for_relink" |
| 12996 | |
| 12997 | # Whether libtool must link a program against all its dependency libraries. |
| 12998 | link_all_deplibs=$link_all_deplibs_CXX |
| 12999 | |
| 13000 | # Compile-time system search path for libraries |
| 13001 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13002 | |
| 13003 | # Run-time system search path for libraries |
| 13004 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13005 | |
| 13006 | # Fix the shell variable \$srcfile for the compiler. |
| 13007 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13008 | |
| 13009 | # Set to yes if exported symbols are required. |
| 13010 | always_export_symbols=$always_export_symbols_CXX |
| 13011 | |
| 13012 | # The commands to list exported symbols. |
| 13013 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13014 | |
| 13015 | # The commands to extract the exported symbol list from a shared archive. |
| 13016 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13017 | |
| 13018 | # Symbols that should not be listed in the preloaded symbols. |
| 13019 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13020 | |
| 13021 | # Symbols that must always be exported. |
| 13022 | include_expsyms=$lt_include_expsyms_CXX |
| 13023 | |
| 13024 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13025 | |
| 13026 | __EOF__ |
| 13027 | |
| 13028 | |
| 13029 | else |
| 13030 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13031 | # `config.status --recheck' to rerun these tests and create the |
| 13032 | # libtool script then. |
| 13033 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13034 | if test -f "$ltmain_in"; then |
| 13035 | test -f Makefile && make "$ltmain" |
| 13036 | fi |
| 13037 | fi |
| 13038 | |
| 13039 | |
| 13040 | ac_ext=c |
| 13041 | ac_cpp='$CPP $CPPFLAGS' |
| 13042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13045 | |
| 13046 | CC=$lt_save_CC |
| 13047 | LDCXX=$LD |
| 13048 | LD=$lt_save_LD |
| 13049 | GCC=$lt_save_GCC |
| 13050 | with_gnu_ldcxx=$with_gnu_ld |
| 13051 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13052 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13053 | lt_cv_path_LD=$lt_save_path_LD |
| 13054 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 13055 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 13056 | |
| 13057 | else |
| 13058 | tagname="" |
| 13059 | fi |
| 13060 | ;; |
| 13061 | |
| 13062 | F77) |
| 13063 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 13064 | |
| 13065 | ac_ext=f |
| 13066 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13067 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13068 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13069 | |
| 13070 | |
| 13071 | archive_cmds_need_lc_F77=no |
| 13072 | allow_undefined_flag_F77= |
| 13073 | always_export_symbols_F77=no |
| 13074 | archive_expsym_cmds_F77= |
| 13075 | export_dynamic_flag_spec_F77= |
| 13076 | hardcode_direct_F77=no |
| 13077 | hardcode_libdir_flag_spec_F77= |
| 13078 | hardcode_libdir_flag_spec_ld_F77= |
| 13079 | hardcode_libdir_separator_F77= |
| 13080 | hardcode_minus_L_F77=no |
| 13081 | hardcode_automatic_F77=no |
| 13082 | module_cmds_F77= |
| 13083 | module_expsym_cmds_F77= |
| 13084 | link_all_deplibs_F77=unknown |
| 13085 | old_archive_cmds_F77=$old_archive_cmds |
| 13086 | no_undefined_flag_F77= |
| 13087 | whole_archive_flag_spec_F77= |
| 13088 | enable_shared_with_static_runtimes_F77=no |
| 13089 | |
| 13090 | # Source file extension for f77 test sources. |
| 13091 | ac_ext=f |
| 13092 | |
| 13093 | # Object file extension for compiled f77 test sources. |
| 13094 | objext=o |
| 13095 | objext_F77=$objext |
| 13096 | |
| 13097 | # Code to be used in simple compile tests |
| 13098 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 13099 | |
| 13100 | # Code to be used in simple link tests |
| 13101 | lt_simple_link_test_code=" program t\n end\n" |
| 13102 | |
| 13103 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 13104 | |
| 13105 | # If no C compiler was specified, use CC. |
| 13106 | LTCC=${LTCC-"$CC"} |
| 13107 | |
| 13108 | # Allow CC to be a program name with arguments. |
| 13109 | compiler=$CC |
| 13110 | |
| 13111 | |
| 13112 | # Allow CC to be a program name with arguments. |
| 13113 | lt_save_CC="$CC" |
| 13114 | CC=${F77-"f77"} |
| 13115 | compiler=$CC |
| 13116 | compiler_F77=$CC |
| 13117 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 13118 | |
| 13119 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 13120 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 13121 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 13122 | echo "${ECHO_T}$can_build_shared" >&6 |
| 13123 | |
| 13124 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 13125 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 13126 | test "$can_build_shared" = "no" && enable_shared=no |
| 13127 | |
| 13128 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 13129 | # are all built from PIC. |
| 13130 | case "$host_os" in |
| 13131 | aix3*) |
| 13132 | test "$enable_shared" = yes && enable_static=no |
| 13133 | if test -n "$RANLIB"; then |
| 13134 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 13135 | postinstall_cmds='$RANLIB $lib' |
| 13136 | fi |
| 13137 | ;; |
| 13138 | aix4* | aix5*) |
| 13139 | test "$enable_shared" = yes && enable_static=no |
| 13140 | ;; |
| 13141 | esac |
| 13142 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 13143 | echo "${ECHO_T}$enable_shared" >&6 |
| 13144 | |
| 13145 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 13146 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 13147 | # Make sure either enable_shared or enable_static is yes. |
| 13148 | test "$enable_shared" = yes || enable_static=yes |
| 13149 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 13150 | echo "${ECHO_T}$enable_static" >&6 |
| 13151 | |
| 13152 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13153 | |
| 13154 | GCC_F77="$G77" |
| 13155 | LD_F77="$LD" |
| 13156 | |
| 13157 | lt_prog_compiler_wl_F77= |
| 13158 | lt_prog_compiler_pic_F77= |
| 13159 | lt_prog_compiler_static_F77= |
| 13160 | |
| 13161 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13162 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 13163 | |
| 13164 | if test "$GCC" = yes; then |
| 13165 | lt_prog_compiler_wl_F77='-Wl,' |
| 13166 | lt_prog_compiler_static_F77='-static' |
| 13167 | |
| 13168 | case $host_os in |
| 13169 | aix*) |
| 13170 | # All AIX code is PIC. |
| 13171 | if test "$host_cpu" = ia64; then |
| 13172 | # AIX 5 now supports IA64 processor |
| 13173 | lt_prog_compiler_static_F77='-Bstatic' |
| 13174 | fi |
| 13175 | ;; |
| 13176 | |
| 13177 | amigaos*) |
| 13178 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13179 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13180 | # like `-m68040'. |
| 13181 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 13182 | ;; |
| 13183 | |
| 13184 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13185 | # PIC is the default for these OSes. |
| 13186 | ;; |
| 13187 | |
| 13188 | mingw* | pw32* | os2*) |
| 13189 | # This hack is so that the source file can tell whether it is being |
| 13190 | # built for inclusion in a dll (and should export symbols for example). |
| 13191 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13192 | ;; |
| 13193 | |
| 13194 | darwin* | rhapsody*) |
| 13195 | # PIC is the default on this platform |
| 13196 | # Common symbols not allowed in MH_DYLIB files |
| 13197 | lt_prog_compiler_pic_F77='-fno-common' |
| 13198 | ;; |
| 13199 | |
| 13200 | msdosdjgpp*) |
| 13201 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13202 | # on systems that don't support them. |
| 13203 | lt_prog_compiler_can_build_shared_F77=no |
| 13204 | enable_shared=no |
| 13205 | ;; |
| 13206 | |
| 13207 | sysv4*MP*) |
| 13208 | if test -d /usr/nec; then |
| 13209 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 13210 | fi |
| 13211 | ;; |
| 13212 | |
| 13213 | hpux*) |
| 13214 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13215 | # not for PA HP-UX. |
| 13216 | case "$host_cpu" in |
| 13217 | hppa*64*|ia64*) |
| 13218 | # +Z the default |
| 13219 | ;; |
| 13220 | *) |
| 13221 | lt_prog_compiler_pic_F77='-fPIC' |
| 13222 | ;; |
| 13223 | esac |
| 13224 | ;; |
| 13225 | |
| 13226 | *) |
| 13227 | lt_prog_compiler_pic_F77='-fPIC' |
| 13228 | ;; |
| 13229 | esac |
| 13230 | else |
| 13231 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13232 | case $host_os in |
| 13233 | aix*) |
| 13234 | lt_prog_compiler_wl_F77='-Wl,' |
| 13235 | if test "$host_cpu" = ia64; then |
| 13236 | # AIX 5 now supports IA64 processor |
| 13237 | lt_prog_compiler_static_F77='-Bstatic' |
| 13238 | else |
| 13239 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 13240 | fi |
| 13241 | ;; |
| 13242 | |
| 13243 | mingw* | pw32* | os2*) |
| 13244 | # This hack is so that the source file can tell whether it is being |
| 13245 | # built for inclusion in a dll (and should export symbols for example). |
| 13246 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13247 | ;; |
| 13248 | |
| 13249 | hpux9* | hpux10* | hpux11*) |
| 13250 | lt_prog_compiler_wl_F77='-Wl,' |
| 13251 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13252 | # not for PA HP-UX. |
| 13253 | case "$host_cpu" in |
| 13254 | hppa*64*|ia64*) |
| 13255 | # +Z the default |
| 13256 | ;; |
| 13257 | *) |
| 13258 | lt_prog_compiler_pic_F77='+Z' |
| 13259 | ;; |
| 13260 | esac |
| 13261 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13262 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 13263 | ;; |
| 13264 | |
| 13265 | irix5* | irix6* | nonstopux*) |
| 13266 | lt_prog_compiler_wl_F77='-Wl,' |
| 13267 | # PIC (with -KPIC) is the default. |
| 13268 | lt_prog_compiler_static_F77='-non_shared' |
| 13269 | ;; |
| 13270 | |
| 13271 | newsos6) |
| 13272 | lt_prog_compiler_pic_F77='-KPIC' |
| 13273 | lt_prog_compiler_static_F77='-Bstatic' |
| 13274 | ;; |
| 13275 | |
| 13276 | linux*) |
| 13277 | case $CC in |
| 13278 | icc* | ecc*) |
| 13279 | lt_prog_compiler_wl_F77='-Wl,' |
| 13280 | lt_prog_compiler_pic_F77='-KPIC' |
| 13281 | lt_prog_compiler_static_F77='-static' |
| 13282 | ;; |
| 13283 | ccc*) |
| 13284 | lt_prog_compiler_wl_F77='-Wl,' |
| 13285 | # All Alpha code is PIC. |
| 13286 | lt_prog_compiler_static_F77='-non_shared' |
| 13287 | ;; |
| 13288 | esac |
| 13289 | ;; |
| 13290 | |
| 13291 | osf3* | osf4* | osf5*) |
| 13292 | lt_prog_compiler_wl_F77='-Wl,' |
| 13293 | # All OSF/1 code is PIC. |
| 13294 | lt_prog_compiler_static_F77='-non_shared' |
| 13295 | ;; |
| 13296 | |
| 13297 | sco3.2v5*) |
| 13298 | lt_prog_compiler_pic_F77='-Kpic' |
| 13299 | lt_prog_compiler_static_F77='-dn' |
| 13300 | ;; |
| 13301 | |
| 13302 | solaris*) |
| 13303 | lt_prog_compiler_wl_F77='-Wl,' |
| 13304 | lt_prog_compiler_pic_F77='-KPIC' |
| 13305 | lt_prog_compiler_static_F77='-Bstatic' |
| 13306 | ;; |
| 13307 | |
| 13308 | sunos4*) |
| 13309 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 13310 | lt_prog_compiler_pic_F77='-PIC' |
| 13311 | lt_prog_compiler_static_F77='-Bstatic' |
| 13312 | ;; |
| 13313 | |
| 13314 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13315 | lt_prog_compiler_wl_F77='-Wl,' |
| 13316 | lt_prog_compiler_pic_F77='-KPIC' |
| 13317 | lt_prog_compiler_static_F77='-Bstatic' |
| 13318 | ;; |
| 13319 | |
| 13320 | sysv4*MP*) |
| 13321 | if test -d /usr/nec ;then |
| 13322 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 13323 | lt_prog_compiler_static_F77='-Bstatic' |
| 13324 | fi |
| 13325 | ;; |
| 13326 | |
| 13327 | uts4*) |
| 13328 | lt_prog_compiler_pic_F77='-pic' |
| 13329 | lt_prog_compiler_static_F77='-Bstatic' |
| 13330 | ;; |
| 13331 | |
| 13332 | *) |
| 13333 | lt_prog_compiler_can_build_shared_F77=no |
| 13334 | ;; |
| 13335 | esac |
| 13336 | fi |
| 13337 | |
| 13338 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 13339 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 13340 | |
| 13341 | # |
| 13342 | # Check to make sure the PIC flag actually works. |
| 13343 | # |
| 13344 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 13345 | |
| 13346 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 13347 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 13348 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 13349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13350 | else |
| 13351 | lt_prog_compiler_pic_works_F77=no |
| 13352 | ac_outfile=conftest.$ac_objext |
| 13353 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13354 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 13355 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13356 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13357 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13358 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13359 | # The option is referenced via a variable to avoid confusing sed. |
| 13360 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13361 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 13362 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13363 | -e 's:$: $lt_compiler_flag:'` |
| 13364 | (eval echo "\"\$as_me:13364: $lt_compile\"" >&5) |
| 13365 | (eval "$lt_compile" 2>conftest.err) |
| 13366 | ac_status=$? |
| 13367 | cat conftest.err >&5 |
| 13368 | echo "$as_me:13368: \$? = $ac_status" >&5 |
| 13369 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13370 | # The compiler can only warn and ignore the option if not recognized |
| 13371 | # So say no if there are warnings |
| 13372 | if test ! -s conftest.err; then |
| 13373 | lt_prog_compiler_pic_works_F77=yes |
| 13374 | fi |
| 13375 | fi |
| 13376 | $rm conftest* |
| 13377 | |
| 13378 | fi |
| 13379 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 13380 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 13381 | |
| 13382 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 13383 | case $lt_prog_compiler_pic_F77 in |
| 13384 | "" | " "*) ;; |
| 13385 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 13386 | esac |
| 13387 | else |
| 13388 | lt_prog_compiler_pic_F77= |
| 13389 | lt_prog_compiler_can_build_shared_F77=no |
| 13390 | fi |
| 13391 | |
| 13392 | fi |
| 13393 | case "$host_os" in |
| 13394 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13395 | *djgpp*) |
| 13396 | lt_prog_compiler_pic_F77= |
| 13397 | ;; |
| 13398 | *) |
| 13399 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 13400 | ;; |
| 13401 | esac |
| 13402 | |
| 13403 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13404 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 13405 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 13406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13407 | else |
| 13408 | lt_cv_prog_compiler_c_o_F77=no |
| 13409 | $rm -r conftest 2>/dev/null |
| 13410 | mkdir conftest |
| 13411 | cd conftest |
| 13412 | mkdir out |
| 13413 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13414 | |
| 13415 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13416 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13417 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13418 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13419 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13420 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13421 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 13422 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13423 | -e 's:$: $lt_compiler_flag:'` |
| 13424 | (eval echo "\"\$as_me:13424: $lt_compile\"" >&5) |
| 13425 | (eval "$lt_compile" 2>out/conftest.err) |
| 13426 | ac_status=$? |
| 13427 | cat out/conftest.err >&5 |
| 13428 | echo "$as_me:13428: \$? = $ac_status" >&5 |
| 13429 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13430 | then |
| 13431 | # The compiler can only warn and ignore the option if not recognized |
| 13432 | # So say no if there are warnings |
| 13433 | if test ! -s out/conftest.err; then |
| 13434 | lt_cv_prog_compiler_c_o_F77=yes |
| 13435 | fi |
| 13436 | fi |
| 13437 | chmod u+w . |
| 13438 | $rm conftest* |
| 13439 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13440 | # template instantiation |
| 13441 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 13442 | $rm out/* && rmdir out |
| 13443 | cd .. |
| 13444 | rmdir conftest |
| 13445 | $rm conftest* |
| 13446 | |
| 13447 | fi |
| 13448 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 13449 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 13450 | |
| 13451 | |
| 13452 | hard_links="nottested" |
| 13453 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 13454 | # do not overwrite the value of need_locks provided by the user |
| 13455 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 13456 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 13457 | hard_links=yes |
| 13458 | $rm conftest* |
| 13459 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13460 | touch conftest.a |
| 13461 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13462 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13463 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 13464 | echo "${ECHO_T}$hard_links" >&6 |
| 13465 | if test "$hard_links" = no; then |
| 13466 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13467 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13468 | need_locks=warn |
| 13469 | fi |
| 13470 | else |
| 13471 | need_locks=no |
| 13472 | fi |
| 13473 | |
| 13474 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13475 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 13476 | |
| 13477 | runpath_var= |
| 13478 | allow_undefined_flag_F77= |
| 13479 | enable_shared_with_static_runtimes_F77=no |
| 13480 | archive_cmds_F77= |
| 13481 | archive_expsym_cmds_F77= |
| 13482 | old_archive_From_new_cmds_F77= |
| 13483 | old_archive_from_expsyms_cmds_F77= |
| 13484 | export_dynamic_flag_spec_F77= |
| 13485 | whole_archive_flag_spec_F77= |
| 13486 | thread_safe_flag_spec_F77= |
| 13487 | hardcode_libdir_flag_spec_F77= |
| 13488 | hardcode_libdir_flag_spec_ld_F77= |
| 13489 | hardcode_libdir_separator_F77= |
| 13490 | hardcode_direct_F77=no |
| 13491 | hardcode_minus_L_F77=no |
| 13492 | hardcode_shlibpath_var_F77=unsupported |
| 13493 | link_all_deplibs_F77=unknown |
| 13494 | hardcode_automatic_F77=no |
| 13495 | module_cmds_F77= |
| 13496 | module_expsym_cmds_F77= |
| 13497 | always_export_symbols_F77=no |
| 13498 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13499 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13500 | # included in the symbol list |
| 13501 | include_expsyms_F77= |
| 13502 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13503 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 13504 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 13505 | # as well as any symbol that contains `d'. |
| 13506 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 13507 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13508 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13509 | # the symbol is explicitly referenced. Since portable code cannot |
| 13510 | # rely on this symbol name, it's probably fine to never include it in |
| 13511 | # preloaded symbol tables. |
| 13512 | extract_expsyms_cmds= |
| 13513 | |
| 13514 | case $host_os in |
| 13515 | cygwin* | mingw* | pw32*) |
| 13516 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13517 | # When not using gcc, we currently assume that we are using |
| 13518 | # Microsoft Visual C++. |
| 13519 | if test "$GCC" != yes; then |
| 13520 | with_gnu_ld=no |
| 13521 | fi |
| 13522 | ;; |
| 13523 | openbsd*) |
| 13524 | with_gnu_ld=no |
| 13525 | ;; |
| 13526 | esac |
| 13527 | |
| 13528 | ld_shlibs_F77=yes |
| 13529 | if test "$with_gnu_ld" = yes; then |
| 13530 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13531 | wlarc='${wl}' |
| 13532 | |
| 13533 | # See if GNU ld supports shared libraries. |
| 13534 | case $host_os in |
| 13535 | aix3* | aix4* | aix5*) |
| 13536 | # On AIX/PPC, the GNU linker is very broken |
| 13537 | if test "$host_cpu" != ia64; then |
| 13538 | ld_shlibs_F77=no |
| 13539 | cat <<EOF 1>&2 |
| 13540 | |
| 13541 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 13542 | *** to be unable to reliably create shared libraries on AIX. |
| 13543 | *** Therefore, libtool is disabling shared libraries support. If you |
| 13544 | *** really care for shared libraries, you may want to modify your PATH |
| 13545 | *** so that a non-GNU linker is found, and then restart. |
| 13546 | |
| 13547 | EOF |
| 13548 | fi |
| 13549 | ;; |
| 13550 | |
| 13551 | amigaos*) |
| 13552 | 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)' |
| 13553 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13554 | hardcode_minus_L_F77=yes |
| 13555 | |
| 13556 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 13557 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 13558 | # to version 4, is to share data among multiple programs linked |
| 13559 | # with the same dynamic library. Since this doesn't match the |
| 13560 | # behavior of shared libraries on other platforms, we can't use |
| 13561 | # them. |
| 13562 | ld_shlibs_F77=no |
| 13563 | ;; |
| 13564 | |
| 13565 | beos*) |
| 13566 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13567 | allow_undefined_flag_F77=unsupported |
| 13568 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13569 | # support --undefined. This deserves some investigation. FIXME |
| 13570 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13571 | else |
| 13572 | ld_shlibs_F77=no |
| 13573 | fi |
| 13574 | ;; |
| 13575 | |
| 13576 | cygwin* | mingw* | pw32*) |
| 13577 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 13578 | # as there is no search path for DLLs. |
| 13579 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13580 | allow_undefined_flag_F77=unsupported |
| 13581 | always_export_symbols_F77=no |
| 13582 | enable_shared_with_static_runtimes_F77=yes |
| 13583 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 13584 | |
| 13585 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 13586 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 13587 | # If the export-symbols file already is a .def file (1st line |
| 13588 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13589 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13590 | cp $export_symbols $output_objdir/$soname.def; |
| 13591 | else |
| 13592 | echo EXPORTS > $output_objdir/$soname.def; |
| 13593 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13594 | fi~ |
| 13595 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 13596 | else |
| 13597 | ld_shlibs=no |
| 13598 | fi |
| 13599 | ;; |
| 13600 | |
| 13601 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 13602 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13603 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 13604 | wlarc= |
| 13605 | else |
| 13606 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13607 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13608 | fi |
| 13609 | ;; |
| 13610 | |
| 13611 | solaris* | sysv5*) |
| 13612 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 13613 | ld_shlibs_F77=no |
| 13614 | cat <<EOF 1>&2 |
| 13615 | |
| 13616 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 13617 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 13618 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13619 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 13620 | *** your PATH or compiler configuration so that the native linker is |
| 13621 | *** used, and then restart. |
| 13622 | |
| 13623 | EOF |
| 13624 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13625 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13626 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13627 | else |
| 13628 | ld_shlibs_F77=no |
| 13629 | fi |
| 13630 | ;; |
| 13631 | |
| 13632 | sunos4*) |
| 13633 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13634 | wlarc= |
| 13635 | hardcode_direct_F77=yes |
| 13636 | hardcode_shlibpath_var_F77=no |
| 13637 | ;; |
| 13638 | |
| 13639 | linux*) |
| 13640 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13641 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13642 | archive_cmds_F77="$tmp_archive_cmds" |
| 13643 | supports_anon_versioning=no |
| 13644 | case `$LD -v 2>/dev/null` in |
| 13645 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 13646 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 13647 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 13648 | *\ 2.11.*) ;; # other 2.11 versions |
| 13649 | *) supports_anon_versioning=yes ;; |
| 13650 | esac |
| 13651 | if test $supports_anon_versioning = yes; then |
| 13652 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 13653 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13654 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13655 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13656 | else |
| 13657 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 13658 | fi |
| 13659 | link_all_deplibs_F77=no |
| 13660 | else |
| 13661 | ld_shlibs_F77=no |
| 13662 | fi |
| 13663 | ;; |
| 13664 | |
| 13665 | *) |
| 13666 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13667 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13668 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13669 | else |
| 13670 | ld_shlibs_F77=no |
| 13671 | fi |
| 13672 | ;; |
| 13673 | esac |
| 13674 | |
| 13675 | if test "$ld_shlibs_F77" = yes; then |
| 13676 | runpath_var=LD_RUN_PATH |
| 13677 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 13678 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 13679 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13680 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 13681 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13682 | else |
| 13683 | whole_archive_flag_spec_F77= |
| 13684 | fi |
| 13685 | fi |
| 13686 | else |
| 13687 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 13688 | case $host_os in |
| 13689 | aix3*) |
| 13690 | allow_undefined_flag_F77=unsupported |
| 13691 | always_export_symbols_F77=yes |
| 13692 | 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' |
| 13693 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 13694 | # are no directories specified by -L. |
| 13695 | hardcode_minus_L_F77=yes |
| 13696 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 13697 | # Neither direct hardcoding nor static linking is supported with a |
| 13698 | # broken collect2. |
| 13699 | hardcode_direct_F77=unsupported |
| 13700 | fi |
| 13701 | ;; |
| 13702 | |
| 13703 | aix4* | aix5*) |
| 13704 | if test "$host_cpu" = ia64; then |
| 13705 | # On IA64, the linker does run time linking by default, so we don't |
| 13706 | # have to do anything special. |
| 13707 | aix_use_runtimelinking=no |
| 13708 | exp_sym_flag='-Bexport' |
| 13709 | no_entry_flag="" |
| 13710 | else |
| 13711 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13712 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13713 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 13714 | 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' |
| 13715 | else |
| 13716 | 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' |
| 13717 | fi |
| 13718 | aix_use_runtimelinking=no |
| 13719 | |
| 13720 | # Test if we are trying to use run time linking or normal |
| 13721 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13722 | # need to do runtime linking. |
| 13723 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 13724 | for ld_flag in $LDFLAGS; do |
| 13725 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13726 | aix_use_runtimelinking=yes |
| 13727 | break |
| 13728 | fi |
| 13729 | done |
| 13730 | esac |
| 13731 | |
| 13732 | exp_sym_flag='-bexport' |
| 13733 | no_entry_flag='-bnoentry' |
| 13734 | fi |
| 13735 | |
| 13736 | # When large executables or shared objects are built, AIX ld can |
| 13737 | # have problems creating the table of contents. If linking a library |
| 13738 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13739 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13740 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13741 | |
| 13742 | archive_cmds_F77='' |
| 13743 | hardcode_direct_F77=yes |
| 13744 | hardcode_libdir_separator_F77=':' |
| 13745 | link_all_deplibs_F77=yes |
| 13746 | |
| 13747 | if test "$GCC" = yes; then |
| 13748 | case $host_os in aix4.012|aix4.012.*) |
| 13749 | # We only want to do this on AIX 4.2 and lower, the check |
| 13750 | # below for broken collect2 doesn't work under 4.3+ |
| 13751 | collect2name=`${CC} -print-prog-name=collect2` |
| 13752 | if test -f "$collect2name" && \ |
| 13753 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 13754 | then |
| 13755 | # We have reworked collect2 |
| 13756 | hardcode_direct_F77=yes |
| 13757 | else |
| 13758 | # We have old collect2 |
| 13759 | hardcode_direct_F77=unsupported |
| 13760 | # It fails to find uninstalled libraries when the uninstalled |
| 13761 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13762 | # to unsupported forces relinking |
| 13763 | hardcode_minus_L_F77=yes |
| 13764 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13765 | hardcode_libdir_separator_F77= |
| 13766 | fi |
| 13767 | esac |
| 13768 | shared_flag='-shared' |
| 13769 | else |
| 13770 | # not using gcc |
| 13771 | if test "$host_cpu" = ia64; then |
| 13772 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13773 | # chokes on -Wl,-G. The following line is correct: |
| 13774 | shared_flag='-G' |
| 13775 | else |
| 13776 | if test "$aix_use_runtimelinking" = yes; then |
| 13777 | shared_flag='${wl}-G' |
| 13778 | else |
| 13779 | shared_flag='${wl}-bM:SRE' |
| 13780 | fi |
| 13781 | fi |
| 13782 | fi |
| 13783 | |
| 13784 | # It seems that -bexpall does not export symbols beginning with |
| 13785 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13786 | always_export_symbols_F77=yes |
| 13787 | if test "$aix_use_runtimelinking" = yes; then |
| 13788 | # Warning - without using the other runtime loading flags (-brtl), |
| 13789 | # -berok will link without error, but may produce a broken library. |
| 13790 | allow_undefined_flag_F77='-berok' |
| 13791 | # Determine the default libpath from the value encoded in an empty executable. |
| 13792 | cat >conftest.$ac_ext <<_ACEOF |
| 13793 | program main |
| 13794 | |
| 13795 | end |
| 13796 | _ACEOF |
| 13797 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13799 | (eval $ac_link) 2>conftest.er1 |
| 13800 | ac_status=$? |
| 13801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13802 | rm -f conftest.er1 |
| 13803 | cat conftest.err >&5 |
| 13804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13805 | (exit $ac_status); } && |
| 13806 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13808 | (eval $ac_try) 2>&5 |
| 13809 | ac_status=$? |
| 13810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13811 | (exit $ac_status); }; } && |
| 13812 | { ac_try='test -s conftest$ac_exeext' |
| 13813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13814 | (eval $ac_try) 2>&5 |
| 13815 | ac_status=$? |
| 13816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13817 | (exit $ac_status); }; }; then |
| 13818 | |
| 13819 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13820 | }'` |
| 13821 | # Check for a 64-bit object if we didn't find anything. |
| 13822 | 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; } |
| 13823 | }'`; fi |
| 13824 | else |
| 13825 | echo "$as_me: failed program was:" >&5 |
| 13826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13827 | |
| 13828 | fi |
| 13829 | rm -f conftest.err conftest.$ac_objext \ |
| 13830 | conftest$ac_exeext conftest.$ac_ext |
| 13831 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13832 | |
| 13833 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13834 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 13835 | else |
| 13836 | if test "$host_cpu" = ia64; then |
| 13837 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 13838 | allow_undefined_flag_F77="-z nodefs" |
| 13839 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 13840 | else |
| 13841 | # Determine the default libpath from the value encoded in an empty executable. |
| 13842 | cat >conftest.$ac_ext <<_ACEOF |
| 13843 | program main |
| 13844 | |
| 13845 | end |
| 13846 | _ACEOF |
| 13847 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13849 | (eval $ac_link) 2>conftest.er1 |
| 13850 | ac_status=$? |
| 13851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13852 | rm -f conftest.er1 |
| 13853 | cat conftest.err >&5 |
| 13854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13855 | (exit $ac_status); } && |
| 13856 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13858 | (eval $ac_try) 2>&5 |
| 13859 | ac_status=$? |
| 13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13861 | (exit $ac_status); }; } && |
| 13862 | { ac_try='test -s conftest$ac_exeext' |
| 13863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13864 | (eval $ac_try) 2>&5 |
| 13865 | ac_status=$? |
| 13866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13867 | (exit $ac_status); }; }; then |
| 13868 | |
| 13869 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13870 | }'` |
| 13871 | # Check for a 64-bit object if we didn't find anything. |
| 13872 | 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; } |
| 13873 | }'`; fi |
| 13874 | else |
| 13875 | echo "$as_me: failed program was:" >&5 |
| 13876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13877 | |
| 13878 | fi |
| 13879 | rm -f conftest.err conftest.$ac_objext \ |
| 13880 | conftest$ac_exeext conftest.$ac_ext |
| 13881 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13882 | |
| 13883 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13884 | # Warning - without using the other run time loading flags, |
| 13885 | # -berok will link without error, but may produce a broken library. |
| 13886 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 13887 | allow_undefined_flag_F77=' ${wl}-berok' |
| 13888 | # -bexpall does not export symbols beginning with underscore (_) |
| 13889 | always_export_symbols_F77=yes |
| 13890 | # Exported symbols can be pulled into shared objects from archives |
| 13891 | whole_archive_flag_spec_F77=' ' |
| 13892 | archive_cmds_need_lc_F77=yes |
| 13893 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 13894 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 13895 | fi |
| 13896 | fi |
| 13897 | ;; |
| 13898 | |
| 13899 | amigaos*) |
| 13900 | 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)' |
| 13901 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13902 | hardcode_minus_L_F77=yes |
| 13903 | # see comment about different semantics on the GNU ld section |
| 13904 | ld_shlibs_F77=no |
| 13905 | ;; |
| 13906 | |
| 13907 | bsdi4*) |
| 13908 | export_dynamic_flag_spec_F77=-rdynamic |
| 13909 | ;; |
| 13910 | |
| 13911 | cygwin* | mingw* | pw32*) |
| 13912 | # When not using gcc, we currently assume that we are using |
| 13913 | # Microsoft Visual C++. |
| 13914 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13915 | # no search path for DLLs. |
| 13916 | hardcode_libdir_flag_spec_F77=' ' |
| 13917 | allow_undefined_flag_F77=unsupported |
| 13918 | # Tell ltmain to make .lib files, not .a files. |
| 13919 | libext=lib |
| 13920 | # Tell ltmain to make .dll files, not .so files. |
| 13921 | shrext_cmds=".dll" |
| 13922 | # FIXME: Setting linknames here is a bad hack. |
| 13923 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13924 | # The linker will automatically build a .lib file if we build a DLL. |
| 13925 | old_archive_From_new_cmds_F77='true' |
| 13926 | # FIXME: Should let the user specify the lib program. |
| 13927 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13928 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13929 | enable_shared_with_static_runtimes_F77=yes |
| 13930 | ;; |
| 13931 | |
| 13932 | darwin* | rhapsody*) |
| 13933 | if test "$GXX" = yes ; then |
| 13934 | archive_cmds_need_lc_F77=no |
| 13935 | case "$host_os" in |
| 13936 | rhapsody* | darwin1.[012]) |
| 13937 | allow_undefined_flag_F77='-undefined suppress' |
| 13938 | ;; |
| 13939 | *) # Darwin 1.3 on |
| 13940 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 13941 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13942 | else |
| 13943 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 13944 | 10.[012]) |
| 13945 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13946 | ;; |
| 13947 | 10.*) |
| 13948 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
| 13949 | ;; |
| 13950 | esac |
| 13951 | fi |
| 13952 | ;; |
| 13953 | esac |
| 13954 | lt_int_apple_cc_single_mod=no |
| 13955 | output_verbose_link_cmd='echo' |
| 13956 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 13957 | lt_int_apple_cc_single_mod=yes |
| 13958 | fi |
| 13959 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13960 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13961 | else |
| 13962 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13963 | fi |
| 13964 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13965 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 13966 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13967 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13968 | else |
| 13969 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13970 | fi |
| 13971 | 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}' |
| 13972 | hardcode_direct_F77=no |
| 13973 | hardcode_automatic_F77=yes |
| 13974 | hardcode_shlibpath_var_F77=unsupported |
| 13975 | whole_archive_flag_spec_F77='-all_load $convenience' |
| 13976 | link_all_deplibs_F77=yes |
| 13977 | else |
| 13978 | ld_shlibs_F77=no |
| 13979 | fi |
| 13980 | ;; |
| 13981 | |
| 13982 | dgux*) |
| 13983 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13984 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13985 | hardcode_shlibpath_var_F77=no |
| 13986 | ;; |
| 13987 | |
| 13988 | freebsd1*) |
| 13989 | ld_shlibs_F77=no |
| 13990 | ;; |
| 13991 | |
| 13992 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13993 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13994 | # does not break anything, and helps significantly (at the cost of a little |
| 13995 | # extra space). |
| 13996 | freebsd2.2*) |
| 13997 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13998 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13999 | hardcode_direct_F77=yes |
| 14000 | hardcode_shlibpath_var_F77=no |
| 14001 | ;; |
| 14002 | |
| 14003 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14004 | freebsd2*) |
| 14005 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14006 | hardcode_direct_F77=yes |
| 14007 | hardcode_minus_L_F77=yes |
| 14008 | hardcode_shlibpath_var_F77=no |
| 14009 | ;; |
| 14010 | |
| 14011 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 14012 | freebsd* | kfreebsd*-gnu) |
| 14013 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 14014 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14015 | hardcode_direct_F77=yes |
| 14016 | hardcode_shlibpath_var_F77=no |
| 14017 | ;; |
| 14018 | |
| 14019 | hpux9*) |
| 14020 | if test "$GCC" = yes; then |
| 14021 | 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' |
| 14022 | else |
| 14023 | 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' |
| 14024 | fi |
| 14025 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14026 | hardcode_libdir_separator_F77=: |
| 14027 | hardcode_direct_F77=yes |
| 14028 | |
| 14029 | # hardcode_minus_L: Not really in the search PATH, |
| 14030 | # but as the default location of the library. |
| 14031 | hardcode_minus_L_F77=yes |
| 14032 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14033 | ;; |
| 14034 | |
| 14035 | hpux10* | hpux11*) |
| 14036 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 14037 | case "$host_cpu" in |
| 14038 | hppa*64*|ia64*) |
| 14039 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14040 | ;; |
| 14041 | *) |
| 14042 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14043 | ;; |
| 14044 | esac |
| 14045 | else |
| 14046 | case "$host_cpu" in |
| 14047 | hppa*64*|ia64*) |
| 14048 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14049 | ;; |
| 14050 | *) |
| 14051 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14052 | ;; |
| 14053 | esac |
| 14054 | fi |
| 14055 | if test "$with_gnu_ld" = no; then |
| 14056 | case "$host_cpu" in |
| 14057 | hppa*64*) |
| 14058 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14059 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 14060 | hardcode_libdir_separator_F77=: |
| 14061 | hardcode_direct_F77=no |
| 14062 | hardcode_shlibpath_var_F77=no |
| 14063 | ;; |
| 14064 | ia64*) |
| 14065 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14066 | hardcode_direct_F77=no |
| 14067 | hardcode_shlibpath_var_F77=no |
| 14068 | |
| 14069 | # hardcode_minus_L: Not really in the search PATH, |
| 14070 | # but as the default location of the library. |
| 14071 | hardcode_minus_L_F77=yes |
| 14072 | ;; |
| 14073 | *) |
| 14074 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14075 | hardcode_libdir_separator_F77=: |
| 14076 | hardcode_direct_F77=yes |
| 14077 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14078 | |
| 14079 | # hardcode_minus_L: Not really in the search PATH, |
| 14080 | # but as the default location of the library. |
| 14081 | hardcode_minus_L_F77=yes |
| 14082 | ;; |
| 14083 | esac |
| 14084 | fi |
| 14085 | ;; |
| 14086 | |
| 14087 | irix5* | irix6* | nonstopux*) |
| 14088 | if test "$GCC" = yes; then |
| 14089 | 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' |
| 14090 | else |
| 14091 | 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' |
| 14092 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 14093 | fi |
| 14094 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14095 | hardcode_libdir_separator_F77=: |
| 14096 | link_all_deplibs_F77=yes |
| 14097 | ;; |
| 14098 | |
| 14099 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 14100 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14101 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14102 | else |
| 14103 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14104 | fi |
| 14105 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14106 | hardcode_direct_F77=yes |
| 14107 | hardcode_shlibpath_var_F77=no |
| 14108 | ;; |
| 14109 | |
| 14110 | newsos6) |
| 14111 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14112 | hardcode_direct_F77=yes |
| 14113 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14114 | hardcode_libdir_separator_F77=: |
| 14115 | hardcode_shlibpath_var_F77=no |
| 14116 | ;; |
| 14117 | |
| 14118 | openbsd*) |
| 14119 | hardcode_direct_F77=yes |
| 14120 | hardcode_shlibpath_var_F77=no |
| 14121 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14122 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14123 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14124 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14125 | else |
| 14126 | case $host_os in |
| 14127 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 14128 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14129 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14130 | ;; |
| 14131 | *) |
| 14132 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14133 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14134 | ;; |
| 14135 | esac |
| 14136 | fi |
| 14137 | ;; |
| 14138 | |
| 14139 | os2*) |
| 14140 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14141 | hardcode_minus_L_F77=yes |
| 14142 | allow_undefined_flag_F77=unsupported |
| 14143 | 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' |
| 14144 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14145 | ;; |
| 14146 | |
| 14147 | osf3*) |
| 14148 | if test "$GCC" = yes; then |
| 14149 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14150 | 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' |
| 14151 | else |
| 14152 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14153 | 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' |
| 14154 | fi |
| 14155 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14156 | hardcode_libdir_separator_F77=: |
| 14157 | ;; |
| 14158 | |
| 14159 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14160 | if test "$GCC" = yes; then |
| 14161 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14162 | 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' |
| 14163 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14164 | else |
| 14165 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14166 | 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' |
| 14167 | 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~ |
| 14168 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 14169 | |
| 14170 | # Both c and cxx compiler support -rpath directly |
| 14171 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 14172 | fi |
| 14173 | hardcode_libdir_separator_F77=: |
| 14174 | ;; |
| 14175 | |
| 14176 | sco3.2v5*) |
| 14177 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14178 | hardcode_shlibpath_var_F77=no |
| 14179 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 14180 | runpath_var=LD_RUN_PATH |
| 14181 | hardcode_runpath_var=yes |
| 14182 | ;; |
| 14183 | |
| 14184 | solaris*) |
| 14185 | no_undefined_flag_F77=' -z text' |
| 14186 | if test "$GCC" = yes; then |
| 14187 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14188 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14189 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 14190 | else |
| 14191 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14192 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14193 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 14194 | fi |
| 14195 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14196 | hardcode_shlibpath_var_F77=no |
| 14197 | case $host_os in |
| 14198 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14199 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14200 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 14201 | esac |
| 14202 | link_all_deplibs_F77=yes |
| 14203 | ;; |
| 14204 | |
| 14205 | sunos4*) |
| 14206 | if test "x$host_vendor" = xsequent; then |
| 14207 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14208 | # files that make .init and .fini sections work. |
| 14209 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14210 | else |
| 14211 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14212 | fi |
| 14213 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14214 | hardcode_direct_F77=yes |
| 14215 | hardcode_minus_L_F77=yes |
| 14216 | hardcode_shlibpath_var_F77=no |
| 14217 | ;; |
| 14218 | |
| 14219 | sysv4) |
| 14220 | case $host_vendor in |
| 14221 | sni) |
| 14222 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14223 | hardcode_direct_F77=yes # is this really true??? |
| 14224 | ;; |
| 14225 | siemens) |
| 14226 | ## LD is ld it makes a PLAMLIB |
| 14227 | ## CC just makes a GrossModule. |
| 14228 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14229 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 14230 | hardcode_direct_F77=no |
| 14231 | ;; |
| 14232 | motorola) |
| 14233 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14234 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 14235 | ;; |
| 14236 | esac |
| 14237 | runpath_var='LD_RUN_PATH' |
| 14238 | hardcode_shlibpath_var_F77=no |
| 14239 | ;; |
| 14240 | |
| 14241 | sysv4.3*) |
| 14242 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14243 | hardcode_shlibpath_var_F77=no |
| 14244 | export_dynamic_flag_spec_F77='-Bexport' |
| 14245 | ;; |
| 14246 | |
| 14247 | sysv4*MP*) |
| 14248 | if test -d /usr/nec; then |
| 14249 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14250 | hardcode_shlibpath_var_F77=no |
| 14251 | runpath_var=LD_RUN_PATH |
| 14252 | hardcode_runpath_var=yes |
| 14253 | ld_shlibs_F77=yes |
| 14254 | fi |
| 14255 | ;; |
| 14256 | |
| 14257 | sysv4.2uw2*) |
| 14258 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14259 | hardcode_direct_F77=yes |
| 14260 | hardcode_minus_L_F77=no |
| 14261 | hardcode_shlibpath_var_F77=no |
| 14262 | hardcode_runpath_var=yes |
| 14263 | runpath_var=LD_RUN_PATH |
| 14264 | ;; |
| 14265 | |
| 14266 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 14267 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 14268 | if test "$GCC" = yes; then |
| 14269 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14270 | else |
| 14271 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14272 | fi |
| 14273 | runpath_var='LD_RUN_PATH' |
| 14274 | hardcode_shlibpath_var_F77=no |
| 14275 | ;; |
| 14276 | |
| 14277 | sysv5*) |
| 14278 | no_undefined_flag_F77=' -z text' |
| 14279 | # $CC -shared without GNU ld will not create a library from C++ |
| 14280 | # object files and a static libstdc++, better avoid it by now |
| 14281 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14282 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14283 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 14284 | hardcode_libdir_flag_spec_F77= |
| 14285 | hardcode_shlibpath_var_F77=no |
| 14286 | runpath_var='LD_RUN_PATH' |
| 14287 | ;; |
| 14288 | |
| 14289 | uts4*) |
| 14290 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14291 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14292 | hardcode_shlibpath_var_F77=no |
| 14293 | ;; |
| 14294 | |
| 14295 | *) |
| 14296 | ld_shlibs_F77=no |
| 14297 | ;; |
| 14298 | esac |
| 14299 | fi |
| 14300 | |
| 14301 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 14302 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 14303 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 14304 | |
| 14305 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14306 | if test "$GCC" = yes; then |
| 14307 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14308 | fi |
| 14309 | |
| 14310 | # |
| 14311 | # Do we need to explicitly link libc? |
| 14312 | # |
| 14313 | case "x$archive_cmds_need_lc_F77" in |
| 14314 | x|xyes) |
| 14315 | # Assume -lc should be added |
| 14316 | archive_cmds_need_lc_F77=yes |
| 14317 | |
| 14318 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14319 | case $archive_cmds_F77 in |
| 14320 | *'~'*) |
| 14321 | # FIXME: we may have to deal with multi-command sequences. |
| 14322 | ;; |
| 14323 | '$CC '*) |
| 14324 | # Test whether the compiler implicitly links with -lc since on some |
| 14325 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14326 | # to ld, don't add -lc before -lgcc. |
| 14327 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 14328 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 14329 | $rm conftest* |
| 14330 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14331 | |
| 14332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14333 | (eval $ac_compile) 2>&5 |
| 14334 | ac_status=$? |
| 14335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14336 | (exit $ac_status); } 2>conftest.err; then |
| 14337 | soname=conftest |
| 14338 | lib=conftest |
| 14339 | libobjs=conftest.$ac_objext |
| 14340 | deplibs= |
| 14341 | wl=$lt_prog_compiler_wl_F77 |
| 14342 | compiler_flags=-v |
| 14343 | linker_flags=-v |
| 14344 | verstring= |
| 14345 | output_objdir=. |
| 14346 | libname=conftest |
| 14347 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 14348 | allow_undefined_flag_F77= |
| 14349 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 14350 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14351 | ac_status=$? |
| 14352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14353 | (exit $ac_status); } |
| 14354 | then |
| 14355 | archive_cmds_need_lc_F77=no |
| 14356 | else |
| 14357 | archive_cmds_need_lc_F77=yes |
| 14358 | fi |
| 14359 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 14360 | else |
| 14361 | cat conftest.err 1>&5 |
| 14362 | fi |
| 14363 | $rm conftest* |
| 14364 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 14365 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 14366 | ;; |
| 14367 | esac |
| 14368 | fi |
| 14369 | ;; |
| 14370 | esac |
| 14371 | |
| 14372 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 14373 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 14374 | library_names_spec= |
| 14375 | libname_spec='lib$name' |
| 14376 | soname_spec= |
| 14377 | shrext_cmds=".so" |
| 14378 | postinstall_cmds= |
| 14379 | postuninstall_cmds= |
| 14380 | finish_cmds= |
| 14381 | finish_eval= |
| 14382 | shlibpath_var= |
| 14383 | shlibpath_overrides_runpath=unknown |
| 14384 | version_type=none |
| 14385 | dynamic_linker="$host_os ld.so" |
| 14386 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14387 | if test "$GCC" = yes; then |
| 14388 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14389 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 14390 | # if the path contains ";" then we assume it to be the separator |
| 14391 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 14392 | # assumed that no part of a normal pathname contains ";" but that should |
| 14393 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 14394 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14395 | else |
| 14396 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14397 | fi |
| 14398 | else |
| 14399 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14400 | fi |
| 14401 | need_lib_prefix=unknown |
| 14402 | hardcode_into_libs=no |
| 14403 | |
| 14404 | # when you set need_version to no, make sure it does not cause -set_version |
| 14405 | # flags to be left without arguments |
| 14406 | need_version=unknown |
| 14407 | |
| 14408 | case $host_os in |
| 14409 | aix3*) |
| 14410 | version_type=linux |
| 14411 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14412 | shlibpath_var=LIBPATH |
| 14413 | |
| 14414 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14415 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14416 | ;; |
| 14417 | |
| 14418 | aix4* | aix5*) |
| 14419 | version_type=linux |
| 14420 | need_lib_prefix=no |
| 14421 | need_version=no |
| 14422 | hardcode_into_libs=yes |
| 14423 | if test "$host_cpu" = ia64; then |
| 14424 | # AIX 5 supports IA64 |
| 14425 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14426 | shlibpath_var=LD_LIBRARY_PATH |
| 14427 | else |
| 14428 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14429 | # for dependence libraries. The import file would start with |
| 14430 | # the line `#! .'. This would cause the generated library to |
| 14431 | # depend on `.', always an invalid library. This was fixed in |
| 14432 | # development snapshots of GCC prior to 3.0. |
| 14433 | case $host_os in |
| 14434 | aix4 | aix4.[01] | aix4.[01].*) |
| 14435 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14436 | echo ' yes ' |
| 14437 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 14438 | : |
| 14439 | else |
| 14440 | can_build_shared=no |
| 14441 | fi |
| 14442 | ;; |
| 14443 | esac |
| 14444 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14445 | # soname into executable. Probably we can add versioning support to |
| 14446 | # collect2, so additional links can be useful in future. |
| 14447 | if test "$aix_use_runtimelinking" = yes; then |
| 14448 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14449 | # instead of lib<name>.a to let people know that these are not |
| 14450 | # typical AIX shared libraries. |
| 14451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14452 | else |
| 14453 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14454 | # and later when we are not doing run time linking. |
| 14455 | library_names_spec='${libname}${release}.a $libname.a' |
| 14456 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14457 | fi |
| 14458 | shlibpath_var=LIBPATH |
| 14459 | fi |
| 14460 | ;; |
| 14461 | |
| 14462 | amigaos*) |
| 14463 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14464 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14465 | 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' |
| 14466 | ;; |
| 14467 | |
| 14468 | beos*) |
| 14469 | library_names_spec='${libname}${shared_ext}' |
| 14470 | dynamic_linker="$host_os ld.so" |
| 14471 | shlibpath_var=LIBRARY_PATH |
| 14472 | ;; |
| 14473 | |
| 14474 | bsdi4*) |
| 14475 | version_type=linux |
| 14476 | need_version=no |
| 14477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14478 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14479 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14480 | shlibpath_var=LD_LIBRARY_PATH |
| 14481 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14482 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14483 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14484 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14485 | # libtool to hard-code these into programs |
| 14486 | ;; |
| 14487 | |
| 14488 | cygwin* | mingw* | pw32*) |
| 14489 | version_type=windows |
| 14490 | shrext_cmds=".dll" |
| 14491 | need_version=no |
| 14492 | need_lib_prefix=no |
| 14493 | |
| 14494 | case $GCC,$host_os in |
| 14495 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 14496 | library_names_spec='$libname.dll.a' |
| 14497 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14498 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14499 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 14500 | dldir=$destdir/`dirname \$dlpath`~ |
| 14501 | test -d \$dldir || mkdir -p \$dldir~ |
| 14502 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 14503 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14504 | dlpath=$dir/\$dldll~ |
| 14505 | $rm \$dlpath' |
| 14506 | shlibpath_overrides_runpath=yes |
| 14507 | |
| 14508 | case $host_os in |
| 14509 | cygwin*) |
| 14510 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14511 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14512 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 14513 | ;; |
| 14514 | mingw*) |
| 14515 | # MinGW DLLs use traditional 'lib' prefix |
| 14516 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14517 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14518 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 14519 | # It is most probably a Windows format PATH printed by |
| 14520 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 14521 | # path with ; separators, and with drive letters. We can handle the |
| 14522 | # drive letters (cygwin fileutils understands them), so leave them, |
| 14523 | # especially as we might pass files found there to a mingw objdump, |
| 14524 | # which wouldn't understand a cygwinified path. Ahh. |
| 14525 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14526 | else |
| 14527 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14528 | fi |
| 14529 | ;; |
| 14530 | pw32*) |
| 14531 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 14532 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 14533 | ;; |
| 14534 | esac |
| 14535 | ;; |
| 14536 | |
| 14537 | *) |
| 14538 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 14539 | ;; |
| 14540 | esac |
| 14541 | dynamic_linker='Win32 ld.exe' |
| 14542 | # FIXME: first we should search . and the directory the executable is in |
| 14543 | shlibpath_var=PATH |
| 14544 | ;; |
| 14545 | |
| 14546 | darwin* | rhapsody*) |
| 14547 | dynamic_linker="$host_os dyld" |
| 14548 | version_type=darwin |
| 14549 | need_lib_prefix=no |
| 14550 | need_version=no |
| 14551 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 14552 | soname_spec='${libname}${release}${major}$shared_ext' |
| 14553 | shlibpath_overrides_runpath=yes |
| 14554 | shlibpath_var=DYLD_LIBRARY_PATH |
| 14555 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 14556 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 14557 | if test "$GCC" = yes; then |
| 14558 | 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"` |
| 14559 | else |
| 14560 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 14561 | fi |
| 14562 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14563 | ;; |
| 14564 | |
| 14565 | dgux*) |
| 14566 | version_type=linux |
| 14567 | need_lib_prefix=no |
| 14568 | need_version=no |
| 14569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 14570 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14571 | shlibpath_var=LD_LIBRARY_PATH |
| 14572 | ;; |
| 14573 | |
| 14574 | freebsd1*) |
| 14575 | dynamic_linker=no |
| 14576 | ;; |
| 14577 | |
| 14578 | kfreebsd*-gnu) |
| 14579 | version_type=linux |
| 14580 | need_lib_prefix=no |
| 14581 | need_version=no |
| 14582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14583 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14584 | shlibpath_var=LD_LIBRARY_PATH |
| 14585 | shlibpath_overrides_runpath=no |
| 14586 | hardcode_into_libs=yes |
| 14587 | dynamic_linker='GNU ld.so' |
| 14588 | ;; |
| 14589 | |
| 14590 | freebsd*) |
| 14591 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 14592 | version_type=freebsd-$objformat |
| 14593 | case $version_type in |
| 14594 | freebsd-elf*) |
| 14595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14596 | need_version=no |
| 14597 | need_lib_prefix=no |
| 14598 | ;; |
| 14599 | freebsd-*) |
| 14600 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14601 | need_version=yes |
| 14602 | ;; |
| 14603 | esac |
| 14604 | shlibpath_var=LD_LIBRARY_PATH |
| 14605 | case $host_os in |
| 14606 | freebsd2*) |
| 14607 | shlibpath_overrides_runpath=yes |
| 14608 | ;; |
| 14609 | freebsd3.01* | freebsdelf3.01*) |
| 14610 | shlibpath_overrides_runpath=yes |
| 14611 | hardcode_into_libs=yes |
| 14612 | ;; |
| 14613 | *) # from 3.2 on |
| 14614 | shlibpath_overrides_runpath=no |
| 14615 | hardcode_into_libs=yes |
| 14616 | ;; |
| 14617 | esac |
| 14618 | ;; |
| 14619 | |
| 14620 | gnu*) |
| 14621 | version_type=linux |
| 14622 | need_lib_prefix=no |
| 14623 | need_version=no |
| 14624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14625 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14626 | shlibpath_var=LD_LIBRARY_PATH |
| 14627 | hardcode_into_libs=yes |
| 14628 | ;; |
| 14629 | |
| 14630 | hpux9* | hpux10* | hpux11*) |
| 14631 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14632 | # link against other versions. |
| 14633 | version_type=sunos |
| 14634 | need_lib_prefix=no |
| 14635 | need_version=no |
| 14636 | case "$host_cpu" in |
| 14637 | ia64*) |
| 14638 | shrext_cmds='.so' |
| 14639 | hardcode_into_libs=yes |
| 14640 | dynamic_linker="$host_os dld.so" |
| 14641 | shlibpath_var=LD_LIBRARY_PATH |
| 14642 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14644 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14645 | if test "X$HPUX_IA64_MODE" = X32; then |
| 14646 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14647 | else |
| 14648 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14649 | fi |
| 14650 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14651 | ;; |
| 14652 | hppa*64*) |
| 14653 | shrext_cmds='.sl' |
| 14654 | hardcode_into_libs=yes |
| 14655 | dynamic_linker="$host_os dld.sl" |
| 14656 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14657 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14659 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14660 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14661 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14662 | ;; |
| 14663 | *) |
| 14664 | shrext_cmds='.sl' |
| 14665 | dynamic_linker="$host_os dld.sl" |
| 14666 | shlibpath_var=SHLIB_PATH |
| 14667 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14669 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14670 | ;; |
| 14671 | esac |
| 14672 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 14673 | postinstall_cmds='chmod 555 $lib' |
| 14674 | ;; |
| 14675 | |
| 14676 | irix5* | irix6* | nonstopux*) |
| 14677 | case $host_os in |
| 14678 | nonstopux*) version_type=nonstopux ;; |
| 14679 | *) |
| 14680 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14681 | version_type=linux |
| 14682 | else |
| 14683 | version_type=irix |
| 14684 | fi ;; |
| 14685 | esac |
| 14686 | need_lib_prefix=no |
| 14687 | need_version=no |
| 14688 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14690 | case $host_os in |
| 14691 | irix5* | nonstopux*) |
| 14692 | libsuff= shlibsuff= |
| 14693 | ;; |
| 14694 | *) |
| 14695 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14696 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14697 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14698 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14699 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14700 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14701 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14702 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14703 | esac |
| 14704 | ;; |
| 14705 | esac |
| 14706 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14707 | shlibpath_overrides_runpath=no |
| 14708 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14709 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14710 | hardcode_into_libs=yes |
| 14711 | ;; |
| 14712 | |
| 14713 | # No shared lib support for Linux oldld, aout, or coff. |
| 14714 | linux*oldld* | linux*aout* | linux*coff*) |
| 14715 | dynamic_linker=no |
| 14716 | ;; |
| 14717 | |
| 14718 | # This must be Linux ELF. |
| 14719 | linux*) |
| 14720 | version_type=linux |
| 14721 | need_lib_prefix=no |
| 14722 | need_version=no |
| 14723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14724 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14725 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14726 | shlibpath_var=LD_LIBRARY_PATH |
| 14727 | shlibpath_overrides_runpath=no |
| 14728 | # This implies no fast_install, which is unacceptable. |
| 14729 | # Some rework will be needed to allow for fast_install |
| 14730 | # before this can be enabled. |
| 14731 | hardcode_into_libs=yes |
| 14732 | |
| 14733 | # Append ld.so.conf contents to the search path |
| 14734 | if test -f /etc/ld.so.conf; then |
| 14735 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 14736 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14737 | fi |
| 14738 | |
| 14739 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14740 | # powerpc, because MkLinux only supported shared libraries with the |
| 14741 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14742 | # most powerpc-linux boxes support dynamic linking these days and |
| 14743 | # people can always --disable-shared, the test was removed, and we |
| 14744 | # assume the GNU/Linux dynamic linker is in use. |
| 14745 | dynamic_linker='GNU/Linux ld.so' |
| 14746 | ;; |
| 14747 | |
| 14748 | netbsdelf*-gnu) |
| 14749 | version_type=linux |
| 14750 | need_lib_prefix=no |
| 14751 | need_version=no |
| 14752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14753 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14754 | shlibpath_var=LD_LIBRARY_PATH |
| 14755 | shlibpath_overrides_runpath=no |
| 14756 | hardcode_into_libs=yes |
| 14757 | dynamic_linker='NetBSD ld.elf_so' |
| 14758 | ;; |
| 14759 | |
| 14760 | knetbsd*-gnu) |
| 14761 | version_type=linux |
| 14762 | need_lib_prefix=no |
| 14763 | need_version=no |
| 14764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14765 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14766 | shlibpath_var=LD_LIBRARY_PATH |
| 14767 | shlibpath_overrides_runpath=no |
| 14768 | hardcode_into_libs=yes |
| 14769 | dynamic_linker='GNU ld.so' |
| 14770 | ;; |
| 14771 | |
| 14772 | netbsd*) |
| 14773 | version_type=sunos |
| 14774 | need_lib_prefix=no |
| 14775 | need_version=no |
| 14776 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14778 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14779 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14780 | else |
| 14781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14782 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14783 | dynamic_linker='NetBSD ld.elf_so' |
| 14784 | fi |
| 14785 | shlibpath_var=LD_LIBRARY_PATH |
| 14786 | shlibpath_overrides_runpath=yes |
| 14787 | hardcode_into_libs=yes |
| 14788 | ;; |
| 14789 | |
| 14790 | newsos6) |
| 14791 | version_type=linux |
| 14792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14793 | shlibpath_var=LD_LIBRARY_PATH |
| 14794 | shlibpath_overrides_runpath=yes |
| 14795 | ;; |
| 14796 | |
| 14797 | nto-qnx*) |
| 14798 | version_type=linux |
| 14799 | need_lib_prefix=no |
| 14800 | need_version=no |
| 14801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14802 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14803 | shlibpath_var=LD_LIBRARY_PATH |
| 14804 | shlibpath_overrides_runpath=yes |
| 14805 | ;; |
| 14806 | |
| 14807 | openbsd*) |
| 14808 | version_type=sunos |
| 14809 | need_lib_prefix=no |
| 14810 | need_version=yes |
| 14811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14812 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14813 | shlibpath_var=LD_LIBRARY_PATH |
| 14814 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14815 | case $host_os in |
| 14816 | openbsd2.[89] | openbsd2.[89].*) |
| 14817 | shlibpath_overrides_runpath=no |
| 14818 | ;; |
| 14819 | *) |
| 14820 | shlibpath_overrides_runpath=yes |
| 14821 | ;; |
| 14822 | esac |
| 14823 | else |
| 14824 | shlibpath_overrides_runpath=yes |
| 14825 | fi |
| 14826 | ;; |
| 14827 | |
| 14828 | os2*) |
| 14829 | libname_spec='$name' |
| 14830 | shrext_cmds=".dll" |
| 14831 | need_lib_prefix=no |
| 14832 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14833 | dynamic_linker='OS/2 ld.exe' |
| 14834 | shlibpath_var=LIBPATH |
| 14835 | ;; |
| 14836 | |
| 14837 | osf3* | osf4* | osf5*) |
| 14838 | version_type=osf |
| 14839 | need_lib_prefix=no |
| 14840 | need_version=no |
| 14841 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14842 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14843 | shlibpath_var=LD_LIBRARY_PATH |
| 14844 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14845 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14846 | ;; |
| 14847 | |
| 14848 | sco3.2v5*) |
| 14849 | version_type=osf |
| 14850 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14852 | shlibpath_var=LD_LIBRARY_PATH |
| 14853 | ;; |
| 14854 | |
| 14855 | solaris*) |
| 14856 | version_type=linux |
| 14857 | need_lib_prefix=no |
| 14858 | need_version=no |
| 14859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14860 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14861 | shlibpath_var=LD_LIBRARY_PATH |
| 14862 | shlibpath_overrides_runpath=yes |
| 14863 | hardcode_into_libs=yes |
| 14864 | # ldd complains unless libraries are executable |
| 14865 | postinstall_cmds='chmod +x $lib' |
| 14866 | ;; |
| 14867 | |
| 14868 | sunos4*) |
| 14869 | version_type=sunos |
| 14870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14871 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14872 | shlibpath_var=LD_LIBRARY_PATH |
| 14873 | shlibpath_overrides_runpath=yes |
| 14874 | if test "$with_gnu_ld" = yes; then |
| 14875 | need_lib_prefix=no |
| 14876 | fi |
| 14877 | need_version=yes |
| 14878 | ;; |
| 14879 | |
| 14880 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14881 | version_type=linux |
| 14882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14884 | shlibpath_var=LD_LIBRARY_PATH |
| 14885 | case $host_vendor in |
| 14886 | sni) |
| 14887 | shlibpath_overrides_runpath=no |
| 14888 | need_lib_prefix=no |
| 14889 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14890 | runpath_var=LD_RUN_PATH |
| 14891 | ;; |
| 14892 | siemens) |
| 14893 | need_lib_prefix=no |
| 14894 | ;; |
| 14895 | motorola) |
| 14896 | need_lib_prefix=no |
| 14897 | need_version=no |
| 14898 | shlibpath_overrides_runpath=no |
| 14899 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14900 | ;; |
| 14901 | esac |
| 14902 | ;; |
| 14903 | |
| 14904 | sysv4*MP*) |
| 14905 | if test -d /usr/nec ;then |
| 14906 | version_type=linux |
| 14907 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14908 | soname_spec='$libname${shared_ext}.$major' |
| 14909 | shlibpath_var=LD_LIBRARY_PATH |
| 14910 | fi |
| 14911 | ;; |
| 14912 | |
| 14913 | uts4*) |
| 14914 | version_type=linux |
| 14915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14916 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14917 | shlibpath_var=LD_LIBRARY_PATH |
| 14918 | ;; |
| 14919 | |
| 14920 | *) |
| 14921 | dynamic_linker=no |
| 14922 | ;; |
| 14923 | esac |
| 14924 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14925 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14926 | test "$dynamic_linker" = no && can_build_shared=no |
| 14927 | |
| 14928 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14929 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 14930 | hardcode_action_F77= |
| 14931 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 14932 | test -n "$runpath_var F77" || \ |
| 14933 | test "X$hardcode_automatic_F77"="Xyes" ; then |
| 14934 | |
| 14935 | # We can hardcode non-existant directories. |
| 14936 | if test "$hardcode_direct_F77" != no && |
| 14937 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14938 | # have to relink, otherwise we might link with an installed library |
| 14939 | # when we should be linking with a yet-to-be-installed one |
| 14940 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 14941 | test "$hardcode_minus_L_F77" != no; then |
| 14942 | # Linking always hardcodes the temporary library directory. |
| 14943 | hardcode_action_F77=relink |
| 14944 | else |
| 14945 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14946 | hardcode_action_F77=immediate |
| 14947 | fi |
| 14948 | else |
| 14949 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14950 | # directories. |
| 14951 | hardcode_action_F77=unsupported |
| 14952 | fi |
| 14953 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 14954 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 14955 | |
| 14956 | if test "$hardcode_action_F77" = relink; then |
| 14957 | # Fast installation is not supported |
| 14958 | enable_fast_install=no |
| 14959 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14960 | test "$enable_shared" = no; then |
| 14961 | # Fast installation is not necessary |
| 14962 | enable_fast_install=needless |
| 14963 | fi |
| 14964 | |
| 14965 | striplib= |
| 14966 | old_striplib= |
| 14967 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 14968 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 14969 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 14970 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14971 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14972 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14973 | echo "${ECHO_T}yes" >&6 |
| 14974 | else |
| 14975 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14976 | case $host_os in |
| 14977 | darwin*) |
| 14978 | if test -n "$STRIP" ; then |
| 14979 | striplib="$STRIP -x" |
| 14980 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14981 | echo "${ECHO_T}yes" >&6 |
| 14982 | else |
| 14983 | echo "$as_me:$LINENO: result: no" >&5 |
| 14984 | echo "${ECHO_T}no" >&6 |
| 14985 | fi |
| 14986 | ;; |
| 14987 | *) |
| 14988 | echo "$as_me:$LINENO: result: no" >&5 |
| 14989 | echo "${ECHO_T}no" >&6 |
| 14990 | ;; |
| 14991 | esac |
| 14992 | fi |
| 14993 | |
| 14994 | |
| 14995 | |
| 14996 | # The else clause should only fire when bootstrapping the |
| 14997 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14998 | # with your package, and you will get complaints that there are |
| 14999 | # no rules to generate ltmain.sh. |
| 15000 | if test -f "$ltmain"; then |
| 15001 | # See if we are running on zsh, and set the options which allow our commands through |
| 15002 | # without removal of \ escapes. |
| 15003 | if test -n "${ZSH_VERSION+set}" ; then |
| 15004 | setopt NO_GLOB_SUBST |
| 15005 | fi |
| 15006 | # Now quote all the things that may contain metacharacters while being |
| 15007 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 15008 | # variables and quote the copies for generation of the libtool script. |
| 15009 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 15010 | SED SHELL STRIP \ |
| 15011 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 15012 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 15013 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 15014 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 15015 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15016 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 15017 | old_postinstall_cmds old_postuninstall_cmds \ |
| 15018 | compiler_F77 \ |
| 15019 | CC_F77 \ |
| 15020 | LD_F77 \ |
| 15021 | lt_prog_compiler_wl_F77 \ |
| 15022 | lt_prog_compiler_pic_F77 \ |
| 15023 | lt_prog_compiler_static_F77 \ |
| 15024 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 15025 | export_dynamic_flag_spec_F77 \ |
| 15026 | thread_safe_flag_spec_F77 \ |
| 15027 | whole_archive_flag_spec_F77 \ |
| 15028 | enable_shared_with_static_runtimes_F77 \ |
| 15029 | old_archive_cmds_F77 \ |
| 15030 | old_archive_from_new_cmds_F77 \ |
| 15031 | predep_objects_F77 \ |
| 15032 | postdep_objects_F77 \ |
| 15033 | predeps_F77 \ |
| 15034 | postdeps_F77 \ |
| 15035 | compiler_lib_search_path_F77 \ |
| 15036 | archive_cmds_F77 \ |
| 15037 | archive_expsym_cmds_F77 \ |
| 15038 | postinstall_cmds_F77 \ |
| 15039 | postuninstall_cmds_F77 \ |
| 15040 | old_archive_from_expsyms_cmds_F77 \ |
| 15041 | allow_undefined_flag_F77 \ |
| 15042 | no_undefined_flag_F77 \ |
| 15043 | export_symbols_cmds_F77 \ |
| 15044 | hardcode_libdir_flag_spec_F77 \ |
| 15045 | hardcode_libdir_flag_spec_ld_F77 \ |
| 15046 | hardcode_libdir_separator_F77 \ |
| 15047 | hardcode_automatic_F77 \ |
| 15048 | module_cmds_F77 \ |
| 15049 | module_expsym_cmds_F77 \ |
| 15050 | lt_cv_prog_compiler_c_o_F77 \ |
| 15051 | exclude_expsyms_F77 \ |
| 15052 | include_expsyms_F77; do |
| 15053 | |
| 15054 | case $var in |
| 15055 | old_archive_cmds_F77 | \ |
| 15056 | old_archive_from_new_cmds_F77 | \ |
| 15057 | archive_cmds_F77 | \ |
| 15058 | archive_expsym_cmds_F77 | \ |
| 15059 | module_cmds_F77 | \ |
| 15060 | module_expsym_cmds_F77 | \ |
| 15061 | old_archive_from_expsyms_cmds_F77 | \ |
| 15062 | export_symbols_cmds_F77 | \ |
| 15063 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 15064 | postinstall_cmds | postuninstall_cmds | \ |
| 15065 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 15066 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 15067 | # Double-quote double-evaled strings. |
| 15068 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 15069 | ;; |
| 15070 | *) |
| 15071 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 15072 | ;; |
| 15073 | esac |
| 15074 | done |
| 15075 | |
| 15076 | case $lt_echo in |
| 15077 | *'\$0 --fallback-echo"') |
| 15078 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 15079 | ;; |
| 15080 | esac |
| 15081 | |
| 15082 | cfgfile="$ofile" |
| 15083 | |
| 15084 | cat <<__EOF__ >> "$cfgfile" |
| 15085 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 15086 | |
| 15087 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15088 | |
| 15089 | # Shell to use when invoking shell scripts. |
| 15090 | SHELL=$lt_SHELL |
| 15091 | |
| 15092 | # Whether or not to build shared libraries. |
| 15093 | build_libtool_libs=$enable_shared |
| 15094 | |
| 15095 | # Whether or not to build static libraries. |
| 15096 | build_old_libs=$enable_static |
| 15097 | |
| 15098 | # Whether or not to add -lc for building shared libraries. |
| 15099 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 15100 | |
| 15101 | # Whether or not to disallow shared libs when runtime libs are static |
| 15102 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 15103 | |
| 15104 | # Whether or not to optimize for fast installation. |
| 15105 | fast_install=$enable_fast_install |
| 15106 | |
| 15107 | # The host system. |
| 15108 | host_alias=$host_alias |
| 15109 | host=$host |
| 15110 | |
| 15111 | # An echo program that does not interpret backslashes. |
| 15112 | echo=$lt_echo |
| 15113 | |
| 15114 | # The archiver. |
| 15115 | AR=$lt_AR |
| 15116 | AR_FLAGS=$lt_AR_FLAGS |
| 15117 | |
| 15118 | # A C compiler. |
| 15119 | LTCC=$lt_LTCC |
| 15120 | |
| 15121 | # A language-specific compiler. |
| 15122 | CC=$lt_compiler_F77 |
| 15123 | |
| 15124 | # Is the compiler the GNU C compiler? |
| 15125 | with_gcc=$GCC_F77 |
| 15126 | |
| 15127 | # An ERE matcher. |
| 15128 | EGREP=$lt_EGREP |
| 15129 | |
| 15130 | # The linker used to build libraries. |
| 15131 | LD=$lt_LD_F77 |
| 15132 | |
| 15133 | # Whether we need hard or soft links. |
| 15134 | LN_S=$lt_LN_S |
| 15135 | |
| 15136 | # A BSD-compatible nm program. |
| 15137 | NM=$lt_NM |
| 15138 | |
| 15139 | # A symbol stripping program |
| 15140 | STRIP=$lt_STRIP |
| 15141 | |
| 15142 | # Used to examine libraries when file_magic_cmd begins "file" |
| 15143 | MAGIC_CMD=$MAGIC_CMD |
| 15144 | |
| 15145 | # Used on cygwin: DLL creation program. |
| 15146 | DLLTOOL="$DLLTOOL" |
| 15147 | |
| 15148 | # Used on cygwin: object dumper. |
| 15149 | OBJDUMP="$OBJDUMP" |
| 15150 | |
| 15151 | # Used on cygwin: assembler. |
| 15152 | AS="$AS" |
| 15153 | |
| 15154 | # The name of the directory that contains temporary libtool files. |
| 15155 | objdir=$objdir |
| 15156 | |
| 15157 | # How to create reloadable object files. |
| 15158 | reload_flag=$lt_reload_flag |
| 15159 | reload_cmds=$lt_reload_cmds |
| 15160 | |
| 15161 | # How to pass a linker flag through the compiler. |
| 15162 | wl=$lt_lt_prog_compiler_wl_F77 |
| 15163 | |
| 15164 | # Object file suffix (normally "o"). |
| 15165 | objext="$ac_objext" |
| 15166 | |
| 15167 | # Old archive suffix (normally "a"). |
| 15168 | libext="$libext" |
| 15169 | |
| 15170 | # Shared library suffix (normally ".so"). |
| 15171 | shrext_cmds='$shrext_cmds' |
| 15172 | |
| 15173 | # Executable file suffix (normally ""). |
| 15174 | exeext="$exeext" |
| 15175 | |
| 15176 | # Additional compiler flags for building library objects. |
| 15177 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 15178 | pic_mode=$pic_mode |
| 15179 | |
| 15180 | # What is the maximum length of a command? |
| 15181 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 15182 | |
| 15183 | # Does compiler simultaneously support -c and -o options? |
| 15184 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 15185 | |
| 15186 | # Must we lock files when doing compilation ? |
| 15187 | need_locks=$lt_need_locks |
| 15188 | |
| 15189 | # Do we need the lib prefix for modules? |
| 15190 | need_lib_prefix=$need_lib_prefix |
| 15191 | |
| 15192 | # Do we need a version for libraries? |
| 15193 | need_version=$need_version |
| 15194 | |
| 15195 | # Whether dlopen is supported. |
| 15196 | dlopen_support=$enable_dlopen |
| 15197 | |
| 15198 | # Whether dlopen of programs is supported. |
| 15199 | dlopen_self=$enable_dlopen_self |
| 15200 | |
| 15201 | # Whether dlopen of statically linked programs is supported. |
| 15202 | dlopen_self_static=$enable_dlopen_self_static |
| 15203 | |
| 15204 | # Compiler flag to prevent dynamic linking. |
| 15205 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 15206 | |
| 15207 | # Compiler flag to turn off builtin functions. |
| 15208 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 15209 | |
| 15210 | # Compiler flag to allow reflexive dlopens. |
| 15211 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 15212 | |
| 15213 | # Compiler flag to generate shared objects directly from archives. |
| 15214 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 15215 | |
| 15216 | # Compiler flag to generate thread-safe objects. |
| 15217 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 15218 | |
| 15219 | # Library versioning type. |
| 15220 | version_type=$version_type |
| 15221 | |
| 15222 | # Format of library name prefix. |
| 15223 | libname_spec=$lt_libname_spec |
| 15224 | |
| 15225 | # List of archive names. First name is the real one, the rest are links. |
| 15226 | # The last name is the one that the linker finds with -lNAME. |
| 15227 | library_names_spec=$lt_library_names_spec |
| 15228 | |
| 15229 | # The coded name of the library, if different from the real name. |
| 15230 | soname_spec=$lt_soname_spec |
| 15231 | |
| 15232 | # Commands used to build and install an old-style archive. |
| 15233 | RANLIB=$lt_RANLIB |
| 15234 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 15235 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15236 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15237 | |
| 15238 | # Create an old-style archive from a shared archive. |
| 15239 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 15240 | |
| 15241 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15242 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 15243 | |
| 15244 | # Commands used to build and install a shared archive. |
| 15245 | archive_cmds=$lt_archive_cmds_F77 |
| 15246 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 15247 | postinstall_cmds=$lt_postinstall_cmds |
| 15248 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15249 | |
| 15250 | # Commands used to build a loadable module (assumed same as above if empty) |
| 15251 | module_cmds=$lt_module_cmds_F77 |
| 15252 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 15253 | |
| 15254 | # Commands to strip libraries. |
| 15255 | old_striplib=$lt_old_striplib |
| 15256 | striplib=$lt_striplib |
| 15257 | |
| 15258 | # Dependencies to place before the objects being linked to create a |
| 15259 | # shared library. |
| 15260 | predep_objects=$lt_predep_objects_F77 |
| 15261 | |
| 15262 | # Dependencies to place after the objects being linked to create a |
| 15263 | # shared library. |
| 15264 | postdep_objects=$lt_postdep_objects_F77 |
| 15265 | |
| 15266 | # Dependencies to place before the objects being linked to create a |
| 15267 | # shared library. |
| 15268 | predeps=$lt_predeps_F77 |
| 15269 | |
| 15270 | # Dependencies to place after the objects being linked to create a |
| 15271 | # shared library. |
| 15272 | postdeps=$lt_postdeps_F77 |
| 15273 | |
| 15274 | # The library search path used internally by the compiler when linking |
| 15275 | # a shared library. |
| 15276 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 15277 | |
| 15278 | # Method to check whether dependent libraries are shared objects. |
| 15279 | deplibs_check_method=$lt_deplibs_check_method |
| 15280 | |
| 15281 | # Command to use when deplibs_check_method == file_magic. |
| 15282 | file_magic_cmd=$lt_file_magic_cmd |
| 15283 | |
| 15284 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15285 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 15286 | |
| 15287 | # Flag that forces no undefined symbols. |
| 15288 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 15289 | |
| 15290 | # Commands used to finish a libtool library installation in a directory. |
| 15291 | finish_cmds=$lt_finish_cmds |
| 15292 | |
| 15293 | # Same as above, but a single script fragment to be evaled but not shown. |
| 15294 | finish_eval=$lt_finish_eval |
| 15295 | |
| 15296 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15297 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15298 | |
| 15299 | # Transform the output of nm in a proper C declaration |
| 15300 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15301 | |
| 15302 | # Transform the output of nm in a C name address pair |
| 15303 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15304 | |
| 15305 | # This is the shared library runtime path variable. |
| 15306 | runpath_var=$runpath_var |
| 15307 | |
| 15308 | # This is the shared library path variable. |
| 15309 | shlibpath_var=$shlibpath_var |
| 15310 | |
| 15311 | # Is shlibpath searched before the hard-coded library search path? |
| 15312 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15313 | |
| 15314 | # How to hardcode a shared library path into an executable. |
| 15315 | hardcode_action=$hardcode_action_F77 |
| 15316 | |
| 15317 | # Whether we should hardcode library paths into libraries. |
| 15318 | hardcode_into_libs=$hardcode_into_libs |
| 15319 | |
| 15320 | # Flag to hardcode \$libdir into a binary during linking. |
| 15321 | # This must work even if \$libdir does not exist. |
| 15322 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 15323 | |
| 15324 | # If ld is used when linking, flag to hardcode \$libdir into |
| 15325 | # a binary during linking. This must work even if \$libdir does |
| 15326 | # not exist. |
| 15327 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 15328 | |
| 15329 | # Whether we need a single -rpath flag with a separated argument. |
| 15330 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 15331 | |
| 15332 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 15333 | # resulting binary. |
| 15334 | hardcode_direct=$hardcode_direct_F77 |
| 15335 | |
| 15336 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 15337 | # resulting binary. |
| 15338 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 15339 | |
| 15340 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 15341 | # the resulting binary. |
| 15342 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 15343 | |
| 15344 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 15345 | # and all subsequent libraries and executables linked against it. |
| 15346 | hardcode_automatic=$hardcode_automatic_F77 |
| 15347 | |
| 15348 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15349 | # restored at relink time. |
| 15350 | variables_saved_for_relink="$variables_saved_for_relink" |
| 15351 | |
| 15352 | # Whether libtool must link a program against all its dependency libraries. |
| 15353 | link_all_deplibs=$link_all_deplibs_F77 |
| 15354 | |
| 15355 | # Compile-time system search path for libraries |
| 15356 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15357 | |
| 15358 | # Run-time system search path for libraries |
| 15359 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15360 | |
| 15361 | # Fix the shell variable \$srcfile for the compiler. |
| 15362 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 15363 | |
| 15364 | # Set to yes if exported symbols are required. |
| 15365 | always_export_symbols=$always_export_symbols_F77 |
| 15366 | |
| 15367 | # The commands to list exported symbols. |
| 15368 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 15369 | |
| 15370 | # The commands to extract the exported symbol list from a shared archive. |
| 15371 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15372 | |
| 15373 | # Symbols that should not be listed in the preloaded symbols. |
| 15374 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 15375 | |
| 15376 | # Symbols that must always be exported. |
| 15377 | include_expsyms=$lt_include_expsyms_F77 |
| 15378 | |
| 15379 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 15380 | |
| 15381 | __EOF__ |
| 15382 | |
| 15383 | |
| 15384 | else |
| 15385 | # If there is no Makefile yet, we rely on a make rule to execute |
| 15386 | # `config.status --recheck' to rerun these tests and create the |
| 15387 | # libtool script then. |
| 15388 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 15389 | if test -f "$ltmain_in"; then |
| 15390 | test -f Makefile && make "$ltmain" |
| 15391 | fi |
| 15392 | fi |
| 15393 | |
| 15394 | |
| 15395 | ac_ext=c |
| 15396 | ac_cpp='$CPP $CPPFLAGS' |
| 15397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15400 | |
| 15401 | CC="$lt_save_CC" |
| 15402 | |
| 15403 | else |
| 15404 | tagname="" |
| 15405 | fi |
| 15406 | ;; |
| 15407 | |
| 15408 | GCJ) |
| 15409 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 15410 | |
| 15411 | |
| 15412 | |
| 15413 | # Source file extension for Java test sources. |
| 15414 | ac_ext=java |
| 15415 | |
| 15416 | # Object file extension for compiled Java test sources. |
| 15417 | objext=o |
| 15418 | objext_GCJ=$objext |
| 15419 | |
| 15420 | # Code to be used in simple compile tests |
| 15421 | lt_simple_compile_test_code="class foo {}\n" |
| 15422 | |
| 15423 | # Code to be used in simple link tests |
| 15424 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 15425 | |
| 15426 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15427 | |
| 15428 | # If no C compiler was specified, use CC. |
| 15429 | LTCC=${LTCC-"$CC"} |
| 15430 | |
| 15431 | # Allow CC to be a program name with arguments. |
| 15432 | compiler=$CC |
| 15433 | |
| 15434 | |
| 15435 | # Allow CC to be a program name with arguments. |
| 15436 | lt_save_CC="$CC" |
| 15437 | CC=${GCJ-"gcj"} |
| 15438 | compiler=$CC |
| 15439 | compiler_GCJ=$CC |
| 15440 | |
| 15441 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 15442 | archive_cmds_need_lc_GCJ=no |
| 15443 | |
| 15444 | |
| 15445 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 15446 | |
| 15447 | if test "$GCC" = yes; then |
| 15448 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 15449 | |
| 15450 | |
| 15451 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 15452 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 15453 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 15454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15455 | else |
| 15456 | lt_cv_prog_compiler_rtti_exceptions=no |
| 15457 | ac_outfile=conftest.$ac_objext |
| 15458 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15459 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 15460 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15461 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15462 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15463 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15464 | # The option is referenced via a variable to avoid confusing sed. |
| 15465 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15466 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15467 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15468 | -e 's:$: $lt_compiler_flag:'` |
| 15469 | (eval echo "\"\$as_me:15469: $lt_compile\"" >&5) |
| 15470 | (eval "$lt_compile" 2>conftest.err) |
| 15471 | ac_status=$? |
| 15472 | cat conftest.err >&5 |
| 15473 | echo "$as_me:15473: \$? = $ac_status" >&5 |
| 15474 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15475 | # The compiler can only warn and ignore the option if not recognized |
| 15476 | # So say no if there are warnings |
| 15477 | if test ! -s conftest.err; then |
| 15478 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 15479 | fi |
| 15480 | fi |
| 15481 | $rm conftest* |
| 15482 | |
| 15483 | fi |
| 15484 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 15485 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 15486 | |
| 15487 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 15488 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 15489 | else |
| 15490 | : |
| 15491 | fi |
| 15492 | |
| 15493 | fi |
| 15494 | |
| 15495 | lt_prog_compiler_wl_GCJ= |
| 15496 | lt_prog_compiler_pic_GCJ= |
| 15497 | lt_prog_compiler_static_GCJ= |
| 15498 | |
| 15499 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 15500 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 15501 | |
| 15502 | if test "$GCC" = yes; then |
| 15503 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15504 | lt_prog_compiler_static_GCJ='-static' |
| 15505 | |
| 15506 | case $host_os in |
| 15507 | aix*) |
| 15508 | # All AIX code is PIC. |
| 15509 | if test "$host_cpu" = ia64; then |
| 15510 | # AIX 5 now supports IA64 processor |
| 15511 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15512 | fi |
| 15513 | ;; |
| 15514 | |
| 15515 | amigaos*) |
| 15516 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 15517 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 15518 | # like `-m68040'. |
| 15519 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 15520 | ;; |
| 15521 | |
| 15522 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 15523 | # PIC is the default for these OSes. |
| 15524 | ;; |
| 15525 | |
| 15526 | mingw* | pw32* | os2*) |
| 15527 | # This hack is so that the source file can tell whether it is being |
| 15528 | # built for inclusion in a dll (and should export symbols for example). |
| 15529 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15530 | ;; |
| 15531 | |
| 15532 | darwin* | rhapsody*) |
| 15533 | # PIC is the default on this platform |
| 15534 | # Common symbols not allowed in MH_DYLIB files |
| 15535 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 15536 | ;; |
| 15537 | |
| 15538 | msdosdjgpp*) |
| 15539 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 15540 | # on systems that don't support them. |
| 15541 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15542 | enable_shared=no |
| 15543 | ;; |
| 15544 | |
| 15545 | sysv4*MP*) |
| 15546 | if test -d /usr/nec; then |
| 15547 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 15548 | fi |
| 15549 | ;; |
| 15550 | |
| 15551 | hpux*) |
| 15552 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15553 | # not for PA HP-UX. |
| 15554 | case "$host_cpu" in |
| 15555 | hppa*64*|ia64*) |
| 15556 | # +Z the default |
| 15557 | ;; |
| 15558 | *) |
| 15559 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15560 | ;; |
| 15561 | esac |
| 15562 | ;; |
| 15563 | |
| 15564 | *) |
| 15565 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15566 | ;; |
| 15567 | esac |
| 15568 | else |
| 15569 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 15570 | case $host_os in |
| 15571 | aix*) |
| 15572 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15573 | if test "$host_cpu" = ia64; then |
| 15574 | # AIX 5 now supports IA64 processor |
| 15575 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15576 | else |
| 15577 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 15578 | fi |
| 15579 | ;; |
| 15580 | |
| 15581 | mingw* | pw32* | os2*) |
| 15582 | # This hack is so that the source file can tell whether it is being |
| 15583 | # built for inclusion in a dll (and should export symbols for example). |
| 15584 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15585 | ;; |
| 15586 | |
| 15587 | hpux9* | hpux10* | hpux11*) |
| 15588 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15589 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15590 | # not for PA HP-UX. |
| 15591 | case "$host_cpu" in |
| 15592 | hppa*64*|ia64*) |
| 15593 | # +Z the default |
| 15594 | ;; |
| 15595 | *) |
| 15596 | lt_prog_compiler_pic_GCJ='+Z' |
| 15597 | ;; |
| 15598 | esac |
| 15599 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 15600 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 15601 | ;; |
| 15602 | |
| 15603 | irix5* | irix6* | nonstopux*) |
| 15604 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15605 | # PIC (with -KPIC) is the default. |
| 15606 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15607 | ;; |
| 15608 | |
| 15609 | newsos6) |
| 15610 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15611 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15612 | ;; |
| 15613 | |
| 15614 | linux*) |
| 15615 | case $CC in |
| 15616 | icc* | ecc*) |
| 15617 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15618 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15619 | lt_prog_compiler_static_GCJ='-static' |
| 15620 | ;; |
| 15621 | ccc*) |
| 15622 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15623 | # All Alpha code is PIC. |
| 15624 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15625 | ;; |
| 15626 | esac |
| 15627 | ;; |
| 15628 | |
| 15629 | osf3* | osf4* | osf5*) |
| 15630 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15631 | # All OSF/1 code is PIC. |
| 15632 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15633 | ;; |
| 15634 | |
| 15635 | sco3.2v5*) |
| 15636 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 15637 | lt_prog_compiler_static_GCJ='-dn' |
| 15638 | ;; |
| 15639 | |
| 15640 | solaris*) |
| 15641 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15642 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15643 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15644 | ;; |
| 15645 | |
| 15646 | sunos4*) |
| 15647 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 15648 | lt_prog_compiler_pic_GCJ='-PIC' |
| 15649 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15650 | ;; |
| 15651 | |
| 15652 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 15653 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15654 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15655 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15656 | ;; |
| 15657 | |
| 15658 | sysv4*MP*) |
| 15659 | if test -d /usr/nec ;then |
| 15660 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 15661 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15662 | fi |
| 15663 | ;; |
| 15664 | |
| 15665 | uts4*) |
| 15666 | lt_prog_compiler_pic_GCJ='-pic' |
| 15667 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15668 | ;; |
| 15669 | |
| 15670 | *) |
| 15671 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15672 | ;; |
| 15673 | esac |
| 15674 | fi |
| 15675 | |
| 15676 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 15677 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 15678 | |
| 15679 | # |
| 15680 | # Check to make sure the PIC flag actually works. |
| 15681 | # |
| 15682 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 15683 | |
| 15684 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 15685 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 15686 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 15687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15688 | else |
| 15689 | lt_prog_compiler_pic_works_GCJ=no |
| 15690 | ac_outfile=conftest.$ac_objext |
| 15691 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15692 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 15693 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15694 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15695 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15696 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15697 | # The option is referenced via a variable to avoid confusing sed. |
| 15698 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15699 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15700 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15701 | -e 's:$: $lt_compiler_flag:'` |
| 15702 | (eval echo "\"\$as_me:15702: $lt_compile\"" >&5) |
| 15703 | (eval "$lt_compile" 2>conftest.err) |
| 15704 | ac_status=$? |
| 15705 | cat conftest.err >&5 |
| 15706 | echo "$as_me:15706: \$? = $ac_status" >&5 |
| 15707 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15708 | # The compiler can only warn and ignore the option if not recognized |
| 15709 | # So say no if there are warnings |
| 15710 | if test ! -s conftest.err; then |
| 15711 | lt_prog_compiler_pic_works_GCJ=yes |
| 15712 | fi |
| 15713 | fi |
| 15714 | $rm conftest* |
| 15715 | |
| 15716 | fi |
| 15717 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 15718 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 15719 | |
| 15720 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 15721 | case $lt_prog_compiler_pic_GCJ in |
| 15722 | "" | " "*) ;; |
| 15723 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 15724 | esac |
| 15725 | else |
| 15726 | lt_prog_compiler_pic_GCJ= |
| 15727 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15728 | fi |
| 15729 | |
| 15730 | fi |
| 15731 | case "$host_os" in |
| 15732 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15733 | *djgpp*) |
| 15734 | lt_prog_compiler_pic_GCJ= |
| 15735 | ;; |
| 15736 | *) |
| 15737 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 15738 | ;; |
| 15739 | esac |
| 15740 | |
| 15741 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15742 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 15743 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 15744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15745 | else |
| 15746 | lt_cv_prog_compiler_c_o_GCJ=no |
| 15747 | $rm -r conftest 2>/dev/null |
| 15748 | mkdir conftest |
| 15749 | cd conftest |
| 15750 | mkdir out |
| 15751 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15752 | |
| 15753 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15754 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15755 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15756 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15757 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15758 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15759 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15760 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15761 | -e 's:$: $lt_compiler_flag:'` |
| 15762 | (eval echo "\"\$as_me:15762: $lt_compile\"" >&5) |
| 15763 | (eval "$lt_compile" 2>out/conftest.err) |
| 15764 | ac_status=$? |
| 15765 | cat out/conftest.err >&5 |
| 15766 | echo "$as_me:15766: \$? = $ac_status" >&5 |
| 15767 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15768 | then |
| 15769 | # The compiler can only warn and ignore the option if not recognized |
| 15770 | # So say no if there are warnings |
| 15771 | if test ! -s out/conftest.err; then |
| 15772 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 15773 | fi |
| 15774 | fi |
| 15775 | chmod u+w . |
| 15776 | $rm conftest* |
| 15777 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15778 | # template instantiation |
| 15779 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15780 | $rm out/* && rmdir out |
| 15781 | cd .. |
| 15782 | rmdir conftest |
| 15783 | $rm conftest* |
| 15784 | |
| 15785 | fi |
| 15786 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 15787 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 15788 | |
| 15789 | |
| 15790 | hard_links="nottested" |
| 15791 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 15792 | # do not overwrite the value of need_locks provided by the user |
| 15793 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15794 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 15795 | hard_links=yes |
| 15796 | $rm conftest* |
| 15797 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15798 | touch conftest.a |
| 15799 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15800 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15801 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15802 | echo "${ECHO_T}$hard_links" >&6 |
| 15803 | if test "$hard_links" = no; then |
| 15804 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15805 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15806 | need_locks=warn |
| 15807 | fi |
| 15808 | else |
| 15809 | need_locks=no |
| 15810 | fi |
| 15811 | |
| 15812 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15813 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15814 | |
| 15815 | runpath_var= |
| 15816 | allow_undefined_flag_GCJ= |
| 15817 | enable_shared_with_static_runtimes_GCJ=no |
| 15818 | archive_cmds_GCJ= |
| 15819 | archive_expsym_cmds_GCJ= |
| 15820 | old_archive_From_new_cmds_GCJ= |
| 15821 | old_archive_from_expsyms_cmds_GCJ= |
| 15822 | export_dynamic_flag_spec_GCJ= |
| 15823 | whole_archive_flag_spec_GCJ= |
| 15824 | thread_safe_flag_spec_GCJ= |
| 15825 | hardcode_libdir_flag_spec_GCJ= |
| 15826 | hardcode_libdir_flag_spec_ld_GCJ= |
| 15827 | hardcode_libdir_separator_GCJ= |
| 15828 | hardcode_direct_GCJ=no |
| 15829 | hardcode_minus_L_GCJ=no |
| 15830 | hardcode_shlibpath_var_GCJ=unsupported |
| 15831 | link_all_deplibs_GCJ=unknown |
| 15832 | hardcode_automatic_GCJ=no |
| 15833 | module_cmds_GCJ= |
| 15834 | module_expsym_cmds_GCJ= |
| 15835 | always_export_symbols_GCJ=no |
| 15836 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15837 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15838 | # included in the symbol list |
| 15839 | include_expsyms_GCJ= |
| 15840 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15841 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15842 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15843 | # as well as any symbol that contains `d'. |
| 15844 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 15845 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15846 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15847 | # the symbol is explicitly referenced. Since portable code cannot |
| 15848 | # rely on this symbol name, it's probably fine to never include it in |
| 15849 | # preloaded symbol tables. |
| 15850 | extract_expsyms_cmds= |
| 15851 | |
| 15852 | case $host_os in |
| 15853 | cygwin* | mingw* | pw32*) |
| 15854 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15855 | # When not using gcc, we currently assume that we are using |
| 15856 | # Microsoft Visual C++. |
| 15857 | if test "$GCC" != yes; then |
| 15858 | with_gnu_ld=no |
| 15859 | fi |
| 15860 | ;; |
| 15861 | openbsd*) |
| 15862 | with_gnu_ld=no |
| 15863 | ;; |
| 15864 | esac |
| 15865 | |
| 15866 | ld_shlibs_GCJ=yes |
| 15867 | if test "$with_gnu_ld" = yes; then |
| 15868 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15869 | wlarc='${wl}' |
| 15870 | |
| 15871 | # See if GNU ld supports shared libraries. |
| 15872 | case $host_os in |
| 15873 | aix3* | aix4* | aix5*) |
| 15874 | # On AIX/PPC, the GNU linker is very broken |
| 15875 | if test "$host_cpu" != ia64; then |
| 15876 | ld_shlibs_GCJ=no |
| 15877 | cat <<EOF 1>&2 |
| 15878 | |
| 15879 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15880 | *** to be unable to reliably create shared libraries on AIX. |
| 15881 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15882 | *** really care for shared libraries, you may want to modify your PATH |
| 15883 | *** so that a non-GNU linker is found, and then restart. |
| 15884 | |
| 15885 | EOF |
| 15886 | fi |
| 15887 | ;; |
| 15888 | |
| 15889 | amigaos*) |
| 15890 | 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)' |
| 15891 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15892 | hardcode_minus_L_GCJ=yes |
| 15893 | |
| 15894 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15895 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15896 | # to version 4, is to share data among multiple programs linked |
| 15897 | # with the same dynamic library. Since this doesn't match the |
| 15898 | # behavior of shared libraries on other platforms, we can't use |
| 15899 | # them. |
| 15900 | ld_shlibs_GCJ=no |
| 15901 | ;; |
| 15902 | |
| 15903 | beos*) |
| 15904 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15905 | allow_undefined_flag_GCJ=unsupported |
| 15906 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15907 | # support --undefined. This deserves some investigation. FIXME |
| 15908 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15909 | else |
| 15910 | ld_shlibs_GCJ=no |
| 15911 | fi |
| 15912 | ;; |
| 15913 | |
| 15914 | cygwin* | mingw* | pw32*) |
| 15915 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 15916 | # as there is no search path for DLLs. |
| 15917 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15918 | allow_undefined_flag_GCJ=unsupported |
| 15919 | always_export_symbols_GCJ=no |
| 15920 | enable_shared_with_static_runtimes_GCJ=yes |
| 15921 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15922 | |
| 15923 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15924 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15925 | # If the export-symbols file already is a .def file (1st line |
| 15926 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15927 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15928 | cp $export_symbols $output_objdir/$soname.def; |
| 15929 | else |
| 15930 | echo EXPORTS > $output_objdir/$soname.def; |
| 15931 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15932 | fi~ |
| 15933 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15934 | else |
| 15935 | ld_shlibs=no |
| 15936 | fi |
| 15937 | ;; |
| 15938 | |
| 15939 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 15940 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15941 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15942 | wlarc= |
| 15943 | else |
| 15944 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15945 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15946 | fi |
| 15947 | ;; |
| 15948 | |
| 15949 | solaris* | sysv5*) |
| 15950 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15951 | ld_shlibs_GCJ=no |
| 15952 | cat <<EOF 1>&2 |
| 15953 | |
| 15954 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15955 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15956 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15957 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15958 | *** your PATH or compiler configuration so that the native linker is |
| 15959 | *** used, and then restart. |
| 15960 | |
| 15961 | EOF |
| 15962 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15963 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15964 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15965 | else |
| 15966 | ld_shlibs_GCJ=no |
| 15967 | fi |
| 15968 | ;; |
| 15969 | |
| 15970 | sunos4*) |
| 15971 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15972 | wlarc= |
| 15973 | hardcode_direct_GCJ=yes |
| 15974 | hardcode_shlibpath_var_GCJ=no |
| 15975 | ;; |
| 15976 | |
| 15977 | linux*) |
| 15978 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15979 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15980 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 15981 | supports_anon_versioning=no |
| 15982 | case `$LD -v 2>/dev/null` in |
| 15983 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15984 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15985 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15986 | *\ 2.11.*) ;; # other 2.11 versions |
| 15987 | *) supports_anon_versioning=yes ;; |
| 15988 | esac |
| 15989 | if test $supports_anon_versioning = yes; then |
| 15990 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15991 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15992 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15993 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15994 | else |
| 15995 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 15996 | fi |
| 15997 | link_all_deplibs_GCJ=no |
| 15998 | else |
| 15999 | ld_shlibs_GCJ=no |
| 16000 | fi |
| 16001 | ;; |
| 16002 | |
| 16003 | *) |
| 16004 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16005 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16006 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16007 | else |
| 16008 | ld_shlibs_GCJ=no |
| 16009 | fi |
| 16010 | ;; |
| 16011 | esac |
| 16012 | |
| 16013 | if test "$ld_shlibs_GCJ" = yes; then |
| 16014 | runpath_var=LD_RUN_PATH |
| 16015 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 16016 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 16017 | # ancient GNU ld didn't support --whole-archive et. al. |
| 16018 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 16019 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16020 | else |
| 16021 | whole_archive_flag_spec_GCJ= |
| 16022 | fi |
| 16023 | fi |
| 16024 | else |
| 16025 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 16026 | case $host_os in |
| 16027 | aix3*) |
| 16028 | allow_undefined_flag_GCJ=unsupported |
| 16029 | always_export_symbols_GCJ=yes |
| 16030 | 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' |
| 16031 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 16032 | # are no directories specified by -L. |
| 16033 | hardcode_minus_L_GCJ=yes |
| 16034 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 16035 | # Neither direct hardcoding nor static linking is supported with a |
| 16036 | # broken collect2. |
| 16037 | hardcode_direct_GCJ=unsupported |
| 16038 | fi |
| 16039 | ;; |
| 16040 | |
| 16041 | aix4* | aix5*) |
| 16042 | if test "$host_cpu" = ia64; then |
| 16043 | # On IA64, the linker does run time linking by default, so we don't |
| 16044 | # have to do anything special. |
| 16045 | aix_use_runtimelinking=no |
| 16046 | exp_sym_flag='-Bexport' |
| 16047 | no_entry_flag="" |
| 16048 | else |
| 16049 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16050 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16051 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 16052 | 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' |
| 16053 | else |
| 16054 | 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' |
| 16055 | fi |
| 16056 | aix_use_runtimelinking=no |
| 16057 | |
| 16058 | # Test if we are trying to use run time linking or normal |
| 16059 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 16060 | # need to do runtime linking. |
| 16061 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 16062 | for ld_flag in $LDFLAGS; do |
| 16063 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 16064 | aix_use_runtimelinking=yes |
| 16065 | break |
| 16066 | fi |
| 16067 | done |
| 16068 | esac |
| 16069 | |
| 16070 | exp_sym_flag='-bexport' |
| 16071 | no_entry_flag='-bnoentry' |
| 16072 | fi |
| 16073 | |
| 16074 | # When large executables or shared objects are built, AIX ld can |
| 16075 | # have problems creating the table of contents. If linking a library |
| 16076 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 16077 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 16078 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 16079 | |
| 16080 | archive_cmds_GCJ='' |
| 16081 | hardcode_direct_GCJ=yes |
| 16082 | hardcode_libdir_separator_GCJ=':' |
| 16083 | link_all_deplibs_GCJ=yes |
| 16084 | |
| 16085 | if test "$GCC" = yes; then |
| 16086 | case $host_os in aix4.012|aix4.012.*) |
| 16087 | # We only want to do this on AIX 4.2 and lower, the check |
| 16088 | # below for broken collect2 doesn't work under 4.3+ |
| 16089 | collect2name=`${CC} -print-prog-name=collect2` |
| 16090 | if test -f "$collect2name" && \ |
| 16091 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 16092 | then |
| 16093 | # We have reworked collect2 |
| 16094 | hardcode_direct_GCJ=yes |
| 16095 | else |
| 16096 | # We have old collect2 |
| 16097 | hardcode_direct_GCJ=unsupported |
| 16098 | # It fails to find uninstalled libraries when the uninstalled |
| 16099 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 16100 | # to unsupported forces relinking |
| 16101 | hardcode_minus_L_GCJ=yes |
| 16102 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16103 | hardcode_libdir_separator_GCJ= |
| 16104 | fi |
| 16105 | esac |
| 16106 | shared_flag='-shared' |
| 16107 | else |
| 16108 | # not using gcc |
| 16109 | if test "$host_cpu" = ia64; then |
| 16110 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 16111 | # chokes on -Wl,-G. The following line is correct: |
| 16112 | shared_flag='-G' |
| 16113 | else |
| 16114 | if test "$aix_use_runtimelinking" = yes; then |
| 16115 | shared_flag='${wl}-G' |
| 16116 | else |
| 16117 | shared_flag='${wl}-bM:SRE' |
| 16118 | fi |
| 16119 | fi |
| 16120 | fi |
| 16121 | |
| 16122 | # It seems that -bexpall does not export symbols beginning with |
| 16123 | # underscore (_), so it is better to generate a list of symbols to export. |
| 16124 | always_export_symbols_GCJ=yes |
| 16125 | if test "$aix_use_runtimelinking" = yes; then |
| 16126 | # Warning - without using the other runtime loading flags (-brtl), |
| 16127 | # -berok will link without error, but may produce a broken library. |
| 16128 | allow_undefined_flag_GCJ='-berok' |
| 16129 | # Determine the default libpath from the value encoded in an empty executable. |
| 16130 | cat >conftest.$ac_ext <<_ACEOF |
| 16131 | /* confdefs.h. */ |
| 16132 | _ACEOF |
| 16133 | cat confdefs.h >>conftest.$ac_ext |
| 16134 | cat >>conftest.$ac_ext <<_ACEOF |
| 16135 | /* end confdefs.h. */ |
| 16136 | |
| 16137 | int |
| 16138 | main () |
| 16139 | { |
| 16140 | |
| 16141 | ; |
| 16142 | return 0; |
| 16143 | } |
| 16144 | _ACEOF |
| 16145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16147 | (eval $ac_link) 2>conftest.er1 |
| 16148 | ac_status=$? |
| 16149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16150 | rm -f conftest.er1 |
| 16151 | cat conftest.err >&5 |
| 16152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16153 | (exit $ac_status); } && |
| 16154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16156 | (eval $ac_try) 2>&5 |
| 16157 | ac_status=$? |
| 16158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16159 | (exit $ac_status); }; } && |
| 16160 | { ac_try='test -s conftest$ac_exeext' |
| 16161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16162 | (eval $ac_try) 2>&5 |
| 16163 | ac_status=$? |
| 16164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16165 | (exit $ac_status); }; }; then |
| 16166 | |
| 16167 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16168 | }'` |
| 16169 | # Check for a 64-bit object if we didn't find anything. |
| 16170 | 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; } |
| 16171 | }'`; fi |
| 16172 | else |
| 16173 | echo "$as_me: failed program was:" >&5 |
| 16174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16175 | |
| 16176 | fi |
| 16177 | rm -f conftest.err conftest.$ac_objext \ |
| 16178 | conftest$ac_exeext conftest.$ac_ext |
| 16179 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16180 | |
| 16181 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16182 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 16183 | else |
| 16184 | if test "$host_cpu" = ia64; then |
| 16185 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 16186 | allow_undefined_flag_GCJ="-z nodefs" |
| 16187 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 16188 | else |
| 16189 | # Determine the default libpath from the value encoded in an empty executable. |
| 16190 | cat >conftest.$ac_ext <<_ACEOF |
| 16191 | /* confdefs.h. */ |
| 16192 | _ACEOF |
| 16193 | cat confdefs.h >>conftest.$ac_ext |
| 16194 | cat >>conftest.$ac_ext <<_ACEOF |
| 16195 | /* end confdefs.h. */ |
| 16196 | |
| 16197 | int |
| 16198 | main () |
| 16199 | { |
| 16200 | |
| 16201 | ; |
| 16202 | return 0; |
| 16203 | } |
| 16204 | _ACEOF |
| 16205 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16207 | (eval $ac_link) 2>conftest.er1 |
| 16208 | ac_status=$? |
| 16209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16210 | rm -f conftest.er1 |
| 16211 | cat conftest.err >&5 |
| 16212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16213 | (exit $ac_status); } && |
| 16214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16216 | (eval $ac_try) 2>&5 |
| 16217 | ac_status=$? |
| 16218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16219 | (exit $ac_status); }; } && |
| 16220 | { ac_try='test -s conftest$ac_exeext' |
| 16221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16222 | (eval $ac_try) 2>&5 |
| 16223 | ac_status=$? |
| 16224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16225 | (exit $ac_status); }; }; then |
| 16226 | |
| 16227 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16228 | }'` |
| 16229 | # Check for a 64-bit object if we didn't find anything. |
| 16230 | 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; } |
| 16231 | }'`; fi |
| 16232 | else |
| 16233 | echo "$as_me: failed program was:" >&5 |
| 16234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16235 | |
| 16236 | fi |
| 16237 | rm -f conftest.err conftest.$ac_objext \ |
| 16238 | conftest$ac_exeext conftest.$ac_ext |
| 16239 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16240 | |
| 16241 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16242 | # Warning - without using the other run time loading flags, |
| 16243 | # -berok will link without error, but may produce a broken library. |
| 16244 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 16245 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 16246 | # -bexpall does not export symbols beginning with underscore (_) |
| 16247 | always_export_symbols_GCJ=yes |
| 16248 | # Exported symbols can be pulled into shared objects from archives |
| 16249 | whole_archive_flag_spec_GCJ=' ' |
| 16250 | archive_cmds_need_lc_GCJ=yes |
| 16251 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 16252 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 16253 | fi |
| 16254 | fi |
| 16255 | ;; |
| 16256 | |
| 16257 | amigaos*) |
| 16258 | 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)' |
| 16259 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16260 | hardcode_minus_L_GCJ=yes |
| 16261 | # see comment about different semantics on the GNU ld section |
| 16262 | ld_shlibs_GCJ=no |
| 16263 | ;; |
| 16264 | |
| 16265 | bsdi4*) |
| 16266 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 16267 | ;; |
| 16268 | |
| 16269 | cygwin* | mingw* | pw32*) |
| 16270 | # When not using gcc, we currently assume that we are using |
| 16271 | # Microsoft Visual C++. |
| 16272 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 16273 | # no search path for DLLs. |
| 16274 | hardcode_libdir_flag_spec_GCJ=' ' |
| 16275 | allow_undefined_flag_GCJ=unsupported |
| 16276 | # Tell ltmain to make .lib files, not .a files. |
| 16277 | libext=lib |
| 16278 | # Tell ltmain to make .dll files, not .so files. |
| 16279 | shrext_cmds=".dll" |
| 16280 | # FIXME: Setting linknames here is a bad hack. |
| 16281 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 16282 | # The linker will automatically build a .lib file if we build a DLL. |
| 16283 | old_archive_From_new_cmds_GCJ='true' |
| 16284 | # FIXME: Should let the user specify the lib program. |
| 16285 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 16286 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 16287 | enable_shared_with_static_runtimes_GCJ=yes |
| 16288 | ;; |
| 16289 | |
| 16290 | darwin* | rhapsody*) |
| 16291 | if test "$GXX" = yes ; then |
| 16292 | archive_cmds_need_lc_GCJ=no |
| 16293 | case "$host_os" in |
| 16294 | rhapsody* | darwin1.[012]) |
| 16295 | allow_undefined_flag_GCJ='-undefined suppress' |
| 16296 | ;; |
| 16297 | *) # Darwin 1.3 on |
| 16298 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 16299 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 16300 | else |
| 16301 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 16302 | 10.[012]) |
| 16303 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 16304 | ;; |
| 16305 | 10.*) |
| 16306 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
| 16307 | ;; |
| 16308 | esac |
| 16309 | fi |
| 16310 | ;; |
| 16311 | esac |
| 16312 | lt_int_apple_cc_single_mod=no |
| 16313 | output_verbose_link_cmd='echo' |
| 16314 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 16315 | lt_int_apple_cc_single_mod=yes |
| 16316 | fi |
| 16317 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 16318 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 16319 | else |
| 16320 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 16321 | fi |
| 16322 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 16323 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 16324 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 16325 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 16326 | else |
| 16327 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 16328 | fi |
| 16329 | 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}' |
| 16330 | hardcode_direct_GCJ=no |
| 16331 | hardcode_automatic_GCJ=yes |
| 16332 | hardcode_shlibpath_var_GCJ=unsupported |
| 16333 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 16334 | link_all_deplibs_GCJ=yes |
| 16335 | else |
| 16336 | ld_shlibs_GCJ=no |
| 16337 | fi |
| 16338 | ;; |
| 16339 | |
| 16340 | dgux*) |
| 16341 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16342 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16343 | hardcode_shlibpath_var_GCJ=no |
| 16344 | ;; |
| 16345 | |
| 16346 | freebsd1*) |
| 16347 | ld_shlibs_GCJ=no |
| 16348 | ;; |
| 16349 | |
| 16350 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 16351 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 16352 | # does not break anything, and helps significantly (at the cost of a little |
| 16353 | # extra space). |
| 16354 | freebsd2.2*) |
| 16355 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 16356 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16357 | hardcode_direct_GCJ=yes |
| 16358 | hardcode_shlibpath_var_GCJ=no |
| 16359 | ;; |
| 16360 | |
| 16361 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 16362 | freebsd2*) |
| 16363 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16364 | hardcode_direct_GCJ=yes |
| 16365 | hardcode_minus_L_GCJ=yes |
| 16366 | hardcode_shlibpath_var_GCJ=no |
| 16367 | ;; |
| 16368 | |
| 16369 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 16370 | freebsd* | kfreebsd*-gnu) |
| 16371 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 16372 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16373 | hardcode_direct_GCJ=yes |
| 16374 | hardcode_shlibpath_var_GCJ=no |
| 16375 | ;; |
| 16376 | |
| 16377 | hpux9*) |
| 16378 | if test "$GCC" = yes; then |
| 16379 | 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' |
| 16380 | else |
| 16381 | 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' |
| 16382 | fi |
| 16383 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16384 | hardcode_libdir_separator_GCJ=: |
| 16385 | hardcode_direct_GCJ=yes |
| 16386 | |
| 16387 | # hardcode_minus_L: Not really in the search PATH, |
| 16388 | # but as the default location of the library. |
| 16389 | hardcode_minus_L_GCJ=yes |
| 16390 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16391 | ;; |
| 16392 | |
| 16393 | hpux10* | hpux11*) |
| 16394 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 16395 | case "$host_cpu" in |
| 16396 | hppa*64*|ia64*) |
| 16397 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16398 | ;; |
| 16399 | *) |
| 16400 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16401 | ;; |
| 16402 | esac |
| 16403 | else |
| 16404 | case "$host_cpu" in |
| 16405 | hppa*64*|ia64*) |
| 16406 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16407 | ;; |
| 16408 | *) |
| 16409 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 16410 | ;; |
| 16411 | esac |
| 16412 | fi |
| 16413 | if test "$with_gnu_ld" = no; then |
| 16414 | case "$host_cpu" in |
| 16415 | hppa*64*) |
| 16416 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16417 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 16418 | hardcode_libdir_separator_GCJ=: |
| 16419 | hardcode_direct_GCJ=no |
| 16420 | hardcode_shlibpath_var_GCJ=no |
| 16421 | ;; |
| 16422 | ia64*) |
| 16423 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16424 | hardcode_direct_GCJ=no |
| 16425 | hardcode_shlibpath_var_GCJ=no |
| 16426 | |
| 16427 | # hardcode_minus_L: Not really in the search PATH, |
| 16428 | # but as the default location of the library. |
| 16429 | hardcode_minus_L_GCJ=yes |
| 16430 | ;; |
| 16431 | *) |
| 16432 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16433 | hardcode_libdir_separator_GCJ=: |
| 16434 | hardcode_direct_GCJ=yes |
| 16435 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16436 | |
| 16437 | # hardcode_minus_L: Not really in the search PATH, |
| 16438 | # but as the default location of the library. |
| 16439 | hardcode_minus_L_GCJ=yes |
| 16440 | ;; |
| 16441 | esac |
| 16442 | fi |
| 16443 | ;; |
| 16444 | |
| 16445 | irix5* | irix6* | nonstopux*) |
| 16446 | if test "$GCC" = yes; then |
| 16447 | 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' |
| 16448 | else |
| 16449 | 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' |
| 16450 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 16451 | fi |
| 16452 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16453 | hardcode_libdir_separator_GCJ=: |
| 16454 | link_all_deplibs_GCJ=yes |
| 16455 | ;; |
| 16456 | |
| 16457 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 16458 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16459 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16460 | else |
| 16461 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16462 | fi |
| 16463 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16464 | hardcode_direct_GCJ=yes |
| 16465 | hardcode_shlibpath_var_GCJ=no |
| 16466 | ;; |
| 16467 | |
| 16468 | newsos6) |
| 16469 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16470 | hardcode_direct_GCJ=yes |
| 16471 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16472 | hardcode_libdir_separator_GCJ=: |
| 16473 | hardcode_shlibpath_var_GCJ=no |
| 16474 | ;; |
| 16475 | |
| 16476 | openbsd*) |
| 16477 | hardcode_direct_GCJ=yes |
| 16478 | hardcode_shlibpath_var_GCJ=no |
| 16479 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16480 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16481 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16482 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16483 | else |
| 16484 | case $host_os in |
| 16485 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16486 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16487 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16488 | ;; |
| 16489 | *) |
| 16490 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16491 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16492 | ;; |
| 16493 | esac |
| 16494 | fi |
| 16495 | ;; |
| 16496 | |
| 16497 | os2*) |
| 16498 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16499 | hardcode_minus_L_GCJ=yes |
| 16500 | allow_undefined_flag_GCJ=unsupported |
| 16501 | 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' |
| 16502 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16503 | ;; |
| 16504 | |
| 16505 | osf3*) |
| 16506 | if test "$GCC" = yes; then |
| 16507 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16508 | 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' |
| 16509 | else |
| 16510 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16511 | 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' |
| 16512 | fi |
| 16513 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16514 | hardcode_libdir_separator_GCJ=: |
| 16515 | ;; |
| 16516 | |
| 16517 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16518 | if test "$GCC" = yes; then |
| 16519 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16520 | 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' |
| 16521 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16522 | else |
| 16523 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16524 | 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' |
| 16525 | 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~ |
| 16526 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 16527 | |
| 16528 | # Both c and cxx compiler support -rpath directly |
| 16529 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 16530 | fi |
| 16531 | hardcode_libdir_separator_GCJ=: |
| 16532 | ;; |
| 16533 | |
| 16534 | sco3.2v5*) |
| 16535 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16536 | hardcode_shlibpath_var_GCJ=no |
| 16537 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 16538 | runpath_var=LD_RUN_PATH |
| 16539 | hardcode_runpath_var=yes |
| 16540 | ;; |
| 16541 | |
| 16542 | solaris*) |
| 16543 | no_undefined_flag_GCJ=' -z text' |
| 16544 | if test "$GCC" = yes; then |
| 16545 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16546 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16547 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 16548 | else |
| 16549 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16550 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16551 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 16552 | fi |
| 16553 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16554 | hardcode_shlibpath_var_GCJ=no |
| 16555 | case $host_os in |
| 16556 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 16557 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16558 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 16559 | esac |
| 16560 | link_all_deplibs_GCJ=yes |
| 16561 | ;; |
| 16562 | |
| 16563 | sunos4*) |
| 16564 | if test "x$host_vendor" = xsequent; then |
| 16565 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16566 | # files that make .init and .fini sections work. |
| 16567 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16568 | else |
| 16569 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16570 | fi |
| 16571 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16572 | hardcode_direct_GCJ=yes |
| 16573 | hardcode_minus_L_GCJ=yes |
| 16574 | hardcode_shlibpath_var_GCJ=no |
| 16575 | ;; |
| 16576 | |
| 16577 | sysv4) |
| 16578 | case $host_vendor in |
| 16579 | sni) |
| 16580 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16581 | hardcode_direct_GCJ=yes # is this really true??? |
| 16582 | ;; |
| 16583 | siemens) |
| 16584 | ## LD is ld it makes a PLAMLIB |
| 16585 | ## CC just makes a GrossModule. |
| 16586 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16587 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 16588 | hardcode_direct_GCJ=no |
| 16589 | ;; |
| 16590 | motorola) |
| 16591 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16592 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 16593 | ;; |
| 16594 | esac |
| 16595 | runpath_var='LD_RUN_PATH' |
| 16596 | hardcode_shlibpath_var_GCJ=no |
| 16597 | ;; |
| 16598 | |
| 16599 | sysv4.3*) |
| 16600 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16601 | hardcode_shlibpath_var_GCJ=no |
| 16602 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 16603 | ;; |
| 16604 | |
| 16605 | sysv4*MP*) |
| 16606 | if test -d /usr/nec; then |
| 16607 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16608 | hardcode_shlibpath_var_GCJ=no |
| 16609 | runpath_var=LD_RUN_PATH |
| 16610 | hardcode_runpath_var=yes |
| 16611 | ld_shlibs_GCJ=yes |
| 16612 | fi |
| 16613 | ;; |
| 16614 | |
| 16615 | sysv4.2uw2*) |
| 16616 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16617 | hardcode_direct_GCJ=yes |
| 16618 | hardcode_minus_L_GCJ=no |
| 16619 | hardcode_shlibpath_var_GCJ=no |
| 16620 | hardcode_runpath_var=yes |
| 16621 | runpath_var=LD_RUN_PATH |
| 16622 | ;; |
| 16623 | |
| 16624 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 16625 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 16626 | if test "$GCC" = yes; then |
| 16627 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16628 | else |
| 16629 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16630 | fi |
| 16631 | runpath_var='LD_RUN_PATH' |
| 16632 | hardcode_shlibpath_var_GCJ=no |
| 16633 | ;; |
| 16634 | |
| 16635 | sysv5*) |
| 16636 | no_undefined_flag_GCJ=' -z text' |
| 16637 | # $CC -shared without GNU ld will not create a library from C++ |
| 16638 | # object files and a static libstdc++, better avoid it by now |
| 16639 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16640 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16641 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 16642 | hardcode_libdir_flag_spec_GCJ= |
| 16643 | hardcode_shlibpath_var_GCJ=no |
| 16644 | runpath_var='LD_RUN_PATH' |
| 16645 | ;; |
| 16646 | |
| 16647 | uts4*) |
| 16648 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16649 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16650 | hardcode_shlibpath_var_GCJ=no |
| 16651 | ;; |
| 16652 | |
| 16653 | *) |
| 16654 | ld_shlibs_GCJ=no |
| 16655 | ;; |
| 16656 | esac |
| 16657 | fi |
| 16658 | |
| 16659 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 16660 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 16661 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 16662 | |
| 16663 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16664 | if test "$GCC" = yes; then |
| 16665 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16666 | fi |
| 16667 | |
| 16668 | # |
| 16669 | # Do we need to explicitly link libc? |
| 16670 | # |
| 16671 | case "x$archive_cmds_need_lc_GCJ" in |
| 16672 | x|xyes) |
| 16673 | # Assume -lc should be added |
| 16674 | archive_cmds_need_lc_GCJ=yes |
| 16675 | |
| 16676 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16677 | case $archive_cmds_GCJ in |
| 16678 | *'~'*) |
| 16679 | # FIXME: we may have to deal with multi-command sequences. |
| 16680 | ;; |
| 16681 | '$CC '*) |
| 16682 | # Test whether the compiler implicitly links with -lc since on some |
| 16683 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16684 | # to ld, don't add -lc before -lgcc. |
| 16685 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16686 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16687 | $rm conftest* |
| 16688 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16689 | |
| 16690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16691 | (eval $ac_compile) 2>&5 |
| 16692 | ac_status=$? |
| 16693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16694 | (exit $ac_status); } 2>conftest.err; then |
| 16695 | soname=conftest |
| 16696 | lib=conftest |
| 16697 | libobjs=conftest.$ac_objext |
| 16698 | deplibs= |
| 16699 | wl=$lt_prog_compiler_wl_GCJ |
| 16700 | compiler_flags=-v |
| 16701 | linker_flags=-v |
| 16702 | verstring= |
| 16703 | output_objdir=. |
| 16704 | libname=conftest |
| 16705 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 16706 | allow_undefined_flag_GCJ= |
| 16707 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16708 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16709 | ac_status=$? |
| 16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16711 | (exit $ac_status); } |
| 16712 | then |
| 16713 | archive_cmds_need_lc_GCJ=no |
| 16714 | else |
| 16715 | archive_cmds_need_lc_GCJ=yes |
| 16716 | fi |
| 16717 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 16718 | else |
| 16719 | cat conftest.err 1>&5 |
| 16720 | fi |
| 16721 | $rm conftest* |
| 16722 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 16723 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 16724 | ;; |
| 16725 | esac |
| 16726 | fi |
| 16727 | ;; |
| 16728 | esac |
| 16729 | |
| 16730 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16731 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16732 | library_names_spec= |
| 16733 | libname_spec='lib$name' |
| 16734 | soname_spec= |
| 16735 | shrext_cmds=".so" |
| 16736 | postinstall_cmds= |
| 16737 | postuninstall_cmds= |
| 16738 | finish_cmds= |
| 16739 | finish_eval= |
| 16740 | shlibpath_var= |
| 16741 | shlibpath_overrides_runpath=unknown |
| 16742 | version_type=none |
| 16743 | dynamic_linker="$host_os ld.so" |
| 16744 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16745 | if test "$GCC" = yes; then |
| 16746 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16747 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16748 | # if the path contains ";" then we assume it to be the separator |
| 16749 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16750 | # assumed that no part of a normal pathname contains ";" but that should |
| 16751 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16752 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16753 | else |
| 16754 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16755 | fi |
| 16756 | else |
| 16757 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16758 | fi |
| 16759 | need_lib_prefix=unknown |
| 16760 | hardcode_into_libs=no |
| 16761 | |
| 16762 | # when you set need_version to no, make sure it does not cause -set_version |
| 16763 | # flags to be left without arguments |
| 16764 | need_version=unknown |
| 16765 | |
| 16766 | case $host_os in |
| 16767 | aix3*) |
| 16768 | version_type=linux |
| 16769 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16770 | shlibpath_var=LIBPATH |
| 16771 | |
| 16772 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16773 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16774 | ;; |
| 16775 | |
| 16776 | aix4* | aix5*) |
| 16777 | version_type=linux |
| 16778 | need_lib_prefix=no |
| 16779 | need_version=no |
| 16780 | hardcode_into_libs=yes |
| 16781 | if test "$host_cpu" = ia64; then |
| 16782 | # AIX 5 supports IA64 |
| 16783 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16784 | shlibpath_var=LD_LIBRARY_PATH |
| 16785 | else |
| 16786 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16787 | # for dependence libraries. The import file would start with |
| 16788 | # the line `#! .'. This would cause the generated library to |
| 16789 | # depend on `.', always an invalid library. This was fixed in |
| 16790 | # development snapshots of GCC prior to 3.0. |
| 16791 | case $host_os in |
| 16792 | aix4 | aix4.[01] | aix4.[01].*) |
| 16793 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16794 | echo ' yes ' |
| 16795 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16796 | : |
| 16797 | else |
| 16798 | can_build_shared=no |
| 16799 | fi |
| 16800 | ;; |
| 16801 | esac |
| 16802 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16803 | # soname into executable. Probably we can add versioning support to |
| 16804 | # collect2, so additional links can be useful in future. |
| 16805 | if test "$aix_use_runtimelinking" = yes; then |
| 16806 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16807 | # instead of lib<name>.a to let people know that these are not |
| 16808 | # typical AIX shared libraries. |
| 16809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16810 | else |
| 16811 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16812 | # and later when we are not doing run time linking. |
| 16813 | library_names_spec='${libname}${release}.a $libname.a' |
| 16814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16815 | fi |
| 16816 | shlibpath_var=LIBPATH |
| 16817 | fi |
| 16818 | ;; |
| 16819 | |
| 16820 | amigaos*) |
| 16821 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16822 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16823 | 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' |
| 16824 | ;; |
| 16825 | |
| 16826 | beos*) |
| 16827 | library_names_spec='${libname}${shared_ext}' |
| 16828 | dynamic_linker="$host_os ld.so" |
| 16829 | shlibpath_var=LIBRARY_PATH |
| 16830 | ;; |
| 16831 | |
| 16832 | bsdi4*) |
| 16833 | version_type=linux |
| 16834 | need_version=no |
| 16835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16836 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16837 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16838 | shlibpath_var=LD_LIBRARY_PATH |
| 16839 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16840 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16841 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16842 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16843 | # libtool to hard-code these into programs |
| 16844 | ;; |
| 16845 | |
| 16846 | cygwin* | mingw* | pw32*) |
| 16847 | version_type=windows |
| 16848 | shrext_cmds=".dll" |
| 16849 | need_version=no |
| 16850 | need_lib_prefix=no |
| 16851 | |
| 16852 | case $GCC,$host_os in |
| 16853 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16854 | library_names_spec='$libname.dll.a' |
| 16855 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16856 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16857 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16858 | dldir=$destdir/`dirname \$dlpath`~ |
| 16859 | test -d \$dldir || mkdir -p \$dldir~ |
| 16860 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16861 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16862 | dlpath=$dir/\$dldll~ |
| 16863 | $rm \$dlpath' |
| 16864 | shlibpath_overrides_runpath=yes |
| 16865 | |
| 16866 | case $host_os in |
| 16867 | cygwin*) |
| 16868 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16869 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16870 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 16871 | ;; |
| 16872 | mingw*) |
| 16873 | # MinGW DLLs use traditional 'lib' prefix |
| 16874 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16875 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16876 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16877 | # It is most probably a Windows format PATH printed by |
| 16878 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16879 | # path with ; separators, and with drive letters. We can handle the |
| 16880 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16881 | # especially as we might pass files found there to a mingw objdump, |
| 16882 | # which wouldn't understand a cygwinified path. Ahh. |
| 16883 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16884 | else |
| 16885 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16886 | fi |
| 16887 | ;; |
| 16888 | pw32*) |
| 16889 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16890 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16891 | ;; |
| 16892 | esac |
| 16893 | ;; |
| 16894 | |
| 16895 | *) |
| 16896 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16897 | ;; |
| 16898 | esac |
| 16899 | dynamic_linker='Win32 ld.exe' |
| 16900 | # FIXME: first we should search . and the directory the executable is in |
| 16901 | shlibpath_var=PATH |
| 16902 | ;; |
| 16903 | |
| 16904 | darwin* | rhapsody*) |
| 16905 | dynamic_linker="$host_os dyld" |
| 16906 | version_type=darwin |
| 16907 | need_lib_prefix=no |
| 16908 | need_version=no |
| 16909 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16910 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16911 | shlibpath_overrides_runpath=yes |
| 16912 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16913 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 16914 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 16915 | if test "$GCC" = yes; then |
| 16916 | 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"` |
| 16917 | else |
| 16918 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 16919 | fi |
| 16920 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16921 | ;; |
| 16922 | |
| 16923 | dgux*) |
| 16924 | version_type=linux |
| 16925 | need_lib_prefix=no |
| 16926 | need_version=no |
| 16927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16928 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16929 | shlibpath_var=LD_LIBRARY_PATH |
| 16930 | ;; |
| 16931 | |
| 16932 | freebsd1*) |
| 16933 | dynamic_linker=no |
| 16934 | ;; |
| 16935 | |
| 16936 | kfreebsd*-gnu) |
| 16937 | version_type=linux |
| 16938 | need_lib_prefix=no |
| 16939 | need_version=no |
| 16940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16941 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16942 | shlibpath_var=LD_LIBRARY_PATH |
| 16943 | shlibpath_overrides_runpath=no |
| 16944 | hardcode_into_libs=yes |
| 16945 | dynamic_linker='GNU ld.so' |
| 16946 | ;; |
| 16947 | |
| 16948 | freebsd*) |
| 16949 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16950 | version_type=freebsd-$objformat |
| 16951 | case $version_type in |
| 16952 | freebsd-elf*) |
| 16953 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16954 | need_version=no |
| 16955 | need_lib_prefix=no |
| 16956 | ;; |
| 16957 | freebsd-*) |
| 16958 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16959 | need_version=yes |
| 16960 | ;; |
| 16961 | esac |
| 16962 | shlibpath_var=LD_LIBRARY_PATH |
| 16963 | case $host_os in |
| 16964 | freebsd2*) |
| 16965 | shlibpath_overrides_runpath=yes |
| 16966 | ;; |
| 16967 | freebsd3.01* | freebsdelf3.01*) |
| 16968 | shlibpath_overrides_runpath=yes |
| 16969 | hardcode_into_libs=yes |
| 16970 | ;; |
| 16971 | *) # from 3.2 on |
| 16972 | shlibpath_overrides_runpath=no |
| 16973 | hardcode_into_libs=yes |
| 16974 | ;; |
| 16975 | esac |
| 16976 | ;; |
| 16977 | |
| 16978 | gnu*) |
| 16979 | version_type=linux |
| 16980 | need_lib_prefix=no |
| 16981 | need_version=no |
| 16982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16983 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16984 | shlibpath_var=LD_LIBRARY_PATH |
| 16985 | hardcode_into_libs=yes |
| 16986 | ;; |
| 16987 | |
| 16988 | hpux9* | hpux10* | hpux11*) |
| 16989 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16990 | # link against other versions. |
| 16991 | version_type=sunos |
| 16992 | need_lib_prefix=no |
| 16993 | need_version=no |
| 16994 | case "$host_cpu" in |
| 16995 | ia64*) |
| 16996 | shrext_cmds='.so' |
| 16997 | hardcode_into_libs=yes |
| 16998 | dynamic_linker="$host_os dld.so" |
| 16999 | shlibpath_var=LD_LIBRARY_PATH |
| 17000 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17002 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17003 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17004 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17005 | else |
| 17006 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17007 | fi |
| 17008 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17009 | ;; |
| 17010 | hppa*64*) |
| 17011 | shrext_cmds='.sl' |
| 17012 | hardcode_into_libs=yes |
| 17013 | dynamic_linker="$host_os dld.sl" |
| 17014 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17015 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17016 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17017 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17018 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17019 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17020 | ;; |
| 17021 | *) |
| 17022 | shrext_cmds='.sl' |
| 17023 | dynamic_linker="$host_os dld.sl" |
| 17024 | shlibpath_var=SHLIB_PATH |
| 17025 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17027 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17028 | ;; |
| 17029 | esac |
| 17030 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17031 | postinstall_cmds='chmod 555 $lib' |
| 17032 | ;; |
| 17033 | |
| 17034 | irix5* | irix6* | nonstopux*) |
| 17035 | case $host_os in |
| 17036 | nonstopux*) version_type=nonstopux ;; |
| 17037 | *) |
| 17038 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17039 | version_type=linux |
| 17040 | else |
| 17041 | version_type=irix |
| 17042 | fi ;; |
| 17043 | esac |
| 17044 | need_lib_prefix=no |
| 17045 | need_version=no |
| 17046 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17048 | case $host_os in |
| 17049 | irix5* | nonstopux*) |
| 17050 | libsuff= shlibsuff= |
| 17051 | ;; |
| 17052 | *) |
| 17053 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17054 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17055 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17056 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17057 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17058 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17059 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17060 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17061 | esac |
| 17062 | ;; |
| 17063 | esac |
| 17064 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17065 | shlibpath_overrides_runpath=no |
| 17066 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17067 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17068 | hardcode_into_libs=yes |
| 17069 | ;; |
| 17070 | |
| 17071 | # No shared lib support for Linux oldld, aout, or coff. |
| 17072 | linux*oldld* | linux*aout* | linux*coff*) |
| 17073 | dynamic_linker=no |
| 17074 | ;; |
| 17075 | |
| 17076 | # This must be Linux ELF. |
| 17077 | linux*) |
| 17078 | version_type=linux |
| 17079 | need_lib_prefix=no |
| 17080 | need_version=no |
| 17081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17082 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17083 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17084 | shlibpath_var=LD_LIBRARY_PATH |
| 17085 | shlibpath_overrides_runpath=no |
| 17086 | # This implies no fast_install, which is unacceptable. |
| 17087 | # Some rework will be needed to allow for fast_install |
| 17088 | # before this can be enabled. |
| 17089 | hardcode_into_libs=yes |
| 17090 | |
| 17091 | # Append ld.so.conf contents to the search path |
| 17092 | if test -f /etc/ld.so.conf; then |
| 17093 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 17094 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17095 | fi |
| 17096 | |
| 17097 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17098 | # powerpc, because MkLinux only supported shared libraries with the |
| 17099 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17100 | # most powerpc-linux boxes support dynamic linking these days and |
| 17101 | # people can always --disable-shared, the test was removed, and we |
| 17102 | # assume the GNU/Linux dynamic linker is in use. |
| 17103 | dynamic_linker='GNU/Linux ld.so' |
| 17104 | ;; |
| 17105 | |
| 17106 | netbsdelf*-gnu) |
| 17107 | version_type=linux |
| 17108 | need_lib_prefix=no |
| 17109 | need_version=no |
| 17110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17112 | shlibpath_var=LD_LIBRARY_PATH |
| 17113 | shlibpath_overrides_runpath=no |
| 17114 | hardcode_into_libs=yes |
| 17115 | dynamic_linker='NetBSD ld.elf_so' |
| 17116 | ;; |
| 17117 | |
| 17118 | knetbsd*-gnu) |
| 17119 | version_type=linux |
| 17120 | need_lib_prefix=no |
| 17121 | need_version=no |
| 17122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17123 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17124 | shlibpath_var=LD_LIBRARY_PATH |
| 17125 | shlibpath_overrides_runpath=no |
| 17126 | hardcode_into_libs=yes |
| 17127 | dynamic_linker='GNU ld.so' |
| 17128 | ;; |
| 17129 | |
| 17130 | netbsd*) |
| 17131 | version_type=sunos |
| 17132 | need_lib_prefix=no |
| 17133 | need_version=no |
| 17134 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17136 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17137 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17138 | else |
| 17139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17140 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17141 | dynamic_linker='NetBSD ld.elf_so' |
| 17142 | fi |
| 17143 | shlibpath_var=LD_LIBRARY_PATH |
| 17144 | shlibpath_overrides_runpath=yes |
| 17145 | hardcode_into_libs=yes |
| 17146 | ;; |
| 17147 | |
| 17148 | newsos6) |
| 17149 | version_type=linux |
| 17150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17151 | shlibpath_var=LD_LIBRARY_PATH |
| 17152 | shlibpath_overrides_runpath=yes |
| 17153 | ;; |
| 17154 | |
| 17155 | nto-qnx*) |
| 17156 | version_type=linux |
| 17157 | need_lib_prefix=no |
| 17158 | need_version=no |
| 17159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17160 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17161 | shlibpath_var=LD_LIBRARY_PATH |
| 17162 | shlibpath_overrides_runpath=yes |
| 17163 | ;; |
| 17164 | |
| 17165 | openbsd*) |
| 17166 | version_type=sunos |
| 17167 | need_lib_prefix=no |
| 17168 | need_version=yes |
| 17169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17170 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17171 | shlibpath_var=LD_LIBRARY_PATH |
| 17172 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17173 | case $host_os in |
| 17174 | openbsd2.[89] | openbsd2.[89].*) |
| 17175 | shlibpath_overrides_runpath=no |
| 17176 | ;; |
| 17177 | *) |
| 17178 | shlibpath_overrides_runpath=yes |
| 17179 | ;; |
| 17180 | esac |
| 17181 | else |
| 17182 | shlibpath_overrides_runpath=yes |
| 17183 | fi |
| 17184 | ;; |
| 17185 | |
| 17186 | os2*) |
| 17187 | libname_spec='$name' |
| 17188 | shrext_cmds=".dll" |
| 17189 | need_lib_prefix=no |
| 17190 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17191 | dynamic_linker='OS/2 ld.exe' |
| 17192 | shlibpath_var=LIBPATH |
| 17193 | ;; |
| 17194 | |
| 17195 | osf3* | osf4* | osf5*) |
| 17196 | version_type=osf |
| 17197 | need_lib_prefix=no |
| 17198 | need_version=no |
| 17199 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17201 | shlibpath_var=LD_LIBRARY_PATH |
| 17202 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17203 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17204 | ;; |
| 17205 | |
| 17206 | sco3.2v5*) |
| 17207 | version_type=osf |
| 17208 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17210 | shlibpath_var=LD_LIBRARY_PATH |
| 17211 | ;; |
| 17212 | |
| 17213 | solaris*) |
| 17214 | version_type=linux |
| 17215 | need_lib_prefix=no |
| 17216 | need_version=no |
| 17217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17218 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17219 | shlibpath_var=LD_LIBRARY_PATH |
| 17220 | shlibpath_overrides_runpath=yes |
| 17221 | hardcode_into_libs=yes |
| 17222 | # ldd complains unless libraries are executable |
| 17223 | postinstall_cmds='chmod +x $lib' |
| 17224 | ;; |
| 17225 | |
| 17226 | sunos4*) |
| 17227 | version_type=sunos |
| 17228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17229 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17230 | shlibpath_var=LD_LIBRARY_PATH |
| 17231 | shlibpath_overrides_runpath=yes |
| 17232 | if test "$with_gnu_ld" = yes; then |
| 17233 | need_lib_prefix=no |
| 17234 | fi |
| 17235 | need_version=yes |
| 17236 | ;; |
| 17237 | |
| 17238 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 17239 | version_type=linux |
| 17240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17242 | shlibpath_var=LD_LIBRARY_PATH |
| 17243 | case $host_vendor in |
| 17244 | sni) |
| 17245 | shlibpath_overrides_runpath=no |
| 17246 | need_lib_prefix=no |
| 17247 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17248 | runpath_var=LD_RUN_PATH |
| 17249 | ;; |
| 17250 | siemens) |
| 17251 | need_lib_prefix=no |
| 17252 | ;; |
| 17253 | motorola) |
| 17254 | need_lib_prefix=no |
| 17255 | need_version=no |
| 17256 | shlibpath_overrides_runpath=no |
| 17257 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17258 | ;; |
| 17259 | esac |
| 17260 | ;; |
| 17261 | |
| 17262 | sysv4*MP*) |
| 17263 | if test -d /usr/nec ;then |
| 17264 | version_type=linux |
| 17265 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17266 | soname_spec='$libname${shared_ext}.$major' |
| 17267 | shlibpath_var=LD_LIBRARY_PATH |
| 17268 | fi |
| 17269 | ;; |
| 17270 | |
| 17271 | uts4*) |
| 17272 | version_type=linux |
| 17273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17274 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17275 | shlibpath_var=LD_LIBRARY_PATH |
| 17276 | ;; |
| 17277 | |
| 17278 | *) |
| 17279 | dynamic_linker=no |
| 17280 | ;; |
| 17281 | esac |
| 17282 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17283 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 17284 | test "$dynamic_linker" = no && can_build_shared=no |
| 17285 | |
| 17286 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17287 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 17288 | hardcode_action_GCJ= |
| 17289 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 17290 | test -n "$runpath_var GCJ" || \ |
| 17291 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| 17292 | |
| 17293 | # We can hardcode non-existant directories. |
| 17294 | if test "$hardcode_direct_GCJ" != no && |
| 17295 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17296 | # have to relink, otherwise we might link with an installed library |
| 17297 | # when we should be linking with a yet-to-be-installed one |
| 17298 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 17299 | test "$hardcode_minus_L_GCJ" != no; then |
| 17300 | # Linking always hardcodes the temporary library directory. |
| 17301 | hardcode_action_GCJ=relink |
| 17302 | else |
| 17303 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17304 | hardcode_action_GCJ=immediate |
| 17305 | fi |
| 17306 | else |
| 17307 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17308 | # directories. |
| 17309 | hardcode_action_GCJ=unsupported |
| 17310 | fi |
| 17311 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 17312 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 17313 | |
| 17314 | if test "$hardcode_action_GCJ" = relink; then |
| 17315 | # Fast installation is not supported |
| 17316 | enable_fast_install=no |
| 17317 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17318 | test "$enable_shared" = no; then |
| 17319 | # Fast installation is not necessary |
| 17320 | enable_fast_install=needless |
| 17321 | fi |
| 17322 | |
| 17323 | striplib= |
| 17324 | old_striplib= |
| 17325 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 17326 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 17327 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 17328 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17329 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 17330 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17331 | echo "${ECHO_T}yes" >&6 |
| 17332 | else |
| 17333 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17334 | case $host_os in |
| 17335 | darwin*) |
| 17336 | if test -n "$STRIP" ; then |
| 17337 | striplib="$STRIP -x" |
| 17338 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17339 | echo "${ECHO_T}yes" >&6 |
| 17340 | else |
| 17341 | echo "$as_me:$LINENO: result: no" >&5 |
| 17342 | echo "${ECHO_T}no" >&6 |
| 17343 | fi |
| 17344 | ;; |
| 17345 | *) |
| 17346 | echo "$as_me:$LINENO: result: no" >&5 |
| 17347 | echo "${ECHO_T}no" >&6 |
| 17348 | ;; |
| 17349 | esac |
| 17350 | fi |
| 17351 | |
| 17352 | if test "x$enable_dlopen" != xyes; then |
| 17353 | enable_dlopen=unknown |
| 17354 | enable_dlopen_self=unknown |
| 17355 | enable_dlopen_self_static=unknown |
| 17356 | else |
| 17357 | lt_cv_dlopen=no |
| 17358 | lt_cv_dlopen_libs= |
| 17359 | |
| 17360 | case $host_os in |
| 17361 | beos*) |
| 17362 | lt_cv_dlopen="load_add_on" |
| 17363 | lt_cv_dlopen_libs= |
| 17364 | lt_cv_dlopen_self=yes |
| 17365 | ;; |
| 17366 | |
| 17367 | mingw* | pw32*) |
| 17368 | lt_cv_dlopen="LoadLibrary" |
| 17369 | lt_cv_dlopen_libs= |
| 17370 | ;; |
| 17371 | |
| 17372 | cygwin*) |
| 17373 | lt_cv_dlopen="dlopen" |
| 17374 | lt_cv_dlopen_libs= |
| 17375 | ;; |
| 17376 | |
| 17377 | darwin*) |
| 17378 | # if libdl is installed we need to link against it |
| 17379 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17380 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17381 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17383 | else |
| 17384 | ac_check_lib_save_LIBS=$LIBS |
| 17385 | LIBS="-ldl $LIBS" |
| 17386 | cat >conftest.$ac_ext <<_ACEOF |
| 17387 | /* confdefs.h. */ |
| 17388 | _ACEOF |
| 17389 | cat confdefs.h >>conftest.$ac_ext |
| 17390 | cat >>conftest.$ac_ext <<_ACEOF |
| 17391 | /* end confdefs.h. */ |
| 17392 | |
| 17393 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17394 | #ifdef __cplusplus |
| 17395 | extern "C" |
| 17396 | #endif |
| 17397 | /* We use char because int might match the return type of a gcc2 |
| 17398 | builtin and then its argument prototype would still apply. */ |
| 17399 | char dlopen (); |
| 17400 | int |
| 17401 | main () |
| 17402 | { |
| 17403 | dlopen (); |
| 17404 | ; |
| 17405 | return 0; |
| 17406 | } |
| 17407 | _ACEOF |
| 17408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17410 | (eval $ac_link) 2>conftest.er1 |
| 17411 | ac_status=$? |
| 17412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17413 | rm -f conftest.er1 |
| 17414 | cat conftest.err >&5 |
| 17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17416 | (exit $ac_status); } && |
| 17417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17419 | (eval $ac_try) 2>&5 |
| 17420 | ac_status=$? |
| 17421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17422 | (exit $ac_status); }; } && |
| 17423 | { ac_try='test -s conftest$ac_exeext' |
| 17424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17425 | (eval $ac_try) 2>&5 |
| 17426 | ac_status=$? |
| 17427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17428 | (exit $ac_status); }; }; then |
| 17429 | ac_cv_lib_dl_dlopen=yes |
| 17430 | else |
| 17431 | echo "$as_me: failed program was:" >&5 |
| 17432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17433 | |
| 17434 | ac_cv_lib_dl_dlopen=no |
| 17435 | fi |
| 17436 | rm -f conftest.err conftest.$ac_objext \ |
| 17437 | conftest$ac_exeext conftest.$ac_ext |
| 17438 | LIBS=$ac_check_lib_save_LIBS |
| 17439 | fi |
| 17440 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17441 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17442 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17443 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17444 | else |
| 17445 | |
| 17446 | lt_cv_dlopen="dyld" |
| 17447 | lt_cv_dlopen_libs= |
| 17448 | lt_cv_dlopen_self=yes |
| 17449 | |
| 17450 | fi |
| 17451 | |
| 17452 | ;; |
| 17453 | |
| 17454 | *) |
| 17455 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17456 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 17457 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17459 | else |
| 17460 | cat >conftest.$ac_ext <<_ACEOF |
| 17461 | /* confdefs.h. */ |
| 17462 | _ACEOF |
| 17463 | cat confdefs.h >>conftest.$ac_ext |
| 17464 | cat >>conftest.$ac_ext <<_ACEOF |
| 17465 | /* end confdefs.h. */ |
| 17466 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17467 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17468 | #define shl_load innocuous_shl_load |
| 17469 | |
| 17470 | /* System header to define __stub macros and hopefully few prototypes, |
| 17471 | which can conflict with char shl_load (); below. |
| 17472 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17473 | <limits.h> exists even on freestanding compilers. */ |
| 17474 | |
| 17475 | #ifdef __STDC__ |
| 17476 | # include <limits.h> |
| 17477 | #else |
| 17478 | # include <assert.h> |
| 17479 | #endif |
| 17480 | |
| 17481 | #undef shl_load |
| 17482 | |
| 17483 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17484 | #ifdef __cplusplus |
| 17485 | extern "C" |
| 17486 | { |
| 17487 | #endif |
| 17488 | /* We use char because int might match the return type of a gcc2 |
| 17489 | builtin and then its argument prototype would still apply. */ |
| 17490 | char shl_load (); |
| 17491 | /* The GNU C library defines this for functions which it implements |
| 17492 | to always fail with ENOSYS. Some functions are actually named |
| 17493 | something starting with __ and the normal name is an alias. */ |
| 17494 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 17495 | choke me |
| 17496 | #else |
| 17497 | char (*f) () = shl_load; |
| 17498 | #endif |
| 17499 | #ifdef __cplusplus |
| 17500 | } |
| 17501 | #endif |
| 17502 | |
| 17503 | int |
| 17504 | main () |
| 17505 | { |
| 17506 | return f != shl_load; |
| 17507 | ; |
| 17508 | return 0; |
| 17509 | } |
| 17510 | _ACEOF |
| 17511 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17513 | (eval $ac_link) 2>conftest.er1 |
| 17514 | ac_status=$? |
| 17515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17516 | rm -f conftest.er1 |
| 17517 | cat conftest.err >&5 |
| 17518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17519 | (exit $ac_status); } && |
| 17520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17522 | (eval $ac_try) 2>&5 |
| 17523 | ac_status=$? |
| 17524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17525 | (exit $ac_status); }; } && |
| 17526 | { ac_try='test -s conftest$ac_exeext' |
| 17527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17528 | (eval $ac_try) 2>&5 |
| 17529 | ac_status=$? |
| 17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17531 | (exit $ac_status); }; }; then |
| 17532 | ac_cv_func_shl_load=yes |
| 17533 | else |
| 17534 | echo "$as_me: failed program was:" >&5 |
| 17535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17536 | |
| 17537 | ac_cv_func_shl_load=no |
| 17538 | fi |
| 17539 | rm -f conftest.err conftest.$ac_objext \ |
| 17540 | conftest$ac_exeext conftest.$ac_ext |
| 17541 | fi |
| 17542 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17543 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 17544 | if test $ac_cv_func_shl_load = yes; then |
| 17545 | lt_cv_dlopen="shl_load" |
| 17546 | else |
| 17547 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17548 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 17549 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17551 | else |
| 17552 | ac_check_lib_save_LIBS=$LIBS |
| 17553 | LIBS="-ldld $LIBS" |
| 17554 | cat >conftest.$ac_ext <<_ACEOF |
| 17555 | /* confdefs.h. */ |
| 17556 | _ACEOF |
| 17557 | cat confdefs.h >>conftest.$ac_ext |
| 17558 | cat >>conftest.$ac_ext <<_ACEOF |
| 17559 | /* end confdefs.h. */ |
| 17560 | |
| 17561 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17562 | #ifdef __cplusplus |
| 17563 | extern "C" |
| 17564 | #endif |
| 17565 | /* We use char because int might match the return type of a gcc2 |
| 17566 | builtin and then its argument prototype would still apply. */ |
| 17567 | char shl_load (); |
| 17568 | int |
| 17569 | main () |
| 17570 | { |
| 17571 | shl_load (); |
| 17572 | ; |
| 17573 | return 0; |
| 17574 | } |
| 17575 | _ACEOF |
| 17576 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17578 | (eval $ac_link) 2>conftest.er1 |
| 17579 | ac_status=$? |
| 17580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17581 | rm -f conftest.er1 |
| 17582 | cat conftest.err >&5 |
| 17583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17584 | (exit $ac_status); } && |
| 17585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17587 | (eval $ac_try) 2>&5 |
| 17588 | ac_status=$? |
| 17589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17590 | (exit $ac_status); }; } && |
| 17591 | { ac_try='test -s conftest$ac_exeext' |
| 17592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17593 | (eval $ac_try) 2>&5 |
| 17594 | ac_status=$? |
| 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17596 | (exit $ac_status); }; }; then |
| 17597 | ac_cv_lib_dld_shl_load=yes |
| 17598 | else |
| 17599 | echo "$as_me: failed program was:" >&5 |
| 17600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17601 | |
| 17602 | ac_cv_lib_dld_shl_load=no |
| 17603 | fi |
| 17604 | rm -f conftest.err conftest.$ac_objext \ |
| 17605 | conftest$ac_exeext conftest.$ac_ext |
| 17606 | LIBS=$ac_check_lib_save_LIBS |
| 17607 | fi |
| 17608 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17609 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 17610 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17611 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17612 | else |
| 17613 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17614 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 17615 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17617 | else |
| 17618 | cat >conftest.$ac_ext <<_ACEOF |
| 17619 | /* confdefs.h. */ |
| 17620 | _ACEOF |
| 17621 | cat confdefs.h >>conftest.$ac_ext |
| 17622 | cat >>conftest.$ac_ext <<_ACEOF |
| 17623 | /* end confdefs.h. */ |
| 17624 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17625 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17626 | #define dlopen innocuous_dlopen |
| 17627 | |
| 17628 | /* System header to define __stub macros and hopefully few prototypes, |
| 17629 | which can conflict with char dlopen (); below. |
| 17630 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17631 | <limits.h> exists even on freestanding compilers. */ |
| 17632 | |
| 17633 | #ifdef __STDC__ |
| 17634 | # include <limits.h> |
| 17635 | #else |
| 17636 | # include <assert.h> |
| 17637 | #endif |
| 17638 | |
| 17639 | #undef dlopen |
| 17640 | |
| 17641 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17642 | #ifdef __cplusplus |
| 17643 | extern "C" |
| 17644 | { |
| 17645 | #endif |
| 17646 | /* We use char because int might match the return type of a gcc2 |
| 17647 | builtin and then its argument prototype would still apply. */ |
| 17648 | char dlopen (); |
| 17649 | /* The GNU C library defines this for functions which it implements |
| 17650 | to always fail with ENOSYS. Some functions are actually named |
| 17651 | something starting with __ and the normal name is an alias. */ |
| 17652 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 17653 | choke me |
| 17654 | #else |
| 17655 | char (*f) () = dlopen; |
| 17656 | #endif |
| 17657 | #ifdef __cplusplus |
| 17658 | } |
| 17659 | #endif |
| 17660 | |
| 17661 | int |
| 17662 | main () |
| 17663 | { |
| 17664 | return f != dlopen; |
| 17665 | ; |
| 17666 | return 0; |
| 17667 | } |
| 17668 | _ACEOF |
| 17669 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17671 | (eval $ac_link) 2>conftest.er1 |
| 17672 | ac_status=$? |
| 17673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17674 | rm -f conftest.er1 |
| 17675 | cat conftest.err >&5 |
| 17676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17677 | (exit $ac_status); } && |
| 17678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17680 | (eval $ac_try) 2>&5 |
| 17681 | ac_status=$? |
| 17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17683 | (exit $ac_status); }; } && |
| 17684 | { ac_try='test -s conftest$ac_exeext' |
| 17685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17686 | (eval $ac_try) 2>&5 |
| 17687 | ac_status=$? |
| 17688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17689 | (exit $ac_status); }; }; then |
| 17690 | ac_cv_func_dlopen=yes |
| 17691 | else |
| 17692 | echo "$as_me: failed program was:" >&5 |
| 17693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17694 | |
| 17695 | ac_cv_func_dlopen=no |
| 17696 | fi |
| 17697 | rm -f conftest.err conftest.$ac_objext \ |
| 17698 | conftest$ac_exeext conftest.$ac_ext |
| 17699 | fi |
| 17700 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17701 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 17702 | if test $ac_cv_func_dlopen = yes; then |
| 17703 | lt_cv_dlopen="dlopen" |
| 17704 | else |
| 17705 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17706 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17707 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17709 | else |
| 17710 | ac_check_lib_save_LIBS=$LIBS |
| 17711 | LIBS="-ldl $LIBS" |
| 17712 | cat >conftest.$ac_ext <<_ACEOF |
| 17713 | /* confdefs.h. */ |
| 17714 | _ACEOF |
| 17715 | cat confdefs.h >>conftest.$ac_ext |
| 17716 | cat >>conftest.$ac_ext <<_ACEOF |
| 17717 | /* end confdefs.h. */ |
| 17718 | |
| 17719 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17720 | #ifdef __cplusplus |
| 17721 | extern "C" |
| 17722 | #endif |
| 17723 | /* We use char because int might match the return type of a gcc2 |
| 17724 | builtin and then its argument prototype would still apply. */ |
| 17725 | char dlopen (); |
| 17726 | int |
| 17727 | main () |
| 17728 | { |
| 17729 | dlopen (); |
| 17730 | ; |
| 17731 | return 0; |
| 17732 | } |
| 17733 | _ACEOF |
| 17734 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17736 | (eval $ac_link) 2>conftest.er1 |
| 17737 | ac_status=$? |
| 17738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17739 | rm -f conftest.er1 |
| 17740 | cat conftest.err >&5 |
| 17741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17742 | (exit $ac_status); } && |
| 17743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17745 | (eval $ac_try) 2>&5 |
| 17746 | ac_status=$? |
| 17747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17748 | (exit $ac_status); }; } && |
| 17749 | { ac_try='test -s conftest$ac_exeext' |
| 17750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17751 | (eval $ac_try) 2>&5 |
| 17752 | ac_status=$? |
| 17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17754 | (exit $ac_status); }; }; then |
| 17755 | ac_cv_lib_dl_dlopen=yes |
| 17756 | else |
| 17757 | echo "$as_me: failed program was:" >&5 |
| 17758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17759 | |
| 17760 | ac_cv_lib_dl_dlopen=no |
| 17761 | fi |
| 17762 | rm -f conftest.err conftest.$ac_objext \ |
| 17763 | conftest$ac_exeext conftest.$ac_ext |
| 17764 | LIBS=$ac_check_lib_save_LIBS |
| 17765 | fi |
| 17766 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17767 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17768 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17769 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17770 | else |
| 17771 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17772 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 17773 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17775 | else |
| 17776 | ac_check_lib_save_LIBS=$LIBS |
| 17777 | LIBS="-lsvld $LIBS" |
| 17778 | cat >conftest.$ac_ext <<_ACEOF |
| 17779 | /* confdefs.h. */ |
| 17780 | _ACEOF |
| 17781 | cat confdefs.h >>conftest.$ac_ext |
| 17782 | cat >>conftest.$ac_ext <<_ACEOF |
| 17783 | /* end confdefs.h. */ |
| 17784 | |
| 17785 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17786 | #ifdef __cplusplus |
| 17787 | extern "C" |
| 17788 | #endif |
| 17789 | /* We use char because int might match the return type of a gcc2 |
| 17790 | builtin and then its argument prototype would still apply. */ |
| 17791 | char dlopen (); |
| 17792 | int |
| 17793 | main () |
| 17794 | { |
| 17795 | dlopen (); |
| 17796 | ; |
| 17797 | return 0; |
| 17798 | } |
| 17799 | _ACEOF |
| 17800 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17802 | (eval $ac_link) 2>conftest.er1 |
| 17803 | ac_status=$? |
| 17804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17805 | rm -f conftest.er1 |
| 17806 | cat conftest.err >&5 |
| 17807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17808 | (exit $ac_status); } && |
| 17809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17811 | (eval $ac_try) 2>&5 |
| 17812 | ac_status=$? |
| 17813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17814 | (exit $ac_status); }; } && |
| 17815 | { ac_try='test -s conftest$ac_exeext' |
| 17816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17817 | (eval $ac_try) 2>&5 |
| 17818 | ac_status=$? |
| 17819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17820 | (exit $ac_status); }; }; then |
| 17821 | ac_cv_lib_svld_dlopen=yes |
| 17822 | else |
| 17823 | echo "$as_me: failed program was:" >&5 |
| 17824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17825 | |
| 17826 | ac_cv_lib_svld_dlopen=no |
| 17827 | fi |
| 17828 | rm -f conftest.err conftest.$ac_objext \ |
| 17829 | conftest$ac_exeext conftest.$ac_ext |
| 17830 | LIBS=$ac_check_lib_save_LIBS |
| 17831 | fi |
| 17832 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17833 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 17834 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17835 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17836 | else |
| 17837 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17838 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 17839 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17841 | else |
| 17842 | ac_check_lib_save_LIBS=$LIBS |
| 17843 | LIBS="-ldld $LIBS" |
| 17844 | cat >conftest.$ac_ext <<_ACEOF |
| 17845 | /* confdefs.h. */ |
| 17846 | _ACEOF |
| 17847 | cat confdefs.h >>conftest.$ac_ext |
| 17848 | cat >>conftest.$ac_ext <<_ACEOF |
| 17849 | /* end confdefs.h. */ |
| 17850 | |
| 17851 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17852 | #ifdef __cplusplus |
| 17853 | extern "C" |
| 17854 | #endif |
| 17855 | /* We use char because int might match the return type of a gcc2 |
| 17856 | builtin and then its argument prototype would still apply. */ |
| 17857 | char dld_link (); |
| 17858 | int |
| 17859 | main () |
| 17860 | { |
| 17861 | dld_link (); |
| 17862 | ; |
| 17863 | return 0; |
| 17864 | } |
| 17865 | _ACEOF |
| 17866 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17868 | (eval $ac_link) 2>conftest.er1 |
| 17869 | ac_status=$? |
| 17870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17871 | rm -f conftest.er1 |
| 17872 | cat conftest.err >&5 |
| 17873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17874 | (exit $ac_status); } && |
| 17875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17877 | (eval $ac_try) 2>&5 |
| 17878 | ac_status=$? |
| 17879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17880 | (exit $ac_status); }; } && |
| 17881 | { ac_try='test -s conftest$ac_exeext' |
| 17882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17883 | (eval $ac_try) 2>&5 |
| 17884 | ac_status=$? |
| 17885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17886 | (exit $ac_status); }; }; then |
| 17887 | ac_cv_lib_dld_dld_link=yes |
| 17888 | else |
| 17889 | echo "$as_me: failed program was:" >&5 |
| 17890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17891 | |
| 17892 | ac_cv_lib_dld_dld_link=no |
| 17893 | fi |
| 17894 | rm -f conftest.err conftest.$ac_objext \ |
| 17895 | conftest$ac_exeext conftest.$ac_ext |
| 17896 | LIBS=$ac_check_lib_save_LIBS |
| 17897 | fi |
| 17898 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17899 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 17900 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17901 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17902 | fi |
| 17903 | |
| 17904 | |
| 17905 | fi |
| 17906 | |
| 17907 | |
| 17908 | fi |
| 17909 | |
| 17910 | |
| 17911 | fi |
| 17912 | |
| 17913 | |
| 17914 | fi |
| 17915 | |
| 17916 | |
| 17917 | fi |
| 17918 | |
| 17919 | ;; |
| 17920 | esac |
| 17921 | |
| 17922 | if test "x$lt_cv_dlopen" != xno; then |
| 17923 | enable_dlopen=yes |
| 17924 | else |
| 17925 | enable_dlopen=no |
| 17926 | fi |
| 17927 | |
| 17928 | case $lt_cv_dlopen in |
| 17929 | dlopen) |
| 17930 | save_CPPFLAGS="$CPPFLAGS" |
| 17931 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17932 | |
| 17933 | save_LDFLAGS="$LDFLAGS" |
| 17934 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17935 | |
| 17936 | save_LIBS="$LIBS" |
| 17937 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17938 | |
| 17939 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17940 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 17941 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17943 | else |
| 17944 | if test "$cross_compiling" = yes; then : |
| 17945 | lt_cv_dlopen_self=cross |
| 17946 | else |
| 17947 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17948 | lt_status=$lt_dlunknown |
| 17949 | cat > conftest.$ac_ext <<EOF |
| 17950 | #line 17950 "configure" |
| 17951 | #include "confdefs.h" |
| 17952 | |
| 17953 | #if HAVE_DLFCN_H |
| 17954 | #include <dlfcn.h> |
| 17955 | #endif |
| 17956 | |
| 17957 | #include <stdio.h> |
| 17958 | |
| 17959 | #ifdef RTLD_GLOBAL |
| 17960 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17961 | #else |
| 17962 | # ifdef DL_GLOBAL |
| 17963 | # define LT_DLGLOBAL DL_GLOBAL |
| 17964 | # else |
| 17965 | # define LT_DLGLOBAL 0 |
| 17966 | # endif |
| 17967 | #endif |
| 17968 | |
| 17969 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17970 | find out it does not work in some platform. */ |
| 17971 | #ifndef LT_DLLAZY_OR_NOW |
| 17972 | # ifdef RTLD_LAZY |
| 17973 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17974 | # else |
| 17975 | # ifdef DL_LAZY |
| 17976 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17977 | # else |
| 17978 | # ifdef RTLD_NOW |
| 17979 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17980 | # else |
| 17981 | # ifdef DL_NOW |
| 17982 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17983 | # else |
| 17984 | # define LT_DLLAZY_OR_NOW 0 |
| 17985 | # endif |
| 17986 | # endif |
| 17987 | # endif |
| 17988 | # endif |
| 17989 | #endif |
| 17990 | |
| 17991 | #ifdef __cplusplus |
| 17992 | extern "C" void exit (int); |
| 17993 | #endif |
| 17994 | |
| 17995 | void fnord() { int i=42;} |
| 17996 | int main () |
| 17997 | { |
| 17998 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17999 | int status = $lt_dlunknown; |
| 18000 | |
| 18001 | if (self) |
| 18002 | { |
| 18003 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18004 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18005 | /* dlclose (self); */ |
| 18006 | } |
| 18007 | |
| 18008 | exit (status); |
| 18009 | } |
| 18010 | EOF |
| 18011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18012 | (eval $ac_link) 2>&5 |
| 18013 | ac_status=$? |
| 18014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18015 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18016 | (./conftest; exit; ) 2>/dev/null |
| 18017 | lt_status=$? |
| 18018 | case x$lt_status in |
| 18019 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 18020 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 18021 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 18022 | esac |
| 18023 | else : |
| 18024 | # compilation failed |
| 18025 | lt_cv_dlopen_self=no |
| 18026 | fi |
| 18027 | fi |
| 18028 | rm -fr conftest* |
| 18029 | |
| 18030 | |
| 18031 | fi |
| 18032 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 18033 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 18034 | |
| 18035 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 18036 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 18037 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 18038 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 18039 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 18040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18041 | else |
| 18042 | if test "$cross_compiling" = yes; then : |
| 18043 | lt_cv_dlopen_self_static=cross |
| 18044 | else |
| 18045 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18046 | lt_status=$lt_dlunknown |
| 18047 | cat > conftest.$ac_ext <<EOF |
| 18048 | #line 18048 "configure" |
| 18049 | #include "confdefs.h" |
| 18050 | |
| 18051 | #if HAVE_DLFCN_H |
| 18052 | #include <dlfcn.h> |
| 18053 | #endif |
| 18054 | |
| 18055 | #include <stdio.h> |
| 18056 | |
| 18057 | #ifdef RTLD_GLOBAL |
| 18058 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18059 | #else |
| 18060 | # ifdef DL_GLOBAL |
| 18061 | # define LT_DLGLOBAL DL_GLOBAL |
| 18062 | # else |
| 18063 | # define LT_DLGLOBAL 0 |
| 18064 | # endif |
| 18065 | #endif |
| 18066 | |
| 18067 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18068 | find out it does not work in some platform. */ |
| 18069 | #ifndef LT_DLLAZY_OR_NOW |
| 18070 | # ifdef RTLD_LAZY |
| 18071 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18072 | # else |
| 18073 | # ifdef DL_LAZY |
| 18074 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18075 | # else |
| 18076 | # ifdef RTLD_NOW |
| 18077 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18078 | # else |
| 18079 | # ifdef DL_NOW |
| 18080 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18081 | # else |
| 18082 | # define LT_DLLAZY_OR_NOW 0 |
| 18083 | # endif |
| 18084 | # endif |
| 18085 | # endif |
| 18086 | # endif |
| 18087 | #endif |
| 18088 | |
| 18089 | #ifdef __cplusplus |
| 18090 | extern "C" void exit (int); |
| 18091 | #endif |
| 18092 | |
| 18093 | void fnord() { int i=42;} |
| 18094 | int main () |
| 18095 | { |
| 18096 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18097 | int status = $lt_dlunknown; |
| 18098 | |
| 18099 | if (self) |
| 18100 | { |
| 18101 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18102 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18103 | /* dlclose (self); */ |
| 18104 | } |
| 18105 | |
| 18106 | exit (status); |
| 18107 | } |
| 18108 | EOF |
| 18109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18110 | (eval $ac_link) 2>&5 |
| 18111 | ac_status=$? |
| 18112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18113 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18114 | (./conftest; exit; ) 2>/dev/null |
| 18115 | lt_status=$? |
| 18116 | case x$lt_status in |
| 18117 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18118 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18119 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 18120 | esac |
| 18121 | else : |
| 18122 | # compilation failed |
| 18123 | lt_cv_dlopen_self_static=no |
| 18124 | fi |
| 18125 | fi |
| 18126 | rm -fr conftest* |
| 18127 | |
| 18128 | |
| 18129 | fi |
| 18130 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 18131 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 18132 | fi |
| 18133 | |
| 18134 | CPPFLAGS="$save_CPPFLAGS" |
| 18135 | LDFLAGS="$save_LDFLAGS" |
| 18136 | LIBS="$save_LIBS" |
| 18137 | ;; |
| 18138 | esac |
| 18139 | |
| 18140 | case $lt_cv_dlopen_self in |
| 18141 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 18142 | *) enable_dlopen_self=unknown ;; |
| 18143 | esac |
| 18144 | |
| 18145 | case $lt_cv_dlopen_self_static in |
| 18146 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18147 | *) enable_dlopen_self_static=unknown ;; |
| 18148 | esac |
| 18149 | fi |
| 18150 | |
| 18151 | |
| 18152 | # The else clause should only fire when bootstrapping the |
| 18153 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18154 | # with your package, and you will get complaints that there are |
| 18155 | # no rules to generate ltmain.sh. |
| 18156 | if test -f "$ltmain"; then |
| 18157 | # See if we are running on zsh, and set the options which allow our commands through |
| 18158 | # without removal of \ escapes. |
| 18159 | if test -n "${ZSH_VERSION+set}" ; then |
| 18160 | setopt NO_GLOB_SUBST |
| 18161 | fi |
| 18162 | # Now quote all the things that may contain metacharacters while being |
| 18163 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18164 | # variables and quote the copies for generation of the libtool script. |
| 18165 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18166 | SED SHELL STRIP \ |
| 18167 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18168 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18169 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18170 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18171 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18172 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18173 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18174 | compiler_GCJ \ |
| 18175 | CC_GCJ \ |
| 18176 | LD_GCJ \ |
| 18177 | lt_prog_compiler_wl_GCJ \ |
| 18178 | lt_prog_compiler_pic_GCJ \ |
| 18179 | lt_prog_compiler_static_GCJ \ |
| 18180 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18181 | export_dynamic_flag_spec_GCJ \ |
| 18182 | thread_safe_flag_spec_GCJ \ |
| 18183 | whole_archive_flag_spec_GCJ \ |
| 18184 | enable_shared_with_static_runtimes_GCJ \ |
| 18185 | old_archive_cmds_GCJ \ |
| 18186 | old_archive_from_new_cmds_GCJ \ |
| 18187 | predep_objects_GCJ \ |
| 18188 | postdep_objects_GCJ \ |
| 18189 | predeps_GCJ \ |
| 18190 | postdeps_GCJ \ |
| 18191 | compiler_lib_search_path_GCJ \ |
| 18192 | archive_cmds_GCJ \ |
| 18193 | archive_expsym_cmds_GCJ \ |
| 18194 | postinstall_cmds_GCJ \ |
| 18195 | postuninstall_cmds_GCJ \ |
| 18196 | old_archive_from_expsyms_cmds_GCJ \ |
| 18197 | allow_undefined_flag_GCJ \ |
| 18198 | no_undefined_flag_GCJ \ |
| 18199 | export_symbols_cmds_GCJ \ |
| 18200 | hardcode_libdir_flag_spec_GCJ \ |
| 18201 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18202 | hardcode_libdir_separator_GCJ \ |
| 18203 | hardcode_automatic_GCJ \ |
| 18204 | module_cmds_GCJ \ |
| 18205 | module_expsym_cmds_GCJ \ |
| 18206 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18207 | exclude_expsyms_GCJ \ |
| 18208 | include_expsyms_GCJ; do |
| 18209 | |
| 18210 | case $var in |
| 18211 | old_archive_cmds_GCJ | \ |
| 18212 | old_archive_from_new_cmds_GCJ | \ |
| 18213 | archive_cmds_GCJ | \ |
| 18214 | archive_expsym_cmds_GCJ | \ |
| 18215 | module_cmds_GCJ | \ |
| 18216 | module_expsym_cmds_GCJ | \ |
| 18217 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18218 | export_symbols_cmds_GCJ | \ |
| 18219 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18220 | postinstall_cmds | postuninstall_cmds | \ |
| 18221 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18222 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18223 | # Double-quote double-evaled strings. |
| 18224 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18225 | ;; |
| 18226 | *) |
| 18227 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18228 | ;; |
| 18229 | esac |
| 18230 | done |
| 18231 | |
| 18232 | case $lt_echo in |
| 18233 | *'\$0 --fallback-echo"') |
| 18234 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18235 | ;; |
| 18236 | esac |
| 18237 | |
| 18238 | cfgfile="$ofile" |
| 18239 | |
| 18240 | cat <<__EOF__ >> "$cfgfile" |
| 18241 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18242 | |
| 18243 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18244 | |
| 18245 | # Shell to use when invoking shell scripts. |
| 18246 | SHELL=$lt_SHELL |
| 18247 | |
| 18248 | # Whether or not to build shared libraries. |
| 18249 | build_libtool_libs=$enable_shared |
| 18250 | |
| 18251 | # Whether or not to build static libraries. |
| 18252 | build_old_libs=$enable_static |
| 18253 | |
| 18254 | # Whether or not to add -lc for building shared libraries. |
| 18255 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18256 | |
| 18257 | # Whether or not to disallow shared libs when runtime libs are static |
| 18258 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18259 | |
| 18260 | # Whether or not to optimize for fast installation. |
| 18261 | fast_install=$enable_fast_install |
| 18262 | |
| 18263 | # The host system. |
| 18264 | host_alias=$host_alias |
| 18265 | host=$host |
| 18266 | |
| 18267 | # An echo program that does not interpret backslashes. |
| 18268 | echo=$lt_echo |
| 18269 | |
| 18270 | # The archiver. |
| 18271 | AR=$lt_AR |
| 18272 | AR_FLAGS=$lt_AR_FLAGS |
| 18273 | |
| 18274 | # A C compiler. |
| 18275 | LTCC=$lt_LTCC |
| 18276 | |
| 18277 | # A language-specific compiler. |
| 18278 | CC=$lt_compiler_GCJ |
| 18279 | |
| 18280 | # Is the compiler the GNU C compiler? |
| 18281 | with_gcc=$GCC_GCJ |
| 18282 | |
| 18283 | # An ERE matcher. |
| 18284 | EGREP=$lt_EGREP |
| 18285 | |
| 18286 | # The linker used to build libraries. |
| 18287 | LD=$lt_LD_GCJ |
| 18288 | |
| 18289 | # Whether we need hard or soft links. |
| 18290 | LN_S=$lt_LN_S |
| 18291 | |
| 18292 | # A BSD-compatible nm program. |
| 18293 | NM=$lt_NM |
| 18294 | |
| 18295 | # A symbol stripping program |
| 18296 | STRIP=$lt_STRIP |
| 18297 | |
| 18298 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18299 | MAGIC_CMD=$MAGIC_CMD |
| 18300 | |
| 18301 | # Used on cygwin: DLL creation program. |
| 18302 | DLLTOOL="$DLLTOOL" |
| 18303 | |
| 18304 | # Used on cygwin: object dumper. |
| 18305 | OBJDUMP="$OBJDUMP" |
| 18306 | |
| 18307 | # Used on cygwin: assembler. |
| 18308 | AS="$AS" |
| 18309 | |
| 18310 | # The name of the directory that contains temporary libtool files. |
| 18311 | objdir=$objdir |
| 18312 | |
| 18313 | # How to create reloadable object files. |
| 18314 | reload_flag=$lt_reload_flag |
| 18315 | reload_cmds=$lt_reload_cmds |
| 18316 | |
| 18317 | # How to pass a linker flag through the compiler. |
| 18318 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18319 | |
| 18320 | # Object file suffix (normally "o"). |
| 18321 | objext="$ac_objext" |
| 18322 | |
| 18323 | # Old archive suffix (normally "a"). |
| 18324 | libext="$libext" |
| 18325 | |
| 18326 | # Shared library suffix (normally ".so"). |
| 18327 | shrext_cmds='$shrext_cmds' |
| 18328 | |
| 18329 | # Executable file suffix (normally ""). |
| 18330 | exeext="$exeext" |
| 18331 | |
| 18332 | # Additional compiler flags for building library objects. |
| 18333 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 18334 | pic_mode=$pic_mode |
| 18335 | |
| 18336 | # What is the maximum length of a command? |
| 18337 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18338 | |
| 18339 | # Does compiler simultaneously support -c and -o options? |
| 18340 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 18341 | |
| 18342 | # Must we lock files when doing compilation ? |
| 18343 | need_locks=$lt_need_locks |
| 18344 | |
| 18345 | # Do we need the lib prefix for modules? |
| 18346 | need_lib_prefix=$need_lib_prefix |
| 18347 | |
| 18348 | # Do we need a version for libraries? |
| 18349 | need_version=$need_version |
| 18350 | |
| 18351 | # Whether dlopen is supported. |
| 18352 | dlopen_support=$enable_dlopen |
| 18353 | |
| 18354 | # Whether dlopen of programs is supported. |
| 18355 | dlopen_self=$enable_dlopen_self |
| 18356 | |
| 18357 | # Whether dlopen of statically linked programs is supported. |
| 18358 | dlopen_self_static=$enable_dlopen_self_static |
| 18359 | |
| 18360 | # Compiler flag to prevent dynamic linking. |
| 18361 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 18362 | |
| 18363 | # Compiler flag to turn off builtin functions. |
| 18364 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 18365 | |
| 18366 | # Compiler flag to allow reflexive dlopens. |
| 18367 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 18368 | |
| 18369 | # Compiler flag to generate shared objects directly from archives. |
| 18370 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 18371 | |
| 18372 | # Compiler flag to generate thread-safe objects. |
| 18373 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 18374 | |
| 18375 | # Library versioning type. |
| 18376 | version_type=$version_type |
| 18377 | |
| 18378 | # Format of library name prefix. |
| 18379 | libname_spec=$lt_libname_spec |
| 18380 | |
| 18381 | # List of archive names. First name is the real one, the rest are links. |
| 18382 | # The last name is the one that the linker finds with -lNAME. |
| 18383 | library_names_spec=$lt_library_names_spec |
| 18384 | |
| 18385 | # The coded name of the library, if different from the real name. |
| 18386 | soname_spec=$lt_soname_spec |
| 18387 | |
| 18388 | # Commands used to build and install an old-style archive. |
| 18389 | RANLIB=$lt_RANLIB |
| 18390 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 18391 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18392 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18393 | |
| 18394 | # Create an old-style archive from a shared archive. |
| 18395 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 18396 | |
| 18397 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18398 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 18399 | |
| 18400 | # Commands used to build and install a shared archive. |
| 18401 | archive_cmds=$lt_archive_cmds_GCJ |
| 18402 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 18403 | postinstall_cmds=$lt_postinstall_cmds |
| 18404 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18405 | |
| 18406 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18407 | module_cmds=$lt_module_cmds_GCJ |
| 18408 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 18409 | |
| 18410 | # Commands to strip libraries. |
| 18411 | old_striplib=$lt_old_striplib |
| 18412 | striplib=$lt_striplib |
| 18413 | |
| 18414 | # Dependencies to place before the objects being linked to create a |
| 18415 | # shared library. |
| 18416 | predep_objects=$lt_predep_objects_GCJ |
| 18417 | |
| 18418 | # Dependencies to place after the objects being linked to create a |
| 18419 | # shared library. |
| 18420 | postdep_objects=$lt_postdep_objects_GCJ |
| 18421 | |
| 18422 | # Dependencies to place before the objects being linked to create a |
| 18423 | # shared library. |
| 18424 | predeps=$lt_predeps_GCJ |
| 18425 | |
| 18426 | # Dependencies to place after the objects being linked to create a |
| 18427 | # shared library. |
| 18428 | postdeps=$lt_postdeps_GCJ |
| 18429 | |
| 18430 | # The library search path used internally by the compiler when linking |
| 18431 | # a shared library. |
| 18432 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 18433 | |
| 18434 | # Method to check whether dependent libraries are shared objects. |
| 18435 | deplibs_check_method=$lt_deplibs_check_method |
| 18436 | |
| 18437 | # Command to use when deplibs_check_method == file_magic. |
| 18438 | file_magic_cmd=$lt_file_magic_cmd |
| 18439 | |
| 18440 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18441 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 18442 | |
| 18443 | # Flag that forces no undefined symbols. |
| 18444 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 18445 | |
| 18446 | # Commands used to finish a libtool library installation in a directory. |
| 18447 | finish_cmds=$lt_finish_cmds |
| 18448 | |
| 18449 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18450 | finish_eval=$lt_finish_eval |
| 18451 | |
| 18452 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18453 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18454 | |
| 18455 | # Transform the output of nm in a proper C declaration |
| 18456 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18457 | |
| 18458 | # Transform the output of nm in a C name address pair |
| 18459 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18460 | |
| 18461 | # This is the shared library runtime path variable. |
| 18462 | runpath_var=$runpath_var |
| 18463 | |
| 18464 | # This is the shared library path variable. |
| 18465 | shlibpath_var=$shlibpath_var |
| 18466 | |
| 18467 | # Is shlibpath searched before the hard-coded library search path? |
| 18468 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18469 | |
| 18470 | # How to hardcode a shared library path into an executable. |
| 18471 | hardcode_action=$hardcode_action_GCJ |
| 18472 | |
| 18473 | # Whether we should hardcode library paths into libraries. |
| 18474 | hardcode_into_libs=$hardcode_into_libs |
| 18475 | |
| 18476 | # Flag to hardcode \$libdir into a binary during linking. |
| 18477 | # This must work even if \$libdir does not exist. |
| 18478 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 18479 | |
| 18480 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18481 | # a binary during linking. This must work even if \$libdir does |
| 18482 | # not exist. |
| 18483 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 18484 | |
| 18485 | # Whether we need a single -rpath flag with a separated argument. |
| 18486 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 18487 | |
| 18488 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18489 | # resulting binary. |
| 18490 | hardcode_direct=$hardcode_direct_GCJ |
| 18491 | |
| 18492 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18493 | # resulting binary. |
| 18494 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 18495 | |
| 18496 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18497 | # the resulting binary. |
| 18498 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 18499 | |
| 18500 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18501 | # and all subsequent libraries and executables linked against it. |
| 18502 | hardcode_automatic=$hardcode_automatic_GCJ |
| 18503 | |
| 18504 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18505 | # restored at relink time. |
| 18506 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18507 | |
| 18508 | # Whether libtool must link a program against all its dependency libraries. |
| 18509 | link_all_deplibs=$link_all_deplibs_GCJ |
| 18510 | |
| 18511 | # Compile-time system search path for libraries |
| 18512 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18513 | |
| 18514 | # Run-time system search path for libraries |
| 18515 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18516 | |
| 18517 | # Fix the shell variable \$srcfile for the compiler. |
| 18518 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 18519 | |
| 18520 | # Set to yes if exported symbols are required. |
| 18521 | always_export_symbols=$always_export_symbols_GCJ |
| 18522 | |
| 18523 | # The commands to list exported symbols. |
| 18524 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 18525 | |
| 18526 | # The commands to extract the exported symbol list from a shared archive. |
| 18527 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18528 | |
| 18529 | # Symbols that should not be listed in the preloaded symbols. |
| 18530 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 18531 | |
| 18532 | # Symbols that must always be exported. |
| 18533 | include_expsyms=$lt_include_expsyms_GCJ |
| 18534 | |
| 18535 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18536 | |
| 18537 | __EOF__ |
| 18538 | |
| 18539 | |
| 18540 | else |
| 18541 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18542 | # `config.status --recheck' to rerun these tests and create the |
| 18543 | # libtool script then. |
| 18544 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18545 | if test -f "$ltmain_in"; then |
| 18546 | test -f Makefile && make "$ltmain" |
| 18547 | fi |
| 18548 | fi |
| 18549 | |
| 18550 | |
| 18551 | ac_ext=c |
| 18552 | ac_cpp='$CPP $CPPFLAGS' |
| 18553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18556 | |
| 18557 | CC="$lt_save_CC" |
| 18558 | |
| 18559 | else |
| 18560 | tagname="" |
| 18561 | fi |
| 18562 | ;; |
| 18563 | |
| 18564 | RC) |
| 18565 | |
| 18566 | |
| 18567 | |
| 18568 | # Source file extension for RC test sources. |
| 18569 | ac_ext=rc |
| 18570 | |
| 18571 | # Object file extension for compiled RC test sources. |
| 18572 | objext=o |
| 18573 | objext_RC=$objext |
| 18574 | |
| 18575 | # Code to be used in simple compile tests |
| 18576 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 18577 | |
| 18578 | # Code to be used in simple link tests |
| 18579 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 18580 | |
| 18581 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18582 | |
| 18583 | # If no C compiler was specified, use CC. |
| 18584 | LTCC=${LTCC-"$CC"} |
| 18585 | |
| 18586 | # Allow CC to be a program name with arguments. |
| 18587 | compiler=$CC |
| 18588 | |
| 18589 | |
| 18590 | # Allow CC to be a program name with arguments. |
| 18591 | lt_save_CC="$CC" |
| 18592 | CC=${RC-"windres"} |
| 18593 | compiler=$CC |
| 18594 | compiler_RC=$CC |
| 18595 | lt_cv_prog_compiler_c_o_RC=yes |
| 18596 | |
| 18597 | # The else clause should only fire when bootstrapping the |
| 18598 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18599 | # with your package, and you will get complaints that there are |
| 18600 | # no rules to generate ltmain.sh. |
| 18601 | if test -f "$ltmain"; then |
| 18602 | # See if we are running on zsh, and set the options which allow our commands through |
| 18603 | # without removal of \ escapes. |
| 18604 | if test -n "${ZSH_VERSION+set}" ; then |
| 18605 | setopt NO_GLOB_SUBST |
| 18606 | fi |
| 18607 | # Now quote all the things that may contain metacharacters while being |
| 18608 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18609 | # variables and quote the copies for generation of the libtool script. |
| 18610 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18611 | SED SHELL STRIP \ |
| 18612 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18613 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18614 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18615 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18616 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18617 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18618 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18619 | compiler_RC \ |
| 18620 | CC_RC \ |
| 18621 | LD_RC \ |
| 18622 | lt_prog_compiler_wl_RC \ |
| 18623 | lt_prog_compiler_pic_RC \ |
| 18624 | lt_prog_compiler_static_RC \ |
| 18625 | lt_prog_compiler_no_builtin_flag_RC \ |
| 18626 | export_dynamic_flag_spec_RC \ |
| 18627 | thread_safe_flag_spec_RC \ |
| 18628 | whole_archive_flag_spec_RC \ |
| 18629 | enable_shared_with_static_runtimes_RC \ |
| 18630 | old_archive_cmds_RC \ |
| 18631 | old_archive_from_new_cmds_RC \ |
| 18632 | predep_objects_RC \ |
| 18633 | postdep_objects_RC \ |
| 18634 | predeps_RC \ |
| 18635 | postdeps_RC \ |
| 18636 | compiler_lib_search_path_RC \ |
| 18637 | archive_cmds_RC \ |
| 18638 | archive_expsym_cmds_RC \ |
| 18639 | postinstall_cmds_RC \ |
| 18640 | postuninstall_cmds_RC \ |
| 18641 | old_archive_from_expsyms_cmds_RC \ |
| 18642 | allow_undefined_flag_RC \ |
| 18643 | no_undefined_flag_RC \ |
| 18644 | export_symbols_cmds_RC \ |
| 18645 | hardcode_libdir_flag_spec_RC \ |
| 18646 | hardcode_libdir_flag_spec_ld_RC \ |
| 18647 | hardcode_libdir_separator_RC \ |
| 18648 | hardcode_automatic_RC \ |
| 18649 | module_cmds_RC \ |
| 18650 | module_expsym_cmds_RC \ |
| 18651 | lt_cv_prog_compiler_c_o_RC \ |
| 18652 | exclude_expsyms_RC \ |
| 18653 | include_expsyms_RC; do |
| 18654 | |
| 18655 | case $var in |
| 18656 | old_archive_cmds_RC | \ |
| 18657 | old_archive_from_new_cmds_RC | \ |
| 18658 | archive_cmds_RC | \ |
| 18659 | archive_expsym_cmds_RC | \ |
| 18660 | module_cmds_RC | \ |
| 18661 | module_expsym_cmds_RC | \ |
| 18662 | old_archive_from_expsyms_cmds_RC | \ |
| 18663 | export_symbols_cmds_RC | \ |
| 18664 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18665 | postinstall_cmds | postuninstall_cmds | \ |
| 18666 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18667 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18668 | # Double-quote double-evaled strings. |
| 18669 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18670 | ;; |
| 18671 | *) |
| 18672 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18673 | ;; |
| 18674 | esac |
| 18675 | done |
| 18676 | |
| 18677 | case $lt_echo in |
| 18678 | *'\$0 --fallback-echo"') |
| 18679 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18680 | ;; |
| 18681 | esac |
| 18682 | |
| 18683 | cfgfile="$ofile" |
| 18684 | |
| 18685 | cat <<__EOF__ >> "$cfgfile" |
| 18686 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18687 | |
| 18688 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18689 | |
| 18690 | # Shell to use when invoking shell scripts. |
| 18691 | SHELL=$lt_SHELL |
| 18692 | |
| 18693 | # Whether or not to build shared libraries. |
| 18694 | build_libtool_libs=$enable_shared |
| 18695 | |
| 18696 | # Whether or not to build static libraries. |
| 18697 | build_old_libs=$enable_static |
| 18698 | |
| 18699 | # Whether or not to add -lc for building shared libraries. |
| 18700 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 18701 | |
| 18702 | # Whether or not to disallow shared libs when runtime libs are static |
| 18703 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 18704 | |
| 18705 | # Whether or not to optimize for fast installation. |
| 18706 | fast_install=$enable_fast_install |
| 18707 | |
| 18708 | # The host system. |
| 18709 | host_alias=$host_alias |
| 18710 | host=$host |
| 18711 | |
| 18712 | # An echo program that does not interpret backslashes. |
| 18713 | echo=$lt_echo |
| 18714 | |
| 18715 | # The archiver. |
| 18716 | AR=$lt_AR |
| 18717 | AR_FLAGS=$lt_AR_FLAGS |
| 18718 | |
| 18719 | # A C compiler. |
| 18720 | LTCC=$lt_LTCC |
| 18721 | |
| 18722 | # A language-specific compiler. |
| 18723 | CC=$lt_compiler_RC |
| 18724 | |
| 18725 | # Is the compiler the GNU C compiler? |
| 18726 | with_gcc=$GCC_RC |
| 18727 | |
| 18728 | # An ERE matcher. |
| 18729 | EGREP=$lt_EGREP |
| 18730 | |
| 18731 | # The linker used to build libraries. |
| 18732 | LD=$lt_LD_RC |
| 18733 | |
| 18734 | # Whether we need hard or soft links. |
| 18735 | LN_S=$lt_LN_S |
| 18736 | |
| 18737 | # A BSD-compatible nm program. |
| 18738 | NM=$lt_NM |
| 18739 | |
| 18740 | # A symbol stripping program |
| 18741 | STRIP=$lt_STRIP |
| 18742 | |
| 18743 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18744 | MAGIC_CMD=$MAGIC_CMD |
| 18745 | |
| 18746 | # Used on cygwin: DLL creation program. |
| 18747 | DLLTOOL="$DLLTOOL" |
| 18748 | |
| 18749 | # Used on cygwin: object dumper. |
| 18750 | OBJDUMP="$OBJDUMP" |
| 18751 | |
| 18752 | # Used on cygwin: assembler. |
| 18753 | AS="$AS" |
| 18754 | |
| 18755 | # The name of the directory that contains temporary libtool files. |
| 18756 | objdir=$objdir |
| 18757 | |
| 18758 | # How to create reloadable object files. |
| 18759 | reload_flag=$lt_reload_flag |
| 18760 | reload_cmds=$lt_reload_cmds |
| 18761 | |
| 18762 | # How to pass a linker flag through the compiler. |
| 18763 | wl=$lt_lt_prog_compiler_wl_RC |
| 18764 | |
| 18765 | # Object file suffix (normally "o"). |
| 18766 | objext="$ac_objext" |
| 18767 | |
| 18768 | # Old archive suffix (normally "a"). |
| 18769 | libext="$libext" |
| 18770 | |
| 18771 | # Shared library suffix (normally ".so"). |
| 18772 | shrext_cmds='$shrext_cmds' |
| 18773 | |
| 18774 | # Executable file suffix (normally ""). |
| 18775 | exeext="$exeext" |
| 18776 | |
| 18777 | # Additional compiler flags for building library objects. |
| 18778 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 18779 | pic_mode=$pic_mode |
| 18780 | |
| 18781 | # What is the maximum length of a command? |
| 18782 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18783 | |
| 18784 | # Does compiler simultaneously support -c and -o options? |
| 18785 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 18786 | |
| 18787 | # Must we lock files when doing compilation ? |
| 18788 | need_locks=$lt_need_locks |
| 18789 | |
| 18790 | # Do we need the lib prefix for modules? |
| 18791 | need_lib_prefix=$need_lib_prefix |
| 18792 | |
| 18793 | # Do we need a version for libraries? |
| 18794 | need_version=$need_version |
| 18795 | |
| 18796 | # Whether dlopen is supported. |
| 18797 | dlopen_support=$enable_dlopen |
| 18798 | |
| 18799 | # Whether dlopen of programs is supported. |
| 18800 | dlopen_self=$enable_dlopen_self |
| 18801 | |
| 18802 | # Whether dlopen of statically linked programs is supported. |
| 18803 | dlopen_self_static=$enable_dlopen_self_static |
| 18804 | |
| 18805 | # Compiler flag to prevent dynamic linking. |
| 18806 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 18807 | |
| 18808 | # Compiler flag to turn off builtin functions. |
| 18809 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 18810 | |
| 18811 | # Compiler flag to allow reflexive dlopens. |
| 18812 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 18813 | |
| 18814 | # Compiler flag to generate shared objects directly from archives. |
| 18815 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 18816 | |
| 18817 | # Compiler flag to generate thread-safe objects. |
| 18818 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 18819 | |
| 18820 | # Library versioning type. |
| 18821 | version_type=$version_type |
| 18822 | |
| 18823 | # Format of library name prefix. |
| 18824 | libname_spec=$lt_libname_spec |
| 18825 | |
| 18826 | # List of archive names. First name is the real one, the rest are links. |
| 18827 | # The last name is the one that the linker finds with -lNAME. |
| 18828 | library_names_spec=$lt_library_names_spec |
| 18829 | |
| 18830 | # The coded name of the library, if different from the real name. |
| 18831 | soname_spec=$lt_soname_spec |
| 18832 | |
| 18833 | # Commands used to build and install an old-style archive. |
| 18834 | RANLIB=$lt_RANLIB |
| 18835 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 18836 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18837 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18838 | |
| 18839 | # Create an old-style archive from a shared archive. |
| 18840 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 18841 | |
| 18842 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18843 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 18844 | |
| 18845 | # Commands used to build and install a shared archive. |
| 18846 | archive_cmds=$lt_archive_cmds_RC |
| 18847 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 18848 | postinstall_cmds=$lt_postinstall_cmds |
| 18849 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18850 | |
| 18851 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18852 | module_cmds=$lt_module_cmds_RC |
| 18853 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 18854 | |
| 18855 | # Commands to strip libraries. |
| 18856 | old_striplib=$lt_old_striplib |
| 18857 | striplib=$lt_striplib |
| 18858 | |
| 18859 | # Dependencies to place before the objects being linked to create a |
| 18860 | # shared library. |
| 18861 | predep_objects=$lt_predep_objects_RC |
| 18862 | |
| 18863 | # Dependencies to place after the objects being linked to create a |
| 18864 | # shared library. |
| 18865 | postdep_objects=$lt_postdep_objects_RC |
| 18866 | |
| 18867 | # Dependencies to place before the objects being linked to create a |
| 18868 | # shared library. |
| 18869 | predeps=$lt_predeps_RC |
| 18870 | |
| 18871 | # Dependencies to place after the objects being linked to create a |
| 18872 | # shared library. |
| 18873 | postdeps=$lt_postdeps_RC |
| 18874 | |
| 18875 | # The library search path used internally by the compiler when linking |
| 18876 | # a shared library. |
| 18877 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 18878 | |
| 18879 | # Method to check whether dependent libraries are shared objects. |
| 18880 | deplibs_check_method=$lt_deplibs_check_method |
| 18881 | |
| 18882 | # Command to use when deplibs_check_method == file_magic. |
| 18883 | file_magic_cmd=$lt_file_magic_cmd |
| 18884 | |
| 18885 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18886 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 18887 | |
| 18888 | # Flag that forces no undefined symbols. |
| 18889 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 18890 | |
| 18891 | # Commands used to finish a libtool library installation in a directory. |
| 18892 | finish_cmds=$lt_finish_cmds |
| 18893 | |
| 18894 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18895 | finish_eval=$lt_finish_eval |
| 18896 | |
| 18897 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18898 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18899 | |
| 18900 | # Transform the output of nm in a proper C declaration |
| 18901 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18902 | |
| 18903 | # Transform the output of nm in a C name address pair |
| 18904 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18905 | |
| 18906 | # This is the shared library runtime path variable. |
| 18907 | runpath_var=$runpath_var |
| 18908 | |
| 18909 | # This is the shared library path variable. |
| 18910 | shlibpath_var=$shlibpath_var |
| 18911 | |
| 18912 | # Is shlibpath searched before the hard-coded library search path? |
| 18913 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18914 | |
| 18915 | # How to hardcode a shared library path into an executable. |
| 18916 | hardcode_action=$hardcode_action_RC |
| 18917 | |
| 18918 | # Whether we should hardcode library paths into libraries. |
| 18919 | hardcode_into_libs=$hardcode_into_libs |
| 18920 | |
| 18921 | # Flag to hardcode \$libdir into a binary during linking. |
| 18922 | # This must work even if \$libdir does not exist. |
| 18923 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 18924 | |
| 18925 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18926 | # a binary during linking. This must work even if \$libdir does |
| 18927 | # not exist. |
| 18928 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 18929 | |
| 18930 | # Whether we need a single -rpath flag with a separated argument. |
| 18931 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 18932 | |
| 18933 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18934 | # resulting binary. |
| 18935 | hardcode_direct=$hardcode_direct_RC |
| 18936 | |
| 18937 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18938 | # resulting binary. |
| 18939 | hardcode_minus_L=$hardcode_minus_L_RC |
| 18940 | |
| 18941 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18942 | # the resulting binary. |
| 18943 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 18944 | |
| 18945 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18946 | # and all subsequent libraries and executables linked against it. |
| 18947 | hardcode_automatic=$hardcode_automatic_RC |
| 18948 | |
| 18949 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18950 | # restored at relink time. |
| 18951 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18952 | |
| 18953 | # Whether libtool must link a program against all its dependency libraries. |
| 18954 | link_all_deplibs=$link_all_deplibs_RC |
| 18955 | |
| 18956 | # Compile-time system search path for libraries |
| 18957 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18958 | |
| 18959 | # Run-time system search path for libraries |
| 18960 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18961 | |
| 18962 | # Fix the shell variable \$srcfile for the compiler. |
| 18963 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 18964 | |
| 18965 | # Set to yes if exported symbols are required. |
| 18966 | always_export_symbols=$always_export_symbols_RC |
| 18967 | |
| 18968 | # The commands to list exported symbols. |
| 18969 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 18970 | |
| 18971 | # The commands to extract the exported symbol list from a shared archive. |
| 18972 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18973 | |
| 18974 | # Symbols that should not be listed in the preloaded symbols. |
| 18975 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 18976 | |
| 18977 | # Symbols that must always be exported. |
| 18978 | include_expsyms=$lt_include_expsyms_RC |
| 18979 | |
| 18980 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18981 | |
| 18982 | __EOF__ |
| 18983 | |
| 18984 | |
| 18985 | else |
| 18986 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18987 | # `config.status --recheck' to rerun these tests and create the |
| 18988 | # libtool script then. |
| 18989 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18990 | if test -f "$ltmain_in"; then |
| 18991 | test -f Makefile && make "$ltmain" |
| 18992 | fi |
| 18993 | fi |
| 18994 | |
| 18995 | |
| 18996 | ac_ext=c |
| 18997 | ac_cpp='$CPP $CPPFLAGS' |
| 18998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19001 | |
| 19002 | CC="$lt_save_CC" |
| 19003 | |
| 19004 | ;; |
| 19005 | |
| 19006 | *) |
| 19007 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19008 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19009 | { (exit 1); exit 1; }; } |
| 19010 | ;; |
| 19011 | esac |
| 19012 | |
| 19013 | # Append the new tag name to the list of available tags. |
| 19014 | if test -n "$tagname" ; then |
| 19015 | available_tags="$available_tags $tagname" |
| 19016 | fi |
| 19017 | fi |
| 19018 | done |
| 19019 | IFS="$lt_save_ifs" |
| 19020 | |
| 19021 | # Now substitute the updated list of available tags. |
| 19022 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19023 | mv "${ofile}T" "$ofile" |
| 19024 | chmod +x "$ofile" |
| 19025 | else |
| 19026 | rm -f "${ofile}T" |
| 19027 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19028 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19029 | { (exit 1); exit 1; }; } |
| 19030 | fi |
| 19031 | fi |
| 19032 | |
| 19033 | |
| 19034 | |
| 19035 | # This can be used to rebuild libtool when needed |
| 19036 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 19037 | |
| 19038 | # Always use our own libtool. |
| 19039 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 19040 | |
| 19041 | # Prevent multiple expansion |
| 19042 | |
| 19043 | |
| 19044 | |
| 19045 | |
| 19046 | |
| 19047 | |
| 19048 | |
| 19049 | |
| 19050 | |
| 19051 | |
| 19052 | |
| 19053 | |
| 19054 | |
| 19055 | |
| 19056 | |
| 19057 | |
| 19058 | |
| 19059 | |
| 19060 | |
| 19061 | |
| 19062 | |
| 19063 | |
| 19064 | # Check whether some low-level functions/files are available |
| 19065 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 19066 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 19067 | if test "${ac_cv_header_stdc+set}" = set; then |
| 19068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19069 | else |
| 19070 | cat >conftest.$ac_ext <<_ACEOF |
| 19071 | /* confdefs.h. */ |
| 19072 | _ACEOF |
| 19073 | cat confdefs.h >>conftest.$ac_ext |
| 19074 | cat >>conftest.$ac_ext <<_ACEOF |
| 19075 | /* end confdefs.h. */ |
| 19076 | #include <stdlib.h> |
| 19077 | #include <stdarg.h> |
| 19078 | #include <string.h> |
| 19079 | #include <float.h> |
| 19080 | |
| 19081 | int |
| 19082 | main () |
| 19083 | { |
| 19084 | |
| 19085 | ; |
| 19086 | return 0; |
| 19087 | } |
| 19088 | _ACEOF |
| 19089 | rm -f conftest.$ac_objext |
| 19090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19091 | (eval $ac_compile) 2>conftest.er1 |
| 19092 | ac_status=$? |
| 19093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19094 | rm -f conftest.er1 |
| 19095 | cat conftest.err >&5 |
| 19096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19097 | (exit $ac_status); } && |
| 19098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19100 | (eval $ac_try) 2>&5 |
| 19101 | ac_status=$? |
| 19102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19103 | (exit $ac_status); }; } && |
| 19104 | { ac_try='test -s conftest.$ac_objext' |
| 19105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19106 | (eval $ac_try) 2>&5 |
| 19107 | ac_status=$? |
| 19108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19109 | (exit $ac_status); }; }; then |
| 19110 | ac_cv_header_stdc=yes |
| 19111 | else |
| 19112 | echo "$as_me: failed program was:" >&5 |
| 19113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19114 | |
| 19115 | ac_cv_header_stdc=no |
| 19116 | fi |
| 19117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19118 | |
| 19119 | if test $ac_cv_header_stdc = yes; then |
| 19120 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 19121 | cat >conftest.$ac_ext <<_ACEOF |
| 19122 | /* confdefs.h. */ |
| 19123 | _ACEOF |
| 19124 | cat confdefs.h >>conftest.$ac_ext |
| 19125 | cat >>conftest.$ac_ext <<_ACEOF |
| 19126 | /* end confdefs.h. */ |
| 19127 | #include <string.h> |
| 19128 | |
| 19129 | _ACEOF |
| 19130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19131 | $EGREP "memchr" >/dev/null 2>&1; then |
| 19132 | : |
| 19133 | else |
| 19134 | ac_cv_header_stdc=no |
| 19135 | fi |
| 19136 | rm -f conftest* |
| 19137 | |
| 19138 | fi |
| 19139 | |
| 19140 | if test $ac_cv_header_stdc = yes; then |
| 19141 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 19142 | cat >conftest.$ac_ext <<_ACEOF |
| 19143 | /* confdefs.h. */ |
| 19144 | _ACEOF |
| 19145 | cat confdefs.h >>conftest.$ac_ext |
| 19146 | cat >>conftest.$ac_ext <<_ACEOF |
| 19147 | /* end confdefs.h. */ |
| 19148 | #include <stdlib.h> |
| 19149 | |
| 19150 | _ACEOF |
| 19151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19152 | $EGREP "free" >/dev/null 2>&1; then |
| 19153 | : |
| 19154 | else |
| 19155 | ac_cv_header_stdc=no |
| 19156 | fi |
| 19157 | rm -f conftest* |
| 19158 | |
| 19159 | fi |
| 19160 | |
| 19161 | if test $ac_cv_header_stdc = yes; then |
| 19162 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 19163 | if test "$cross_compiling" = yes; then |
| 19164 | : |
| 19165 | else |
| 19166 | cat >conftest.$ac_ext <<_ACEOF |
| 19167 | /* confdefs.h. */ |
| 19168 | _ACEOF |
| 19169 | cat confdefs.h >>conftest.$ac_ext |
| 19170 | cat >>conftest.$ac_ext <<_ACEOF |
| 19171 | /* end confdefs.h. */ |
| 19172 | #include <ctype.h> |
| 19173 | #if ((' ' & 0x0FF) == 0x020) |
| 19174 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19175 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19176 | #else |
| 19177 | # define ISLOWER(c) \ |
| 19178 | (('a' <= (c) && (c) <= 'i') \ |
| 19179 | || ('j' <= (c) && (c) <= 'r') \ |
| 19180 | || ('s' <= (c) && (c) <= 'z')) |
| 19181 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19182 | #endif |
| 19183 | |
| 19184 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19185 | int |
| 19186 | main () |
| 19187 | { |
| 19188 | int i; |
| 19189 | for (i = 0; i < 256; i++) |
| 19190 | if (XOR (islower (i), ISLOWER (i)) |
| 19191 | || toupper (i) != TOUPPER (i)) |
| 19192 | exit(2); |
| 19193 | exit (0); |
| 19194 | } |
| 19195 | _ACEOF |
| 19196 | rm -f conftest$ac_exeext |
| 19197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19198 | (eval $ac_link) 2>&5 |
| 19199 | ac_status=$? |
| 19200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19201 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19203 | (eval $ac_try) 2>&5 |
| 19204 | ac_status=$? |
| 19205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19206 | (exit $ac_status); }; }; then |
| 19207 | : |
| 19208 | else |
| 19209 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19210 | echo "$as_me: failed program was:" >&5 |
| 19211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19212 | |
| 19213 | ( exit $ac_status ) |
| 19214 | ac_cv_header_stdc=no |
| 19215 | fi |
| 19216 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19217 | fi |
| 19218 | fi |
| 19219 | fi |
| 19220 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 19221 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 19222 | if test $ac_cv_header_stdc = yes; then |
| 19223 | |
| 19224 | cat >>confdefs.h <<\_ACEOF |
| 19225 | #define STDC_HEADERS 1 |
| 19226 | _ACEOF |
| 19227 | |
| 19228 | fi |
| 19229 | |
| 19230 | |
| 19231 | # Find out what namespace 'normal' STL code lives in, and also what namespace |
| 19232 | # the user wants our classes to be defined in |
| 19233 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 19234 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 19235 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 19236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19237 | else |
| 19238 | |
| 19239 | |
| 19240 | ac_ext=cc |
| 19241 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19242 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19243 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19244 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19245 | |
| 19246 | cat >conftest.$ac_ext <<_ACEOF |
| 19247 | /* confdefs.h. */ |
| 19248 | _ACEOF |
| 19249 | cat confdefs.h >>conftest.$ac_ext |
| 19250 | cat >>conftest.$ac_ext <<_ACEOF |
| 19251 | /* end confdefs.h. */ |
| 19252 | namespace Outer { |
| 19253 | namespace Inner { int i = 0; }} |
| 19254 | int |
| 19255 | main () |
| 19256 | { |
| 19257 | using namespace Outer::Inner; return i; |
| 19258 | ; |
| 19259 | return 0; |
| 19260 | } |
| 19261 | _ACEOF |
| 19262 | rm -f conftest.$ac_objext |
| 19263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19264 | (eval $ac_compile) 2>conftest.er1 |
| 19265 | ac_status=$? |
| 19266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19267 | rm -f conftest.er1 |
| 19268 | cat conftest.err >&5 |
| 19269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19270 | (exit $ac_status); } && |
| 19271 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19273 | (eval $ac_try) 2>&5 |
| 19274 | ac_status=$? |
| 19275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19276 | (exit $ac_status); }; } && |
| 19277 | { ac_try='test -s conftest.$ac_objext' |
| 19278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19279 | (eval $ac_try) 2>&5 |
| 19280 | ac_status=$? |
| 19281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19282 | (exit $ac_status); }; }; then |
| 19283 | ac_cv_cxx_namespaces=yes |
| 19284 | else |
| 19285 | echo "$as_me: failed program was:" >&5 |
| 19286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19287 | |
| 19288 | ac_cv_cxx_namespaces=no |
| 19289 | fi |
| 19290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19291 | ac_ext=c |
| 19292 | ac_cpp='$CPP $CPPFLAGS' |
| 19293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19296 | |
| 19297 | fi |
| 19298 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 19299 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 19300 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 19301 | |
| 19302 | cat >>confdefs.h <<\_ACEOF |
| 19303 | #define HAVE_NAMESPACES 1 |
| 19304 | _ACEOF |
| 19305 | |
| 19306 | fi |
| 19307 | echo "$as_me:$LINENO: checking what namespace STL code is in" >&5 |
| 19308 | echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6 |
| 19309 | if test "${ac_cv_cxx_stl_namespace+set}" = set; then |
| 19310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19311 | else |
| 19312 | |
| 19313 | |
| 19314 | |
| 19315 | ac_ext=cc |
| 19316 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19317 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19318 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19319 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19320 | |
| 19321 | cat >conftest.$ac_ext <<_ACEOF |
| 19322 | /* confdefs.h. */ |
| 19323 | _ACEOF |
| 19324 | cat confdefs.h >>conftest.$ac_ext |
| 19325 | cat >>conftest.$ac_ext <<_ACEOF |
| 19326 | /* end confdefs.h. */ |
| 19327 | #include <vector> |
| 19328 | int |
| 19329 | main () |
| 19330 | { |
| 19331 | vector<int> t; return 0; |
| 19332 | ; |
| 19333 | return 0; |
| 19334 | } |
| 19335 | _ACEOF |
| 19336 | rm -f conftest.$ac_objext |
| 19337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19338 | (eval $ac_compile) 2>conftest.er1 |
| 19339 | ac_status=$? |
| 19340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19341 | rm -f conftest.er1 |
| 19342 | cat conftest.err >&5 |
| 19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19344 | (exit $ac_status); } && |
| 19345 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19347 | (eval $ac_try) 2>&5 |
| 19348 | ac_status=$? |
| 19349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19350 | (exit $ac_status); }; } && |
| 19351 | { ac_try='test -s conftest.$ac_objext' |
| 19352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19353 | (eval $ac_try) 2>&5 |
| 19354 | ac_status=$? |
| 19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19356 | (exit $ac_status); }; }; then |
| 19357 | ac_cv_cxx_stl_namespace=none |
| 19358 | else |
| 19359 | echo "$as_me: failed program was:" >&5 |
| 19360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19361 | |
| 19362 | fi |
| 19363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19364 | cat >conftest.$ac_ext <<_ACEOF |
| 19365 | /* confdefs.h. */ |
| 19366 | _ACEOF |
| 19367 | cat confdefs.h >>conftest.$ac_ext |
| 19368 | cat >>conftest.$ac_ext <<_ACEOF |
| 19369 | /* end confdefs.h. */ |
| 19370 | #include <vector> |
| 19371 | int |
| 19372 | main () |
| 19373 | { |
| 19374 | std::vector<int> t; return 0; |
| 19375 | ; |
| 19376 | return 0; |
| 19377 | } |
| 19378 | _ACEOF |
| 19379 | rm -f conftest.$ac_objext |
| 19380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19381 | (eval $ac_compile) 2>conftest.er1 |
| 19382 | ac_status=$? |
| 19383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19384 | rm -f conftest.er1 |
| 19385 | cat conftest.err >&5 |
| 19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19387 | (exit $ac_status); } && |
| 19388 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19390 | (eval $ac_try) 2>&5 |
| 19391 | ac_status=$? |
| 19392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19393 | (exit $ac_status); }; } && |
| 19394 | { ac_try='test -s conftest.$ac_objext' |
| 19395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19396 | (eval $ac_try) 2>&5 |
| 19397 | ac_status=$? |
| 19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19399 | (exit $ac_status); }; }; then |
| 19400 | ac_cv_cxx_stl_namespace=std |
| 19401 | else |
| 19402 | echo "$as_me: failed program was:" >&5 |
| 19403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19404 | |
| 19405 | fi |
| 19406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19407 | ac_ext=c |
| 19408 | ac_cpp='$CPP $CPPFLAGS' |
| 19409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19412 | |
| 19413 | fi |
| 19414 | echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5 |
| 19415 | echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6 |
| 19416 | if test "$ac_cv_cxx_stl_namespace" = none; then |
| 19417 | |
| 19418 | cat >>confdefs.h <<\_ACEOF |
| 19419 | #define STL_NAMESPACE |
| 19420 | _ACEOF |
| 19421 | |
| 19422 | fi |
| 19423 | if test "$ac_cv_cxx_stl_namespace" = std; then |
| 19424 | |
| 19425 | cat >>confdefs.h <<\_ACEOF |
| 19426 | #define STL_NAMESPACE std |
| 19427 | _ACEOF |
| 19428 | |
| 19429 | fi |
| 19430 | |
| 19431 | google_namespace_default=google_airbag |
| 19432 | # Check whether --enable-namespace or --disable-namespace was given. |
| 19433 | if test "${enable_namespace+set}" = set; then |
| 19434 | enableval="$enable_namespace" |
| 19435 | case "$enableval" in |
| 19436 | yes) google_namespace="$google_namespace_default" ;; |
| 19437 | no) google_namespace="" ;; |
| 19438 | *) google_namespace="$enableval" ;; |
| 19439 | esac |
| 19440 | else |
| 19441 | google_namespace="$google_namespace_default" |
| 19442 | fi; |
| 19443 | if test -n "$google_namespace"; then |
| 19444 | ac_google_namespace="$google_namespace" |
| 19445 | ac_google_start_namespace="namespace $google_namespace {" |
| 19446 | ac_google_end_namespace="}" |
| 19447 | else |
| 19448 | ac_google_namespace="" |
| 19449 | ac_google_start_namespace="" |
| 19450 | ac_google_end_namespace="" |
| 19451 | fi |
| 19452 | |
| 19453 | cat >>confdefs.h <<_ACEOF |
| 19454 | #define GOOGLE_NAMESPACE $ac_google_namespace |
| 19455 | _ACEOF |
| 19456 | |
| 19457 | |
| 19458 | cat >>confdefs.h <<_ACEOF |
| 19459 | #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace |
| 19460 | _ACEOF |
| 19461 | |
| 19462 | |
| 19463 | cat >>confdefs.h <<_ACEOF |
| 19464 | #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace |
| 19465 | _ACEOF |
| 19466 | |
| 19467 | |
| 19468 | |
| 19469 | # Write generated configuration file |
| 19470 | ac_config_files="$ac_config_files Makefile" |
| 19471 | |
| 19472 | cat >confcache <<\_ACEOF |
| 19473 | # This file is a shell script that caches the results of configure |
| 19474 | # tests run on this system so they can be shared between configure |
| 19475 | # scripts and configure runs, see configure's option --config-cache. |
| 19476 | # It is not useful on other systems. If it contains results you don't |
| 19477 | # want to keep, you may remove or edit it. |
| 19478 | # |
| 19479 | # config.status only pays attention to the cache file if you give it |
| 19480 | # the --recheck option to rerun configure. |
| 19481 | # |
| 19482 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 19483 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 19484 | # following values. |
| 19485 | |
| 19486 | _ACEOF |
| 19487 | |
| 19488 | # The following way of writing the cache mishandles newlines in values, |
| 19489 | # but we know of no workaround that is simple, portable, and efficient. |
| 19490 | # So, don't put newlines in cache variables' values. |
| 19491 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 19492 | # and sets the high bit in the cache file unless we assign to the vars. |
| 19493 | { |
| 19494 | (set) 2>&1 | |
| 19495 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 19496 | *ac_space=\ *) |
| 19497 | # `set' does not quote correctly, so add quotes (double-quote |
| 19498 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 19499 | sed -n \ |
| 19500 | "s/'/'\\\\''/g; |
| 19501 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 19502 | ;; |
| 19503 | *) |
| 19504 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 19505 | sed -n \ |
| 19506 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 19507 | ;; |
| 19508 | esac; |
| 19509 | } | |
| 19510 | sed ' |
| 19511 | t clear |
| 19512 | : clear |
| 19513 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 19514 | t end |
| 19515 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 19516 | : end' >>confcache |
| 19517 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 19518 | if test -w $cache_file; then |
| 19519 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 19520 | cat confcache >$cache_file |
| 19521 | else |
| 19522 | echo "not updating unwritable cache $cache_file" |
| 19523 | fi |
| 19524 | fi |
| 19525 | rm -f confcache |
| 19526 | |
| 19527 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 19528 | # Let make expand exec_prefix. |
| 19529 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 19530 | |
| 19531 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 19532 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 19533 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 19534 | # (actually we leave an empty line to preserve line numbers). |
| 19535 | if test "x$srcdir" = x.; then |
| 19536 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 19537 | s/:*\$(srcdir):*/:/; |
| 19538 | s/:*\${srcdir}:*/:/; |
| 19539 | s/:*@srcdir@:*/:/; |
| 19540 | s/^\([^=]*=[ ]*\):*/\1/; |
| 19541 | s/:*$//; |
| 19542 | s/^[^=]*=[ ]*$//; |
| 19543 | }' |
| 19544 | fi |
| 19545 | |
| 19546 | DEFS=-DHAVE_CONFIG_H |
| 19547 | |
| 19548 | ac_libobjs= |
| 19549 | ac_ltlibobjs= |
| 19550 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 19551 | # 1. Remove the extension, and $U if already installed. |
| 19552 | ac_i=`echo "$ac_i" | |
| 19553 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 19554 | # 2. Add them. |
| 19555 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 19556 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 19557 | done |
| 19558 | LIBOBJS=$ac_libobjs |
| 19559 | |
| 19560 | LTLIBOBJS=$ac_ltlibobjs |
| 19561 | |
| 19562 | |
| 19563 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 19564 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 19565 | Usually this means the macro was only invoked conditionally." >&5 |
| 19566 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 19567 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19568 | { (exit 1); exit 1; }; } |
| 19569 | fi |
| 19570 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 19571 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 19572 | Usually this means the macro was only invoked conditionally." >&5 |
| 19573 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 19574 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19575 | { (exit 1); exit 1; }; } |
| 19576 | fi |
| 19577 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 19578 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 19579 | Usually this means the macro was only invoked conditionally." >&5 |
| 19580 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 19581 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19582 | { (exit 1); exit 1; }; } |
| 19583 | fi |
| 19584 | |
| 19585 | : ${CONFIG_STATUS=./config.status} |
| 19586 | ac_clean_files_save=$ac_clean_files |
| 19587 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 19588 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 19589 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 19590 | cat >$CONFIG_STATUS <<_ACEOF |
| 19591 | #! $SHELL |
| 19592 | # Generated by $as_me. |
| 19593 | # Run this file to recreate the current configuration. |
| 19594 | # Compiler output produced by configure, useful for debugging |
| 19595 | # configure, is in config.log if it exists. |
| 19596 | |
| 19597 | debug=false |
| 19598 | ac_cs_recheck=false |
| 19599 | ac_cs_silent=false |
| 19600 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 19601 | _ACEOF |
| 19602 | |
| 19603 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19604 | ## --------------------- ## |
| 19605 | ## M4sh Initialization. ## |
| 19606 | ## --------------------- ## |
| 19607 | |
| 19608 | # Be Bourne compatible |
| 19609 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19610 | emulate sh |
| 19611 | NULLCMD=: |
| 19612 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19613 | # is contrary to our usage. Disable this feature. |
| 19614 | alias -g '${1+"$@"}'='"$@"' |
| 19615 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 19616 | set -o posix |
| 19617 | fi |
| 19618 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19619 | |
| 19620 | # Support unset when possible. |
| 19621 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 19622 | as_unset=unset |
| 19623 | else |
| 19624 | as_unset=false |
| 19625 | fi |
| 19626 | |
| 19627 | |
| 19628 | # Work around bugs in pre-3.0 UWIN ksh. |
| 19629 | $as_unset ENV MAIL MAILPATH |
| 19630 | PS1='$ ' |
| 19631 | PS2='> ' |
| 19632 | PS4='+ ' |
| 19633 | |
| 19634 | # NLS nuisances. |
| 19635 | for as_var in \ |
| 19636 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 19637 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 19638 | LC_TELEPHONE LC_TIME |
| 19639 | do |
| 19640 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 19641 | eval $as_var=C; export $as_var |
| 19642 | else |
| 19643 | $as_unset $as_var |
| 19644 | fi |
| 19645 | done |
| 19646 | |
| 19647 | # Required to use basename. |
| 19648 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19649 | as_expr=expr |
| 19650 | else |
| 19651 | as_expr=false |
| 19652 | fi |
| 19653 | |
| 19654 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 19655 | as_basename=basename |
| 19656 | else |
| 19657 | as_basename=false |
| 19658 | fi |
| 19659 | |
| 19660 | |
| 19661 | # Name of the executable. |
| 19662 | as_me=`$as_basename "$0" || |
| 19663 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19664 | X"$0" : 'X\(//\)$' \| \ |
| 19665 | X"$0" : 'X\(/\)$' \| \ |
| 19666 | . : '\(.\)' 2>/dev/null || |
| 19667 | echo X/"$0" | |
| 19668 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 19669 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 19670 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 19671 | s/.*/./; q'` |
| 19672 | |
| 19673 | |
| 19674 | # PATH needs CR, and LINENO needs CR and PATH. |
| 19675 | # Avoid depending upon Character Ranges. |
| 19676 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19677 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19678 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19679 | as_cr_digits='0123456789' |
| 19680 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19681 | |
| 19682 | # The user is always right. |
| 19683 | if test "${PATH_SEPARATOR+set}" != set; then |
| 19684 | echo "#! /bin/sh" >conf$$.sh |
| 19685 | echo "exit 0" >>conf$$.sh |
| 19686 | chmod +x conf$$.sh |
| 19687 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 19688 | PATH_SEPARATOR=';' |
| 19689 | else |
| 19690 | PATH_SEPARATOR=: |
| 19691 | fi |
| 19692 | rm -f conf$$.sh |
| 19693 | fi |
| 19694 | |
| 19695 | |
| 19696 | as_lineno_1=$LINENO |
| 19697 | as_lineno_2=$LINENO |
| 19698 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19699 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19700 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 19701 | # Find who we are. Look in the path if we contain no path at all |
| 19702 | # relative or not. |
| 19703 | case $0 in |
| 19704 | *[\\/]* ) as_myself=$0 ;; |
| 19705 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19706 | for as_dir in $PATH |
| 19707 | do |
| 19708 | IFS=$as_save_IFS |
| 19709 | test -z "$as_dir" && as_dir=. |
| 19710 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 19711 | done |
| 19712 | |
| 19713 | ;; |
| 19714 | esac |
| 19715 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 19716 | # in which case we are not to be found in the path. |
| 19717 | if test "x$as_myself" = x; then |
| 19718 | as_myself=$0 |
| 19719 | fi |
| 19720 | if test ! -f "$as_myself"; then |
| 19721 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 19722 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 19723 | { (exit 1); exit 1; }; } |
| 19724 | fi |
| 19725 | case $CONFIG_SHELL in |
| 19726 | '') |
| 19727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19728 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 19729 | do |
| 19730 | IFS=$as_save_IFS |
| 19731 | test -z "$as_dir" && as_dir=. |
| 19732 | for as_base in sh bash ksh sh5; do |
| 19733 | case $as_dir in |
| 19734 | /*) |
| 19735 | if ("$as_dir/$as_base" -c ' |
| 19736 | as_lineno_1=$LINENO |
| 19737 | as_lineno_2=$LINENO |
| 19738 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19739 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19740 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 19741 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 19742 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 19743 | CONFIG_SHELL=$as_dir/$as_base |
| 19744 | export CONFIG_SHELL |
| 19745 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 19746 | fi;; |
| 19747 | esac |
| 19748 | done |
| 19749 | done |
| 19750 | ;; |
| 19751 | esac |
| 19752 | |
| 19753 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 19754 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 19755 | # line-number line before each line; the second 'sed' does the real |
| 19756 | # work. The second script uses 'N' to pair each line-number line |
| 19757 | # with the numbered line, and appends trailing '-' during |
| 19758 | # substitution so that $LINENO is not a special case at line end. |
| 19759 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 19760 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 19761 | sed '=' <$as_myself | |
| 19762 | sed ' |
| 19763 | N |
| 19764 | s,$,-, |
| 19765 | : loop |
| 19766 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 19767 | t loop |
| 19768 | s,-$,, |
| 19769 | s,^['$as_cr_digits']*\n,, |
| 19770 | ' >$as_me.lineno && |
| 19771 | chmod +x $as_me.lineno || |
| 19772 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 19773 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 19774 | { (exit 1); exit 1; }; } |
| 19775 | |
| 19776 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 19777 | # (the dirname of $[0] is not the place where we might find the |
| 19778 | # original and so on. Autoconf is especially sensible to this). |
| 19779 | . ./$as_me.lineno |
| 19780 | # Exit status is that of the last command. |
| 19781 | exit |
| 19782 | } |
| 19783 | |
| 19784 | |
| 19785 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 19786 | *c*,-n*) ECHO_N= ECHO_C=' |
| 19787 | ' ECHO_T=' ' ;; |
| 19788 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 19789 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 19790 | esac |
| 19791 | |
| 19792 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19793 | as_expr=expr |
| 19794 | else |
| 19795 | as_expr=false |
| 19796 | fi |
| 19797 | |
| 19798 | rm -f conf$$ conf$$.exe conf$$.file |
| 19799 | echo >conf$$.file |
| 19800 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19801 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 19802 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 19803 | if test -f conf$$.exe; then |
| 19804 | # Don't use ln at all; we don't have any links |
| 19805 | as_ln_s='cp -p' |
| 19806 | else |
| 19807 | as_ln_s='ln -s' |
| 19808 | fi |
| 19809 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19810 | as_ln_s=ln |
| 19811 | else |
| 19812 | as_ln_s='cp -p' |
| 19813 | fi |
| 19814 | rm -f conf$$ conf$$.exe conf$$.file |
| 19815 | |
| 19816 | if mkdir -p . 2>/dev/null; then |
| 19817 | as_mkdir_p=: |
| 19818 | else |
| 19819 | test -d ./-p && rmdir ./-p |
| 19820 | as_mkdir_p=false |
| 19821 | fi |
| 19822 | |
| 19823 | as_executable_p="test -f" |
| 19824 | |
| 19825 | # Sed expression to map a string onto a valid CPP name. |
| 19826 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 19827 | |
| 19828 | # Sed expression to map a string onto a valid variable name. |
| 19829 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 19830 | |
| 19831 | |
| 19832 | # IFS |
| 19833 | # We need space, tab and new line, in precisely that order. |
| 19834 | as_nl=' |
| 19835 | ' |
| 19836 | IFS=" $as_nl" |
| 19837 | |
| 19838 | # CDPATH. |
| 19839 | $as_unset CDPATH |
| 19840 | |
| 19841 | exec 6>&1 |
| 19842 | |
| 19843 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 19844 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19845 | # values after options handling. Logging --version etc. is OK. |
| 19846 | exec 5>>config.log |
| 19847 | { |
| 19848 | echo |
| 19849 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19850 | ## Running $as_me. ## |
| 19851 | _ASBOX |
| 19852 | } >&5 |
| 19853 | cat >&5 <<_CSEOF |
| 19854 | |
| 19855 | This file was extended by airbag $as_me 0.1, which was |
| 19856 | generated by GNU Autoconf 2.59. Invocation command line was |
| 19857 | |
| 19858 | CONFIG_FILES = $CONFIG_FILES |
| 19859 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19860 | CONFIG_LINKS = $CONFIG_LINKS |
| 19861 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19862 | $ $0 $@ |
| 19863 | |
| 19864 | _CSEOF |
| 19865 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 19866 | echo >&5 |
| 19867 | _ACEOF |
| 19868 | |
| 19869 | # Files that config.status was made for. |
| 19870 | if test -n "$ac_config_files"; then |
| 19871 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 19872 | fi |
| 19873 | |
| 19874 | if test -n "$ac_config_headers"; then |
| 19875 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 19876 | fi |
| 19877 | |
| 19878 | if test -n "$ac_config_links"; then |
| 19879 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 19880 | fi |
| 19881 | |
| 19882 | if test -n "$ac_config_commands"; then |
| 19883 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 19884 | fi |
| 19885 | |
| 19886 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19887 | |
| 19888 | ac_cs_usage="\ |
| 19889 | \`$as_me' instantiates files from templates according to the |
| 19890 | current configuration. |
| 19891 | |
| 19892 | Usage: $0 [OPTIONS] [FILE]... |
| 19893 | |
| 19894 | -h, --help print this help, then exit |
| 19895 | -V, --version print version number, then exit |
| 19896 | -q, --quiet do not print progress messages |
| 19897 | -d, --debug don't remove temporary files |
| 19898 | --recheck update $as_me by reconfiguring in the same conditions |
| 19899 | --file=FILE[:TEMPLATE] |
| 19900 | instantiate the configuration file FILE |
| 19901 | --header=FILE[:TEMPLATE] |
| 19902 | instantiate the configuration header FILE |
| 19903 | |
| 19904 | Configuration files: |
| 19905 | $config_files |
| 19906 | |
| 19907 | Configuration headers: |
| 19908 | $config_headers |
| 19909 | |
| 19910 | Configuration commands: |
| 19911 | $config_commands |
| 19912 | |
| 19913 | Report bugs to <bug-autoconf@gnu.org>." |
| 19914 | _ACEOF |
| 19915 | |
| 19916 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19917 | ac_cs_version="\\ |
| 19918 | airbag config.status 0.1 |
| 19919 | configured by $0, generated by GNU Autoconf 2.59, |
| 19920 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 19921 | |
| 19922 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 19923 | This config.status script is free software; the Free Software Foundation |
| 19924 | gives unlimited permission to copy, distribute and modify it." |
| 19925 | srcdir=$srcdir |
| 19926 | INSTALL="$INSTALL" |
| 19927 | _ACEOF |
| 19928 | |
| 19929 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19930 | # If no file are specified by the user, then we need to provide default |
| 19931 | # value. By we need to know if files were specified by the user. |
| 19932 | ac_need_defaults=: |
| 19933 | while test $# != 0 |
| 19934 | do |
| 19935 | case $1 in |
| 19936 | --*=*) |
| 19937 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 19938 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 19939 | ac_shift=: |
| 19940 | ;; |
| 19941 | -*) |
| 19942 | ac_option=$1 |
| 19943 | ac_optarg=$2 |
| 19944 | ac_shift=shift |
| 19945 | ;; |
| 19946 | *) # This is not an option, so the user has probably given explicit |
| 19947 | # arguments. |
| 19948 | ac_option=$1 |
| 19949 | ac_need_defaults=false;; |
| 19950 | esac |
| 19951 | |
| 19952 | case $ac_option in |
| 19953 | # Handling of the options. |
| 19954 | _ACEOF |
| 19955 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19956 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19957 | ac_cs_recheck=: ;; |
| 19958 | --version | --vers* | -V ) |
| 19959 | echo "$ac_cs_version"; exit 0 ;; |
| 19960 | --he | --h) |
| 19961 | # Conflict between --help and --header |
| 19962 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 19963 | Try \`$0 --help' for more information." >&5 |
| 19964 | echo "$as_me: error: ambiguous option: $1 |
| 19965 | Try \`$0 --help' for more information." >&2;} |
| 19966 | { (exit 1); exit 1; }; };; |
| 19967 | --help | --hel | -h ) |
| 19968 | echo "$ac_cs_usage"; exit 0 ;; |
| 19969 | --debug | --d* | -d ) |
| 19970 | debug=: ;; |
| 19971 | --file | --fil | --fi | --f ) |
| 19972 | $ac_shift |
| 19973 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 19974 | ac_need_defaults=false;; |
| 19975 | --header | --heade | --head | --hea ) |
| 19976 | $ac_shift |
| 19977 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 19978 | ac_need_defaults=false;; |
| 19979 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19980 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19981 | ac_cs_silent=: ;; |
| 19982 | |
| 19983 | # This is an error. |
| 19984 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 19985 | Try \`$0 --help' for more information." >&5 |
| 19986 | echo "$as_me: error: unrecognized option: $1 |
| 19987 | Try \`$0 --help' for more information." >&2;} |
| 19988 | { (exit 1); exit 1; }; } ;; |
| 19989 | |
| 19990 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 19991 | |
| 19992 | esac |
| 19993 | shift |
| 19994 | done |
| 19995 | |
| 19996 | ac_configure_extra_args= |
| 19997 | |
| 19998 | if $ac_cs_silent; then |
| 19999 | exec 6>/dev/null |
| 20000 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20001 | fi |
| 20002 | |
| 20003 | _ACEOF |
| 20004 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20005 | if \$ac_cs_recheck; then |
| 20006 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20007 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20008 | fi |
| 20009 | |
| 20010 | _ACEOF |
| 20011 | |
| 20012 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20013 | # |
| 20014 | # INIT-COMMANDS section. |
| 20015 | # |
| 20016 | |
| 20017 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 20018 | |
| 20019 | _ACEOF |
| 20020 | |
| 20021 | |
| 20022 | |
| 20023 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20024 | for ac_config_target in $ac_config_targets |
| 20025 | do |
| 20026 | case "$ac_config_target" in |
| 20027 | # Handling of arguments. |
| 20028 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 20029 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 20030 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 20031 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20032 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20033 | { (exit 1); exit 1; }; };; |
| 20034 | esac |
| 20035 | done |
| 20036 | |
| 20037 | # If the user did not use the arguments to specify the items to instantiate, |
| 20038 | # then the envvar interface is used. Set only those that are not. |
| 20039 | # We use the long form for the default assignment because of an extremely |
| 20040 | # bizarre bug on SunOS 4.1.3. |
| 20041 | if $ac_need_defaults; then |
| 20042 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20043 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20044 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 20045 | fi |
| 20046 | |
| 20047 | # Have a temporary directory for convenience. Make it in the build tree |
| 20048 | # simply because there is no reason to put it here, and in addition, |
| 20049 | # creating and moving files from /tmp can sometimes cause problems. |
| 20050 | # Create a temporary directory, and hook for its removal unless debugging. |
| 20051 | $debug || |
| 20052 | { |
| 20053 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 20054 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20055 | } |
| 20056 | |
| 20057 | # Create a (secure) tmp directory for tmp files. |
| 20058 | |
| 20059 | { |
| 20060 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 20061 | test -n "$tmp" && test -d "$tmp" |
| 20062 | } || |
| 20063 | { |
| 20064 | tmp=./confstat$$-$RANDOM |
| 20065 | (umask 077 && mkdir $tmp) |
| 20066 | } || |
| 20067 | { |
| 20068 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20069 | { (exit 1); exit 1; } |
| 20070 | } |
| 20071 | |
| 20072 | _ACEOF |
| 20073 | |
| 20074 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20075 | |
| 20076 | # |
| 20077 | # CONFIG_FILES section. |
| 20078 | # |
| 20079 | |
| 20080 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20081 | # This happens for instance when ./config.status config.h |
| 20082 | if test -n "\$CONFIG_FILES"; then |
| 20083 | # Protect against being on the right side of a sed subst in config.status. |
| 20084 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 20085 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 20086 | s,@SHELL@,$SHELL,;t t |
| 20087 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 20088 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 20089 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 20090 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 20091 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 20092 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 20093 | s,@exec_prefix@,$exec_prefix,;t t |
| 20094 | s,@prefix@,$prefix,;t t |
| 20095 | s,@program_transform_name@,$program_transform_name,;t t |
| 20096 | s,@bindir@,$bindir,;t t |
| 20097 | s,@sbindir@,$sbindir,;t t |
| 20098 | s,@libexecdir@,$libexecdir,;t t |
| 20099 | s,@datadir@,$datadir,;t t |
| 20100 | s,@sysconfdir@,$sysconfdir,;t t |
| 20101 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 20102 | s,@localstatedir@,$localstatedir,;t t |
| 20103 | s,@libdir@,$libdir,;t t |
| 20104 | s,@includedir@,$includedir,;t t |
| 20105 | s,@oldincludedir@,$oldincludedir,;t t |
| 20106 | s,@infodir@,$infodir,;t t |
| 20107 | s,@mandir@,$mandir,;t t |
| 20108 | s,@build_alias@,$build_alias,;t t |
| 20109 | s,@host_alias@,$host_alias,;t t |
| 20110 | s,@target_alias@,$target_alias,;t t |
| 20111 | s,@DEFS@,$DEFS,;t t |
| 20112 | s,@ECHO_C@,$ECHO_C,;t t |
| 20113 | s,@ECHO_N@,$ECHO_N,;t t |
| 20114 | s,@ECHO_T@,$ECHO_T,;t t |
| 20115 | s,@LIBS@,$LIBS,;t t |
| 20116 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 20117 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 20118 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 20119 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 20120 | s,@PACKAGE@,$PACKAGE,;t t |
| 20121 | s,@VERSION@,$VERSION,;t t |
| 20122 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 20123 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 20124 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 20125 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 20126 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 20127 | s,@install_sh@,$install_sh,;t t |
| 20128 | s,@STRIP@,$STRIP,;t t |
| 20129 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 20130 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 20131 | s,@mkdir_p@,$mkdir_p,;t t |
| 20132 | s,@AWK@,$AWK,;t t |
| 20133 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 20134 | s,@am__leading_dot@,$am__leading_dot,;t t |
| 20135 | s,@AMTAR@,$AMTAR,;t t |
| 20136 | s,@am__tar@,$am__tar,;t t |
| 20137 | s,@am__untar@,$am__untar,;t t |
| 20138 | s,@CC@,$CC,;t t |
| 20139 | s,@CFLAGS@,$CFLAGS,;t t |
| 20140 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 20141 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 20142 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 20143 | s,@EXEEXT@,$EXEEXT,;t t |
| 20144 | s,@OBJEXT@,$OBJEXT,;t t |
| 20145 | s,@DEPDIR@,$DEPDIR,;t t |
| 20146 | s,@am__include@,$am__include,;t t |
| 20147 | s,@am__quote@,$am__quote,;t t |
| 20148 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 20149 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 20150 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 20151 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 20152 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 20153 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 20154 | s,@CPP@,$CPP,;t t |
| 20155 | s,@CXX@,$CXX,;t t |
| 20156 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 20157 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 20158 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
| 20159 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
| 20160 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
| 20161 | s,@build@,$build,;t t |
| 20162 | s,@build_cpu@,$build_cpu,;t t |
| 20163 | s,@build_vendor@,$build_vendor,;t t |
| 20164 | s,@build_os@,$build_os,;t t |
| 20165 | s,@host@,$host,;t t |
| 20166 | s,@host_cpu@,$host_cpu,;t t |
| 20167 | s,@host_vendor@,$host_vendor,;t t |
| 20168 | s,@host_os@,$host_os,;t t |
| 20169 | s,@EGREP@,$EGREP,;t t |
| 20170 | s,@LN_S@,$LN_S,;t t |
| 20171 | s,@ECHO@,$ECHO,;t t |
| 20172 | s,@AR@,$AR,;t t |
| 20173 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 20174 | s,@RANLIB@,$RANLIB,;t t |
| 20175 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 20176 | s,@CXXCPP@,$CXXCPP,;t t |
| 20177 | s,@F77@,$F77,;t t |
| 20178 | s,@FFLAGS@,$FFLAGS,;t t |
| 20179 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
| 20180 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 20181 | s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t |
| 20182 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 20183 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 20184 | CEOF |
| 20185 | |
| 20186 | _ACEOF |
| 20187 | |
| 20188 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20189 | # Split the substitutions into bite-sized pieces for seds with |
| 20190 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 20191 | ac_max_sed_lines=48 |
| 20192 | ac_sed_frag=1 # Number of current file. |
| 20193 | ac_beg=1 # First line for current file. |
| 20194 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 20195 | ac_more_lines=: |
| 20196 | ac_sed_cmds= |
| 20197 | while $ac_more_lines; do |
| 20198 | if test $ac_beg -gt 1; then |
| 20199 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 20200 | else |
| 20201 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 20202 | fi |
| 20203 | if test ! -s $tmp/subs.frag; then |
| 20204 | ac_more_lines=false |
| 20205 | else |
| 20206 | # The purpose of the label and of the branching condition is to |
| 20207 | # speed up the sed processing (if there are no `@' at all, there |
| 20208 | # is no need to browse any of the substitutions). |
| 20209 | # These are the two extra sed commands mentioned above. |
| 20210 | (echo ':t |
| 20211 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 20212 | if test -z "$ac_sed_cmds"; then |
| 20213 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 20214 | else |
| 20215 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 20216 | fi |
| 20217 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 20218 | ac_beg=$ac_end |
| 20219 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 20220 | fi |
| 20221 | done |
| 20222 | if test -z "$ac_sed_cmds"; then |
| 20223 | ac_sed_cmds=cat |
| 20224 | fi |
| 20225 | fi # test -n "$CONFIG_FILES" |
| 20226 | |
| 20227 | _ACEOF |
| 20228 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20229 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 20230 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 20231 | case $ac_file in |
| 20232 | - | *:- | *:-:* ) # input from stdin |
| 20233 | cat >$tmp/stdin |
| 20234 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 20235 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 20236 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 20237 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 20238 | * ) ac_file_in=$ac_file.in ;; |
| 20239 | esac |
| 20240 | |
| 20241 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 20242 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 20243 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20244 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20245 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20246 | X"$ac_file" : 'X\(/\)' \| \ |
| 20247 | . : '\(.\)' 2>/dev/null || |
| 20248 | echo X"$ac_file" | |
| 20249 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20250 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20251 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20252 | /^X\(\/\).*/{ s//\1/; q; } |
| 20253 | s/.*/./; q'` |
| 20254 | { if $as_mkdir_p; then |
| 20255 | mkdir -p "$ac_dir" |
| 20256 | else |
| 20257 | as_dir="$ac_dir" |
| 20258 | as_dirs= |
| 20259 | while test ! -d "$as_dir"; do |
| 20260 | as_dirs="$as_dir $as_dirs" |
| 20261 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 20262 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20263 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20264 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20265 | X"$as_dir" : 'X\(/\)' \| \ |
| 20266 | . : '\(.\)' 2>/dev/null || |
| 20267 | echo X"$as_dir" | |
| 20268 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20269 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20270 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20271 | /^X\(\/\).*/{ s//\1/; q; } |
| 20272 | s/.*/./; q'` |
| 20273 | done |
| 20274 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 20275 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 20276 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 20277 | { (exit 1); exit 1; }; }; } |
| 20278 | |
| 20279 | ac_builddir=. |
| 20280 | |
| 20281 | if test "$ac_dir" != .; then |
| 20282 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 20283 | # A "../" for each directory in $ac_dir_suffix. |
| 20284 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 20285 | else |
| 20286 | ac_dir_suffix= ac_top_builddir= |
| 20287 | fi |
| 20288 | |
| 20289 | case $srcdir in |
| 20290 | .) # No --srcdir option. We are building in place. |
| 20291 | ac_srcdir=. |
| 20292 | if test -z "$ac_top_builddir"; then |
| 20293 | ac_top_srcdir=. |
| 20294 | else |
| 20295 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 20296 | fi ;; |
| 20297 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 20298 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 20299 | ac_top_srcdir=$srcdir ;; |
| 20300 | *) # Relative path. |
| 20301 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 20302 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 20303 | esac |
| 20304 | |
| 20305 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 20306 | # the directories may not exist. |
| 20307 | case `pwd` in |
| 20308 | .) ac_abs_builddir="$ac_dir";; |
| 20309 | *) |
| 20310 | case "$ac_dir" in |
| 20311 | .) ac_abs_builddir=`pwd`;; |
| 20312 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 20313 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 20314 | esac;; |
| 20315 | esac |
| 20316 | case $ac_abs_builddir in |
| 20317 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 20318 | *) |
| 20319 | case ${ac_top_builddir}. in |
| 20320 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 20321 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 20322 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 20323 | esac;; |
| 20324 | esac |
| 20325 | case $ac_abs_builddir in |
| 20326 | .) ac_abs_srcdir=$ac_srcdir;; |
| 20327 | *) |
| 20328 | case $ac_srcdir in |
| 20329 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 20330 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 20331 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 20332 | esac;; |
| 20333 | esac |
| 20334 | case $ac_abs_builddir in |
| 20335 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 20336 | *) |
| 20337 | case $ac_top_srcdir in |
| 20338 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 20339 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 20340 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 20341 | esac;; |
| 20342 | esac |
| 20343 | |
| 20344 | |
| 20345 | case $INSTALL in |
| 20346 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 20347 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 20348 | esac |
| 20349 | |
| 20350 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20351 | # use $as_me), people would be surprised to read: |
| 20352 | # /* config.h. Generated by config.status. */ |
| 20353 | if test x"$ac_file" = x-; then |
| 20354 | configure_input= |
| 20355 | else |
| 20356 | configure_input="$ac_file. " |
| 20357 | fi |
| 20358 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 20359 | sed 's,.*/,,'` by configure." |
| 20360 | |
| 20361 | # First look for the input files in the build tree, otherwise in the |
| 20362 | # src tree. |
| 20363 | ac_file_inputs=`IFS=: |
| 20364 | for f in $ac_file_in; do |
| 20365 | case $f in |
| 20366 | -) echo $tmp/stdin ;; |
| 20367 | [\\/$]*) |
| 20368 | # Absolute (can't be DOS-style, as IFS=:) |
| 20369 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 20370 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 20371 | { (exit 1); exit 1; }; } |
| 20372 | echo "$f";; |
| 20373 | *) # Relative |
| 20374 | if test -f "$f"; then |
| 20375 | # Build tree |
| 20376 | echo "$f" |
| 20377 | elif test -f "$srcdir/$f"; then |
| 20378 | # Source tree |
| 20379 | echo "$srcdir/$f" |
| 20380 | else |
| 20381 | # /dev/null tree |
| 20382 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 20383 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 20384 | { (exit 1); exit 1; }; } |
| 20385 | fi;; |
| 20386 | esac |
| 20387 | done` || { (exit 1); exit 1; } |
| 20388 | |
| 20389 | if test x"$ac_file" != x-; then |
| 20390 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20391 | echo "$as_me: creating $ac_file" >&6;} |
| 20392 | rm -f "$ac_file" |
| 20393 | fi |
| 20394 | _ACEOF |
| 20395 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20396 | sed "$ac_vpsub |
| 20397 | $extrasub |
| 20398 | _ACEOF |
| 20399 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20400 | :t |
| 20401 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20402 | s,@configure_input@,$configure_input,;t t |
| 20403 | s,@srcdir@,$ac_srcdir,;t t |
| 20404 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 20405 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 20406 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 20407 | s,@builddir@,$ac_builddir,;t t |
| 20408 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 20409 | s,@top_builddir@,$ac_top_builddir,;t t |
| 20410 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 20411 | s,@INSTALL@,$ac_INSTALL,;t t |
| 20412 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 20413 | rm -f $tmp/stdin |
| 20414 | if test x"$ac_file" != x-; then |
| 20415 | mv $tmp/out $ac_file |
| 20416 | else |
| 20417 | cat $tmp/out |
| 20418 | rm -f $tmp/out |
| 20419 | fi |
| 20420 | |
| 20421 | done |
| 20422 | _ACEOF |
| 20423 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20424 | |
| 20425 | # |
| 20426 | # CONFIG_HEADER section. |
| 20427 | # |
| 20428 | |
| 20429 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 20430 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 20431 | # |
| 20432 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 20433 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 20434 | ac_dB='[ ].*$,\1#\2' |
| 20435 | ac_dC=' ' |
| 20436 | ac_dD=',;t' |
| 20437 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 20438 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 20439 | ac_uB='$,\1#\2define\3' |
| 20440 | ac_uC=' ' |
| 20441 | ac_uD=',;t' |
| 20442 | |
| 20443 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 20444 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 20445 | case $ac_file in |
| 20446 | - | *:- | *:-:* ) # input from stdin |
| 20447 | cat >$tmp/stdin |
| 20448 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 20449 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 20450 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 20451 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 20452 | * ) ac_file_in=$ac_file.in ;; |
| 20453 | esac |
| 20454 | |
| 20455 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20456 | echo "$as_me: creating $ac_file" >&6;} |
| 20457 | |
| 20458 | # First look for the input files in the build tree, otherwise in the |
| 20459 | # src tree. |
| 20460 | ac_file_inputs=`IFS=: |
| 20461 | for f in $ac_file_in; do |
| 20462 | case $f in |
| 20463 | -) echo $tmp/stdin ;; |
| 20464 | [\\/$]*) |
| 20465 | # Absolute (can't be DOS-style, as IFS=:) |
| 20466 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 20467 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 20468 | { (exit 1); exit 1; }; } |
| 20469 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 20470 | echo "$f";; |
| 20471 | *) # Relative |
| 20472 | if test -f "$f"; then |
| 20473 | # Build tree |
| 20474 | echo "$f" |
| 20475 | elif test -f "$srcdir/$f"; then |
| 20476 | # Source tree |
| 20477 | echo "$srcdir/$f" |
| 20478 | else |
| 20479 | # /dev/null tree |
| 20480 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 20481 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 20482 | { (exit 1); exit 1; }; } |
| 20483 | fi;; |
| 20484 | esac |
| 20485 | done` || { (exit 1); exit 1; } |
| 20486 | # Remove the trailing spaces. |
| 20487 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 20488 | |
| 20489 | _ACEOF |
| 20490 | |
| 20491 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 20492 | # `conftest.undefs', that substitutes the proper values into |
| 20493 | # config.h.in to produce config.h. The first handles `#define' |
| 20494 | # templates, and the second `#undef' templates. |
| 20495 | # And first: Protect against being on the right side of a sed subst in |
| 20496 | # config.status. Protect against being in an unquoted here document |
| 20497 | # in config.status. |
| 20498 | rm -f conftest.defines conftest.undefs |
| 20499 | # Using a here document instead of a string reduces the quoting nightmare. |
| 20500 | # Putting comments in sed scripts is not portable. |
| 20501 | # |
| 20502 | # `end' is used to avoid that the second main sed command (meant for |
| 20503 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 20504 | # See the Autoconf documentation for `clear'. |
| 20505 | cat >confdef2sed.sed <<\_ACEOF |
| 20506 | s/[\\&,]/\\&/g |
| 20507 | s,[\\$`],\\&,g |
| 20508 | t clear |
| 20509 | : clear |
| 20510 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 20511 | t end |
| 20512 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 20513 | : end |
| 20514 | _ACEOF |
| 20515 | # If some macros were called several times there might be several times |
| 20516 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 20517 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 20518 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 20519 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 20520 | rm -f confdef2sed.sed |
| 20521 | |
| 20522 | # This sed command replaces #undef with comments. This is necessary, for |
| 20523 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 20524 | # on some systems where configure will not decide to define it. |
| 20525 | cat >>conftest.undefs <<\_ACEOF |
| 20526 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 20527 | _ACEOF |
| 20528 | |
| 20529 | # Break up conftest.defines because some shells have a limit on the size |
| 20530 | # of here documents, and old seds have small limits too (100 cmds). |
| 20531 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 20532 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 20533 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 20534 | echo ' :' >>$CONFIG_STATUS |
| 20535 | rm -f conftest.tail |
| 20536 | while grep . conftest.defines >/dev/null |
| 20537 | do |
| 20538 | # Write a limited-size here document to $tmp/defines.sed. |
| 20539 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 20540 | # Speed up: don't consider the non `#define' lines. |
| 20541 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 20542 | # Work around the forget-to-reset-the-flag bug. |
| 20543 | echo 't clr' >>$CONFIG_STATUS |
| 20544 | echo ': clr' >>$CONFIG_STATUS |
| 20545 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 20546 | echo 'CEOF |
| 20547 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 20548 | rm -f $tmp/in |
| 20549 | mv $tmp/out $tmp/in |
| 20550 | ' >>$CONFIG_STATUS |
| 20551 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 20552 | rm -f conftest.defines |
| 20553 | mv conftest.tail conftest.defines |
| 20554 | done |
| 20555 | rm -f conftest.defines |
| 20556 | echo ' fi # grep' >>$CONFIG_STATUS |
| 20557 | echo >>$CONFIG_STATUS |
| 20558 | |
| 20559 | # Break up conftest.undefs because some shells have a limit on the size |
| 20560 | # of here documents, and old seds have small limits too (100 cmds). |
| 20561 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 20562 | rm -f conftest.tail |
| 20563 | while grep . conftest.undefs >/dev/null |
| 20564 | do |
| 20565 | # Write a limited-size here document to $tmp/undefs.sed. |
| 20566 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 20567 | # Speed up: don't consider the non `#undef' |
| 20568 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 20569 | # Work around the forget-to-reset-the-flag bug. |
| 20570 | echo 't clr' >>$CONFIG_STATUS |
| 20571 | echo ': clr' >>$CONFIG_STATUS |
| 20572 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 20573 | echo 'CEOF |
| 20574 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 20575 | rm -f $tmp/in |
| 20576 | mv $tmp/out $tmp/in |
| 20577 | ' >>$CONFIG_STATUS |
| 20578 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 20579 | rm -f conftest.undefs |
| 20580 | mv conftest.tail conftest.undefs |
| 20581 | done |
| 20582 | rm -f conftest.undefs |
| 20583 | |
| 20584 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20585 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20586 | # use $as_me), people would be surprised to read: |
| 20587 | # /* config.h. Generated by config.status. */ |
| 20588 | if test x"$ac_file" = x-; then |
| 20589 | echo "/* Generated by configure. */" >$tmp/config.h |
| 20590 | else |
| 20591 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 20592 | fi |
| 20593 | cat $tmp/in >>$tmp/config.h |
| 20594 | rm -f $tmp/in |
| 20595 | if test x"$ac_file" != x-; then |
| 20596 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 20597 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 20598 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 20599 | else |
| 20600 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 20601 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20602 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20603 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20604 | X"$ac_file" : 'X\(/\)' \| \ |
| 20605 | . : '\(.\)' 2>/dev/null || |
| 20606 | echo X"$ac_file" | |
| 20607 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20608 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20609 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20610 | /^X\(\/\).*/{ s//\1/; q; } |
| 20611 | s/.*/./; q'` |
| 20612 | { if $as_mkdir_p; then |
| 20613 | mkdir -p "$ac_dir" |
| 20614 | else |
| 20615 | as_dir="$ac_dir" |
| 20616 | as_dirs= |
| 20617 | while test ! -d "$as_dir"; do |
| 20618 | as_dirs="$as_dir $as_dirs" |
| 20619 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 20620 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20621 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20622 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20623 | X"$as_dir" : 'X\(/\)' \| \ |
| 20624 | . : '\(.\)' 2>/dev/null || |
| 20625 | echo X"$as_dir" | |
| 20626 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20627 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20628 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20629 | /^X\(\/\).*/{ s//\1/; q; } |
| 20630 | s/.*/./; q'` |
| 20631 | done |
| 20632 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 20633 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 20634 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 20635 | { (exit 1); exit 1; }; }; } |
| 20636 | |
| 20637 | rm -f $ac_file |
| 20638 | mv $tmp/config.h $ac_file |
| 20639 | fi |
| 20640 | else |
| 20641 | cat $tmp/config.h |
| 20642 | rm -f $tmp/config.h |
| 20643 | fi |
| 20644 | # Compute $ac_file's index in $config_headers. |
| 20645 | _am_stamp_count=1 |
| 20646 | for _am_header in $config_headers :; do |
| 20647 | case $_am_header in |
| 20648 | $ac_file | $ac_file:* ) |
| 20649 | break ;; |
| 20650 | * ) |
| 20651 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 20652 | esac |
| 20653 | done |
| 20654 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 20655 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20656 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 20657 | X$ac_file : 'X\(//\)$' \| \ |
| 20658 | X$ac_file : 'X\(/\)' \| \ |
| 20659 | . : '\(.\)' 2>/dev/null || |
| 20660 | echo X$ac_file | |
| 20661 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20662 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20663 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20664 | /^X\(\/\).*/{ s//\1/; q; } |
| 20665 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 20666 | done |
| 20667 | _ACEOF |
| 20668 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20669 | |
| 20670 | # |
| 20671 | # CONFIG_COMMANDS section. |
| 20672 | # |
| 20673 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 20674 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 20675 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 20676 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 20677 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20678 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 20679 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 20680 | X"$ac_dest" : 'X\(/\)' \| \ |
| 20681 | . : '\(.\)' 2>/dev/null || |
| 20682 | echo X"$ac_dest" | |
| 20683 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20684 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20685 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20686 | /^X\(\/\).*/{ s//\1/; q; } |
| 20687 | s/.*/./; q'` |
| 20688 | { if $as_mkdir_p; then |
| 20689 | mkdir -p "$ac_dir" |
| 20690 | else |
| 20691 | as_dir="$ac_dir" |
| 20692 | as_dirs= |
| 20693 | while test ! -d "$as_dir"; do |
| 20694 | as_dirs="$as_dir $as_dirs" |
| 20695 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 20696 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20697 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20698 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20699 | X"$as_dir" : 'X\(/\)' \| \ |
| 20700 | . : '\(.\)' 2>/dev/null || |
| 20701 | echo X"$as_dir" | |
| 20702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20703 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20704 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20705 | /^X\(\/\).*/{ s//\1/; q; } |
| 20706 | s/.*/./; q'` |
| 20707 | done |
| 20708 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 20709 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 20710 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 20711 | { (exit 1); exit 1; }; }; } |
| 20712 | |
| 20713 | ac_builddir=. |
| 20714 | |
| 20715 | if test "$ac_dir" != .; then |
| 20716 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 20717 | # A "../" for each directory in $ac_dir_suffix. |
| 20718 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 20719 | else |
| 20720 | ac_dir_suffix= ac_top_builddir= |
| 20721 | fi |
| 20722 | |
| 20723 | case $srcdir in |
| 20724 | .) # No --srcdir option. We are building in place. |
| 20725 | ac_srcdir=. |
| 20726 | if test -z "$ac_top_builddir"; then |
| 20727 | ac_top_srcdir=. |
| 20728 | else |
| 20729 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 20730 | fi ;; |
| 20731 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 20732 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 20733 | ac_top_srcdir=$srcdir ;; |
| 20734 | *) # Relative path. |
| 20735 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 20736 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 20737 | esac |
| 20738 | |
| 20739 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 20740 | # the directories may not exist. |
| 20741 | case `pwd` in |
| 20742 | .) ac_abs_builddir="$ac_dir";; |
| 20743 | *) |
| 20744 | case "$ac_dir" in |
| 20745 | .) ac_abs_builddir=`pwd`;; |
| 20746 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 20747 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 20748 | esac;; |
| 20749 | esac |
| 20750 | case $ac_abs_builddir in |
| 20751 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 20752 | *) |
| 20753 | case ${ac_top_builddir}. in |
| 20754 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 20755 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 20756 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 20757 | esac;; |
| 20758 | esac |
| 20759 | case $ac_abs_builddir in |
| 20760 | .) ac_abs_srcdir=$ac_srcdir;; |
| 20761 | *) |
| 20762 | case $ac_srcdir in |
| 20763 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 20764 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 20765 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 20766 | esac;; |
| 20767 | esac |
| 20768 | case $ac_abs_builddir in |
| 20769 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 20770 | *) |
| 20771 | case $ac_top_srcdir in |
| 20772 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 20773 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 20774 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 20775 | esac;; |
| 20776 | esac |
| 20777 | |
| 20778 | |
| 20779 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 20780 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 20781 | case $ac_dest in |
| 20782 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 20783 | # Strip MF so we end up with the name of the file. |
| 20784 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 20785 | # Check whether this is an Automake generated Makefile or not. |
| 20786 | # We used to match only the files named `Makefile.in', but |
| 20787 | # some people rename them; so instead we look at the file content. |
| 20788 | # Grep'ing the first line is not enough: some people post-process |
| 20789 | # each Makefile.in and add a new line on top of each file to say so. |
| 20790 | # So let's grep whole file. |
| 20791 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 20792 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 20793 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20794 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 20795 | X"$mf" : 'X\(//\)$' \| \ |
| 20796 | X"$mf" : 'X\(/\)' \| \ |
| 20797 | . : '\(.\)' 2>/dev/null || |
| 20798 | echo X"$mf" | |
| 20799 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20800 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20801 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20802 | /^X\(\/\).*/{ s//\1/; q; } |
| 20803 | s/.*/./; q'` |
| 20804 | else |
| 20805 | continue |
| 20806 | fi |
| 20807 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 20808 | # from the Makefile without running `make'. |
| 20809 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 20810 | test -z "$DEPDIR" && continue |
| 20811 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 20812 | test -z "am__include" && continue |
| 20813 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 20814 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 20815 | U=`sed -n 's/^U = //p' < "$mf"` |
| 20816 | # Find all dependency output files, they are included files with |
| 20817 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 20818 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 20819 | # expansion. |
| 20820 | for file in `sed -n " |
| 20821 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 20822 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 20823 | # Make sure the directory exists. |
| 20824 | test -f "$dirpart/$file" && continue |
| 20825 | fdir=`(dirname "$file") 2>/dev/null || |
| 20826 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20827 | X"$file" : 'X\(//\)[^/]' \| \ |
| 20828 | X"$file" : 'X\(//\)$' \| \ |
| 20829 | X"$file" : 'X\(/\)' \| \ |
| 20830 | . : '\(.\)' 2>/dev/null || |
| 20831 | echo X"$file" | |
| 20832 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20833 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20834 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20835 | /^X\(\/\).*/{ s//\1/; q; } |
| 20836 | s/.*/./; q'` |
| 20837 | { if $as_mkdir_p; then |
| 20838 | mkdir -p $dirpart/$fdir |
| 20839 | else |
| 20840 | as_dir=$dirpart/$fdir |
| 20841 | as_dirs= |
| 20842 | while test ! -d "$as_dir"; do |
| 20843 | as_dirs="$as_dir $as_dirs" |
| 20844 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 20845 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20846 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20847 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20848 | X"$as_dir" : 'X\(/\)' \| \ |
| 20849 | . : '\(.\)' 2>/dev/null || |
| 20850 | echo X"$as_dir" | |
| 20851 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20852 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20853 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20854 | /^X\(\/\).*/{ s//\1/; q; } |
| 20855 | s/.*/./; q'` |
| 20856 | done |
| 20857 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 20858 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 20859 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 20860 | { (exit 1); exit 1; }; }; } |
| 20861 | |
| 20862 | # echo "creating $dirpart/$file" |
| 20863 | echo '# dummy' > "$dirpart/$file" |
| 20864 | done |
| 20865 | done |
| 20866 | ;; |
| 20867 | esac |
| 20868 | done |
| 20869 | _ACEOF |
| 20870 | |
| 20871 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20872 | |
| 20873 | { (exit 0); exit 0; } |
| 20874 | _ACEOF |
| 20875 | chmod +x $CONFIG_STATUS |
| 20876 | ac_clean_files=$ac_clean_files_save |
| 20877 | |
| 20878 | |
| 20879 | # configure is writing to config.log, and then calls config.status. |
| 20880 | # config.status does its own redirection, appending to config.log. |
| 20881 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 20882 | # by configure, so config.status won't be able to write to it; its |
| 20883 | # output is simply discarded. So we exec the FD to /dev/null, |
| 20884 | # effectively closing config.log, so it can be properly (re)opened and |
| 20885 | # appended to by config.status. When coming back to configure, we |
| 20886 | # need to make the FD available again. |
| 20887 | if test "$no_create" != yes; then |
| 20888 | ac_cs_success=: |
| 20889 | ac_config_status_args= |
| 20890 | test "$silent" = yes && |
| 20891 | ac_config_status_args="$ac_config_status_args --quiet" |
| 20892 | exec 5>/dev/null |
| 20893 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 20894 | exec 5>>config.log |
| 20895 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20896 | # would make configure fail if this is the last instruction. |
| 20897 | $ac_cs_success || { (exit 1); exit 1; } |
| 20898 | fi |
| 20899 | |