annotate src/libid3tag-0.15.1b/configure @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents c7265573341e
children
rev   line source
Chris@0 1 #! /bin/sh
Chris@0 2 # From configure.ac Id: configure.ac,v 1.12 2004/01/23 23:22:46 rob Exp .
Chris@0 3 # Guess values for system-dependent variables and create Makefiles.
Chris@0 4 # Generated by GNU Autoconf 2.59 for ID3 Tag 0.15.1b.
Chris@0 5 #
Chris@0 6 # Report bugs to <support@underbit.com>.
Chris@0 7 #
Chris@0 8 # Copyright (C) 2003 Free Software Foundation, Inc.
Chris@0 9 # This configure script is free software; the Free Software Foundation
Chris@0 10 # gives unlimited permission to copy, distribute and modify it.
Chris@0 11 ## --------------------- ##
Chris@0 12 ## M4sh Initialization. ##
Chris@0 13 ## --------------------- ##
Chris@0 14
Chris@0 15 # Be Bourne compatible
Chris@0 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Chris@0 17 emulate sh
Chris@0 18 NULLCMD=:
Chris@0 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Chris@0 20 # is contrary to our usage. Disable this feature.
Chris@0 21 alias -g '${1+"$@"}'='"$@"'
Chris@0 22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
Chris@0 23 set -o posix
Chris@0 24 fi
Chris@0 25 DUALCASE=1; export DUALCASE # for MKS sh
Chris@0 26
Chris@0 27 # Support unset when possible.
Chris@0 28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@0 29 as_unset=unset
Chris@0 30 else
Chris@0 31 as_unset=false
Chris@0 32 fi
Chris@0 33
Chris@0 34
Chris@0 35 # Work around bugs in pre-3.0 UWIN ksh.
Chris@0 36 $as_unset ENV MAIL MAILPATH
Chris@0 37 PS1='$ '
Chris@0 38 PS2='> '
Chris@0 39 PS4='+ '
Chris@0 40
Chris@0 41 # NLS nuisances.
Chris@0 42 for as_var in \
Chris@0 43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
Chris@0 44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
Chris@0 45 LC_TELEPHONE LC_TIME
Chris@0 46 do
Chris@0 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Chris@0 48 eval $as_var=C; export $as_var
Chris@0 49 else
Chris@0 50 $as_unset $as_var
Chris@0 51 fi
Chris@0 52 done
Chris@0 53
Chris@0 54 # Required to use basename.
Chris@0 55 if expr a : '\(a\)' >/dev/null 2>&1; then
Chris@0 56 as_expr=expr
Chris@0 57 else
Chris@0 58 as_expr=false
Chris@0 59 fi
Chris@0 60
Chris@0 61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
Chris@0 62 as_basename=basename
Chris@0 63 else
Chris@0 64 as_basename=false
Chris@0 65 fi
Chris@0 66
Chris@0 67
Chris@0 68 # Name of the executable.
Chris@0 69 as_me=`$as_basename "$0" ||
Chris@0 70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@0 71 X"$0" : 'X\(//\)$' \| \
Chris@0 72 X"$0" : 'X\(/\)$' \| \
Chris@0 73 . : '\(.\)' 2>/dev/null ||
Chris@0 74 echo X/"$0" |
Chris@0 75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
Chris@0 76 /^X\/\(\/\/\)$/{ s//\1/; q; }
Chris@0 77 /^X\/\(\/\).*/{ s//\1/; q; }
Chris@0 78 s/.*/./; q'`
Chris@0 79
Chris@0 80
Chris@0 81 # PATH needs CR, and LINENO needs CR and PATH.
Chris@0 82 # Avoid depending upon Character Ranges.
Chris@0 83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@0 84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@0 85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@0 86 as_cr_digits='0123456789'
Chris@0 87 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@0 88
Chris@0 89 # The user is always right.
Chris@0 90 if test "${PATH_SEPARATOR+set}" != set; then
Chris@0 91 echo "#! /bin/sh" >conf$$.sh
Chris@0 92 echo "exit 0" >>conf$$.sh
Chris@0 93 chmod +x conf$$.sh
Chris@0 94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Chris@0 95 PATH_SEPARATOR=';'
Chris@0 96 else
Chris@0 97 PATH_SEPARATOR=:
Chris@0 98 fi
Chris@0 99 rm -f conf$$.sh
Chris@0 100 fi
Chris@0 101
Chris@0 102
Chris@0 103 as_lineno_1=$LINENO
Chris@0 104 as_lineno_2=$LINENO
Chris@0 105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Chris@0 106 test "x$as_lineno_1" != "x$as_lineno_2" &&
Chris@0 107 test "x$as_lineno_3" = "x$as_lineno_2" || {
Chris@0 108 # Find who we are. Look in the path if we contain no path at all
Chris@0 109 # relative or not.
Chris@0 110 case $0 in
Chris@0 111 *[\\/]* ) as_myself=$0 ;;
Chris@0 112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 113 for as_dir in $PATH
Chris@0 114 do
Chris@0 115 IFS=$as_save_IFS
Chris@0 116 test -z "$as_dir" && as_dir=.
Chris@0 117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@0 118 done
Chris@0 119
Chris@0 120 ;;
Chris@0 121 esac
Chris@0 122 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@0 123 # in which case we are not to be found in the path.
Chris@0 124 if test "x$as_myself" = x; then
Chris@0 125 as_myself=$0
Chris@0 126 fi
Chris@0 127 if test ! -f "$as_myself"; then
Chris@0 128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
Chris@0 129 { (exit 1); exit 1; }; }
Chris@0 130 fi
Chris@0 131 case $CONFIG_SHELL in
Chris@0 132 '')
Chris@0 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@0 135 do
Chris@0 136 IFS=$as_save_IFS
Chris@0 137 test -z "$as_dir" && as_dir=.
Chris@0 138 for as_base in sh bash ksh sh5; do
Chris@0 139 case $as_dir in
Chris@0 140 /*)
Chris@0 141 if ("$as_dir/$as_base" -c '
Chris@0 142 as_lineno_1=$LINENO
Chris@0 143 as_lineno_2=$LINENO
Chris@0 144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Chris@0 145 test "x$as_lineno_1" != "x$as_lineno_2" &&
Chris@0 146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Chris@0 147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
Chris@0 148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Chris@0 149 CONFIG_SHELL=$as_dir/$as_base
Chris@0 150 export CONFIG_SHELL
Chris@0 151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
Chris@0 152 fi;;
Chris@0 153 esac
Chris@0 154 done
Chris@0 155 done
Chris@0 156 ;;
Chris@0 157 esac
Chris@0 158
Chris@0 159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
Chris@0 160 # uniformly replaced by the line number. The first 'sed' inserts a
Chris@0 161 # line-number line before each line; the second 'sed' does the real
Chris@0 162 # work. The second script uses 'N' to pair each line-number line
Chris@0 163 # with the numbered line, and appends trailing '-' during
Chris@0 164 # substitution so that $LINENO is not a special case at line end.
Chris@0 165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Chris@0 166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
Chris@0 167 sed '=' <$as_myself |
Chris@0 168 sed '
Chris@0 169 N
Chris@0 170 s,$,-,
Chris@0 171 : loop
Chris@0 172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Chris@0 173 t loop
Chris@0 174 s,-$,,
Chris@0 175 s,^['$as_cr_digits']*\n,,
Chris@0 176 ' >$as_me.lineno &&
Chris@0 177 chmod +x $as_me.lineno ||
Chris@0 178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Chris@0 179 { (exit 1); exit 1; }; }
Chris@0 180
Chris@0 181 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@0 182 # (the dirname of $[0] is not the place where we might find the
Chris@0 183 # original and so on. Autoconf is especially sensible to this).
Chris@0 184 . ./$as_me.lineno
Chris@0 185 # Exit status is that of the last command.
Chris@0 186 exit
Chris@0 187 }
Chris@0 188
Chris@0 189
Chris@0 190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
Chris@0 191 *c*,-n*) ECHO_N= ECHO_C='
Chris@0 192 ' ECHO_T=' ' ;;
Chris@0 193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
Chris@0 194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
Chris@0 195 esac
Chris@0 196
Chris@0 197 if expr a : '\(a\)' >/dev/null 2>&1; then
Chris@0 198 as_expr=expr
Chris@0 199 else
Chris@0 200 as_expr=false
Chris@0 201 fi
Chris@0 202
Chris@0 203 rm -f conf$$ conf$$.exe conf$$.file
Chris@0 204 echo >conf$$.file
Chris@0 205 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@0 206 # We could just check for DJGPP; but this test a) works b) is more generic
Chris@0 207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
Chris@0 208 if test -f conf$$.exe; then
Chris@0 209 # Don't use ln at all; we don't have any links
Chris@0 210 as_ln_s='cp -p'
Chris@0 211 else
Chris@0 212 as_ln_s='ln -s'
Chris@0 213 fi
Chris@0 214 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@0 215 as_ln_s=ln
Chris@0 216 else
Chris@0 217 as_ln_s='cp -p'
Chris@0 218 fi
Chris@0 219 rm -f conf$$ conf$$.exe conf$$.file
Chris@0 220
Chris@0 221 if mkdir -p . 2>/dev/null; then
Chris@0 222 as_mkdir_p=:
Chris@0 223 else
Chris@0 224 test -d ./-p && rmdir ./-p
Chris@0 225 as_mkdir_p=false
Chris@0 226 fi
Chris@0 227
Chris@0 228 as_executable_p="test -f"
Chris@0 229
Chris@0 230 # Sed expression to map a string onto a valid CPP name.
Chris@0 231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@0 232
Chris@0 233 # Sed expression to map a string onto a valid variable name.
Chris@0 234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@0 235
Chris@0 236
Chris@0 237 # IFS
Chris@0 238 # We need space, tab and new line, in precisely that order.
Chris@0 239 as_nl='
Chris@0 240 '
Chris@0 241 IFS=" $as_nl"
Chris@0 242
Chris@0 243 # CDPATH.
Chris@0 244 $as_unset CDPATH
Chris@0 245
Chris@0 246
Chris@0 247
Chris@0 248 # Check that we are running under the correct shell.
Chris@0 249 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@0 250
Chris@0 251 case X$ECHO in
Chris@0 252 X*--fallback-echo)
Chris@0 253 # Remove one level of quotation (which was required for Make).
Chris@0 254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
Chris@0 255 ;;
Chris@0 256 esac
Chris@0 257
Chris@0 258 echo=${ECHO-echo}
Chris@0 259 if test "X$1" = X--no-reexec; then
Chris@0 260 # Discard the --no-reexec flag, and continue.
Chris@0 261 shift
Chris@0 262 elif test "X$1" = X--fallback-echo; then
Chris@0 263 # Avoid inline document here, it may be left over
Chris@0 264 :
Chris@0 265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
Chris@0 266 # Yippee, $echo works!
Chris@0 267 :
Chris@0 268 else
Chris@0 269 # Restart under the correct shell.
Chris@0 270 exec $SHELL "$0" --no-reexec ${1+"$@"}
Chris@0 271 fi
Chris@0 272
Chris@0 273 if test "X$1" = X--fallback-echo; then
Chris@0 274 # used as fallback echo
Chris@0 275 shift
Chris@0 276 cat <<EOF
Chris@0 277 $*
Chris@0 278 EOF
Chris@0 279 exit 0
Chris@0 280 fi
Chris@0 281
Chris@0 282 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@0 283 # if CDPATH is set.
Chris@0 284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
Chris@0 285
Chris@0 286 if test -z "$ECHO"; then
Chris@0 287 if test "X${echo_test_string+set}" != Xset; then
Chris@0 288 # find a string as large as possible, as long as the shell can cope with it
Chris@0 289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
Chris@0 290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Chris@0 291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
Chris@0 292 echo_test_string="`eval $cmd`" &&
Chris@0 293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
Chris@0 294 then
Chris@0 295 break
Chris@0 296 fi
Chris@0 297 done
Chris@0 298 fi
Chris@0 299
Chris@0 300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
Chris@0 301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
Chris@0 302 test "X$echo_testing_string" = "X$echo_test_string"; then
Chris@0 303 :
Chris@0 304 else
Chris@0 305 # The Solaris, AIX, and Digital Unix default echo programs unquote
Chris@0 306 # backslashes. This makes it impossible to quote backslashes using
Chris@0 307 # echo "$something" | sed 's/\\/\\\\/g'
Chris@0 308 #
Chris@0 309 # So, first we look for a working echo in the user's PATH.
Chris@0 310
Chris@0 311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@0 312 for dir in $PATH /usr/ucb; do
Chris@0 313 IFS="$lt_save_ifs"
Chris@0 314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
Chris@0 315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
Chris@0 316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
Chris@0 317 test "X$echo_testing_string" = "X$echo_test_string"; then
Chris@0 318 echo="$dir/echo"
Chris@0 319 break
Chris@0 320 fi
Chris@0 321 done
Chris@0 322 IFS="$lt_save_ifs"
Chris@0 323
Chris@0 324 if test "X$echo" = Xecho; then
Chris@0 325 # We didn't find a better echo, so look for alternatives.
Chris@0 326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
Chris@0 327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
Chris@0 328 test "X$echo_testing_string" = "X$echo_test_string"; then
Chris@0 329 # This shell has a builtin print -r that does the trick.
Chris@0 330 echo='print -r'
Chris@0 331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
Chris@0 332 test "X$CONFIG_SHELL" != X/bin/ksh; then
Chris@0 333 # If we have ksh, try running configure again with it.
Chris@0 334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
Chris@0 335 export ORIGINAL_CONFIG_SHELL
Chris@0 336 CONFIG_SHELL=/bin/ksh
Chris@0 337 export CONFIG_SHELL
Chris@0 338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
Chris@0 339 else
Chris@0 340 # Try using printf.
Chris@0 341 echo='printf %s\n'
Chris@0 342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
Chris@0 343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
Chris@0 344 test "X$echo_testing_string" = "X$echo_test_string"; then
Chris@0 345 # Cool, printf works
Chris@0 346 :
Chris@0 347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
Chris@0 348 test "X$echo_testing_string" = 'X\t' &&
Chris@0 349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
Chris@0 350 test "X$echo_testing_string" = "X$echo_test_string"; then
Chris@0 351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
Chris@0 352 export CONFIG_SHELL
Chris@0 353 SHELL="$CONFIG_SHELL"
Chris@0 354 export SHELL
Chris@0 355 echo="$CONFIG_SHELL $0 --fallback-echo"
Chris@0 356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
Chris@0 357 test "X$echo_testing_string" = 'X\t' &&
Chris@0 358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
Chris@0 359 test "X$echo_testing_string" = "X$echo_test_string"; then
Chris@0 360 echo="$CONFIG_SHELL $0 --fallback-echo"
Chris@0 361 else
Chris@0 362 # maybe with a smaller string...
Chris@0 363 prev=:
Chris@0 364
Chris@0 365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
Chris@0 366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
Chris@0 367 then
Chris@0 368 break
Chris@0 369 fi
Chris@0 370 prev="$cmd"
Chris@0 371 done
Chris@0 372
Chris@0 373 if test "$prev" != 'sed 50q "$0"'; then
Chris@0 374 echo_test_string=`eval $prev`
Chris@0 375 export echo_test_string
Chris@0 376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
Chris@0 377 else
Chris@0 378 # Oops. We lost completely, so just stick with echo.
Chris@0 379 echo=echo
Chris@0 380 fi
Chris@0 381 fi
Chris@0 382 fi
Chris@0 383 fi
Chris@0 384 fi
Chris@0 385 fi
Chris@0 386
Chris@0 387 # Copy echo and quote the copy suitably for passing to libtool from
Chris@0 388 # the Makefile, instead of quoting the original, which is used later.
Chris@0 389 ECHO=$echo
Chris@0 390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
Chris@0 391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
Chris@0 392 fi
Chris@0 393
Chris@0 394
Chris@0 395
Chris@0 396
Chris@0 397 tagnames=${tagnames+${tagnames},}CXX
Chris@0 398
Chris@0 399 tagnames=${tagnames+${tagnames},}F77
Chris@0 400
Chris@0 401 # Name of the host.
Chris@0 402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
Chris@0 403 # so uname gets run too.
Chris@0 404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@0 405
Chris@0 406 exec 6>&1
Chris@0 407
Chris@0 408 #
Chris@0 409 # Initializations.
Chris@0 410 #
Chris@0 411 ac_default_prefix=/usr/local
Chris@0 412 ac_config_libobj_dir=.
Chris@0 413 cross_compiling=no
Chris@0 414 subdirs=
Chris@0 415 MFLAGS=
Chris@0 416 MAKEFLAGS=
Chris@0 417 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@0 418
Chris@0 419 # Maximum number of lines to put in a shell here document.
Chris@0 420 # This variable seems obsolete. It should probably be removed, and
Chris@0 421 # only ac_max_sed_lines should be used.
Chris@0 422 : ${ac_max_here_lines=38}
Chris@0 423
Chris@0 424 # Identity of this package.
Chris@0 425 PACKAGE_NAME='ID3 Tag'
Chris@0 426 PACKAGE_TARNAME='libid3tag'
Chris@0 427 PACKAGE_VERSION='0.15.1b'
Chris@0 428 PACKAGE_STRING='ID3 Tag 0.15.1b'
Chris@0 429 PACKAGE_BUGREPORT='support@underbit.com'
Chris@0 430
Chris@0 431 ac_unique_file="id3tag.h"
Chris@0 432 # Factoring default headers for most tests.
Chris@0 433 ac_includes_default="\
Chris@0 434 #include <stdio.h>
Chris@0 435 #if HAVE_SYS_TYPES_H
Chris@0 436 # include <sys/types.h>
Chris@0 437 #endif
Chris@0 438 #if HAVE_SYS_STAT_H
Chris@0 439 # include <sys/stat.h>
Chris@0 440 #endif
Chris@0 441 #if STDC_HEADERS
Chris@0 442 # include <stdlib.h>
Chris@0 443 # include <stddef.h>
Chris@0 444 #else
Chris@0 445 # if HAVE_STDLIB_H
Chris@0 446 # include <stdlib.h>
Chris@0 447 # endif
Chris@0 448 #endif
Chris@0 449 #if HAVE_STRING_H
Chris@0 450 # if !STDC_HEADERS && HAVE_MEMORY_H
Chris@0 451 # include <memory.h>
Chris@0 452 # endif
Chris@0 453 # include <string.h>
Chris@0 454 #endif
Chris@0 455 #if HAVE_STRINGS_H
Chris@0 456 # include <strings.h>
Chris@0 457 #endif
Chris@0 458 #if HAVE_INTTYPES_H
Chris@0 459 # include <inttypes.h>
Chris@0 460 #else
Chris@0 461 # if HAVE_STDINT_H
Chris@0 462 # include <stdint.h>
Chris@0 463 # endif
Chris@0 464 #endif
Chris@0 465 #if HAVE_UNISTD_H
Chris@0 466 # include <unistd.h>
Chris@0 467 #endif"
Chris@0 468
Chris@0 469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS DEBUG_TRUE DEBUG_FALSE LIBOBJS LTLIBOBJS'
Chris@0 470 ac_subst_files=''
Chris@0 471
Chris@0 472 # Initialize some variables set by options.
Chris@0 473 ac_init_help=
Chris@0 474 ac_init_version=false
Chris@0 475 # The variables have the same names as the options, with
Chris@0 476 # dashes changed to underlines.
Chris@0 477 cache_file=/dev/null
Chris@0 478 exec_prefix=NONE
Chris@0 479 no_create=
Chris@0 480 no_recursion=
Chris@0 481 prefix=NONE
Chris@0 482 program_prefix=NONE
Chris@0 483 program_suffix=NONE
Chris@0 484 program_transform_name=s,x,x,
Chris@0 485 silent=
Chris@0 486 site=
Chris@0 487 srcdir=
Chris@0 488 verbose=
Chris@0 489 x_includes=NONE
Chris@0 490 x_libraries=NONE
Chris@0 491
Chris@0 492 # Installation directory options.
Chris@0 493 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@0 494 # and all the variables that are supposed to be based on exec_prefix
Chris@0 495 # by default will actually change.
Chris@0 496 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@0 497 bindir='${exec_prefix}/bin'
Chris@0 498 sbindir='${exec_prefix}/sbin'
Chris@0 499 libexecdir='${exec_prefix}/libexec'
Chris@0 500 datadir='${prefix}/share'
Chris@0 501 sysconfdir='${prefix}/etc'
Chris@0 502 sharedstatedir='${prefix}/com'
Chris@0 503 localstatedir='${prefix}/var'
Chris@0 504 libdir='${exec_prefix}/lib'
Chris@0 505 includedir='${prefix}/include'
Chris@0 506 oldincludedir='/usr/include'
Chris@0 507 infodir='${prefix}/info'
Chris@0 508 mandir='${prefix}/man'
Chris@0 509
Chris@0 510 ac_prev=
Chris@0 511 for ac_option
Chris@0 512 do
Chris@0 513 # If the previous option needs an argument, assign it.
Chris@0 514 if test -n "$ac_prev"; then
Chris@0 515 eval "$ac_prev=\$ac_option"
Chris@0 516 ac_prev=
Chris@0 517 continue
Chris@0 518 fi
Chris@0 519
Chris@0 520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Chris@0 521
Chris@0 522 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@0 523
Chris@0 524 case $ac_option in
Chris@0 525
Chris@0 526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@0 527 ac_prev=bindir ;;
Chris@0 528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@0 529 bindir=$ac_optarg ;;
Chris@0 530
Chris@0 531 -build | --build | --buil | --bui | --bu)
Chris@0 532 ac_prev=build_alias ;;
Chris@0 533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@0 534 build_alias=$ac_optarg ;;
Chris@0 535
Chris@0 536 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@0 537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@0 538 ac_prev=cache_file ;;
Chris@0 539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@0 540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@0 541 cache_file=$ac_optarg ;;
Chris@0 542
Chris@0 543 --config-cache | -C)
Chris@0 544 cache_file=config.cache ;;
Chris@0 545
Chris@0 546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
Chris@0 547 ac_prev=datadir ;;
Chris@0 548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
Chris@0 549 | --da=*)
Chris@0 550 datadir=$ac_optarg ;;
Chris@0 551
Chris@0 552 -disable-* | --disable-*)
Chris@0 553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@0 554 # Reject names that are not valid shell variable names.
Chris@0 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Chris@0 556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
Chris@0 557 { (exit 1); exit 1; }; }
Chris@0 558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Chris@0 559 eval "enable_$ac_feature=no" ;;
Chris@0 560
Chris@0 561 -enable-* | --enable-*)
Chris@0 562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@0 563 # Reject names that are not valid shell variable names.
Chris@0 564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Chris@0 565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
Chris@0 566 { (exit 1); exit 1; }; }
Chris@0 567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Chris@0 568 case $ac_option in
Chris@0 569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Chris@0 570 *) ac_optarg=yes ;;
Chris@0 571 esac
Chris@0 572 eval "enable_$ac_feature='$ac_optarg'" ;;
Chris@0 573
Chris@0 574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@0 575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@0 576 | --exec | --exe | --ex)
Chris@0 577 ac_prev=exec_prefix ;;
Chris@0 578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@0 579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@0 580 | --exec=* | --exe=* | --ex=*)
Chris@0 581 exec_prefix=$ac_optarg ;;
Chris@0 582
Chris@0 583 -gas | --gas | --ga | --g)
Chris@0 584 # Obsolete; use --with-gas.
Chris@0 585 with_gas=yes ;;
Chris@0 586
Chris@0 587 -help | --help | --hel | --he | -h)
Chris@0 588 ac_init_help=long ;;
Chris@0 589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@0 590 ac_init_help=recursive ;;
Chris@0 591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@0 592 ac_init_help=short ;;
Chris@0 593
Chris@0 594 -host | --host | --hos | --ho)
Chris@0 595 ac_prev=host_alias ;;
Chris@0 596 -host=* | --host=* | --hos=* | --ho=*)
Chris@0 597 host_alias=$ac_optarg ;;
Chris@0 598
Chris@0 599 -includedir | --includedir | --includedi | --included | --include \
Chris@0 600 | --includ | --inclu | --incl | --inc)
Chris@0 601 ac_prev=includedir ;;
Chris@0 602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@0 603 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@0 604 includedir=$ac_optarg ;;
Chris@0 605
Chris@0 606 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@0 607 ac_prev=infodir ;;
Chris@0 608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@0 609 infodir=$ac_optarg ;;
Chris@0 610
Chris@0 611 -libdir | --libdir | --libdi | --libd)
Chris@0 612 ac_prev=libdir ;;
Chris@0 613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@0 614 libdir=$ac_optarg ;;
Chris@0 615
Chris@0 616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@0 617 | --libexe | --libex | --libe)
Chris@0 618 ac_prev=libexecdir ;;
Chris@0 619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@0 620 | --libexe=* | --libex=* | --libe=*)
Chris@0 621 libexecdir=$ac_optarg ;;
Chris@0 622
Chris@0 623 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@0 624 | --localstate | --localstat | --localsta | --localst \
Chris@0 625 | --locals | --local | --loca | --loc | --lo)
Chris@0 626 ac_prev=localstatedir ;;
Chris@0 627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@0 628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
Chris@0 629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Chris@0 630 localstatedir=$ac_optarg ;;
Chris@0 631
Chris@0 632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@0 633 ac_prev=mandir ;;
Chris@0 634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@0 635 mandir=$ac_optarg ;;
Chris@0 636
Chris@0 637 -nfp | --nfp | --nf)
Chris@0 638 # Obsolete; use --without-fp.
Chris@0 639 with_fp=no ;;
Chris@0 640
Chris@0 641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@0 642 | --no-cr | --no-c | -n)
Chris@0 643 no_create=yes ;;
Chris@0 644
Chris@0 645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@0 646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@0 647 no_recursion=yes ;;
Chris@0 648
Chris@0 649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@0 650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@0 651 | --oldin | --oldi | --old | --ol | --o)
Chris@0 652 ac_prev=oldincludedir ;;
Chris@0 653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@0 654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@0 655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@0 656 oldincludedir=$ac_optarg ;;
Chris@0 657
Chris@0 658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@0 659 ac_prev=prefix ;;
Chris@0 660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@0 661 prefix=$ac_optarg ;;
Chris@0 662
Chris@0 663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@0 664 | --program-pre | --program-pr | --program-p)
Chris@0 665 ac_prev=program_prefix ;;
Chris@0 666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@0 667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@0 668 program_prefix=$ac_optarg ;;
Chris@0 669
Chris@0 670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@0 671 | --program-suf | --program-su | --program-s)
Chris@0 672 ac_prev=program_suffix ;;
Chris@0 673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@0 674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@0 675 program_suffix=$ac_optarg ;;
Chris@0 676
Chris@0 677 -program-transform-name | --program-transform-name \
Chris@0 678 | --program-transform-nam | --program-transform-na \
Chris@0 679 | --program-transform-n | --program-transform- \
Chris@0 680 | --program-transform | --program-transfor \
Chris@0 681 | --program-transfo | --program-transf \
Chris@0 682 | --program-trans | --program-tran \
Chris@0 683 | --progr-tra | --program-tr | --program-t)
Chris@0 684 ac_prev=program_transform_name ;;
Chris@0 685 -program-transform-name=* | --program-transform-name=* \
Chris@0 686 | --program-transform-nam=* | --program-transform-na=* \
Chris@0 687 | --program-transform-n=* | --program-transform-=* \
Chris@0 688 | --program-transform=* | --program-transfor=* \
Chris@0 689 | --program-transfo=* | --program-transf=* \
Chris@0 690 | --program-trans=* | --program-tran=* \
Chris@0 691 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@0 692 program_transform_name=$ac_optarg ;;
Chris@0 693
Chris@0 694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@0 695 | -silent | --silent | --silen | --sile | --sil)
Chris@0 696 silent=yes ;;
Chris@0 697
Chris@0 698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@0 699 ac_prev=sbindir ;;
Chris@0 700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@0 701 | --sbi=* | --sb=*)
Chris@0 702 sbindir=$ac_optarg ;;
Chris@0 703
Chris@0 704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@0 705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@0 706 | --sharedst | --shareds | --shared | --share | --shar \
Chris@0 707 | --sha | --sh)
Chris@0 708 ac_prev=sharedstatedir ;;
Chris@0 709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@0 710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@0 711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@0 712 | --sha=* | --sh=*)
Chris@0 713 sharedstatedir=$ac_optarg ;;
Chris@0 714
Chris@0 715 -site | --site | --sit)
Chris@0 716 ac_prev=site ;;
Chris@0 717 -site=* | --site=* | --sit=*)
Chris@0 718 site=$ac_optarg ;;
Chris@0 719
Chris@0 720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@0 721 ac_prev=srcdir ;;
Chris@0 722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@0 723 srcdir=$ac_optarg ;;
Chris@0 724
Chris@0 725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@0 726 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@0 727 ac_prev=sysconfdir ;;
Chris@0 728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@0 729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@0 730 sysconfdir=$ac_optarg ;;
Chris@0 731
Chris@0 732 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@0 733 ac_prev=target_alias ;;
Chris@0 734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@0 735 target_alias=$ac_optarg ;;
Chris@0 736
Chris@0 737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@0 738 verbose=yes ;;
Chris@0 739
Chris@0 740 -version | --version | --versio | --versi | --vers | -V)
Chris@0 741 ac_init_version=: ;;
Chris@0 742
Chris@0 743 -with-* | --with-*)
Chris@0 744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@0 745 # Reject names that are not valid shell variable names.
Chris@0 746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Chris@0 747 { echo "$as_me: error: invalid package name: $ac_package" >&2
Chris@0 748 { (exit 1); exit 1; }; }
Chris@0 749 ac_package=`echo $ac_package| sed 's/-/_/g'`
Chris@0 750 case $ac_option in
Chris@0 751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Chris@0 752 *) ac_optarg=yes ;;
Chris@0 753 esac
Chris@0 754 eval "with_$ac_package='$ac_optarg'" ;;
Chris@0 755
Chris@0 756 -without-* | --without-*)
Chris@0 757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@0 758 # Reject names that are not valid shell variable names.
Chris@0 759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Chris@0 760 { echo "$as_me: error: invalid package name: $ac_package" >&2
Chris@0 761 { (exit 1); exit 1; }; }
Chris@0 762 ac_package=`echo $ac_package | sed 's/-/_/g'`
Chris@0 763 eval "with_$ac_package=no" ;;
Chris@0 764
Chris@0 765 --x)
Chris@0 766 # Obsolete; use --with-x.
Chris@0 767 with_x=yes ;;
Chris@0 768
Chris@0 769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@0 770 | --x-incl | --x-inc | --x-in | --x-i)
Chris@0 771 ac_prev=x_includes ;;
Chris@0 772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@0 773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@0 774 x_includes=$ac_optarg ;;
Chris@0 775
Chris@0 776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@0 777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@0 778 ac_prev=x_libraries ;;
Chris@0 779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@0 780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@0 781 x_libraries=$ac_optarg ;;
Chris@0 782
Chris@0 783 -*) { echo "$as_me: error: unrecognized option: $ac_option
Chris@0 784 Try \`$0 --help' for more information." >&2
Chris@0 785 { (exit 1); exit 1; }; }
Chris@0 786 ;;
Chris@0 787
Chris@0 788 *=*)
Chris@0 789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@0 790 # Reject names that are not valid shell variable names.
Chris@0 791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
Chris@0 792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
Chris@0 793 { (exit 1); exit 1; }; }
Chris@0 794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
Chris@0 795 eval "$ac_envvar='$ac_optarg'"
Chris@0 796 export $ac_envvar ;;
Chris@0 797
Chris@0 798 *)
Chris@0 799 # FIXME: should be removed in autoconf 3.0.
Chris@0 800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@0 801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@0 802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@0 803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Chris@0 804 ;;
Chris@0 805
Chris@0 806 esac
Chris@0 807 done
Chris@0 808
Chris@0 809 if test -n "$ac_prev"; then
Chris@0 810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@0 811 { echo "$as_me: error: missing argument to $ac_option" >&2
Chris@0 812 { (exit 1); exit 1; }; }
Chris@0 813 fi
Chris@0 814
Chris@0 815 # Be sure to have absolute paths.
Chris@0 816 for ac_var in exec_prefix prefix
Chris@0 817 do
Chris@0 818 eval ac_val=$`echo $ac_var`
Chris@0 819 case $ac_val in
Chris@0 820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Chris@0 821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Chris@0 822 { (exit 1); exit 1; }; };;
Chris@0 823 esac
Chris@0 824 done
Chris@0 825
Chris@0 826 # Be sure to have absolute paths.
Chris@0 827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Chris@0 828 localstatedir libdir includedir oldincludedir infodir mandir
Chris@0 829 do
Chris@0 830 eval ac_val=$`echo $ac_var`
Chris@0 831 case $ac_val in
Chris@0 832 [\\/$]* | ?:[\\/]* ) ;;
Chris@0 833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Chris@0 834 { (exit 1); exit 1; }; };;
Chris@0 835 esac
Chris@0 836 done
Chris@0 837
Chris@0 838 # There might be people who depend on the old broken behavior: `$host'
Chris@0 839 # used to hold the argument of --host etc.
Chris@0 840 # FIXME: To remove some day.
Chris@0 841 build=$build_alias
Chris@0 842 host=$host_alias
Chris@0 843 target=$target_alias
Chris@0 844
Chris@0 845 # FIXME: To remove some day.
Chris@0 846 if test "x$host_alias" != x; then
Chris@0 847 if test "x$build_alias" = x; then
Chris@0 848 cross_compiling=maybe
Chris@0 849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Chris@0 850 If a cross compiler is detected then cross compile mode will be used." >&2
Chris@0 851 elif test "x$build_alias" != "x$host_alias"; then
Chris@0 852 cross_compiling=yes
Chris@0 853 fi
Chris@0 854 fi
Chris@0 855
Chris@0 856 ac_tool_prefix=
Chris@0 857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@0 858
Chris@0 859 test "$silent" = yes && exec 6>/dev/null
Chris@0 860
Chris@0 861
Chris@0 862 # Find the source files, if location was not specified.
Chris@0 863 if test -z "$srcdir"; then
Chris@0 864 ac_srcdir_defaulted=yes
Chris@0 865 # Try the directory containing this script, then its parent.
Chris@0 866 ac_confdir=`(dirname "$0") 2>/dev/null ||
Chris@0 867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 868 X"$0" : 'X\(//\)[^/]' \| \
Chris@0 869 X"$0" : 'X\(//\)$' \| \
Chris@0 870 X"$0" : 'X\(/\)' \| \
Chris@0 871 . : '\(.\)' 2>/dev/null ||
Chris@0 872 echo X"$0" |
Chris@0 873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 875 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 876 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 877 s/.*/./; q'`
Chris@0 878 srcdir=$ac_confdir
Chris@0 879 if test ! -r $srcdir/$ac_unique_file; then
Chris@0 880 srcdir=..
Chris@0 881 fi
Chris@0 882 else
Chris@0 883 ac_srcdir_defaulted=no
Chris@0 884 fi
Chris@0 885 if test ! -r $srcdir/$ac_unique_file; then
Chris@0 886 if test "$ac_srcdir_defaulted" = yes; then
Chris@0 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Chris@0 888 { (exit 1); exit 1; }; }
Chris@0 889 else
Chris@0 890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Chris@0 891 { (exit 1); exit 1; }; }
Chris@0 892 fi
Chris@0 893 fi
Chris@0 894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
Chris@0 895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
Chris@0 896 { (exit 1); exit 1; }; }
Chris@0 897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
Chris@0 898 ac_env_build_alias_set=${build_alias+set}
Chris@0 899 ac_env_build_alias_value=$build_alias
Chris@0 900 ac_cv_env_build_alias_set=${build_alias+set}
Chris@0 901 ac_cv_env_build_alias_value=$build_alias
Chris@0 902 ac_env_host_alias_set=${host_alias+set}
Chris@0 903 ac_env_host_alias_value=$host_alias
Chris@0 904 ac_cv_env_host_alias_set=${host_alias+set}
Chris@0 905 ac_cv_env_host_alias_value=$host_alias
Chris@0 906 ac_env_target_alias_set=${target_alias+set}
Chris@0 907 ac_env_target_alias_value=$target_alias
Chris@0 908 ac_cv_env_target_alias_set=${target_alias+set}
Chris@0 909 ac_cv_env_target_alias_value=$target_alias
Chris@0 910 ac_env_CC_set=${CC+set}
Chris@0 911 ac_env_CC_value=$CC
Chris@0 912 ac_cv_env_CC_set=${CC+set}
Chris@0 913 ac_cv_env_CC_value=$CC
Chris@0 914 ac_env_CFLAGS_set=${CFLAGS+set}
Chris@0 915 ac_env_CFLAGS_value=$CFLAGS
Chris@0 916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
Chris@0 917 ac_cv_env_CFLAGS_value=$CFLAGS
Chris@0 918 ac_env_LDFLAGS_set=${LDFLAGS+set}
Chris@0 919 ac_env_LDFLAGS_value=$LDFLAGS
Chris@0 920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
Chris@0 921 ac_cv_env_LDFLAGS_value=$LDFLAGS
Chris@0 922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
Chris@0 923 ac_env_CPPFLAGS_value=$CPPFLAGS
Chris@0 924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
Chris@0 925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Chris@0 926 ac_env_CPP_set=${CPP+set}
Chris@0 927 ac_env_CPP_value=$CPP
Chris@0 928 ac_cv_env_CPP_set=${CPP+set}
Chris@0 929 ac_cv_env_CPP_value=$CPP
Chris@0 930 ac_env_CXX_set=${CXX+set}
Chris@0 931 ac_env_CXX_value=$CXX
Chris@0 932 ac_cv_env_CXX_set=${CXX+set}
Chris@0 933 ac_cv_env_CXX_value=$CXX
Chris@0 934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
Chris@0 935 ac_env_CXXFLAGS_value=$CXXFLAGS
Chris@0 936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
Chris@0 937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Chris@0 938 ac_env_CXXCPP_set=${CXXCPP+set}
Chris@0 939 ac_env_CXXCPP_value=$CXXCPP
Chris@0 940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
Chris@0 941 ac_cv_env_CXXCPP_value=$CXXCPP
Chris@0 942 ac_env_F77_set=${F77+set}
Chris@0 943 ac_env_F77_value=$F77
Chris@0 944 ac_cv_env_F77_set=${F77+set}
Chris@0 945 ac_cv_env_F77_value=$F77
Chris@0 946 ac_env_FFLAGS_set=${FFLAGS+set}
Chris@0 947 ac_env_FFLAGS_value=$FFLAGS
Chris@0 948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
Chris@0 949 ac_cv_env_FFLAGS_value=$FFLAGS
Chris@0 950
Chris@0 951 #
Chris@0 952 # Report the --help message.
Chris@0 953 #
Chris@0 954 if test "$ac_init_help" = "long"; then
Chris@0 955 # Omit some internal or obsolete options to make the list less imposing.
Chris@0 956 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@0 957 cat <<_ACEOF
Chris@0 958 \`configure' configures ID3 Tag 0.15.1b to adapt to many kinds of systems.
Chris@0 959
Chris@0 960 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@0 961
Chris@0 962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@0 963 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@0 964
Chris@0 965 Defaults for the options are specified in brackets.
Chris@0 966
Chris@0 967 Configuration:
Chris@0 968 -h, --help display this help and exit
Chris@0 969 --help=short display options specific to this package
Chris@0 970 --help=recursive display the short help of all the included packages
Chris@0 971 -V, --version display version information and exit
Chris@0 972 -q, --quiet, --silent do not print \`checking...' messages
Chris@0 973 --cache-file=FILE cache test results in FILE [disabled]
Chris@0 974 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@0 975 -n, --no-create do not create output files
Chris@0 976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@0 977
Chris@0 978 _ACEOF
Chris@0 979
Chris@0 980 cat <<_ACEOF
Chris@0 981 Installation directories:
Chris@0 982 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@0 983 [$ac_default_prefix]
Chris@0 984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@0 985 [PREFIX]
Chris@0 986
Chris@0 987 By default, \`make install' will install all the files in
Chris@0 988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@0 989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@0 990 for instance \`--prefix=\$HOME'.
Chris@0 991
Chris@0 992 For better control, use the options below.
Chris@0 993
Chris@0 994 Fine tuning of the installation directories:
Chris@0 995 --bindir=DIR user executables [EPREFIX/bin]
Chris@0 996 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@0 997 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@0 998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
Chris@0 999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@0 1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@0 1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@0 1002 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@0 1003 --includedir=DIR C header files [PREFIX/include]
Chris@0 1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@0 1005 --infodir=DIR info documentation [PREFIX/info]
Chris@0 1006 --mandir=DIR man documentation [PREFIX/man]
Chris@0 1007 _ACEOF
Chris@0 1008
Chris@0 1009 cat <<\_ACEOF
Chris@0 1010
Chris@0 1011 Program names:
Chris@0 1012 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@0 1013 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@0 1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@0 1015
Chris@0 1016 System types:
Chris@0 1017 --build=BUILD configure for building on BUILD [guessed]
Chris@0 1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@0 1019 _ACEOF
Chris@0 1020 fi
Chris@0 1021
Chris@0 1022 if test -n "$ac_init_help"; then
Chris@0 1023 case $ac_init_help in
Chris@0 1024 short | recursive ) echo "Configuration of ID3 Tag 0.15.1b:";;
Chris@0 1025 esac
Chris@0 1026 cat <<\_ACEOF
Chris@0 1027
Chris@0 1028 Optional Features:
Chris@0 1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@0 1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@0 1031 --disable-dependency-tracking speeds up one-time build
Chris@0 1032 --enable-dependency-tracking do not reject slow dependency extractors
Chris@0 1033 --enable-shared[=PKGS]
Chris@0 1034 build shared libraries [default=yes]
Chris@0 1035 --enable-static[=PKGS]
Chris@0 1036 build static libraries [default=yes]
Chris@0 1037 --enable-fast-install[=PKGS]
Chris@0 1038 optimize for fast installation [default=yes]
Chris@0 1039 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@0 1040 --enable-profiling generate profiling code
Chris@0 1041 --enable-debugging enable diagnostic debugging support
Chris@0 1042 --disable-debugging do not enable debugging and use more optimization
Chris@0 1043
Chris@0 1044 Optional Packages:
Chris@0 1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@0 1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@0 1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@0 1048 --with-pic try to use only PIC/non-PIC objects [default=use
Chris@0 1049 both]
Chris@0 1050 --with-tags[=TAGS]
Chris@0 1051 include additional configurations [automatic]
Chris@0 1052
Chris@0 1053 Some influential environment variables:
Chris@0 1054 CC C compiler command
Chris@0 1055 CFLAGS C compiler flags
Chris@0 1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@0 1057 nonstandard directory <lib dir>
Chris@0 1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
Chris@0 1059 headers in a nonstandard directory <include dir>
Chris@0 1060 CPP C preprocessor
Chris@0 1061 CXX C++ compiler command
Chris@0 1062 CXXFLAGS C++ compiler flags
Chris@0 1063 CXXCPP C++ preprocessor
Chris@0 1064 F77 Fortran 77 compiler command
Chris@0 1065 FFLAGS Fortran 77 compiler flags
Chris@0 1066
Chris@0 1067 Use these variables to override the choices made by `configure' or to help
Chris@0 1068 it to find libraries and programs with nonstandard names/locations.
Chris@0 1069
Chris@0 1070 Report bugs to <support@underbit.com>.
Chris@0 1071 _ACEOF
Chris@0 1072 fi
Chris@0 1073
Chris@0 1074 if test "$ac_init_help" = "recursive"; then
Chris@0 1075 # If there are subdirs, report their specific --help.
Chris@0 1076 ac_popdir=`pwd`
Chris@0 1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@0 1078 test -d $ac_dir || continue
Chris@0 1079 ac_builddir=.
Chris@0 1080
Chris@0 1081 if test "$ac_dir" != .; then
Chris@0 1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@0 1083 # A "../" for each directory in $ac_dir_suffix.
Chris@0 1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Chris@0 1085 else
Chris@0 1086 ac_dir_suffix= ac_top_builddir=
Chris@0 1087 fi
Chris@0 1088
Chris@0 1089 case $srcdir in
Chris@0 1090 .) # No --srcdir option. We are building in place.
Chris@0 1091 ac_srcdir=.
Chris@0 1092 if test -z "$ac_top_builddir"; then
Chris@0 1093 ac_top_srcdir=.
Chris@0 1094 else
Chris@0 1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
Chris@0 1096 fi ;;
Chris@0 1097 [\\/]* | ?:[\\/]* ) # Absolute path.
Chris@0 1098 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@0 1099 ac_top_srcdir=$srcdir ;;
Chris@0 1100 *) # Relative path.
Chris@0 1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
Chris@0 1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Chris@0 1103 esac
Chris@0 1104
Chris@0 1105 # Do not use `cd foo && pwd` to compute absolute paths, because
Chris@0 1106 # the directories may not exist.
Chris@0 1107 case `pwd` in
Chris@0 1108 .) ac_abs_builddir="$ac_dir";;
Chris@0 1109 *)
Chris@0 1110 case "$ac_dir" in
Chris@0 1111 .) ac_abs_builddir=`pwd`;;
Chris@0 1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
Chris@0 1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
Chris@0 1114 esac;;
Chris@0 1115 esac
Chris@0 1116 case $ac_abs_builddir in
Chris@0 1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
Chris@0 1118 *)
Chris@0 1119 case ${ac_top_builddir}. in
Chris@0 1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
Chris@0 1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
Chris@0 1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
Chris@0 1123 esac;;
Chris@0 1124 esac
Chris@0 1125 case $ac_abs_builddir in
Chris@0 1126 .) ac_abs_srcdir=$ac_srcdir;;
Chris@0 1127 *)
Chris@0 1128 case $ac_srcdir in
Chris@0 1129 .) ac_abs_srcdir=$ac_abs_builddir;;
Chris@0 1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
Chris@0 1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
Chris@0 1132 esac;;
Chris@0 1133 esac
Chris@0 1134 case $ac_abs_builddir in
Chris@0 1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
Chris@0 1136 *)
Chris@0 1137 case $ac_top_srcdir in
Chris@0 1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
Chris@0 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
Chris@0 1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
Chris@0 1141 esac;;
Chris@0 1142 esac
Chris@0 1143
Chris@0 1144 cd $ac_dir
Chris@0 1145 # Check for guested configure; otherwise get Cygnus style configure.
Chris@0 1146 if test -f $ac_srcdir/configure.gnu; then
Chris@0 1147 echo
Chris@0 1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
Chris@0 1149 elif test -f $ac_srcdir/configure; then
Chris@0 1150 echo
Chris@0 1151 $SHELL $ac_srcdir/configure --help=recursive
Chris@0 1152 elif test -f $ac_srcdir/configure.ac ||
Chris@0 1153 test -f $ac_srcdir/configure.in; then
Chris@0 1154 echo
Chris@0 1155 $ac_configure --help
Chris@0 1156 else
Chris@0 1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@0 1158 fi
Chris@0 1159 cd "$ac_popdir"
Chris@0 1160 done
Chris@0 1161 fi
Chris@0 1162
Chris@0 1163 test -n "$ac_init_help" && exit 0
Chris@0 1164 if $ac_init_version; then
Chris@0 1165 cat <<\_ACEOF
Chris@0 1166 ID3 Tag configure 0.15.1b
Chris@0 1167 generated by GNU Autoconf 2.59
Chris@0 1168
Chris@0 1169 Copyright (C) 2003 Free Software Foundation, Inc.
Chris@0 1170 This configure script is free software; the Free Software Foundation
Chris@0 1171 gives unlimited permission to copy, distribute and modify it.
Chris@0 1172 _ACEOF
Chris@0 1173 exit 0
Chris@0 1174 fi
Chris@0 1175 exec 5>config.log
Chris@0 1176 cat >&5 <<_ACEOF
Chris@0 1177 This file contains any messages produced by compilers while
Chris@0 1178 running configure, to aid debugging if configure makes a mistake.
Chris@0 1179
Chris@0 1180 It was created by ID3 Tag $as_me 0.15.1b, which was
Chris@0 1181 generated by GNU Autoconf 2.59. Invocation command line was
Chris@0 1182
Chris@0 1183 $ $0 $@
Chris@0 1184
Chris@0 1185 _ACEOF
Chris@0 1186 {
Chris@0 1187 cat <<_ASUNAME
Chris@0 1188 ## --------- ##
Chris@0 1189 ## Platform. ##
Chris@0 1190 ## --------- ##
Chris@0 1191
Chris@0 1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@0 1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@0 1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@0 1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@0 1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@0 1197
Chris@0 1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@0 1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@0 1200
Chris@0 1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@0 1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@0 1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@0 1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
Chris@0 1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@0 1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@0 1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@0 1208
Chris@0 1209 _ASUNAME
Chris@0 1210
Chris@0 1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 1212 for as_dir in $PATH
Chris@0 1213 do
Chris@0 1214 IFS=$as_save_IFS
Chris@0 1215 test -z "$as_dir" && as_dir=.
Chris@0 1216 echo "PATH: $as_dir"
Chris@0 1217 done
Chris@0 1218
Chris@0 1219 } >&5
Chris@0 1220
Chris@0 1221 cat >&5 <<_ACEOF
Chris@0 1222
Chris@0 1223
Chris@0 1224 ## ----------- ##
Chris@0 1225 ## Core tests. ##
Chris@0 1226 ## ----------- ##
Chris@0 1227
Chris@0 1228 _ACEOF
Chris@0 1229
Chris@0 1230
Chris@0 1231 # Keep a trace of the command line.
Chris@0 1232 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@0 1233 # Strip out --silent because we don't want to record it for future runs.
Chris@0 1234 # Also quote any args containing shell meta-characters.
Chris@0 1235 # Make two passes to allow for proper duplicate-argument suppression.
Chris@0 1236 ac_configure_args=
Chris@0 1237 ac_configure_args0=
Chris@0 1238 ac_configure_args1=
Chris@0 1239 ac_sep=
Chris@0 1240 ac_must_keep_next=false
Chris@0 1241 for ac_pass in 1 2
Chris@0 1242 do
Chris@0 1243 for ac_arg
Chris@0 1244 do
Chris@0 1245 case $ac_arg in
Chris@0 1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@0 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@0 1248 | -silent | --silent | --silen | --sile | --sil)
Chris@0 1249 continue ;;
Chris@0 1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Chris@0 1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@0 1252 esac
Chris@0 1253 case $ac_pass in
Chris@0 1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Chris@0 1255 2)
Chris@0 1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Chris@0 1257 if test $ac_must_keep_next = true; then
Chris@0 1258 ac_must_keep_next=false # Got value, back to normal.
Chris@0 1259 else
Chris@0 1260 case $ac_arg in
Chris@0 1261 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@0 1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@0 1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@0 1264 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@0 1265 case "$ac_configure_args0 " in
Chris@0 1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@0 1267 esac
Chris@0 1268 ;;
Chris@0 1269 -* ) ac_must_keep_next=true ;;
Chris@0 1270 esac
Chris@0 1271 fi
Chris@0 1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
Chris@0 1273 # Get rid of the leading space.
Chris@0 1274 ac_sep=" "
Chris@0 1275 ;;
Chris@0 1276 esac
Chris@0 1277 done
Chris@0 1278 done
Chris@0 1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
Chris@0 1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Chris@0 1281
Chris@0 1282 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@0 1283 # config.log. We remove comments because anyway the quotes in there
Chris@0 1284 # would cause problems or look ugly.
Chris@0 1285 # WARNING: Be sure not to use single quotes in there, as some shells,
Chris@0 1286 # such as our DU 5.0 friend, will then `close' the trap.
Chris@0 1287 trap 'exit_status=$?
Chris@0 1288 # Save into config.log some information that might help in debugging.
Chris@0 1289 {
Chris@0 1290 echo
Chris@0 1291
Chris@0 1292 cat <<\_ASBOX
Chris@0 1293 ## ---------------- ##
Chris@0 1294 ## Cache variables. ##
Chris@0 1295 ## ---------------- ##
Chris@0 1296 _ASBOX
Chris@0 1297 echo
Chris@0 1298 # The following way of writing the cache mishandles newlines in values,
Chris@0 1299 {
Chris@0 1300 (set) 2>&1 |
Chris@0 1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
Chris@0 1302 *ac_space=\ *)
Chris@0 1303 sed -n \
Chris@0 1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
Chris@0 1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Chris@0 1306 ;;
Chris@0 1307 *)
Chris@0 1308 sed -n \
Chris@0 1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Chris@0 1310 ;;
Chris@0 1311 esac;
Chris@0 1312 }
Chris@0 1313 echo
Chris@0 1314
Chris@0 1315 cat <<\_ASBOX
Chris@0 1316 ## ----------------- ##
Chris@0 1317 ## Output variables. ##
Chris@0 1318 ## ----------------- ##
Chris@0 1319 _ASBOX
Chris@0 1320 echo
Chris@0 1321 for ac_var in $ac_subst_vars
Chris@0 1322 do
Chris@0 1323 eval ac_val=$`echo $ac_var`
Chris@0 1324 echo "$ac_var='"'"'$ac_val'"'"'"
Chris@0 1325 done | sort
Chris@0 1326 echo
Chris@0 1327
Chris@0 1328 if test -n "$ac_subst_files"; then
Chris@0 1329 cat <<\_ASBOX
Chris@0 1330 ## ------------- ##
Chris@0 1331 ## Output files. ##
Chris@0 1332 ## ------------- ##
Chris@0 1333 _ASBOX
Chris@0 1334 echo
Chris@0 1335 for ac_var in $ac_subst_files
Chris@0 1336 do
Chris@0 1337 eval ac_val=$`echo $ac_var`
Chris@0 1338 echo "$ac_var='"'"'$ac_val'"'"'"
Chris@0 1339 done | sort
Chris@0 1340 echo
Chris@0 1341 fi
Chris@0 1342
Chris@0 1343 if test -s confdefs.h; then
Chris@0 1344 cat <<\_ASBOX
Chris@0 1345 ## ----------- ##
Chris@0 1346 ## confdefs.h. ##
Chris@0 1347 ## ----------- ##
Chris@0 1348 _ASBOX
Chris@0 1349 echo
Chris@0 1350 sed "/^$/d" confdefs.h | sort
Chris@0 1351 echo
Chris@0 1352 fi
Chris@0 1353 test "$ac_signal" != 0 &&
Chris@0 1354 echo "$as_me: caught signal $ac_signal"
Chris@0 1355 echo "$as_me: exit $exit_status"
Chris@0 1356 } >&5
Chris@0 1357 rm -f core *.core &&
Chris@0 1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Chris@0 1359 exit $exit_status
Chris@0 1360 ' 0
Chris@0 1361 for ac_signal in 1 2 13 15; do
Chris@0 1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Chris@0 1363 done
Chris@0 1364 ac_signal=0
Chris@0 1365
Chris@0 1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@0 1367 rm -rf conftest* confdefs.h
Chris@0 1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
Chris@0 1369 echo >confdefs.h
Chris@0 1370
Chris@0 1371 # Predefined preprocessor variables.
Chris@0 1372
Chris@0 1373 cat >>confdefs.h <<_ACEOF
Chris@0 1374 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@0 1375 _ACEOF
Chris@0 1376
Chris@0 1377
Chris@0 1378 cat >>confdefs.h <<_ACEOF
Chris@0 1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@0 1380 _ACEOF
Chris@0 1381
Chris@0 1382
Chris@0 1383 cat >>confdefs.h <<_ACEOF
Chris@0 1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@0 1385 _ACEOF
Chris@0 1386
Chris@0 1387
Chris@0 1388 cat >>confdefs.h <<_ACEOF
Chris@0 1389 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@0 1390 _ACEOF
Chris@0 1391
Chris@0 1392
Chris@0 1393 cat >>confdefs.h <<_ACEOF
Chris@0 1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@0 1395 _ACEOF
Chris@0 1396
Chris@0 1397
Chris@0 1398 # Let the site file select an alternate cache file if it wants to.
Chris@0 1399 # Prefer explicitly selected file to automatically selected ones.
Chris@0 1400 if test -z "$CONFIG_SITE"; then
Chris@0 1401 if test "x$prefix" != xNONE; then
Chris@0 1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
Chris@0 1403 else
Chris@0 1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
Chris@0 1405 fi
Chris@0 1406 fi
Chris@0 1407 for ac_site_file in $CONFIG_SITE; do
Chris@0 1408 if test -r "$ac_site_file"; then
Chris@0 1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Chris@0 1410 echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@0 1411 sed 's/^/| /' "$ac_site_file" >&5
Chris@0 1412 . "$ac_site_file"
Chris@0 1413 fi
Chris@0 1414 done
Chris@0 1415
Chris@0 1416 if test -r "$cache_file"; then
Chris@0 1417 # Some versions of bash will fail to source /dev/null (special
Chris@0 1418 # files actually), so we avoid doing that.
Chris@0 1419 if test -f "$cache_file"; then
Chris@0 1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Chris@0 1421 echo "$as_me: loading cache $cache_file" >&6;}
Chris@0 1422 case $cache_file in
Chris@0 1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
Chris@0 1424 *) . ./$cache_file;;
Chris@0 1425 esac
Chris@0 1426 fi
Chris@0 1427 else
Chris@0 1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Chris@0 1429 echo "$as_me: creating cache $cache_file" >&6;}
Chris@0 1430 >$cache_file
Chris@0 1431 fi
Chris@0 1432
Chris@0 1433 # Check that the precious variables saved in the cache have kept the same
Chris@0 1434 # value.
Chris@0 1435 ac_cache_corrupted=false
Chris@0 1436 for ac_var in `(set) 2>&1 |
Chris@0 1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Chris@0 1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@0 1439 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@0 1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
Chris@0 1441 eval ac_new_val="\$ac_env_${ac_var}_value"
Chris@0 1442 case $ac_old_set,$ac_new_set in
Chris@0 1443 set,)
Chris@0 1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@0 1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@0 1446 ac_cache_corrupted=: ;;
Chris@0 1447 ,set)
Chris@0 1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Chris@0 1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@0 1450 ac_cache_corrupted=: ;;
Chris@0 1451 ,);;
Chris@0 1452 *)
Chris@0 1453 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@0 1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Chris@0 1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@0 1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Chris@0 1457 echo "$as_me: former value: $ac_old_val" >&2;}
Chris@0 1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Chris@0 1459 echo "$as_me: current value: $ac_new_val" >&2;}
Chris@0 1460 ac_cache_corrupted=:
Chris@0 1461 fi;;
Chris@0 1462 esac
Chris@0 1463 # Pass precious variables to config.status.
Chris@0 1464 if test "$ac_new_set" = set; then
Chris@0 1465 case $ac_new_val in
Chris@0 1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Chris@0 1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@0 1468 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@0 1469 esac
Chris@0 1470 case " $ac_configure_args " in
Chris@0 1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@0 1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Chris@0 1473 esac
Chris@0 1474 fi
Chris@0 1475 done
Chris@0 1476 if $ac_cache_corrupted; then
Chris@0 1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Chris@0 1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@0 1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Chris@0 1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
Chris@0 1481 { (exit 1); exit 1; }; }
Chris@0 1482 fi
Chris@0 1483
Chris@0 1484 ac_ext=c
Chris@0 1485 ac_cpp='$CPP $CPPFLAGS'
Chris@0 1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 1489
Chris@0 1490
Chris@0 1491
Chris@0 1492
Chris@0 1493
Chris@0 1494
Chris@0 1495
Chris@0 1496
Chris@0 1497
Chris@0 1498
Chris@0 1499
Chris@0 1500
Chris@0 1501
Chris@0 1502
Chris@0 1503
Chris@0 1504
Chris@0 1505
Chris@0 1506
Chris@0 1507
Chris@0 1508
Chris@0 1509
Chris@0 1510
Chris@0 1511
Chris@0 1512
Chris@0 1513
Chris@0 1514
Chris@0 1515
Chris@0 1516
Chris@0 1517
Chris@0 1518
Chris@0 1519
Chris@0 1520 am__api_version="1.8"
Chris@0 1521 ac_aux_dir=
Chris@0 1522 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
Chris@0 1523 if test -f $ac_dir/install-sh; then
Chris@0 1524 ac_aux_dir=$ac_dir
Chris@0 1525 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@0 1526 break
Chris@0 1527 elif test -f $ac_dir/install.sh; then
Chris@0 1528 ac_aux_dir=$ac_dir
Chris@0 1529 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@0 1530 break
Chris@0 1531 elif test -f $ac_dir/shtool; then
Chris@0 1532 ac_aux_dir=$ac_dir
Chris@0 1533 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@0 1534 break
Chris@0 1535 fi
Chris@0 1536 done
Chris@0 1537 if test -z "$ac_aux_dir"; then
Chris@0 1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
Chris@0 1539 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
Chris@0 1540 { (exit 1); exit 1; }; }
Chris@0 1541 fi
Chris@0 1542 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
Chris@0 1543 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
Chris@0 1544 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Chris@0 1545
Chris@0 1546 # Find a good install program. We prefer a C program (faster),
Chris@0 1547 # so one script is as good as another. But avoid the broken or
Chris@0 1548 # incompatible versions:
Chris@0 1549 # SysV /etc/install, /usr/sbin/install
Chris@0 1550 # SunOS /usr/etc/install
Chris@0 1551 # IRIX /sbin/install
Chris@0 1552 # AIX /bin/install
Chris@0 1553 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@0 1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@0 1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@0 1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@0 1557 # OS/2's system install, which has a completely different semantic
Chris@0 1558 # ./install, which can be erroneously created by make from ./install.sh.
Chris@0 1559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
Chris@0 1560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Chris@0 1561 if test -z "$INSTALL"; then
Chris@0 1562 if test "${ac_cv_path_install+set}" = set; then
Chris@0 1563 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 1564 else
Chris@0 1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 1566 for as_dir in $PATH
Chris@0 1567 do
Chris@0 1568 IFS=$as_save_IFS
Chris@0 1569 test -z "$as_dir" && as_dir=.
Chris@0 1570 # Account for people who put trailing slashes in PATH elements.
Chris@0 1571 case $as_dir/ in
Chris@0 1572 ./ | .// | /cC/* | \
Chris@0 1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@0 1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Chris@0 1575 /usr/ucb/* ) ;;
Chris@0 1576 *)
Chris@0 1577 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@0 1578 # Don't use installbsd from OSF since it installs stuff as root
Chris@0 1579 # by default.
Chris@0 1580 for ac_prog in ginstall scoinst install; do
Chris@0 1581 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@0 1583 if test $ac_prog = install &&
Chris@0 1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@0 1585 # AIX install. It has an incompatible calling convention.
Chris@0 1586 :
Chris@0 1587 elif test $ac_prog = install &&
Chris@0 1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@0 1589 # program-specific install script used by HP pwplus--don't use.
Chris@0 1590 :
Chris@0 1591 else
Chris@0 1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@0 1593 break 3
Chris@0 1594 fi
Chris@0 1595 fi
Chris@0 1596 done
Chris@0 1597 done
Chris@0 1598 ;;
Chris@0 1599 esac
Chris@0 1600 done
Chris@0 1601
Chris@0 1602
Chris@0 1603 fi
Chris@0 1604 if test "${ac_cv_path_install+set}" = set; then
Chris@0 1605 INSTALL=$ac_cv_path_install
Chris@0 1606 else
Chris@0 1607 # As a last resort, use the slow shell script. We don't cache a
Chris@0 1608 # path for INSTALL within a source directory, because that will
Chris@0 1609 # break other packages using the cache if that directory is
Chris@0 1610 # removed, or if the path is relative.
Chris@0 1611 INSTALL=$ac_install_sh
Chris@0 1612 fi
Chris@0 1613 fi
Chris@0 1614 echo "$as_me:$LINENO: result: $INSTALL" >&5
Chris@0 1615 echo "${ECHO_T}$INSTALL" >&6
Chris@0 1616
Chris@0 1617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@0 1618 # It thinks the first close brace ends the variable substitution.
Chris@0 1619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@0 1620
Chris@0 1621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@0 1622
Chris@0 1623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@0 1624
Chris@0 1625 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
Chris@0 1626 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
Chris@0 1627 # Just in case
Chris@0 1628 sleep 1
Chris@0 1629 echo timestamp > conftest.file
Chris@0 1630 # Do `set' in a subshell so we don't clobber the current shell's
Chris@0 1631 # arguments. Must try -L first in case configure is actually a
Chris@0 1632 # symlink; some systems play weird games with the mod time of symlinks
Chris@0 1633 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@0 1634 # directory).
Chris@0 1635 if (
Chris@0 1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
Chris@0 1637 if test "$*" = "X"; then
Chris@0 1638 # -L didn't work.
Chris@0 1639 set X `ls -t $srcdir/configure conftest.file`
Chris@0 1640 fi
Chris@0 1641 rm -f conftest.file
Chris@0 1642 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@0 1643 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@0 1644
Chris@0 1645 # If neither matched, then we have a broken ls. This can happen
Chris@0 1646 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@0 1647 # broken ls alias from the environment. This has actually
Chris@0 1648 # happened. Such a system could not be considered "sane".
Chris@0 1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
Chris@0 1650 alias in your environment" >&5
Chris@0 1651 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
Chris@0 1652 alias in your environment" >&2;}
Chris@0 1653 { (exit 1); exit 1; }; }
Chris@0 1654 fi
Chris@0 1655
Chris@0 1656 test "$2" = conftest.file
Chris@0 1657 )
Chris@0 1658 then
Chris@0 1659 # Ok.
Chris@0 1660 :
Chris@0 1661 else
Chris@0 1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Chris@0 1663 Check your system clock" >&5
Chris@0 1664 echo "$as_me: error: newly created file is older than distributed files!
Chris@0 1665 Check your system clock" >&2;}
Chris@0 1666 { (exit 1); exit 1; }; }
Chris@0 1667 fi
Chris@0 1668 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 1669 echo "${ECHO_T}yes" >&6
Chris@0 1670 test "$program_prefix" != NONE &&
Chris@0 1671 program_transform_name="s,^,$program_prefix,;$program_transform_name"
Chris@0 1672 # Use a double $ so make ignores it.
Chris@0 1673 test "$program_suffix" != NONE &&
Chris@0 1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
Chris@0 1675 # Double any \ or $. echo might interpret backslashes.
Chris@0 1676 # By default was `s,x,x', remove it if useless.
Chris@0 1677 cat <<\_ACEOF >conftest.sed
Chris@0 1678 s/[\\$]/&&/g;s/;s,x,x,$//
Chris@0 1679 _ACEOF
Chris@0 1680 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
Chris@0 1681 rm conftest.sed
Chris@0 1682
Chris@0 1683 # expand $ac_aux_dir to an absolute path
Chris@0 1684 am_aux_dir=`cd $ac_aux_dir && pwd`
Chris@0 1685
Chris@0 1686 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
Chris@0 1687 # Use eval to expand $SHELL
Chris@0 1688 if eval "$MISSING --run true"; then
Chris@0 1689 am_missing_run="$MISSING --run "
Chris@0 1690 else
Chris@0 1691 am_missing_run=
Chris@0 1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
Chris@0 1693 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Chris@0 1694 fi
Chris@0 1695
Chris@0 1696 if mkdir -p -- . 2>/dev/null; then
Chris@0 1697 # Keeping the `.' argument allows $(mkdir_p) to be used without
Chris@0 1698 # argument. Indeed, we sometimes output rules like
Chris@0 1699 # $(mkdir_p) $(somedir)
Chris@0 1700 # where $(somedir) is conditionally defined.
Chris@0 1701 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
Chris@0 1702 # expensive solution, as it forces Make to start a sub-shell.)
Chris@0 1703 mkdir_p='mkdir -p -- .'
Chris@0 1704 else
Chris@0 1705 # On NextStep and OpenStep, the `mkdir' command does not
Chris@0 1706 # recognize any option. It will interpret all options as
Chris@0 1707 # directories to create, and then abort because `.' already
Chris@0 1708 # exists.
Chris@0 1709 for d in ./-p ./--;
Chris@0 1710 do
Chris@0 1711 test -d $d && rmdir $d
Chris@0 1712 done
Chris@0 1713 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
Chris@0 1714 if test -f "$ac_aux_dir/mkinstalldirs"; then
Chris@0 1715 mkdir_p='$(mkinstalldirs)'
Chris@0 1716 else
Chris@0 1717 mkdir_p='$(install_sh) -d'
Chris@0 1718 fi
Chris@0 1719 fi
Chris@0 1720
Chris@0 1721 for ac_prog in gawk mawk nawk awk
Chris@0 1722 do
Chris@0 1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@0 1724 set dummy $ac_prog; ac_word=$2
Chris@0 1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 1727 if test "${ac_cv_prog_AWK+set}" = set; then
Chris@0 1728 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 1729 else
Chris@0 1730 if test -n "$AWK"; then
Chris@0 1731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@0 1732 else
Chris@0 1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 1734 for as_dir in $PATH
Chris@0 1735 do
Chris@0 1736 IFS=$as_save_IFS
Chris@0 1737 test -z "$as_dir" && as_dir=.
Chris@0 1738 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 1740 ac_cv_prog_AWK="$ac_prog"
Chris@0 1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 1742 break 2
Chris@0 1743 fi
Chris@0 1744 done
Chris@0 1745 done
Chris@0 1746
Chris@0 1747 fi
Chris@0 1748 fi
Chris@0 1749 AWK=$ac_cv_prog_AWK
Chris@0 1750 if test -n "$AWK"; then
Chris@0 1751 echo "$as_me:$LINENO: result: $AWK" >&5
Chris@0 1752 echo "${ECHO_T}$AWK" >&6
Chris@0 1753 else
Chris@0 1754 echo "$as_me:$LINENO: result: no" >&5
Chris@0 1755 echo "${ECHO_T}no" >&6
Chris@0 1756 fi
Chris@0 1757
Chris@0 1758 test -n "$AWK" && break
Chris@0 1759 done
Chris@0 1760
Chris@0 1761 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@0 1762 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Chris@0 1763 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Chris@0 1764 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
Chris@0 1765 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 1766 else
Chris@0 1767 cat >conftest.make <<\_ACEOF
Chris@0 1768 all:
Chris@0 1769 @echo 'ac_maketemp="$(MAKE)"'
Chris@0 1770 _ACEOF
Chris@0 1771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Chris@0 1772 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Chris@0 1773 if test -n "$ac_maketemp"; then
Chris@0 1774 eval ac_cv_prog_make_${ac_make}_set=yes
Chris@0 1775 else
Chris@0 1776 eval ac_cv_prog_make_${ac_make}_set=no
Chris@0 1777 fi
Chris@0 1778 rm -f conftest.make
Chris@0 1779 fi
Chris@0 1780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Chris@0 1781 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 1782 echo "${ECHO_T}yes" >&6
Chris@0 1783 SET_MAKE=
Chris@0 1784 else
Chris@0 1785 echo "$as_me:$LINENO: result: no" >&5
Chris@0 1786 echo "${ECHO_T}no" >&6
Chris@0 1787 SET_MAKE="MAKE=${MAKE-make}"
Chris@0 1788 fi
Chris@0 1789
Chris@0 1790 rm -rf .tst 2>/dev/null
Chris@0 1791 mkdir .tst 2>/dev/null
Chris@0 1792 if test -d .tst; then
Chris@0 1793 am__leading_dot=.
Chris@0 1794 else
Chris@0 1795 am__leading_dot=_
Chris@0 1796 fi
Chris@0 1797 rmdir .tst 2>/dev/null
Chris@0 1798
Chris@0 1799 # test to see if srcdir already configured
Chris@0 1800 if test "`cd $srcdir && pwd`" != "`pwd`" &&
Chris@0 1801 test -f $srcdir/config.status; then
Chris@0 1802 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
Chris@0 1803 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
Chris@0 1804 { (exit 1); exit 1; }; }
Chris@0 1805 fi
Chris@0 1806
Chris@0 1807 # test whether we have cygpath
Chris@0 1808 if test -z "$CYGPATH_W"; then
Chris@0 1809 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@0 1810 CYGPATH_W='cygpath -w'
Chris@0 1811 else
Chris@0 1812 CYGPATH_W=echo
Chris@0 1813 fi
Chris@0 1814 fi
Chris@0 1815
Chris@0 1816
Chris@0 1817 # Define the identity of the package.
Chris@0 1818 PACKAGE='libid3tag'
Chris@0 1819 VERSION='0.15.1b'
Chris@0 1820
Chris@0 1821
Chris@0 1822 cat >>confdefs.h <<_ACEOF
Chris@0 1823 #define PACKAGE "$PACKAGE"
Chris@0 1824 _ACEOF
Chris@0 1825
Chris@0 1826
Chris@0 1827 cat >>confdefs.h <<_ACEOF
Chris@0 1828 #define VERSION "$VERSION"
Chris@0 1829 _ACEOF
Chris@0 1830
Chris@0 1831 # Some tools Automake needs.
Chris@0 1832
Chris@0 1833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@0 1834
Chris@0 1835
Chris@0 1836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@0 1837
Chris@0 1838
Chris@0 1839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@0 1840
Chris@0 1841
Chris@0 1842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@0 1843
Chris@0 1844
Chris@0 1845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@0 1846
Chris@0 1847
Chris@0 1848 AMTAR=${AMTAR-"${am_missing_run}tar"}
Chris@0 1849
Chris@0 1850 install_sh=${install_sh-"$am_aux_dir/install-sh"}
Chris@0 1851
Chris@0 1852 # Installed binaries are usually stripped using `strip' when the user
Chris@0 1853 # run `make install-strip'. However `strip' might not be the right
Chris@0 1854 # tool to use in cross-compilation environments, therefore Automake
Chris@0 1855 # will honor the `STRIP' environment variable to overrule this program.
Chris@0 1856 if test "$cross_compiling" != no; then
Chris@0 1857 if test -n "$ac_tool_prefix"; then
Chris@0 1858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@0 1859 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@0 1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 1862 if test "${ac_cv_prog_STRIP+set}" = set; then
Chris@0 1863 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 1864 else
Chris@0 1865 if test -n "$STRIP"; then
Chris@0 1866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@0 1867 else
Chris@0 1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 1869 for as_dir in $PATH
Chris@0 1870 do
Chris@0 1871 IFS=$as_save_IFS
Chris@0 1872 test -z "$as_dir" && as_dir=.
Chris@0 1873 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 1875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@0 1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 1877 break 2
Chris@0 1878 fi
Chris@0 1879 done
Chris@0 1880 done
Chris@0 1881
Chris@0 1882 fi
Chris@0 1883 fi
Chris@0 1884 STRIP=$ac_cv_prog_STRIP
Chris@0 1885 if test -n "$STRIP"; then
Chris@0 1886 echo "$as_me:$LINENO: result: $STRIP" >&5
Chris@0 1887 echo "${ECHO_T}$STRIP" >&6
Chris@0 1888 else
Chris@0 1889 echo "$as_me:$LINENO: result: no" >&5
Chris@0 1890 echo "${ECHO_T}no" >&6
Chris@0 1891 fi
Chris@0 1892
Chris@0 1893 fi
Chris@0 1894 if test -z "$ac_cv_prog_STRIP"; then
Chris@0 1895 ac_ct_STRIP=$STRIP
Chris@0 1896 # Extract the first word of "strip", so it can be a program name with args.
Chris@0 1897 set dummy strip; ac_word=$2
Chris@0 1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 1900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Chris@0 1901 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 1902 else
Chris@0 1903 if test -n "$ac_ct_STRIP"; then
Chris@0 1904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@0 1905 else
Chris@0 1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 1907 for as_dir in $PATH
Chris@0 1908 do
Chris@0 1909 IFS=$as_save_IFS
Chris@0 1910 test -z "$as_dir" && as_dir=.
Chris@0 1911 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 1913 ac_cv_prog_ac_ct_STRIP="strip"
Chris@0 1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 1915 break 2
Chris@0 1916 fi
Chris@0 1917 done
Chris@0 1918 done
Chris@0 1919
Chris@0 1920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
Chris@0 1921 fi
Chris@0 1922 fi
Chris@0 1923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@0 1924 if test -n "$ac_ct_STRIP"; then
Chris@0 1925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Chris@0 1926 echo "${ECHO_T}$ac_ct_STRIP" >&6
Chris@0 1927 else
Chris@0 1928 echo "$as_me:$LINENO: result: no" >&5
Chris@0 1929 echo "${ECHO_T}no" >&6
Chris@0 1930 fi
Chris@0 1931
Chris@0 1932 STRIP=$ac_ct_STRIP
Chris@0 1933 else
Chris@0 1934 STRIP="$ac_cv_prog_STRIP"
Chris@0 1935 fi
Chris@0 1936
Chris@0 1937 fi
Chris@0 1938 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
Chris@0 1939
Chris@0 1940 # We need awk for the "check" target. The system "awk" is bad on
Chris@0 1941 # some platforms.
Chris@0 1942
Chris@0 1943
Chris@0 1944
Chris@0 1945
Chris@0 1946 ac_config_headers="$ac_config_headers config.h"
Chris@0 1947
Chris@0 1948
Chris@0 1949
Chris@0 1950 # Make sure we can run config.sub.
Chris@0 1951 $ac_config_sub sun4 >/dev/null 2>&1 ||
Chris@0 1952 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Chris@0 1953 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
Chris@0 1954 { (exit 1); exit 1; }; }
Chris@0 1955
Chris@0 1956 echo "$as_me:$LINENO: checking build system type" >&5
Chris@0 1957 echo $ECHO_N "checking build system type... $ECHO_C" >&6
Chris@0 1958 if test "${ac_cv_build+set}" = set; then
Chris@0 1959 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 1960 else
Chris@0 1961 ac_cv_build_alias=$build_alias
Chris@0 1962 test -z "$ac_cv_build_alias" &&
Chris@0 1963 ac_cv_build_alias=`$ac_config_guess`
Chris@0 1964 test -z "$ac_cv_build_alias" &&
Chris@0 1965 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Chris@0 1966 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Chris@0 1967 { (exit 1); exit 1; }; }
Chris@0 1968 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Chris@0 1969 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
Chris@0 1970 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Chris@0 1971 { (exit 1); exit 1; }; }
Chris@0 1972
Chris@0 1973 fi
Chris@0 1974 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Chris@0 1975 echo "${ECHO_T}$ac_cv_build" >&6
Chris@0 1976 build=$ac_cv_build
Chris@0 1977 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
Chris@0 1978 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
Chris@0 1979 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Chris@0 1980
Chris@0 1981
Chris@0 1982 echo "$as_me:$LINENO: checking host system type" >&5
Chris@0 1983 echo $ECHO_N "checking host system type... $ECHO_C" >&6
Chris@0 1984 if test "${ac_cv_host+set}" = set; then
Chris@0 1985 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 1986 else
Chris@0 1987 ac_cv_host_alias=$host_alias
Chris@0 1988 test -z "$ac_cv_host_alias" &&
Chris@0 1989 ac_cv_host_alias=$ac_cv_build_alias
Chris@0 1990 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Chris@0 1991 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Chris@0 1992 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
Chris@0 1993 { (exit 1); exit 1; }; }
Chris@0 1994
Chris@0 1995 fi
Chris@0 1996 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Chris@0 1997 echo "${ECHO_T}$ac_cv_host" >&6
Chris@0 1998 host=$ac_cv_host
Chris@0 1999 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
Chris@0 2000 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
Chris@0 2001 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Chris@0 2002
Chris@0 2003
Chris@0 2004
Chris@0 2005
Chris@0 2006 ac_ext=c
Chris@0 2007 ac_cpp='$CPP $CPPFLAGS'
Chris@0 2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 2011 if test -n "$ac_tool_prefix"; then
Chris@0 2012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@0 2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@0 2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 2016 if test "${ac_cv_prog_CC+set}" = set; then
Chris@0 2017 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2018 else
Chris@0 2019 if test -n "$CC"; then
Chris@0 2020 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@0 2021 else
Chris@0 2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 2023 for as_dir in $PATH
Chris@0 2024 do
Chris@0 2025 IFS=$as_save_IFS
Chris@0 2026 test -z "$as_dir" && as_dir=.
Chris@0 2027 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 2029 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@0 2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 2031 break 2
Chris@0 2032 fi
Chris@0 2033 done
Chris@0 2034 done
Chris@0 2035
Chris@0 2036 fi
Chris@0 2037 fi
Chris@0 2038 CC=$ac_cv_prog_CC
Chris@0 2039 if test -n "$CC"; then
Chris@0 2040 echo "$as_me:$LINENO: result: $CC" >&5
Chris@0 2041 echo "${ECHO_T}$CC" >&6
Chris@0 2042 else
Chris@0 2043 echo "$as_me:$LINENO: result: no" >&5
Chris@0 2044 echo "${ECHO_T}no" >&6
Chris@0 2045 fi
Chris@0 2046
Chris@0 2047 fi
Chris@0 2048 if test -z "$ac_cv_prog_CC"; then
Chris@0 2049 ac_ct_CC=$CC
Chris@0 2050 # Extract the first word of "gcc", so it can be a program name with args.
Chris@0 2051 set dummy gcc; ac_word=$2
Chris@0 2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Chris@0 2055 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2056 else
Chris@0 2057 if test -n "$ac_ct_CC"; then
Chris@0 2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@0 2059 else
Chris@0 2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 2061 for as_dir in $PATH
Chris@0 2062 do
Chris@0 2063 IFS=$as_save_IFS
Chris@0 2064 test -z "$as_dir" && as_dir=.
Chris@0 2065 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 2067 ac_cv_prog_ac_ct_CC="gcc"
Chris@0 2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 2069 break 2
Chris@0 2070 fi
Chris@0 2071 done
Chris@0 2072 done
Chris@0 2073
Chris@0 2074 fi
Chris@0 2075 fi
Chris@0 2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@0 2077 if test -n "$ac_ct_CC"; then
Chris@0 2078 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Chris@0 2079 echo "${ECHO_T}$ac_ct_CC" >&6
Chris@0 2080 else
Chris@0 2081 echo "$as_me:$LINENO: result: no" >&5
Chris@0 2082 echo "${ECHO_T}no" >&6
Chris@0 2083 fi
Chris@0 2084
Chris@0 2085 CC=$ac_ct_CC
Chris@0 2086 else
Chris@0 2087 CC="$ac_cv_prog_CC"
Chris@0 2088 fi
Chris@0 2089
Chris@0 2090 if test -z "$CC"; then
Chris@0 2091 if test -n "$ac_tool_prefix"; then
Chris@0 2092 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@0 2093 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@0 2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 2096 if test "${ac_cv_prog_CC+set}" = set; then
Chris@0 2097 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2098 else
Chris@0 2099 if test -n "$CC"; then
Chris@0 2100 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@0 2101 else
Chris@0 2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 2103 for as_dir in $PATH
Chris@0 2104 do
Chris@0 2105 IFS=$as_save_IFS
Chris@0 2106 test -z "$as_dir" && as_dir=.
Chris@0 2107 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 2109 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@0 2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 2111 break 2
Chris@0 2112 fi
Chris@0 2113 done
Chris@0 2114 done
Chris@0 2115
Chris@0 2116 fi
Chris@0 2117 fi
Chris@0 2118 CC=$ac_cv_prog_CC
Chris@0 2119 if test -n "$CC"; then
Chris@0 2120 echo "$as_me:$LINENO: result: $CC" >&5
Chris@0 2121 echo "${ECHO_T}$CC" >&6
Chris@0 2122 else
Chris@0 2123 echo "$as_me:$LINENO: result: no" >&5
Chris@0 2124 echo "${ECHO_T}no" >&6
Chris@0 2125 fi
Chris@0 2126
Chris@0 2127 fi
Chris@0 2128 if test -z "$ac_cv_prog_CC"; then
Chris@0 2129 ac_ct_CC=$CC
Chris@0 2130 # Extract the first word of "cc", so it can be a program name with args.
Chris@0 2131 set dummy cc; ac_word=$2
Chris@0 2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Chris@0 2135 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2136 else
Chris@0 2137 if test -n "$ac_ct_CC"; then
Chris@0 2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@0 2139 else
Chris@0 2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 2141 for as_dir in $PATH
Chris@0 2142 do
Chris@0 2143 IFS=$as_save_IFS
Chris@0 2144 test -z "$as_dir" && as_dir=.
Chris@0 2145 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 2147 ac_cv_prog_ac_ct_CC="cc"
Chris@0 2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 2149 break 2
Chris@0 2150 fi
Chris@0 2151 done
Chris@0 2152 done
Chris@0 2153
Chris@0 2154 fi
Chris@0 2155 fi
Chris@0 2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@0 2157 if test -n "$ac_ct_CC"; then
Chris@0 2158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Chris@0 2159 echo "${ECHO_T}$ac_ct_CC" >&6
Chris@0 2160 else
Chris@0 2161 echo "$as_me:$LINENO: result: no" >&5
Chris@0 2162 echo "${ECHO_T}no" >&6
Chris@0 2163 fi
Chris@0 2164
Chris@0 2165 CC=$ac_ct_CC
Chris@0 2166 else
Chris@0 2167 CC="$ac_cv_prog_CC"
Chris@0 2168 fi
Chris@0 2169
Chris@0 2170 fi
Chris@0 2171 if test -z "$CC"; then
Chris@0 2172 # Extract the first word of "cc", so it can be a program name with args.
Chris@0 2173 set dummy cc; ac_word=$2
Chris@0 2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 2176 if test "${ac_cv_prog_CC+set}" = set; then
Chris@0 2177 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2178 else
Chris@0 2179 if test -n "$CC"; then
Chris@0 2180 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@0 2181 else
Chris@0 2182 ac_prog_rejected=no
Chris@0 2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 2184 for as_dir in $PATH
Chris@0 2185 do
Chris@0 2186 IFS=$as_save_IFS
Chris@0 2187 test -z "$as_dir" && as_dir=.
Chris@0 2188 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 2190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@0 2191 ac_prog_rejected=yes
Chris@0 2192 continue
Chris@0 2193 fi
Chris@0 2194 ac_cv_prog_CC="cc"
Chris@0 2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 2196 break 2
Chris@0 2197 fi
Chris@0 2198 done
Chris@0 2199 done
Chris@0 2200
Chris@0 2201 if test $ac_prog_rejected = yes; then
Chris@0 2202 # We found a bogon in the path, so make sure we never use it.
Chris@0 2203 set dummy $ac_cv_prog_CC
Chris@0 2204 shift
Chris@0 2205 if test $# != 0; then
Chris@0 2206 # We chose a different compiler from the bogus one.
Chris@0 2207 # However, it has the same basename, so the bogon will be chosen
Chris@0 2208 # first if we set CC to just the basename; use the full file name.
Chris@0 2209 shift
Chris@0 2210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@0 2211 fi
Chris@0 2212 fi
Chris@0 2213 fi
Chris@0 2214 fi
Chris@0 2215 CC=$ac_cv_prog_CC
Chris@0 2216 if test -n "$CC"; then
Chris@0 2217 echo "$as_me:$LINENO: result: $CC" >&5
Chris@0 2218 echo "${ECHO_T}$CC" >&6
Chris@0 2219 else
Chris@0 2220 echo "$as_me:$LINENO: result: no" >&5
Chris@0 2221 echo "${ECHO_T}no" >&6
Chris@0 2222 fi
Chris@0 2223
Chris@0 2224 fi
Chris@0 2225 if test -z "$CC"; then
Chris@0 2226 if test -n "$ac_tool_prefix"; then
Chris@0 2227 for ac_prog in cl
Chris@0 2228 do
Chris@0 2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@0 2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@0 2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 2233 if test "${ac_cv_prog_CC+set}" = set; then
Chris@0 2234 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2235 else
Chris@0 2236 if test -n "$CC"; then
Chris@0 2237 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@0 2238 else
Chris@0 2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 2240 for as_dir in $PATH
Chris@0 2241 do
Chris@0 2242 IFS=$as_save_IFS
Chris@0 2243 test -z "$as_dir" && as_dir=.
Chris@0 2244 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@0 2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 2248 break 2
Chris@0 2249 fi
Chris@0 2250 done
Chris@0 2251 done
Chris@0 2252
Chris@0 2253 fi
Chris@0 2254 fi
Chris@0 2255 CC=$ac_cv_prog_CC
Chris@0 2256 if test -n "$CC"; then
Chris@0 2257 echo "$as_me:$LINENO: result: $CC" >&5
Chris@0 2258 echo "${ECHO_T}$CC" >&6
Chris@0 2259 else
Chris@0 2260 echo "$as_me:$LINENO: result: no" >&5
Chris@0 2261 echo "${ECHO_T}no" >&6
Chris@0 2262 fi
Chris@0 2263
Chris@0 2264 test -n "$CC" && break
Chris@0 2265 done
Chris@0 2266 fi
Chris@0 2267 if test -z "$CC"; then
Chris@0 2268 ac_ct_CC=$CC
Chris@0 2269 for ac_prog in cl
Chris@0 2270 do
Chris@0 2271 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@0 2272 set dummy $ac_prog; ac_word=$2
Chris@0 2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 2275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Chris@0 2276 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2277 else
Chris@0 2278 if test -n "$ac_ct_CC"; then
Chris@0 2279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@0 2280 else
Chris@0 2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 2282 for as_dir in $PATH
Chris@0 2283 do
Chris@0 2284 IFS=$as_save_IFS
Chris@0 2285 test -z "$as_dir" && as_dir=.
Chris@0 2286 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 2288 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@0 2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 2290 break 2
Chris@0 2291 fi
Chris@0 2292 done
Chris@0 2293 done
Chris@0 2294
Chris@0 2295 fi
Chris@0 2296 fi
Chris@0 2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@0 2298 if test -n "$ac_ct_CC"; then
Chris@0 2299 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Chris@0 2300 echo "${ECHO_T}$ac_ct_CC" >&6
Chris@0 2301 else
Chris@0 2302 echo "$as_me:$LINENO: result: no" >&5
Chris@0 2303 echo "${ECHO_T}no" >&6
Chris@0 2304 fi
Chris@0 2305
Chris@0 2306 test -n "$ac_ct_CC" && break
Chris@0 2307 done
Chris@0 2308
Chris@0 2309 CC=$ac_ct_CC
Chris@0 2310 fi
Chris@0 2311
Chris@0 2312 fi
Chris@0 2313
Chris@0 2314
Chris@0 2315 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Chris@0 2316 See \`config.log' for more details." >&5
Chris@0 2317 echo "$as_me: error: no acceptable C compiler found in \$PATH
Chris@0 2318 See \`config.log' for more details." >&2;}
Chris@0 2319 { (exit 1); exit 1; }; }
Chris@0 2320
Chris@0 2321 # Provide some information about the compiler.
Chris@0 2322 echo "$as_me:$LINENO:" \
Chris@0 2323 "checking for C compiler version" >&5
Chris@0 2324 ac_compiler=`set X $ac_compile; echo $2`
Chris@0 2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Chris@0 2326 (eval $ac_compiler --version </dev/null >&5) 2>&5
Chris@0 2327 ac_status=$?
Chris@0 2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2329 (exit $ac_status); }
Chris@0 2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Chris@0 2331 (eval $ac_compiler -v </dev/null >&5) 2>&5
Chris@0 2332 ac_status=$?
Chris@0 2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2334 (exit $ac_status); }
Chris@0 2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Chris@0 2336 (eval $ac_compiler -V </dev/null >&5) 2>&5
Chris@0 2337 ac_status=$?
Chris@0 2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2339 (exit $ac_status); }
Chris@0 2340
Chris@0 2341 cat >conftest.$ac_ext <<_ACEOF
Chris@0 2342 /* confdefs.h. */
Chris@0 2343 _ACEOF
Chris@0 2344 cat confdefs.h >>conftest.$ac_ext
Chris@0 2345 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 2346 /* end confdefs.h. */
Chris@0 2347
Chris@0 2348 int
Chris@0 2349 main ()
Chris@0 2350 {
Chris@0 2351
Chris@0 2352 ;
Chris@0 2353 return 0;
Chris@0 2354 }
Chris@0 2355 _ACEOF
Chris@0 2356 ac_clean_files_save=$ac_clean_files
Chris@0 2357 ac_clean_files="$ac_clean_files a.out a.exe b.out"
Chris@0 2358 # Try to create an executable without -o first, disregard a.out.
Chris@0 2359 # It will help us diagnose broken compilers, and finding out an intuition
Chris@0 2360 # of exeext.
Chris@0 2361 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
Chris@0 2362 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Chris@0 2363 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@0 2364 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Chris@0 2365 (eval $ac_link_default) 2>&5
Chris@0 2366 ac_status=$?
Chris@0 2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2368 (exit $ac_status); }; then
Chris@0 2369 # Find the output, starting from the most likely. This scheme is
Chris@0 2370 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
Chris@0 2371 # resort.
Chris@0 2372
Chris@0 2373 # Be careful to initialize this variable, since it used to be cached.
Chris@0 2374 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
Chris@0 2375 ac_cv_exeext=
Chris@0 2376 # b.out is created by i960 compilers.
Chris@0 2377 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
Chris@0 2378 do
Chris@0 2379 test -f "$ac_file" || continue
Chris@0 2380 case $ac_file in
Chris@0 2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Chris@0 2382 ;;
Chris@0 2383 conftest.$ac_ext )
Chris@0 2384 # This is the source file.
Chris@0 2385 ;;
Chris@0 2386 [ab].out )
Chris@0 2387 # We found the default executable, but exeext='' is most
Chris@0 2388 # certainly right.
Chris@0 2389 break;;
Chris@0 2390 *.* )
Chris@0 2391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@0 2392 # FIXME: I believe we export ac_cv_exeext for Libtool,
Chris@0 2393 # but it would be cool to find out if it's true. Does anybody
Chris@0 2394 # maintain Libtool? --akim.
Chris@0 2395 export ac_cv_exeext
Chris@0 2396 break;;
Chris@0 2397 * )
Chris@0 2398 break;;
Chris@0 2399 esac
Chris@0 2400 done
Chris@0 2401 else
Chris@0 2402 echo "$as_me: failed program was:" >&5
Chris@0 2403 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 2404
Chris@0 2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
Chris@0 2406 See \`config.log' for more details." >&5
Chris@0 2407 echo "$as_me: error: C compiler cannot create executables
Chris@0 2408 See \`config.log' for more details." >&2;}
Chris@0 2409 { (exit 77); exit 77; }; }
Chris@0 2410 fi
Chris@0 2411
Chris@0 2412 ac_exeext=$ac_cv_exeext
Chris@0 2413 echo "$as_me:$LINENO: result: $ac_file" >&5
Chris@0 2414 echo "${ECHO_T}$ac_file" >&6
Chris@0 2415
Chris@0 2416 # Check the compiler produces executables we can run. If not, either
Chris@0 2417 # the compiler is broken, or we cross compile.
Chris@0 2418 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Chris@0 2419 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
Chris@0 2420 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
Chris@0 2421 # If not cross compiling, check that we can run a simple program.
Chris@0 2422 if test "$cross_compiling" != yes; then
Chris@0 2423 if { ac_try='./$ac_file'
Chris@0 2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2425 (eval $ac_try) 2>&5
Chris@0 2426 ac_status=$?
Chris@0 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2428 (exit $ac_status); }; }; then
Chris@0 2429 cross_compiling=no
Chris@0 2430 else
Chris@0 2431 if test "$cross_compiling" = maybe; then
Chris@0 2432 cross_compiling=yes
Chris@0 2433 else
Chris@0 2434 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Chris@0 2435 If you meant to cross compile, use \`--host'.
Chris@0 2436 See \`config.log' for more details." >&5
Chris@0 2437 echo "$as_me: error: cannot run C compiled programs.
Chris@0 2438 If you meant to cross compile, use \`--host'.
Chris@0 2439 See \`config.log' for more details." >&2;}
Chris@0 2440 { (exit 1); exit 1; }; }
Chris@0 2441 fi
Chris@0 2442 fi
Chris@0 2443 fi
Chris@0 2444 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 2445 echo "${ECHO_T}yes" >&6
Chris@0 2446
Chris@0 2447 rm -f a.out a.exe conftest$ac_cv_exeext b.out
Chris@0 2448 ac_clean_files=$ac_clean_files_save
Chris@0 2449 # Check the compiler produces executables we can run. If not, either
Chris@0 2450 # the compiler is broken, or we cross compile.
Chris@0 2451 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Chris@0 2452 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Chris@0 2453 echo "$as_me:$LINENO: result: $cross_compiling" >&5
Chris@0 2454 echo "${ECHO_T}$cross_compiling" >&6
Chris@0 2455
Chris@0 2456 echo "$as_me:$LINENO: checking for suffix of executables" >&5
Chris@0 2457 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
Chris@0 2458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 2459 (eval $ac_link) 2>&5
Chris@0 2460 ac_status=$?
Chris@0 2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2462 (exit $ac_status); }; then
Chris@0 2463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@0 2464 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@0 2465 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@0 2466 # `rm'.
Chris@0 2467 for ac_file in conftest.exe conftest conftest.*; do
Chris@0 2468 test -f "$ac_file" || continue
Chris@0 2469 case $ac_file in
Chris@0 2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Chris@0 2471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@0 2472 export ac_cv_exeext
Chris@0 2473 break;;
Chris@0 2474 * ) break;;
Chris@0 2475 esac
Chris@0 2476 done
Chris@0 2477 else
Chris@0 2478 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Chris@0 2479 See \`config.log' for more details." >&5
Chris@0 2480 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Chris@0 2481 See \`config.log' for more details." >&2;}
Chris@0 2482 { (exit 1); exit 1; }; }
Chris@0 2483 fi
Chris@0 2484
Chris@0 2485 rm -f conftest$ac_cv_exeext
Chris@0 2486 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Chris@0 2487 echo "${ECHO_T}$ac_cv_exeext" >&6
Chris@0 2488
Chris@0 2489 rm -f conftest.$ac_ext
Chris@0 2490 EXEEXT=$ac_cv_exeext
Chris@0 2491 ac_exeext=$EXEEXT
Chris@0 2492 echo "$as_me:$LINENO: checking for suffix of object files" >&5
Chris@0 2493 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Chris@0 2494 if test "${ac_cv_objext+set}" = set; then
Chris@0 2495 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2496 else
Chris@0 2497 cat >conftest.$ac_ext <<_ACEOF
Chris@0 2498 /* confdefs.h. */
Chris@0 2499 _ACEOF
Chris@0 2500 cat confdefs.h >>conftest.$ac_ext
Chris@0 2501 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 2502 /* end confdefs.h. */
Chris@0 2503
Chris@0 2504 int
Chris@0 2505 main ()
Chris@0 2506 {
Chris@0 2507
Chris@0 2508 ;
Chris@0 2509 return 0;
Chris@0 2510 }
Chris@0 2511 _ACEOF
Chris@0 2512 rm -f conftest.o conftest.obj
Chris@0 2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 2514 (eval $ac_compile) 2>&5
Chris@0 2515 ac_status=$?
Chris@0 2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2517 (exit $ac_status); }; then
Chris@0 2518 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
Chris@0 2519 case $ac_file in
Chris@0 2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Chris@0 2521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@0 2522 break;;
Chris@0 2523 esac
Chris@0 2524 done
Chris@0 2525 else
Chris@0 2526 echo "$as_me: failed program was:" >&5
Chris@0 2527 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 2528
Chris@0 2529 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Chris@0 2530 See \`config.log' for more details." >&5
Chris@0 2531 echo "$as_me: error: cannot compute suffix of object files: cannot compile
Chris@0 2532 See \`config.log' for more details." >&2;}
Chris@0 2533 { (exit 1); exit 1; }; }
Chris@0 2534 fi
Chris@0 2535
Chris@0 2536 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@0 2537 fi
Chris@0 2538 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Chris@0 2539 echo "${ECHO_T}$ac_cv_objext" >&6
Chris@0 2540 OBJEXT=$ac_cv_objext
Chris@0 2541 ac_objext=$OBJEXT
Chris@0 2542 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Chris@0 2543 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
Chris@0 2544 if test "${ac_cv_c_compiler_gnu+set}" = set; then
Chris@0 2545 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2546 else
Chris@0 2547 cat >conftest.$ac_ext <<_ACEOF
Chris@0 2548 /* confdefs.h. */
Chris@0 2549 _ACEOF
Chris@0 2550 cat confdefs.h >>conftest.$ac_ext
Chris@0 2551 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 2552 /* end confdefs.h. */
Chris@0 2553
Chris@0 2554 int
Chris@0 2555 main ()
Chris@0 2556 {
Chris@0 2557 #ifndef __GNUC__
Chris@0 2558 choke me
Chris@0 2559 #endif
Chris@0 2560
Chris@0 2561 ;
Chris@0 2562 return 0;
Chris@0 2563 }
Chris@0 2564 _ACEOF
Chris@0 2565 rm -f conftest.$ac_objext
Chris@0 2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 2567 (eval $ac_compile) 2>conftest.er1
Chris@0 2568 ac_status=$?
Chris@0 2569 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 2570 rm -f conftest.er1
Chris@0 2571 cat conftest.err >&5
Chris@0 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2573 (exit $ac_status); } &&
Chris@0 2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2576 (eval $ac_try) 2>&5
Chris@0 2577 ac_status=$?
Chris@0 2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2579 (exit $ac_status); }; } &&
Chris@0 2580 { ac_try='test -s conftest.$ac_objext'
Chris@0 2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2582 (eval $ac_try) 2>&5
Chris@0 2583 ac_status=$?
Chris@0 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2585 (exit $ac_status); }; }; then
Chris@0 2586 ac_compiler_gnu=yes
Chris@0 2587 else
Chris@0 2588 echo "$as_me: failed program was:" >&5
Chris@0 2589 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 2590
Chris@0 2591 ac_compiler_gnu=no
Chris@0 2592 fi
Chris@0 2593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 2594 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@0 2595
Chris@0 2596 fi
Chris@0 2597 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Chris@0 2598 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
Chris@0 2599 GCC=`test $ac_compiler_gnu = yes && echo yes`
Chris@0 2600 ac_test_CFLAGS=${CFLAGS+set}
Chris@0 2601 ac_save_CFLAGS=$CFLAGS
Chris@0 2602 CFLAGS="-g"
Chris@0 2603 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Chris@0 2604 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
Chris@0 2605 if test "${ac_cv_prog_cc_g+set}" = set; then
Chris@0 2606 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2607 else
Chris@0 2608 cat >conftest.$ac_ext <<_ACEOF
Chris@0 2609 /* confdefs.h. */
Chris@0 2610 _ACEOF
Chris@0 2611 cat confdefs.h >>conftest.$ac_ext
Chris@0 2612 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 2613 /* end confdefs.h. */
Chris@0 2614
Chris@0 2615 int
Chris@0 2616 main ()
Chris@0 2617 {
Chris@0 2618
Chris@0 2619 ;
Chris@0 2620 return 0;
Chris@0 2621 }
Chris@0 2622 _ACEOF
Chris@0 2623 rm -f conftest.$ac_objext
Chris@0 2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 2625 (eval $ac_compile) 2>conftest.er1
Chris@0 2626 ac_status=$?
Chris@0 2627 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 2628 rm -f conftest.er1
Chris@0 2629 cat conftest.err >&5
Chris@0 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2631 (exit $ac_status); } &&
Chris@0 2632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2634 (eval $ac_try) 2>&5
Chris@0 2635 ac_status=$?
Chris@0 2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2637 (exit $ac_status); }; } &&
Chris@0 2638 { ac_try='test -s conftest.$ac_objext'
Chris@0 2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2640 (eval $ac_try) 2>&5
Chris@0 2641 ac_status=$?
Chris@0 2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2643 (exit $ac_status); }; }; then
Chris@0 2644 ac_cv_prog_cc_g=yes
Chris@0 2645 else
Chris@0 2646 echo "$as_me: failed program was:" >&5
Chris@0 2647 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 2648
Chris@0 2649 ac_cv_prog_cc_g=no
Chris@0 2650 fi
Chris@0 2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 2652 fi
Chris@0 2653 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Chris@0 2654 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Chris@0 2655 if test "$ac_test_CFLAGS" = set; then
Chris@0 2656 CFLAGS=$ac_save_CFLAGS
Chris@0 2657 elif test $ac_cv_prog_cc_g = yes; then
Chris@0 2658 if test "$GCC" = yes; then
Chris@0 2659 CFLAGS="-g -O2"
Chris@0 2660 else
Chris@0 2661 CFLAGS="-g"
Chris@0 2662 fi
Chris@0 2663 else
Chris@0 2664 if test "$GCC" = yes; then
Chris@0 2665 CFLAGS="-O2"
Chris@0 2666 else
Chris@0 2667 CFLAGS=
Chris@0 2668 fi
Chris@0 2669 fi
Chris@0 2670 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
Chris@0 2671 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
Chris@0 2672 if test "${ac_cv_prog_cc_stdc+set}" = set; then
Chris@0 2673 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 2674 else
Chris@0 2675 ac_cv_prog_cc_stdc=no
Chris@0 2676 ac_save_CC=$CC
Chris@0 2677 cat >conftest.$ac_ext <<_ACEOF
Chris@0 2678 /* confdefs.h. */
Chris@0 2679 _ACEOF
Chris@0 2680 cat confdefs.h >>conftest.$ac_ext
Chris@0 2681 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 2682 /* end confdefs.h. */
Chris@0 2683 #include <stdarg.h>
Chris@0 2684 #include <stdio.h>
Chris@0 2685 #include <sys/types.h>
Chris@0 2686 #include <sys/stat.h>
Chris@0 2687 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@0 2688 struct buf { int x; };
Chris@0 2689 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@0 2690 static char *e (p, i)
Chris@0 2691 char **p;
Chris@0 2692 int i;
Chris@0 2693 {
Chris@0 2694 return p[i];
Chris@0 2695 }
Chris@0 2696 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@0 2697 {
Chris@0 2698 char *s;
Chris@0 2699 va_list v;
Chris@0 2700 va_start (v,p);
Chris@0 2701 s = g (p, va_arg (v,int));
Chris@0 2702 va_end (v);
Chris@0 2703 return s;
Chris@0 2704 }
Chris@0 2705
Chris@0 2706 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@0 2707 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@0 2708 These don't provoke an error unfortunately, instead are silently treated
Chris@0 2709 as 'x'. The following induces an error, until -std1 is added to get
Chris@0 2710 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@0 2711 array size at least. It's necessary to write '\x00'==0 to get something
Chris@0 2712 that's true only with -std1. */
Chris@0 2713 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@0 2714
Chris@0 2715 int test (int i, double x);
Chris@0 2716 struct s1 {int (*f) (int a);};
Chris@0 2717 struct s2 {int (*f) (double a);};
Chris@0 2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@0 2719 int argc;
Chris@0 2720 char **argv;
Chris@0 2721 int
Chris@0 2722 main ()
Chris@0 2723 {
Chris@0 2724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@0 2725 ;
Chris@0 2726 return 0;
Chris@0 2727 }
Chris@0 2728 _ACEOF
Chris@0 2729 # Don't try gcc -ansi; that turns off useful extensions and
Chris@0 2730 # breaks some systems' header files.
Chris@0 2731 # AIX -qlanglvl=ansi
Chris@0 2732 # Ultrix and OSF/1 -std1
Chris@0 2733 # HP-UX 10.20 and later -Ae
Chris@0 2734 # HP-UX older versions -Aa -D_HPUX_SOURCE
Chris@0 2735 # SVR4 -Xc -D__EXTENSIONS__
Chris@0 2736 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@0 2737 do
Chris@0 2738 CC="$ac_save_CC $ac_arg"
Chris@0 2739 rm -f conftest.$ac_objext
Chris@0 2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 2741 (eval $ac_compile) 2>conftest.er1
Chris@0 2742 ac_status=$?
Chris@0 2743 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 2744 rm -f conftest.er1
Chris@0 2745 cat conftest.err >&5
Chris@0 2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2747 (exit $ac_status); } &&
Chris@0 2748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2750 (eval $ac_try) 2>&5
Chris@0 2751 ac_status=$?
Chris@0 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2753 (exit $ac_status); }; } &&
Chris@0 2754 { ac_try='test -s conftest.$ac_objext'
Chris@0 2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2756 (eval $ac_try) 2>&5
Chris@0 2757 ac_status=$?
Chris@0 2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2759 (exit $ac_status); }; }; then
Chris@0 2760 ac_cv_prog_cc_stdc=$ac_arg
Chris@0 2761 break
Chris@0 2762 else
Chris@0 2763 echo "$as_me: failed program was:" >&5
Chris@0 2764 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 2765
Chris@0 2766 fi
Chris@0 2767 rm -f conftest.err conftest.$ac_objext
Chris@0 2768 done
Chris@0 2769 rm -f conftest.$ac_ext conftest.$ac_objext
Chris@0 2770 CC=$ac_save_CC
Chris@0 2771
Chris@0 2772 fi
Chris@0 2773
Chris@0 2774 case "x$ac_cv_prog_cc_stdc" in
Chris@0 2775 x|xno)
Chris@0 2776 echo "$as_me:$LINENO: result: none needed" >&5
Chris@0 2777 echo "${ECHO_T}none needed" >&6 ;;
Chris@0 2778 *)
Chris@0 2779 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
Chris@0 2780 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
Chris@0 2781 CC="$CC $ac_cv_prog_cc_stdc" ;;
Chris@0 2782 esac
Chris@0 2783
Chris@0 2784 # Some people use a C++ compiler to compile C. Since we use `exit',
Chris@0 2785 # in C++ we need to declare it. In case someone uses the same compiler
Chris@0 2786 # for both compiling C and C++ we need to have the C++ compiler decide
Chris@0 2787 # the declaration of exit, since it's the most demanding environment.
Chris@0 2788 cat >conftest.$ac_ext <<_ACEOF
Chris@0 2789 #ifndef __cplusplus
Chris@0 2790 choke me
Chris@0 2791 #endif
Chris@0 2792 _ACEOF
Chris@0 2793 rm -f conftest.$ac_objext
Chris@0 2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 2795 (eval $ac_compile) 2>conftest.er1
Chris@0 2796 ac_status=$?
Chris@0 2797 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 2798 rm -f conftest.er1
Chris@0 2799 cat conftest.err >&5
Chris@0 2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2801 (exit $ac_status); } &&
Chris@0 2802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2804 (eval $ac_try) 2>&5
Chris@0 2805 ac_status=$?
Chris@0 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2807 (exit $ac_status); }; } &&
Chris@0 2808 { ac_try='test -s conftest.$ac_objext'
Chris@0 2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2810 (eval $ac_try) 2>&5
Chris@0 2811 ac_status=$?
Chris@0 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2813 (exit $ac_status); }; }; then
Chris@0 2814 for ac_declaration in \
Chris@0 2815 '' \
Chris@0 2816 'extern "C" void std::exit (int) throw (); using std::exit;' \
Chris@0 2817 'extern "C" void std::exit (int); using std::exit;' \
Chris@0 2818 'extern "C" void exit (int) throw ();' \
Chris@0 2819 'extern "C" void exit (int);' \
Chris@0 2820 'void exit (int);'
Chris@0 2821 do
Chris@0 2822 cat >conftest.$ac_ext <<_ACEOF
Chris@0 2823 /* confdefs.h. */
Chris@0 2824 _ACEOF
Chris@0 2825 cat confdefs.h >>conftest.$ac_ext
Chris@0 2826 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 2827 /* end confdefs.h. */
Chris@0 2828 $ac_declaration
Chris@0 2829 #include <stdlib.h>
Chris@0 2830 int
Chris@0 2831 main ()
Chris@0 2832 {
Chris@0 2833 exit (42);
Chris@0 2834 ;
Chris@0 2835 return 0;
Chris@0 2836 }
Chris@0 2837 _ACEOF
Chris@0 2838 rm -f conftest.$ac_objext
Chris@0 2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 2840 (eval $ac_compile) 2>conftest.er1
Chris@0 2841 ac_status=$?
Chris@0 2842 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 2843 rm -f conftest.er1
Chris@0 2844 cat conftest.err >&5
Chris@0 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2846 (exit $ac_status); } &&
Chris@0 2847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2849 (eval $ac_try) 2>&5
Chris@0 2850 ac_status=$?
Chris@0 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2852 (exit $ac_status); }; } &&
Chris@0 2853 { ac_try='test -s conftest.$ac_objext'
Chris@0 2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2855 (eval $ac_try) 2>&5
Chris@0 2856 ac_status=$?
Chris@0 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2858 (exit $ac_status); }; }; then
Chris@0 2859 :
Chris@0 2860 else
Chris@0 2861 echo "$as_me: failed program was:" >&5
Chris@0 2862 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 2863
Chris@0 2864 continue
Chris@0 2865 fi
Chris@0 2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 2867 cat >conftest.$ac_ext <<_ACEOF
Chris@0 2868 /* confdefs.h. */
Chris@0 2869 _ACEOF
Chris@0 2870 cat confdefs.h >>conftest.$ac_ext
Chris@0 2871 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 2872 /* end confdefs.h. */
Chris@0 2873 $ac_declaration
Chris@0 2874 int
Chris@0 2875 main ()
Chris@0 2876 {
Chris@0 2877 exit (42);
Chris@0 2878 ;
Chris@0 2879 return 0;
Chris@0 2880 }
Chris@0 2881 _ACEOF
Chris@0 2882 rm -f conftest.$ac_objext
Chris@0 2883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 2884 (eval $ac_compile) 2>conftest.er1
Chris@0 2885 ac_status=$?
Chris@0 2886 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 2887 rm -f conftest.er1
Chris@0 2888 cat conftest.err >&5
Chris@0 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2890 (exit $ac_status); } &&
Chris@0 2891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2893 (eval $ac_try) 2>&5
Chris@0 2894 ac_status=$?
Chris@0 2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2896 (exit $ac_status); }; } &&
Chris@0 2897 { ac_try='test -s conftest.$ac_objext'
Chris@0 2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 2899 (eval $ac_try) 2>&5
Chris@0 2900 ac_status=$?
Chris@0 2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 2902 (exit $ac_status); }; }; then
Chris@0 2903 break
Chris@0 2904 else
Chris@0 2905 echo "$as_me: failed program was:" >&5
Chris@0 2906 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 2907
Chris@0 2908 fi
Chris@0 2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 2910 done
Chris@0 2911 rm -f conftest*
Chris@0 2912 if test -n "$ac_declaration"; then
Chris@0 2913 echo '#ifdef __cplusplus' >>confdefs.h
Chris@0 2914 echo $ac_declaration >>confdefs.h
Chris@0 2915 echo '#endif' >>confdefs.h
Chris@0 2916 fi
Chris@0 2917
Chris@0 2918 else
Chris@0 2919 echo "$as_me: failed program was:" >&5
Chris@0 2920 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 2921
Chris@0 2922 fi
Chris@0 2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 2924 ac_ext=c
Chris@0 2925 ac_cpp='$CPP $CPPFLAGS'
Chris@0 2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 2929 DEPDIR="${am__leading_dot}deps"
Chris@0 2930
Chris@0 2931 ac_config_commands="$ac_config_commands depfiles"
Chris@0 2932
Chris@0 2933
Chris@0 2934 am_make=${MAKE-make}
Chris@0 2935 cat > confinc << 'END'
Chris@0 2936 am__doit:
Chris@0 2937 @echo done
Chris@0 2938 .PHONY: am__doit
Chris@0 2939 END
Chris@0 2940 # If we don't find an include directive, just comment out the code.
Chris@0 2941 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
Chris@0 2942 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
Chris@0 2943 am__include="#"
Chris@0 2944 am__quote=
Chris@0 2945 _am_result=none
Chris@0 2946 # First try GNU make style include.
Chris@0 2947 echo "include confinc" > confmf
Chris@0 2948 # We grep out `Entering directory' and `Leaving directory'
Chris@0 2949 # messages which can occur if `w' ends up in MAKEFLAGS.
Chris@0 2950 # In particular we don't look at `^make:' because GNU make might
Chris@0 2951 # be invoked under some other name (usually "gmake"), in which
Chris@0 2952 # case it prints its new name instead of `make'.
Chris@0 2953 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
Chris@0 2954 am__include=include
Chris@0 2955 am__quote=
Chris@0 2956 _am_result=GNU
Chris@0 2957 fi
Chris@0 2958 # Now try BSD make style include.
Chris@0 2959 if test "$am__include" = "#"; then
Chris@0 2960 echo '.include "confinc"' > confmf
Chris@0 2961 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
Chris@0 2962 am__include=.include
Chris@0 2963 am__quote="\""
Chris@0 2964 _am_result=BSD
Chris@0 2965 fi
Chris@0 2966 fi
Chris@0 2967
Chris@0 2968
Chris@0 2969 echo "$as_me:$LINENO: result: $_am_result" >&5
Chris@0 2970 echo "${ECHO_T}$_am_result" >&6
Chris@0 2971 rm -f confinc confmf
Chris@0 2972
Chris@0 2973 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
Chris@0 2974 if test "${enable_dependency_tracking+set}" = set; then
Chris@0 2975 enableval="$enable_dependency_tracking"
Chris@0 2976
Chris@0 2977 fi;
Chris@0 2978 if test "x$enable_dependency_tracking" != xno; then
Chris@0 2979 am_depcomp="$ac_aux_dir/depcomp"
Chris@0 2980 AMDEPBACKSLASH='\'
Chris@0 2981 fi
Chris@0 2982
Chris@0 2983
Chris@0 2984 if test "x$enable_dependency_tracking" != xno; then
Chris@0 2985 AMDEP_TRUE=
Chris@0 2986 AMDEP_FALSE='#'
Chris@0 2987 else
Chris@0 2988 AMDEP_TRUE='#'
Chris@0 2989 AMDEP_FALSE=
Chris@0 2990 fi
Chris@0 2991
Chris@0 2992
Chris@0 2993
Chris@0 2994
Chris@0 2995 depcc="$CC" am_compiler_list=
Chris@0 2996
Chris@0 2997 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
Chris@0 2998 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
Chris@0 2999 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Chris@0 3000 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3001 else
Chris@0 3002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@0 3003 # We make a subdir and do the tests there. Otherwise we can end up
Chris@0 3004 # making bogus files that we don't know about and never remove. For
Chris@0 3005 # instance it was reported that on HP-UX the gcc test will end up
Chris@0 3006 # making a dummy file named `D' -- because `-MD' means `put the output
Chris@0 3007 # in D'.
Chris@0 3008 mkdir conftest.dir
Chris@0 3009 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@0 3010 # using a relative directory.
Chris@0 3011 cp "$am_depcomp" conftest.dir
Chris@0 3012 cd conftest.dir
Chris@0 3013 # We will build objects and dependencies in a subdirectory because
Chris@0 3014 # it helps to detect inapplicable dependency modes. For instance
Chris@0 3015 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@0 3016 # side effect of compilation, but ICC will put the dependencies in
Chris@0 3017 # the current directory while Tru64 will put them in the object
Chris@0 3018 # directory.
Chris@0 3019 mkdir sub
Chris@0 3020
Chris@0 3021 am_cv_CC_dependencies_compiler_type=none
Chris@0 3022 if test "$am_compiler_list" = ""; then
Chris@0 3023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@0 3024 fi
Chris@0 3025 for depmode in $am_compiler_list; do
Chris@0 3026 # Setup a source with many dependencies, because some compilers
Chris@0 3027 # like to wrap large dependency lists on column 80 (with \), and
Chris@0 3028 # we should not choose a depcomp mode which is confused by this.
Chris@0 3029 #
Chris@0 3030 # We need to recreate these files for each test, as the compiler may
Chris@0 3031 # overwrite some of them when testing with obscure command lines.
Chris@0 3032 # This happens at least with the AIX C compiler.
Chris@0 3033 : > sub/conftest.c
Chris@0 3034 for i in 1 2 3 4 5 6; do
Chris@0 3035 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@0 3036 : > sub/conftst$i.h
Chris@0 3037 done
Chris@0 3038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@0 3039
Chris@0 3040 case $depmode in
Chris@0 3041 nosideeffect)
Chris@0 3042 # after this tag, mechanisms are not by side-effect, so they'll
Chris@0 3043 # only be used when explicitly requested
Chris@0 3044 if test "x$enable_dependency_tracking" = xyes; then
Chris@0 3045 continue
Chris@0 3046 else
Chris@0 3047 break
Chris@0 3048 fi
Chris@0 3049 ;;
Chris@0 3050 none) break ;;
Chris@0 3051 esac
Chris@0 3052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
Chris@0 3053 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@0 3054 # handle `-M -o', and we need to detect this.
Chris@0 3055 if depmode=$depmode \
Chris@0 3056 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
Chris@0 3057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@0 3058 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
Chris@0 3059 >/dev/null 2>conftest.err &&
Chris@0 3060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@0 3061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Chris@0 3062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@0 3063 # icc doesn't choke on unknown options, it will just issue warnings
Chris@0 3064 # (even with -Werror). So we grep stderr for any message
Chris@0 3065 # that says an option was ignored.
Chris@0 3066 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
Chris@0 3067 am_cv_CC_dependencies_compiler_type=$depmode
Chris@0 3068 break
Chris@0 3069 fi
Chris@0 3070 fi
Chris@0 3071 done
Chris@0 3072
Chris@0 3073 cd ..
Chris@0 3074 rm -rf conftest.dir
Chris@0 3075 else
Chris@0 3076 am_cv_CC_dependencies_compiler_type=none
Chris@0 3077 fi
Chris@0 3078
Chris@0 3079 fi
Chris@0 3080 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@0 3081 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
Chris@0 3082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@0 3083
Chris@0 3084
Chris@0 3085
Chris@0 3086 if
Chris@0 3087 test "x$enable_dependency_tracking" != xno \
Chris@0 3088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@0 3089 am__fastdepCC_TRUE=
Chris@0 3090 am__fastdepCC_FALSE='#'
Chris@0 3091 else
Chris@0 3092 am__fastdepCC_TRUE='#'
Chris@0 3093 am__fastdepCC_FALSE=
Chris@0 3094 fi
Chris@0 3095
Chris@0 3096
Chris@0 3097
Chris@0 3098 if test "$GCC" = yes
Chris@0 3099 then
Chris@0 3100 case "$host" in
Chris@0 3101 *-*-mingw*)
Chris@0 3102 case "$build" in
Chris@0 3103 *-*-cygwin*)
Chris@0 3104 CPPFLAGS="$CPPFLAGS -mno-cygwin"
Chris@0 3105 LDFLAGS="$LDFLAGS -mno-cygwin"
Chris@0 3106 ;;
Chris@0 3107 esac
Chris@0 3108 esac
Chris@0 3109
Chris@0 3110 fi
Chris@0 3111
Chris@0 3112
Chris@0 3113 # Check whether --enable-shared or --disable-shared was given.
Chris@0 3114 if test "${enable_shared+set}" = set; then
Chris@0 3115 enableval="$enable_shared"
Chris@0 3116 p=${PACKAGE-default}
Chris@0 3117 case $enableval in
Chris@0 3118 yes) enable_shared=yes ;;
Chris@0 3119 no) enable_shared=no ;;
Chris@0 3120 *)
Chris@0 3121 enable_shared=no
Chris@0 3122 # Look at the argument we got. We use all the common list separators.
Chris@0 3123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@0 3124 for pkg in $enableval; do
Chris@0 3125 IFS="$lt_save_ifs"
Chris@0 3126 if test "X$pkg" = "X$p"; then
Chris@0 3127 enable_shared=yes
Chris@0 3128 fi
Chris@0 3129 done
Chris@0 3130 IFS="$lt_save_ifs"
Chris@0 3131 ;;
Chris@0 3132 esac
Chris@0 3133 else
Chris@0 3134 enable_shared=yes
Chris@0 3135 fi;
Chris@0 3136
Chris@0 3137 # Check whether --enable-static or --disable-static was given.
Chris@0 3138 if test "${enable_static+set}" = set; then
Chris@0 3139 enableval="$enable_static"
Chris@0 3140 p=${PACKAGE-default}
Chris@0 3141 case $enableval in
Chris@0 3142 yes) enable_static=yes ;;
Chris@0 3143 no) enable_static=no ;;
Chris@0 3144 *)
Chris@0 3145 enable_static=no
Chris@0 3146 # Look at the argument we got. We use all the common list separators.
Chris@0 3147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@0 3148 for pkg in $enableval; do
Chris@0 3149 IFS="$lt_save_ifs"
Chris@0 3150 if test "X$pkg" = "X$p"; then
Chris@0 3151 enable_static=yes
Chris@0 3152 fi
Chris@0 3153 done
Chris@0 3154 IFS="$lt_save_ifs"
Chris@0 3155 ;;
Chris@0 3156 esac
Chris@0 3157 else
Chris@0 3158 enable_static=yes
Chris@0 3159 fi;
Chris@0 3160
Chris@0 3161 # Check whether --enable-fast-install or --disable-fast-install was given.
Chris@0 3162 if test "${enable_fast_install+set}" = set; then
Chris@0 3163 enableval="$enable_fast_install"
Chris@0 3164 p=${PACKAGE-default}
Chris@0 3165 case $enableval in
Chris@0 3166 yes) enable_fast_install=yes ;;
Chris@0 3167 no) enable_fast_install=no ;;
Chris@0 3168 *)
Chris@0 3169 enable_fast_install=no
Chris@0 3170 # Look at the argument we got. We use all the common list separators.
Chris@0 3171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@0 3172 for pkg in $enableval; do
Chris@0 3173 IFS="$lt_save_ifs"
Chris@0 3174 if test "X$pkg" = "X$p"; then
Chris@0 3175 enable_fast_install=yes
Chris@0 3176 fi
Chris@0 3177 done
Chris@0 3178 IFS="$lt_save_ifs"
Chris@0 3179 ;;
Chris@0 3180 esac
Chris@0 3181 else
Chris@0 3182 enable_fast_install=yes
Chris@0 3183 fi;
Chris@0 3184
Chris@0 3185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
Chris@0 3186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
Chris@0 3187 if test "${lt_cv_path_SED+set}" = set; then
Chris@0 3188 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3189 else
Chris@0 3190 # Loop through the user's path and test for sed and gsed.
Chris@0 3191 # Then use that list of sed's as ones to test for truncation.
Chris@0 3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 3193 for as_dir in $PATH
Chris@0 3194 do
Chris@0 3195 IFS=$as_save_IFS
Chris@0 3196 test -z "$as_dir" && as_dir=.
Chris@0 3197 for lt_ac_prog in sed gsed; do
Chris@0 3198 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 3199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
Chris@0 3200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
Chris@0 3201 fi
Chris@0 3202 done
Chris@0 3203 done
Chris@0 3204 done
Chris@0 3205 lt_ac_max=0
Chris@0 3206 lt_ac_count=0
Chris@0 3207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
Chris@0 3208 # along with /bin/sed that truncates output.
Chris@0 3209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Chris@0 3210 test ! -f $lt_ac_sed && break
Chris@0 3211 cat /dev/null > conftest.in
Chris@0 3212 lt_ac_count=0
Chris@0 3213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
Chris@0 3214 # Check for GNU sed and select it if it is found.
Chris@0 3215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
Chris@0 3216 lt_cv_path_SED=$lt_ac_sed
Chris@0 3217 break
Chris@0 3218 fi
Chris@0 3219 while true; do
Chris@0 3220 cat conftest.in conftest.in >conftest.tmp
Chris@0 3221 mv conftest.tmp conftest.in
Chris@0 3222 cp conftest.in conftest.nl
Chris@0 3223 echo >>conftest.nl
Chris@0 3224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
Chris@0 3225 cmp -s conftest.out conftest.nl || break
Chris@0 3226 # 10000 chars as input seems more than enough
Chris@0 3227 test $lt_ac_count -gt 10 && break
Chris@0 3228 lt_ac_count=`expr $lt_ac_count + 1`
Chris@0 3229 if test $lt_ac_count -gt $lt_ac_max; then
Chris@0 3230 lt_ac_max=$lt_ac_count
Chris@0 3231 lt_cv_path_SED=$lt_ac_sed
Chris@0 3232 fi
Chris@0 3233 done
Chris@0 3234 done
Chris@0 3235 SED=$lt_cv_path_SED
Chris@0 3236
Chris@0 3237 fi
Chris@0 3238
Chris@0 3239 echo "$as_me:$LINENO: result: $SED" >&5
Chris@0 3240 echo "${ECHO_T}$SED" >&6
Chris@0 3241
Chris@0 3242 echo "$as_me:$LINENO: checking for egrep" >&5
Chris@0 3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
Chris@0 3244 if test "${ac_cv_prog_egrep+set}" = set; then
Chris@0 3245 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3246 else
Chris@0 3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
Chris@0 3248 then ac_cv_prog_egrep='grep -E'
Chris@0 3249 else ac_cv_prog_egrep='egrep'
Chris@0 3250 fi
Chris@0 3251 fi
Chris@0 3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
Chris@0 3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
Chris@0 3254 EGREP=$ac_cv_prog_egrep
Chris@0 3255
Chris@0 3256
Chris@0 3257
Chris@0 3258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
Chris@0 3259 if test "${with_gnu_ld+set}" = set; then
Chris@0 3260 withval="$with_gnu_ld"
Chris@0 3261 test "$withval" = no || with_gnu_ld=yes
Chris@0 3262 else
Chris@0 3263 with_gnu_ld=no
Chris@0 3264 fi;
Chris@0 3265 ac_prog=ld
Chris@0 3266 if test "$GCC" = yes; then
Chris@0 3267 # Check if gcc -print-prog-name=ld gives a path.
Chris@0 3268 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
Chris@0 3269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
Chris@0 3270 case $host in
Chris@0 3271 *-*-mingw*)
Chris@0 3272 # gcc leaves a trailing carriage return which upsets mingw
Chris@0 3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@0 3274 *)
Chris@0 3275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@0 3276 esac
Chris@0 3277 case $ac_prog in
Chris@0 3278 # Accept absolute paths.
Chris@0 3279 [\\/]* | ?:[\\/]*)
Chris@0 3280 re_direlt='/[^/][^/]*/\.\./'
Chris@0 3281 # Canonicalize the pathname of ld
Chris@0 3282 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
Chris@0 3283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
Chris@0 3284 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Chris@0 3285 done
Chris@0 3286 test -z "$LD" && LD="$ac_prog"
Chris@0 3287 ;;
Chris@0 3288 "")
Chris@0 3289 # If it fails, then pretend we aren't using GCC.
Chris@0 3290 ac_prog=ld
Chris@0 3291 ;;
Chris@0 3292 *)
Chris@0 3293 # If it is relative, then search for the first ld in PATH.
Chris@0 3294 with_gnu_ld=unknown
Chris@0 3295 ;;
Chris@0 3296 esac
Chris@0 3297 elif test "$with_gnu_ld" = yes; then
Chris@0 3298 echo "$as_me:$LINENO: checking for GNU ld" >&5
Chris@0 3299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
Chris@0 3300 else
Chris@0 3301 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
Chris@0 3302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
Chris@0 3303 fi
Chris@0 3304 if test "${lt_cv_path_LD+set}" = set; then
Chris@0 3305 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3306 else
Chris@0 3307 if test -z "$LD"; then
Chris@0 3308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@0 3309 for ac_dir in $PATH; do
Chris@0 3310 IFS="$lt_save_ifs"
Chris@0 3311 test -z "$ac_dir" && ac_dir=.
Chris@0 3312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@0 3313 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@0 3314 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@0 3315 # but apparently some GNU ld's only accept -v.
Chris@0 3316 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@0 3317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@0 3318 *GNU* | *'with BFD'*)
Chris@0 3319 test "$with_gnu_ld" != no && break
Chris@0 3320 ;;
Chris@0 3321 *)
Chris@0 3322 test "$with_gnu_ld" != yes && break
Chris@0 3323 ;;
Chris@0 3324 esac
Chris@0 3325 fi
Chris@0 3326 done
Chris@0 3327 IFS="$lt_save_ifs"
Chris@0 3328 else
Chris@0 3329 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@0 3330 fi
Chris@0 3331 fi
Chris@0 3332
Chris@0 3333 LD="$lt_cv_path_LD"
Chris@0 3334 if test -n "$LD"; then
Chris@0 3335 echo "$as_me:$LINENO: result: $LD" >&5
Chris@0 3336 echo "${ECHO_T}$LD" >&6
Chris@0 3337 else
Chris@0 3338 echo "$as_me:$LINENO: result: no" >&5
Chris@0 3339 echo "${ECHO_T}no" >&6
Chris@0 3340 fi
Chris@0 3341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
Chris@0 3342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Chris@0 3343 { (exit 1); exit 1; }; }
Chris@0 3344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
Chris@0 3345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
Chris@0 3346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
Chris@0 3347 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3348 else
Chris@0 3349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Chris@0 3350 case `$LD -v 2>&1 </dev/null` in
Chris@0 3351 *GNU* | *'with BFD'*)
Chris@0 3352 lt_cv_prog_gnu_ld=yes
Chris@0 3353 ;;
Chris@0 3354 *)
Chris@0 3355 lt_cv_prog_gnu_ld=no
Chris@0 3356 ;;
Chris@0 3357 esac
Chris@0 3358 fi
Chris@0 3359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
Chris@0 3360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
Chris@0 3361 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@0 3362
Chris@0 3363
Chris@0 3364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
Chris@0 3365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
Chris@0 3366 if test "${lt_cv_ld_reload_flag+set}" = set; then
Chris@0 3367 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3368 else
Chris@0 3369 lt_cv_ld_reload_flag='-r'
Chris@0 3370 fi
Chris@0 3371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
Chris@0 3372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
Chris@0 3373 reload_flag=$lt_cv_ld_reload_flag
Chris@0 3374 case $reload_flag in
Chris@0 3375 "" | " "*) ;;
Chris@0 3376 *) reload_flag=" $reload_flag" ;;
Chris@0 3377 esac
Chris@0 3378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@0 3379
Chris@0 3380 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
Chris@0 3381 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
Chris@0 3382 if test "${lt_cv_path_NM+set}" = set; then
Chris@0 3383 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3384 else
Chris@0 3385 if test -n "$NM"; then
Chris@0 3386 # Let the user override the test.
Chris@0 3387 lt_cv_path_NM="$NM"
Chris@0 3388 else
Chris@0 3389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@0 3390 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
Chris@0 3391 IFS="$lt_save_ifs"
Chris@0 3392 test -z "$ac_dir" && ac_dir=.
Chris@0 3393 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
Chris@0 3394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Chris@0 3395 # Check to see if the nm accepts a BSD-compat flag.
Chris@0 3396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
Chris@0 3397 # nm: unknown option "B" ignored
Chris@0 3398 # Tru64's nm complains that /dev/null is an invalid object file
Chris@0 3399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Chris@0 3400 */dev/null* | *'Invalid file or object type'*)
Chris@0 3401 lt_cv_path_NM="$tmp_nm -B"
Chris@0 3402 break
Chris@0 3403 ;;
Chris@0 3404 *)
Chris@0 3405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@0 3406 */dev/null*)
Chris@0 3407 lt_cv_path_NM="$tmp_nm -p"
Chris@0 3408 break
Chris@0 3409 ;;
Chris@0 3410 *)
Chris@0 3411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@0 3412 continue # so that we can try to find one that supports BSD flags
Chris@0 3413 ;;
Chris@0 3414 esac
Chris@0 3415 esac
Chris@0 3416 fi
Chris@0 3417 done
Chris@0 3418 IFS="$lt_save_ifs"
Chris@0 3419 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
Chris@0 3420 fi
Chris@0 3421 fi
Chris@0 3422 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
Chris@0 3423 echo "${ECHO_T}$lt_cv_path_NM" >&6
Chris@0 3424 NM="$lt_cv_path_NM"
Chris@0 3425
Chris@0 3426 echo "$as_me:$LINENO: checking whether ln -s works" >&5
Chris@0 3427 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
Chris@0 3428 LN_S=$as_ln_s
Chris@0 3429 if test "$LN_S" = "ln -s"; then
Chris@0 3430 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 3431 echo "${ECHO_T}yes" >&6
Chris@0 3432 else
Chris@0 3433 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Chris@0 3434 echo "${ECHO_T}no, using $LN_S" >&6
Chris@0 3435 fi
Chris@0 3436
Chris@0 3437 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
Chris@0 3438 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
Chris@0 3439 if test "${lt_cv_deplibs_check_method+set}" = set; then
Chris@0 3440 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3441 else
Chris@0 3442 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@0 3443 lt_cv_file_magic_test_file=
Chris@0 3444 lt_cv_deplibs_check_method='unknown'
Chris@0 3445 # Need to set the preceding variable on all platforms that support
Chris@0 3446 # interlibrary dependencies.
Chris@0 3447 # 'none' -- dependencies not supported.
Chris@0 3448 # `unknown' -- same as none, but documents that we really don't know.
Chris@0 3449 # 'pass_all' -- all dependencies passed with no checks.
Chris@0 3450 # 'test_compile' -- check by making test program.
Chris@0 3451 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@0 3452 # which responds to the $file_magic_cmd with a given extended regex.
Chris@0 3453 # If you have `file' or equivalent on your system and you're not sure
Chris@0 3454 # whether `pass_all' will *always* work, you probably want this one.
Chris@0 3455
Chris@0 3456 case $host_os in
Chris@0 3457 aix4* | aix5*)
Chris@0 3458 lt_cv_deplibs_check_method=pass_all
Chris@0 3459 ;;
Chris@0 3460
Chris@0 3461 beos*)
Chris@0 3462 lt_cv_deplibs_check_method=pass_all
Chris@0 3463 ;;
Chris@0 3464
Chris@0 3465 bsdi4*)
Chris@0 3466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@0 3467 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@0 3468 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@0 3469 ;;
Chris@0 3470
Chris@0 3471 cygwin*)
Chris@0 3472 # win32_libid is a shell function defined in ltmain.sh
Chris@0 3473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@0 3474 lt_cv_file_magic_cmd='win32_libid'
Chris@0 3475 ;;
Chris@0 3476
Chris@0 3477 mingw* | pw32*)
Chris@0 3478 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@0 3479 # win32_libid shell function, so use a weaker test based on 'objdump'.
Chris@0 3480 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Chris@0 3481 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@0 3482 ;;
Chris@0 3483
Chris@0 3484 darwin* | rhapsody*)
Chris@0 3485 lt_cv_deplibs_check_method=pass_all
Chris@0 3486 ;;
Chris@0 3487
Chris@0 3488 freebsd* | kfreebsd*-gnu)
Chris@0 3489 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Chris@0 3490 case $host_cpu in
Chris@0 3491 i*86 )
Chris@0 3492 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@0 3493 # Let's accept both of them until this is cleared up.
Chris@0 3494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
Chris@0 3495 lt_cv_file_magic_cmd=/usr/bin/file
Chris@0 3496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@0 3497 ;;
Chris@0 3498 esac
Chris@0 3499 else
Chris@0 3500 lt_cv_deplibs_check_method=pass_all
Chris@0 3501 fi
Chris@0 3502 ;;
Chris@0 3503
Chris@0 3504 gnu*)
Chris@0 3505 lt_cv_deplibs_check_method=pass_all
Chris@0 3506 ;;
Chris@0 3507
Chris@0 3508 hpux10.20* | hpux11*)
Chris@0 3509 lt_cv_file_magic_cmd=/usr/bin/file
Chris@0 3510 case "$host_cpu" in
Chris@0 3511 ia64*)
Chris@0 3512 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@0 3513 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@0 3514 ;;
Chris@0 3515 hppa*64*)
Chris@0 3516 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]'
Chris@0 3517 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@0 3518 ;;
Chris@0 3519 *)
Chris@0 3520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
Chris@0 3521 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@0 3522 ;;
Chris@0 3523 esac
Chris@0 3524 ;;
Chris@0 3525
Chris@0 3526 irix5* | irix6* | nonstopux*)
Chris@0 3527 case $LD in
Chris@0 3528 *-32|*"-32 ") libmagic=32-bit;;
Chris@0 3529 *-n32|*"-n32 ") libmagic=N32;;
Chris@0 3530 *-64|*"-64 ") libmagic=64-bit;;
Chris@0 3531 *) libmagic=never-match;;
Chris@0 3532 esac
Chris@0 3533 lt_cv_deplibs_check_method=pass_all
Chris@0 3534 ;;
Chris@0 3535
Chris@0 3536 # This must be Linux ELF.
Chris@0 3537 linux*)
Chris@0 3538 lt_cv_deplibs_check_method=pass_all
Chris@0 3539 ;;
Chris@0 3540
Chris@0 3541 netbsd* | knetbsd*-gnu)
Chris@0 3542 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Chris@0 3543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@0 3544 else
Chris@0 3545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@0 3546 fi
Chris@0 3547 ;;
Chris@0 3548
Chris@0 3549 newos6*)
Chris@0 3550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@0 3551 lt_cv_file_magic_cmd=/usr/bin/file
Chris@0 3552 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@0 3553 ;;
Chris@0 3554
Chris@0 3555 nto-qnx*)
Chris@0 3556 lt_cv_deplibs_check_method=unknown
Chris@0 3557 ;;
Chris@0 3558
Chris@0 3559 openbsd*)
Chris@0 3560 lt_cv_file_magic_cmd=/usr/bin/file
Chris@0 3561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@0 3562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@0 3563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
Chris@0 3564 else
Chris@0 3565 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
Chris@0 3566 fi
Chris@0 3567 ;;
Chris@0 3568
Chris@0 3569 osf3* | osf4* | osf5*)
Chris@0 3570 lt_cv_deplibs_check_method=pass_all
Chris@0 3571 ;;
Chris@0 3572
Chris@0 3573 sco3.2v5*)
Chris@0 3574 lt_cv_deplibs_check_method=pass_all
Chris@0 3575 ;;
Chris@0 3576
Chris@0 3577 solaris*)
Chris@0 3578 lt_cv_deplibs_check_method=pass_all
Chris@0 3579 ;;
Chris@0 3580
Chris@0 3581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@0 3582 case $host_vendor in
Chris@0 3583 motorola)
Chris@0 3584 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]'
Chris@0 3585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@0 3586 ;;
Chris@0 3587 ncr)
Chris@0 3588 lt_cv_deplibs_check_method=pass_all
Chris@0 3589 ;;
Chris@0 3590 sequent)
Chris@0 3591 lt_cv_file_magic_cmd='/bin/file'
Chris@0 3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@0 3593 ;;
Chris@0 3594 sni)
Chris@0 3595 lt_cv_file_magic_cmd='/bin/file'
Chris@0 3596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@0 3597 lt_cv_file_magic_test_file=/lib/libc.so
Chris@0 3598 ;;
Chris@0 3599 siemens)
Chris@0 3600 lt_cv_deplibs_check_method=pass_all
Chris@0 3601 ;;
Chris@0 3602 esac
Chris@0 3603 ;;
Chris@0 3604
Chris@0 3605 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
Chris@0 3606 lt_cv_deplibs_check_method=pass_all
Chris@0 3607 ;;
Chris@0 3608 esac
Chris@0 3609
Chris@0 3610 fi
Chris@0 3611 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
Chris@0 3612 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
Chris@0 3613 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@0 3614 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@0 3615 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@0 3616
Chris@0 3617
Chris@0 3618
Chris@0 3619
Chris@0 3620 # If no C compiler was specified, use CC.
Chris@0 3621 LTCC=${LTCC-"$CC"}
Chris@0 3622
Chris@0 3623 # Allow CC to be a program name with arguments.
Chris@0 3624 compiler=$CC
Chris@0 3625
Chris@0 3626
Chris@0 3627 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
Chris@0 3628 if test "${enable_libtool_lock+set}" = set; then
Chris@0 3629 enableval="$enable_libtool_lock"
Chris@0 3630
Chris@0 3631 fi;
Chris@0 3632 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Chris@0 3633
Chris@0 3634 # Some flags need to be propagated to the compiler or linker for good
Chris@0 3635 # libtool support.
Chris@0 3636 case $host in
Chris@0 3637 ia64-*-hpux*)
Chris@0 3638 # Find out which ABI we are using.
Chris@0 3639 echo 'int i;' > conftest.$ac_ext
Chris@0 3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 3641 (eval $ac_compile) 2>&5
Chris@0 3642 ac_status=$?
Chris@0 3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3644 (exit $ac_status); }; then
Chris@0 3645 case `/usr/bin/file conftest.$ac_objext` in
Chris@0 3646 *ELF-32*)
Chris@0 3647 HPUX_IA64_MODE="32"
Chris@0 3648 ;;
Chris@0 3649 *ELF-64*)
Chris@0 3650 HPUX_IA64_MODE="64"
Chris@0 3651 ;;
Chris@0 3652 esac
Chris@0 3653 fi
Chris@0 3654 rm -rf conftest*
Chris@0 3655 ;;
Chris@0 3656 *-*-irix6*)
Chris@0 3657 # Find out which ABI we are using.
Chris@0 3658 echo '#line 3658 "configure"' > conftest.$ac_ext
Chris@0 3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 3660 (eval $ac_compile) 2>&5
Chris@0 3661 ac_status=$?
Chris@0 3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3663 (exit $ac_status); }; then
Chris@0 3664 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@0 3665 case `/usr/bin/file conftest.$ac_objext` in
Chris@0 3666 *32-bit*)
Chris@0 3667 LD="${LD-ld} -melf32bsmip"
Chris@0 3668 ;;
Chris@0 3669 *N32*)
Chris@0 3670 LD="${LD-ld} -melf32bmipn32"
Chris@0 3671 ;;
Chris@0 3672 *64-bit*)
Chris@0 3673 LD="${LD-ld} -melf64bmip"
Chris@0 3674 ;;
Chris@0 3675 esac
Chris@0 3676 else
Chris@0 3677 case `/usr/bin/file conftest.$ac_objext` in
Chris@0 3678 *32-bit*)
Chris@0 3679 LD="${LD-ld} -32"
Chris@0 3680 ;;
Chris@0 3681 *N32*)
Chris@0 3682 LD="${LD-ld} -n32"
Chris@0 3683 ;;
Chris@0 3684 *64-bit*)
Chris@0 3685 LD="${LD-ld} -64"
Chris@0 3686 ;;
Chris@0 3687 esac
Chris@0 3688 fi
Chris@0 3689 fi
Chris@0 3690 rm -rf conftest*
Chris@0 3691 ;;
Chris@0 3692
Chris@0 3693 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
Chris@0 3694 # Find out which ABI we are using.
Chris@0 3695 echo 'int i;' > conftest.$ac_ext
Chris@0 3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 3697 (eval $ac_compile) 2>&5
Chris@0 3698 ac_status=$?
Chris@0 3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3700 (exit $ac_status); }; then
Chris@0 3701 case "`/usr/bin/file conftest.o`" in
Chris@0 3702 *32-bit*)
Chris@0 3703 case $host in
Chris@0 3704 x86_64-*linux*)
Chris@0 3705 LD="${LD-ld} -m elf_i386"
Chris@0 3706 ;;
Chris@0 3707 ppc64-*linux*|powerpc64-*linux*)
Chris@0 3708 LD="${LD-ld} -m elf32ppclinux"
Chris@0 3709 ;;
Chris@0 3710 s390x-*linux*)
Chris@0 3711 LD="${LD-ld} -m elf_s390"
Chris@0 3712 ;;
Chris@0 3713 sparc64-*linux*)
Chris@0 3714 LD="${LD-ld} -m elf32_sparc"
Chris@0 3715 ;;
Chris@0 3716 esac
Chris@0 3717 ;;
Chris@0 3718 *64-bit*)
Chris@0 3719 case $host in
Chris@0 3720 x86_64-*linux*)
Chris@0 3721 LD="${LD-ld} -m elf_x86_64"
Chris@0 3722 ;;
Chris@0 3723 ppc*-*linux*|powerpc*-*linux*)
Chris@0 3724 LD="${LD-ld} -m elf64ppc"
Chris@0 3725 ;;
Chris@0 3726 s390*-*linux*)
Chris@0 3727 LD="${LD-ld} -m elf64_s390"
Chris@0 3728 ;;
Chris@0 3729 sparc*-*linux*)
Chris@0 3730 LD="${LD-ld} -m elf64_sparc"
Chris@0 3731 ;;
Chris@0 3732 esac
Chris@0 3733 ;;
Chris@0 3734 esac
Chris@0 3735 fi
Chris@0 3736 rm -rf conftest*
Chris@0 3737 ;;
Chris@0 3738
Chris@0 3739 *-*-sco3.2v5*)
Chris@0 3740 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@0 3741 SAVE_CFLAGS="$CFLAGS"
Chris@0 3742 CFLAGS="$CFLAGS -belf"
Chris@0 3743 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
Chris@0 3744 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
Chris@0 3745 if test "${lt_cv_cc_needs_belf+set}" = set; then
Chris@0 3746 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3747 else
Chris@0 3748 ac_ext=c
Chris@0 3749 ac_cpp='$CPP $CPPFLAGS'
Chris@0 3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 3753
Chris@0 3754 cat >conftest.$ac_ext <<_ACEOF
Chris@0 3755 /* confdefs.h. */
Chris@0 3756 _ACEOF
Chris@0 3757 cat confdefs.h >>conftest.$ac_ext
Chris@0 3758 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 3759 /* end confdefs.h. */
Chris@0 3760
Chris@0 3761 int
Chris@0 3762 main ()
Chris@0 3763 {
Chris@0 3764
Chris@0 3765 ;
Chris@0 3766 return 0;
Chris@0 3767 }
Chris@0 3768 _ACEOF
Chris@0 3769 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 3770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 3771 (eval $ac_link) 2>conftest.er1
Chris@0 3772 ac_status=$?
Chris@0 3773 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 3774 rm -f conftest.er1
Chris@0 3775 cat conftest.err >&5
Chris@0 3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3777 (exit $ac_status); } &&
Chris@0 3778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 3780 (eval $ac_try) 2>&5
Chris@0 3781 ac_status=$?
Chris@0 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3783 (exit $ac_status); }; } &&
Chris@0 3784 { ac_try='test -s conftest$ac_exeext'
Chris@0 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 3786 (eval $ac_try) 2>&5
Chris@0 3787 ac_status=$?
Chris@0 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3789 (exit $ac_status); }; }; then
Chris@0 3790 lt_cv_cc_needs_belf=yes
Chris@0 3791 else
Chris@0 3792 echo "$as_me: failed program was:" >&5
Chris@0 3793 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 3794
Chris@0 3795 lt_cv_cc_needs_belf=no
Chris@0 3796 fi
Chris@0 3797 rm -f conftest.err conftest.$ac_objext \
Chris@0 3798 conftest$ac_exeext conftest.$ac_ext
Chris@0 3799 ac_ext=c
Chris@0 3800 ac_cpp='$CPP $CPPFLAGS'
Chris@0 3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 3804
Chris@0 3805 fi
Chris@0 3806 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
Chris@0 3807 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
Chris@0 3808 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Chris@0 3809 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@0 3810 CFLAGS="$SAVE_CFLAGS"
Chris@0 3811 fi
Chris@0 3812 ;;
Chris@0 3813
Chris@0 3814 esac
Chris@0 3815
Chris@0 3816 need_locks="$enable_libtool_lock"
Chris@0 3817
Chris@0 3818
Chris@0 3819 ac_ext=c
Chris@0 3820 ac_cpp='$CPP $CPPFLAGS'
Chris@0 3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 3824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Chris@0 3825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Chris@0 3826 # On Suns, sometimes $CPP names a directory.
Chris@0 3827 if test -n "$CPP" && test -d "$CPP"; then
Chris@0 3828 CPP=
Chris@0 3829 fi
Chris@0 3830 if test -z "$CPP"; then
Chris@0 3831 if test "${ac_cv_prog_CPP+set}" = set; then
Chris@0 3832 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 3833 else
Chris@0 3834 # Double quotes because CPP needs to be expanded
Chris@0 3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@0 3836 do
Chris@0 3837 ac_preproc_ok=false
Chris@0 3838 for ac_c_preproc_warn_flag in '' yes
Chris@0 3839 do
Chris@0 3840 # Use a header file that comes with gcc, so configuring glibc
Chris@0 3841 # with a fresh cross-compiler works.
Chris@0 3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 3843 # <limits.h> exists even on freestanding compilers.
Chris@0 3844 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@0 3845 # not just through cpp. "Syntax error" is here to catch this case.
Chris@0 3846 cat >conftest.$ac_ext <<_ACEOF
Chris@0 3847 /* confdefs.h. */
Chris@0 3848 _ACEOF
Chris@0 3849 cat confdefs.h >>conftest.$ac_ext
Chris@0 3850 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 3851 /* end confdefs.h. */
Chris@0 3852 #ifdef __STDC__
Chris@0 3853 # include <limits.h>
Chris@0 3854 #else
Chris@0 3855 # include <assert.h>
Chris@0 3856 #endif
Chris@0 3857 Syntax error
Chris@0 3858 _ACEOF
Chris@0 3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 3861 ac_status=$?
Chris@0 3862 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 3863 rm -f conftest.er1
Chris@0 3864 cat conftest.err >&5
Chris@0 3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3866 (exit $ac_status); } >/dev/null; then
Chris@0 3867 if test -s conftest.err; then
Chris@0 3868 ac_cpp_err=$ac_c_preproc_warn_flag
Chris@0 3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Chris@0 3870 else
Chris@0 3871 ac_cpp_err=
Chris@0 3872 fi
Chris@0 3873 else
Chris@0 3874 ac_cpp_err=yes
Chris@0 3875 fi
Chris@0 3876 if test -z "$ac_cpp_err"; then
Chris@0 3877 :
Chris@0 3878 else
Chris@0 3879 echo "$as_me: failed program was:" >&5
Chris@0 3880 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 3881
Chris@0 3882 # Broken: fails on valid input.
Chris@0 3883 continue
Chris@0 3884 fi
Chris@0 3885 rm -f conftest.err conftest.$ac_ext
Chris@0 3886
Chris@0 3887 # OK, works on sane cases. Now check whether non-existent headers
Chris@0 3888 # can be detected and how.
Chris@0 3889 cat >conftest.$ac_ext <<_ACEOF
Chris@0 3890 /* confdefs.h. */
Chris@0 3891 _ACEOF
Chris@0 3892 cat confdefs.h >>conftest.$ac_ext
Chris@0 3893 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 3894 /* end confdefs.h. */
Chris@0 3895 #include <ac_nonexistent.h>
Chris@0 3896 _ACEOF
Chris@0 3897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 3898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 3899 ac_status=$?
Chris@0 3900 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 3901 rm -f conftest.er1
Chris@0 3902 cat conftest.err >&5
Chris@0 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3904 (exit $ac_status); } >/dev/null; then
Chris@0 3905 if test -s conftest.err; then
Chris@0 3906 ac_cpp_err=$ac_c_preproc_warn_flag
Chris@0 3907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Chris@0 3908 else
Chris@0 3909 ac_cpp_err=
Chris@0 3910 fi
Chris@0 3911 else
Chris@0 3912 ac_cpp_err=yes
Chris@0 3913 fi
Chris@0 3914 if test -z "$ac_cpp_err"; then
Chris@0 3915 # Broken: success on invalid input.
Chris@0 3916 continue
Chris@0 3917 else
Chris@0 3918 echo "$as_me: failed program was:" >&5
Chris@0 3919 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 3920
Chris@0 3921 # Passes both tests.
Chris@0 3922 ac_preproc_ok=:
Chris@0 3923 break
Chris@0 3924 fi
Chris@0 3925 rm -f conftest.err conftest.$ac_ext
Chris@0 3926
Chris@0 3927 done
Chris@0 3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@0 3929 rm -f conftest.err conftest.$ac_ext
Chris@0 3930 if $ac_preproc_ok; then
Chris@0 3931 break
Chris@0 3932 fi
Chris@0 3933
Chris@0 3934 done
Chris@0 3935 ac_cv_prog_CPP=$CPP
Chris@0 3936
Chris@0 3937 fi
Chris@0 3938 CPP=$ac_cv_prog_CPP
Chris@0 3939 else
Chris@0 3940 ac_cv_prog_CPP=$CPP
Chris@0 3941 fi
Chris@0 3942 echo "$as_me:$LINENO: result: $CPP" >&5
Chris@0 3943 echo "${ECHO_T}$CPP" >&6
Chris@0 3944 ac_preproc_ok=false
Chris@0 3945 for ac_c_preproc_warn_flag in '' yes
Chris@0 3946 do
Chris@0 3947 # Use a header file that comes with gcc, so configuring glibc
Chris@0 3948 # with a fresh cross-compiler works.
Chris@0 3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 3950 # <limits.h> exists even on freestanding compilers.
Chris@0 3951 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@0 3952 # not just through cpp. "Syntax error" is here to catch this case.
Chris@0 3953 cat >conftest.$ac_ext <<_ACEOF
Chris@0 3954 /* confdefs.h. */
Chris@0 3955 _ACEOF
Chris@0 3956 cat confdefs.h >>conftest.$ac_ext
Chris@0 3957 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 3958 /* end confdefs.h. */
Chris@0 3959 #ifdef __STDC__
Chris@0 3960 # include <limits.h>
Chris@0 3961 #else
Chris@0 3962 # include <assert.h>
Chris@0 3963 #endif
Chris@0 3964 Syntax error
Chris@0 3965 _ACEOF
Chris@0 3966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 3967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 3968 ac_status=$?
Chris@0 3969 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 3970 rm -f conftest.er1
Chris@0 3971 cat conftest.err >&5
Chris@0 3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 3973 (exit $ac_status); } >/dev/null; then
Chris@0 3974 if test -s conftest.err; then
Chris@0 3975 ac_cpp_err=$ac_c_preproc_warn_flag
Chris@0 3976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Chris@0 3977 else
Chris@0 3978 ac_cpp_err=
Chris@0 3979 fi
Chris@0 3980 else
Chris@0 3981 ac_cpp_err=yes
Chris@0 3982 fi
Chris@0 3983 if test -z "$ac_cpp_err"; then
Chris@0 3984 :
Chris@0 3985 else
Chris@0 3986 echo "$as_me: failed program was:" >&5
Chris@0 3987 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 3988
Chris@0 3989 # Broken: fails on valid input.
Chris@0 3990 continue
Chris@0 3991 fi
Chris@0 3992 rm -f conftest.err conftest.$ac_ext
Chris@0 3993
Chris@0 3994 # OK, works on sane cases. Now check whether non-existent headers
Chris@0 3995 # can be detected and how.
Chris@0 3996 cat >conftest.$ac_ext <<_ACEOF
Chris@0 3997 /* confdefs.h. */
Chris@0 3998 _ACEOF
Chris@0 3999 cat confdefs.h >>conftest.$ac_ext
Chris@0 4000 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4001 /* end confdefs.h. */
Chris@0 4002 #include <ac_nonexistent.h>
Chris@0 4003 _ACEOF
Chris@0 4004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 4006 ac_status=$?
Chris@0 4007 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4008 rm -f conftest.er1
Chris@0 4009 cat conftest.err >&5
Chris@0 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4011 (exit $ac_status); } >/dev/null; then
Chris@0 4012 if test -s conftest.err; then
Chris@0 4013 ac_cpp_err=$ac_c_preproc_warn_flag
Chris@0 4014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Chris@0 4015 else
Chris@0 4016 ac_cpp_err=
Chris@0 4017 fi
Chris@0 4018 else
Chris@0 4019 ac_cpp_err=yes
Chris@0 4020 fi
Chris@0 4021 if test -z "$ac_cpp_err"; then
Chris@0 4022 # Broken: success on invalid input.
Chris@0 4023 continue
Chris@0 4024 else
Chris@0 4025 echo "$as_me: failed program was:" >&5
Chris@0 4026 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4027
Chris@0 4028 # Passes both tests.
Chris@0 4029 ac_preproc_ok=:
Chris@0 4030 break
Chris@0 4031 fi
Chris@0 4032 rm -f conftest.err conftest.$ac_ext
Chris@0 4033
Chris@0 4034 done
Chris@0 4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@0 4036 rm -f conftest.err conftest.$ac_ext
Chris@0 4037 if $ac_preproc_ok; then
Chris@0 4038 :
Chris@0 4039 else
Chris@0 4040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Chris@0 4041 See \`config.log' for more details." >&5
Chris@0 4042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Chris@0 4043 See \`config.log' for more details." >&2;}
Chris@0 4044 { (exit 1); exit 1; }; }
Chris@0 4045 fi
Chris@0 4046
Chris@0 4047 ac_ext=c
Chris@0 4048 ac_cpp='$CPP $CPPFLAGS'
Chris@0 4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 4052
Chris@0 4053
Chris@0 4054 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Chris@0 4055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
Chris@0 4056 if test "${ac_cv_header_stdc+set}" = set; then
Chris@0 4057 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4058 else
Chris@0 4059 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4060 /* confdefs.h. */
Chris@0 4061 _ACEOF
Chris@0 4062 cat confdefs.h >>conftest.$ac_ext
Chris@0 4063 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4064 /* end confdefs.h. */
Chris@0 4065 #include <stdlib.h>
Chris@0 4066 #include <stdarg.h>
Chris@0 4067 #include <string.h>
Chris@0 4068 #include <float.h>
Chris@0 4069
Chris@0 4070 int
Chris@0 4071 main ()
Chris@0 4072 {
Chris@0 4073
Chris@0 4074 ;
Chris@0 4075 return 0;
Chris@0 4076 }
Chris@0 4077 _ACEOF
Chris@0 4078 rm -f conftest.$ac_objext
Chris@0 4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 4080 (eval $ac_compile) 2>conftest.er1
Chris@0 4081 ac_status=$?
Chris@0 4082 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4083 rm -f conftest.er1
Chris@0 4084 cat conftest.err >&5
Chris@0 4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4086 (exit $ac_status); } &&
Chris@0 4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4089 (eval $ac_try) 2>&5
Chris@0 4090 ac_status=$?
Chris@0 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4092 (exit $ac_status); }; } &&
Chris@0 4093 { ac_try='test -s conftest.$ac_objext'
Chris@0 4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4095 (eval $ac_try) 2>&5
Chris@0 4096 ac_status=$?
Chris@0 4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4098 (exit $ac_status); }; }; then
Chris@0 4099 ac_cv_header_stdc=yes
Chris@0 4100 else
Chris@0 4101 echo "$as_me: failed program was:" >&5
Chris@0 4102 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4103
Chris@0 4104 ac_cv_header_stdc=no
Chris@0 4105 fi
Chris@0 4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 4107
Chris@0 4108 if test $ac_cv_header_stdc = yes; then
Chris@0 4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@0 4110 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4111 /* confdefs.h. */
Chris@0 4112 _ACEOF
Chris@0 4113 cat confdefs.h >>conftest.$ac_ext
Chris@0 4114 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4115 /* end confdefs.h. */
Chris@0 4116 #include <string.h>
Chris@0 4117
Chris@0 4118 _ACEOF
Chris@0 4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@0 4120 $EGREP "memchr" >/dev/null 2>&1; then
Chris@0 4121 :
Chris@0 4122 else
Chris@0 4123 ac_cv_header_stdc=no
Chris@0 4124 fi
Chris@0 4125 rm -f conftest*
Chris@0 4126
Chris@0 4127 fi
Chris@0 4128
Chris@0 4129 if test $ac_cv_header_stdc = yes; then
Chris@0 4130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@0 4131 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4132 /* confdefs.h. */
Chris@0 4133 _ACEOF
Chris@0 4134 cat confdefs.h >>conftest.$ac_ext
Chris@0 4135 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4136 /* end confdefs.h. */
Chris@0 4137 #include <stdlib.h>
Chris@0 4138
Chris@0 4139 _ACEOF
Chris@0 4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@0 4141 $EGREP "free" >/dev/null 2>&1; then
Chris@0 4142 :
Chris@0 4143 else
Chris@0 4144 ac_cv_header_stdc=no
Chris@0 4145 fi
Chris@0 4146 rm -f conftest*
Chris@0 4147
Chris@0 4148 fi
Chris@0 4149
Chris@0 4150 if test $ac_cv_header_stdc = yes; then
Chris@0 4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@0 4152 if test "$cross_compiling" = yes; then
Chris@0 4153 :
Chris@0 4154 else
Chris@0 4155 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4156 /* confdefs.h. */
Chris@0 4157 _ACEOF
Chris@0 4158 cat confdefs.h >>conftest.$ac_ext
Chris@0 4159 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4160 /* end confdefs.h. */
Chris@0 4161 #include <ctype.h>
Chris@0 4162 #if ((' ' & 0x0FF) == 0x020)
Chris@0 4163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@0 4164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@0 4165 #else
Chris@0 4166 # define ISLOWER(c) \
Chris@0 4167 (('a' <= (c) && (c) <= 'i') \
Chris@0 4168 || ('j' <= (c) && (c) <= 'r') \
Chris@0 4169 || ('s' <= (c) && (c) <= 'z'))
Chris@0 4170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@0 4171 #endif
Chris@0 4172
Chris@0 4173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@0 4174 int
Chris@0 4175 main ()
Chris@0 4176 {
Chris@0 4177 int i;
Chris@0 4178 for (i = 0; i < 256; i++)
Chris@0 4179 if (XOR (islower (i), ISLOWER (i))
Chris@0 4180 || toupper (i) != TOUPPER (i))
Chris@0 4181 exit(2);
Chris@0 4182 exit (0);
Chris@0 4183 }
Chris@0 4184 _ACEOF
Chris@0 4185 rm -f conftest$ac_exeext
Chris@0 4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 4187 (eval $ac_link) 2>&5
Chris@0 4188 ac_status=$?
Chris@0 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Chris@0 4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4192 (eval $ac_try) 2>&5
Chris@0 4193 ac_status=$?
Chris@0 4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4195 (exit $ac_status); }; }; then
Chris@0 4196 :
Chris@0 4197 else
Chris@0 4198 echo "$as_me: program exited with status $ac_status" >&5
Chris@0 4199 echo "$as_me: failed program was:" >&5
Chris@0 4200 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4201
Chris@0 4202 ( exit $ac_status )
Chris@0 4203 ac_cv_header_stdc=no
Chris@0 4204 fi
Chris@0 4205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Chris@0 4206 fi
Chris@0 4207 fi
Chris@0 4208 fi
Chris@0 4209 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Chris@0 4210 echo "${ECHO_T}$ac_cv_header_stdc" >&6
Chris@0 4211 if test $ac_cv_header_stdc = yes; then
Chris@0 4212
Chris@0 4213 cat >>confdefs.h <<\_ACEOF
Chris@0 4214 #define STDC_HEADERS 1
Chris@0 4215 _ACEOF
Chris@0 4216
Chris@0 4217 fi
Chris@0 4218
Chris@0 4219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@0 4220
Chris@0 4221
Chris@0 4222
Chris@0 4223
Chris@0 4224
Chris@0 4225
Chris@0 4226
Chris@0 4227
Chris@0 4228
Chris@0 4229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@0 4230 inttypes.h stdint.h unistd.h
Chris@0 4231 do
Chris@0 4232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@0 4233 echo "$as_me:$LINENO: checking for $ac_header" >&5
Chris@0 4234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
Chris@0 4235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
Chris@0 4236 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4237 else
Chris@0 4238 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4239 /* confdefs.h. */
Chris@0 4240 _ACEOF
Chris@0 4241 cat confdefs.h >>conftest.$ac_ext
Chris@0 4242 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4243 /* end confdefs.h. */
Chris@0 4244 $ac_includes_default
Chris@0 4245
Chris@0 4246 #include <$ac_header>
Chris@0 4247 _ACEOF
Chris@0 4248 rm -f conftest.$ac_objext
Chris@0 4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 4250 (eval $ac_compile) 2>conftest.er1
Chris@0 4251 ac_status=$?
Chris@0 4252 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4253 rm -f conftest.er1
Chris@0 4254 cat conftest.err >&5
Chris@0 4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4256 (exit $ac_status); } &&
Chris@0 4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4259 (eval $ac_try) 2>&5
Chris@0 4260 ac_status=$?
Chris@0 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4262 (exit $ac_status); }; } &&
Chris@0 4263 { ac_try='test -s conftest.$ac_objext'
Chris@0 4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4265 (eval $ac_try) 2>&5
Chris@0 4266 ac_status=$?
Chris@0 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4268 (exit $ac_status); }; }; then
Chris@0 4269 eval "$as_ac_Header=yes"
Chris@0 4270 else
Chris@0 4271 echo "$as_me: failed program was:" >&5
Chris@0 4272 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4273
Chris@0 4274 eval "$as_ac_Header=no"
Chris@0 4275 fi
Chris@0 4276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 4277 fi
Chris@0 4278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Chris@0 4279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Chris@0 4280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@0 4281 cat >>confdefs.h <<_ACEOF
Chris@0 4282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@0 4283 _ACEOF
Chris@0 4284
Chris@0 4285 fi
Chris@0 4286
Chris@0 4287 done
Chris@0 4288
Chris@0 4289
Chris@0 4290
Chris@0 4291 for ac_header in dlfcn.h
Chris@0 4292 do
Chris@0 4293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@0 4294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
Chris@0 4295 echo "$as_me:$LINENO: checking for $ac_header" >&5
Chris@0 4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
Chris@0 4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
Chris@0 4298 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4299 fi
Chris@0 4300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Chris@0 4301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Chris@0 4302 else
Chris@0 4303 # Is the header compilable?
Chris@0 4304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
Chris@0 4305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Chris@0 4306 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4307 /* confdefs.h. */
Chris@0 4308 _ACEOF
Chris@0 4309 cat confdefs.h >>conftest.$ac_ext
Chris@0 4310 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4311 /* end confdefs.h. */
Chris@0 4312 $ac_includes_default
Chris@0 4313 #include <$ac_header>
Chris@0 4314 _ACEOF
Chris@0 4315 rm -f conftest.$ac_objext
Chris@0 4316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 4317 (eval $ac_compile) 2>conftest.er1
Chris@0 4318 ac_status=$?
Chris@0 4319 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4320 rm -f conftest.er1
Chris@0 4321 cat conftest.err >&5
Chris@0 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4323 (exit $ac_status); } &&
Chris@0 4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4326 (eval $ac_try) 2>&5
Chris@0 4327 ac_status=$?
Chris@0 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4329 (exit $ac_status); }; } &&
Chris@0 4330 { ac_try='test -s conftest.$ac_objext'
Chris@0 4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4332 (eval $ac_try) 2>&5
Chris@0 4333 ac_status=$?
Chris@0 4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4335 (exit $ac_status); }; }; then
Chris@0 4336 ac_header_compiler=yes
Chris@0 4337 else
Chris@0 4338 echo "$as_me: failed program was:" >&5
Chris@0 4339 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4340
Chris@0 4341 ac_header_compiler=no
Chris@0 4342 fi
Chris@0 4343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 4344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
Chris@0 4345 echo "${ECHO_T}$ac_header_compiler" >&6
Chris@0 4346
Chris@0 4347 # Is the header present?
Chris@0 4348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
Chris@0 4349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Chris@0 4350 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4351 /* confdefs.h. */
Chris@0 4352 _ACEOF
Chris@0 4353 cat confdefs.h >>conftest.$ac_ext
Chris@0 4354 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4355 /* end confdefs.h. */
Chris@0 4356 #include <$ac_header>
Chris@0 4357 _ACEOF
Chris@0 4358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 4359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 4360 ac_status=$?
Chris@0 4361 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4362 rm -f conftest.er1
Chris@0 4363 cat conftest.err >&5
Chris@0 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4365 (exit $ac_status); } >/dev/null; then
Chris@0 4366 if test -s conftest.err; then
Chris@0 4367 ac_cpp_err=$ac_c_preproc_warn_flag
Chris@0 4368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Chris@0 4369 else
Chris@0 4370 ac_cpp_err=
Chris@0 4371 fi
Chris@0 4372 else
Chris@0 4373 ac_cpp_err=yes
Chris@0 4374 fi
Chris@0 4375 if test -z "$ac_cpp_err"; then
Chris@0 4376 ac_header_preproc=yes
Chris@0 4377 else
Chris@0 4378 echo "$as_me: failed program was:" >&5
Chris@0 4379 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4380
Chris@0 4381 ac_header_preproc=no
Chris@0 4382 fi
Chris@0 4383 rm -f conftest.err conftest.$ac_ext
Chris@0 4384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
Chris@0 4385 echo "${ECHO_T}$ac_header_preproc" >&6
Chris@0 4386
Chris@0 4387 # So? What about this header?
Chris@0 4388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
Chris@0 4389 yes:no: )
Chris@0 4390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@0 4391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@0 4392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
Chris@0 4393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Chris@0 4394 ac_header_preproc=yes
Chris@0 4395 ;;
Chris@0 4396 no:yes:* )
Chris@0 4397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
Chris@0 4398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Chris@0 4399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
Chris@0 4400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
Chris@0 4401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
Chris@0 4402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
Chris@0 4403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
Chris@0 4404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@0 4405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Chris@0 4406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Chris@0 4407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
Chris@0 4408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Chris@0 4409 (
Chris@0 4410 cat <<\_ASBOX
Chris@0 4411 ## ----------------------------------- ##
Chris@0 4412 ## Report this to support@underbit.com ##
Chris@0 4413 ## ----------------------------------- ##
Chris@0 4414 _ASBOX
Chris@0 4415 ) |
Chris@0 4416 sed "s/^/$as_me: WARNING: /" >&2
Chris@0 4417 ;;
Chris@0 4418 esac
Chris@0 4419 echo "$as_me:$LINENO: checking for $ac_header" >&5
Chris@0 4420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
Chris@0 4421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
Chris@0 4422 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4423 else
Chris@0 4424 eval "$as_ac_Header=\$ac_header_preproc"
Chris@0 4425 fi
Chris@0 4426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Chris@0 4427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Chris@0 4428
Chris@0 4429 fi
Chris@0 4430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@0 4431 cat >>confdefs.h <<_ACEOF
Chris@0 4432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@0 4433 _ACEOF
Chris@0 4434
Chris@0 4435 fi
Chris@0 4436
Chris@0 4437 done
Chris@0 4438
Chris@0 4439 ac_ext=cc
Chris@0 4440 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@0 4441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 4442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 4443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@0 4444 if test -n "$ac_tool_prefix"; then
Chris@0 4445 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
Chris@0 4446 do
Chris@0 4447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@0 4448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@0 4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 4451 if test "${ac_cv_prog_CXX+set}" = set; then
Chris@0 4452 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4453 else
Chris@0 4454 if test -n "$CXX"; then
Chris@0 4455 ac_cv_prog_CXX="$CXX" # Let the user override the test.
Chris@0 4456 else
Chris@0 4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 4458 for as_dir in $PATH
Chris@0 4459 do
Chris@0 4460 IFS=$as_save_IFS
Chris@0 4461 test -z "$as_dir" && as_dir=.
Chris@0 4462 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 4464 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Chris@0 4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 4466 break 2
Chris@0 4467 fi
Chris@0 4468 done
Chris@0 4469 done
Chris@0 4470
Chris@0 4471 fi
Chris@0 4472 fi
Chris@0 4473 CXX=$ac_cv_prog_CXX
Chris@0 4474 if test -n "$CXX"; then
Chris@0 4475 echo "$as_me:$LINENO: result: $CXX" >&5
Chris@0 4476 echo "${ECHO_T}$CXX" >&6
Chris@0 4477 else
Chris@0 4478 echo "$as_me:$LINENO: result: no" >&5
Chris@0 4479 echo "${ECHO_T}no" >&6
Chris@0 4480 fi
Chris@0 4481
Chris@0 4482 test -n "$CXX" && break
Chris@0 4483 done
Chris@0 4484 fi
Chris@0 4485 if test -z "$CXX"; then
Chris@0 4486 ac_ct_CXX=$CXX
Chris@0 4487 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
Chris@0 4488 do
Chris@0 4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@0 4490 set dummy $ac_prog; ac_word=$2
Chris@0 4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 4493 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
Chris@0 4494 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4495 else
Chris@0 4496 if test -n "$ac_ct_CXX"; then
Chris@0 4497 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
Chris@0 4498 else
Chris@0 4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 4500 for as_dir in $PATH
Chris@0 4501 do
Chris@0 4502 IFS=$as_save_IFS
Chris@0 4503 test -z "$as_dir" && as_dir=.
Chris@0 4504 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 4506 ac_cv_prog_ac_ct_CXX="$ac_prog"
Chris@0 4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 4508 break 2
Chris@0 4509 fi
Chris@0 4510 done
Chris@0 4511 done
Chris@0 4512
Chris@0 4513 fi
Chris@0 4514 fi
Chris@0 4515 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
Chris@0 4516 if test -n "$ac_ct_CXX"; then
Chris@0 4517 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
Chris@0 4518 echo "${ECHO_T}$ac_ct_CXX" >&6
Chris@0 4519 else
Chris@0 4520 echo "$as_me:$LINENO: result: no" >&5
Chris@0 4521 echo "${ECHO_T}no" >&6
Chris@0 4522 fi
Chris@0 4523
Chris@0 4524 test -n "$ac_ct_CXX" && break
Chris@0 4525 done
Chris@0 4526 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
Chris@0 4527
Chris@0 4528 CXX=$ac_ct_CXX
Chris@0 4529 fi
Chris@0 4530
Chris@0 4531
Chris@0 4532 # Provide some information about the compiler.
Chris@0 4533 echo "$as_me:$LINENO:" \
Chris@0 4534 "checking for C++ compiler version" >&5
Chris@0 4535 ac_compiler=`set X $ac_compile; echo $2`
Chris@0 4536 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Chris@0 4537 (eval $ac_compiler --version </dev/null >&5) 2>&5
Chris@0 4538 ac_status=$?
Chris@0 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4540 (exit $ac_status); }
Chris@0 4541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Chris@0 4542 (eval $ac_compiler -v </dev/null >&5) 2>&5
Chris@0 4543 ac_status=$?
Chris@0 4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4545 (exit $ac_status); }
Chris@0 4546 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Chris@0 4547 (eval $ac_compiler -V </dev/null >&5) 2>&5
Chris@0 4548 ac_status=$?
Chris@0 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4550 (exit $ac_status); }
Chris@0 4551
Chris@0 4552 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
Chris@0 4553 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
Chris@0 4554 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
Chris@0 4555 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4556 else
Chris@0 4557 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4558 /* confdefs.h. */
Chris@0 4559 _ACEOF
Chris@0 4560 cat confdefs.h >>conftest.$ac_ext
Chris@0 4561 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4562 /* end confdefs.h. */
Chris@0 4563
Chris@0 4564 int
Chris@0 4565 main ()
Chris@0 4566 {
Chris@0 4567 #ifndef __GNUC__
Chris@0 4568 choke me
Chris@0 4569 #endif
Chris@0 4570
Chris@0 4571 ;
Chris@0 4572 return 0;
Chris@0 4573 }
Chris@0 4574 _ACEOF
Chris@0 4575 rm -f conftest.$ac_objext
Chris@0 4576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 4577 (eval $ac_compile) 2>conftest.er1
Chris@0 4578 ac_status=$?
Chris@0 4579 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4580 rm -f conftest.er1
Chris@0 4581 cat conftest.err >&5
Chris@0 4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4583 (exit $ac_status); } &&
Chris@0 4584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4586 (eval $ac_try) 2>&5
Chris@0 4587 ac_status=$?
Chris@0 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4589 (exit $ac_status); }; } &&
Chris@0 4590 { ac_try='test -s conftest.$ac_objext'
Chris@0 4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4592 (eval $ac_try) 2>&5
Chris@0 4593 ac_status=$?
Chris@0 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4595 (exit $ac_status); }; }; then
Chris@0 4596 ac_compiler_gnu=yes
Chris@0 4597 else
Chris@0 4598 echo "$as_me: failed program was:" >&5
Chris@0 4599 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4600
Chris@0 4601 ac_compiler_gnu=no
Chris@0 4602 fi
Chris@0 4603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 4604 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Chris@0 4605
Chris@0 4606 fi
Chris@0 4607 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
Chris@0 4608 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
Chris@0 4609 GXX=`test $ac_compiler_gnu = yes && echo yes`
Chris@0 4610 ac_test_CXXFLAGS=${CXXFLAGS+set}
Chris@0 4611 ac_save_CXXFLAGS=$CXXFLAGS
Chris@0 4612 CXXFLAGS="-g"
Chris@0 4613 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
Chris@0 4614 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
Chris@0 4615 if test "${ac_cv_prog_cxx_g+set}" = set; then
Chris@0 4616 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4617 else
Chris@0 4618 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4619 /* confdefs.h. */
Chris@0 4620 _ACEOF
Chris@0 4621 cat confdefs.h >>conftest.$ac_ext
Chris@0 4622 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4623 /* end confdefs.h. */
Chris@0 4624
Chris@0 4625 int
Chris@0 4626 main ()
Chris@0 4627 {
Chris@0 4628
Chris@0 4629 ;
Chris@0 4630 return 0;
Chris@0 4631 }
Chris@0 4632 _ACEOF
Chris@0 4633 rm -f conftest.$ac_objext
Chris@0 4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 4635 (eval $ac_compile) 2>conftest.er1
Chris@0 4636 ac_status=$?
Chris@0 4637 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4638 rm -f conftest.er1
Chris@0 4639 cat conftest.err >&5
Chris@0 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4641 (exit $ac_status); } &&
Chris@0 4642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4644 (eval $ac_try) 2>&5
Chris@0 4645 ac_status=$?
Chris@0 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4647 (exit $ac_status); }; } &&
Chris@0 4648 { ac_try='test -s conftest.$ac_objext'
Chris@0 4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4650 (eval $ac_try) 2>&5
Chris@0 4651 ac_status=$?
Chris@0 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4653 (exit $ac_status); }; }; then
Chris@0 4654 ac_cv_prog_cxx_g=yes
Chris@0 4655 else
Chris@0 4656 echo "$as_me: failed program was:" >&5
Chris@0 4657 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4658
Chris@0 4659 ac_cv_prog_cxx_g=no
Chris@0 4660 fi
Chris@0 4661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 4662 fi
Chris@0 4663 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
Chris@0 4664 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Chris@0 4665 if test "$ac_test_CXXFLAGS" = set; then
Chris@0 4666 CXXFLAGS=$ac_save_CXXFLAGS
Chris@0 4667 elif test $ac_cv_prog_cxx_g = yes; then
Chris@0 4668 if test "$GXX" = yes; then
Chris@0 4669 CXXFLAGS="-g -O2"
Chris@0 4670 else
Chris@0 4671 CXXFLAGS="-g"
Chris@0 4672 fi
Chris@0 4673 else
Chris@0 4674 if test "$GXX" = yes; then
Chris@0 4675 CXXFLAGS="-O2"
Chris@0 4676 else
Chris@0 4677 CXXFLAGS=
Chris@0 4678 fi
Chris@0 4679 fi
Chris@0 4680 for ac_declaration in \
Chris@0 4681 '' \
Chris@0 4682 'extern "C" void std::exit (int) throw (); using std::exit;' \
Chris@0 4683 'extern "C" void std::exit (int); using std::exit;' \
Chris@0 4684 'extern "C" void exit (int) throw ();' \
Chris@0 4685 'extern "C" void exit (int);' \
Chris@0 4686 'void exit (int);'
Chris@0 4687 do
Chris@0 4688 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4689 /* confdefs.h. */
Chris@0 4690 _ACEOF
Chris@0 4691 cat confdefs.h >>conftest.$ac_ext
Chris@0 4692 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4693 /* end confdefs.h. */
Chris@0 4694 $ac_declaration
Chris@0 4695 #include <stdlib.h>
Chris@0 4696 int
Chris@0 4697 main ()
Chris@0 4698 {
Chris@0 4699 exit (42);
Chris@0 4700 ;
Chris@0 4701 return 0;
Chris@0 4702 }
Chris@0 4703 _ACEOF
Chris@0 4704 rm -f conftest.$ac_objext
Chris@0 4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 4706 (eval $ac_compile) 2>conftest.er1
Chris@0 4707 ac_status=$?
Chris@0 4708 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4709 rm -f conftest.er1
Chris@0 4710 cat conftest.err >&5
Chris@0 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4712 (exit $ac_status); } &&
Chris@0 4713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4715 (eval $ac_try) 2>&5
Chris@0 4716 ac_status=$?
Chris@0 4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4718 (exit $ac_status); }; } &&
Chris@0 4719 { ac_try='test -s conftest.$ac_objext'
Chris@0 4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4721 (eval $ac_try) 2>&5
Chris@0 4722 ac_status=$?
Chris@0 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4724 (exit $ac_status); }; }; then
Chris@0 4725 :
Chris@0 4726 else
Chris@0 4727 echo "$as_me: failed program was:" >&5
Chris@0 4728 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4729
Chris@0 4730 continue
Chris@0 4731 fi
Chris@0 4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 4733 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4734 /* confdefs.h. */
Chris@0 4735 _ACEOF
Chris@0 4736 cat confdefs.h >>conftest.$ac_ext
Chris@0 4737 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4738 /* end confdefs.h. */
Chris@0 4739 $ac_declaration
Chris@0 4740 int
Chris@0 4741 main ()
Chris@0 4742 {
Chris@0 4743 exit (42);
Chris@0 4744 ;
Chris@0 4745 return 0;
Chris@0 4746 }
Chris@0 4747 _ACEOF
Chris@0 4748 rm -f conftest.$ac_objext
Chris@0 4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 4750 (eval $ac_compile) 2>conftest.er1
Chris@0 4751 ac_status=$?
Chris@0 4752 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4753 rm -f conftest.er1
Chris@0 4754 cat conftest.err >&5
Chris@0 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4756 (exit $ac_status); } &&
Chris@0 4757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4759 (eval $ac_try) 2>&5
Chris@0 4760 ac_status=$?
Chris@0 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4762 (exit $ac_status); }; } &&
Chris@0 4763 { ac_try='test -s conftest.$ac_objext'
Chris@0 4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 4765 (eval $ac_try) 2>&5
Chris@0 4766 ac_status=$?
Chris@0 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4768 (exit $ac_status); }; }; then
Chris@0 4769 break
Chris@0 4770 else
Chris@0 4771 echo "$as_me: failed program was:" >&5
Chris@0 4772 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4773
Chris@0 4774 fi
Chris@0 4775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 4776 done
Chris@0 4777 rm -f conftest*
Chris@0 4778 if test -n "$ac_declaration"; then
Chris@0 4779 echo '#ifdef __cplusplus' >>confdefs.h
Chris@0 4780 echo $ac_declaration >>confdefs.h
Chris@0 4781 echo '#endif' >>confdefs.h
Chris@0 4782 fi
Chris@0 4783
Chris@0 4784 ac_ext=cc
Chris@0 4785 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@0 4786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 4787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 4788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@0 4789
Chris@0 4790 depcc="$CXX" am_compiler_list=
Chris@0 4791
Chris@0 4792 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
Chris@0 4793 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
Chris@0 4794 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
Chris@0 4795 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4796 else
Chris@0 4797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@0 4798 # We make a subdir and do the tests there. Otherwise we can end up
Chris@0 4799 # making bogus files that we don't know about and never remove. For
Chris@0 4800 # instance it was reported that on HP-UX the gcc test will end up
Chris@0 4801 # making a dummy file named `D' -- because `-MD' means `put the output
Chris@0 4802 # in D'.
Chris@0 4803 mkdir conftest.dir
Chris@0 4804 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@0 4805 # using a relative directory.
Chris@0 4806 cp "$am_depcomp" conftest.dir
Chris@0 4807 cd conftest.dir
Chris@0 4808 # We will build objects and dependencies in a subdirectory because
Chris@0 4809 # it helps to detect inapplicable dependency modes. For instance
Chris@0 4810 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@0 4811 # side effect of compilation, but ICC will put the dependencies in
Chris@0 4812 # the current directory while Tru64 will put them in the object
Chris@0 4813 # directory.
Chris@0 4814 mkdir sub
Chris@0 4815
Chris@0 4816 am_cv_CXX_dependencies_compiler_type=none
Chris@0 4817 if test "$am_compiler_list" = ""; then
Chris@0 4818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@0 4819 fi
Chris@0 4820 for depmode in $am_compiler_list; do
Chris@0 4821 # Setup a source with many dependencies, because some compilers
Chris@0 4822 # like to wrap large dependency lists on column 80 (with \), and
Chris@0 4823 # we should not choose a depcomp mode which is confused by this.
Chris@0 4824 #
Chris@0 4825 # We need to recreate these files for each test, as the compiler may
Chris@0 4826 # overwrite some of them when testing with obscure command lines.
Chris@0 4827 # This happens at least with the AIX C compiler.
Chris@0 4828 : > sub/conftest.c
Chris@0 4829 for i in 1 2 3 4 5 6; do
Chris@0 4830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@0 4831 : > sub/conftst$i.h
Chris@0 4832 done
Chris@0 4833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@0 4834
Chris@0 4835 case $depmode in
Chris@0 4836 nosideeffect)
Chris@0 4837 # after this tag, mechanisms are not by side-effect, so they'll
Chris@0 4838 # only be used when explicitly requested
Chris@0 4839 if test "x$enable_dependency_tracking" = xyes; then
Chris@0 4840 continue
Chris@0 4841 else
Chris@0 4842 break
Chris@0 4843 fi
Chris@0 4844 ;;
Chris@0 4845 none) break ;;
Chris@0 4846 esac
Chris@0 4847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
Chris@0 4848 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@0 4849 # handle `-M -o', and we need to detect this.
Chris@0 4850 if depmode=$depmode \
Chris@0 4851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
Chris@0 4852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@0 4853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
Chris@0 4854 >/dev/null 2>conftest.err &&
Chris@0 4855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@0 4856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Chris@0 4857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@0 4858 # icc doesn't choke on unknown options, it will just issue warnings
Chris@0 4859 # (even with -Werror). So we grep stderr for any message
Chris@0 4860 # that says an option was ignored.
Chris@0 4861 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
Chris@0 4862 am_cv_CXX_dependencies_compiler_type=$depmode
Chris@0 4863 break
Chris@0 4864 fi
Chris@0 4865 fi
Chris@0 4866 done
Chris@0 4867
Chris@0 4868 cd ..
Chris@0 4869 rm -rf conftest.dir
Chris@0 4870 else
Chris@0 4871 am_cv_CXX_dependencies_compiler_type=none
Chris@0 4872 fi
Chris@0 4873
Chris@0 4874 fi
Chris@0 4875 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
Chris@0 4876 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
Chris@0 4877 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
Chris@0 4878
Chris@0 4879
Chris@0 4880
Chris@0 4881 if
Chris@0 4882 test "x$enable_dependency_tracking" != xno \
Chris@0 4883 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
Chris@0 4884 am__fastdepCXX_TRUE=
Chris@0 4885 am__fastdepCXX_FALSE='#'
Chris@0 4886 else
Chris@0 4887 am__fastdepCXX_TRUE='#'
Chris@0 4888 am__fastdepCXX_FALSE=
Chris@0 4889 fi
Chris@0 4890
Chris@0 4891
Chris@0 4892 ac_ext=cc
Chris@0 4893 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@0 4894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 4895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 4896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@0 4897 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
Chris@0 4898 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
Chris@0 4899 if test -z "$CXXCPP"; then
Chris@0 4900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
Chris@0 4901 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 4902 else
Chris@0 4903 # Double quotes because CXXCPP needs to be expanded
Chris@0 4904 for CXXCPP in "$CXX -E" "/lib/cpp"
Chris@0 4905 do
Chris@0 4906 ac_preproc_ok=false
Chris@0 4907 for ac_cxx_preproc_warn_flag in '' yes
Chris@0 4908 do
Chris@0 4909 # Use a header file that comes with gcc, so configuring glibc
Chris@0 4910 # with a fresh cross-compiler works.
Chris@0 4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 4912 # <limits.h> exists even on freestanding compilers.
Chris@0 4913 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@0 4914 # not just through cpp. "Syntax error" is here to catch this case.
Chris@0 4915 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4916 /* confdefs.h. */
Chris@0 4917 _ACEOF
Chris@0 4918 cat confdefs.h >>conftest.$ac_ext
Chris@0 4919 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4920 /* end confdefs.h. */
Chris@0 4921 #ifdef __STDC__
Chris@0 4922 # include <limits.h>
Chris@0 4923 #else
Chris@0 4924 # include <assert.h>
Chris@0 4925 #endif
Chris@0 4926 Syntax error
Chris@0 4927 _ACEOF
Chris@0 4928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 4929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 4930 ac_status=$?
Chris@0 4931 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4932 rm -f conftest.er1
Chris@0 4933 cat conftest.err >&5
Chris@0 4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4935 (exit $ac_status); } >/dev/null; then
Chris@0 4936 if test -s conftest.err; then
Chris@0 4937 ac_cpp_err=$ac_cxx_preproc_warn_flag
Chris@0 4938 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
Chris@0 4939 else
Chris@0 4940 ac_cpp_err=
Chris@0 4941 fi
Chris@0 4942 else
Chris@0 4943 ac_cpp_err=yes
Chris@0 4944 fi
Chris@0 4945 if test -z "$ac_cpp_err"; then
Chris@0 4946 :
Chris@0 4947 else
Chris@0 4948 echo "$as_me: failed program was:" >&5
Chris@0 4949 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4950
Chris@0 4951 # Broken: fails on valid input.
Chris@0 4952 continue
Chris@0 4953 fi
Chris@0 4954 rm -f conftest.err conftest.$ac_ext
Chris@0 4955
Chris@0 4956 # OK, works on sane cases. Now check whether non-existent headers
Chris@0 4957 # can be detected and how.
Chris@0 4958 cat >conftest.$ac_ext <<_ACEOF
Chris@0 4959 /* confdefs.h. */
Chris@0 4960 _ACEOF
Chris@0 4961 cat confdefs.h >>conftest.$ac_ext
Chris@0 4962 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 4963 /* end confdefs.h. */
Chris@0 4964 #include <ac_nonexistent.h>
Chris@0 4965 _ACEOF
Chris@0 4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 4967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 4968 ac_status=$?
Chris@0 4969 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 4970 rm -f conftest.er1
Chris@0 4971 cat conftest.err >&5
Chris@0 4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 4973 (exit $ac_status); } >/dev/null; then
Chris@0 4974 if test -s conftest.err; then
Chris@0 4975 ac_cpp_err=$ac_cxx_preproc_warn_flag
Chris@0 4976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
Chris@0 4977 else
Chris@0 4978 ac_cpp_err=
Chris@0 4979 fi
Chris@0 4980 else
Chris@0 4981 ac_cpp_err=yes
Chris@0 4982 fi
Chris@0 4983 if test -z "$ac_cpp_err"; then
Chris@0 4984 # Broken: success on invalid input.
Chris@0 4985 continue
Chris@0 4986 else
Chris@0 4987 echo "$as_me: failed program was:" >&5
Chris@0 4988 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 4989
Chris@0 4990 # Passes both tests.
Chris@0 4991 ac_preproc_ok=:
Chris@0 4992 break
Chris@0 4993 fi
Chris@0 4994 rm -f conftest.err conftest.$ac_ext
Chris@0 4995
Chris@0 4996 done
Chris@0 4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@0 4998 rm -f conftest.err conftest.$ac_ext
Chris@0 4999 if $ac_preproc_ok; then
Chris@0 5000 break
Chris@0 5001 fi
Chris@0 5002
Chris@0 5003 done
Chris@0 5004 ac_cv_prog_CXXCPP=$CXXCPP
Chris@0 5005
Chris@0 5006 fi
Chris@0 5007 CXXCPP=$ac_cv_prog_CXXCPP
Chris@0 5008 else
Chris@0 5009 ac_cv_prog_CXXCPP=$CXXCPP
Chris@0 5010 fi
Chris@0 5011 echo "$as_me:$LINENO: result: $CXXCPP" >&5
Chris@0 5012 echo "${ECHO_T}$CXXCPP" >&6
Chris@0 5013 ac_preproc_ok=false
Chris@0 5014 for ac_cxx_preproc_warn_flag in '' yes
Chris@0 5015 do
Chris@0 5016 # Use a header file that comes with gcc, so configuring glibc
Chris@0 5017 # with a fresh cross-compiler works.
Chris@0 5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 5019 # <limits.h> exists even on freestanding compilers.
Chris@0 5020 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@0 5021 # not just through cpp. "Syntax error" is here to catch this case.
Chris@0 5022 cat >conftest.$ac_ext <<_ACEOF
Chris@0 5023 /* confdefs.h. */
Chris@0 5024 _ACEOF
Chris@0 5025 cat confdefs.h >>conftest.$ac_ext
Chris@0 5026 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 5027 /* end confdefs.h. */
Chris@0 5028 #ifdef __STDC__
Chris@0 5029 # include <limits.h>
Chris@0 5030 #else
Chris@0 5031 # include <assert.h>
Chris@0 5032 #endif
Chris@0 5033 Syntax error
Chris@0 5034 _ACEOF
Chris@0 5035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 5036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 5037 ac_status=$?
Chris@0 5038 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 5039 rm -f conftest.er1
Chris@0 5040 cat conftest.err >&5
Chris@0 5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5042 (exit $ac_status); } >/dev/null; then
Chris@0 5043 if test -s conftest.err; then
Chris@0 5044 ac_cpp_err=$ac_cxx_preproc_warn_flag
Chris@0 5045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
Chris@0 5046 else
Chris@0 5047 ac_cpp_err=
Chris@0 5048 fi
Chris@0 5049 else
Chris@0 5050 ac_cpp_err=yes
Chris@0 5051 fi
Chris@0 5052 if test -z "$ac_cpp_err"; then
Chris@0 5053 :
Chris@0 5054 else
Chris@0 5055 echo "$as_me: failed program was:" >&5
Chris@0 5056 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 5057
Chris@0 5058 # Broken: fails on valid input.
Chris@0 5059 continue
Chris@0 5060 fi
Chris@0 5061 rm -f conftest.err conftest.$ac_ext
Chris@0 5062
Chris@0 5063 # OK, works on sane cases. Now check whether non-existent headers
Chris@0 5064 # can be detected and how.
Chris@0 5065 cat >conftest.$ac_ext <<_ACEOF
Chris@0 5066 /* confdefs.h. */
Chris@0 5067 _ACEOF
Chris@0 5068 cat confdefs.h >>conftest.$ac_ext
Chris@0 5069 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 5070 /* end confdefs.h. */
Chris@0 5071 #include <ac_nonexistent.h>
Chris@0 5072 _ACEOF
Chris@0 5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 5075 ac_status=$?
Chris@0 5076 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 5077 rm -f conftest.er1
Chris@0 5078 cat conftest.err >&5
Chris@0 5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5080 (exit $ac_status); } >/dev/null; then
Chris@0 5081 if test -s conftest.err; then
Chris@0 5082 ac_cpp_err=$ac_cxx_preproc_warn_flag
Chris@0 5083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
Chris@0 5084 else
Chris@0 5085 ac_cpp_err=
Chris@0 5086 fi
Chris@0 5087 else
Chris@0 5088 ac_cpp_err=yes
Chris@0 5089 fi
Chris@0 5090 if test -z "$ac_cpp_err"; then
Chris@0 5091 # Broken: success on invalid input.
Chris@0 5092 continue
Chris@0 5093 else
Chris@0 5094 echo "$as_me: failed program was:" >&5
Chris@0 5095 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 5096
Chris@0 5097 # Passes both tests.
Chris@0 5098 ac_preproc_ok=:
Chris@0 5099 break
Chris@0 5100 fi
Chris@0 5101 rm -f conftest.err conftest.$ac_ext
Chris@0 5102
Chris@0 5103 done
Chris@0 5104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@0 5105 rm -f conftest.err conftest.$ac_ext
Chris@0 5106 if $ac_preproc_ok; then
Chris@0 5107 :
Chris@0 5108 else
Chris@0 5109 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
Chris@0 5110 See \`config.log' for more details." >&5
Chris@0 5111 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
Chris@0 5112 See \`config.log' for more details." >&2;}
Chris@0 5113 { (exit 1); exit 1; }; }
Chris@0 5114 fi
Chris@0 5115
Chris@0 5116 ac_ext=cc
Chris@0 5117 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@0 5118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 5119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 5120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@0 5121
Chris@0 5122
Chris@0 5123 ac_ext=f
Chris@0 5124 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@0 5125 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 5126 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@0 5127 if test -n "$ac_tool_prefix"; then
Chris@0 5128 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
Chris@0 5129 do
Chris@0 5130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@0 5131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@0 5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 5134 if test "${ac_cv_prog_F77+set}" = set; then
Chris@0 5135 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5136 else
Chris@0 5137 if test -n "$F77"; then
Chris@0 5138 ac_cv_prog_F77="$F77" # Let the user override the test.
Chris@0 5139 else
Chris@0 5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 5141 for as_dir in $PATH
Chris@0 5142 do
Chris@0 5143 IFS=$as_save_IFS
Chris@0 5144 test -z "$as_dir" && as_dir=.
Chris@0 5145 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 5147 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
Chris@0 5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 5149 break 2
Chris@0 5150 fi
Chris@0 5151 done
Chris@0 5152 done
Chris@0 5153
Chris@0 5154 fi
Chris@0 5155 fi
Chris@0 5156 F77=$ac_cv_prog_F77
Chris@0 5157 if test -n "$F77"; then
Chris@0 5158 echo "$as_me:$LINENO: result: $F77" >&5
Chris@0 5159 echo "${ECHO_T}$F77" >&6
Chris@0 5160 else
Chris@0 5161 echo "$as_me:$LINENO: result: no" >&5
Chris@0 5162 echo "${ECHO_T}no" >&6
Chris@0 5163 fi
Chris@0 5164
Chris@0 5165 test -n "$F77" && break
Chris@0 5166 done
Chris@0 5167 fi
Chris@0 5168 if test -z "$F77"; then
Chris@0 5169 ac_ct_F77=$F77
Chris@0 5170 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
Chris@0 5171 do
Chris@0 5172 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@0 5173 set dummy $ac_prog; ac_word=$2
Chris@0 5174 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 5176 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
Chris@0 5177 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5178 else
Chris@0 5179 if test -n "$ac_ct_F77"; then
Chris@0 5180 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
Chris@0 5181 else
Chris@0 5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 5183 for as_dir in $PATH
Chris@0 5184 do
Chris@0 5185 IFS=$as_save_IFS
Chris@0 5186 test -z "$as_dir" && as_dir=.
Chris@0 5187 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 5189 ac_cv_prog_ac_ct_F77="$ac_prog"
Chris@0 5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 5191 break 2
Chris@0 5192 fi
Chris@0 5193 done
Chris@0 5194 done
Chris@0 5195
Chris@0 5196 fi
Chris@0 5197 fi
Chris@0 5198 ac_ct_F77=$ac_cv_prog_ac_ct_F77
Chris@0 5199 if test -n "$ac_ct_F77"; then
Chris@0 5200 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
Chris@0 5201 echo "${ECHO_T}$ac_ct_F77" >&6
Chris@0 5202 else
Chris@0 5203 echo "$as_me:$LINENO: result: no" >&5
Chris@0 5204 echo "${ECHO_T}no" >&6
Chris@0 5205 fi
Chris@0 5206
Chris@0 5207 test -n "$ac_ct_F77" && break
Chris@0 5208 done
Chris@0 5209
Chris@0 5210 F77=$ac_ct_F77
Chris@0 5211 fi
Chris@0 5212
Chris@0 5213
Chris@0 5214 # Provide some information about the compiler.
Chris@0 5215 echo "$as_me:5215:" \
Chris@0 5216 "checking for Fortran 77 compiler version" >&5
Chris@0 5217 ac_compiler=`set X $ac_compile; echo $2`
Chris@0 5218 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Chris@0 5219 (eval $ac_compiler --version </dev/null >&5) 2>&5
Chris@0 5220 ac_status=$?
Chris@0 5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5222 (exit $ac_status); }
Chris@0 5223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Chris@0 5224 (eval $ac_compiler -v </dev/null >&5) 2>&5
Chris@0 5225 ac_status=$?
Chris@0 5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5227 (exit $ac_status); }
Chris@0 5228 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Chris@0 5229 (eval $ac_compiler -V </dev/null >&5) 2>&5
Chris@0 5230 ac_status=$?
Chris@0 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5232 (exit $ac_status); }
Chris@0 5233 rm -f a.out
Chris@0 5234
Chris@0 5235 # If we don't use `.F' as extension, the preprocessor is not run on the
Chris@0 5236 # input file. (Note that this only needs to work for GNU compilers.)
Chris@0 5237 ac_save_ext=$ac_ext
Chris@0 5238 ac_ext=F
Chris@0 5239 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
Chris@0 5240 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
Chris@0 5241 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
Chris@0 5242 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5243 else
Chris@0 5244 cat >conftest.$ac_ext <<_ACEOF
Chris@0 5245 program main
Chris@0 5246 #ifndef __GNUC__
Chris@0 5247 choke me
Chris@0 5248 #endif
Chris@0 5249
Chris@0 5250 end
Chris@0 5251 _ACEOF
Chris@0 5252 rm -f conftest.$ac_objext
Chris@0 5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 5254 (eval $ac_compile) 2>conftest.er1
Chris@0 5255 ac_status=$?
Chris@0 5256 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 5257 rm -f conftest.er1
Chris@0 5258 cat conftest.err >&5
Chris@0 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5260 (exit $ac_status); } &&
Chris@0 5261 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
Chris@0 5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 5263 (eval $ac_try) 2>&5
Chris@0 5264 ac_status=$?
Chris@0 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5266 (exit $ac_status); }; } &&
Chris@0 5267 { ac_try='test -s conftest.$ac_objext'
Chris@0 5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 5269 (eval $ac_try) 2>&5
Chris@0 5270 ac_status=$?
Chris@0 5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5272 (exit $ac_status); }; }; then
Chris@0 5273 ac_compiler_gnu=yes
Chris@0 5274 else
Chris@0 5275 echo "$as_me: failed program was:" >&5
Chris@0 5276 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 5277
Chris@0 5278 ac_compiler_gnu=no
Chris@0 5279 fi
Chris@0 5280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 5281 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
Chris@0 5282
Chris@0 5283 fi
Chris@0 5284 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
Chris@0 5285 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
Chris@0 5286 ac_ext=$ac_save_ext
Chris@0 5287 ac_test_FFLAGS=${FFLAGS+set}
Chris@0 5288 ac_save_FFLAGS=$FFLAGS
Chris@0 5289 FFLAGS=
Chris@0 5290 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
Chris@0 5291 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
Chris@0 5292 if test "${ac_cv_prog_f77_g+set}" = set; then
Chris@0 5293 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5294 else
Chris@0 5295 FFLAGS=-g
Chris@0 5296 cat >conftest.$ac_ext <<_ACEOF
Chris@0 5297 program main
Chris@0 5298
Chris@0 5299 end
Chris@0 5300 _ACEOF
Chris@0 5301 rm -f conftest.$ac_objext
Chris@0 5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 5303 (eval $ac_compile) 2>conftest.er1
Chris@0 5304 ac_status=$?
Chris@0 5305 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 5306 rm -f conftest.er1
Chris@0 5307 cat conftest.err >&5
Chris@0 5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5309 (exit $ac_status); } &&
Chris@0 5310 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
Chris@0 5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 5312 (eval $ac_try) 2>&5
Chris@0 5313 ac_status=$?
Chris@0 5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5315 (exit $ac_status); }; } &&
Chris@0 5316 { ac_try='test -s conftest.$ac_objext'
Chris@0 5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 5318 (eval $ac_try) 2>&5
Chris@0 5319 ac_status=$?
Chris@0 5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5321 (exit $ac_status); }; }; then
Chris@0 5322 ac_cv_prog_f77_g=yes
Chris@0 5323 else
Chris@0 5324 echo "$as_me: failed program was:" >&5
Chris@0 5325 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 5326
Chris@0 5327 ac_cv_prog_f77_g=no
Chris@0 5328 fi
Chris@0 5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 5330
Chris@0 5331 fi
Chris@0 5332 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
Chris@0 5333 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
Chris@0 5334 if test "$ac_test_FFLAGS" = set; then
Chris@0 5335 FFLAGS=$ac_save_FFLAGS
Chris@0 5336 elif test $ac_cv_prog_f77_g = yes; then
Chris@0 5337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
Chris@0 5338 FFLAGS="-g -O2"
Chris@0 5339 else
Chris@0 5340 FFLAGS="-g"
Chris@0 5341 fi
Chris@0 5342 else
Chris@0 5343 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
Chris@0 5344 FFLAGS="-O2"
Chris@0 5345 else
Chris@0 5346 FFLAGS=
Chris@0 5347 fi
Chris@0 5348 fi
Chris@0 5349
Chris@0 5350 G77=`test $ac_compiler_gnu = yes && echo yes`
Chris@0 5351 ac_ext=c
Chris@0 5352 ac_cpp='$CPP $CPPFLAGS'
Chris@0 5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 5356
Chris@0 5357
Chris@0 5358
Chris@0 5359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
Chris@0 5360
Chris@0 5361 # find the maximum length of command line arguments
Chris@0 5362 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
Chris@0 5363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
Chris@0 5364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
Chris@0 5365 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5366 else
Chris@0 5367 i=0
Chris@0 5368 testring="ABCD"
Chris@0 5369
Chris@0 5370 case $build_os in
Chris@0 5371 msdosdjgpp*)
Chris@0 5372 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@0 5373 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@0 5374 # during glob expansion). Even if it were fixed, the result of this
Chris@0 5375 # check would be larger than it should be.
Chris@0 5376 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@0 5377 ;;
Chris@0 5378
Chris@0 5379 gnu*)
Chris@0 5380 # Under GNU Hurd, this test is not required because there is
Chris@0 5381 # no limit to the length of command line arguments.
Chris@0 5382 # Libtool will interpret -1 as no limit whatsoever
Chris@0 5383 lt_cv_sys_max_cmd_len=-1;
Chris@0 5384 ;;
Chris@0 5385
Chris@0 5386 cygwin* | mingw*)
Chris@0 5387 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@0 5388 # about 5 minutes as the teststring grows exponentially.
Chris@0 5389 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@0 5390 # you end up with a "frozen" computer, even though with patience
Chris@0 5391 # the test eventually succeeds (with a max line length of 256k).
Chris@0 5392 # Instead, let's just punt: use the minimum linelength reported by
Chris@0 5393 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@0 5394 lt_cv_sys_max_cmd_len=8192;
Chris@0 5395 ;;
Chris@0 5396
Chris@0 5397 amigaos*)
Chris@0 5398 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@0 5399 # So we just punt and use a minimum line length of 8192.
Chris@0 5400 lt_cv_sys_max_cmd_len=8192;
Chris@0 5401 ;;
Chris@0 5402
Chris@0 5403 *)
Chris@0 5404 # If test is not a shell built-in, we'll probably end up computing a
Chris@0 5405 # maximum length that is only half of the actual maximum length, but
Chris@0 5406 # we can't tell.
Chris@0 5407 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
Chris@0 5408 = "XX$testring") >/dev/null 2>&1 &&
Chris@0 5409 new_result=`expr "X$testring" : ".*" 2>&1` &&
Chris@0 5410 lt_cv_sys_max_cmd_len=$new_result &&
Chris@0 5411 test $i != 17 # 1/2 MB should be enough
Chris@0 5412 do
Chris@0 5413 i=`expr $i + 1`
Chris@0 5414 testring=$testring$testring
Chris@0 5415 done
Chris@0 5416 testring=
Chris@0 5417 # Add a significant safety factor because C++ compilers can tack on massive
Chris@0 5418 # amounts of additional arguments before passing them to the linker.
Chris@0 5419 # It appears as though 1/2 is a usable value.
Chris@0 5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@0 5421 ;;
Chris@0 5422 esac
Chris@0 5423
Chris@0 5424 fi
Chris@0 5425
Chris@0 5426 if test -n $lt_cv_sys_max_cmd_len ; then
Chris@0 5427 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
Chris@0 5428 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
Chris@0 5429 else
Chris@0 5430 echo "$as_me:$LINENO: result: none" >&5
Chris@0 5431 echo "${ECHO_T}none" >&6
Chris@0 5432 fi
Chris@0 5433
Chris@0 5434
Chris@0 5435
Chris@0 5436
Chris@0 5437 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@0 5438 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
Chris@0 5439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
Chris@0 5440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
Chris@0 5441 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5442 else
Chris@0 5443
Chris@0 5444 # These are sane defaults that work on at least a few old systems.
Chris@0 5445 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@0 5446
Chris@0 5447 # Character class describing NM global symbol codes.
Chris@0 5448 symcode='[BCDEGRST]'
Chris@0 5449
Chris@0 5450 # Regexp to match symbols that can be accessed directly from C.
Chris@0 5451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@0 5452
Chris@0 5453 # Transform the above into a raw symbol and a C symbol.
Chris@0 5454 symxfrm='\1 \2\3 \3'
Chris@0 5455
Chris@0 5456 # Transform an extracted symbol line into a proper C declaration
Chris@0 5457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
Chris@0 5458
Chris@0 5459 # Transform an extracted symbol line into symbol name and symbol address
Chris@0 5460 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'"
Chris@0 5461
Chris@0 5462 # Define system-specific variables.
Chris@0 5463 case $host_os in
Chris@0 5464 aix*)
Chris@0 5465 symcode='[BCDT]'
Chris@0 5466 ;;
Chris@0 5467 cygwin* | mingw* | pw32*)
Chris@0 5468 symcode='[ABCDGISTW]'
Chris@0 5469 ;;
Chris@0 5470 hpux*) # Its linker distinguishes data from code symbols
Chris@0 5471 if test "$host_cpu" = ia64; then
Chris@0 5472 symcode='[ABCDEGRST]'
Chris@0 5473 fi
Chris@0 5474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@0 5475 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'"
Chris@0 5476 ;;
Chris@0 5477 irix* | nonstopux*)
Chris@0 5478 symcode='[BCDEGRST]'
Chris@0 5479 ;;
Chris@0 5480 osf*)
Chris@0 5481 symcode='[BCDEGQRST]'
Chris@0 5482 ;;
Chris@0 5483 solaris* | sysv5*)
Chris@0 5484 symcode='[BDRT]'
Chris@0 5485 ;;
Chris@0 5486 sysv4)
Chris@0 5487 symcode='[DFNSTU]'
Chris@0 5488 ;;
Chris@0 5489 esac
Chris@0 5490
Chris@0 5491 # Handle CRLF in mingw tool chain
Chris@0 5492 opt_cr=
Chris@0 5493 case $build_os in
Chris@0 5494 mingw*)
Chris@0 5495 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@0 5496 ;;
Chris@0 5497 esac
Chris@0 5498
Chris@0 5499 # If we're using GNU nm, then use its standard symbol codes.
Chris@0 5500 case `$NM -V 2>&1` in
Chris@0 5501 *GNU* | *'with BFD'*)
Chris@0 5502 symcode='[ABCDGIRSTW]' ;;
Chris@0 5503 esac
Chris@0 5504
Chris@0 5505 # Try without a prefix undercore, then with it.
Chris@0 5506 for ac_symprfx in "" "_"; do
Chris@0 5507
Chris@0 5508 # Write the raw and C identifiers.
Chris@0 5509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
Chris@0 5510
Chris@0 5511 # Check to see that the pipe works correctly.
Chris@0 5512 pipe_works=no
Chris@0 5513
Chris@0 5514 rm -f conftest*
Chris@0 5515 cat > conftest.$ac_ext <<EOF
Chris@0 5516 #ifdef __cplusplus
Chris@0 5517 extern "C" {
Chris@0 5518 #endif
Chris@0 5519 char nm_test_var;
Chris@0 5520 void nm_test_func(){}
Chris@0 5521 #ifdef __cplusplus
Chris@0 5522 }
Chris@0 5523 #endif
Chris@0 5524 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@0 5525 EOF
Chris@0 5526
Chris@0 5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 5528 (eval $ac_compile) 2>&5
Chris@0 5529 ac_status=$?
Chris@0 5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5531 (exit $ac_status); }; then
Chris@0 5532 # Now try to grab the symbols.
Chris@0 5533 nlist=conftest.nm
Chris@0 5534 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Chris@0 5535 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
Chris@0 5536 ac_status=$?
Chris@0 5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5538 (exit $ac_status); } && test -s "$nlist"; then
Chris@0 5539 # Try sorting and uniquifying the output.
Chris@0 5540 if sort "$nlist" | uniq > "$nlist"T; then
Chris@0 5541 mv -f "$nlist"T "$nlist"
Chris@0 5542 else
Chris@0 5543 rm -f "$nlist"T
Chris@0 5544 fi
Chris@0 5545
Chris@0 5546 # Make sure that we snagged all the symbols we need.
Chris@0 5547 if grep ' nm_test_var$' "$nlist" >/dev/null; then
Chris@0 5548 if grep ' nm_test_func$' "$nlist" >/dev/null; then
Chris@0 5549 cat <<EOF > conftest.$ac_ext
Chris@0 5550 #ifdef __cplusplus
Chris@0 5551 extern "C" {
Chris@0 5552 #endif
Chris@0 5553
Chris@0 5554 EOF
Chris@0 5555 # Now generate the symbol file.
Chris@0 5556 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
Chris@0 5557
Chris@0 5558 cat <<EOF >> conftest.$ac_ext
Chris@0 5559 #if defined (__STDC__) && __STDC__
Chris@0 5560 # define lt_ptr_t void *
Chris@0 5561 #else
Chris@0 5562 # define lt_ptr_t char *
Chris@0 5563 # define const
Chris@0 5564 #endif
Chris@0 5565
Chris@0 5566 /* The mapping between symbol names and symbols. */
Chris@0 5567 const struct {
Chris@0 5568 const char *name;
Chris@0 5569 lt_ptr_t address;
Chris@0 5570 }
Chris@0 5571 lt_preloaded_symbols[] =
Chris@0 5572 {
Chris@0 5573 EOF
Chris@0 5574 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
Chris@0 5575 cat <<\EOF >> conftest.$ac_ext
Chris@0 5576 {0, (lt_ptr_t) 0}
Chris@0 5577 };
Chris@0 5578
Chris@0 5579 #ifdef __cplusplus
Chris@0 5580 }
Chris@0 5581 #endif
Chris@0 5582 EOF
Chris@0 5583 # Now try linking the two files.
Chris@0 5584 mv conftest.$ac_objext conftstm.$ac_objext
Chris@0 5585 lt_save_LIBS="$LIBS"
Chris@0 5586 lt_save_CFLAGS="$CFLAGS"
Chris@0 5587 LIBS="conftstm.$ac_objext"
Chris@0 5588 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@0 5589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 5590 (eval $ac_link) 2>&5
Chris@0 5591 ac_status=$?
Chris@0 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 5593 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Chris@0 5594 pipe_works=yes
Chris@0 5595 fi
Chris@0 5596 LIBS="$lt_save_LIBS"
Chris@0 5597 CFLAGS="$lt_save_CFLAGS"
Chris@0 5598 else
Chris@0 5599 echo "cannot find nm_test_func in $nlist" >&5
Chris@0 5600 fi
Chris@0 5601 else
Chris@0 5602 echo "cannot find nm_test_var in $nlist" >&5
Chris@0 5603 fi
Chris@0 5604 else
Chris@0 5605 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@0 5606 fi
Chris@0 5607 else
Chris@0 5608 echo "$progname: failed program was:" >&5
Chris@0 5609 cat conftest.$ac_ext >&5
Chris@0 5610 fi
Chris@0 5611 rm -f conftest* conftst*
Chris@0 5612
Chris@0 5613 # Do not use the global_symbol_pipe unless it works.
Chris@0 5614 if test "$pipe_works" = yes; then
Chris@0 5615 break
Chris@0 5616 else
Chris@0 5617 lt_cv_sys_global_symbol_pipe=
Chris@0 5618 fi
Chris@0 5619 done
Chris@0 5620
Chris@0 5621 fi
Chris@0 5622
Chris@0 5623 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@0 5624 lt_cv_sys_global_symbol_to_cdecl=
Chris@0 5625 fi
Chris@0 5626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@0 5627 echo "$as_me:$LINENO: result: failed" >&5
Chris@0 5628 echo "${ECHO_T}failed" >&6
Chris@0 5629 else
Chris@0 5630 echo "$as_me:$LINENO: result: ok" >&5
Chris@0 5631 echo "${ECHO_T}ok" >&6
Chris@0 5632 fi
Chris@0 5633
Chris@0 5634 echo "$as_me:$LINENO: checking for objdir" >&5
Chris@0 5635 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
Chris@0 5636 if test "${lt_cv_objdir+set}" = set; then
Chris@0 5637 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5638 else
Chris@0 5639 rm -f .libs 2>/dev/null
Chris@0 5640 mkdir .libs 2>/dev/null
Chris@0 5641 if test -d .libs; then
Chris@0 5642 lt_cv_objdir=.libs
Chris@0 5643 else
Chris@0 5644 # MS-DOS does not allow filenames that begin with a dot.
Chris@0 5645 lt_cv_objdir=_libs
Chris@0 5646 fi
Chris@0 5647 rmdir .libs 2>/dev/null
Chris@0 5648 fi
Chris@0 5649 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
Chris@0 5650 echo "${ECHO_T}$lt_cv_objdir" >&6
Chris@0 5651 objdir=$lt_cv_objdir
Chris@0 5652
Chris@0 5653
Chris@0 5654
Chris@0 5655
Chris@0 5656
Chris@0 5657 case $host_os in
Chris@0 5658 aix3*)
Chris@0 5659 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@0 5660 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@0 5661 # vanish in a puff of smoke.
Chris@0 5662 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@0 5663 COLLECT_NAMES=
Chris@0 5664 export COLLECT_NAMES
Chris@0 5665 fi
Chris@0 5666 ;;
Chris@0 5667 esac
Chris@0 5668
Chris@0 5669 # Sed substitution that helps us do robust quoting. It backslashifies
Chris@0 5670 # metacharacters that are still active within double-quoted strings.
Chris@0 5671 Xsed='sed -e s/^X//'
Chris@0 5672 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
Chris@0 5673
Chris@0 5674 # Same as above, but do not quote variable references.
Chris@0 5675 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
Chris@0 5676
Chris@0 5677 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@0 5678 # double_quote_subst'ed string.
Chris@0 5679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@0 5680
Chris@0 5681 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@0 5682 no_glob_subst='s/\*/\\\*/g'
Chris@0 5683
Chris@0 5684 # Constants:
Chris@0 5685 rm="rm -f"
Chris@0 5686
Chris@0 5687 # Global variables:
Chris@0 5688 default_ofile=libtool
Chris@0 5689 can_build_shared=yes
Chris@0 5690
Chris@0 5691 # All known linkers require a `.a' archive for static linking (except M$VC,
Chris@0 5692 # which needs '.lib').
Chris@0 5693 libext=a
Chris@0 5694 ltmain="$ac_aux_dir/ltmain.sh"
Chris@0 5695 ofile="$default_ofile"
Chris@0 5696 with_gnu_ld="$lt_cv_prog_gnu_ld"
Chris@0 5697
Chris@0 5698 if test -n "$ac_tool_prefix"; then
Chris@0 5699 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Chris@0 5700 set dummy ${ac_tool_prefix}ar; ac_word=$2
Chris@0 5701 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 5703 if test "${ac_cv_prog_AR+set}" = set; then
Chris@0 5704 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5705 else
Chris@0 5706 if test -n "$AR"; then
Chris@0 5707 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@0 5708 else
Chris@0 5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 5710 for as_dir in $PATH
Chris@0 5711 do
Chris@0 5712 IFS=$as_save_IFS
Chris@0 5713 test -z "$as_dir" && as_dir=.
Chris@0 5714 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 5715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 5716 ac_cv_prog_AR="${ac_tool_prefix}ar"
Chris@0 5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 5718 break 2
Chris@0 5719 fi
Chris@0 5720 done
Chris@0 5721 done
Chris@0 5722
Chris@0 5723 fi
Chris@0 5724 fi
Chris@0 5725 AR=$ac_cv_prog_AR
Chris@0 5726 if test -n "$AR"; then
Chris@0 5727 echo "$as_me:$LINENO: result: $AR" >&5
Chris@0 5728 echo "${ECHO_T}$AR" >&6
Chris@0 5729 else
Chris@0 5730 echo "$as_me:$LINENO: result: no" >&5
Chris@0 5731 echo "${ECHO_T}no" >&6
Chris@0 5732 fi
Chris@0 5733
Chris@0 5734 fi
Chris@0 5735 if test -z "$ac_cv_prog_AR"; then
Chris@0 5736 ac_ct_AR=$AR
Chris@0 5737 # Extract the first word of "ar", so it can be a program name with args.
Chris@0 5738 set dummy ar; ac_word=$2
Chris@0 5739 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 5740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 5741 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Chris@0 5742 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5743 else
Chris@0 5744 if test -n "$ac_ct_AR"; then
Chris@0 5745 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@0 5746 else
Chris@0 5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 5748 for as_dir in $PATH
Chris@0 5749 do
Chris@0 5750 IFS=$as_save_IFS
Chris@0 5751 test -z "$as_dir" && as_dir=.
Chris@0 5752 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 5753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 5754 ac_cv_prog_ac_ct_AR="ar"
Chris@0 5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 5756 break 2
Chris@0 5757 fi
Chris@0 5758 done
Chris@0 5759 done
Chris@0 5760
Chris@0 5761 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
Chris@0 5762 fi
Chris@0 5763 fi
Chris@0 5764 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@0 5765 if test -n "$ac_ct_AR"; then
Chris@0 5766 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
Chris@0 5767 echo "${ECHO_T}$ac_ct_AR" >&6
Chris@0 5768 else
Chris@0 5769 echo "$as_me:$LINENO: result: no" >&5
Chris@0 5770 echo "${ECHO_T}no" >&6
Chris@0 5771 fi
Chris@0 5772
Chris@0 5773 AR=$ac_ct_AR
Chris@0 5774 else
Chris@0 5775 AR="$ac_cv_prog_AR"
Chris@0 5776 fi
Chris@0 5777
Chris@0 5778 if test -n "$ac_tool_prefix"; then
Chris@0 5779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@0 5780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@0 5781 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 5783 if test "${ac_cv_prog_RANLIB+set}" = set; then
Chris@0 5784 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5785 else
Chris@0 5786 if test -n "$RANLIB"; then
Chris@0 5787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@0 5788 else
Chris@0 5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 5790 for as_dir in $PATH
Chris@0 5791 do
Chris@0 5792 IFS=$as_save_IFS
Chris@0 5793 test -z "$as_dir" && as_dir=.
Chris@0 5794 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 5795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 5796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@0 5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 5798 break 2
Chris@0 5799 fi
Chris@0 5800 done
Chris@0 5801 done
Chris@0 5802
Chris@0 5803 fi
Chris@0 5804 fi
Chris@0 5805 RANLIB=$ac_cv_prog_RANLIB
Chris@0 5806 if test -n "$RANLIB"; then
Chris@0 5807 echo "$as_me:$LINENO: result: $RANLIB" >&5
Chris@0 5808 echo "${ECHO_T}$RANLIB" >&6
Chris@0 5809 else
Chris@0 5810 echo "$as_me:$LINENO: result: no" >&5
Chris@0 5811 echo "${ECHO_T}no" >&6
Chris@0 5812 fi
Chris@0 5813
Chris@0 5814 fi
Chris@0 5815 if test -z "$ac_cv_prog_RANLIB"; then
Chris@0 5816 ac_ct_RANLIB=$RANLIB
Chris@0 5817 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@0 5818 set dummy ranlib; ac_word=$2
Chris@0 5819 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 5821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Chris@0 5822 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5823 else
Chris@0 5824 if test -n "$ac_ct_RANLIB"; then
Chris@0 5825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@0 5826 else
Chris@0 5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 5828 for as_dir in $PATH
Chris@0 5829 do
Chris@0 5830 IFS=$as_save_IFS
Chris@0 5831 test -z "$as_dir" && as_dir=.
Chris@0 5832 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 5833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 5834 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@0 5835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 5836 break 2
Chris@0 5837 fi
Chris@0 5838 done
Chris@0 5839 done
Chris@0 5840
Chris@0 5841 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
Chris@0 5842 fi
Chris@0 5843 fi
Chris@0 5844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@0 5845 if test -n "$ac_ct_RANLIB"; then
Chris@0 5846 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Chris@0 5847 echo "${ECHO_T}$ac_ct_RANLIB" >&6
Chris@0 5848 else
Chris@0 5849 echo "$as_me:$LINENO: result: no" >&5
Chris@0 5850 echo "${ECHO_T}no" >&6
Chris@0 5851 fi
Chris@0 5852
Chris@0 5853 RANLIB=$ac_ct_RANLIB
Chris@0 5854 else
Chris@0 5855 RANLIB="$ac_cv_prog_RANLIB"
Chris@0 5856 fi
Chris@0 5857
Chris@0 5858 if test -n "$ac_tool_prefix"; then
Chris@0 5859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@0 5860 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@0 5861 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 5863 if test "${ac_cv_prog_STRIP+set}" = set; then
Chris@0 5864 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5865 else
Chris@0 5866 if test -n "$STRIP"; then
Chris@0 5867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@0 5868 else
Chris@0 5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 5870 for as_dir in $PATH
Chris@0 5871 do
Chris@0 5872 IFS=$as_save_IFS
Chris@0 5873 test -z "$as_dir" && as_dir=.
Chris@0 5874 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 5875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 5876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@0 5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 5878 break 2
Chris@0 5879 fi
Chris@0 5880 done
Chris@0 5881 done
Chris@0 5882
Chris@0 5883 fi
Chris@0 5884 fi
Chris@0 5885 STRIP=$ac_cv_prog_STRIP
Chris@0 5886 if test -n "$STRIP"; then
Chris@0 5887 echo "$as_me:$LINENO: result: $STRIP" >&5
Chris@0 5888 echo "${ECHO_T}$STRIP" >&6
Chris@0 5889 else
Chris@0 5890 echo "$as_me:$LINENO: result: no" >&5
Chris@0 5891 echo "${ECHO_T}no" >&6
Chris@0 5892 fi
Chris@0 5893
Chris@0 5894 fi
Chris@0 5895 if test -z "$ac_cv_prog_STRIP"; then
Chris@0 5896 ac_ct_STRIP=$STRIP
Chris@0 5897 # Extract the first word of "strip", so it can be a program name with args.
Chris@0 5898 set dummy strip; ac_word=$2
Chris@0 5899 echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris@0 5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Chris@0 5901 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Chris@0 5902 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5903 else
Chris@0 5904 if test -n "$ac_ct_STRIP"; then
Chris@0 5905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@0 5906 else
Chris@0 5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 5908 for as_dir in $PATH
Chris@0 5909 do
Chris@0 5910 IFS=$as_save_IFS
Chris@0 5911 test -z "$as_dir" && as_dir=.
Chris@0 5912 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@0 5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@0 5914 ac_cv_prog_ac_ct_STRIP="strip"
Chris@0 5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@0 5916 break 2
Chris@0 5917 fi
Chris@0 5918 done
Chris@0 5919 done
Chris@0 5920
Chris@0 5921 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
Chris@0 5922 fi
Chris@0 5923 fi
Chris@0 5924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@0 5925 if test -n "$ac_ct_STRIP"; then
Chris@0 5926 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Chris@0 5927 echo "${ECHO_T}$ac_ct_STRIP" >&6
Chris@0 5928 else
Chris@0 5929 echo "$as_me:$LINENO: result: no" >&5
Chris@0 5930 echo "${ECHO_T}no" >&6
Chris@0 5931 fi
Chris@0 5932
Chris@0 5933 STRIP=$ac_ct_STRIP
Chris@0 5934 else
Chris@0 5935 STRIP="$ac_cv_prog_STRIP"
Chris@0 5936 fi
Chris@0 5937
Chris@0 5938
Chris@0 5939 old_CC="$CC"
Chris@0 5940 old_CFLAGS="$CFLAGS"
Chris@0 5941
Chris@0 5942 # Set sane defaults for various variables
Chris@0 5943 test -z "$AR" && AR=ar
Chris@0 5944 test -z "$AR_FLAGS" && AR_FLAGS=cru
Chris@0 5945 test -z "$AS" && AS=as
Chris@0 5946 test -z "$CC" && CC=cc
Chris@0 5947 test -z "$LTCC" && LTCC=$CC
Chris@0 5948 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@0 5949 test -z "$LD" && LD=ld
Chris@0 5950 test -z "$LN_S" && LN_S="ln -s"
Chris@0 5951 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@0 5952 test -z "$NM" && NM=nm
Chris@0 5953 test -z "$SED" && SED=sed
Chris@0 5954 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@0 5955 test -z "$RANLIB" && RANLIB=:
Chris@0 5956 test -z "$STRIP" && STRIP=:
Chris@0 5957 test -z "$ac_objext" && ac_objext=o
Chris@0 5958
Chris@0 5959 # Determine commands to create old-style static archives.
Chris@0 5960 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
Chris@0 5961 old_postinstall_cmds='chmod 644 $oldlib'
Chris@0 5962 old_postuninstall_cmds=
Chris@0 5963
Chris@0 5964 if test -n "$RANLIB"; then
Chris@0 5965 case $host_os in
Chris@0 5966 openbsd*)
Chris@0 5967 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
Chris@0 5968 ;;
Chris@0 5969 *)
Chris@0 5970 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
Chris@0 5971 ;;
Chris@0 5972 esac
Chris@0 5973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Chris@0 5974 fi
Chris@0 5975
Chris@0 5976 # Only perform the check for file, if the check method requires it
Chris@0 5977 case $deplibs_check_method in
Chris@0 5978 file_magic*)
Chris@0 5979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@0 5980 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
Chris@0 5981 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
Chris@0 5982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Chris@0 5983 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 5984 else
Chris@0 5985 case $MAGIC_CMD in
Chris@0 5986 [\\/*] | ?:[\\/]*)
Chris@0 5987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@0 5988 ;;
Chris@0 5989 *)
Chris@0 5990 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@0 5991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@0 5992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@0 5993 for ac_dir in $ac_dummy; do
Chris@0 5994 IFS="$lt_save_ifs"
Chris@0 5995 test -z "$ac_dir" && ac_dir=.
Chris@0 5996 if test -f $ac_dir/${ac_tool_prefix}file; then
Chris@0 5997 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
Chris@0 5998 if test -n "$file_magic_test_file"; then
Chris@0 5999 case $deplibs_check_method in
Chris@0 6000 "file_magic "*)
Chris@0 6001 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
Chris@0 6002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@0 6003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@0 6004 $EGREP "$file_magic_regex" > /dev/null; then
Chris@0 6005 :
Chris@0 6006 else
Chris@0 6007 cat <<EOF 1>&2
Chris@0 6008
Chris@0 6009 *** Warning: the command libtool uses to detect shared libraries,
Chris@0 6010 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@0 6011 *** The result is that libtool may fail to recognize shared libraries
Chris@0 6012 *** as such. This will affect the creation of libtool libraries that
Chris@0 6013 *** depend on shared libraries, but programs linked with such libtool
Chris@0 6014 *** libraries will work regardless of this problem. Nevertheless, you
Chris@0 6015 *** may want to report the problem to your system manager and/or to
Chris@0 6016 *** bug-libtool@gnu.org
Chris@0 6017
Chris@0 6018 EOF
Chris@0 6019 fi ;;
Chris@0 6020 esac
Chris@0 6021 fi
Chris@0 6022 break
Chris@0 6023 fi
Chris@0 6024 done
Chris@0 6025 IFS="$lt_save_ifs"
Chris@0 6026 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@0 6027 ;;
Chris@0 6028 esac
Chris@0 6029 fi
Chris@0 6030
Chris@0 6031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@0 6032 if test -n "$MAGIC_CMD"; then
Chris@0 6033 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Chris@0 6034 echo "${ECHO_T}$MAGIC_CMD" >&6
Chris@0 6035 else
Chris@0 6036 echo "$as_me:$LINENO: result: no" >&5
Chris@0 6037 echo "${ECHO_T}no" >&6
Chris@0 6038 fi
Chris@0 6039
Chris@0 6040 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@0 6041 if test -n "$ac_tool_prefix"; then
Chris@0 6042 echo "$as_me:$LINENO: checking for file" >&5
Chris@0 6043 echo $ECHO_N "checking for file... $ECHO_C" >&6
Chris@0 6044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Chris@0 6045 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 6046 else
Chris@0 6047 case $MAGIC_CMD in
Chris@0 6048 [\\/*] | ?:[\\/]*)
Chris@0 6049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@0 6050 ;;
Chris@0 6051 *)
Chris@0 6052 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@0 6053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@0 6054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@0 6055 for ac_dir in $ac_dummy; do
Chris@0 6056 IFS="$lt_save_ifs"
Chris@0 6057 test -z "$ac_dir" && ac_dir=.
Chris@0 6058 if test -f $ac_dir/file; then
Chris@0 6059 lt_cv_path_MAGIC_CMD="$ac_dir/file"
Chris@0 6060 if test -n "$file_magic_test_file"; then
Chris@0 6061 case $deplibs_check_method in
Chris@0 6062 "file_magic "*)
Chris@0 6063 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
Chris@0 6064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@0 6065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@0 6066 $EGREP "$file_magic_regex" > /dev/null; then
Chris@0 6067 :
Chris@0 6068 else
Chris@0 6069 cat <<EOF 1>&2
Chris@0 6070
Chris@0 6071 *** Warning: the command libtool uses to detect shared libraries,
Chris@0 6072 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@0 6073 *** The result is that libtool may fail to recognize shared libraries
Chris@0 6074 *** as such. This will affect the creation of libtool libraries that
Chris@0 6075 *** depend on shared libraries, but programs linked with such libtool
Chris@0 6076 *** libraries will work regardless of this problem. Nevertheless, you
Chris@0 6077 *** may want to report the problem to your system manager and/or to
Chris@0 6078 *** bug-libtool@gnu.org
Chris@0 6079
Chris@0 6080 EOF
Chris@0 6081 fi ;;
Chris@0 6082 esac
Chris@0 6083 fi
Chris@0 6084 break
Chris@0 6085 fi
Chris@0 6086 done
Chris@0 6087 IFS="$lt_save_ifs"
Chris@0 6088 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@0 6089 ;;
Chris@0 6090 esac
Chris@0 6091 fi
Chris@0 6092
Chris@0 6093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@0 6094 if test -n "$MAGIC_CMD"; then
Chris@0 6095 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Chris@0 6096 echo "${ECHO_T}$MAGIC_CMD" >&6
Chris@0 6097 else
Chris@0 6098 echo "$as_me:$LINENO: result: no" >&5
Chris@0 6099 echo "${ECHO_T}no" >&6
Chris@0 6100 fi
Chris@0 6101
Chris@0 6102 else
Chris@0 6103 MAGIC_CMD=:
Chris@0 6104 fi
Chris@0 6105 fi
Chris@0 6106
Chris@0 6107 fi
Chris@0 6108 ;;
Chris@0 6109 esac
Chris@0 6110
Chris@0 6111 enable_dlopen=no
Chris@0 6112 enable_win32_dll=no
Chris@0 6113
Chris@0 6114 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
Chris@0 6115 if test "${enable_libtool_lock+set}" = set; then
Chris@0 6116 enableval="$enable_libtool_lock"
Chris@0 6117
Chris@0 6118 fi;
Chris@0 6119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Chris@0 6120
Chris@0 6121
Chris@0 6122 # Check whether --with-pic or --without-pic was given.
Chris@0 6123 if test "${with_pic+set}" = set; then
Chris@0 6124 withval="$with_pic"
Chris@0 6125 pic_mode="$withval"
Chris@0 6126 else
Chris@0 6127 pic_mode=default
Chris@0 6128 fi;
Chris@0 6129 test -z "$pic_mode" && pic_mode=default
Chris@0 6130
Chris@0 6131 # Use C for the default configuration in the libtool script
Chris@0 6132 tagname=
Chris@0 6133 lt_save_CC="$CC"
Chris@0 6134 ac_ext=c
Chris@0 6135 ac_cpp='$CPP $CPPFLAGS'
Chris@0 6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 6139
Chris@0 6140
Chris@0 6141 # Source file extension for C test sources.
Chris@0 6142 ac_ext=c
Chris@0 6143
Chris@0 6144 # Object file extension for compiled C test sources.
Chris@0 6145 objext=o
Chris@0 6146 objext=$objext
Chris@0 6147
Chris@0 6148 # Code to be used in simple compile tests
Chris@0 6149 lt_simple_compile_test_code="int some_variable = 0;\n"
Chris@0 6150
Chris@0 6151 # Code to be used in simple link tests
Chris@0 6152 lt_simple_link_test_code='int main(){return(0);}\n'
Chris@0 6153
Chris@0 6154
Chris@0 6155 # If no C compiler was specified, use CC.
Chris@0 6156 LTCC=${LTCC-"$CC"}
Chris@0 6157
Chris@0 6158 # Allow CC to be a program name with arguments.
Chris@0 6159 compiler=$CC
Chris@0 6160
Chris@0 6161
Chris@0 6162 #
Chris@0 6163 # Check for any special shared library compilation flags.
Chris@0 6164 #
Chris@0 6165 lt_prog_cc_shlib=
Chris@0 6166 if test "$GCC" = no; then
Chris@0 6167 case $host_os in
Chris@0 6168 sco3.2v5*)
Chris@0 6169 lt_prog_cc_shlib='-belf'
Chris@0 6170 ;;
Chris@0 6171 esac
Chris@0 6172 fi
Chris@0 6173 if test -n "$lt_prog_cc_shlib"; then
Chris@0 6174 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
Chris@0 6175 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
Chris@0 6176 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
Chris@0 6177 else
Chris@0 6178 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
Chris@0 6179 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
Chris@0 6180 lt_cv_prog_cc_can_build_shared=no
Chris@0 6181 fi
Chris@0 6182 fi
Chris@0 6183
Chris@0 6184
Chris@0 6185 #
Chris@0 6186 # Check to make sure the static flag actually works.
Chris@0 6187 #
Chris@0 6188 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
Chris@0 6189 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
Chris@0 6190 if test "${lt_prog_compiler_static_works+set}" = set; then
Chris@0 6191 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 6192 else
Chris@0 6193 lt_prog_compiler_static_works=no
Chris@0 6194 save_LDFLAGS="$LDFLAGS"
Chris@0 6195 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
Chris@0 6196 printf "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@0 6197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@0 6198 # The compiler can only warn and ignore the option if not recognized
Chris@0 6199 # So say no if there are warnings
Chris@0 6200 if test -s conftest.err; then
Chris@0 6201 # Append any errors to the config.log.
Chris@0 6202 cat conftest.err 1>&5
Chris@0 6203 else
Chris@0 6204 lt_prog_compiler_static_works=yes
Chris@0 6205 fi
Chris@0 6206 fi
Chris@0 6207 $rm conftest*
Chris@0 6208 LDFLAGS="$save_LDFLAGS"
Chris@0 6209
Chris@0 6210 fi
Chris@0 6211 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
Chris@0 6212 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
Chris@0 6213
Chris@0 6214 if test x"$lt_prog_compiler_static_works" = xyes; then
Chris@0 6215 :
Chris@0 6216 else
Chris@0 6217 lt_prog_compiler_static=
Chris@0 6218 fi
Chris@0 6219
Chris@0 6220
Chris@0 6221
Chris@0 6222
Chris@0 6223 lt_prog_compiler_no_builtin_flag=
Chris@0 6224
Chris@0 6225 if test "$GCC" = yes; then
Chris@0 6226 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
Chris@0 6227
Chris@0 6228
Chris@0 6229 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@0 6230 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
Chris@0 6231 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Chris@0 6232 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 6233 else
Chris@0 6234 lt_cv_prog_compiler_rtti_exceptions=no
Chris@0 6235 ac_outfile=conftest.$ac_objext
Chris@0 6236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 6237 lt_compiler_flag="-fno-rtti -fno-exceptions"
Chris@0 6238 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 6239 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 6240 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 6241 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 6242 # The option is referenced via a variable to avoid confusing sed.
Chris@0 6243 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 6244 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 6245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 6246 -e 's:$: $lt_compiler_flag:'`
Chris@0 6247 (eval echo "\"\$as_me:6247: $lt_compile\"" >&5)
Chris@0 6248 (eval "$lt_compile" 2>conftest.err)
Chris@0 6249 ac_status=$?
Chris@0 6250 cat conftest.err >&5
Chris@0 6251 echo "$as_me:6251: \$? = $ac_status" >&5
Chris@0 6252 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@0 6253 # The compiler can only warn and ignore the option if not recognized
Chris@0 6254 # So say no if there are warnings
Chris@0 6255 if test ! -s conftest.err; then
Chris@0 6256 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@0 6257 fi
Chris@0 6258 fi
Chris@0 6259 $rm conftest*
Chris@0 6260
Chris@0 6261 fi
Chris@0 6262 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@0 6263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
Chris@0 6264
Chris@0 6265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
Chris@0 6266 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@0 6267 else
Chris@0 6268 :
Chris@0 6269 fi
Chris@0 6270
Chris@0 6271 fi
Chris@0 6272
Chris@0 6273 lt_prog_compiler_wl=
Chris@0 6274 lt_prog_compiler_pic=
Chris@0 6275 lt_prog_compiler_static=
Chris@0 6276
Chris@0 6277 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
Chris@0 6278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
Chris@0 6279
Chris@0 6280 if test "$GCC" = yes; then
Chris@0 6281 lt_prog_compiler_wl='-Wl,'
Chris@0 6282 lt_prog_compiler_static='-static'
Chris@0 6283
Chris@0 6284 case $host_os in
Chris@0 6285 aix*)
Chris@0 6286 # All AIX code is PIC.
Chris@0 6287 if test "$host_cpu" = ia64; then
Chris@0 6288 # AIX 5 now supports IA64 processor
Chris@0 6289 lt_prog_compiler_static='-Bstatic'
Chris@0 6290 fi
Chris@0 6291 ;;
Chris@0 6292
Chris@0 6293 amigaos*)
Chris@0 6294 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@0 6295 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@0 6296 # like `-m68040'.
Chris@0 6297 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@0 6298 ;;
Chris@0 6299
Chris@0 6300 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@0 6301 # PIC is the default for these OSes.
Chris@0 6302 ;;
Chris@0 6303
Chris@0 6304 mingw* | pw32* | os2*)
Chris@0 6305 # This hack is so that the source file can tell whether it is being
Chris@0 6306 # built for inclusion in a dll (and should export symbols for example).
Chris@0 6307 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@0 6308 ;;
Chris@0 6309
Chris@0 6310 darwin* | rhapsody*)
Chris@0 6311 # PIC is the default on this platform
Chris@0 6312 # Common symbols not allowed in MH_DYLIB files
Chris@0 6313 lt_prog_compiler_pic='-fno-common'
Chris@0 6314 ;;
Chris@0 6315
Chris@0 6316 msdosdjgpp*)
Chris@0 6317 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@0 6318 # on systems that don't support them.
Chris@0 6319 lt_prog_compiler_can_build_shared=no
Chris@0 6320 enable_shared=no
Chris@0 6321 ;;
Chris@0 6322
Chris@0 6323 sysv4*MP*)
Chris@0 6324 if test -d /usr/nec; then
Chris@0 6325 lt_prog_compiler_pic=-Kconform_pic
Chris@0 6326 fi
Chris@0 6327 ;;
Chris@0 6328
Chris@0 6329 hpux*)
Chris@0 6330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@0 6331 # not for PA HP-UX.
Chris@0 6332 case "$host_cpu" in
Chris@0 6333 hppa*64*|ia64*)
Chris@0 6334 # +Z the default
Chris@0 6335 ;;
Chris@0 6336 *)
Chris@0 6337 lt_prog_compiler_pic='-fPIC'
Chris@0 6338 ;;
Chris@0 6339 esac
Chris@0 6340 ;;
Chris@0 6341
Chris@0 6342 *)
Chris@0 6343 lt_prog_compiler_pic='-fPIC'
Chris@0 6344 ;;
Chris@0 6345 esac
Chris@0 6346 else
Chris@0 6347 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@0 6348 case $host_os in
Chris@0 6349 aix*)
Chris@0 6350 lt_prog_compiler_wl='-Wl,'
Chris@0 6351 if test "$host_cpu" = ia64; then
Chris@0 6352 # AIX 5 now supports IA64 processor
Chris@0 6353 lt_prog_compiler_static='-Bstatic'
Chris@0 6354 else
Chris@0 6355 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@0 6356 fi
Chris@0 6357 ;;
Chris@0 6358
Chris@0 6359 mingw* | pw32* | os2*)
Chris@0 6360 # This hack is so that the source file can tell whether it is being
Chris@0 6361 # built for inclusion in a dll (and should export symbols for example).
Chris@0 6362 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@0 6363 ;;
Chris@0 6364
Chris@0 6365 hpux9* | hpux10* | hpux11*)
Chris@0 6366 lt_prog_compiler_wl='-Wl,'
Chris@0 6367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@0 6368 # not for PA HP-UX.
Chris@0 6369 case "$host_cpu" in
Chris@0 6370 hppa*64*|ia64*)
Chris@0 6371 # +Z the default
Chris@0 6372 ;;
Chris@0 6373 *)
Chris@0 6374 lt_prog_compiler_pic='+Z'
Chris@0 6375 ;;
Chris@0 6376 esac
Chris@0 6377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@0 6378 lt_prog_compiler_static='${wl}-a ${wl}archive'
Chris@0 6379 ;;
Chris@0 6380
Chris@0 6381 irix5* | irix6* | nonstopux*)
Chris@0 6382 lt_prog_compiler_wl='-Wl,'
Chris@0 6383 # PIC (with -KPIC) is the default.
Chris@0 6384 lt_prog_compiler_static='-non_shared'
Chris@0 6385 ;;
Chris@0 6386
Chris@0 6387 newsos6)
Chris@0 6388 lt_prog_compiler_pic='-KPIC'
Chris@0 6389 lt_prog_compiler_static='-Bstatic'
Chris@0 6390 ;;
Chris@0 6391
Chris@0 6392 linux*)
Chris@0 6393 case $CC in
Chris@0 6394 icc* | ecc*)
Chris@0 6395 lt_prog_compiler_wl='-Wl,'
Chris@0 6396 lt_prog_compiler_pic='-KPIC'
Chris@0 6397 lt_prog_compiler_static='-static'
Chris@0 6398 ;;
Chris@0 6399 ccc*)
Chris@0 6400 lt_prog_compiler_wl='-Wl,'
Chris@0 6401 # All Alpha code is PIC.
Chris@0 6402 lt_prog_compiler_static='-non_shared'
Chris@0 6403 ;;
Chris@0 6404 esac
Chris@0 6405 ;;
Chris@0 6406
Chris@0 6407 osf3* | osf4* | osf5*)
Chris@0 6408 lt_prog_compiler_wl='-Wl,'
Chris@0 6409 # All OSF/1 code is PIC.
Chris@0 6410 lt_prog_compiler_static='-non_shared'
Chris@0 6411 ;;
Chris@0 6412
Chris@0 6413 sco3.2v5*)
Chris@0 6414 lt_prog_compiler_pic='-Kpic'
Chris@0 6415 lt_prog_compiler_static='-dn'
Chris@0 6416 ;;
Chris@0 6417
Chris@0 6418 solaris*)
Chris@0 6419 lt_prog_compiler_wl='-Wl,'
Chris@0 6420 lt_prog_compiler_pic='-KPIC'
Chris@0 6421 lt_prog_compiler_static='-Bstatic'
Chris@0 6422 ;;
Chris@0 6423
Chris@0 6424 sunos4*)
Chris@0 6425 lt_prog_compiler_wl='-Qoption ld '
Chris@0 6426 lt_prog_compiler_pic='-PIC'
Chris@0 6427 lt_prog_compiler_static='-Bstatic'
Chris@0 6428 ;;
Chris@0 6429
Chris@0 6430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@0 6431 lt_prog_compiler_wl='-Wl,'
Chris@0 6432 lt_prog_compiler_pic='-KPIC'
Chris@0 6433 lt_prog_compiler_static='-Bstatic'
Chris@0 6434 ;;
Chris@0 6435
Chris@0 6436 sysv4*MP*)
Chris@0 6437 if test -d /usr/nec ;then
Chris@0 6438 lt_prog_compiler_pic='-Kconform_pic'
Chris@0 6439 lt_prog_compiler_static='-Bstatic'
Chris@0 6440 fi
Chris@0 6441 ;;
Chris@0 6442
Chris@0 6443 uts4*)
Chris@0 6444 lt_prog_compiler_pic='-pic'
Chris@0 6445 lt_prog_compiler_static='-Bstatic'
Chris@0 6446 ;;
Chris@0 6447
Chris@0 6448 *)
Chris@0 6449 lt_prog_compiler_can_build_shared=no
Chris@0 6450 ;;
Chris@0 6451 esac
Chris@0 6452 fi
Chris@0 6453
Chris@0 6454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
Chris@0 6455 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
Chris@0 6456
Chris@0 6457 #
Chris@0 6458 # Check to make sure the PIC flag actually works.
Chris@0 6459 #
Chris@0 6460 if test -n "$lt_prog_compiler_pic"; then
Chris@0 6461
Chris@0 6462 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@0 6463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
Chris@0 6464 if test "${lt_prog_compiler_pic_works+set}" = set; then
Chris@0 6465 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 6466 else
Chris@0 6467 lt_prog_compiler_pic_works=no
Chris@0 6468 ac_outfile=conftest.$ac_objext
Chris@0 6469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 6470 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
Chris@0 6471 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 6472 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 6473 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 6474 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 6475 # The option is referenced via a variable to avoid confusing sed.
Chris@0 6476 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 6477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 6478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 6479 -e 's:$: $lt_compiler_flag:'`
Chris@0 6480 (eval echo "\"\$as_me:6480: $lt_compile\"" >&5)
Chris@0 6481 (eval "$lt_compile" 2>conftest.err)
Chris@0 6482 ac_status=$?
Chris@0 6483 cat conftest.err >&5
Chris@0 6484 echo "$as_me:6484: \$? = $ac_status" >&5
Chris@0 6485 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@0 6486 # The compiler can only warn and ignore the option if not recognized
Chris@0 6487 # So say no if there are warnings
Chris@0 6488 if test ! -s conftest.err; then
Chris@0 6489 lt_prog_compiler_pic_works=yes
Chris@0 6490 fi
Chris@0 6491 fi
Chris@0 6492 $rm conftest*
Chris@0 6493
Chris@0 6494 fi
Chris@0 6495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
Chris@0 6496 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
Chris@0 6497
Chris@0 6498 if test x"$lt_prog_compiler_pic_works" = xyes; then
Chris@0 6499 case $lt_prog_compiler_pic in
Chris@0 6500 "" | " "*) ;;
Chris@0 6501 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@0 6502 esac
Chris@0 6503 else
Chris@0 6504 lt_prog_compiler_pic=
Chris@0 6505 lt_prog_compiler_can_build_shared=no
Chris@0 6506 fi
Chris@0 6507
Chris@0 6508 fi
Chris@0 6509 case "$host_os" in
Chris@0 6510 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@0 6511 *djgpp*)
Chris@0 6512 lt_prog_compiler_pic=
Chris@0 6513 ;;
Chris@0 6514 *)
Chris@0 6515 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@0 6516 ;;
Chris@0 6517 esac
Chris@0 6518
Chris@0 6519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@0 6520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
Chris@0 6521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Chris@0 6522 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 6523 else
Chris@0 6524 lt_cv_prog_compiler_c_o=no
Chris@0 6525 $rm -r conftest 2>/dev/null
Chris@0 6526 mkdir conftest
Chris@0 6527 cd conftest
Chris@0 6528 mkdir out
Chris@0 6529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 6530
Chris@0 6531 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@0 6532 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 6533 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 6534 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 6535 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 6536 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 6537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 6538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 6539 -e 's:$: $lt_compiler_flag:'`
Chris@0 6540 (eval echo "\"\$as_me:6540: $lt_compile\"" >&5)
Chris@0 6541 (eval "$lt_compile" 2>out/conftest.err)
Chris@0 6542 ac_status=$?
Chris@0 6543 cat out/conftest.err >&5
Chris@0 6544 echo "$as_me:6544: \$? = $ac_status" >&5
Chris@0 6545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@0 6546 then
Chris@0 6547 # The compiler can only warn and ignore the option if not recognized
Chris@0 6548 # So say no if there are warnings
Chris@0 6549 if test ! -s out/conftest.err; then
Chris@0 6550 lt_cv_prog_compiler_c_o=yes
Chris@0 6551 fi
Chris@0 6552 fi
Chris@0 6553 chmod u+w .
Chris@0 6554 $rm conftest*
Chris@0 6555 # SGI C++ compiler will create directory out/ii_files/ for
Chris@0 6556 # template instantiation
Chris@0 6557 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
Chris@0 6558 $rm out/* && rmdir out
Chris@0 6559 cd ..
Chris@0 6560 rmdir conftest
Chris@0 6561 $rm conftest*
Chris@0 6562
Chris@0 6563 fi
Chris@0 6564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
Chris@0 6565 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
Chris@0 6566
Chris@0 6567
Chris@0 6568 hard_links="nottested"
Chris@0 6569 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Chris@0 6570 # do not overwrite the value of need_locks provided by the user
Chris@0 6571 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Chris@0 6572 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
Chris@0 6573 hard_links=yes
Chris@0 6574 $rm conftest*
Chris@0 6575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@0 6576 touch conftest.a
Chris@0 6577 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@0 6578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@0 6579 echo "$as_me:$LINENO: result: $hard_links" >&5
Chris@0 6580 echo "${ECHO_T}$hard_links" >&6
Chris@0 6581 if test "$hard_links" = no; then
Chris@0 6582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@0 6583 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@0 6584 need_locks=warn
Chris@0 6585 fi
Chris@0 6586 else
Chris@0 6587 need_locks=no
Chris@0 6588 fi
Chris@0 6589
Chris@0 6590 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@0 6591 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
Chris@0 6592
Chris@0 6593 runpath_var=
Chris@0 6594 allow_undefined_flag=
Chris@0 6595 enable_shared_with_static_runtimes=no
Chris@0 6596 archive_cmds=
Chris@0 6597 archive_expsym_cmds=
Chris@0 6598 old_archive_From_new_cmds=
Chris@0 6599 old_archive_from_expsyms_cmds=
Chris@0 6600 export_dynamic_flag_spec=
Chris@0 6601 whole_archive_flag_spec=
Chris@0 6602 thread_safe_flag_spec=
Chris@0 6603 hardcode_libdir_flag_spec=
Chris@0 6604 hardcode_libdir_flag_spec_ld=
Chris@0 6605 hardcode_libdir_separator=
Chris@0 6606 hardcode_direct=no
Chris@0 6607 hardcode_minus_L=no
Chris@0 6608 hardcode_shlibpath_var=unsupported
Chris@0 6609 link_all_deplibs=unknown
Chris@0 6610 hardcode_automatic=no
Chris@0 6611 module_cmds=
Chris@0 6612 module_expsym_cmds=
Chris@0 6613 always_export_symbols=no
Chris@0 6614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 6615 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@0 6616 # included in the symbol list
Chris@0 6617 include_expsyms=
Chris@0 6618 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@0 6619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@0 6620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@0 6621 # as well as any symbol that contains `d'.
Chris@0 6622 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
Chris@0 6623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@0 6624 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@0 6625 # the symbol is explicitly referenced. Since portable code cannot
Chris@0 6626 # rely on this symbol name, it's probably fine to never include it in
Chris@0 6627 # preloaded symbol tables.
Chris@0 6628 extract_expsyms_cmds=
Chris@0 6629
Chris@0 6630 case $host_os in
Chris@0 6631 cygwin* | mingw* | pw32*)
Chris@0 6632 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@0 6633 # When not using gcc, we currently assume that we are using
Chris@0 6634 # Microsoft Visual C++.
Chris@0 6635 if test "$GCC" != yes; then
Chris@0 6636 with_gnu_ld=no
Chris@0 6637 fi
Chris@0 6638 ;;
Chris@0 6639 openbsd*)
Chris@0 6640 with_gnu_ld=no
Chris@0 6641 ;;
Chris@0 6642 esac
Chris@0 6643
Chris@0 6644 ld_shlibs=yes
Chris@0 6645 if test "$with_gnu_ld" = yes; then
Chris@0 6646 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@0 6647 wlarc='${wl}'
Chris@0 6648
Chris@0 6649 # See if GNU ld supports shared libraries.
Chris@0 6650 case $host_os in
Chris@0 6651 aix3* | aix4* | aix5*)
Chris@0 6652 # On AIX/PPC, the GNU linker is very broken
Chris@0 6653 if test "$host_cpu" != ia64; then
Chris@0 6654 ld_shlibs=no
Chris@0 6655 cat <<EOF 1>&2
Chris@0 6656
Chris@0 6657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
Chris@0 6658 *** to be unable to reliably create shared libraries on AIX.
Chris@0 6659 *** Therefore, libtool is disabling shared libraries support. If you
Chris@0 6660 *** really care for shared libraries, you may want to modify your PATH
Chris@0 6661 *** so that a non-GNU linker is found, and then restart.
Chris@0 6662
Chris@0 6663 EOF
Chris@0 6664 fi
Chris@0 6665 ;;
Chris@0 6666
Chris@0 6667 amigaos*)
Chris@0 6668 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)'
Chris@0 6669 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 6670 hardcode_minus_L=yes
Chris@0 6671
Chris@0 6672 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
Chris@0 6673 # that the semantics of dynamic libraries on AmigaOS, at least up
Chris@0 6674 # to version 4, is to share data among multiple programs linked
Chris@0 6675 # with the same dynamic library. Since this doesn't match the
Chris@0 6676 # behavior of shared libraries on other platforms, we can't use
Chris@0 6677 # them.
Chris@0 6678 ld_shlibs=no
Chris@0 6679 ;;
Chris@0 6680
Chris@0 6681 beos*)
Chris@0 6682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 6683 allow_undefined_flag=unsupported
Chris@0 6684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@0 6685 # support --undefined. This deserves some investigation. FIXME
Chris@0 6686 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 6687 else
Chris@0 6688 ld_shlibs=no
Chris@0 6689 fi
Chris@0 6690 ;;
Chris@0 6691
Chris@0 6692 cygwin* | mingw* | pw32*)
Chris@0 6693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@0 6694 # as there is no search path for DLLs.
Chris@0 6695 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 6696 allow_undefined_flag=unsupported
Chris@0 6697 always_export_symbols=no
Chris@0 6698 enable_shared_with_static_runtimes=yes
Chris@0 6699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 6700
Chris@0 6701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Chris@0 6702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Chris@0 6703 # If the export-symbols file already is a .def file (1st line
Chris@0 6704 # is EXPORTS), use it as is; otherwise, prepend...
Chris@0 6705 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@0 6706 cp $export_symbols $output_objdir/$soname.def;
Chris@0 6707 else
Chris@0 6708 echo EXPORTS > $output_objdir/$soname.def;
Chris@0 6709 cat $export_symbols >> $output_objdir/$soname.def;
Chris@0 6710 fi~
Chris@0 6711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Chris@0 6712 else
Chris@0 6713 ld_shlibs=no
Chris@0 6714 fi
Chris@0 6715 ;;
Chris@0 6716
Chris@0 6717 netbsd* | knetbsd*-gnu)
Chris@0 6718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 6719 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@0 6720 wlarc=
Chris@0 6721 else
Chris@0 6722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 6723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 6724 fi
Chris@0 6725 ;;
Chris@0 6726
Chris@0 6727 solaris* | sysv5*)
Chris@0 6728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
Chris@0 6729 ld_shlibs=no
Chris@0 6730 cat <<EOF 1>&2
Chris@0 6731
Chris@0 6732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@0 6733 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@0 6734 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@0 6735 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@0 6736 *** your PATH or compiler configuration so that the native linker is
Chris@0 6737 *** used, and then restart.
Chris@0 6738
Chris@0 6739 EOF
Chris@0 6740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 6741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 6742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 6743 else
Chris@0 6744 ld_shlibs=no
Chris@0 6745 fi
Chris@0 6746 ;;
Chris@0 6747
Chris@0 6748 sunos4*)
Chris@0 6749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 6750 wlarc=
Chris@0 6751 hardcode_direct=yes
Chris@0 6752 hardcode_shlibpath_var=no
Chris@0 6753 ;;
Chris@0 6754
Chris@0 6755 linux*)
Chris@0 6756 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
Chris@0 6757 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 6758 archive_cmds="$tmp_archive_cmds"
Chris@0 6759 supports_anon_versioning=no
Chris@0 6760 case `$LD -v 2>/dev/null` in
Chris@0 6761 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@0 6762 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@0 6763 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@0 6764 *\ 2.11.*) ;; # other 2.11 versions
Chris@0 6765 *) supports_anon_versioning=yes ;;
Chris@0 6766 esac
Chris@0 6767 if test $supports_anon_versioning = yes; then
Chris@0 6768 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
Chris@0 6769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@0 6770 $echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@0 6771 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@0 6772 else
Chris@0 6773 archive_expsym_cmds="$tmp_archive_cmds"
Chris@0 6774 fi
Chris@0 6775 else
Chris@0 6776 ld_shlibs=no
Chris@0 6777 fi
Chris@0 6778 ;;
Chris@0 6779
Chris@0 6780 *)
Chris@0 6781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 6782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 6783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 6784 else
Chris@0 6785 ld_shlibs=no
Chris@0 6786 fi
Chris@0 6787 ;;
Chris@0 6788 esac
Chris@0 6789
Chris@0 6790 if test "$ld_shlibs" = yes; then
Chris@0 6791 runpath_var=LD_RUN_PATH
Chris@0 6792 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
Chris@0 6793 export_dynamic_flag_spec='${wl}--export-dynamic'
Chris@0 6794 # ancient GNU ld didn't support --whole-archive et. al.
Chris@0 6795 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
Chris@0 6796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@0 6797 else
Chris@0 6798 whole_archive_flag_spec=
Chris@0 6799 fi
Chris@0 6800 fi
Chris@0 6801 else
Chris@0 6802 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@0 6803 case $host_os in
Chris@0 6804 aix3*)
Chris@0 6805 allow_undefined_flag=unsupported
Chris@0 6806 always_export_symbols=yes
Chris@0 6807 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'
Chris@0 6808 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@0 6809 # are no directories specified by -L.
Chris@0 6810 hardcode_minus_L=yes
Chris@0 6811 if test "$GCC" = yes && test -z "$link_static_flag"; then
Chris@0 6812 # Neither direct hardcoding nor static linking is supported with a
Chris@0 6813 # broken collect2.
Chris@0 6814 hardcode_direct=unsupported
Chris@0 6815 fi
Chris@0 6816 ;;
Chris@0 6817
Chris@0 6818 aix4* | aix5*)
Chris@0 6819 if test "$host_cpu" = ia64; then
Chris@0 6820 # On IA64, the linker does run time linking by default, so we don't
Chris@0 6821 # have to do anything special.
Chris@0 6822 aix_use_runtimelinking=no
Chris@0 6823 exp_sym_flag='-Bexport'
Chris@0 6824 no_entry_flag=""
Chris@0 6825 else
Chris@0 6826 # If we're using GNU nm, then we don't want the "-C" option.
Chris@0 6827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@0 6828 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
Chris@0 6829 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'
Chris@0 6830 else
Chris@0 6831 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'
Chris@0 6832 fi
Chris@0 6833 aix_use_runtimelinking=no
Chris@0 6834
Chris@0 6835 # Test if we are trying to use run time linking or normal
Chris@0 6836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@0 6837 # need to do runtime linking.
Chris@0 6838 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
Chris@0 6839 for ld_flag in $LDFLAGS; do
Chris@0 6840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@0 6841 aix_use_runtimelinking=yes
Chris@0 6842 break
Chris@0 6843 fi
Chris@0 6844 done
Chris@0 6845 esac
Chris@0 6846
Chris@0 6847 exp_sym_flag='-bexport'
Chris@0 6848 no_entry_flag='-bnoentry'
Chris@0 6849 fi
Chris@0 6850
Chris@0 6851 # When large executables or shared objects are built, AIX ld can
Chris@0 6852 # have problems creating the table of contents. If linking a library
Chris@0 6853 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@0 6854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@0 6855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@0 6856
Chris@0 6857 archive_cmds=''
Chris@0 6858 hardcode_direct=yes
Chris@0 6859 hardcode_libdir_separator=':'
Chris@0 6860 link_all_deplibs=yes
Chris@0 6861
Chris@0 6862 if test "$GCC" = yes; then
Chris@0 6863 case $host_os in aix4.012|aix4.012.*)
Chris@0 6864 # We only want to do this on AIX 4.2 and lower, the check
Chris@0 6865 # below for broken collect2 doesn't work under 4.3+
Chris@0 6866 collect2name=`${CC} -print-prog-name=collect2`
Chris@0 6867 if test -f "$collect2name" && \
Chris@0 6868 strings "$collect2name" | grep resolve_lib_name >/dev/null
Chris@0 6869 then
Chris@0 6870 # We have reworked collect2
Chris@0 6871 hardcode_direct=yes
Chris@0 6872 else
Chris@0 6873 # We have old collect2
Chris@0 6874 hardcode_direct=unsupported
Chris@0 6875 # It fails to find uninstalled libraries when the uninstalled
Chris@0 6876 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@0 6877 # to unsupported forces relinking
Chris@0 6878 hardcode_minus_L=yes
Chris@0 6879 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 6880 hardcode_libdir_separator=
Chris@0 6881 fi
Chris@0 6882 esac
Chris@0 6883 shared_flag='-shared'
Chris@0 6884 else
Chris@0 6885 # not using gcc
Chris@0 6886 if test "$host_cpu" = ia64; then
Chris@0 6887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@0 6888 # chokes on -Wl,-G. The following line is correct:
Chris@0 6889 shared_flag='-G'
Chris@0 6890 else
Chris@0 6891 if test "$aix_use_runtimelinking" = yes; then
Chris@0 6892 shared_flag='${wl}-G'
Chris@0 6893 else
Chris@0 6894 shared_flag='${wl}-bM:SRE'
Chris@0 6895 fi
Chris@0 6896 fi
Chris@0 6897 fi
Chris@0 6898
Chris@0 6899 # It seems that -bexpall does not export symbols beginning with
Chris@0 6900 # underscore (_), so it is better to generate a list of symbols to export.
Chris@0 6901 always_export_symbols=yes
Chris@0 6902 if test "$aix_use_runtimelinking" = yes; then
Chris@0 6903 # Warning - without using the other runtime loading flags (-brtl),
Chris@0 6904 # -berok will link without error, but may produce a broken library.
Chris@0 6905 allow_undefined_flag='-berok'
Chris@0 6906 # Determine the default libpath from the value encoded in an empty executable.
Chris@0 6907 cat >conftest.$ac_ext <<_ACEOF
Chris@0 6908 /* confdefs.h. */
Chris@0 6909 _ACEOF
Chris@0 6910 cat confdefs.h >>conftest.$ac_ext
Chris@0 6911 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 6912 /* end confdefs.h. */
Chris@0 6913
Chris@0 6914 int
Chris@0 6915 main ()
Chris@0 6916 {
Chris@0 6917
Chris@0 6918 ;
Chris@0 6919 return 0;
Chris@0 6920 }
Chris@0 6921 _ACEOF
Chris@0 6922 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 6923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 6924 (eval $ac_link) 2>conftest.er1
Chris@0 6925 ac_status=$?
Chris@0 6926 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 6927 rm -f conftest.er1
Chris@0 6928 cat conftest.err >&5
Chris@0 6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 6930 (exit $ac_status); } &&
Chris@0 6931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 6933 (eval $ac_try) 2>&5
Chris@0 6934 ac_status=$?
Chris@0 6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 6936 (exit $ac_status); }; } &&
Chris@0 6937 { ac_try='test -s conftest$ac_exeext'
Chris@0 6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 6939 (eval $ac_try) 2>&5
Chris@0 6940 ac_status=$?
Chris@0 6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 6942 (exit $ac_status); }; }; then
Chris@0 6943
Chris@0 6944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
Chris@0 6945 }'`
Chris@0 6946 # Check for a 64-bit object if we didn't find anything.
Chris@0 6947 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; }
Chris@0 6948 }'`; fi
Chris@0 6949 else
Chris@0 6950 echo "$as_me: failed program was:" >&5
Chris@0 6951 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 6952
Chris@0 6953 fi
Chris@0 6954 rm -f conftest.err conftest.$ac_objext \
Chris@0 6955 conftest$ac_exeext conftest.$ac_ext
Chris@0 6956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Chris@0 6957
Chris@0 6958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@0 6959 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"
Chris@0 6960 else
Chris@0 6961 if test "$host_cpu" = ia64; then
Chris@0 6962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
Chris@0 6963 allow_undefined_flag="-z nodefs"
Chris@0 6964 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"
Chris@0 6965 else
Chris@0 6966 # Determine the default libpath from the value encoded in an empty executable.
Chris@0 6967 cat >conftest.$ac_ext <<_ACEOF
Chris@0 6968 /* confdefs.h. */
Chris@0 6969 _ACEOF
Chris@0 6970 cat confdefs.h >>conftest.$ac_ext
Chris@0 6971 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 6972 /* end confdefs.h. */
Chris@0 6973
Chris@0 6974 int
Chris@0 6975 main ()
Chris@0 6976 {
Chris@0 6977
Chris@0 6978 ;
Chris@0 6979 return 0;
Chris@0 6980 }
Chris@0 6981 _ACEOF
Chris@0 6982 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 6984 (eval $ac_link) 2>conftest.er1
Chris@0 6985 ac_status=$?
Chris@0 6986 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 6987 rm -f conftest.er1
Chris@0 6988 cat conftest.err >&5
Chris@0 6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 6990 (exit $ac_status); } &&
Chris@0 6991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 6993 (eval $ac_try) 2>&5
Chris@0 6994 ac_status=$?
Chris@0 6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 6996 (exit $ac_status); }; } &&
Chris@0 6997 { ac_try='test -s conftest$ac_exeext'
Chris@0 6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 6999 (eval $ac_try) 2>&5
Chris@0 7000 ac_status=$?
Chris@0 7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 7002 (exit $ac_status); }; }; then
Chris@0 7003
Chris@0 7004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
Chris@0 7005 }'`
Chris@0 7006 # Check for a 64-bit object if we didn't find anything.
Chris@0 7007 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; }
Chris@0 7008 }'`; fi
Chris@0 7009 else
Chris@0 7010 echo "$as_me: failed program was:" >&5
Chris@0 7011 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 7012
Chris@0 7013 fi
Chris@0 7014 rm -f conftest.err conftest.$ac_objext \
Chris@0 7015 conftest$ac_exeext conftest.$ac_ext
Chris@0 7016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Chris@0 7017
Chris@0 7018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@0 7019 # Warning - without using the other run time loading flags,
Chris@0 7020 # -berok will link without error, but may produce a broken library.
Chris@0 7021 no_undefined_flag=' ${wl}-bernotok'
Chris@0 7022 allow_undefined_flag=' ${wl}-berok'
Chris@0 7023 # -bexpall does not export symbols beginning with underscore (_)
Chris@0 7024 always_export_symbols=yes
Chris@0 7025 # Exported symbols can be pulled into shared objects from archives
Chris@0 7026 whole_archive_flag_spec=' '
Chris@0 7027 archive_cmds_need_lc=yes
Chris@0 7028 # This is similar to how AIX traditionally builds it's shared libraries.
Chris@0 7029 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'
Chris@0 7030 fi
Chris@0 7031 fi
Chris@0 7032 ;;
Chris@0 7033
Chris@0 7034 amigaos*)
Chris@0 7035 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)'
Chris@0 7036 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 7037 hardcode_minus_L=yes
Chris@0 7038 # see comment about different semantics on the GNU ld section
Chris@0 7039 ld_shlibs=no
Chris@0 7040 ;;
Chris@0 7041
Chris@0 7042 bsdi4*)
Chris@0 7043 export_dynamic_flag_spec=-rdynamic
Chris@0 7044 ;;
Chris@0 7045
Chris@0 7046 cygwin* | mingw* | pw32*)
Chris@0 7047 # When not using gcc, we currently assume that we are using
Chris@0 7048 # Microsoft Visual C++.
Chris@0 7049 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@0 7050 # no search path for DLLs.
Chris@0 7051 hardcode_libdir_flag_spec=' '
Chris@0 7052 allow_undefined_flag=unsupported
Chris@0 7053 # Tell ltmain to make .lib files, not .a files.
Chris@0 7054 libext=lib
Chris@0 7055 # Tell ltmain to make .dll files, not .so files.
Chris@0 7056 shrext=".dll"
Chris@0 7057 # FIXME: Setting linknames here is a bad hack.
Chris@0 7058 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@0 7059 # The linker will automatically build a .lib file if we build a DLL.
Chris@0 7060 old_archive_From_new_cmds='true'
Chris@0 7061 # FIXME: Should let the user specify the lib program.
Chris@0 7062 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
Chris@0 7063 fix_srcfile_path='`cygpath -w "$srcfile"`'
Chris@0 7064 enable_shared_with_static_runtimes=yes
Chris@0 7065 ;;
Chris@0 7066
Chris@0 7067 darwin* | rhapsody*)
Chris@0 7068 if test "$GXX" = yes ; then
Chris@0 7069 archive_cmds_need_lc=no
Chris@0 7070 case "$host_os" in
Chris@0 7071 rhapsody* | darwin1.[012])
Chris@0 7072 allow_undefined_flag='-undefined suppress'
Chris@0 7073 ;;
Chris@0 7074 *) # Darwin 1.3 on
Chris@0 7075 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
Chris@0 7076 allow_undefined_flag='-flat_namespace -undefined suppress'
Chris@0 7077 else
Chris@0 7078 case ${MACOSX_DEPLOYMENT_TARGET} in
Chris@0 7079 10.[012])
Chris@0 7080 allow_undefined_flag='-flat_namespace -undefined suppress'
Chris@0 7081 ;;
Chris@0 7082 10.*)
Chris@0 7083 allow_undefined_flag='-undefined dynamic_lookup'
Chris@0 7084 ;;
Chris@0 7085 esac
Chris@0 7086 fi
Chris@0 7087 ;;
Chris@0 7088 esac
Chris@0 7089 lt_int_apple_cc_single_mod=no
Chris@0 7090 output_verbose_link_cmd='echo'
Chris@0 7091 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
Chris@0 7092 lt_int_apple_cc_single_mod=yes
Chris@0 7093 fi
Chris@0 7094 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Chris@0 7095 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Chris@0 7096 else
Chris@0 7097 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'
Chris@0 7098 fi
Chris@0 7099 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Chris@0 7100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Chris@0 7101 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Chris@0 7102 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}'
Chris@0 7103 else
Chris@0 7104 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}'
Chris@0 7105 fi
Chris@0 7106 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}'
Chris@0 7107 hardcode_direct=no
Chris@0 7108 hardcode_automatic=yes
Chris@0 7109 hardcode_shlibpath_var=unsupported
Chris@0 7110 whole_archive_flag_spec='-all_load $convenience'
Chris@0 7111 link_all_deplibs=yes
Chris@0 7112 else
Chris@0 7113 ld_shlibs=no
Chris@0 7114 fi
Chris@0 7115 ;;
Chris@0 7116
Chris@0 7117 dgux*)
Chris@0 7118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7119 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 7120 hardcode_shlibpath_var=no
Chris@0 7121 ;;
Chris@0 7122
Chris@0 7123 freebsd1*)
Chris@0 7124 ld_shlibs=no
Chris@0 7125 ;;
Chris@0 7126
Chris@0 7127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@0 7128 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@0 7129 # does not break anything, and helps significantly (at the cost of a little
Chris@0 7130 # extra space).
Chris@0 7131 freebsd2.2*)
Chris@0 7132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@0 7133 hardcode_libdir_flag_spec='-R$libdir'
Chris@0 7134 hardcode_direct=yes
Chris@0 7135 hardcode_shlibpath_var=no
Chris@0 7136 ;;
Chris@0 7137
Chris@0 7138 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@0 7139 freebsd2*)
Chris@0 7140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7141 hardcode_direct=yes
Chris@0 7142 hardcode_minus_L=yes
Chris@0 7143 hardcode_shlibpath_var=no
Chris@0 7144 ;;
Chris@0 7145
Chris@0 7146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@0 7147 freebsd* | kfreebsd*-gnu)
Chris@0 7148 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7149 hardcode_libdir_flag_spec='-R$libdir'
Chris@0 7150 hardcode_direct=yes
Chris@0 7151 hardcode_shlibpath_var=no
Chris@0 7152 ;;
Chris@0 7153
Chris@0 7154 hpux9*)
Chris@0 7155 if test "$GCC" = yes; then
Chris@0 7156 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'
Chris@0 7157 else
Chris@0 7158 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'
Chris@0 7159 fi
Chris@0 7160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@0 7161 hardcode_libdir_separator=:
Chris@0 7162 hardcode_direct=yes
Chris@0 7163
Chris@0 7164 # hardcode_minus_L: Not really in the search PATH,
Chris@0 7165 # but as the default location of the library.
Chris@0 7166 hardcode_minus_L=yes
Chris@0 7167 export_dynamic_flag_spec='${wl}-E'
Chris@0 7168 ;;
Chris@0 7169
Chris@0 7170 hpux10* | hpux11*)
Chris@0 7171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Chris@0 7172 case "$host_cpu" in
Chris@0 7173 hppa*64*|ia64*)
Chris@0 7174 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7175 ;;
Chris@0 7176 *)
Chris@0 7177 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7178 ;;
Chris@0 7179 esac
Chris@0 7180 else
Chris@0 7181 case "$host_cpu" in
Chris@0 7182 hppa*64*|ia64*)
Chris@0 7183 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7184 ;;
Chris@0 7185 *)
Chris@0 7186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7187 ;;
Chris@0 7188 esac
Chris@0 7189 fi
Chris@0 7190 if test "$with_gnu_ld" = no; then
Chris@0 7191 case "$host_cpu" in
Chris@0 7192 hppa*64*)
Chris@0 7193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@0 7194 hardcode_libdir_flag_spec_ld='+b $libdir'
Chris@0 7195 hardcode_libdir_separator=:
Chris@0 7196 hardcode_direct=no
Chris@0 7197 hardcode_shlibpath_var=no
Chris@0 7198 ;;
Chris@0 7199 ia64*)
Chris@0 7200 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 7201 hardcode_direct=no
Chris@0 7202 hardcode_shlibpath_var=no
Chris@0 7203
Chris@0 7204 # hardcode_minus_L: Not really in the search PATH,
Chris@0 7205 # but as the default location of the library.
Chris@0 7206 hardcode_minus_L=yes
Chris@0 7207 ;;
Chris@0 7208 *)
Chris@0 7209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@0 7210 hardcode_libdir_separator=:
Chris@0 7211 hardcode_direct=yes
Chris@0 7212 export_dynamic_flag_spec='${wl}-E'
Chris@0 7213
Chris@0 7214 # hardcode_minus_L: Not really in the search PATH,
Chris@0 7215 # but as the default location of the library.
Chris@0 7216 hardcode_minus_L=yes
Chris@0 7217 ;;
Chris@0 7218 esac
Chris@0 7219 fi
Chris@0 7220 ;;
Chris@0 7221
Chris@0 7222 irix5* | irix6* | nonstopux*)
Chris@0 7223 if test "$GCC" = yes; then
Chris@0 7224 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'
Chris@0 7225 else
Chris@0 7226 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'
Chris@0 7227 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Chris@0 7228 fi
Chris@0 7229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@0 7230 hardcode_libdir_separator=:
Chris@0 7231 link_all_deplibs=yes
Chris@0 7232 ;;
Chris@0 7233
Chris@0 7234 netbsd* | knetbsd*-gnu)
Chris@0 7235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 7236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@0 7237 else
Chris@0 7238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@0 7239 fi
Chris@0 7240 hardcode_libdir_flag_spec='-R$libdir'
Chris@0 7241 hardcode_direct=yes
Chris@0 7242 hardcode_shlibpath_var=no
Chris@0 7243 ;;
Chris@0 7244
Chris@0 7245 newsos6)
Chris@0 7246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7247 hardcode_direct=yes
Chris@0 7248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@0 7249 hardcode_libdir_separator=:
Chris@0 7250 hardcode_shlibpath_var=no
Chris@0 7251 ;;
Chris@0 7252
Chris@0 7253 openbsd*)
Chris@0 7254 hardcode_direct=yes
Chris@0 7255 hardcode_shlibpath_var=no
Chris@0 7256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@0 7257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@0 7259 export_dynamic_flag_spec='${wl}-E'
Chris@0 7260 else
Chris@0 7261 case $host_os in
Chris@0 7262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@0 7263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7264 hardcode_libdir_flag_spec='-R$libdir'
Chris@0 7265 ;;
Chris@0 7266 *)
Chris@0 7267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@0 7269 ;;
Chris@0 7270 esac
Chris@0 7271 fi
Chris@0 7272 ;;
Chris@0 7273
Chris@0 7274 os2*)
Chris@0 7275 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 7276 hardcode_minus_L=yes
Chris@0 7277 allow_undefined_flag=unsupported
Chris@0 7278 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'
Chris@0 7279 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@0 7280 ;;
Chris@0 7281
Chris@0 7282 osf3*)
Chris@0 7283 if test "$GCC" = yes; then
Chris@0 7284 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 7285 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'
Chris@0 7286 else
Chris@0 7287 allow_undefined_flag=' -expect_unresolved \*'
Chris@0 7288 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'
Chris@0 7289 fi
Chris@0 7290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@0 7291 hardcode_libdir_separator=:
Chris@0 7292 ;;
Chris@0 7293
Chris@0 7294 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@0 7295 if test "$GCC" = yes; then
Chris@0 7296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 7297 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'
Chris@0 7298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@0 7299 else
Chris@0 7300 allow_undefined_flag=' -expect_unresolved \*'
Chris@0 7301 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'
Chris@0 7302 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Chris@0 7303 $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'
Chris@0 7304
Chris@0 7305 # Both c and cxx compiler support -rpath directly
Chris@0 7306 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@0 7307 fi
Chris@0 7308 hardcode_libdir_separator=:
Chris@0 7309 ;;
Chris@0 7310
Chris@0 7311 sco3.2v5*)
Chris@0 7312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7313 hardcode_shlibpath_var=no
Chris@0 7314 export_dynamic_flag_spec='${wl}-Bexport'
Chris@0 7315 runpath_var=LD_RUN_PATH
Chris@0 7316 hardcode_runpath_var=yes
Chris@0 7317 ;;
Chris@0 7318
Chris@0 7319 solaris*)
Chris@0 7320 no_undefined_flag=' -z text'
Chris@0 7321 if test "$GCC" = yes; then
Chris@0 7322 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7323 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 7324 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
Chris@0 7325 else
Chris@0 7326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7327 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 7328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Chris@0 7329 fi
Chris@0 7330 hardcode_libdir_flag_spec='-R$libdir'
Chris@0 7331 hardcode_shlibpath_var=no
Chris@0 7332 case $host_os in
Chris@0 7333 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@0 7334 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@0 7335 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
Chris@0 7336 esac
Chris@0 7337 link_all_deplibs=yes
Chris@0 7338 ;;
Chris@0 7339
Chris@0 7340 sunos4*)
Chris@0 7341 if test "x$host_vendor" = xsequent; then
Chris@0 7342 # Use $CC to link under sequent, because it throws in some extra .o
Chris@0 7343 # files that make .init and .fini sections work.
Chris@0 7344 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7345 else
Chris@0 7346 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7347 fi
Chris@0 7348 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 7349 hardcode_direct=yes
Chris@0 7350 hardcode_minus_L=yes
Chris@0 7351 hardcode_shlibpath_var=no
Chris@0 7352 ;;
Chris@0 7353
Chris@0 7354 sysv4)
Chris@0 7355 case $host_vendor in
Chris@0 7356 sni)
Chris@0 7357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7358 hardcode_direct=yes # is this really true???
Chris@0 7359 ;;
Chris@0 7360 siemens)
Chris@0 7361 ## LD is ld it makes a PLAMLIB
Chris@0 7362 ## CC just makes a GrossModule.
Chris@0 7363 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7364 reload_cmds='$CC -r -o $output$reload_objs'
Chris@0 7365 hardcode_direct=no
Chris@0 7366 ;;
Chris@0 7367 motorola)
Chris@0 7368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7369 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@0 7370 ;;
Chris@0 7371 esac
Chris@0 7372 runpath_var='LD_RUN_PATH'
Chris@0 7373 hardcode_shlibpath_var=no
Chris@0 7374 ;;
Chris@0 7375
Chris@0 7376 sysv4.3*)
Chris@0 7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7378 hardcode_shlibpath_var=no
Chris@0 7379 export_dynamic_flag_spec='-Bexport'
Chris@0 7380 ;;
Chris@0 7381
Chris@0 7382 sysv4*MP*)
Chris@0 7383 if test -d /usr/nec; then
Chris@0 7384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7385 hardcode_shlibpath_var=no
Chris@0 7386 runpath_var=LD_RUN_PATH
Chris@0 7387 hardcode_runpath_var=yes
Chris@0 7388 ld_shlibs=yes
Chris@0 7389 fi
Chris@0 7390 ;;
Chris@0 7391
Chris@0 7392 sysv4.2uw2*)
Chris@0 7393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7394 hardcode_direct=yes
Chris@0 7395 hardcode_minus_L=no
Chris@0 7396 hardcode_shlibpath_var=no
Chris@0 7397 hardcode_runpath_var=yes
Chris@0 7398 runpath_var=LD_RUN_PATH
Chris@0 7399 ;;
Chris@0 7400
Chris@0 7401 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
Chris@0 7402 no_undefined_flag='${wl}-z ${wl}text'
Chris@0 7403 if test "$GCC" = yes; then
Chris@0 7404 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7405 else
Chris@0 7406 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 7407 fi
Chris@0 7408 runpath_var='LD_RUN_PATH'
Chris@0 7409 hardcode_shlibpath_var=no
Chris@0 7410 ;;
Chris@0 7411
Chris@0 7412 sysv5*)
Chris@0 7413 no_undefined_flag=' -z text'
Chris@0 7414 # $CC -shared without GNU ld will not create a library from C++
Chris@0 7415 # object files and a static libstdc++, better avoid it by now
Chris@0 7416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7417 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 7418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Chris@0 7419 hardcode_libdir_flag_spec=
Chris@0 7420 hardcode_shlibpath_var=no
Chris@0 7421 runpath_var='LD_RUN_PATH'
Chris@0 7422 ;;
Chris@0 7423
Chris@0 7424 uts4*)
Chris@0 7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 7426 hardcode_libdir_flag_spec='-L$libdir'
Chris@0 7427 hardcode_shlibpath_var=no
Chris@0 7428 ;;
Chris@0 7429
Chris@0 7430 *)
Chris@0 7431 ld_shlibs=no
Chris@0 7432 ;;
Chris@0 7433 esac
Chris@0 7434 fi
Chris@0 7435
Chris@0 7436 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
Chris@0 7437 echo "${ECHO_T}$ld_shlibs" >&6
Chris@0 7438 test "$ld_shlibs" = no && can_build_shared=no
Chris@0 7439
Chris@0 7440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@0 7441 if test "$GCC" = yes; then
Chris@0 7442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@0 7443 fi
Chris@0 7444
Chris@0 7445 #
Chris@0 7446 # Do we need to explicitly link libc?
Chris@0 7447 #
Chris@0 7448 case "x$archive_cmds_need_lc" in
Chris@0 7449 x|xyes)
Chris@0 7450 # Assume -lc should be added
Chris@0 7451 archive_cmds_need_lc=yes
Chris@0 7452
Chris@0 7453 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@0 7454 case $archive_cmds in
Chris@0 7455 *'~'*)
Chris@0 7456 # FIXME: we may have to deal with multi-command sequences.
Chris@0 7457 ;;
Chris@0 7458 '$CC '*)
Chris@0 7459 # Test whether the compiler implicitly links with -lc since on some
Chris@0 7460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@0 7461 # to ld, don't add -lc before -lgcc.
Chris@0 7462 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Chris@0 7463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
Chris@0 7464 $rm conftest*
Chris@0 7465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 7466
Chris@0 7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 7468 (eval $ac_compile) 2>&5
Chris@0 7469 ac_status=$?
Chris@0 7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 7471 (exit $ac_status); } 2>conftest.err; then
Chris@0 7472 soname=conftest
Chris@0 7473 lib=conftest
Chris@0 7474 libobjs=conftest.$ac_objext
Chris@0 7475 deplibs=
Chris@0 7476 wl=$lt_prog_compiler_wl
Chris@0 7477 compiler_flags=-v
Chris@0 7478 linker_flags=-v
Chris@0 7479 verstring=
Chris@0 7480 output_objdir=.
Chris@0 7481 libname=conftest
Chris@0 7482 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@0 7483 allow_undefined_flag=
Chris@0 7484 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
Chris@0 7485 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@0 7486 ac_status=$?
Chris@0 7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 7488 (exit $ac_status); }
Chris@0 7489 then
Chris@0 7490 archive_cmds_need_lc=no
Chris@0 7491 else
Chris@0 7492 archive_cmds_need_lc=yes
Chris@0 7493 fi
Chris@0 7494 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@0 7495 else
Chris@0 7496 cat conftest.err 1>&5
Chris@0 7497 fi
Chris@0 7498 $rm conftest*
Chris@0 7499 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
Chris@0 7500 echo "${ECHO_T}$archive_cmds_need_lc" >&6
Chris@0 7501 ;;
Chris@0 7502 esac
Chris@0 7503 fi
Chris@0 7504 ;;
Chris@0 7505 esac
Chris@0 7506
Chris@0 7507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Chris@0 7508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
Chris@0 7509 library_names_spec=
Chris@0 7510 libname_spec='lib$name'
Chris@0 7511 soname_spec=
Chris@0 7512 shrext=".so"
Chris@0 7513 postinstall_cmds=
Chris@0 7514 postuninstall_cmds=
Chris@0 7515 finish_cmds=
Chris@0 7516 finish_eval=
Chris@0 7517 shlibpath_var=
Chris@0 7518 shlibpath_overrides_runpath=unknown
Chris@0 7519 version_type=none
Chris@0 7520 dynamic_linker="$host_os ld.so"
Chris@0 7521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@0 7522 if test "$GCC" = yes; then
Chris@0 7523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Chris@0 7524 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Chris@0 7525 # if the path contains ";" then we assume it to be the separator
Chris@0 7526 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@0 7527 # assumed that no part of a normal pathname contains ";" but that should
Chris@0 7528 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@0 7529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@0 7530 else
Chris@0 7531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@0 7532 fi
Chris@0 7533 else
Chris@0 7534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@0 7535 fi
Chris@0 7536 need_lib_prefix=unknown
Chris@0 7537 hardcode_into_libs=no
Chris@0 7538
Chris@0 7539 # when you set need_version to no, make sure it does not cause -set_version
Chris@0 7540 # flags to be left without arguments
Chris@0 7541 need_version=unknown
Chris@0 7542
Chris@0 7543 case $host_os in
Chris@0 7544 aix3*)
Chris@0 7545 version_type=linux
Chris@0 7546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@0 7547 shlibpath_var=LIBPATH
Chris@0 7548
Chris@0 7549 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@0 7550 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7551 ;;
Chris@0 7552
Chris@0 7553 aix4* | aix5*)
Chris@0 7554 version_type=linux
Chris@0 7555 need_lib_prefix=no
Chris@0 7556 need_version=no
Chris@0 7557 hardcode_into_libs=yes
Chris@0 7558 if test "$host_cpu" = ia64; then
Chris@0 7559 # AIX 5 supports IA64
Chris@0 7560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@0 7561 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7562 else
Chris@0 7563 # With GCC up to 2.95.x, collect2 would create an import file
Chris@0 7564 # for dependence libraries. The import file would start with
Chris@0 7565 # the line `#! .'. This would cause the generated library to
Chris@0 7566 # depend on `.', always an invalid library. This was fixed in
Chris@0 7567 # development snapshots of GCC prior to 3.0.
Chris@0 7568 case $host_os in
Chris@0 7569 aix4 | aix4.[01] | aix4.[01].*)
Chris@0 7570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@0 7571 echo ' yes '
Chris@0 7572 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
Chris@0 7573 :
Chris@0 7574 else
Chris@0 7575 can_build_shared=no
Chris@0 7576 fi
Chris@0 7577 ;;
Chris@0 7578 esac
Chris@0 7579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@0 7580 # soname into executable. Probably we can add versioning support to
Chris@0 7581 # collect2, so additional links can be useful in future.
Chris@0 7582 if test "$aix_use_runtimelinking" = yes; then
Chris@0 7583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@0 7584 # instead of lib<name>.a to let people know that these are not
Chris@0 7585 # typical AIX shared libraries.
Chris@0 7586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7587 else
Chris@0 7588 # We preserve .a as extension for shared libraries through AIX4.2
Chris@0 7589 # and later when we are not doing run time linking.
Chris@0 7590 library_names_spec='${libname}${release}.a $libname.a'
Chris@0 7591 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7592 fi
Chris@0 7593 shlibpath_var=LIBPATH
Chris@0 7594 fi
Chris@0 7595 ;;
Chris@0 7596
Chris@0 7597 amigaos*)
Chris@0 7598 library_names_spec='$libname.ixlibrary $libname.a'
Chris@0 7599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@0 7600 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'
Chris@0 7601 ;;
Chris@0 7602
Chris@0 7603 beos*)
Chris@0 7604 library_names_spec='${libname}${shared_ext}'
Chris@0 7605 dynamic_linker="$host_os ld.so"
Chris@0 7606 shlibpath_var=LIBRARY_PATH
Chris@0 7607 ;;
Chris@0 7608
Chris@0 7609 bsdi4*)
Chris@0 7610 version_type=linux
Chris@0 7611 need_version=no
Chris@0 7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7613 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@0 7615 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@0 7617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@0 7618 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@0 7619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@0 7620 # libtool to hard-code these into programs
Chris@0 7621 ;;
Chris@0 7622
Chris@0 7623 cygwin* | mingw* | pw32*)
Chris@0 7624 version_type=windows
Chris@0 7625 shrext=".dll"
Chris@0 7626 need_version=no
Chris@0 7627 need_lib_prefix=no
Chris@0 7628
Chris@0 7629 case $GCC,$host_os in
Chris@0 7630 yes,cygwin* | yes,mingw* | yes,pw32*)
Chris@0 7631 library_names_spec='$libname.dll.a'
Chris@0 7632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@0 7633 postinstall_cmds='base_file=`basename \${file}`~
Chris@0 7634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Chris@0 7635 dldir=$destdir/`dirname \$dlpath`~
Chris@0 7636 test -d \$dldir || mkdir -p \$dldir~
Chris@0 7637 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@0 7638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@0 7639 dlpath=$dir/\$dldll~
Chris@0 7640 $rm \$dlpath'
Chris@0 7641 shlibpath_overrides_runpath=yes
Chris@0 7642
Chris@0 7643 case $host_os in
Chris@0 7644 cygwin*)
Chris@0 7645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@0 7646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@0 7647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Chris@0 7648 ;;
Chris@0 7649 mingw*)
Chris@0 7650 # MinGW DLLs use traditional 'lib' prefix
Chris@0 7651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@0 7652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Chris@0 7653 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
Chris@0 7654 # It is most probably a Windows format PATH printed by
Chris@0 7655 # mingw gcc, but we are running on Cygwin. Gcc prints its search
Chris@0 7656 # path with ; separators, and with drive letters. We can handle the
Chris@0 7657 # drive letters (cygwin fileutils understands them), so leave them,
Chris@0 7658 # especially as we might pass files found there to a mingw objdump,
Chris@0 7659 # which wouldn't understand a cygwinified path. Ahh.
Chris@0 7660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@0 7661 else
Chris@0 7662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@0 7663 fi
Chris@0 7664 ;;
Chris@0 7665 pw32*)
Chris@0 7666 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@0 7667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
Chris@0 7668 ;;
Chris@0 7669 esac
Chris@0 7670 ;;
Chris@0 7671
Chris@0 7672 *)
Chris@0 7673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@0 7674 ;;
Chris@0 7675 esac
Chris@0 7676 dynamic_linker='Win32 ld.exe'
Chris@0 7677 # FIXME: first we should search . and the directory the executable is in
Chris@0 7678 shlibpath_var=PATH
Chris@0 7679 ;;
Chris@0 7680
Chris@0 7681 darwin* | rhapsody*)
Chris@0 7682 dynamic_linker="$host_os dyld"
Chris@0 7683 version_type=darwin
Chris@0 7684 need_lib_prefix=no
Chris@0 7685 need_version=no
Chris@0 7686 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@0 7687 soname_spec='${libname}${release}${major}$shared_ext'
Chris@0 7688 shlibpath_overrides_runpath=yes
Chris@0 7689 shlibpath_var=DYLD_LIBRARY_PATH
Chris@0 7690 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
Chris@0 7691 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Chris@0 7692 if test "$GCC" = yes; then
Chris@0 7693 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"`
Chris@0 7694 else
Chris@0 7695 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
Chris@0 7696 fi
Chris@0 7697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@0 7698 ;;
Chris@0 7699
Chris@0 7700 dgux*)
Chris@0 7701 version_type=linux
Chris@0 7702 need_lib_prefix=no
Chris@0 7703 need_version=no
Chris@0 7704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@0 7705 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7706 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7707 ;;
Chris@0 7708
Chris@0 7709 freebsd1*)
Chris@0 7710 dynamic_linker=no
Chris@0 7711 ;;
Chris@0 7712
Chris@0 7713 kfreebsd*-gnu)
Chris@0 7714 version_type=linux
Chris@0 7715 need_lib_prefix=no
Chris@0 7716 need_version=no
Chris@0 7717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 7718 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7719 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7720 shlibpath_overrides_runpath=no
Chris@0 7721 hardcode_into_libs=yes
Chris@0 7722 dynamic_linker='GNU ld.so'
Chris@0 7723 ;;
Chris@0 7724
Chris@0 7725 freebsd*)
Chris@0 7726 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
Chris@0 7727 version_type=freebsd-$objformat
Chris@0 7728 case $version_type in
Chris@0 7729 freebsd-elf*)
Chris@0 7730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@0 7731 need_version=no
Chris@0 7732 need_lib_prefix=no
Chris@0 7733 ;;
Chris@0 7734 freebsd-*)
Chris@0 7735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@0 7736 need_version=yes
Chris@0 7737 ;;
Chris@0 7738 esac
Chris@0 7739 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7740 case $host_os in
Chris@0 7741 freebsd2*)
Chris@0 7742 shlibpath_overrides_runpath=yes
Chris@0 7743 ;;
Chris@0 7744 freebsd3.01* | freebsdelf3.01*)
Chris@0 7745 shlibpath_overrides_runpath=yes
Chris@0 7746 hardcode_into_libs=yes
Chris@0 7747 ;;
Chris@0 7748 *) # from 3.2 on
Chris@0 7749 shlibpath_overrides_runpath=no
Chris@0 7750 hardcode_into_libs=yes
Chris@0 7751 ;;
Chris@0 7752 esac
Chris@0 7753 ;;
Chris@0 7754
Chris@0 7755 gnu*)
Chris@0 7756 version_type=linux
Chris@0 7757 need_lib_prefix=no
Chris@0 7758 need_version=no
Chris@0 7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@0 7760 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7761 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7762 hardcode_into_libs=yes
Chris@0 7763 ;;
Chris@0 7764
Chris@0 7765 hpux9* | hpux10* | hpux11*)
Chris@0 7766 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@0 7767 # link against other versions.
Chris@0 7768 version_type=sunos
Chris@0 7769 need_lib_prefix=no
Chris@0 7770 need_version=no
Chris@0 7771 case "$host_cpu" in
Chris@0 7772 ia64*)
Chris@0 7773 shrext='.so'
Chris@0 7774 hardcode_into_libs=yes
Chris@0 7775 dynamic_linker="$host_os dld.so"
Chris@0 7776 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@0 7778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7779 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7780 if test "X$HPUX_IA64_MODE" = X32; then
Chris@0 7781 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@0 7782 else
Chris@0 7783 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@0 7784 fi
Chris@0 7785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@0 7786 ;;
Chris@0 7787 hppa*64*)
Chris@0 7788 shrext='.sl'
Chris@0 7789 hardcode_into_libs=yes
Chris@0 7790 dynamic_linker="$host_os dld.sl"
Chris@0 7791 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@0 7792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@0 7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7794 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7795 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@0 7796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@0 7797 ;;
Chris@0 7798 *)
Chris@0 7799 shrext='.sl'
Chris@0 7800 dynamic_linker="$host_os dld.sl"
Chris@0 7801 shlibpath_var=SHLIB_PATH
Chris@0 7802 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@0 7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7804 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7805 ;;
Chris@0 7806 esac
Chris@0 7807 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Chris@0 7808 postinstall_cmds='chmod 555 $lib'
Chris@0 7809 ;;
Chris@0 7810
Chris@0 7811 irix5* | irix6* | nonstopux*)
Chris@0 7812 case $host_os in
Chris@0 7813 nonstopux*) version_type=nonstopux ;;
Chris@0 7814 *)
Chris@0 7815 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@0 7816 version_type=linux
Chris@0 7817 else
Chris@0 7818 version_type=irix
Chris@0 7819 fi ;;
Chris@0 7820 esac
Chris@0 7821 need_lib_prefix=no
Chris@0 7822 need_version=no
Chris@0 7823 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@0 7825 case $host_os in
Chris@0 7826 irix5* | nonstopux*)
Chris@0 7827 libsuff= shlibsuff=
Chris@0 7828 ;;
Chris@0 7829 *)
Chris@0 7830 case $LD in # libtool.m4 will add one of these switches to LD
Chris@0 7831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@0 7832 libsuff= shlibsuff= libmagic=32-bit;;
Chris@0 7833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@0 7834 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@0 7835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@0 7836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@0 7837 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@0 7838 esac
Chris@0 7839 ;;
Chris@0 7840 esac
Chris@0 7841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@0 7842 shlibpath_overrides_runpath=no
Chris@0 7843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@0 7844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@0 7845 hardcode_into_libs=yes
Chris@0 7846 ;;
Chris@0 7847
Chris@0 7848 # No shared lib support for Linux oldld, aout, or coff.
Chris@0 7849 linux*oldld* | linux*aout* | linux*coff*)
Chris@0 7850 dynamic_linker=no
Chris@0 7851 ;;
Chris@0 7852
Chris@0 7853 # This must be Linux ELF.
Chris@0 7854 linux*)
Chris@0 7855 version_type=linux
Chris@0 7856 need_lib_prefix=no
Chris@0 7857 need_version=no
Chris@0 7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7859 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@0 7861 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7862 shlibpath_overrides_runpath=no
Chris@0 7863 # This implies no fast_install, which is unacceptable.
Chris@0 7864 # Some rework will be needed to allow for fast_install
Chris@0 7865 # before this can be enabled.
Chris@0 7866 hardcode_into_libs=yes
Chris@0 7867
Chris@0 7868 # Append ld.so.conf contents to the search path
Chris@0 7869 if test -f /etc/ld.so.conf; then
Chris@0 7870 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
Chris@0 7871 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
Chris@0 7872 fi
Chris@0 7873
Chris@0 7874 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@0 7875 # powerpc, because MkLinux only supported shared libraries with the
Chris@0 7876 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@0 7877 # most powerpc-linux boxes support dynamic linking these days and
Chris@0 7878 # people can always --disable-shared, the test was removed, and we
Chris@0 7879 # assume the GNU/Linux dynamic linker is in use.
Chris@0 7880 dynamic_linker='GNU/Linux ld.so'
Chris@0 7881 ;;
Chris@0 7882
Chris@0 7883 knetbsd*-gnu)
Chris@0 7884 version_type=linux
Chris@0 7885 need_lib_prefix=no
Chris@0 7886 need_version=no
Chris@0 7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 7888 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7889 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7890 shlibpath_overrides_runpath=no
Chris@0 7891 hardcode_into_libs=yes
Chris@0 7892 dynamic_linker='GNU ld.so'
Chris@0 7893 ;;
Chris@0 7894
Chris@0 7895 netbsd*)
Chris@0 7896 version_type=sunos
Chris@0 7897 need_lib_prefix=no
Chris@0 7898 need_version=no
Chris@0 7899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 7900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 7901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@0 7902 dynamic_linker='NetBSD (a.out) ld.so'
Chris@0 7903 else
Chris@0 7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 7905 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7906 dynamic_linker='NetBSD ld.elf_so'
Chris@0 7907 fi
Chris@0 7908 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7909 shlibpath_overrides_runpath=yes
Chris@0 7910 hardcode_into_libs=yes
Chris@0 7911 ;;
Chris@0 7912
Chris@0 7913 newsos6)
Chris@0 7914 version_type=linux
Chris@0 7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7916 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7917 shlibpath_overrides_runpath=yes
Chris@0 7918 ;;
Chris@0 7919
Chris@0 7920 nto-qnx*)
Chris@0 7921 version_type=linux
Chris@0 7922 need_lib_prefix=no
Chris@0 7923 need_version=no
Chris@0 7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7925 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7926 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7927 shlibpath_overrides_runpath=yes
Chris@0 7928 ;;
Chris@0 7929
Chris@0 7930 openbsd*)
Chris@0 7931 version_type=sunos
Chris@0 7932 need_lib_prefix=no
Chris@0 7933 need_version=yes
Chris@0 7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 7935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@0 7936 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@0 7938 case $host_os in
Chris@0 7939 openbsd2.[89] | openbsd2.[89].*)
Chris@0 7940 shlibpath_overrides_runpath=no
Chris@0 7941 ;;
Chris@0 7942 *)
Chris@0 7943 shlibpath_overrides_runpath=yes
Chris@0 7944 ;;
Chris@0 7945 esac
Chris@0 7946 else
Chris@0 7947 shlibpath_overrides_runpath=yes
Chris@0 7948 fi
Chris@0 7949 ;;
Chris@0 7950
Chris@0 7951 os2*)
Chris@0 7952 libname_spec='$name'
Chris@0 7953 shrext=".dll"
Chris@0 7954 need_lib_prefix=no
Chris@0 7955 library_names_spec='$libname${shared_ext} $libname.a'
Chris@0 7956 dynamic_linker='OS/2 ld.exe'
Chris@0 7957 shlibpath_var=LIBPATH
Chris@0 7958 ;;
Chris@0 7959
Chris@0 7960 osf3* | osf4* | osf5*)
Chris@0 7961 version_type=osf
Chris@0 7962 need_lib_prefix=no
Chris@0 7963 need_version=no
Chris@0 7964 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7966 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@0 7968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@0 7969 ;;
Chris@0 7970
Chris@0 7971 sco3.2v5*)
Chris@0 7972 version_type=osf
Chris@0 7973 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7975 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7976 ;;
Chris@0 7977
Chris@0 7978 solaris*)
Chris@0 7979 version_type=linux
Chris@0 7980 need_lib_prefix=no
Chris@0 7981 need_version=no
Chris@0 7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 7983 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 7984 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7985 shlibpath_overrides_runpath=yes
Chris@0 7986 hardcode_into_libs=yes
Chris@0 7987 # ldd complains unless libraries are executable
Chris@0 7988 postinstall_cmds='chmod +x $lib'
Chris@0 7989 ;;
Chris@0 7990
Chris@0 7991 sunos4*)
Chris@0 7992 version_type=sunos
Chris@0 7993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 7994 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@0 7995 shlibpath_var=LD_LIBRARY_PATH
Chris@0 7996 shlibpath_overrides_runpath=yes
Chris@0 7997 if test "$with_gnu_ld" = yes; then
Chris@0 7998 need_lib_prefix=no
Chris@0 7999 fi
Chris@0 8000 need_version=yes
Chris@0 8001 ;;
Chris@0 8002
Chris@0 8003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@0 8004 version_type=linux
Chris@0 8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 8006 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 8007 shlibpath_var=LD_LIBRARY_PATH
Chris@0 8008 case $host_vendor in
Chris@0 8009 sni)
Chris@0 8010 shlibpath_overrides_runpath=no
Chris@0 8011 need_lib_prefix=no
Chris@0 8012 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@0 8013 runpath_var=LD_RUN_PATH
Chris@0 8014 ;;
Chris@0 8015 siemens)
Chris@0 8016 need_lib_prefix=no
Chris@0 8017 ;;
Chris@0 8018 motorola)
Chris@0 8019 need_lib_prefix=no
Chris@0 8020 need_version=no
Chris@0 8021 shlibpath_overrides_runpath=no
Chris@0 8022 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@0 8023 ;;
Chris@0 8024 esac
Chris@0 8025 ;;
Chris@0 8026
Chris@0 8027 sysv4*MP*)
Chris@0 8028 if test -d /usr/nec ;then
Chris@0 8029 version_type=linux
Chris@0 8030 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@0 8031 soname_spec='$libname${shared_ext}.$major'
Chris@0 8032 shlibpath_var=LD_LIBRARY_PATH
Chris@0 8033 fi
Chris@0 8034 ;;
Chris@0 8035
Chris@0 8036 uts4*)
Chris@0 8037 version_type=linux
Chris@0 8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 8039 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 8040 shlibpath_var=LD_LIBRARY_PATH
Chris@0 8041 ;;
Chris@0 8042
Chris@0 8043 *)
Chris@0 8044 dynamic_linker=no
Chris@0 8045 ;;
Chris@0 8046 esac
Chris@0 8047 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Chris@0 8048 echo "${ECHO_T}$dynamic_linker" >&6
Chris@0 8049 test "$dynamic_linker" = no && can_build_shared=no
Chris@0 8050
Chris@0 8051 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Chris@0 8052 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
Chris@0 8053 hardcode_action=
Chris@0 8054 if test -n "$hardcode_libdir_flag_spec" || \
Chris@0 8055 test -n "$runpath_var " || \
Chris@0 8056 test "X$hardcode_automatic"="Xyes" ; then
Chris@0 8057
Chris@0 8058 # We can hardcode non-existant directories.
Chris@0 8059 if test "$hardcode_direct" != no &&
Chris@0 8060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@0 8061 # have to relink, otherwise we might link with an installed library
Chris@0 8062 # when we should be linking with a yet-to-be-installed one
Chris@0 8063 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
Chris@0 8064 test "$hardcode_minus_L" != no; then
Chris@0 8065 # Linking always hardcodes the temporary library directory.
Chris@0 8066 hardcode_action=relink
Chris@0 8067 else
Chris@0 8068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@0 8069 hardcode_action=immediate
Chris@0 8070 fi
Chris@0 8071 else
Chris@0 8072 # We cannot hardcode anything, or else we can only hardcode existing
Chris@0 8073 # directories.
Chris@0 8074 hardcode_action=unsupported
Chris@0 8075 fi
Chris@0 8076 echo "$as_me:$LINENO: result: $hardcode_action" >&5
Chris@0 8077 echo "${ECHO_T}$hardcode_action" >&6
Chris@0 8078
Chris@0 8079 if test "$hardcode_action" = relink; then
Chris@0 8080 # Fast installation is not supported
Chris@0 8081 enable_fast_install=no
Chris@0 8082 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@0 8083 test "$enable_shared" = no; then
Chris@0 8084 # Fast installation is not necessary
Chris@0 8085 enable_fast_install=needless
Chris@0 8086 fi
Chris@0 8087
Chris@0 8088 striplib=
Chris@0 8089 old_striplib=
Chris@0 8090 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
Chris@0 8091 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
Chris@0 8092 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
Chris@0 8093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@0 8094 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@0 8095 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 8096 echo "${ECHO_T}yes" >&6
Chris@0 8097 else
Chris@0 8098 # FIXME - insert some real tests, host_os isn't really good enough
Chris@0 8099 case $host_os in
Chris@0 8100 darwin*)
Chris@0 8101 if test -n "$STRIP" ; then
Chris@0 8102 striplib="$STRIP -x"
Chris@0 8103 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 8104 echo "${ECHO_T}yes" >&6
Chris@0 8105 else
Chris@0 8106 echo "$as_me:$LINENO: result: no" >&5
Chris@0 8107 echo "${ECHO_T}no" >&6
Chris@0 8108 fi
Chris@0 8109 ;;
Chris@0 8110 *)
Chris@0 8111 echo "$as_me:$LINENO: result: no" >&5
Chris@0 8112 echo "${ECHO_T}no" >&6
Chris@0 8113 ;;
Chris@0 8114 esac
Chris@0 8115 fi
Chris@0 8116
Chris@0 8117 if test "x$enable_dlopen" != xyes; then
Chris@0 8118 enable_dlopen=unknown
Chris@0 8119 enable_dlopen_self=unknown
Chris@0 8120 enable_dlopen_self_static=unknown
Chris@0 8121 else
Chris@0 8122 lt_cv_dlopen=no
Chris@0 8123 lt_cv_dlopen_libs=
Chris@0 8124
Chris@0 8125 case $host_os in
Chris@0 8126 beos*)
Chris@0 8127 lt_cv_dlopen="load_add_on"
Chris@0 8128 lt_cv_dlopen_libs=
Chris@0 8129 lt_cv_dlopen_self=yes
Chris@0 8130 ;;
Chris@0 8131
Chris@0 8132 mingw* | pw32*)
Chris@0 8133 lt_cv_dlopen="LoadLibrary"
Chris@0 8134 lt_cv_dlopen_libs=
Chris@0 8135 ;;
Chris@0 8136
Chris@0 8137 cygwin*)
Chris@0 8138 lt_cv_dlopen="dlopen"
Chris@0 8139 lt_cv_dlopen_libs=
Chris@0 8140 ;;
Chris@0 8141
Chris@0 8142 darwin*)
Chris@0 8143 # if libdl is installed we need to link against it
Chris@0 8144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Chris@0 8145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
Chris@0 8146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Chris@0 8147 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8148 else
Chris@0 8149 ac_check_lib_save_LIBS=$LIBS
Chris@0 8150 LIBS="-ldl $LIBS"
Chris@0 8151 cat >conftest.$ac_ext <<_ACEOF
Chris@0 8152 /* confdefs.h. */
Chris@0 8153 _ACEOF
Chris@0 8154 cat confdefs.h >>conftest.$ac_ext
Chris@0 8155 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 8156 /* end confdefs.h. */
Chris@0 8157
Chris@0 8158 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 8159 #ifdef __cplusplus
Chris@0 8160 extern "C"
Chris@0 8161 #endif
Chris@0 8162 /* We use char because int might match the return type of a gcc2
Chris@0 8163 builtin and then its argument prototype would still apply. */
Chris@0 8164 char dlopen ();
Chris@0 8165 int
Chris@0 8166 main ()
Chris@0 8167 {
Chris@0 8168 dlopen ();
Chris@0 8169 ;
Chris@0 8170 return 0;
Chris@0 8171 }
Chris@0 8172 _ACEOF
Chris@0 8173 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8175 (eval $ac_link) 2>conftest.er1
Chris@0 8176 ac_status=$?
Chris@0 8177 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 8178 rm -f conftest.er1
Chris@0 8179 cat conftest.err >&5
Chris@0 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8181 (exit $ac_status); } &&
Chris@0 8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8184 (eval $ac_try) 2>&5
Chris@0 8185 ac_status=$?
Chris@0 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8187 (exit $ac_status); }; } &&
Chris@0 8188 { ac_try='test -s conftest$ac_exeext'
Chris@0 8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8190 (eval $ac_try) 2>&5
Chris@0 8191 ac_status=$?
Chris@0 8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8193 (exit $ac_status); }; }; then
Chris@0 8194 ac_cv_lib_dl_dlopen=yes
Chris@0 8195 else
Chris@0 8196 echo "$as_me: failed program was:" >&5
Chris@0 8197 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 8198
Chris@0 8199 ac_cv_lib_dl_dlopen=no
Chris@0 8200 fi
Chris@0 8201 rm -f conftest.err conftest.$ac_objext \
Chris@0 8202 conftest$ac_exeext conftest.$ac_ext
Chris@0 8203 LIBS=$ac_check_lib_save_LIBS
Chris@0 8204 fi
Chris@0 8205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Chris@0 8206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
Chris@0 8207 if test $ac_cv_lib_dl_dlopen = yes; then
Chris@0 8208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@0 8209 else
Chris@0 8210
Chris@0 8211 lt_cv_dlopen="dyld"
Chris@0 8212 lt_cv_dlopen_libs=
Chris@0 8213 lt_cv_dlopen_self=yes
Chris@0 8214
Chris@0 8215 fi
Chris@0 8216
Chris@0 8217 ;;
Chris@0 8218
Chris@0 8219 *)
Chris@0 8220 echo "$as_me:$LINENO: checking for shl_load" >&5
Chris@0 8221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
Chris@0 8222 if test "${ac_cv_func_shl_load+set}" = set; then
Chris@0 8223 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8224 else
Chris@0 8225 cat >conftest.$ac_ext <<_ACEOF
Chris@0 8226 /* confdefs.h. */
Chris@0 8227 _ACEOF
Chris@0 8228 cat confdefs.h >>conftest.$ac_ext
Chris@0 8229 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 8230 /* end confdefs.h. */
Chris@0 8231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
Chris@0 8232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@0 8233 #define shl_load innocuous_shl_load
Chris@0 8234
Chris@0 8235 /* System header to define __stub macros and hopefully few prototypes,
Chris@0 8236 which can conflict with char shl_load (); below.
Chris@0 8237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 8238 <limits.h> exists even on freestanding compilers. */
Chris@0 8239
Chris@0 8240 #ifdef __STDC__
Chris@0 8241 # include <limits.h>
Chris@0 8242 #else
Chris@0 8243 # include <assert.h>
Chris@0 8244 #endif
Chris@0 8245
Chris@0 8246 #undef shl_load
Chris@0 8247
Chris@0 8248 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 8249 #ifdef __cplusplus
Chris@0 8250 extern "C"
Chris@0 8251 {
Chris@0 8252 #endif
Chris@0 8253 /* We use char because int might match the return type of a gcc2
Chris@0 8254 builtin and then its argument prototype would still apply. */
Chris@0 8255 char shl_load ();
Chris@0 8256 /* The GNU C library defines this for functions which it implements
Chris@0 8257 to always fail with ENOSYS. Some functions are actually named
Chris@0 8258 something starting with __ and the normal name is an alias. */
Chris@0 8259 #if defined (__stub_shl_load) || defined (__stub___shl_load)
Chris@0 8260 choke me
Chris@0 8261 #else
Chris@0 8262 char (*f) () = shl_load;
Chris@0 8263 #endif
Chris@0 8264 #ifdef __cplusplus
Chris@0 8265 }
Chris@0 8266 #endif
Chris@0 8267
Chris@0 8268 int
Chris@0 8269 main ()
Chris@0 8270 {
Chris@0 8271 return f != shl_load;
Chris@0 8272 ;
Chris@0 8273 return 0;
Chris@0 8274 }
Chris@0 8275 _ACEOF
Chris@0 8276 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8278 (eval $ac_link) 2>conftest.er1
Chris@0 8279 ac_status=$?
Chris@0 8280 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 8281 rm -f conftest.er1
Chris@0 8282 cat conftest.err >&5
Chris@0 8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8284 (exit $ac_status); } &&
Chris@0 8285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8287 (eval $ac_try) 2>&5
Chris@0 8288 ac_status=$?
Chris@0 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8290 (exit $ac_status); }; } &&
Chris@0 8291 { ac_try='test -s conftest$ac_exeext'
Chris@0 8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8293 (eval $ac_try) 2>&5
Chris@0 8294 ac_status=$?
Chris@0 8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8296 (exit $ac_status); }; }; then
Chris@0 8297 ac_cv_func_shl_load=yes
Chris@0 8298 else
Chris@0 8299 echo "$as_me: failed program was:" >&5
Chris@0 8300 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 8301
Chris@0 8302 ac_cv_func_shl_load=no
Chris@0 8303 fi
Chris@0 8304 rm -f conftest.err conftest.$ac_objext \
Chris@0 8305 conftest$ac_exeext conftest.$ac_ext
Chris@0 8306 fi
Chris@0 8307 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
Chris@0 8308 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
Chris@0 8309 if test $ac_cv_func_shl_load = yes; then
Chris@0 8310 lt_cv_dlopen="shl_load"
Chris@0 8311 else
Chris@0 8312 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
Chris@0 8313 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
Chris@0 8314 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Chris@0 8315 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8316 else
Chris@0 8317 ac_check_lib_save_LIBS=$LIBS
Chris@0 8318 LIBS="-ldld $LIBS"
Chris@0 8319 cat >conftest.$ac_ext <<_ACEOF
Chris@0 8320 /* confdefs.h. */
Chris@0 8321 _ACEOF
Chris@0 8322 cat confdefs.h >>conftest.$ac_ext
Chris@0 8323 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 8324 /* end confdefs.h. */
Chris@0 8325
Chris@0 8326 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 8327 #ifdef __cplusplus
Chris@0 8328 extern "C"
Chris@0 8329 #endif
Chris@0 8330 /* We use char because int might match the return type of a gcc2
Chris@0 8331 builtin and then its argument prototype would still apply. */
Chris@0 8332 char shl_load ();
Chris@0 8333 int
Chris@0 8334 main ()
Chris@0 8335 {
Chris@0 8336 shl_load ();
Chris@0 8337 ;
Chris@0 8338 return 0;
Chris@0 8339 }
Chris@0 8340 _ACEOF
Chris@0 8341 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 8342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8343 (eval $ac_link) 2>conftest.er1
Chris@0 8344 ac_status=$?
Chris@0 8345 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 8346 rm -f conftest.er1
Chris@0 8347 cat conftest.err >&5
Chris@0 8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8349 (exit $ac_status); } &&
Chris@0 8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8352 (eval $ac_try) 2>&5
Chris@0 8353 ac_status=$?
Chris@0 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8355 (exit $ac_status); }; } &&
Chris@0 8356 { ac_try='test -s conftest$ac_exeext'
Chris@0 8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8358 (eval $ac_try) 2>&5
Chris@0 8359 ac_status=$?
Chris@0 8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8361 (exit $ac_status); }; }; then
Chris@0 8362 ac_cv_lib_dld_shl_load=yes
Chris@0 8363 else
Chris@0 8364 echo "$as_me: failed program was:" >&5
Chris@0 8365 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 8366
Chris@0 8367 ac_cv_lib_dld_shl_load=no
Chris@0 8368 fi
Chris@0 8369 rm -f conftest.err conftest.$ac_objext \
Chris@0 8370 conftest$ac_exeext conftest.$ac_ext
Chris@0 8371 LIBS=$ac_check_lib_save_LIBS
Chris@0 8372 fi
Chris@0 8373 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Chris@0 8374 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
Chris@0 8375 if test $ac_cv_lib_dld_shl_load = yes; then
Chris@0 8376 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
Chris@0 8377 else
Chris@0 8378 echo "$as_me:$LINENO: checking for dlopen" >&5
Chris@0 8379 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
Chris@0 8380 if test "${ac_cv_func_dlopen+set}" = set; then
Chris@0 8381 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8382 else
Chris@0 8383 cat >conftest.$ac_ext <<_ACEOF
Chris@0 8384 /* confdefs.h. */
Chris@0 8385 _ACEOF
Chris@0 8386 cat confdefs.h >>conftest.$ac_ext
Chris@0 8387 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 8388 /* end confdefs.h. */
Chris@0 8389 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
Chris@0 8390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@0 8391 #define dlopen innocuous_dlopen
Chris@0 8392
Chris@0 8393 /* System header to define __stub macros and hopefully few prototypes,
Chris@0 8394 which can conflict with char dlopen (); below.
Chris@0 8395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 8396 <limits.h> exists even on freestanding compilers. */
Chris@0 8397
Chris@0 8398 #ifdef __STDC__
Chris@0 8399 # include <limits.h>
Chris@0 8400 #else
Chris@0 8401 # include <assert.h>
Chris@0 8402 #endif
Chris@0 8403
Chris@0 8404 #undef dlopen
Chris@0 8405
Chris@0 8406 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 8407 #ifdef __cplusplus
Chris@0 8408 extern "C"
Chris@0 8409 {
Chris@0 8410 #endif
Chris@0 8411 /* We use char because int might match the return type of a gcc2
Chris@0 8412 builtin and then its argument prototype would still apply. */
Chris@0 8413 char dlopen ();
Chris@0 8414 /* The GNU C library defines this for functions which it implements
Chris@0 8415 to always fail with ENOSYS. Some functions are actually named
Chris@0 8416 something starting with __ and the normal name is an alias. */
Chris@0 8417 #if defined (__stub_dlopen) || defined (__stub___dlopen)
Chris@0 8418 choke me
Chris@0 8419 #else
Chris@0 8420 char (*f) () = dlopen;
Chris@0 8421 #endif
Chris@0 8422 #ifdef __cplusplus
Chris@0 8423 }
Chris@0 8424 #endif
Chris@0 8425
Chris@0 8426 int
Chris@0 8427 main ()
Chris@0 8428 {
Chris@0 8429 return f != dlopen;
Chris@0 8430 ;
Chris@0 8431 return 0;
Chris@0 8432 }
Chris@0 8433 _ACEOF
Chris@0 8434 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8436 (eval $ac_link) 2>conftest.er1
Chris@0 8437 ac_status=$?
Chris@0 8438 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 8439 rm -f conftest.er1
Chris@0 8440 cat conftest.err >&5
Chris@0 8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8442 (exit $ac_status); } &&
Chris@0 8443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8445 (eval $ac_try) 2>&5
Chris@0 8446 ac_status=$?
Chris@0 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8448 (exit $ac_status); }; } &&
Chris@0 8449 { ac_try='test -s conftest$ac_exeext'
Chris@0 8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8451 (eval $ac_try) 2>&5
Chris@0 8452 ac_status=$?
Chris@0 8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8454 (exit $ac_status); }; }; then
Chris@0 8455 ac_cv_func_dlopen=yes
Chris@0 8456 else
Chris@0 8457 echo "$as_me: failed program was:" >&5
Chris@0 8458 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 8459
Chris@0 8460 ac_cv_func_dlopen=no
Chris@0 8461 fi
Chris@0 8462 rm -f conftest.err conftest.$ac_objext \
Chris@0 8463 conftest$ac_exeext conftest.$ac_ext
Chris@0 8464 fi
Chris@0 8465 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
Chris@0 8466 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
Chris@0 8467 if test $ac_cv_func_dlopen = yes; then
Chris@0 8468 lt_cv_dlopen="dlopen"
Chris@0 8469 else
Chris@0 8470 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Chris@0 8471 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
Chris@0 8472 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Chris@0 8473 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8474 else
Chris@0 8475 ac_check_lib_save_LIBS=$LIBS
Chris@0 8476 LIBS="-ldl $LIBS"
Chris@0 8477 cat >conftest.$ac_ext <<_ACEOF
Chris@0 8478 /* confdefs.h. */
Chris@0 8479 _ACEOF
Chris@0 8480 cat confdefs.h >>conftest.$ac_ext
Chris@0 8481 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 8482 /* end confdefs.h. */
Chris@0 8483
Chris@0 8484 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 8485 #ifdef __cplusplus
Chris@0 8486 extern "C"
Chris@0 8487 #endif
Chris@0 8488 /* We use char because int might match the return type of a gcc2
Chris@0 8489 builtin and then its argument prototype would still apply. */
Chris@0 8490 char dlopen ();
Chris@0 8491 int
Chris@0 8492 main ()
Chris@0 8493 {
Chris@0 8494 dlopen ();
Chris@0 8495 ;
Chris@0 8496 return 0;
Chris@0 8497 }
Chris@0 8498 _ACEOF
Chris@0 8499 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8501 (eval $ac_link) 2>conftest.er1
Chris@0 8502 ac_status=$?
Chris@0 8503 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 8504 rm -f conftest.er1
Chris@0 8505 cat conftest.err >&5
Chris@0 8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8507 (exit $ac_status); } &&
Chris@0 8508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8510 (eval $ac_try) 2>&5
Chris@0 8511 ac_status=$?
Chris@0 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8513 (exit $ac_status); }; } &&
Chris@0 8514 { ac_try='test -s conftest$ac_exeext'
Chris@0 8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8516 (eval $ac_try) 2>&5
Chris@0 8517 ac_status=$?
Chris@0 8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8519 (exit $ac_status); }; }; then
Chris@0 8520 ac_cv_lib_dl_dlopen=yes
Chris@0 8521 else
Chris@0 8522 echo "$as_me: failed program was:" >&5
Chris@0 8523 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 8524
Chris@0 8525 ac_cv_lib_dl_dlopen=no
Chris@0 8526 fi
Chris@0 8527 rm -f conftest.err conftest.$ac_objext \
Chris@0 8528 conftest$ac_exeext conftest.$ac_ext
Chris@0 8529 LIBS=$ac_check_lib_save_LIBS
Chris@0 8530 fi
Chris@0 8531 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Chris@0 8532 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
Chris@0 8533 if test $ac_cv_lib_dl_dlopen = yes; then
Chris@0 8534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@0 8535 else
Chris@0 8536 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
Chris@0 8537 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
Chris@0 8538 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
Chris@0 8539 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8540 else
Chris@0 8541 ac_check_lib_save_LIBS=$LIBS
Chris@0 8542 LIBS="-lsvld $LIBS"
Chris@0 8543 cat >conftest.$ac_ext <<_ACEOF
Chris@0 8544 /* confdefs.h. */
Chris@0 8545 _ACEOF
Chris@0 8546 cat confdefs.h >>conftest.$ac_ext
Chris@0 8547 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 8548 /* end confdefs.h. */
Chris@0 8549
Chris@0 8550 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 8551 #ifdef __cplusplus
Chris@0 8552 extern "C"
Chris@0 8553 #endif
Chris@0 8554 /* We use char because int might match the return type of a gcc2
Chris@0 8555 builtin and then its argument prototype would still apply. */
Chris@0 8556 char dlopen ();
Chris@0 8557 int
Chris@0 8558 main ()
Chris@0 8559 {
Chris@0 8560 dlopen ();
Chris@0 8561 ;
Chris@0 8562 return 0;
Chris@0 8563 }
Chris@0 8564 _ACEOF
Chris@0 8565 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 8566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8567 (eval $ac_link) 2>conftest.er1
Chris@0 8568 ac_status=$?
Chris@0 8569 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 8570 rm -f conftest.er1
Chris@0 8571 cat conftest.err >&5
Chris@0 8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8573 (exit $ac_status); } &&
Chris@0 8574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8576 (eval $ac_try) 2>&5
Chris@0 8577 ac_status=$?
Chris@0 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8579 (exit $ac_status); }; } &&
Chris@0 8580 { ac_try='test -s conftest$ac_exeext'
Chris@0 8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8582 (eval $ac_try) 2>&5
Chris@0 8583 ac_status=$?
Chris@0 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8585 (exit $ac_status); }; }; then
Chris@0 8586 ac_cv_lib_svld_dlopen=yes
Chris@0 8587 else
Chris@0 8588 echo "$as_me: failed program was:" >&5
Chris@0 8589 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 8590
Chris@0 8591 ac_cv_lib_svld_dlopen=no
Chris@0 8592 fi
Chris@0 8593 rm -f conftest.err conftest.$ac_objext \
Chris@0 8594 conftest$ac_exeext conftest.$ac_ext
Chris@0 8595 LIBS=$ac_check_lib_save_LIBS
Chris@0 8596 fi
Chris@0 8597 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Chris@0 8598 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
Chris@0 8599 if test $ac_cv_lib_svld_dlopen = yes; then
Chris@0 8600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@0 8601 else
Chris@0 8602 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
Chris@0 8603 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
Chris@0 8604 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
Chris@0 8605 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8606 else
Chris@0 8607 ac_check_lib_save_LIBS=$LIBS
Chris@0 8608 LIBS="-ldld $LIBS"
Chris@0 8609 cat >conftest.$ac_ext <<_ACEOF
Chris@0 8610 /* confdefs.h. */
Chris@0 8611 _ACEOF
Chris@0 8612 cat confdefs.h >>conftest.$ac_ext
Chris@0 8613 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 8614 /* end confdefs.h. */
Chris@0 8615
Chris@0 8616 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 8617 #ifdef __cplusplus
Chris@0 8618 extern "C"
Chris@0 8619 #endif
Chris@0 8620 /* We use char because int might match the return type of a gcc2
Chris@0 8621 builtin and then its argument prototype would still apply. */
Chris@0 8622 char dld_link ();
Chris@0 8623 int
Chris@0 8624 main ()
Chris@0 8625 {
Chris@0 8626 dld_link ();
Chris@0 8627 ;
Chris@0 8628 return 0;
Chris@0 8629 }
Chris@0 8630 _ACEOF
Chris@0 8631 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8633 (eval $ac_link) 2>conftest.er1
Chris@0 8634 ac_status=$?
Chris@0 8635 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 8636 rm -f conftest.er1
Chris@0 8637 cat conftest.err >&5
Chris@0 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8639 (exit $ac_status); } &&
Chris@0 8640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8642 (eval $ac_try) 2>&5
Chris@0 8643 ac_status=$?
Chris@0 8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8645 (exit $ac_status); }; } &&
Chris@0 8646 { ac_try='test -s conftest$ac_exeext'
Chris@0 8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 8648 (eval $ac_try) 2>&5
Chris@0 8649 ac_status=$?
Chris@0 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8651 (exit $ac_status); }; }; then
Chris@0 8652 ac_cv_lib_dld_dld_link=yes
Chris@0 8653 else
Chris@0 8654 echo "$as_me: failed program was:" >&5
Chris@0 8655 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 8656
Chris@0 8657 ac_cv_lib_dld_dld_link=no
Chris@0 8658 fi
Chris@0 8659 rm -f conftest.err conftest.$ac_objext \
Chris@0 8660 conftest$ac_exeext conftest.$ac_ext
Chris@0 8661 LIBS=$ac_check_lib_save_LIBS
Chris@0 8662 fi
Chris@0 8663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Chris@0 8664 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
Chris@0 8665 if test $ac_cv_lib_dld_dld_link = yes; then
Chris@0 8666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
Chris@0 8667 fi
Chris@0 8668
Chris@0 8669
Chris@0 8670 fi
Chris@0 8671
Chris@0 8672
Chris@0 8673 fi
Chris@0 8674
Chris@0 8675
Chris@0 8676 fi
Chris@0 8677
Chris@0 8678
Chris@0 8679 fi
Chris@0 8680
Chris@0 8681
Chris@0 8682 fi
Chris@0 8683
Chris@0 8684 ;;
Chris@0 8685 esac
Chris@0 8686
Chris@0 8687 if test "x$lt_cv_dlopen" != xno; then
Chris@0 8688 enable_dlopen=yes
Chris@0 8689 else
Chris@0 8690 enable_dlopen=no
Chris@0 8691 fi
Chris@0 8692
Chris@0 8693 case $lt_cv_dlopen in
Chris@0 8694 dlopen)
Chris@0 8695 save_CPPFLAGS="$CPPFLAGS"
Chris@0 8696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@0 8697
Chris@0 8698 save_LDFLAGS="$LDFLAGS"
Chris@0 8699 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@0 8700
Chris@0 8701 save_LIBS="$LIBS"
Chris@0 8702 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@0 8703
Chris@0 8704 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
Chris@0 8705 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
Chris@0 8706 if test "${lt_cv_dlopen_self+set}" = set; then
Chris@0 8707 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8708 else
Chris@0 8709 if test "$cross_compiling" = yes; then :
Chris@0 8710 lt_cv_dlopen_self=cross
Chris@0 8711 else
Chris@0 8712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@0 8713 lt_status=$lt_dlunknown
Chris@0 8714 cat > conftest.$ac_ext <<EOF
Chris@0 8715 #line 8715 "configure"
Chris@0 8716 #include "confdefs.h"
Chris@0 8717
Chris@0 8718 #if HAVE_DLFCN_H
Chris@0 8719 #include <dlfcn.h>
Chris@0 8720 #endif
Chris@0 8721
Chris@0 8722 #include <stdio.h>
Chris@0 8723
Chris@0 8724 #ifdef RTLD_GLOBAL
Chris@0 8725 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@0 8726 #else
Chris@0 8727 # ifdef DL_GLOBAL
Chris@0 8728 # define LT_DLGLOBAL DL_GLOBAL
Chris@0 8729 # else
Chris@0 8730 # define LT_DLGLOBAL 0
Chris@0 8731 # endif
Chris@0 8732 #endif
Chris@0 8733
Chris@0 8734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@0 8735 find out it does not work in some platform. */
Chris@0 8736 #ifndef LT_DLLAZY_OR_NOW
Chris@0 8737 # ifdef RTLD_LAZY
Chris@0 8738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@0 8739 # else
Chris@0 8740 # ifdef DL_LAZY
Chris@0 8741 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@0 8742 # else
Chris@0 8743 # ifdef RTLD_NOW
Chris@0 8744 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@0 8745 # else
Chris@0 8746 # ifdef DL_NOW
Chris@0 8747 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@0 8748 # else
Chris@0 8749 # define LT_DLLAZY_OR_NOW 0
Chris@0 8750 # endif
Chris@0 8751 # endif
Chris@0 8752 # endif
Chris@0 8753 # endif
Chris@0 8754 #endif
Chris@0 8755
Chris@0 8756 #ifdef __cplusplus
Chris@0 8757 extern "C" void exit (int);
Chris@0 8758 #endif
Chris@0 8759
Chris@0 8760 void fnord() { int i=42;}
Chris@0 8761 int main ()
Chris@0 8762 {
Chris@0 8763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@0 8764 int status = $lt_dlunknown;
Chris@0 8765
Chris@0 8766 if (self)
Chris@0 8767 {
Chris@0 8768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@0 8769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@0 8770 /* dlclose (self); */
Chris@0 8771 }
Chris@0 8772
Chris@0 8773 exit (status);
Chris@0 8774 }
Chris@0 8775 EOF
Chris@0 8776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8777 (eval $ac_link) 2>&5
Chris@0 8778 ac_status=$?
Chris@0 8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@0 8781 (./conftest; exit; ) 2>/dev/null
Chris@0 8782 lt_status=$?
Chris@0 8783 case x$lt_status in
Chris@0 8784 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@0 8785 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@0 8786 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
Chris@0 8787 esac
Chris@0 8788 else :
Chris@0 8789 # compilation failed
Chris@0 8790 lt_cv_dlopen_self=no
Chris@0 8791 fi
Chris@0 8792 fi
Chris@0 8793 rm -fr conftest*
Chris@0 8794
Chris@0 8795
Chris@0 8796 fi
Chris@0 8797 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
Chris@0 8798 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
Chris@0 8799
Chris@0 8800 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@0 8801 LDFLAGS="$LDFLAGS $link_static_flag"
Chris@0 8802 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
Chris@0 8803 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
Chris@0 8804 if test "${lt_cv_dlopen_self_static+set}" = set; then
Chris@0 8805 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 8806 else
Chris@0 8807 if test "$cross_compiling" = yes; then :
Chris@0 8808 lt_cv_dlopen_self_static=cross
Chris@0 8809 else
Chris@0 8810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@0 8811 lt_status=$lt_dlunknown
Chris@0 8812 cat > conftest.$ac_ext <<EOF
Chris@0 8813 #line 8813 "configure"
Chris@0 8814 #include "confdefs.h"
Chris@0 8815
Chris@0 8816 #if HAVE_DLFCN_H
Chris@0 8817 #include <dlfcn.h>
Chris@0 8818 #endif
Chris@0 8819
Chris@0 8820 #include <stdio.h>
Chris@0 8821
Chris@0 8822 #ifdef RTLD_GLOBAL
Chris@0 8823 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@0 8824 #else
Chris@0 8825 # ifdef DL_GLOBAL
Chris@0 8826 # define LT_DLGLOBAL DL_GLOBAL
Chris@0 8827 # else
Chris@0 8828 # define LT_DLGLOBAL 0
Chris@0 8829 # endif
Chris@0 8830 #endif
Chris@0 8831
Chris@0 8832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@0 8833 find out it does not work in some platform. */
Chris@0 8834 #ifndef LT_DLLAZY_OR_NOW
Chris@0 8835 # ifdef RTLD_LAZY
Chris@0 8836 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@0 8837 # else
Chris@0 8838 # ifdef DL_LAZY
Chris@0 8839 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@0 8840 # else
Chris@0 8841 # ifdef RTLD_NOW
Chris@0 8842 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@0 8843 # else
Chris@0 8844 # ifdef DL_NOW
Chris@0 8845 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@0 8846 # else
Chris@0 8847 # define LT_DLLAZY_OR_NOW 0
Chris@0 8848 # endif
Chris@0 8849 # endif
Chris@0 8850 # endif
Chris@0 8851 # endif
Chris@0 8852 #endif
Chris@0 8853
Chris@0 8854 #ifdef __cplusplus
Chris@0 8855 extern "C" void exit (int);
Chris@0 8856 #endif
Chris@0 8857
Chris@0 8858 void fnord() { int i=42;}
Chris@0 8859 int main ()
Chris@0 8860 {
Chris@0 8861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@0 8862 int status = $lt_dlunknown;
Chris@0 8863
Chris@0 8864 if (self)
Chris@0 8865 {
Chris@0 8866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@0 8867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@0 8868 /* dlclose (self); */
Chris@0 8869 }
Chris@0 8870
Chris@0 8871 exit (status);
Chris@0 8872 }
Chris@0 8873 EOF
Chris@0 8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 8875 (eval $ac_link) 2>&5
Chris@0 8876 ac_status=$?
Chris@0 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 8878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@0 8879 (./conftest; exit; ) 2>/dev/null
Chris@0 8880 lt_status=$?
Chris@0 8881 case x$lt_status in
Chris@0 8882 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@0 8883 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@0 8884 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@0 8885 esac
Chris@0 8886 else :
Chris@0 8887 # compilation failed
Chris@0 8888 lt_cv_dlopen_self_static=no
Chris@0 8889 fi
Chris@0 8890 fi
Chris@0 8891 rm -fr conftest*
Chris@0 8892
Chris@0 8893
Chris@0 8894 fi
Chris@0 8895 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
Chris@0 8896 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
Chris@0 8897 fi
Chris@0 8898
Chris@0 8899 CPPFLAGS="$save_CPPFLAGS"
Chris@0 8900 LDFLAGS="$save_LDFLAGS"
Chris@0 8901 LIBS="$save_LIBS"
Chris@0 8902 ;;
Chris@0 8903 esac
Chris@0 8904
Chris@0 8905 case $lt_cv_dlopen_self in
Chris@0 8906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@0 8907 *) enable_dlopen_self=unknown ;;
Chris@0 8908 esac
Chris@0 8909
Chris@0 8910 case $lt_cv_dlopen_self_static in
Chris@0 8911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@0 8912 *) enable_dlopen_self_static=unknown ;;
Chris@0 8913 esac
Chris@0 8914 fi
Chris@0 8915
Chris@0 8916
Chris@0 8917 # Report which librarie types wil actually be built
Chris@0 8918 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Chris@0 8919 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
Chris@0 8920 echo "$as_me:$LINENO: result: $can_build_shared" >&5
Chris@0 8921 echo "${ECHO_T}$can_build_shared" >&6
Chris@0 8922
Chris@0 8923 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Chris@0 8924 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
Chris@0 8925 test "$can_build_shared" = "no" && enable_shared=no
Chris@0 8926
Chris@0 8927 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@0 8928 # are all built from PIC.
Chris@0 8929 case "$host_os" in
Chris@0 8930 aix3*)
Chris@0 8931 test "$enable_shared" = yes && enable_static=no
Chris@0 8932 if test -n "$RANLIB"; then
Chris@0 8933 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@0 8934 postinstall_cmds='$RANLIB $lib'
Chris@0 8935 fi
Chris@0 8936 ;;
Chris@0 8937
Chris@0 8938 aix4*)
Chris@0 8939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@0 8940 test "$enable_shared" = yes && enable_static=no
Chris@0 8941 fi
Chris@0 8942 ;;
Chris@0 8943 darwin* | rhapsody*)
Chris@0 8944 if test "$GCC" = yes; then
Chris@0 8945 archive_cmds_need_lc=no
Chris@0 8946 case "$host_os" in
Chris@0 8947 rhapsody* | darwin1.[012])
Chris@0 8948 allow_undefined_flag='-undefined suppress'
Chris@0 8949 ;;
Chris@0 8950 *) # Darwin 1.3 on
Chris@0 8951 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
Chris@0 8952 allow_undefined_flag='-flat_namespace -undefined suppress'
Chris@0 8953 else
Chris@0 8954 case ${MACOSX_DEPLOYMENT_TARGET} in
Chris@0 8955 10.[012])
Chris@0 8956 allow_undefined_flag='-flat_namespace -undefined suppress'
Chris@0 8957 ;;
Chris@0 8958 10.*)
Chris@0 8959 allow_undefined_flag='-undefined dynamic_lookup'
Chris@0 8960 ;;
Chris@0 8961 esac
Chris@0 8962 fi
Chris@0 8963 ;;
Chris@0 8964 esac
Chris@0 8965 output_verbose_link_cmd='echo'
Chris@0 8966 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
Chris@0 8967 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Chris@0 8968 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Chris@0 8969 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}'
Chris@0 8970 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}'
Chris@0 8971 hardcode_direct=no
Chris@0 8972 hardcode_automatic=yes
Chris@0 8973 hardcode_shlibpath_var=unsupported
Chris@0 8974 whole_archive_flag_spec='-all_load $convenience'
Chris@0 8975 link_all_deplibs=yes
Chris@0 8976 else
Chris@0 8977 ld_shlibs=no
Chris@0 8978 fi
Chris@0 8979 ;;
Chris@0 8980 esac
Chris@0 8981 echo "$as_me:$LINENO: result: $enable_shared" >&5
Chris@0 8982 echo "${ECHO_T}$enable_shared" >&6
Chris@0 8983
Chris@0 8984 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Chris@0 8985 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
Chris@0 8986 # Make sure either enable_shared or enable_static is yes.
Chris@0 8987 test "$enable_shared" = yes || enable_static=yes
Chris@0 8988 echo "$as_me:$LINENO: result: $enable_static" >&5
Chris@0 8989 echo "${ECHO_T}$enable_static" >&6
Chris@0 8990
Chris@0 8991 # The else clause should only fire when bootstrapping the
Chris@0 8992 # libtool distribution, otherwise you forgot to ship ltmain.sh
Chris@0 8993 # with your package, and you will get complaints that there are
Chris@0 8994 # no rules to generate ltmain.sh.
Chris@0 8995 if test -f "$ltmain"; then
Chris@0 8996 # See if we are running on zsh, and set the options which allow our commands through
Chris@0 8997 # without removal of \ escapes.
Chris@0 8998 if test -n "${ZSH_VERSION+set}" ; then
Chris@0 8999 setopt NO_GLOB_SUBST
Chris@0 9000 fi
Chris@0 9001 # Now quote all the things that may contain metacharacters while being
Chris@0 9002 # careful not to overquote the AC_SUBSTed values. We take copies of the
Chris@0 9003 # variables and quote the copies for generation of the libtool script.
Chris@0 9004 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
Chris@0 9005 SED SHELL STRIP \
Chris@0 9006 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
Chris@0 9007 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
Chris@0 9008 deplibs_check_method reload_flag reload_cmds need_locks \
Chris@0 9009 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
Chris@0 9010 lt_cv_sys_global_symbol_to_c_name_address \
Chris@0 9011 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Chris@0 9012 old_postinstall_cmds old_postuninstall_cmds \
Chris@0 9013 compiler \
Chris@0 9014 CC \
Chris@0 9015 LD \
Chris@0 9016 lt_prog_compiler_wl \
Chris@0 9017 lt_prog_compiler_pic \
Chris@0 9018 lt_prog_compiler_static \
Chris@0 9019 lt_prog_compiler_no_builtin_flag \
Chris@0 9020 export_dynamic_flag_spec \
Chris@0 9021 thread_safe_flag_spec \
Chris@0 9022 whole_archive_flag_spec \
Chris@0 9023 enable_shared_with_static_runtimes \
Chris@0 9024 old_archive_cmds \
Chris@0 9025 old_archive_from_new_cmds \
Chris@0 9026 predep_objects \
Chris@0 9027 postdep_objects \
Chris@0 9028 predeps \
Chris@0 9029 postdeps \
Chris@0 9030 compiler_lib_search_path \
Chris@0 9031 archive_cmds \
Chris@0 9032 archive_expsym_cmds \
Chris@0 9033 postinstall_cmds \
Chris@0 9034 postuninstall_cmds \
Chris@0 9035 old_archive_from_expsyms_cmds \
Chris@0 9036 allow_undefined_flag \
Chris@0 9037 no_undefined_flag \
Chris@0 9038 export_symbols_cmds \
Chris@0 9039 hardcode_libdir_flag_spec \
Chris@0 9040 hardcode_libdir_flag_spec_ld \
Chris@0 9041 hardcode_libdir_separator \
Chris@0 9042 hardcode_automatic \
Chris@0 9043 module_cmds \
Chris@0 9044 module_expsym_cmds \
Chris@0 9045 lt_cv_prog_compiler_c_o \
Chris@0 9046 exclude_expsyms \
Chris@0 9047 include_expsyms; do
Chris@0 9048
Chris@0 9049 case $var in
Chris@0 9050 old_archive_cmds | \
Chris@0 9051 old_archive_from_new_cmds | \
Chris@0 9052 archive_cmds | \
Chris@0 9053 archive_expsym_cmds | \
Chris@0 9054 module_cmds | \
Chris@0 9055 module_expsym_cmds | \
Chris@0 9056 old_archive_from_expsyms_cmds | \
Chris@0 9057 export_symbols_cmds | \
Chris@0 9058 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Chris@0 9059 postinstall_cmds | postuninstall_cmds | \
Chris@0 9060 old_postinstall_cmds | old_postuninstall_cmds | \
Chris@0 9061 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Chris@0 9062 # Double-quote double-evaled strings.
Chris@0 9063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
Chris@0 9064 ;;
Chris@0 9065 *)
Chris@0 9066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
Chris@0 9067 ;;
Chris@0 9068 esac
Chris@0 9069 done
Chris@0 9070
Chris@0 9071 case $lt_echo in
Chris@0 9072 *'\$0 --fallback-echo"')
Chris@0 9073 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
Chris@0 9074 ;;
Chris@0 9075 esac
Chris@0 9076
Chris@0 9077 cfgfile="${ofile}T"
Chris@0 9078 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
Chris@0 9079 $rm -f "$cfgfile"
Chris@0 9080 { echo "$as_me:$LINENO: creating $ofile" >&5
Chris@0 9081 echo "$as_me: creating $ofile" >&6;}
Chris@0 9082
Chris@0 9083 cat <<__EOF__ >> "$cfgfile"
Chris@0 9084 #! $SHELL
Chris@0 9085
Chris@0 9086 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Chris@0 9087 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
Chris@0 9088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@0 9089 #
Chris@0 9090 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
Chris@0 9091 # Free Software Foundation, Inc.
Chris@0 9092 #
Chris@0 9093 # This file is part of GNU Libtool:
Chris@0 9094 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
Chris@0 9095 #
Chris@0 9096 # This program is free software; you can redistribute it and/or modify
Chris@0 9097 # it under the terms of the GNU General Public License as published by
Chris@0 9098 # the Free Software Foundation; either version 2 of the License, or
Chris@0 9099 # (at your option) any later version.
Chris@0 9100 #
Chris@0 9101 # This program is distributed in the hope that it will be useful, but
Chris@0 9102 # WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@0 9103 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Chris@0 9104 # General Public License for more details.
Chris@0 9105 #
Chris@0 9106 # You should have received a copy of the GNU General Public License
Chris@0 9107 # along with this program; if not, write to the Free Software
Chris@0 9108 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Chris@0 9109 #
Chris@0 9110 # As a special exception to the GNU General Public License, if you
Chris@0 9111 # distribute this file as part of a program that contains a
Chris@0 9112 # configuration script generated by Autoconf, you may include it under
Chris@0 9113 # the same distribution terms that you use for the rest of that program.
Chris@0 9114
Chris@0 9115 # A sed program that does not truncate output.
Chris@0 9116 SED=$lt_SED
Chris@0 9117
Chris@0 9118 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@0 9119 Xsed="$SED -e s/^X//"
Chris@0 9120
Chris@0 9121 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@0 9122 # if CDPATH is set.
Chris@0 9123 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
Chris@0 9124
Chris@0 9125 # The names of the tagged configurations supported by this script.
Chris@0 9126 available_tags=
Chris@0 9127
Chris@0 9128 # ### BEGIN LIBTOOL CONFIG
Chris@0 9129
Chris@0 9130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@0 9131
Chris@0 9132 # Shell to use when invoking shell scripts.
Chris@0 9133 SHELL=$lt_SHELL
Chris@0 9134
Chris@0 9135 # Whether or not to build shared libraries.
Chris@0 9136 build_libtool_libs=$enable_shared
Chris@0 9137
Chris@0 9138 # Whether or not to build static libraries.
Chris@0 9139 build_old_libs=$enable_static
Chris@0 9140
Chris@0 9141 # Whether or not to add -lc for building shared libraries.
Chris@0 9142 build_libtool_need_lc=$archive_cmds_need_lc
Chris@0 9143
Chris@0 9144 # Whether or not to disallow shared libs when runtime libs are static
Chris@0 9145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@0 9146
Chris@0 9147 # Whether or not to optimize for fast installation.
Chris@0 9148 fast_install=$enable_fast_install
Chris@0 9149
Chris@0 9150 # The host system.
Chris@0 9151 host_alias=$host_alias
Chris@0 9152 host=$host
Chris@0 9153
Chris@0 9154 # An echo program that does not interpret backslashes.
Chris@0 9155 echo=$lt_echo
Chris@0 9156
Chris@0 9157 # The archiver.
Chris@0 9158 AR=$lt_AR
Chris@0 9159 AR_FLAGS=$lt_AR_FLAGS
Chris@0 9160
Chris@0 9161 # A C compiler.
Chris@0 9162 LTCC=$lt_LTCC
Chris@0 9163
Chris@0 9164 # A language-specific compiler.
Chris@0 9165 CC=$lt_compiler
Chris@0 9166
Chris@0 9167 # Is the compiler the GNU C compiler?
Chris@0 9168 with_gcc=$GCC
Chris@0 9169
Chris@0 9170 # An ERE matcher.
Chris@0 9171 EGREP=$lt_EGREP
Chris@0 9172
Chris@0 9173 # The linker used to build libraries.
Chris@0 9174 LD=$lt_LD
Chris@0 9175
Chris@0 9176 # Whether we need hard or soft links.
Chris@0 9177 LN_S=$lt_LN_S
Chris@0 9178
Chris@0 9179 # A BSD-compatible nm program.
Chris@0 9180 NM=$lt_NM
Chris@0 9181
Chris@0 9182 # A symbol stripping program
Chris@0 9183 STRIP=$lt_STRIP
Chris@0 9184
Chris@0 9185 # Used to examine libraries when file_magic_cmd begins "file"
Chris@0 9186 MAGIC_CMD=$MAGIC_CMD
Chris@0 9187
Chris@0 9188 # Used on cygwin: DLL creation program.
Chris@0 9189 DLLTOOL="$DLLTOOL"
Chris@0 9190
Chris@0 9191 # Used on cygwin: object dumper.
Chris@0 9192 OBJDUMP="$OBJDUMP"
Chris@0 9193
Chris@0 9194 # Used on cygwin: assembler.
Chris@0 9195 AS="$AS"
Chris@0 9196
Chris@0 9197 # The name of the directory that contains temporary libtool files.
Chris@0 9198 objdir=$objdir
Chris@0 9199
Chris@0 9200 # How to create reloadable object files.
Chris@0 9201 reload_flag=$lt_reload_flag
Chris@0 9202 reload_cmds=$lt_reload_cmds
Chris@0 9203
Chris@0 9204 # How to pass a linker flag through the compiler.
Chris@0 9205 wl=$lt_lt_prog_compiler_wl
Chris@0 9206
Chris@0 9207 # Object file suffix (normally "o").
Chris@0 9208 objext="$ac_objext"
Chris@0 9209
Chris@0 9210 # Old archive suffix (normally "a").
Chris@0 9211 libext="$libext"
Chris@0 9212
Chris@0 9213 # Shared library suffix (normally ".so").
Chris@0 9214 shrext='$shrext'
Chris@0 9215
Chris@0 9216 # Executable file suffix (normally "").
Chris@0 9217 exeext="$exeext"
Chris@0 9218
Chris@0 9219 # Additional compiler flags for building library objects.
Chris@0 9220 pic_flag=$lt_lt_prog_compiler_pic
Chris@0 9221 pic_mode=$pic_mode
Chris@0 9222
Chris@0 9223 # What is the maximum length of a command?
Chris@0 9224 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@0 9225
Chris@0 9226 # Does compiler simultaneously support -c and -o options?
Chris@0 9227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@0 9228
Chris@0 9229 # Must we lock files when doing compilation ?
Chris@0 9230 need_locks=$lt_need_locks
Chris@0 9231
Chris@0 9232 # Do we need the lib prefix for modules?
Chris@0 9233 need_lib_prefix=$need_lib_prefix
Chris@0 9234
Chris@0 9235 # Do we need a version for libraries?
Chris@0 9236 need_version=$need_version
Chris@0 9237
Chris@0 9238 # Whether dlopen is supported.
Chris@0 9239 dlopen_support=$enable_dlopen
Chris@0 9240
Chris@0 9241 # Whether dlopen of programs is supported.
Chris@0 9242 dlopen_self=$enable_dlopen_self
Chris@0 9243
Chris@0 9244 # Whether dlopen of statically linked programs is supported.
Chris@0 9245 dlopen_self_static=$enable_dlopen_self_static
Chris@0 9246
Chris@0 9247 # Compiler flag to prevent dynamic linking.
Chris@0 9248 link_static_flag=$lt_lt_prog_compiler_static
Chris@0 9249
Chris@0 9250 # Compiler flag to turn off builtin functions.
Chris@0 9251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@0 9252
Chris@0 9253 # Compiler flag to allow reflexive dlopens.
Chris@0 9254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@0 9255
Chris@0 9256 # Compiler flag to generate shared objects directly from archives.
Chris@0 9257 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@0 9258
Chris@0 9259 # Compiler flag to generate thread-safe objects.
Chris@0 9260 thread_safe_flag_spec=$lt_thread_safe_flag_spec
Chris@0 9261
Chris@0 9262 # Library versioning type.
Chris@0 9263 version_type=$version_type
Chris@0 9264
Chris@0 9265 # Format of library name prefix.
Chris@0 9266 libname_spec=$lt_libname_spec
Chris@0 9267
Chris@0 9268 # List of archive names. First name is the real one, the rest are links.
Chris@0 9269 # The last name is the one that the linker finds with -lNAME.
Chris@0 9270 library_names_spec=$lt_library_names_spec
Chris@0 9271
Chris@0 9272 # The coded name of the library, if different from the real name.
Chris@0 9273 soname_spec=$lt_soname_spec
Chris@0 9274
Chris@0 9275 # Commands used to build and install an old-style archive.
Chris@0 9276 RANLIB=$lt_RANLIB
Chris@0 9277 old_archive_cmds=$lt_old_archive_cmds
Chris@0 9278 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@0 9279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@0 9280
Chris@0 9281 # Create an old-style archive from a shared archive.
Chris@0 9282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@0 9283
Chris@0 9284 # Create a temporary old-style archive to link instead of a shared archive.
Chris@0 9285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@0 9286
Chris@0 9287 # Commands used to build and install a shared archive.
Chris@0 9288 archive_cmds=$lt_archive_cmds
Chris@0 9289 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@0 9290 postinstall_cmds=$lt_postinstall_cmds
Chris@0 9291 postuninstall_cmds=$lt_postuninstall_cmds
Chris@0 9292
Chris@0 9293 # Commands used to build a loadable module (assumed same as above if empty)
Chris@0 9294 module_cmds=$lt_module_cmds
Chris@0 9295 module_expsym_cmds=$lt_module_expsym_cmds
Chris@0 9296
Chris@0 9297 # Commands to strip libraries.
Chris@0 9298 old_striplib=$lt_old_striplib
Chris@0 9299 striplib=$lt_striplib
Chris@0 9300
Chris@0 9301 # Dependencies to place before the objects being linked to create a
Chris@0 9302 # shared library.
Chris@0 9303 predep_objects=$lt_predep_objects
Chris@0 9304
Chris@0 9305 # Dependencies to place after the objects being linked to create a
Chris@0 9306 # shared library.
Chris@0 9307 postdep_objects=$lt_postdep_objects
Chris@0 9308
Chris@0 9309 # Dependencies to place before the objects being linked to create a
Chris@0 9310 # shared library.
Chris@0 9311 predeps=$lt_predeps
Chris@0 9312
Chris@0 9313 # Dependencies to place after the objects being linked to create a
Chris@0 9314 # shared library.
Chris@0 9315 postdeps=$lt_postdeps
Chris@0 9316
Chris@0 9317 # The library search path used internally by the compiler when linking
Chris@0 9318 # a shared library.
Chris@0 9319 compiler_lib_search_path=$lt_compiler_lib_search_path
Chris@0 9320
Chris@0 9321 # Method to check whether dependent libraries are shared objects.
Chris@0 9322 deplibs_check_method=$lt_deplibs_check_method
Chris@0 9323
Chris@0 9324 # Command to use when deplibs_check_method == file_magic.
Chris@0 9325 file_magic_cmd=$lt_file_magic_cmd
Chris@0 9326
Chris@0 9327 # Flag that allows shared libraries with undefined symbols to be built.
Chris@0 9328 allow_undefined_flag=$lt_allow_undefined_flag
Chris@0 9329
Chris@0 9330 # Flag that forces no undefined symbols.
Chris@0 9331 no_undefined_flag=$lt_no_undefined_flag
Chris@0 9332
Chris@0 9333 # Commands used to finish a libtool library installation in a directory.
Chris@0 9334 finish_cmds=$lt_finish_cmds
Chris@0 9335
Chris@0 9336 # Same as above, but a single script fragment to be evaled but not shown.
Chris@0 9337 finish_eval=$lt_finish_eval
Chris@0 9338
Chris@0 9339 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@0 9340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@0 9341
Chris@0 9342 # Transform the output of nm in a proper C declaration
Chris@0 9343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@0 9344
Chris@0 9345 # Transform the output of nm in a C name address pair
Chris@0 9346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@0 9347
Chris@0 9348 # This is the shared library runtime path variable.
Chris@0 9349 runpath_var=$runpath_var
Chris@0 9350
Chris@0 9351 # This is the shared library path variable.
Chris@0 9352 shlibpath_var=$shlibpath_var
Chris@0 9353
Chris@0 9354 # Is shlibpath searched before the hard-coded library search path?
Chris@0 9355 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@0 9356
Chris@0 9357 # How to hardcode a shared library path into an executable.
Chris@0 9358 hardcode_action=$hardcode_action
Chris@0 9359
Chris@0 9360 # Whether we should hardcode library paths into libraries.
Chris@0 9361 hardcode_into_libs=$hardcode_into_libs
Chris@0 9362
Chris@0 9363 # Flag to hardcode \$libdir into a binary during linking.
Chris@0 9364 # This must work even if \$libdir does not exist.
Chris@0 9365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@0 9366
Chris@0 9367 # If ld is used when linking, flag to hardcode \$libdir into
Chris@0 9368 # a binary during linking. This must work even if \$libdir does
Chris@0 9369 # not exist.
Chris@0 9370 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
Chris@0 9371
Chris@0 9372 # Whether we need a single -rpath flag with a separated argument.
Chris@0 9373 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@0 9374
Chris@0 9375 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Chris@0 9376 # resulting binary.
Chris@0 9377 hardcode_direct=$hardcode_direct
Chris@0 9378
Chris@0 9379 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
Chris@0 9380 # resulting binary.
Chris@0 9381 hardcode_minus_L=$hardcode_minus_L
Chris@0 9382
Chris@0 9383 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
Chris@0 9384 # the resulting binary.
Chris@0 9385 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@0 9386
Chris@0 9387 # Set to yes if building a shared library automatically hardcodes DIR into the library
Chris@0 9388 # and all subsequent libraries and executables linked against it.
Chris@0 9389 hardcode_automatic=$hardcode_automatic
Chris@0 9390
Chris@0 9391 # Variables whose values should be saved in libtool wrapper scripts and
Chris@0 9392 # restored at relink time.
Chris@0 9393 variables_saved_for_relink="$variables_saved_for_relink"
Chris@0 9394
Chris@0 9395 # Whether libtool must link a program against all its dependency libraries.
Chris@0 9396 link_all_deplibs=$link_all_deplibs
Chris@0 9397
Chris@0 9398 # Compile-time system search path for libraries
Chris@0 9399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@0 9400
Chris@0 9401 # Run-time system search path for libraries
Chris@0 9402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@0 9403
Chris@0 9404 # Fix the shell variable \$srcfile for the compiler.
Chris@0 9405 fix_srcfile_path="$fix_srcfile_path"
Chris@0 9406
Chris@0 9407 # Set to yes if exported symbols are required.
Chris@0 9408 always_export_symbols=$always_export_symbols
Chris@0 9409
Chris@0 9410 # The commands to list exported symbols.
Chris@0 9411 export_symbols_cmds=$lt_export_symbols_cmds
Chris@0 9412
Chris@0 9413 # The commands to extract the exported symbol list from a shared archive.
Chris@0 9414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@0 9415
Chris@0 9416 # Symbols that should not be listed in the preloaded symbols.
Chris@0 9417 exclude_expsyms=$lt_exclude_expsyms
Chris@0 9418
Chris@0 9419 # Symbols that must always be exported.
Chris@0 9420 include_expsyms=$lt_include_expsyms
Chris@0 9421
Chris@0 9422 # ### END LIBTOOL CONFIG
Chris@0 9423
Chris@0 9424 __EOF__
Chris@0 9425
Chris@0 9426
Chris@0 9427 case $host_os in
Chris@0 9428 aix3*)
Chris@0 9429 cat <<\EOF >> "$cfgfile"
Chris@0 9430
Chris@0 9431 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@0 9432 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@0 9433 # vanish in a puff of smoke.
Chris@0 9434 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@0 9435 COLLECT_NAMES=
Chris@0 9436 export COLLECT_NAMES
Chris@0 9437 fi
Chris@0 9438 EOF
Chris@0 9439 ;;
Chris@0 9440 esac
Chris@0 9441
Chris@0 9442 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@0 9443 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@0 9444 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@0 9445 # is reportedly fixed, but why not run on old versions too?
Chris@0 9446 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
Chris@0 9447
Chris@0 9448 mv -f "$cfgfile" "$ofile" || \
Chris@0 9449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@0 9450 chmod +x "$ofile"
Chris@0 9451
Chris@0 9452 else
Chris@0 9453 # If there is no Makefile yet, we rely on a make rule to execute
Chris@0 9454 # `config.status --recheck' to rerun these tests and create the
Chris@0 9455 # libtool script then.
Chris@0 9456 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
Chris@0 9457 if test -f "$ltmain_in"; then
Chris@0 9458 test -f Makefile && make "$ltmain"
Chris@0 9459 fi
Chris@0 9460 fi
Chris@0 9461
Chris@0 9462
Chris@0 9463 ac_ext=c
Chris@0 9464 ac_cpp='$CPP $CPPFLAGS'
Chris@0 9465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 9466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 9467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 9468
Chris@0 9469 CC="$lt_save_CC"
Chris@0 9470
Chris@0 9471
Chris@0 9472 # Check whether --with-tags or --without-tags was given.
Chris@0 9473 if test "${with_tags+set}" = set; then
Chris@0 9474 withval="$with_tags"
Chris@0 9475 tagnames="$withval"
Chris@0 9476 fi;
Chris@0 9477
Chris@0 9478 if test -f "$ltmain" && test -n "$tagnames"; then
Chris@0 9479 if test ! -f "${ofile}"; then
Chris@0 9480 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
Chris@0 9481 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
Chris@0 9482 fi
Chris@0 9483
Chris@0 9484 if test -z "$LTCC"; then
Chris@0 9485 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
Chris@0 9486 if test -z "$LTCC"; then
Chris@0 9487 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
Chris@0 9488 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
Chris@0 9489 else
Chris@0 9490 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
Chris@0 9491 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
Chris@0 9492 fi
Chris@0 9493 fi
Chris@0 9494
Chris@0 9495 # Extract list of available tagged configurations in $ofile.
Chris@0 9496 # Note that this assumes the entire list is on one line.
Chris@0 9497 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
Chris@0 9498
Chris@0 9499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@0 9500 for tagname in $tagnames; do
Chris@0 9501 IFS="$lt_save_ifs"
Chris@0 9502 # Check whether tagname contains only valid characters
Chris@0 9503 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
Chris@0 9504 "") ;;
Chris@0 9505 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
Chris@0 9506 echo "$as_me: error: invalid tag name: $tagname" >&2;}
Chris@0 9507 { (exit 1); exit 1; }; }
Chris@0 9508 ;;
Chris@0 9509 esac
Chris@0 9510
Chris@0 9511 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
Chris@0 9512 then
Chris@0 9513 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
Chris@0 9514 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
Chris@0 9515 { (exit 1); exit 1; }; }
Chris@0 9516 fi
Chris@0 9517
Chris@0 9518 # Update the list of available tags.
Chris@0 9519 if test -n "$tagname"; then
Chris@0 9520 echo appending configuration tag \"$tagname\" to $ofile
Chris@0 9521
Chris@0 9522 case $tagname in
Chris@0 9523 CXX)
Chris@0 9524 if test -n "$CXX" && test "X$CXX" != "Xno"; then
Chris@0 9525 ac_ext=cc
Chris@0 9526 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@0 9527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 9528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 9529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@0 9530
Chris@0 9531
Chris@0 9532
Chris@0 9533
Chris@0 9534 archive_cmds_need_lc_CXX=no
Chris@0 9535 allow_undefined_flag_CXX=
Chris@0 9536 always_export_symbols_CXX=no
Chris@0 9537 archive_expsym_cmds_CXX=
Chris@0 9538 export_dynamic_flag_spec_CXX=
Chris@0 9539 hardcode_direct_CXX=no
Chris@0 9540 hardcode_libdir_flag_spec_CXX=
Chris@0 9541 hardcode_libdir_flag_spec_ld_CXX=
Chris@0 9542 hardcode_libdir_separator_CXX=
Chris@0 9543 hardcode_minus_L_CXX=no
Chris@0 9544 hardcode_automatic_CXX=no
Chris@0 9545 module_cmds_CXX=
Chris@0 9546 module_expsym_cmds_CXX=
Chris@0 9547 link_all_deplibs_CXX=unknown
Chris@0 9548 old_archive_cmds_CXX=$old_archive_cmds
Chris@0 9549 no_undefined_flag_CXX=
Chris@0 9550 whole_archive_flag_spec_CXX=
Chris@0 9551 enable_shared_with_static_runtimes_CXX=no
Chris@0 9552
Chris@0 9553 # Dependencies to place before and after the object being linked:
Chris@0 9554 predep_objects_CXX=
Chris@0 9555 postdep_objects_CXX=
Chris@0 9556 predeps_CXX=
Chris@0 9557 postdeps_CXX=
Chris@0 9558 compiler_lib_search_path_CXX=
Chris@0 9559
Chris@0 9560 # Source file extension for C++ test sources.
Chris@0 9561 ac_ext=cc
Chris@0 9562
Chris@0 9563 # Object file extension for compiled C++ test sources.
Chris@0 9564 objext=o
Chris@0 9565 objext_CXX=$objext
Chris@0 9566
Chris@0 9567 # Code to be used in simple compile tests
Chris@0 9568 lt_simple_compile_test_code="int some_variable = 0;\n"
Chris@0 9569
Chris@0 9570 # Code to be used in simple link tests
Chris@0 9571 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
Chris@0 9572
Chris@0 9573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@0 9574
Chris@0 9575 # If no C compiler was specified, use CC.
Chris@0 9576 LTCC=${LTCC-"$CC"}
Chris@0 9577
Chris@0 9578 # Allow CC to be a program name with arguments.
Chris@0 9579 compiler=$CC
Chris@0 9580
Chris@0 9581
Chris@0 9582 # Allow CC to be a program name with arguments.
Chris@0 9583 lt_save_CC=$CC
Chris@0 9584 lt_save_LD=$LD
Chris@0 9585 lt_save_GCC=$GCC
Chris@0 9586 GCC=$GXX
Chris@0 9587 lt_save_with_gnu_ld=$with_gnu_ld
Chris@0 9588 lt_save_path_LD=$lt_cv_path_LD
Chris@0 9589 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
Chris@0 9590 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
Chris@0 9591 else
Chris@0 9592 unset lt_cv_prog_gnu_ld
Chris@0 9593 fi
Chris@0 9594 if test -n "${lt_cv_path_LDCXX+set}"; then
Chris@0 9595 lt_cv_path_LD=$lt_cv_path_LDCXX
Chris@0 9596 else
Chris@0 9597 unset lt_cv_path_LD
Chris@0 9598 fi
Chris@0 9599 test -z "${LDCXX+set}" || LD=$LDCXX
Chris@0 9600 CC=${CXX-"c++"}
Chris@0 9601 compiler=$CC
Chris@0 9602 compiler_CXX=$CC
Chris@0 9603 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
Chris@0 9604
Chris@0 9605 # We don't want -fno-exception wen compiling C++ code, so set the
Chris@0 9606 # no_builtin_flag separately
Chris@0 9607 if test "$GXX" = yes; then
Chris@0 9608 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
Chris@0 9609 else
Chris@0 9610 lt_prog_compiler_no_builtin_flag_CXX=
Chris@0 9611 fi
Chris@0 9612
Chris@0 9613 if test "$GXX" = yes; then
Chris@0 9614 # Set up default GNU C++ configuration
Chris@0 9615
Chris@0 9616
Chris@0 9617 # Check whether --with-gnu-ld or --without-gnu-ld was given.
Chris@0 9618 if test "${with_gnu_ld+set}" = set; then
Chris@0 9619 withval="$with_gnu_ld"
Chris@0 9620 test "$withval" = no || with_gnu_ld=yes
Chris@0 9621 else
Chris@0 9622 with_gnu_ld=no
Chris@0 9623 fi;
Chris@0 9624 ac_prog=ld
Chris@0 9625 if test "$GCC" = yes; then
Chris@0 9626 # Check if gcc -print-prog-name=ld gives a path.
Chris@0 9627 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
Chris@0 9628 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
Chris@0 9629 case $host in
Chris@0 9630 *-*-mingw*)
Chris@0 9631 # gcc leaves a trailing carriage return which upsets mingw
Chris@0 9632 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@0 9633 *)
Chris@0 9634 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@0 9635 esac
Chris@0 9636 case $ac_prog in
Chris@0 9637 # Accept absolute paths.
Chris@0 9638 [\\/]* | ?:[\\/]*)
Chris@0 9639 re_direlt='/[^/][^/]*/\.\./'
Chris@0 9640 # Canonicalize the pathname of ld
Chris@0 9641 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
Chris@0 9642 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
Chris@0 9643 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Chris@0 9644 done
Chris@0 9645 test -z "$LD" && LD="$ac_prog"
Chris@0 9646 ;;
Chris@0 9647 "")
Chris@0 9648 # If it fails, then pretend we aren't using GCC.
Chris@0 9649 ac_prog=ld
Chris@0 9650 ;;
Chris@0 9651 *)
Chris@0 9652 # If it is relative, then search for the first ld in PATH.
Chris@0 9653 with_gnu_ld=unknown
Chris@0 9654 ;;
Chris@0 9655 esac
Chris@0 9656 elif test "$with_gnu_ld" = yes; then
Chris@0 9657 echo "$as_me:$LINENO: checking for GNU ld" >&5
Chris@0 9658 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
Chris@0 9659 else
Chris@0 9660 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
Chris@0 9661 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
Chris@0 9662 fi
Chris@0 9663 if test "${lt_cv_path_LD+set}" = set; then
Chris@0 9664 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 9665 else
Chris@0 9666 if test -z "$LD"; then
Chris@0 9667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@0 9668 for ac_dir in $PATH; do
Chris@0 9669 IFS="$lt_save_ifs"
Chris@0 9670 test -z "$ac_dir" && ac_dir=.
Chris@0 9671 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@0 9672 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@0 9673 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@0 9674 # but apparently some GNU ld's only accept -v.
Chris@0 9675 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@0 9676 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@0 9677 *GNU* | *'with BFD'*)
Chris@0 9678 test "$with_gnu_ld" != no && break
Chris@0 9679 ;;
Chris@0 9680 *)
Chris@0 9681 test "$with_gnu_ld" != yes && break
Chris@0 9682 ;;
Chris@0 9683 esac
Chris@0 9684 fi
Chris@0 9685 done
Chris@0 9686 IFS="$lt_save_ifs"
Chris@0 9687 else
Chris@0 9688 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@0 9689 fi
Chris@0 9690 fi
Chris@0 9691
Chris@0 9692 LD="$lt_cv_path_LD"
Chris@0 9693 if test -n "$LD"; then
Chris@0 9694 echo "$as_me:$LINENO: result: $LD" >&5
Chris@0 9695 echo "${ECHO_T}$LD" >&6
Chris@0 9696 else
Chris@0 9697 echo "$as_me:$LINENO: result: no" >&5
Chris@0 9698 echo "${ECHO_T}no" >&6
Chris@0 9699 fi
Chris@0 9700 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
Chris@0 9701 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Chris@0 9702 { (exit 1); exit 1; }; }
Chris@0 9703 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
Chris@0 9704 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
Chris@0 9705 if test "${lt_cv_prog_gnu_ld+set}" = set; then
Chris@0 9706 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 9707 else
Chris@0 9708 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Chris@0 9709 case `$LD -v 2>&1 </dev/null` in
Chris@0 9710 *GNU* | *'with BFD'*)
Chris@0 9711 lt_cv_prog_gnu_ld=yes
Chris@0 9712 ;;
Chris@0 9713 *)
Chris@0 9714 lt_cv_prog_gnu_ld=no
Chris@0 9715 ;;
Chris@0 9716 esac
Chris@0 9717 fi
Chris@0 9718 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
Chris@0 9719 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
Chris@0 9720 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@0 9721
Chris@0 9722
Chris@0 9723
Chris@0 9724 # Check if GNU C++ uses GNU ld as the underlying linker, since the
Chris@0 9725 # archiving commands below assume that GNU ld is being used.
Chris@0 9726 if test "$with_gnu_ld" = yes; then
Chris@0 9727 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 9728 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'
Chris@0 9729
Chris@0 9730 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
Chris@0 9731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@0 9732
Chris@0 9733 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@0 9734 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
Chris@0 9735 # investigate it a little bit more. (MM)
Chris@0 9736 wlarc='${wl}'
Chris@0 9737
Chris@0 9738 # ancient GNU ld didn't support --whole-archive et. al.
Chris@0 9739 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
Chris@0 9740 grep 'no-whole-archive' > /dev/null; then
Chris@0 9741 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@0 9742 else
Chris@0 9743 whole_archive_flag_spec_CXX=
Chris@0 9744 fi
Chris@0 9745 else
Chris@0 9746 with_gnu_ld=no
Chris@0 9747 wlarc=
Chris@0 9748
Chris@0 9749 # A generic and very simple default shared library creation
Chris@0 9750 # command for GNU C++ for the case where it uses the native
Chris@0 9751 # linker, instead of GNU ld. If possible, this setting should
Chris@0 9752 # overridden to take advantage of the native linker features on
Chris@0 9753 # the platform it is being used on.
Chris@0 9754 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Chris@0 9755 fi
Chris@0 9756
Chris@0 9757 # Commands to make compiler produce verbose output that lists
Chris@0 9758 # what "hidden" libraries, object files and flags are used when
Chris@0 9759 # linking a shared library.
Chris@0 9760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
Chris@0 9761
Chris@0 9762 else
Chris@0 9763 GXX=no
Chris@0 9764 with_gnu_ld=no
Chris@0 9765 wlarc=
Chris@0 9766 fi
Chris@0 9767
Chris@0 9768 # PORTME: fill in a description of your system's C++ link characteristics
Chris@0 9769 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@0 9770 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
Chris@0 9771 ld_shlibs_CXX=yes
Chris@0 9772 case $host_os in
Chris@0 9773 aix3*)
Chris@0 9774 # FIXME: insert proper C++ library support
Chris@0 9775 ld_shlibs_CXX=no
Chris@0 9776 ;;
Chris@0 9777 aix4* | aix5*)
Chris@0 9778 if test "$host_cpu" = ia64; then
Chris@0 9779 # On IA64, the linker does run time linking by default, so we don't
Chris@0 9780 # have to do anything special.
Chris@0 9781 aix_use_runtimelinking=no
Chris@0 9782 exp_sym_flag='-Bexport'
Chris@0 9783 no_entry_flag=""
Chris@0 9784 else
Chris@0 9785 aix_use_runtimelinking=no
Chris@0 9786
Chris@0 9787 # Test if we are trying to use run time linking or normal
Chris@0 9788 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@0 9789 # need to do runtime linking.
Chris@0 9790 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
Chris@0 9791 for ld_flag in $LDFLAGS; do
Chris@0 9792 case $ld_flag in
Chris@0 9793 *-brtl*)
Chris@0 9794 aix_use_runtimelinking=yes
Chris@0 9795 break
Chris@0 9796 ;;
Chris@0 9797 esac
Chris@0 9798 done
Chris@0 9799 esac
Chris@0 9800
Chris@0 9801 exp_sym_flag='-bexport'
Chris@0 9802 no_entry_flag='-bnoentry'
Chris@0 9803 fi
Chris@0 9804
Chris@0 9805 # When large executables or shared objects are built, AIX ld can
Chris@0 9806 # have problems creating the table of contents. If linking a library
Chris@0 9807 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@0 9808 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@0 9809 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@0 9810
Chris@0 9811 archive_cmds_CXX=''
Chris@0 9812 hardcode_direct_CXX=yes
Chris@0 9813 hardcode_libdir_separator_CXX=':'
Chris@0 9814 link_all_deplibs_CXX=yes
Chris@0 9815
Chris@0 9816 if test "$GXX" = yes; then
Chris@0 9817 case $host_os in aix4.012|aix4.012.*)
Chris@0 9818 # We only want to do this on AIX 4.2 and lower, the check
Chris@0 9819 # below for broken collect2 doesn't work under 4.3+
Chris@0 9820 collect2name=`${CC} -print-prog-name=collect2`
Chris@0 9821 if test -f "$collect2name" && \
Chris@0 9822 strings "$collect2name" | grep resolve_lib_name >/dev/null
Chris@0 9823 then
Chris@0 9824 # We have reworked collect2
Chris@0 9825 hardcode_direct_CXX=yes
Chris@0 9826 else
Chris@0 9827 # We have old collect2
Chris@0 9828 hardcode_direct_CXX=unsupported
Chris@0 9829 # It fails to find uninstalled libraries when the uninstalled
Chris@0 9830 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@0 9831 # to unsupported forces relinking
Chris@0 9832 hardcode_minus_L_CXX=yes
Chris@0 9833 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@0 9834 hardcode_libdir_separator_CXX=
Chris@0 9835 fi
Chris@0 9836 esac
Chris@0 9837 shared_flag='-shared'
Chris@0 9838 else
Chris@0 9839 # not using gcc
Chris@0 9840 if test "$host_cpu" = ia64; then
Chris@0 9841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@0 9842 # chokes on -Wl,-G. The following line is correct:
Chris@0 9843 shared_flag='-G'
Chris@0 9844 else
Chris@0 9845 if test "$aix_use_runtimelinking" = yes; then
Chris@0 9846 shared_flag='${wl}-G'
Chris@0 9847 else
Chris@0 9848 shared_flag='${wl}-bM:SRE'
Chris@0 9849 fi
Chris@0 9850 fi
Chris@0 9851 fi
Chris@0 9852
Chris@0 9853 # It seems that -bexpall does not export symbols beginning with
Chris@0 9854 # underscore (_), so it is better to generate a list of symbols to export.
Chris@0 9855 always_export_symbols_CXX=yes
Chris@0 9856 if test "$aix_use_runtimelinking" = yes; then
Chris@0 9857 # Warning - without using the other runtime loading flags (-brtl),
Chris@0 9858 # -berok will link without error, but may produce a broken library.
Chris@0 9859 allow_undefined_flag_CXX='-berok'
Chris@0 9860 # Determine the default libpath from the value encoded in an empty executable.
Chris@0 9861 cat >conftest.$ac_ext <<_ACEOF
Chris@0 9862 /* confdefs.h. */
Chris@0 9863 _ACEOF
Chris@0 9864 cat confdefs.h >>conftest.$ac_ext
Chris@0 9865 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 9866 /* end confdefs.h. */
Chris@0 9867
Chris@0 9868 int
Chris@0 9869 main ()
Chris@0 9870 {
Chris@0 9871
Chris@0 9872 ;
Chris@0 9873 return 0;
Chris@0 9874 }
Chris@0 9875 _ACEOF
Chris@0 9876 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 9878 (eval $ac_link) 2>conftest.er1
Chris@0 9879 ac_status=$?
Chris@0 9880 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 9881 rm -f conftest.er1
Chris@0 9882 cat conftest.err >&5
Chris@0 9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 9884 (exit $ac_status); } &&
Chris@0 9885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 9887 (eval $ac_try) 2>&5
Chris@0 9888 ac_status=$?
Chris@0 9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 9890 (exit $ac_status); }; } &&
Chris@0 9891 { ac_try='test -s conftest$ac_exeext'
Chris@0 9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 9893 (eval $ac_try) 2>&5
Chris@0 9894 ac_status=$?
Chris@0 9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 9896 (exit $ac_status); }; }; then
Chris@0 9897
Chris@0 9898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
Chris@0 9899 }'`
Chris@0 9900 # Check for a 64-bit object if we didn't find anything.
Chris@0 9901 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; }
Chris@0 9902 }'`; fi
Chris@0 9903 else
Chris@0 9904 echo "$as_me: failed program was:" >&5
Chris@0 9905 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 9906
Chris@0 9907 fi
Chris@0 9908 rm -f conftest.err conftest.$ac_objext \
Chris@0 9909 conftest$ac_exeext conftest.$ac_ext
Chris@0 9910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Chris@0 9911
Chris@0 9912 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@0 9913
Chris@0 9914 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"
Chris@0 9915 else
Chris@0 9916 if test "$host_cpu" = ia64; then
Chris@0 9917 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
Chris@0 9918 allow_undefined_flag_CXX="-z nodefs"
Chris@0 9919 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"
Chris@0 9920 else
Chris@0 9921 # Determine the default libpath from the value encoded in an empty executable.
Chris@0 9922 cat >conftest.$ac_ext <<_ACEOF
Chris@0 9923 /* confdefs.h. */
Chris@0 9924 _ACEOF
Chris@0 9925 cat confdefs.h >>conftest.$ac_ext
Chris@0 9926 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 9927 /* end confdefs.h. */
Chris@0 9928
Chris@0 9929 int
Chris@0 9930 main ()
Chris@0 9931 {
Chris@0 9932
Chris@0 9933 ;
Chris@0 9934 return 0;
Chris@0 9935 }
Chris@0 9936 _ACEOF
Chris@0 9937 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 9939 (eval $ac_link) 2>conftest.er1
Chris@0 9940 ac_status=$?
Chris@0 9941 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 9942 rm -f conftest.er1
Chris@0 9943 cat conftest.err >&5
Chris@0 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 9945 (exit $ac_status); } &&
Chris@0 9946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 9948 (eval $ac_try) 2>&5
Chris@0 9949 ac_status=$?
Chris@0 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 9951 (exit $ac_status); }; } &&
Chris@0 9952 { ac_try='test -s conftest$ac_exeext'
Chris@0 9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 9954 (eval $ac_try) 2>&5
Chris@0 9955 ac_status=$?
Chris@0 9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 9957 (exit $ac_status); }; }; then
Chris@0 9958
Chris@0 9959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
Chris@0 9960 }'`
Chris@0 9961 # Check for a 64-bit object if we didn't find anything.
Chris@0 9962 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; }
Chris@0 9963 }'`; fi
Chris@0 9964 else
Chris@0 9965 echo "$as_me: failed program was:" >&5
Chris@0 9966 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 9967
Chris@0 9968 fi
Chris@0 9969 rm -f conftest.err conftest.$ac_objext \
Chris@0 9970 conftest$ac_exeext conftest.$ac_ext
Chris@0 9971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Chris@0 9972
Chris@0 9973 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@0 9974 # Warning - without using the other run time loading flags,
Chris@0 9975 # -berok will link without error, but may produce a broken library.
Chris@0 9976 no_undefined_flag_CXX=' ${wl}-bernotok'
Chris@0 9977 allow_undefined_flag_CXX=' ${wl}-berok'
Chris@0 9978 # -bexpall does not export symbols beginning with underscore (_)
Chris@0 9979 always_export_symbols_CXX=yes
Chris@0 9980 # Exported symbols can be pulled into shared objects from archives
Chris@0 9981 whole_archive_flag_spec_CXX=' '
Chris@0 9982 archive_cmds_need_lc_CXX=yes
Chris@0 9983 # This is similar to how AIX traditionally builds it's shared libraries.
Chris@0 9984 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'
Chris@0 9985 fi
Chris@0 9986 fi
Chris@0 9987 ;;
Chris@0 9988 chorus*)
Chris@0 9989 case $cc_basename in
Chris@0 9990 *)
Chris@0 9991 # FIXME: insert proper C++ library support
Chris@0 9992 ld_shlibs_CXX=no
Chris@0 9993 ;;
Chris@0 9994 esac
Chris@0 9995 ;;
Chris@0 9996
Chris@0 9997 cygwin* | mingw* | pw32*)
Chris@0 9998 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
Chris@0 9999 # as there is no search path for DLLs.
Chris@0 10000 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@0 10001 allow_undefined_flag_CXX=unsupported
Chris@0 10002 always_export_symbols_CXX=no
Chris@0 10003 enable_shared_with_static_runtimes_CXX=yes
Chris@0 10004
Chris@0 10005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Chris@0 10006 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'
Chris@0 10007 # If the export-symbols file already is a .def file (1st line
Chris@0 10008 # is EXPORTS), use it as is; otherwise, prepend...
Chris@0 10009 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@0 10010 cp $export_symbols $output_objdir/$soname.def;
Chris@0 10011 else
Chris@0 10012 echo EXPORTS > $output_objdir/$soname.def;
Chris@0 10013 cat $export_symbols >> $output_objdir/$soname.def;
Chris@0 10014 fi~
Chris@0 10015 $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'
Chris@0 10016 else
Chris@0 10017 ld_shlibs_CXX=no
Chris@0 10018 fi
Chris@0 10019 ;;
Chris@0 10020
Chris@0 10021 darwin* | rhapsody*)
Chris@0 10022 if test "$GXX" = yes; then
Chris@0 10023 archive_cmds_need_lc_CXX=no
Chris@0 10024 case "$host_os" in
Chris@0 10025 rhapsody* | darwin1.[012])
Chris@0 10026 allow_undefined_flag_CXX='-undefined suppress'
Chris@0 10027 ;;
Chris@0 10028 *) # Darwin 1.3 on
Chris@0 10029 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
Chris@0 10030 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
Chris@0 10031 else
Chris@0 10032 case ${MACOSX_DEPLOYMENT_TARGET} in
Chris@0 10033 10.[012])
Chris@0 10034 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
Chris@0 10035 ;;
Chris@0 10036 10.*)
Chris@0 10037 allow_undefined_flag_CXX='-undefined dynamic_lookup'
Chris@0 10038 ;;
Chris@0 10039 esac
Chris@0 10040 fi
Chris@0 10041 ;;
Chris@0 10042 esac
Chris@0 10043 lt_int_apple_cc_single_mod=no
Chris@0 10044 output_verbose_link_cmd='echo'
Chris@0 10045 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
Chris@0 10046 lt_int_apple_cc_single_mod=yes
Chris@0 10047 fi
Chris@0 10048 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Chris@0 10049 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Chris@0 10050 else
Chris@0 10051 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'
Chris@0 10052 fi
Chris@0 10053 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Chris@0 10054
Chris@0 10055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Chris@0 10056 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Chris@0 10057 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}'
Chris@0 10058 else
Chris@0 10059 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}'
Chris@0 10060 fi
Chris@0 10061 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}'
Chris@0 10062 hardcode_direct_CXX=no
Chris@0 10063 hardcode_automatic_CXX=yes
Chris@0 10064 hardcode_shlibpath_var_CXX=unsupported
Chris@0 10065 whole_archive_flag_spec_CXX='-all_load $convenience'
Chris@0 10066 link_all_deplibs_CXX=yes
Chris@0 10067 else
Chris@0 10068 ld_shlibs_CXX=no
Chris@0 10069 fi
Chris@0 10070 ;;
Chris@0 10071
Chris@0 10072 dgux*)
Chris@0 10073 case $cc_basename in
Chris@0 10074 ec++)
Chris@0 10075 # FIXME: insert proper C++ library support
Chris@0 10076 ld_shlibs_CXX=no
Chris@0 10077 ;;
Chris@0 10078 ghcx)
Chris@0 10079 # Green Hills C++ Compiler
Chris@0 10080 # FIXME: insert proper C++ library support
Chris@0 10081 ld_shlibs_CXX=no
Chris@0 10082 ;;
Chris@0 10083 *)
Chris@0 10084 # FIXME: insert proper C++ library support
Chris@0 10085 ld_shlibs_CXX=no
Chris@0 10086 ;;
Chris@0 10087 esac
Chris@0 10088 ;;
Chris@0 10089 freebsd12*)
Chris@0 10090 # C++ shared libraries reported to be fairly broken before switch to ELF
Chris@0 10091 ld_shlibs_CXX=no
Chris@0 10092 ;;
Chris@0 10093 freebsd-elf*)
Chris@0 10094 archive_cmds_need_lc_CXX=no
Chris@0 10095 ;;
Chris@0 10096 freebsd* | kfreebsd*-gnu)
Chris@0 10097 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
Chris@0 10098 # conventions
Chris@0 10099 ld_shlibs_CXX=yes
Chris@0 10100 ;;
Chris@0 10101 gnu*)
Chris@0 10102 ;;
Chris@0 10103 hpux9*)
Chris@0 10104 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
Chris@0 10105 hardcode_libdir_separator_CXX=:
Chris@0 10106 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@0 10107 hardcode_direct_CXX=yes
Chris@0 10108 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@0 10109 # but as the default
Chris@0 10110 # location of the library.
Chris@0 10111
Chris@0 10112 case $cc_basename in
Chris@0 10113 CC)
Chris@0 10114 # FIXME: insert proper C++ library support
Chris@0 10115 ld_shlibs_CXX=no
Chris@0 10116 ;;
Chris@0 10117 aCC)
Chris@0 10118 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'
Chris@0 10119 # Commands to make compiler produce verbose output that lists
Chris@0 10120 # what "hidden" libraries, object files and flags are used when
Chris@0 10121 # linking a shared library.
Chris@0 10122 #
Chris@0 10123 # There doesn't appear to be a way to prevent this compiler from
Chris@0 10124 # explicitly linking system object files so we need to strip them
Chris@0 10125 # from the output so that they don't get included in the library
Chris@0 10126 # dependencies.
Chris@0 10127 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
Chris@0 10128 ;;
Chris@0 10129 *)
Chris@0 10130 if test "$GXX" = yes; then
Chris@0 10131 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'
Chris@0 10132 else
Chris@0 10133 # FIXME: insert proper C++ library support
Chris@0 10134 ld_shlibs_CXX=no
Chris@0 10135 fi
Chris@0 10136 ;;
Chris@0 10137 esac
Chris@0 10138 ;;
Chris@0 10139 hpux10*|hpux11*)
Chris@0 10140 if test $with_gnu_ld = no; then
Chris@0 10141 case "$host_cpu" in
Chris@0 10142 hppa*64*)
Chris@0 10143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
Chris@0 10144 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
Chris@0 10145 hardcode_libdir_separator_CXX=:
Chris@0 10146 ;;
Chris@0 10147 ia64*)
Chris@0 10148 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@0 10149 ;;
Chris@0 10150 *)
Chris@0 10151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
Chris@0 10152 hardcode_libdir_separator_CXX=:
Chris@0 10153 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@0 10154 ;;
Chris@0 10155 esac
Chris@0 10156 fi
Chris@0 10157 case "$host_cpu" in
Chris@0 10158 hppa*64*)
Chris@0 10159 hardcode_direct_CXX=no
Chris@0 10160 hardcode_shlibpath_var_CXX=no
Chris@0 10161 ;;
Chris@0 10162 ia64*)
Chris@0 10163 hardcode_direct_CXX=no
Chris@0 10164 hardcode_shlibpath_var_CXX=no
Chris@0 10165 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@0 10166 # but as the default
Chris@0 10167 # location of the library.
Chris@0 10168 ;;
Chris@0 10169 *)
Chris@0 10170 hardcode_direct_CXX=yes
Chris@0 10171 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@0 10172 # but as the default
Chris@0 10173 # location of the library.
Chris@0 10174 ;;
Chris@0 10175 esac
Chris@0 10176
Chris@0 10177 case $cc_basename in
Chris@0 10178 CC)
Chris@0 10179 # FIXME: insert proper C++ library support
Chris@0 10180 ld_shlibs_CXX=no
Chris@0 10181 ;;
Chris@0 10182 aCC)
Chris@0 10183 case "$host_cpu" in
Chris@0 10184 hppa*64*|ia64*)
Chris@0 10185 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
Chris@0 10186 ;;
Chris@0 10187 *)
Chris@0 10188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@0 10189 ;;
Chris@0 10190 esac
Chris@0 10191 # Commands to make compiler produce verbose output that lists
Chris@0 10192 # what "hidden" libraries, object files and flags are used when
Chris@0 10193 # linking a shared library.
Chris@0 10194 #
Chris@0 10195 # There doesn't appear to be a way to prevent this compiler from
Chris@0 10196 # explicitly linking system object files so we need to strip them
Chris@0 10197 # from the output so that they don't get included in the library
Chris@0 10198 # dependencies.
Chris@0 10199 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'
Chris@0 10200 ;;
Chris@0 10201 *)
Chris@0 10202 if test "$GXX" = yes; then
Chris@0 10203 if test $with_gnu_ld = no; then
Chris@0 10204 case "$host_cpu" in
Chris@0 10205 ia64*|hppa*64*)
Chris@0 10206 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
Chris@0 10207 ;;
Chris@0 10208 *)
Chris@0 10209 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'
Chris@0 10210 ;;
Chris@0 10211 esac
Chris@0 10212 fi
Chris@0 10213 else
Chris@0 10214 # FIXME: insert proper C++ library support
Chris@0 10215 ld_shlibs_CXX=no
Chris@0 10216 fi
Chris@0 10217 ;;
Chris@0 10218 esac
Chris@0 10219 ;;
Chris@0 10220 irix5* | irix6*)
Chris@0 10221 case $cc_basename in
Chris@0 10222 CC)
Chris@0 10223 # SGI C++
Chris@0 10224 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'
Chris@0 10225
Chris@0 10226 # Archives containing C++ object files must be created using
Chris@0 10227 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
Chris@0 10228 # necessary to make sure instantiated templates are included
Chris@0 10229 # in the archive.
Chris@0 10230 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
Chris@0 10231 ;;
Chris@0 10232 *)
Chris@0 10233 if test "$GXX" = yes; then
Chris@0 10234 if test "$with_gnu_ld" = no; then
Chris@0 10235 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'
Chris@0 10236 else
Chris@0 10237 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'
Chris@0 10238 fi
Chris@0 10239 fi
Chris@0 10240 link_all_deplibs_CXX=yes
Chris@0 10241 ;;
Chris@0 10242 esac
Chris@0 10243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@0 10244 hardcode_libdir_separator_CXX=:
Chris@0 10245 ;;
Chris@0 10246 linux*)
Chris@0 10247 case $cc_basename in
Chris@0 10248 KCC)
Chris@0 10249 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@0 10250
Chris@0 10251 # KCC will only create a shared library if the output file
Chris@0 10252 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@0 10253 # to its proper name (with version) after linking.
Chris@0 10254 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'
Chris@0 10255 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'
Chris@0 10256 # Commands to make compiler produce verbose output that lists
Chris@0 10257 # what "hidden" libraries, object files and flags are used when
Chris@0 10258 # linking a shared library.
Chris@0 10259 #
Chris@0 10260 # There doesn't appear to be a way to prevent this compiler from
Chris@0 10261 # explicitly linking system object files so we need to strip them
Chris@0 10262 # from the output so that they don't get included in the library
Chris@0 10263 # dependencies.
Chris@0 10264 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'
Chris@0 10265
Chris@0 10266 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
Chris@0 10267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@0 10268
Chris@0 10269 # Archives containing C++ object files must be created using
Chris@0 10270 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
Chris@0 10271 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
Chris@0 10272 ;;
Chris@0 10273 icpc)
Chris@0 10274 # Intel C++
Chris@0 10275 with_gnu_ld=yes
Chris@0 10276 archive_cmds_need_lc_CXX=no
Chris@0 10277 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 10278 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'
Chris@0 10279 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@0 10280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@0 10281 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@0 10282 ;;
Chris@0 10283 cxx)
Chris@0 10284 # Compaq C++
Chris@0 10285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 10286 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'
Chris@0 10287
Chris@0 10288 runpath_var=LD_RUN_PATH
Chris@0 10289 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Chris@0 10290 hardcode_libdir_separator_CXX=:
Chris@0 10291
Chris@0 10292 # Commands to make compiler produce verbose output that lists
Chris@0 10293 # what "hidden" libraries, object files and flags are used when
Chris@0 10294 # linking a shared library.
Chris@0 10295 #
Chris@0 10296 # There doesn't appear to be a way to prevent this compiler from
Chris@0 10297 # explicitly linking system object files so we need to strip them
Chris@0 10298 # from the output so that they don't get included in the library
Chris@0 10299 # dependencies.
Chris@0 10300 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'
Chris@0 10301 ;;
Chris@0 10302 esac
Chris@0 10303 ;;
Chris@0 10304 lynxos*)
Chris@0 10305 # FIXME: insert proper C++ library support
Chris@0 10306 ld_shlibs_CXX=no
Chris@0 10307 ;;
Chris@0 10308 m88k*)
Chris@0 10309 # FIXME: insert proper C++ library support
Chris@0 10310 ld_shlibs_CXX=no
Chris@0 10311 ;;
Chris@0 10312 mvs*)
Chris@0 10313 case $cc_basename in
Chris@0 10314 cxx)
Chris@0 10315 # FIXME: insert proper C++ library support
Chris@0 10316 ld_shlibs_CXX=no
Chris@0 10317 ;;
Chris@0 10318 *)
Chris@0 10319 # FIXME: insert proper C++ library support
Chris@0 10320 ld_shlibs_CXX=no
Chris@0 10321 ;;
Chris@0 10322 esac
Chris@0 10323 ;;
Chris@0 10324 netbsd* | knetbsd*-gnu)
Chris@0 10325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 10326 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
Chris@0 10327 wlarc=
Chris@0 10328 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@0 10329 hardcode_direct_CXX=yes
Chris@0 10330 hardcode_shlibpath_var_CXX=no
Chris@0 10331 fi
Chris@0 10332 # Workaround some broken pre-1.5 toolchains
Chris@0 10333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
Chris@0 10334 ;;
Chris@0 10335 osf3*)
Chris@0 10336 case $cc_basename in
Chris@0 10337 KCC)
Chris@0 10338 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@0 10339
Chris@0 10340 # KCC will only create a shared library if the output file
Chris@0 10341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@0 10342 # to its proper name (with version) after linking.
Chris@0 10343 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'
Chris@0 10344
Chris@0 10345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@0 10346 hardcode_libdir_separator_CXX=:
Chris@0 10347
Chris@0 10348 # Archives containing C++ object files must be created using
Chris@0 10349 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
Chris@0 10350 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
Chris@0 10351
Chris@0 10352 ;;
Chris@0 10353 RCC)
Chris@0 10354 # Rational C++ 2.4.1
Chris@0 10355 # FIXME: insert proper C++ library support
Chris@0 10356 ld_shlibs_CXX=no
Chris@0 10357 ;;
Chris@0 10358 cxx)
Chris@0 10359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 10360 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'
Chris@0 10361
Chris@0 10362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@0 10363 hardcode_libdir_separator_CXX=:
Chris@0 10364
Chris@0 10365 # Commands to make compiler produce verbose output that lists
Chris@0 10366 # what "hidden" libraries, object files and flags are used when
Chris@0 10367 # linking a shared library.
Chris@0 10368 #
Chris@0 10369 # There doesn't appear to be a way to prevent this compiler from
Chris@0 10370 # explicitly linking system object files so we need to strip them
Chris@0 10371 # from the output so that they don't get included in the library
Chris@0 10372 # dependencies.
Chris@0 10373 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'
Chris@0 10374 ;;
Chris@0 10375 *)
Chris@0 10376 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
Chris@0 10377 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 10378 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'
Chris@0 10379
Chris@0 10380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@0 10381 hardcode_libdir_separator_CXX=:
Chris@0 10382
Chris@0 10383 # Commands to make compiler produce verbose output that lists
Chris@0 10384 # what "hidden" libraries, object files and flags are used when
Chris@0 10385 # linking a shared library.
Chris@0 10386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
Chris@0 10387
Chris@0 10388 else
Chris@0 10389 # FIXME: insert proper C++ library support
Chris@0 10390 ld_shlibs_CXX=no
Chris@0 10391 fi
Chris@0 10392 ;;
Chris@0 10393 esac
Chris@0 10394 ;;
Chris@0 10395 osf4* | osf5*)
Chris@0 10396 case $cc_basename in
Chris@0 10397 KCC)
Chris@0 10398 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@0 10399
Chris@0 10400 # KCC will only create a shared library if the output file
Chris@0 10401 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@0 10402 # to its proper name (with version) after linking.
Chris@0 10403 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'
Chris@0 10404
Chris@0 10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@0 10406 hardcode_libdir_separator_CXX=:
Chris@0 10407
Chris@0 10408 # Archives containing C++ object files must be created using
Chris@0 10409 # the KAI C++ compiler.
Chris@0 10410 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
Chris@0 10411 ;;
Chris@0 10412 RCC)
Chris@0 10413 # Rational C++ 2.4.1
Chris@0 10414 # FIXME: insert proper C++ library support
Chris@0 10415 ld_shlibs_CXX=no
Chris@0 10416 ;;
Chris@0 10417 cxx)
Chris@0 10418 allow_undefined_flag_CXX=' -expect_unresolved \*'
Chris@0 10419 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'
Chris@0 10420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
Chris@0 10421 echo "-hidden">> $lib.exp~
Chris@0 10422 $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~
Chris@0 10423 $rm $lib.exp'
Chris@0 10424
Chris@0 10425 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Chris@0 10426 hardcode_libdir_separator_CXX=:
Chris@0 10427
Chris@0 10428 # Commands to make compiler produce verbose output that lists
Chris@0 10429 # what "hidden" libraries, object files and flags are used when
Chris@0 10430 # linking a shared library.
Chris@0 10431 #
Chris@0 10432 # There doesn't appear to be a way to prevent this compiler from
Chris@0 10433 # explicitly linking system object files so we need to strip them
Chris@0 10434 # from the output so that they don't get included in the library
Chris@0 10435 # dependencies.
Chris@0 10436 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'
Chris@0 10437 ;;
Chris@0 10438 *)
Chris@0 10439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
Chris@0 10440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 10441 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'
Chris@0 10442
Chris@0 10443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@0 10444 hardcode_libdir_separator_CXX=:
Chris@0 10445
Chris@0 10446 # Commands to make compiler produce verbose output that lists
Chris@0 10447 # what "hidden" libraries, object files and flags are used when
Chris@0 10448 # linking a shared library.
Chris@0 10449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
Chris@0 10450
Chris@0 10451 else
Chris@0 10452 # FIXME: insert proper C++ library support
Chris@0 10453 ld_shlibs_CXX=no
Chris@0 10454 fi
Chris@0 10455 ;;
Chris@0 10456 esac
Chris@0 10457 ;;
Chris@0 10458 psos*)
Chris@0 10459 # FIXME: insert proper C++ library support
Chris@0 10460 ld_shlibs_CXX=no
Chris@0 10461 ;;
Chris@0 10462 sco*)
Chris@0 10463 archive_cmds_need_lc_CXX=no
Chris@0 10464 case $cc_basename in
Chris@0 10465 CC)
Chris@0 10466 # FIXME: insert proper C++ library support
Chris@0 10467 ld_shlibs_CXX=no
Chris@0 10468 ;;
Chris@0 10469 *)
Chris@0 10470 # FIXME: insert proper C++ library support
Chris@0 10471 ld_shlibs_CXX=no
Chris@0 10472 ;;
Chris@0 10473 esac
Chris@0 10474 ;;
Chris@0 10475 sunos4*)
Chris@0 10476 case $cc_basename in
Chris@0 10477 CC)
Chris@0 10478 # Sun C++ 4.x
Chris@0 10479 # FIXME: insert proper C++ library support
Chris@0 10480 ld_shlibs_CXX=no
Chris@0 10481 ;;
Chris@0 10482 lcc)
Chris@0 10483 # Lucid
Chris@0 10484 # FIXME: insert proper C++ library support
Chris@0 10485 ld_shlibs_CXX=no
Chris@0 10486 ;;
Chris@0 10487 *)
Chris@0 10488 # FIXME: insert proper C++ library support
Chris@0 10489 ld_shlibs_CXX=no
Chris@0 10490 ;;
Chris@0 10491 esac
Chris@0 10492 ;;
Chris@0 10493 solaris*)
Chris@0 10494 case $cc_basename in
Chris@0 10495 CC)
Chris@0 10496 # Sun C++ 4.2, 5.x and Centerline C++
Chris@0 10497 no_undefined_flag_CXX=' -zdefs'
Chris@0 10498 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@0 10499 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 10500 $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'
Chris@0 10501
Chris@0 10502 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@0 10503 hardcode_shlibpath_var_CXX=no
Chris@0 10504 case $host_os in
Chris@0 10505 solaris2.0-5 | solaris2.0-5.*) ;;
Chris@0 10506 *)
Chris@0 10507 # The C++ compiler is used as linker so we must use $wl
Chris@0 10508 # flag to pass the commands to the underlying system
Chris@0 10509 # linker.
Chris@0 10510 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@0 10511 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@0 10512 ;;
Chris@0 10513 esac
Chris@0 10514 link_all_deplibs_CXX=yes
Chris@0 10515
Chris@0 10516 # Commands to make compiler produce verbose output that lists
Chris@0 10517 # what "hidden" libraries, object files and flags are used when
Chris@0 10518 # linking a shared library.
Chris@0 10519 #
Chris@0 10520 # There doesn't appear to be a way to prevent this compiler from
Chris@0 10521 # explicitly linking system object files so we need to strip them
Chris@0 10522 # from the output so that they don't get included in the library
Chris@0 10523 # dependencies.
Chris@0 10524 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'
Chris@0 10525
Chris@0 10526 # Archives containing C++ object files must be created using
Chris@0 10527 # "CC -xar", where "CC" is the Sun C++ compiler. This is
Chris@0 10528 # necessary to make sure instantiated templates are included
Chris@0 10529 # in the archive.
Chris@0 10530 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
Chris@0 10531 ;;
Chris@0 10532 gcx)
Chris@0 10533 # Green Hills C++ Compiler
Chris@0 10534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@0 10535
Chris@0 10536 # The C++ compiler must be used to create the archive.
Chris@0 10537 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
Chris@0 10538 ;;
Chris@0 10539 *)
Chris@0 10540 # GNU C++ compiler with Solaris linker
Chris@0 10541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
Chris@0 10542 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
Chris@0 10543 if $CC --version | grep -v '^2\.7' > /dev/null; then
Chris@0 10544 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@0 10545 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 10546 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
Chris@0 10547
Chris@0 10548 # Commands to make compiler produce verbose output that lists
Chris@0 10549 # what "hidden" libraries, object files and flags are used when
Chris@0 10550 # linking a shared library.
Chris@0 10551 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
Chris@0 10552 else
Chris@0 10553 # g++ 2.7 appears to require `-G' NOT `-shared' on this
Chris@0 10554 # platform.
Chris@0 10555 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@0 10556 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 10557 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
Chris@0 10558
Chris@0 10559 # Commands to make compiler produce verbose output that lists
Chris@0 10560 # what "hidden" libraries, object files and flags are used when
Chris@0 10561 # linking a shared library.
Chris@0 10562 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
Chris@0 10563 fi
Chris@0 10564
Chris@0 10565 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
Chris@0 10566 fi
Chris@0 10567 ;;
Chris@0 10568 esac
Chris@0 10569 ;;
Chris@0 10570 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
Chris@0 10571 archive_cmds_need_lc_CXX=no
Chris@0 10572 ;;
Chris@0 10573 tandem*)
Chris@0 10574 case $cc_basename in
Chris@0 10575 NCC)
Chris@0 10576 # NonStop-UX NCC 3.20
Chris@0 10577 # FIXME: insert proper C++ library support
Chris@0 10578 ld_shlibs_CXX=no
Chris@0 10579 ;;
Chris@0 10580 *)
Chris@0 10581 # FIXME: insert proper C++ library support
Chris@0 10582 ld_shlibs_CXX=no
Chris@0 10583 ;;
Chris@0 10584 esac
Chris@0 10585 ;;
Chris@0 10586 vxworks*)
Chris@0 10587 # FIXME: insert proper C++ library support
Chris@0 10588 ld_shlibs_CXX=no
Chris@0 10589 ;;
Chris@0 10590 *)
Chris@0 10591 # FIXME: insert proper C++ library support
Chris@0 10592 ld_shlibs_CXX=no
Chris@0 10593 ;;
Chris@0 10594 esac
Chris@0 10595 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
Chris@0 10596 echo "${ECHO_T}$ld_shlibs_CXX" >&6
Chris@0 10597 test "$ld_shlibs_CXX" = no && can_build_shared=no
Chris@0 10598
Chris@0 10599 GCC_CXX="$GXX"
Chris@0 10600 LD_CXX="$LD"
Chris@0 10601
Chris@0 10602
Chris@0 10603 cat > conftest.$ac_ext <<EOF
Chris@0 10604 class Foo
Chris@0 10605 {
Chris@0 10606 public:
Chris@0 10607 Foo (void) { a = 0; }
Chris@0 10608 private:
Chris@0 10609 int a;
Chris@0 10610 };
Chris@0 10611 EOF
Chris@0 10612
Chris@0 10613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 10614 (eval $ac_compile) 2>&5
Chris@0 10615 ac_status=$?
Chris@0 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 10617 (exit $ac_status); }; then
Chris@0 10618 # Parse the compiler output and extract the necessary
Chris@0 10619 # objects, libraries and library flags.
Chris@0 10620
Chris@0 10621 # Sentinel used to keep track of whether or not we are before
Chris@0 10622 # the conftest object file.
Chris@0 10623 pre_test_object_deps_done=no
Chris@0 10624
Chris@0 10625 # The `*' in the case matches for architectures that use `case' in
Chris@0 10626 # $output_verbose_cmd can trigger glob expansion during the loop
Chris@0 10627 # eval without this substitution.
Chris@0 10628 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
Chris@0 10629
Chris@0 10630 for p in `eval $output_verbose_link_cmd`; do
Chris@0 10631 case $p in
Chris@0 10632
Chris@0 10633 -L* | -R* | -l*)
Chris@0 10634 # Some compilers place space between "-{L,R}" and the path.
Chris@0 10635 # Remove the space.
Chris@0 10636 if test $p = "-L" \
Chris@0 10637 || test $p = "-R"; then
Chris@0 10638 prev=$p
Chris@0 10639 continue
Chris@0 10640 else
Chris@0 10641 prev=
Chris@0 10642 fi
Chris@0 10643
Chris@0 10644 if test "$pre_test_object_deps_done" = no; then
Chris@0 10645 case $p in
Chris@0 10646 -L* | -R*)
Chris@0 10647 # Internal compiler library paths should come after those
Chris@0 10648 # provided the user. The postdeps already come after the
Chris@0 10649 # user supplied libs so there is no need to process them.
Chris@0 10650 if test -z "$compiler_lib_search_path_CXX"; then
Chris@0 10651 compiler_lib_search_path_CXX="${prev}${p}"
Chris@0 10652 else
Chris@0 10653 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
Chris@0 10654 fi
Chris@0 10655 ;;
Chris@0 10656 # The "-l" case would never come before the object being
Chris@0 10657 # linked, so don't bother handling this case.
Chris@0 10658 esac
Chris@0 10659 else
Chris@0 10660 if test -z "$postdeps_CXX"; then
Chris@0 10661 postdeps_CXX="${prev}${p}"
Chris@0 10662 else
Chris@0 10663 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
Chris@0 10664 fi
Chris@0 10665 fi
Chris@0 10666 ;;
Chris@0 10667
Chris@0 10668 *.$objext)
Chris@0 10669 # This assumes that the test object file only shows up
Chris@0 10670 # once in the compiler output.
Chris@0 10671 if test "$p" = "conftest.$objext"; then
Chris@0 10672 pre_test_object_deps_done=yes
Chris@0 10673 continue
Chris@0 10674 fi
Chris@0 10675
Chris@0 10676 if test "$pre_test_object_deps_done" = no; then
Chris@0 10677 if test -z "$predep_objects_CXX"; then
Chris@0 10678 predep_objects_CXX="$p"
Chris@0 10679 else
Chris@0 10680 predep_objects_CXX="$predep_objects_CXX $p"
Chris@0 10681 fi
Chris@0 10682 else
Chris@0 10683 if test -z "$postdep_objects_CXX"; then
Chris@0 10684 postdep_objects_CXX="$p"
Chris@0 10685 else
Chris@0 10686 postdep_objects_CXX="$postdep_objects_CXX $p"
Chris@0 10687 fi
Chris@0 10688 fi
Chris@0 10689 ;;
Chris@0 10690
Chris@0 10691 *) ;; # Ignore the rest.
Chris@0 10692
Chris@0 10693 esac
Chris@0 10694 done
Chris@0 10695
Chris@0 10696 # Clean up.
Chris@0 10697 rm -f a.out a.exe
Chris@0 10698 else
Chris@0 10699 echo "libtool.m4: error: problem compiling CXX test program"
Chris@0 10700 fi
Chris@0 10701
Chris@0 10702 $rm -f confest.$objext
Chris@0 10703
Chris@0 10704 case " $postdeps_CXX " in
Chris@0 10705 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
Chris@0 10706 esac
Chris@0 10707
Chris@0 10708 lt_prog_compiler_wl_CXX=
Chris@0 10709 lt_prog_compiler_pic_CXX=
Chris@0 10710 lt_prog_compiler_static_CXX=
Chris@0 10711
Chris@0 10712 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
Chris@0 10713 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
Chris@0 10714
Chris@0 10715 # C++ specific cases for pic, static, wl, etc.
Chris@0 10716 if test "$GXX" = yes; then
Chris@0 10717 lt_prog_compiler_wl_CXX='-Wl,'
Chris@0 10718 lt_prog_compiler_static_CXX='-static'
Chris@0 10719
Chris@0 10720 case $host_os in
Chris@0 10721 aix*)
Chris@0 10722 # All AIX code is PIC.
Chris@0 10723 if test "$host_cpu" = ia64; then
Chris@0 10724 # AIX 5 now supports IA64 processor
Chris@0 10725 lt_prog_compiler_static_CXX='-Bstatic'
Chris@0 10726 fi
Chris@0 10727 ;;
Chris@0 10728 amigaos*)
Chris@0 10729 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@0 10730 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@0 10731 # like `-m68040'.
Chris@0 10732 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
Chris@0 10733 ;;
Chris@0 10734 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@0 10735 # PIC is the default for these OSes.
Chris@0 10736 ;;
Chris@0 10737 mingw* | os2* | pw32*)
Chris@0 10738 # This hack is so that the source file can tell whether it is being
Chris@0 10739 # built for inclusion in a dll (and should export symbols for example).
Chris@0 10740 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Chris@0 10741 ;;
Chris@0 10742 darwin* | rhapsody*)
Chris@0 10743 # PIC is the default on this platform
Chris@0 10744 # Common symbols not allowed in MH_DYLIB files
Chris@0 10745 lt_prog_compiler_pic_CXX='-fno-common'
Chris@0 10746 ;;
Chris@0 10747 *djgpp*)
Chris@0 10748 # DJGPP does not support shared libraries at all
Chris@0 10749 lt_prog_compiler_pic_CXX=
Chris@0 10750 ;;
Chris@0 10751 sysv4*MP*)
Chris@0 10752 if test -d /usr/nec; then
Chris@0 10753 lt_prog_compiler_pic_CXX=-Kconform_pic
Chris@0 10754 fi
Chris@0 10755 ;;
Chris@0 10756 hpux*)
Chris@0 10757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@0 10758 # not for PA HP-UX.
Chris@0 10759 case "$host_cpu" in
Chris@0 10760 hppa*64*|ia64*)
Chris@0 10761 ;;
Chris@0 10762 *)
Chris@0 10763 lt_prog_compiler_pic_CXX='-fPIC'
Chris@0 10764 ;;
Chris@0 10765 esac
Chris@0 10766 ;;
Chris@0 10767 *)
Chris@0 10768 lt_prog_compiler_pic_CXX='-fPIC'
Chris@0 10769 ;;
Chris@0 10770 esac
Chris@0 10771 else
Chris@0 10772 case $host_os in
Chris@0 10773 aix4* | aix5*)
Chris@0 10774 # All AIX code is PIC.
Chris@0 10775 if test "$host_cpu" = ia64; then
Chris@0 10776 # AIX 5 now supports IA64 processor
Chris@0 10777 lt_prog_compiler_static_CXX='-Bstatic'
Chris@0 10778 else
Chris@0 10779 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
Chris@0 10780 fi
Chris@0 10781 ;;
Chris@0 10782 chorus*)
Chris@0 10783 case $cc_basename in
Chris@0 10784 cxch68)
Chris@0 10785 # Green Hills C++ Compiler
Chris@0 10786 # _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"
Chris@0 10787 ;;
Chris@0 10788 esac
Chris@0 10789 ;;
Chris@0 10790 dgux*)
Chris@0 10791 case $cc_basename in
Chris@0 10792 ec++)
Chris@0 10793 lt_prog_compiler_pic_CXX='-KPIC'
Chris@0 10794 ;;
Chris@0 10795 ghcx)
Chris@0 10796 # Green Hills C++ Compiler
Chris@0 10797 lt_prog_compiler_pic_CXX='-pic'
Chris@0 10798 ;;
Chris@0 10799 *)
Chris@0 10800 ;;
Chris@0 10801 esac
Chris@0 10802 ;;
Chris@0 10803 freebsd* | kfreebsd*-gnu)
Chris@0 10804 # FreeBSD uses GNU C++
Chris@0 10805 ;;
Chris@0 10806 hpux9* | hpux10* | hpux11*)
Chris@0 10807 case $cc_basename in
Chris@0 10808 CC)
Chris@0 10809 lt_prog_compiler_wl_CXX='-Wl,'
Chris@0 10810 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
Chris@0 10811 if test "$host_cpu" != ia64; then
Chris@0 10812 lt_prog_compiler_pic_CXX='+Z'
Chris@0 10813 fi
Chris@0 10814 ;;
Chris@0 10815 aCC)
Chris@0 10816 lt_prog_compiler_wl_CXX='-Wl,'
Chris@0 10817 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
Chris@0 10818 case "$host_cpu" in
Chris@0 10819 hppa*64*|ia64*)
Chris@0 10820 # +Z the default
Chris@0 10821 ;;
Chris@0 10822 *)
Chris@0 10823 lt_prog_compiler_pic_CXX='+Z'
Chris@0 10824 ;;
Chris@0 10825 esac
Chris@0 10826 ;;
Chris@0 10827 *)
Chris@0 10828 ;;
Chris@0 10829 esac
Chris@0 10830 ;;
Chris@0 10831 irix5* | irix6* | nonstopux*)
Chris@0 10832 case $cc_basename in
Chris@0 10833 CC)
Chris@0 10834 lt_prog_compiler_wl_CXX='-Wl,'
Chris@0 10835 lt_prog_compiler_static_CXX='-non_shared'
Chris@0 10836 # CC pic flag -KPIC is the default.
Chris@0 10837 ;;
Chris@0 10838 *)
Chris@0 10839 ;;
Chris@0 10840 esac
Chris@0 10841 ;;
Chris@0 10842 linux*)
Chris@0 10843 case $cc_basename in
Chris@0 10844 KCC)
Chris@0 10845 # KAI C++ Compiler
Chris@0 10846 lt_prog_compiler_wl_CXX='--backend -Wl,'
Chris@0 10847 lt_prog_compiler_pic_CXX='-fPIC'
Chris@0 10848 ;;
Chris@0 10849 icpc)
Chris@0 10850 # Intel C++
Chris@0 10851 lt_prog_compiler_wl_CXX='-Wl,'
Chris@0 10852 lt_prog_compiler_pic_CXX='-KPIC'
Chris@0 10853 lt_prog_compiler_static_CXX='-static'
Chris@0 10854 ;;
Chris@0 10855 cxx)
Chris@0 10856 # Compaq C++
Chris@0 10857 # Make sure the PIC flag is empty. It appears that all Alpha
Chris@0 10858 # Linux and Compaq Tru64 Unix objects are PIC.
Chris@0 10859 lt_prog_compiler_pic_CXX=
Chris@0 10860 lt_prog_compiler_static_CXX='-non_shared'
Chris@0 10861 ;;
Chris@0 10862 *)
Chris@0 10863 ;;
Chris@0 10864 esac
Chris@0 10865 ;;
Chris@0 10866 lynxos*)
Chris@0 10867 ;;
Chris@0 10868 m88k*)
Chris@0 10869 ;;
Chris@0 10870 mvs*)
Chris@0 10871 case $cc_basename in
Chris@0 10872 cxx)
Chris@0 10873 lt_prog_compiler_pic_CXX='-W c,exportall'
Chris@0 10874 ;;
Chris@0 10875 *)
Chris@0 10876 ;;
Chris@0 10877 esac
Chris@0 10878 ;;
Chris@0 10879 netbsd* | knetbsd*-gnu)
Chris@0 10880 ;;
Chris@0 10881 osf3* | osf4* | osf5*)
Chris@0 10882 case $cc_basename in
Chris@0 10883 KCC)
Chris@0 10884 lt_prog_compiler_wl_CXX='--backend -Wl,'
Chris@0 10885 ;;
Chris@0 10886 RCC)
Chris@0 10887 # Rational C++ 2.4.1
Chris@0 10888 lt_prog_compiler_pic_CXX='-pic'
Chris@0 10889 ;;
Chris@0 10890 cxx)
Chris@0 10891 # Digital/Compaq C++
Chris@0 10892 lt_prog_compiler_wl_CXX='-Wl,'
Chris@0 10893 # Make sure the PIC flag is empty. It appears that all Alpha
Chris@0 10894 # Linux and Compaq Tru64 Unix objects are PIC.
Chris@0 10895 lt_prog_compiler_pic_CXX=
Chris@0 10896 lt_prog_compiler_static_CXX='-non_shared'
Chris@0 10897 ;;
Chris@0 10898 *)
Chris@0 10899 ;;
Chris@0 10900 esac
Chris@0 10901 ;;
Chris@0 10902 psos*)
Chris@0 10903 ;;
Chris@0 10904 sco*)
Chris@0 10905 case $cc_basename in
Chris@0 10906 CC)
Chris@0 10907 lt_prog_compiler_pic_CXX='-fPIC'
Chris@0 10908 ;;
Chris@0 10909 *)
Chris@0 10910 ;;
Chris@0 10911 esac
Chris@0 10912 ;;
Chris@0 10913 solaris*)
Chris@0 10914 case $cc_basename in
Chris@0 10915 CC)
Chris@0 10916 # Sun C++ 4.2, 5.x and Centerline C++
Chris@0 10917 lt_prog_compiler_pic_CXX='-KPIC'
Chris@0 10918 lt_prog_compiler_static_CXX='-Bstatic'
Chris@0 10919 lt_prog_compiler_wl_CXX='-Qoption ld '
Chris@0 10920 ;;
Chris@0 10921 gcx)
Chris@0 10922 # Green Hills C++ Compiler
Chris@0 10923 lt_prog_compiler_pic_CXX='-PIC'
Chris@0 10924 ;;
Chris@0 10925 *)
Chris@0 10926 ;;
Chris@0 10927 esac
Chris@0 10928 ;;
Chris@0 10929 sunos4*)
Chris@0 10930 case $cc_basename in
Chris@0 10931 CC)
Chris@0 10932 # Sun C++ 4.x
Chris@0 10933 lt_prog_compiler_pic_CXX='-pic'
Chris@0 10934 lt_prog_compiler_static_CXX='-Bstatic'
Chris@0 10935 ;;
Chris@0 10936 lcc)
Chris@0 10937 # Lucid
Chris@0 10938 lt_prog_compiler_pic_CXX='-pic'
Chris@0 10939 ;;
Chris@0 10940 *)
Chris@0 10941 ;;
Chris@0 10942 esac
Chris@0 10943 ;;
Chris@0 10944 tandem*)
Chris@0 10945 case $cc_basename in
Chris@0 10946 NCC)
Chris@0 10947 # NonStop-UX NCC 3.20
Chris@0 10948 lt_prog_compiler_pic_CXX='-KPIC'
Chris@0 10949 ;;
Chris@0 10950 *)
Chris@0 10951 ;;
Chris@0 10952 esac
Chris@0 10953 ;;
Chris@0 10954 unixware*)
Chris@0 10955 ;;
Chris@0 10956 vxworks*)
Chris@0 10957 ;;
Chris@0 10958 *)
Chris@0 10959 lt_prog_compiler_can_build_shared_CXX=no
Chris@0 10960 ;;
Chris@0 10961 esac
Chris@0 10962 fi
Chris@0 10963
Chris@0 10964 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
Chris@0 10965 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
Chris@0 10966
Chris@0 10967 #
Chris@0 10968 # Check to make sure the PIC flag actually works.
Chris@0 10969 #
Chris@0 10970 if test -n "$lt_prog_compiler_pic_CXX"; then
Chris@0 10971
Chris@0 10972 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
Chris@0 10973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
Chris@0 10974 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
Chris@0 10975 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 10976 else
Chris@0 10977 lt_prog_compiler_pic_works_CXX=no
Chris@0 10978 ac_outfile=conftest.$ac_objext
Chris@0 10979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 10980 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
Chris@0 10981 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 10982 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 10983 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 10984 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 10985 # The option is referenced via a variable to avoid confusing sed.
Chris@0 10986 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 10987 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 10988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 10989 -e 's:$: $lt_compiler_flag:'`
Chris@0 10990 (eval echo "\"\$as_me:10990: $lt_compile\"" >&5)
Chris@0 10991 (eval "$lt_compile" 2>conftest.err)
Chris@0 10992 ac_status=$?
Chris@0 10993 cat conftest.err >&5
Chris@0 10994 echo "$as_me:10994: \$? = $ac_status" >&5
Chris@0 10995 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@0 10996 # The compiler can only warn and ignore the option if not recognized
Chris@0 10997 # So say no if there are warnings
Chris@0 10998 if test ! -s conftest.err; then
Chris@0 10999 lt_prog_compiler_pic_works_CXX=yes
Chris@0 11000 fi
Chris@0 11001 fi
Chris@0 11002 $rm conftest*
Chris@0 11003
Chris@0 11004 fi
Chris@0 11005 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
Chris@0 11006 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
Chris@0 11007
Chris@0 11008 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
Chris@0 11009 case $lt_prog_compiler_pic_CXX in
Chris@0 11010 "" | " "*) ;;
Chris@0 11011 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
Chris@0 11012 esac
Chris@0 11013 else
Chris@0 11014 lt_prog_compiler_pic_CXX=
Chris@0 11015 lt_prog_compiler_can_build_shared_CXX=no
Chris@0 11016 fi
Chris@0 11017
Chris@0 11018 fi
Chris@0 11019 case "$host_os" in
Chris@0 11020 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@0 11021 *djgpp*)
Chris@0 11022 lt_prog_compiler_pic_CXX=
Chris@0 11023 ;;
Chris@0 11024 *)
Chris@0 11025 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
Chris@0 11026 ;;
Chris@0 11027 esac
Chris@0 11028
Chris@0 11029 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@0 11030 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
Chris@0 11031 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
Chris@0 11032 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 11033 else
Chris@0 11034 lt_cv_prog_compiler_c_o_CXX=no
Chris@0 11035 $rm -r conftest 2>/dev/null
Chris@0 11036 mkdir conftest
Chris@0 11037 cd conftest
Chris@0 11038 mkdir out
Chris@0 11039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 11040
Chris@0 11041 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@0 11042 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 11043 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 11044 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 11045 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 11046 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 11047 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 11048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 11049 -e 's:$: $lt_compiler_flag:'`
Chris@0 11050 (eval echo "\"\$as_me:11050: $lt_compile\"" >&5)
Chris@0 11051 (eval "$lt_compile" 2>out/conftest.err)
Chris@0 11052 ac_status=$?
Chris@0 11053 cat out/conftest.err >&5
Chris@0 11054 echo "$as_me:11054: \$? = $ac_status" >&5
Chris@0 11055 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@0 11056 then
Chris@0 11057 # The compiler can only warn and ignore the option if not recognized
Chris@0 11058 # So say no if there are warnings
Chris@0 11059 if test ! -s out/conftest.err; then
Chris@0 11060 lt_cv_prog_compiler_c_o_CXX=yes
Chris@0 11061 fi
Chris@0 11062 fi
Chris@0 11063 chmod u+w .
Chris@0 11064 $rm conftest*
Chris@0 11065 # SGI C++ compiler will create directory out/ii_files/ for
Chris@0 11066 # template instantiation
Chris@0 11067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
Chris@0 11068 $rm out/* && rmdir out
Chris@0 11069 cd ..
Chris@0 11070 rmdir conftest
Chris@0 11071 $rm conftest*
Chris@0 11072
Chris@0 11073 fi
Chris@0 11074 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Chris@0 11075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
Chris@0 11076
Chris@0 11077
Chris@0 11078 hard_links="nottested"
Chris@0 11079 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
Chris@0 11080 # do not overwrite the value of need_locks provided by the user
Chris@0 11081 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Chris@0 11082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
Chris@0 11083 hard_links=yes
Chris@0 11084 $rm conftest*
Chris@0 11085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@0 11086 touch conftest.a
Chris@0 11087 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@0 11088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@0 11089 echo "$as_me:$LINENO: result: $hard_links" >&5
Chris@0 11090 echo "${ECHO_T}$hard_links" >&6
Chris@0 11091 if test "$hard_links" = no; then
Chris@0 11092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@0 11093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@0 11094 need_locks=warn
Chris@0 11095 fi
Chris@0 11096 else
Chris@0 11097 need_locks=no
Chris@0 11098 fi
Chris@0 11099
Chris@0 11100 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@0 11101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
Chris@0 11102
Chris@0 11103 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 11104 case $host_os in
Chris@0 11105 aix4* | aix5*)
Chris@0 11106 # If we're using GNU nm, then we don't want the "-C" option.
Chris@0 11107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@0 11108 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
Chris@0 11109 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'
Chris@0 11110 else
Chris@0 11111 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'
Chris@0 11112 fi
Chris@0 11113 ;;
Chris@0 11114 pw32*)
Chris@0 11115 export_symbols_cmds_CXX="$ltdll_cmds"
Chris@0 11116 ;;
Chris@0 11117 cygwin* | mingw*)
Chris@0 11118 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 11119 ;;
Chris@0 11120 *)
Chris@0 11121 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 11122 ;;
Chris@0 11123 esac
Chris@0 11124
Chris@0 11125 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
Chris@0 11126 echo "${ECHO_T}$ld_shlibs_CXX" >&6
Chris@0 11127 test "$ld_shlibs_CXX" = no && can_build_shared=no
Chris@0 11128
Chris@0 11129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@0 11130 if test "$GCC" = yes; then
Chris@0 11131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@0 11132 fi
Chris@0 11133
Chris@0 11134 #
Chris@0 11135 # Do we need to explicitly link libc?
Chris@0 11136 #
Chris@0 11137 case "x$archive_cmds_need_lc_CXX" in
Chris@0 11138 x|xyes)
Chris@0 11139 # Assume -lc should be added
Chris@0 11140 archive_cmds_need_lc_CXX=yes
Chris@0 11141
Chris@0 11142 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@0 11143 case $archive_cmds_CXX in
Chris@0 11144 *'~'*)
Chris@0 11145 # FIXME: we may have to deal with multi-command sequences.
Chris@0 11146 ;;
Chris@0 11147 '$CC '*)
Chris@0 11148 # Test whether the compiler implicitly links with -lc since on some
Chris@0 11149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@0 11150 # to ld, don't add -lc before -lgcc.
Chris@0 11151 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Chris@0 11152 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
Chris@0 11153 $rm conftest*
Chris@0 11154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 11155
Chris@0 11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 11157 (eval $ac_compile) 2>&5
Chris@0 11158 ac_status=$?
Chris@0 11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 11160 (exit $ac_status); } 2>conftest.err; then
Chris@0 11161 soname=conftest
Chris@0 11162 lib=conftest
Chris@0 11163 libobjs=conftest.$ac_objext
Chris@0 11164 deplibs=
Chris@0 11165 wl=$lt_prog_compiler_wl_CXX
Chris@0 11166 compiler_flags=-v
Chris@0 11167 linker_flags=-v
Chris@0 11168 verstring=
Chris@0 11169 output_objdir=.
Chris@0 11170 libname=conftest
Chris@0 11171 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
Chris@0 11172 allow_undefined_flag_CXX=
Chris@0 11173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
Chris@0 11174 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@0 11175 ac_status=$?
Chris@0 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 11177 (exit $ac_status); }
Chris@0 11178 then
Chris@0 11179 archive_cmds_need_lc_CXX=no
Chris@0 11180 else
Chris@0 11181 archive_cmds_need_lc_CXX=yes
Chris@0 11182 fi
Chris@0 11183 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
Chris@0 11184 else
Chris@0 11185 cat conftest.err 1>&5
Chris@0 11186 fi
Chris@0 11187 $rm conftest*
Chris@0 11188 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
Chris@0 11189 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
Chris@0 11190 ;;
Chris@0 11191 esac
Chris@0 11192 fi
Chris@0 11193 ;;
Chris@0 11194 esac
Chris@0 11195
Chris@0 11196 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Chris@0 11197 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
Chris@0 11198 library_names_spec=
Chris@0 11199 libname_spec='lib$name'
Chris@0 11200 soname_spec=
Chris@0 11201 shrext=".so"
Chris@0 11202 postinstall_cmds=
Chris@0 11203 postuninstall_cmds=
Chris@0 11204 finish_cmds=
Chris@0 11205 finish_eval=
Chris@0 11206 shlibpath_var=
Chris@0 11207 shlibpath_overrides_runpath=unknown
Chris@0 11208 version_type=none
Chris@0 11209 dynamic_linker="$host_os ld.so"
Chris@0 11210 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@0 11211 if test "$GCC" = yes; then
Chris@0 11212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Chris@0 11213 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Chris@0 11214 # if the path contains ";" then we assume it to be the separator
Chris@0 11215 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@0 11216 # assumed that no part of a normal pathname contains ";" but that should
Chris@0 11217 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@0 11218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@0 11219 else
Chris@0 11220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@0 11221 fi
Chris@0 11222 else
Chris@0 11223 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@0 11224 fi
Chris@0 11225 need_lib_prefix=unknown
Chris@0 11226 hardcode_into_libs=no
Chris@0 11227
Chris@0 11228 # when you set need_version to no, make sure it does not cause -set_version
Chris@0 11229 # flags to be left without arguments
Chris@0 11230 need_version=unknown
Chris@0 11231
Chris@0 11232 case $host_os in
Chris@0 11233 aix3*)
Chris@0 11234 version_type=linux
Chris@0 11235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@0 11236 shlibpath_var=LIBPATH
Chris@0 11237
Chris@0 11238 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@0 11239 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11240 ;;
Chris@0 11241
Chris@0 11242 aix4* | aix5*)
Chris@0 11243 version_type=linux
Chris@0 11244 need_lib_prefix=no
Chris@0 11245 need_version=no
Chris@0 11246 hardcode_into_libs=yes
Chris@0 11247 if test "$host_cpu" = ia64; then
Chris@0 11248 # AIX 5 supports IA64
Chris@0 11249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@0 11250 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11251 else
Chris@0 11252 # With GCC up to 2.95.x, collect2 would create an import file
Chris@0 11253 # for dependence libraries. The import file would start with
Chris@0 11254 # the line `#! .'. This would cause the generated library to
Chris@0 11255 # depend on `.', always an invalid library. This was fixed in
Chris@0 11256 # development snapshots of GCC prior to 3.0.
Chris@0 11257 case $host_os in
Chris@0 11258 aix4 | aix4.[01] | aix4.[01].*)
Chris@0 11259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@0 11260 echo ' yes '
Chris@0 11261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
Chris@0 11262 :
Chris@0 11263 else
Chris@0 11264 can_build_shared=no
Chris@0 11265 fi
Chris@0 11266 ;;
Chris@0 11267 esac
Chris@0 11268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@0 11269 # soname into executable. Probably we can add versioning support to
Chris@0 11270 # collect2, so additional links can be useful in future.
Chris@0 11271 if test "$aix_use_runtimelinking" = yes; then
Chris@0 11272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@0 11273 # instead of lib<name>.a to let people know that these are not
Chris@0 11274 # typical AIX shared libraries.
Chris@0 11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11276 else
Chris@0 11277 # We preserve .a as extension for shared libraries through AIX4.2
Chris@0 11278 # and later when we are not doing run time linking.
Chris@0 11279 library_names_spec='${libname}${release}.a $libname.a'
Chris@0 11280 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11281 fi
Chris@0 11282 shlibpath_var=LIBPATH
Chris@0 11283 fi
Chris@0 11284 ;;
Chris@0 11285
Chris@0 11286 amigaos*)
Chris@0 11287 library_names_spec='$libname.ixlibrary $libname.a'
Chris@0 11288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@0 11289 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'
Chris@0 11290 ;;
Chris@0 11291
Chris@0 11292 beos*)
Chris@0 11293 library_names_spec='${libname}${shared_ext}'
Chris@0 11294 dynamic_linker="$host_os ld.so"
Chris@0 11295 shlibpath_var=LIBRARY_PATH
Chris@0 11296 ;;
Chris@0 11297
Chris@0 11298 bsdi4*)
Chris@0 11299 version_type=linux
Chris@0 11300 need_version=no
Chris@0 11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11302 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@0 11304 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@0 11306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@0 11307 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@0 11308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@0 11309 # libtool to hard-code these into programs
Chris@0 11310 ;;
Chris@0 11311
Chris@0 11312 cygwin* | mingw* | pw32*)
Chris@0 11313 version_type=windows
Chris@0 11314 shrext=".dll"
Chris@0 11315 need_version=no
Chris@0 11316 need_lib_prefix=no
Chris@0 11317
Chris@0 11318 case $GCC,$host_os in
Chris@0 11319 yes,cygwin* | yes,mingw* | yes,pw32*)
Chris@0 11320 library_names_spec='$libname.dll.a'
Chris@0 11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@0 11322 postinstall_cmds='base_file=`basename \${file}`~
Chris@0 11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Chris@0 11324 dldir=$destdir/`dirname \$dlpath`~
Chris@0 11325 test -d \$dldir || mkdir -p \$dldir~
Chris@0 11326 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@0 11327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@0 11328 dlpath=$dir/\$dldll~
Chris@0 11329 $rm \$dlpath'
Chris@0 11330 shlibpath_overrides_runpath=yes
Chris@0 11331
Chris@0 11332 case $host_os in
Chris@0 11333 cygwin*)
Chris@0 11334 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@0 11335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@0 11336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Chris@0 11337 ;;
Chris@0 11338 mingw*)
Chris@0 11339 # MinGW DLLs use traditional 'lib' prefix
Chris@0 11340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@0 11341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Chris@0 11342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
Chris@0 11343 # It is most probably a Windows format PATH printed by
Chris@0 11344 # mingw gcc, but we are running on Cygwin. Gcc prints its search
Chris@0 11345 # path with ; separators, and with drive letters. We can handle the
Chris@0 11346 # drive letters (cygwin fileutils understands them), so leave them,
Chris@0 11347 # especially as we might pass files found there to a mingw objdump,
Chris@0 11348 # which wouldn't understand a cygwinified path. Ahh.
Chris@0 11349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@0 11350 else
Chris@0 11351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@0 11352 fi
Chris@0 11353 ;;
Chris@0 11354 pw32*)
Chris@0 11355 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@0 11356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
Chris@0 11357 ;;
Chris@0 11358 esac
Chris@0 11359 ;;
Chris@0 11360
Chris@0 11361 *)
Chris@0 11362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@0 11363 ;;
Chris@0 11364 esac
Chris@0 11365 dynamic_linker='Win32 ld.exe'
Chris@0 11366 # FIXME: first we should search . and the directory the executable is in
Chris@0 11367 shlibpath_var=PATH
Chris@0 11368 ;;
Chris@0 11369
Chris@0 11370 darwin* | rhapsody*)
Chris@0 11371 dynamic_linker="$host_os dyld"
Chris@0 11372 version_type=darwin
Chris@0 11373 need_lib_prefix=no
Chris@0 11374 need_version=no
Chris@0 11375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@0 11376 soname_spec='${libname}${release}${major}$shared_ext'
Chris@0 11377 shlibpath_overrides_runpath=yes
Chris@0 11378 shlibpath_var=DYLD_LIBRARY_PATH
Chris@0 11379 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
Chris@0 11380 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Chris@0 11381 if test "$GCC" = yes; then
Chris@0 11382 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"`
Chris@0 11383 else
Chris@0 11384 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
Chris@0 11385 fi
Chris@0 11386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@0 11387 ;;
Chris@0 11388
Chris@0 11389 dgux*)
Chris@0 11390 version_type=linux
Chris@0 11391 need_lib_prefix=no
Chris@0 11392 need_version=no
Chris@0 11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@0 11394 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11395 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11396 ;;
Chris@0 11397
Chris@0 11398 freebsd1*)
Chris@0 11399 dynamic_linker=no
Chris@0 11400 ;;
Chris@0 11401
Chris@0 11402 kfreebsd*-gnu)
Chris@0 11403 version_type=linux
Chris@0 11404 need_lib_prefix=no
Chris@0 11405 need_version=no
Chris@0 11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 11407 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11408 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11409 shlibpath_overrides_runpath=no
Chris@0 11410 hardcode_into_libs=yes
Chris@0 11411 dynamic_linker='GNU ld.so'
Chris@0 11412 ;;
Chris@0 11413
Chris@0 11414 freebsd*)
Chris@0 11415 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
Chris@0 11416 version_type=freebsd-$objformat
Chris@0 11417 case $version_type in
Chris@0 11418 freebsd-elf*)
Chris@0 11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@0 11420 need_version=no
Chris@0 11421 need_lib_prefix=no
Chris@0 11422 ;;
Chris@0 11423 freebsd-*)
Chris@0 11424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@0 11425 need_version=yes
Chris@0 11426 ;;
Chris@0 11427 esac
Chris@0 11428 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11429 case $host_os in
Chris@0 11430 freebsd2*)
Chris@0 11431 shlibpath_overrides_runpath=yes
Chris@0 11432 ;;
Chris@0 11433 freebsd3.01* | freebsdelf3.01*)
Chris@0 11434 shlibpath_overrides_runpath=yes
Chris@0 11435 hardcode_into_libs=yes
Chris@0 11436 ;;
Chris@0 11437 *) # from 3.2 on
Chris@0 11438 shlibpath_overrides_runpath=no
Chris@0 11439 hardcode_into_libs=yes
Chris@0 11440 ;;
Chris@0 11441 esac
Chris@0 11442 ;;
Chris@0 11443
Chris@0 11444 gnu*)
Chris@0 11445 version_type=linux
Chris@0 11446 need_lib_prefix=no
Chris@0 11447 need_version=no
Chris@0 11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@0 11449 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11450 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11451 hardcode_into_libs=yes
Chris@0 11452 ;;
Chris@0 11453
Chris@0 11454 hpux9* | hpux10* | hpux11*)
Chris@0 11455 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@0 11456 # link against other versions.
Chris@0 11457 version_type=sunos
Chris@0 11458 need_lib_prefix=no
Chris@0 11459 need_version=no
Chris@0 11460 case "$host_cpu" in
Chris@0 11461 ia64*)
Chris@0 11462 shrext='.so'
Chris@0 11463 hardcode_into_libs=yes
Chris@0 11464 dynamic_linker="$host_os dld.so"
Chris@0 11465 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@0 11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11468 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11469 if test "X$HPUX_IA64_MODE" = X32; then
Chris@0 11470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@0 11471 else
Chris@0 11472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@0 11473 fi
Chris@0 11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@0 11475 ;;
Chris@0 11476 hppa*64*)
Chris@0 11477 shrext='.sl'
Chris@0 11478 hardcode_into_libs=yes
Chris@0 11479 dynamic_linker="$host_os dld.sl"
Chris@0 11480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@0 11481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@0 11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11483 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@0 11485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@0 11486 ;;
Chris@0 11487 *)
Chris@0 11488 shrext='.sl'
Chris@0 11489 dynamic_linker="$host_os dld.sl"
Chris@0 11490 shlibpath_var=SHLIB_PATH
Chris@0 11491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@0 11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11493 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11494 ;;
Chris@0 11495 esac
Chris@0 11496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Chris@0 11497 postinstall_cmds='chmod 555 $lib'
Chris@0 11498 ;;
Chris@0 11499
Chris@0 11500 irix5* | irix6* | nonstopux*)
Chris@0 11501 case $host_os in
Chris@0 11502 nonstopux*) version_type=nonstopux ;;
Chris@0 11503 *)
Chris@0 11504 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@0 11505 version_type=linux
Chris@0 11506 else
Chris@0 11507 version_type=irix
Chris@0 11508 fi ;;
Chris@0 11509 esac
Chris@0 11510 need_lib_prefix=no
Chris@0 11511 need_version=no
Chris@0 11512 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@0 11514 case $host_os in
Chris@0 11515 irix5* | nonstopux*)
Chris@0 11516 libsuff= shlibsuff=
Chris@0 11517 ;;
Chris@0 11518 *)
Chris@0 11519 case $LD in # libtool.m4 will add one of these switches to LD
Chris@0 11520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@0 11521 libsuff= shlibsuff= libmagic=32-bit;;
Chris@0 11522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@0 11523 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@0 11524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@0 11525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@0 11526 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@0 11527 esac
Chris@0 11528 ;;
Chris@0 11529 esac
Chris@0 11530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@0 11531 shlibpath_overrides_runpath=no
Chris@0 11532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@0 11533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@0 11534 hardcode_into_libs=yes
Chris@0 11535 ;;
Chris@0 11536
Chris@0 11537 # No shared lib support for Linux oldld, aout, or coff.
Chris@0 11538 linux*oldld* | linux*aout* | linux*coff*)
Chris@0 11539 dynamic_linker=no
Chris@0 11540 ;;
Chris@0 11541
Chris@0 11542 # This must be Linux ELF.
Chris@0 11543 linux*)
Chris@0 11544 version_type=linux
Chris@0 11545 need_lib_prefix=no
Chris@0 11546 need_version=no
Chris@0 11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11548 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@0 11550 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11551 shlibpath_overrides_runpath=no
Chris@0 11552 # This implies no fast_install, which is unacceptable.
Chris@0 11553 # Some rework will be needed to allow for fast_install
Chris@0 11554 # before this can be enabled.
Chris@0 11555 hardcode_into_libs=yes
Chris@0 11556
Chris@0 11557 # Append ld.so.conf contents to the search path
Chris@0 11558 if test -f /etc/ld.so.conf; then
Chris@0 11559 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
Chris@0 11560 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
Chris@0 11561 fi
Chris@0 11562
Chris@0 11563 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@0 11564 # powerpc, because MkLinux only supported shared libraries with the
Chris@0 11565 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@0 11566 # most powerpc-linux boxes support dynamic linking these days and
Chris@0 11567 # people can always --disable-shared, the test was removed, and we
Chris@0 11568 # assume the GNU/Linux dynamic linker is in use.
Chris@0 11569 dynamic_linker='GNU/Linux ld.so'
Chris@0 11570 ;;
Chris@0 11571
Chris@0 11572 knetbsd*-gnu)
Chris@0 11573 version_type=linux
Chris@0 11574 need_lib_prefix=no
Chris@0 11575 need_version=no
Chris@0 11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 11577 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11578 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11579 shlibpath_overrides_runpath=no
Chris@0 11580 hardcode_into_libs=yes
Chris@0 11581 dynamic_linker='GNU ld.so'
Chris@0 11582 ;;
Chris@0 11583
Chris@0 11584 netbsd*)
Chris@0 11585 version_type=sunos
Chris@0 11586 need_lib_prefix=no
Chris@0 11587 need_version=no
Chris@0 11588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 11590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@0 11591 dynamic_linker='NetBSD (a.out) ld.so'
Chris@0 11592 else
Chris@0 11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 11594 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11595 dynamic_linker='NetBSD ld.elf_so'
Chris@0 11596 fi
Chris@0 11597 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11598 shlibpath_overrides_runpath=yes
Chris@0 11599 hardcode_into_libs=yes
Chris@0 11600 ;;
Chris@0 11601
Chris@0 11602 newsos6)
Chris@0 11603 version_type=linux
Chris@0 11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11605 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11606 shlibpath_overrides_runpath=yes
Chris@0 11607 ;;
Chris@0 11608
Chris@0 11609 nto-qnx*)
Chris@0 11610 version_type=linux
Chris@0 11611 need_lib_prefix=no
Chris@0 11612 need_version=no
Chris@0 11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11614 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11615 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11616 shlibpath_overrides_runpath=yes
Chris@0 11617 ;;
Chris@0 11618
Chris@0 11619 openbsd*)
Chris@0 11620 version_type=sunos
Chris@0 11621 need_lib_prefix=no
Chris@0 11622 need_version=yes
Chris@0 11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 11624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@0 11625 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@0 11627 case $host_os in
Chris@0 11628 openbsd2.[89] | openbsd2.[89].*)
Chris@0 11629 shlibpath_overrides_runpath=no
Chris@0 11630 ;;
Chris@0 11631 *)
Chris@0 11632 shlibpath_overrides_runpath=yes
Chris@0 11633 ;;
Chris@0 11634 esac
Chris@0 11635 else
Chris@0 11636 shlibpath_overrides_runpath=yes
Chris@0 11637 fi
Chris@0 11638 ;;
Chris@0 11639
Chris@0 11640 os2*)
Chris@0 11641 libname_spec='$name'
Chris@0 11642 shrext=".dll"
Chris@0 11643 need_lib_prefix=no
Chris@0 11644 library_names_spec='$libname${shared_ext} $libname.a'
Chris@0 11645 dynamic_linker='OS/2 ld.exe'
Chris@0 11646 shlibpath_var=LIBPATH
Chris@0 11647 ;;
Chris@0 11648
Chris@0 11649 osf3* | osf4* | osf5*)
Chris@0 11650 version_type=osf
Chris@0 11651 need_lib_prefix=no
Chris@0 11652 need_version=no
Chris@0 11653 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11655 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@0 11657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@0 11658 ;;
Chris@0 11659
Chris@0 11660 sco3.2v5*)
Chris@0 11661 version_type=osf
Chris@0 11662 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11664 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11665 ;;
Chris@0 11666
Chris@0 11667 solaris*)
Chris@0 11668 version_type=linux
Chris@0 11669 need_lib_prefix=no
Chris@0 11670 need_version=no
Chris@0 11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11672 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11673 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11674 shlibpath_overrides_runpath=yes
Chris@0 11675 hardcode_into_libs=yes
Chris@0 11676 # ldd complains unless libraries are executable
Chris@0 11677 postinstall_cmds='chmod +x $lib'
Chris@0 11678 ;;
Chris@0 11679
Chris@0 11680 sunos4*)
Chris@0 11681 version_type=sunos
Chris@0 11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 11683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@0 11684 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11685 shlibpath_overrides_runpath=yes
Chris@0 11686 if test "$with_gnu_ld" = yes; then
Chris@0 11687 need_lib_prefix=no
Chris@0 11688 fi
Chris@0 11689 need_version=yes
Chris@0 11690 ;;
Chris@0 11691
Chris@0 11692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@0 11693 version_type=linux
Chris@0 11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11695 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11696 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11697 case $host_vendor in
Chris@0 11698 sni)
Chris@0 11699 shlibpath_overrides_runpath=no
Chris@0 11700 need_lib_prefix=no
Chris@0 11701 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@0 11702 runpath_var=LD_RUN_PATH
Chris@0 11703 ;;
Chris@0 11704 siemens)
Chris@0 11705 need_lib_prefix=no
Chris@0 11706 ;;
Chris@0 11707 motorola)
Chris@0 11708 need_lib_prefix=no
Chris@0 11709 need_version=no
Chris@0 11710 shlibpath_overrides_runpath=no
Chris@0 11711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@0 11712 ;;
Chris@0 11713 esac
Chris@0 11714 ;;
Chris@0 11715
Chris@0 11716 sysv4*MP*)
Chris@0 11717 if test -d /usr/nec ;then
Chris@0 11718 version_type=linux
Chris@0 11719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@0 11720 soname_spec='$libname${shared_ext}.$major'
Chris@0 11721 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11722 fi
Chris@0 11723 ;;
Chris@0 11724
Chris@0 11725 uts4*)
Chris@0 11726 version_type=linux
Chris@0 11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 11728 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 11729 shlibpath_var=LD_LIBRARY_PATH
Chris@0 11730 ;;
Chris@0 11731
Chris@0 11732 *)
Chris@0 11733 dynamic_linker=no
Chris@0 11734 ;;
Chris@0 11735 esac
Chris@0 11736 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Chris@0 11737 echo "${ECHO_T}$dynamic_linker" >&6
Chris@0 11738 test "$dynamic_linker" = no && can_build_shared=no
Chris@0 11739
Chris@0 11740 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Chris@0 11741 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
Chris@0 11742 hardcode_action_CXX=
Chris@0 11743 if test -n "$hardcode_libdir_flag_spec_CXX" || \
Chris@0 11744 test -n "$runpath_var CXX" || \
Chris@0 11745 test "X$hardcode_automatic_CXX"="Xyes" ; then
Chris@0 11746
Chris@0 11747 # We can hardcode non-existant directories.
Chris@0 11748 if test "$hardcode_direct_CXX" != no &&
Chris@0 11749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@0 11750 # have to relink, otherwise we might link with an installed library
Chris@0 11751 # when we should be linking with a yet-to-be-installed one
Chris@0 11752 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
Chris@0 11753 test "$hardcode_minus_L_CXX" != no; then
Chris@0 11754 # Linking always hardcodes the temporary library directory.
Chris@0 11755 hardcode_action_CXX=relink
Chris@0 11756 else
Chris@0 11757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@0 11758 hardcode_action_CXX=immediate
Chris@0 11759 fi
Chris@0 11760 else
Chris@0 11761 # We cannot hardcode anything, or else we can only hardcode existing
Chris@0 11762 # directories.
Chris@0 11763 hardcode_action_CXX=unsupported
Chris@0 11764 fi
Chris@0 11765 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
Chris@0 11766 echo "${ECHO_T}$hardcode_action_CXX" >&6
Chris@0 11767
Chris@0 11768 if test "$hardcode_action_CXX" = relink; then
Chris@0 11769 # Fast installation is not supported
Chris@0 11770 enable_fast_install=no
Chris@0 11771 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@0 11772 test "$enable_shared" = no; then
Chris@0 11773 # Fast installation is not necessary
Chris@0 11774 enable_fast_install=needless
Chris@0 11775 fi
Chris@0 11776
Chris@0 11777 striplib=
Chris@0 11778 old_striplib=
Chris@0 11779 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
Chris@0 11780 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
Chris@0 11781 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
Chris@0 11782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@0 11783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@0 11784 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 11785 echo "${ECHO_T}yes" >&6
Chris@0 11786 else
Chris@0 11787 # FIXME - insert some real tests, host_os isn't really good enough
Chris@0 11788 case $host_os in
Chris@0 11789 darwin*)
Chris@0 11790 if test -n "$STRIP" ; then
Chris@0 11791 striplib="$STRIP -x"
Chris@0 11792 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 11793 echo "${ECHO_T}yes" >&6
Chris@0 11794 else
Chris@0 11795 echo "$as_me:$LINENO: result: no" >&5
Chris@0 11796 echo "${ECHO_T}no" >&6
Chris@0 11797 fi
Chris@0 11798 ;;
Chris@0 11799 *)
Chris@0 11800 echo "$as_me:$LINENO: result: no" >&5
Chris@0 11801 echo "${ECHO_T}no" >&6
Chris@0 11802 ;;
Chris@0 11803 esac
Chris@0 11804 fi
Chris@0 11805
Chris@0 11806 if test "x$enable_dlopen" != xyes; then
Chris@0 11807 enable_dlopen=unknown
Chris@0 11808 enable_dlopen_self=unknown
Chris@0 11809 enable_dlopen_self_static=unknown
Chris@0 11810 else
Chris@0 11811 lt_cv_dlopen=no
Chris@0 11812 lt_cv_dlopen_libs=
Chris@0 11813
Chris@0 11814 case $host_os in
Chris@0 11815 beos*)
Chris@0 11816 lt_cv_dlopen="load_add_on"
Chris@0 11817 lt_cv_dlopen_libs=
Chris@0 11818 lt_cv_dlopen_self=yes
Chris@0 11819 ;;
Chris@0 11820
Chris@0 11821 mingw* | pw32*)
Chris@0 11822 lt_cv_dlopen="LoadLibrary"
Chris@0 11823 lt_cv_dlopen_libs=
Chris@0 11824 ;;
Chris@0 11825
Chris@0 11826 cygwin*)
Chris@0 11827 lt_cv_dlopen="dlopen"
Chris@0 11828 lt_cv_dlopen_libs=
Chris@0 11829 ;;
Chris@0 11830
Chris@0 11831 darwin*)
Chris@0 11832 # if libdl is installed we need to link against it
Chris@0 11833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Chris@0 11834 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
Chris@0 11835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Chris@0 11836 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 11837 else
Chris@0 11838 ac_check_lib_save_LIBS=$LIBS
Chris@0 11839 LIBS="-ldl $LIBS"
Chris@0 11840 cat >conftest.$ac_ext <<_ACEOF
Chris@0 11841 /* confdefs.h. */
Chris@0 11842 _ACEOF
Chris@0 11843 cat confdefs.h >>conftest.$ac_ext
Chris@0 11844 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 11845 /* end confdefs.h. */
Chris@0 11846
Chris@0 11847 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 11848 #ifdef __cplusplus
Chris@0 11849 extern "C"
Chris@0 11850 #endif
Chris@0 11851 /* We use char because int might match the return type of a gcc2
Chris@0 11852 builtin and then its argument prototype would still apply. */
Chris@0 11853 char dlopen ();
Chris@0 11854 int
Chris@0 11855 main ()
Chris@0 11856 {
Chris@0 11857 dlopen ();
Chris@0 11858 ;
Chris@0 11859 return 0;
Chris@0 11860 }
Chris@0 11861 _ACEOF
Chris@0 11862 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 11864 (eval $ac_link) 2>conftest.er1
Chris@0 11865 ac_status=$?
Chris@0 11866 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 11867 rm -f conftest.er1
Chris@0 11868 cat conftest.err >&5
Chris@0 11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 11870 (exit $ac_status); } &&
Chris@0 11871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 11873 (eval $ac_try) 2>&5
Chris@0 11874 ac_status=$?
Chris@0 11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 11876 (exit $ac_status); }; } &&
Chris@0 11877 { ac_try='test -s conftest$ac_exeext'
Chris@0 11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 11879 (eval $ac_try) 2>&5
Chris@0 11880 ac_status=$?
Chris@0 11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 11882 (exit $ac_status); }; }; then
Chris@0 11883 ac_cv_lib_dl_dlopen=yes
Chris@0 11884 else
Chris@0 11885 echo "$as_me: failed program was:" >&5
Chris@0 11886 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 11887
Chris@0 11888 ac_cv_lib_dl_dlopen=no
Chris@0 11889 fi
Chris@0 11890 rm -f conftest.err conftest.$ac_objext \
Chris@0 11891 conftest$ac_exeext conftest.$ac_ext
Chris@0 11892 LIBS=$ac_check_lib_save_LIBS
Chris@0 11893 fi
Chris@0 11894 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Chris@0 11895 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
Chris@0 11896 if test $ac_cv_lib_dl_dlopen = yes; then
Chris@0 11897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@0 11898 else
Chris@0 11899
Chris@0 11900 lt_cv_dlopen="dyld"
Chris@0 11901 lt_cv_dlopen_libs=
Chris@0 11902 lt_cv_dlopen_self=yes
Chris@0 11903
Chris@0 11904 fi
Chris@0 11905
Chris@0 11906 ;;
Chris@0 11907
Chris@0 11908 *)
Chris@0 11909 echo "$as_me:$LINENO: checking for shl_load" >&5
Chris@0 11910 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
Chris@0 11911 if test "${ac_cv_func_shl_load+set}" = set; then
Chris@0 11912 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 11913 else
Chris@0 11914 cat >conftest.$ac_ext <<_ACEOF
Chris@0 11915 /* confdefs.h. */
Chris@0 11916 _ACEOF
Chris@0 11917 cat confdefs.h >>conftest.$ac_ext
Chris@0 11918 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 11919 /* end confdefs.h. */
Chris@0 11920 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
Chris@0 11921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@0 11922 #define shl_load innocuous_shl_load
Chris@0 11923
Chris@0 11924 /* System header to define __stub macros and hopefully few prototypes,
Chris@0 11925 which can conflict with char shl_load (); below.
Chris@0 11926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 11927 <limits.h> exists even on freestanding compilers. */
Chris@0 11928
Chris@0 11929 #ifdef __STDC__
Chris@0 11930 # include <limits.h>
Chris@0 11931 #else
Chris@0 11932 # include <assert.h>
Chris@0 11933 #endif
Chris@0 11934
Chris@0 11935 #undef shl_load
Chris@0 11936
Chris@0 11937 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 11938 #ifdef __cplusplus
Chris@0 11939 extern "C"
Chris@0 11940 {
Chris@0 11941 #endif
Chris@0 11942 /* We use char because int might match the return type of a gcc2
Chris@0 11943 builtin and then its argument prototype would still apply. */
Chris@0 11944 char shl_load ();
Chris@0 11945 /* The GNU C library defines this for functions which it implements
Chris@0 11946 to always fail with ENOSYS. Some functions are actually named
Chris@0 11947 something starting with __ and the normal name is an alias. */
Chris@0 11948 #if defined (__stub_shl_load) || defined (__stub___shl_load)
Chris@0 11949 choke me
Chris@0 11950 #else
Chris@0 11951 char (*f) () = shl_load;
Chris@0 11952 #endif
Chris@0 11953 #ifdef __cplusplus
Chris@0 11954 }
Chris@0 11955 #endif
Chris@0 11956
Chris@0 11957 int
Chris@0 11958 main ()
Chris@0 11959 {
Chris@0 11960 return f != shl_load;
Chris@0 11961 ;
Chris@0 11962 return 0;
Chris@0 11963 }
Chris@0 11964 _ACEOF
Chris@0 11965 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 11967 (eval $ac_link) 2>conftest.er1
Chris@0 11968 ac_status=$?
Chris@0 11969 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 11970 rm -f conftest.er1
Chris@0 11971 cat conftest.err >&5
Chris@0 11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 11973 (exit $ac_status); } &&
Chris@0 11974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 11976 (eval $ac_try) 2>&5
Chris@0 11977 ac_status=$?
Chris@0 11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 11979 (exit $ac_status); }; } &&
Chris@0 11980 { ac_try='test -s conftest$ac_exeext'
Chris@0 11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 11982 (eval $ac_try) 2>&5
Chris@0 11983 ac_status=$?
Chris@0 11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 11985 (exit $ac_status); }; }; then
Chris@0 11986 ac_cv_func_shl_load=yes
Chris@0 11987 else
Chris@0 11988 echo "$as_me: failed program was:" >&5
Chris@0 11989 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 11990
Chris@0 11991 ac_cv_func_shl_load=no
Chris@0 11992 fi
Chris@0 11993 rm -f conftest.err conftest.$ac_objext \
Chris@0 11994 conftest$ac_exeext conftest.$ac_ext
Chris@0 11995 fi
Chris@0 11996 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
Chris@0 11997 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
Chris@0 11998 if test $ac_cv_func_shl_load = yes; then
Chris@0 11999 lt_cv_dlopen="shl_load"
Chris@0 12000 else
Chris@0 12001 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
Chris@0 12002 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
Chris@0 12003 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Chris@0 12004 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 12005 else
Chris@0 12006 ac_check_lib_save_LIBS=$LIBS
Chris@0 12007 LIBS="-ldld $LIBS"
Chris@0 12008 cat >conftest.$ac_ext <<_ACEOF
Chris@0 12009 /* confdefs.h. */
Chris@0 12010 _ACEOF
Chris@0 12011 cat confdefs.h >>conftest.$ac_ext
Chris@0 12012 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 12013 /* end confdefs.h. */
Chris@0 12014
Chris@0 12015 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 12016 #ifdef __cplusplus
Chris@0 12017 extern "C"
Chris@0 12018 #endif
Chris@0 12019 /* We use char because int might match the return type of a gcc2
Chris@0 12020 builtin and then its argument prototype would still apply. */
Chris@0 12021 char shl_load ();
Chris@0 12022 int
Chris@0 12023 main ()
Chris@0 12024 {
Chris@0 12025 shl_load ();
Chris@0 12026 ;
Chris@0 12027 return 0;
Chris@0 12028 }
Chris@0 12029 _ACEOF
Chris@0 12030 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 12032 (eval $ac_link) 2>conftest.er1
Chris@0 12033 ac_status=$?
Chris@0 12034 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 12035 rm -f conftest.er1
Chris@0 12036 cat conftest.err >&5
Chris@0 12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12038 (exit $ac_status); } &&
Chris@0 12039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12041 (eval $ac_try) 2>&5
Chris@0 12042 ac_status=$?
Chris@0 12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12044 (exit $ac_status); }; } &&
Chris@0 12045 { ac_try='test -s conftest$ac_exeext'
Chris@0 12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12047 (eval $ac_try) 2>&5
Chris@0 12048 ac_status=$?
Chris@0 12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12050 (exit $ac_status); }; }; then
Chris@0 12051 ac_cv_lib_dld_shl_load=yes
Chris@0 12052 else
Chris@0 12053 echo "$as_me: failed program was:" >&5
Chris@0 12054 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 12055
Chris@0 12056 ac_cv_lib_dld_shl_load=no
Chris@0 12057 fi
Chris@0 12058 rm -f conftest.err conftest.$ac_objext \
Chris@0 12059 conftest$ac_exeext conftest.$ac_ext
Chris@0 12060 LIBS=$ac_check_lib_save_LIBS
Chris@0 12061 fi
Chris@0 12062 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Chris@0 12063 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
Chris@0 12064 if test $ac_cv_lib_dld_shl_load = yes; then
Chris@0 12065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
Chris@0 12066 else
Chris@0 12067 echo "$as_me:$LINENO: checking for dlopen" >&5
Chris@0 12068 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
Chris@0 12069 if test "${ac_cv_func_dlopen+set}" = set; then
Chris@0 12070 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 12071 else
Chris@0 12072 cat >conftest.$ac_ext <<_ACEOF
Chris@0 12073 /* confdefs.h. */
Chris@0 12074 _ACEOF
Chris@0 12075 cat confdefs.h >>conftest.$ac_ext
Chris@0 12076 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 12077 /* end confdefs.h. */
Chris@0 12078 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
Chris@0 12079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@0 12080 #define dlopen innocuous_dlopen
Chris@0 12081
Chris@0 12082 /* System header to define __stub macros and hopefully few prototypes,
Chris@0 12083 which can conflict with char dlopen (); below.
Chris@0 12084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 12085 <limits.h> exists even on freestanding compilers. */
Chris@0 12086
Chris@0 12087 #ifdef __STDC__
Chris@0 12088 # include <limits.h>
Chris@0 12089 #else
Chris@0 12090 # include <assert.h>
Chris@0 12091 #endif
Chris@0 12092
Chris@0 12093 #undef dlopen
Chris@0 12094
Chris@0 12095 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 12096 #ifdef __cplusplus
Chris@0 12097 extern "C"
Chris@0 12098 {
Chris@0 12099 #endif
Chris@0 12100 /* We use char because int might match the return type of a gcc2
Chris@0 12101 builtin and then its argument prototype would still apply. */
Chris@0 12102 char dlopen ();
Chris@0 12103 /* The GNU C library defines this for functions which it implements
Chris@0 12104 to always fail with ENOSYS. Some functions are actually named
Chris@0 12105 something starting with __ and the normal name is an alias. */
Chris@0 12106 #if defined (__stub_dlopen) || defined (__stub___dlopen)
Chris@0 12107 choke me
Chris@0 12108 #else
Chris@0 12109 char (*f) () = dlopen;
Chris@0 12110 #endif
Chris@0 12111 #ifdef __cplusplus
Chris@0 12112 }
Chris@0 12113 #endif
Chris@0 12114
Chris@0 12115 int
Chris@0 12116 main ()
Chris@0 12117 {
Chris@0 12118 return f != dlopen;
Chris@0 12119 ;
Chris@0 12120 return 0;
Chris@0 12121 }
Chris@0 12122 _ACEOF
Chris@0 12123 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 12125 (eval $ac_link) 2>conftest.er1
Chris@0 12126 ac_status=$?
Chris@0 12127 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 12128 rm -f conftest.er1
Chris@0 12129 cat conftest.err >&5
Chris@0 12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12131 (exit $ac_status); } &&
Chris@0 12132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12134 (eval $ac_try) 2>&5
Chris@0 12135 ac_status=$?
Chris@0 12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12137 (exit $ac_status); }; } &&
Chris@0 12138 { ac_try='test -s conftest$ac_exeext'
Chris@0 12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12140 (eval $ac_try) 2>&5
Chris@0 12141 ac_status=$?
Chris@0 12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12143 (exit $ac_status); }; }; then
Chris@0 12144 ac_cv_func_dlopen=yes
Chris@0 12145 else
Chris@0 12146 echo "$as_me: failed program was:" >&5
Chris@0 12147 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 12148
Chris@0 12149 ac_cv_func_dlopen=no
Chris@0 12150 fi
Chris@0 12151 rm -f conftest.err conftest.$ac_objext \
Chris@0 12152 conftest$ac_exeext conftest.$ac_ext
Chris@0 12153 fi
Chris@0 12154 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
Chris@0 12155 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
Chris@0 12156 if test $ac_cv_func_dlopen = yes; then
Chris@0 12157 lt_cv_dlopen="dlopen"
Chris@0 12158 else
Chris@0 12159 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Chris@0 12160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
Chris@0 12161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Chris@0 12162 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 12163 else
Chris@0 12164 ac_check_lib_save_LIBS=$LIBS
Chris@0 12165 LIBS="-ldl $LIBS"
Chris@0 12166 cat >conftest.$ac_ext <<_ACEOF
Chris@0 12167 /* confdefs.h. */
Chris@0 12168 _ACEOF
Chris@0 12169 cat confdefs.h >>conftest.$ac_ext
Chris@0 12170 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 12171 /* end confdefs.h. */
Chris@0 12172
Chris@0 12173 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 12174 #ifdef __cplusplus
Chris@0 12175 extern "C"
Chris@0 12176 #endif
Chris@0 12177 /* We use char because int might match the return type of a gcc2
Chris@0 12178 builtin and then its argument prototype would still apply. */
Chris@0 12179 char dlopen ();
Chris@0 12180 int
Chris@0 12181 main ()
Chris@0 12182 {
Chris@0 12183 dlopen ();
Chris@0 12184 ;
Chris@0 12185 return 0;
Chris@0 12186 }
Chris@0 12187 _ACEOF
Chris@0 12188 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 12189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 12190 (eval $ac_link) 2>conftest.er1
Chris@0 12191 ac_status=$?
Chris@0 12192 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 12193 rm -f conftest.er1
Chris@0 12194 cat conftest.err >&5
Chris@0 12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12196 (exit $ac_status); } &&
Chris@0 12197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12199 (eval $ac_try) 2>&5
Chris@0 12200 ac_status=$?
Chris@0 12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12202 (exit $ac_status); }; } &&
Chris@0 12203 { ac_try='test -s conftest$ac_exeext'
Chris@0 12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12205 (eval $ac_try) 2>&5
Chris@0 12206 ac_status=$?
Chris@0 12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12208 (exit $ac_status); }; }; then
Chris@0 12209 ac_cv_lib_dl_dlopen=yes
Chris@0 12210 else
Chris@0 12211 echo "$as_me: failed program was:" >&5
Chris@0 12212 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 12213
Chris@0 12214 ac_cv_lib_dl_dlopen=no
Chris@0 12215 fi
Chris@0 12216 rm -f conftest.err conftest.$ac_objext \
Chris@0 12217 conftest$ac_exeext conftest.$ac_ext
Chris@0 12218 LIBS=$ac_check_lib_save_LIBS
Chris@0 12219 fi
Chris@0 12220 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Chris@0 12221 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
Chris@0 12222 if test $ac_cv_lib_dl_dlopen = yes; then
Chris@0 12223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@0 12224 else
Chris@0 12225 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
Chris@0 12226 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
Chris@0 12227 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
Chris@0 12228 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 12229 else
Chris@0 12230 ac_check_lib_save_LIBS=$LIBS
Chris@0 12231 LIBS="-lsvld $LIBS"
Chris@0 12232 cat >conftest.$ac_ext <<_ACEOF
Chris@0 12233 /* confdefs.h. */
Chris@0 12234 _ACEOF
Chris@0 12235 cat confdefs.h >>conftest.$ac_ext
Chris@0 12236 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 12237 /* end confdefs.h. */
Chris@0 12238
Chris@0 12239 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 12240 #ifdef __cplusplus
Chris@0 12241 extern "C"
Chris@0 12242 #endif
Chris@0 12243 /* We use char because int might match the return type of a gcc2
Chris@0 12244 builtin and then its argument prototype would still apply. */
Chris@0 12245 char dlopen ();
Chris@0 12246 int
Chris@0 12247 main ()
Chris@0 12248 {
Chris@0 12249 dlopen ();
Chris@0 12250 ;
Chris@0 12251 return 0;
Chris@0 12252 }
Chris@0 12253 _ACEOF
Chris@0 12254 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 12255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 12256 (eval $ac_link) 2>conftest.er1
Chris@0 12257 ac_status=$?
Chris@0 12258 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 12259 rm -f conftest.er1
Chris@0 12260 cat conftest.err >&5
Chris@0 12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12262 (exit $ac_status); } &&
Chris@0 12263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12265 (eval $ac_try) 2>&5
Chris@0 12266 ac_status=$?
Chris@0 12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12268 (exit $ac_status); }; } &&
Chris@0 12269 { ac_try='test -s conftest$ac_exeext'
Chris@0 12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12271 (eval $ac_try) 2>&5
Chris@0 12272 ac_status=$?
Chris@0 12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12274 (exit $ac_status); }; }; then
Chris@0 12275 ac_cv_lib_svld_dlopen=yes
Chris@0 12276 else
Chris@0 12277 echo "$as_me: failed program was:" >&5
Chris@0 12278 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 12279
Chris@0 12280 ac_cv_lib_svld_dlopen=no
Chris@0 12281 fi
Chris@0 12282 rm -f conftest.err conftest.$ac_objext \
Chris@0 12283 conftest$ac_exeext conftest.$ac_ext
Chris@0 12284 LIBS=$ac_check_lib_save_LIBS
Chris@0 12285 fi
Chris@0 12286 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Chris@0 12287 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
Chris@0 12288 if test $ac_cv_lib_svld_dlopen = yes; then
Chris@0 12289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@0 12290 else
Chris@0 12291 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
Chris@0 12292 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
Chris@0 12293 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
Chris@0 12294 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 12295 else
Chris@0 12296 ac_check_lib_save_LIBS=$LIBS
Chris@0 12297 LIBS="-ldld $LIBS"
Chris@0 12298 cat >conftest.$ac_ext <<_ACEOF
Chris@0 12299 /* confdefs.h. */
Chris@0 12300 _ACEOF
Chris@0 12301 cat confdefs.h >>conftest.$ac_ext
Chris@0 12302 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 12303 /* end confdefs.h. */
Chris@0 12304
Chris@0 12305 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 12306 #ifdef __cplusplus
Chris@0 12307 extern "C"
Chris@0 12308 #endif
Chris@0 12309 /* We use char because int might match the return type of a gcc2
Chris@0 12310 builtin and then its argument prototype would still apply. */
Chris@0 12311 char dld_link ();
Chris@0 12312 int
Chris@0 12313 main ()
Chris@0 12314 {
Chris@0 12315 dld_link ();
Chris@0 12316 ;
Chris@0 12317 return 0;
Chris@0 12318 }
Chris@0 12319 _ACEOF
Chris@0 12320 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 12321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 12322 (eval $ac_link) 2>conftest.er1
Chris@0 12323 ac_status=$?
Chris@0 12324 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 12325 rm -f conftest.er1
Chris@0 12326 cat conftest.err >&5
Chris@0 12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12328 (exit $ac_status); } &&
Chris@0 12329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Chris@0 12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12331 (eval $ac_try) 2>&5
Chris@0 12332 ac_status=$?
Chris@0 12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12334 (exit $ac_status); }; } &&
Chris@0 12335 { ac_try='test -s conftest$ac_exeext'
Chris@0 12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 12337 (eval $ac_try) 2>&5
Chris@0 12338 ac_status=$?
Chris@0 12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12340 (exit $ac_status); }; }; then
Chris@0 12341 ac_cv_lib_dld_dld_link=yes
Chris@0 12342 else
Chris@0 12343 echo "$as_me: failed program was:" >&5
Chris@0 12344 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 12345
Chris@0 12346 ac_cv_lib_dld_dld_link=no
Chris@0 12347 fi
Chris@0 12348 rm -f conftest.err conftest.$ac_objext \
Chris@0 12349 conftest$ac_exeext conftest.$ac_ext
Chris@0 12350 LIBS=$ac_check_lib_save_LIBS
Chris@0 12351 fi
Chris@0 12352 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Chris@0 12353 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
Chris@0 12354 if test $ac_cv_lib_dld_dld_link = yes; then
Chris@0 12355 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
Chris@0 12356 fi
Chris@0 12357
Chris@0 12358
Chris@0 12359 fi
Chris@0 12360
Chris@0 12361
Chris@0 12362 fi
Chris@0 12363
Chris@0 12364
Chris@0 12365 fi
Chris@0 12366
Chris@0 12367
Chris@0 12368 fi
Chris@0 12369
Chris@0 12370
Chris@0 12371 fi
Chris@0 12372
Chris@0 12373 ;;
Chris@0 12374 esac
Chris@0 12375
Chris@0 12376 if test "x$lt_cv_dlopen" != xno; then
Chris@0 12377 enable_dlopen=yes
Chris@0 12378 else
Chris@0 12379 enable_dlopen=no
Chris@0 12380 fi
Chris@0 12381
Chris@0 12382 case $lt_cv_dlopen in
Chris@0 12383 dlopen)
Chris@0 12384 save_CPPFLAGS="$CPPFLAGS"
Chris@0 12385 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@0 12386
Chris@0 12387 save_LDFLAGS="$LDFLAGS"
Chris@0 12388 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@0 12389
Chris@0 12390 save_LIBS="$LIBS"
Chris@0 12391 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@0 12392
Chris@0 12393 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
Chris@0 12394 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
Chris@0 12395 if test "${lt_cv_dlopen_self+set}" = set; then
Chris@0 12396 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 12397 else
Chris@0 12398 if test "$cross_compiling" = yes; then :
Chris@0 12399 lt_cv_dlopen_self=cross
Chris@0 12400 else
Chris@0 12401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@0 12402 lt_status=$lt_dlunknown
Chris@0 12403 cat > conftest.$ac_ext <<EOF
Chris@0 12404 #line 12404 "configure"
Chris@0 12405 #include "confdefs.h"
Chris@0 12406
Chris@0 12407 #if HAVE_DLFCN_H
Chris@0 12408 #include <dlfcn.h>
Chris@0 12409 #endif
Chris@0 12410
Chris@0 12411 #include <stdio.h>
Chris@0 12412
Chris@0 12413 #ifdef RTLD_GLOBAL
Chris@0 12414 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@0 12415 #else
Chris@0 12416 # ifdef DL_GLOBAL
Chris@0 12417 # define LT_DLGLOBAL DL_GLOBAL
Chris@0 12418 # else
Chris@0 12419 # define LT_DLGLOBAL 0
Chris@0 12420 # endif
Chris@0 12421 #endif
Chris@0 12422
Chris@0 12423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@0 12424 find out it does not work in some platform. */
Chris@0 12425 #ifndef LT_DLLAZY_OR_NOW
Chris@0 12426 # ifdef RTLD_LAZY
Chris@0 12427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@0 12428 # else
Chris@0 12429 # ifdef DL_LAZY
Chris@0 12430 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@0 12431 # else
Chris@0 12432 # ifdef RTLD_NOW
Chris@0 12433 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@0 12434 # else
Chris@0 12435 # ifdef DL_NOW
Chris@0 12436 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@0 12437 # else
Chris@0 12438 # define LT_DLLAZY_OR_NOW 0
Chris@0 12439 # endif
Chris@0 12440 # endif
Chris@0 12441 # endif
Chris@0 12442 # endif
Chris@0 12443 #endif
Chris@0 12444
Chris@0 12445 #ifdef __cplusplus
Chris@0 12446 extern "C" void exit (int);
Chris@0 12447 #endif
Chris@0 12448
Chris@0 12449 void fnord() { int i=42;}
Chris@0 12450 int main ()
Chris@0 12451 {
Chris@0 12452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@0 12453 int status = $lt_dlunknown;
Chris@0 12454
Chris@0 12455 if (self)
Chris@0 12456 {
Chris@0 12457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@0 12458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@0 12459 /* dlclose (self); */
Chris@0 12460 }
Chris@0 12461
Chris@0 12462 exit (status);
Chris@0 12463 }
Chris@0 12464 EOF
Chris@0 12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 12466 (eval $ac_link) 2>&5
Chris@0 12467 ac_status=$?
Chris@0 12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@0 12470 (./conftest; exit; ) 2>/dev/null
Chris@0 12471 lt_status=$?
Chris@0 12472 case x$lt_status in
Chris@0 12473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@0 12474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@0 12475 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
Chris@0 12476 esac
Chris@0 12477 else :
Chris@0 12478 # compilation failed
Chris@0 12479 lt_cv_dlopen_self=no
Chris@0 12480 fi
Chris@0 12481 fi
Chris@0 12482 rm -fr conftest*
Chris@0 12483
Chris@0 12484
Chris@0 12485 fi
Chris@0 12486 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
Chris@0 12487 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
Chris@0 12488
Chris@0 12489 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@0 12490 LDFLAGS="$LDFLAGS $link_static_flag"
Chris@0 12491 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
Chris@0 12492 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
Chris@0 12493 if test "${lt_cv_dlopen_self_static+set}" = set; then
Chris@0 12494 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 12495 else
Chris@0 12496 if test "$cross_compiling" = yes; then :
Chris@0 12497 lt_cv_dlopen_self_static=cross
Chris@0 12498 else
Chris@0 12499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@0 12500 lt_status=$lt_dlunknown
Chris@0 12501 cat > conftest.$ac_ext <<EOF
Chris@0 12502 #line 12502 "configure"
Chris@0 12503 #include "confdefs.h"
Chris@0 12504
Chris@0 12505 #if HAVE_DLFCN_H
Chris@0 12506 #include <dlfcn.h>
Chris@0 12507 #endif
Chris@0 12508
Chris@0 12509 #include <stdio.h>
Chris@0 12510
Chris@0 12511 #ifdef RTLD_GLOBAL
Chris@0 12512 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@0 12513 #else
Chris@0 12514 # ifdef DL_GLOBAL
Chris@0 12515 # define LT_DLGLOBAL DL_GLOBAL
Chris@0 12516 # else
Chris@0 12517 # define LT_DLGLOBAL 0
Chris@0 12518 # endif
Chris@0 12519 #endif
Chris@0 12520
Chris@0 12521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@0 12522 find out it does not work in some platform. */
Chris@0 12523 #ifndef LT_DLLAZY_OR_NOW
Chris@0 12524 # ifdef RTLD_LAZY
Chris@0 12525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@0 12526 # else
Chris@0 12527 # ifdef DL_LAZY
Chris@0 12528 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@0 12529 # else
Chris@0 12530 # ifdef RTLD_NOW
Chris@0 12531 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@0 12532 # else
Chris@0 12533 # ifdef DL_NOW
Chris@0 12534 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@0 12535 # else
Chris@0 12536 # define LT_DLLAZY_OR_NOW 0
Chris@0 12537 # endif
Chris@0 12538 # endif
Chris@0 12539 # endif
Chris@0 12540 # endif
Chris@0 12541 #endif
Chris@0 12542
Chris@0 12543 #ifdef __cplusplus
Chris@0 12544 extern "C" void exit (int);
Chris@0 12545 #endif
Chris@0 12546
Chris@0 12547 void fnord() { int i=42;}
Chris@0 12548 int main ()
Chris@0 12549 {
Chris@0 12550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@0 12551 int status = $lt_dlunknown;
Chris@0 12552
Chris@0 12553 if (self)
Chris@0 12554 {
Chris@0 12555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@0 12556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@0 12557 /* dlclose (self); */
Chris@0 12558 }
Chris@0 12559
Chris@0 12560 exit (status);
Chris@0 12561 }
Chris@0 12562 EOF
Chris@0 12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 12564 (eval $ac_link) 2>&5
Chris@0 12565 ac_status=$?
Chris@0 12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 12567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@0 12568 (./conftest; exit; ) 2>/dev/null
Chris@0 12569 lt_status=$?
Chris@0 12570 case x$lt_status in
Chris@0 12571 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@0 12572 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@0 12573 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@0 12574 esac
Chris@0 12575 else :
Chris@0 12576 # compilation failed
Chris@0 12577 lt_cv_dlopen_self_static=no
Chris@0 12578 fi
Chris@0 12579 fi
Chris@0 12580 rm -fr conftest*
Chris@0 12581
Chris@0 12582
Chris@0 12583 fi
Chris@0 12584 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
Chris@0 12585 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
Chris@0 12586 fi
Chris@0 12587
Chris@0 12588 CPPFLAGS="$save_CPPFLAGS"
Chris@0 12589 LDFLAGS="$save_LDFLAGS"
Chris@0 12590 LIBS="$save_LIBS"
Chris@0 12591 ;;
Chris@0 12592 esac
Chris@0 12593
Chris@0 12594 case $lt_cv_dlopen_self in
Chris@0 12595 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@0 12596 *) enable_dlopen_self=unknown ;;
Chris@0 12597 esac
Chris@0 12598
Chris@0 12599 case $lt_cv_dlopen_self_static in
Chris@0 12600 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@0 12601 *) enable_dlopen_self_static=unknown ;;
Chris@0 12602 esac
Chris@0 12603 fi
Chris@0 12604
Chris@0 12605
Chris@0 12606 # The else clause should only fire when bootstrapping the
Chris@0 12607 # libtool distribution, otherwise you forgot to ship ltmain.sh
Chris@0 12608 # with your package, and you will get complaints that there are
Chris@0 12609 # no rules to generate ltmain.sh.
Chris@0 12610 if test -f "$ltmain"; then
Chris@0 12611 # See if we are running on zsh, and set the options which allow our commands through
Chris@0 12612 # without removal of \ escapes.
Chris@0 12613 if test -n "${ZSH_VERSION+set}" ; then
Chris@0 12614 setopt NO_GLOB_SUBST
Chris@0 12615 fi
Chris@0 12616 # Now quote all the things that may contain metacharacters while being
Chris@0 12617 # careful not to overquote the AC_SUBSTed values. We take copies of the
Chris@0 12618 # variables and quote the copies for generation of the libtool script.
Chris@0 12619 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
Chris@0 12620 SED SHELL STRIP \
Chris@0 12621 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
Chris@0 12622 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
Chris@0 12623 deplibs_check_method reload_flag reload_cmds need_locks \
Chris@0 12624 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
Chris@0 12625 lt_cv_sys_global_symbol_to_c_name_address \
Chris@0 12626 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Chris@0 12627 old_postinstall_cmds old_postuninstall_cmds \
Chris@0 12628 compiler_CXX \
Chris@0 12629 CC_CXX \
Chris@0 12630 LD_CXX \
Chris@0 12631 lt_prog_compiler_wl_CXX \
Chris@0 12632 lt_prog_compiler_pic_CXX \
Chris@0 12633 lt_prog_compiler_static_CXX \
Chris@0 12634 lt_prog_compiler_no_builtin_flag_CXX \
Chris@0 12635 export_dynamic_flag_spec_CXX \
Chris@0 12636 thread_safe_flag_spec_CXX \
Chris@0 12637 whole_archive_flag_spec_CXX \
Chris@0 12638 enable_shared_with_static_runtimes_CXX \
Chris@0 12639 old_archive_cmds_CXX \
Chris@0 12640 old_archive_from_new_cmds_CXX \
Chris@0 12641 predep_objects_CXX \
Chris@0 12642 postdep_objects_CXX \
Chris@0 12643 predeps_CXX \
Chris@0 12644 postdeps_CXX \
Chris@0 12645 compiler_lib_search_path_CXX \
Chris@0 12646 archive_cmds_CXX \
Chris@0 12647 archive_expsym_cmds_CXX \
Chris@0 12648 postinstall_cmds_CXX \
Chris@0 12649 postuninstall_cmds_CXX \
Chris@0 12650 old_archive_from_expsyms_cmds_CXX \
Chris@0 12651 allow_undefined_flag_CXX \
Chris@0 12652 no_undefined_flag_CXX \
Chris@0 12653 export_symbols_cmds_CXX \
Chris@0 12654 hardcode_libdir_flag_spec_CXX \
Chris@0 12655 hardcode_libdir_flag_spec_ld_CXX \
Chris@0 12656 hardcode_libdir_separator_CXX \
Chris@0 12657 hardcode_automatic_CXX \
Chris@0 12658 module_cmds_CXX \
Chris@0 12659 module_expsym_cmds_CXX \
Chris@0 12660 lt_cv_prog_compiler_c_o_CXX \
Chris@0 12661 exclude_expsyms_CXX \
Chris@0 12662 include_expsyms_CXX; do
Chris@0 12663
Chris@0 12664 case $var in
Chris@0 12665 old_archive_cmds_CXX | \
Chris@0 12666 old_archive_from_new_cmds_CXX | \
Chris@0 12667 archive_cmds_CXX | \
Chris@0 12668 archive_expsym_cmds_CXX | \
Chris@0 12669 module_cmds_CXX | \
Chris@0 12670 module_expsym_cmds_CXX | \
Chris@0 12671 old_archive_from_expsyms_cmds_CXX | \
Chris@0 12672 export_symbols_cmds_CXX | \
Chris@0 12673 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Chris@0 12674 postinstall_cmds | postuninstall_cmds | \
Chris@0 12675 old_postinstall_cmds | old_postuninstall_cmds | \
Chris@0 12676 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Chris@0 12677 # Double-quote double-evaled strings.
Chris@0 12678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
Chris@0 12679 ;;
Chris@0 12680 *)
Chris@0 12681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
Chris@0 12682 ;;
Chris@0 12683 esac
Chris@0 12684 done
Chris@0 12685
Chris@0 12686 case $lt_echo in
Chris@0 12687 *'\$0 --fallback-echo"')
Chris@0 12688 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
Chris@0 12689 ;;
Chris@0 12690 esac
Chris@0 12691
Chris@0 12692 cfgfile="$ofile"
Chris@0 12693
Chris@0 12694 cat <<__EOF__ >> "$cfgfile"
Chris@0 12695 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
Chris@0 12696
Chris@0 12697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@0 12698
Chris@0 12699 # Shell to use when invoking shell scripts.
Chris@0 12700 SHELL=$lt_SHELL
Chris@0 12701
Chris@0 12702 # Whether or not to build shared libraries.
Chris@0 12703 build_libtool_libs=$enable_shared
Chris@0 12704
Chris@0 12705 # Whether or not to build static libraries.
Chris@0 12706 build_old_libs=$enable_static
Chris@0 12707
Chris@0 12708 # Whether or not to add -lc for building shared libraries.
Chris@0 12709 build_libtool_need_lc=$archive_cmds_need_lc_CXX
Chris@0 12710
Chris@0 12711 # Whether or not to disallow shared libs when runtime libs are static
Chris@0 12712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
Chris@0 12713
Chris@0 12714 # Whether or not to optimize for fast installation.
Chris@0 12715 fast_install=$enable_fast_install
Chris@0 12716
Chris@0 12717 # The host system.
Chris@0 12718 host_alias=$host_alias
Chris@0 12719 host=$host
Chris@0 12720
Chris@0 12721 # An echo program that does not interpret backslashes.
Chris@0 12722 echo=$lt_echo
Chris@0 12723
Chris@0 12724 # The archiver.
Chris@0 12725 AR=$lt_AR
Chris@0 12726 AR_FLAGS=$lt_AR_FLAGS
Chris@0 12727
Chris@0 12728 # A C compiler.
Chris@0 12729 LTCC=$lt_LTCC
Chris@0 12730
Chris@0 12731 # A language-specific compiler.
Chris@0 12732 CC=$lt_compiler_CXX
Chris@0 12733
Chris@0 12734 # Is the compiler the GNU C compiler?
Chris@0 12735 with_gcc=$GCC_CXX
Chris@0 12736
Chris@0 12737 # An ERE matcher.
Chris@0 12738 EGREP=$lt_EGREP
Chris@0 12739
Chris@0 12740 # The linker used to build libraries.
Chris@0 12741 LD=$lt_LD_CXX
Chris@0 12742
Chris@0 12743 # Whether we need hard or soft links.
Chris@0 12744 LN_S=$lt_LN_S
Chris@0 12745
Chris@0 12746 # A BSD-compatible nm program.
Chris@0 12747 NM=$lt_NM
Chris@0 12748
Chris@0 12749 # A symbol stripping program
Chris@0 12750 STRIP=$lt_STRIP
Chris@0 12751
Chris@0 12752 # Used to examine libraries when file_magic_cmd begins "file"
Chris@0 12753 MAGIC_CMD=$MAGIC_CMD
Chris@0 12754
Chris@0 12755 # Used on cygwin: DLL creation program.
Chris@0 12756 DLLTOOL="$DLLTOOL"
Chris@0 12757
Chris@0 12758 # Used on cygwin: object dumper.
Chris@0 12759 OBJDUMP="$OBJDUMP"
Chris@0 12760
Chris@0 12761 # Used on cygwin: assembler.
Chris@0 12762 AS="$AS"
Chris@0 12763
Chris@0 12764 # The name of the directory that contains temporary libtool files.
Chris@0 12765 objdir=$objdir
Chris@0 12766
Chris@0 12767 # How to create reloadable object files.
Chris@0 12768 reload_flag=$lt_reload_flag
Chris@0 12769 reload_cmds=$lt_reload_cmds
Chris@0 12770
Chris@0 12771 # How to pass a linker flag through the compiler.
Chris@0 12772 wl=$lt_lt_prog_compiler_wl_CXX
Chris@0 12773
Chris@0 12774 # Object file suffix (normally "o").
Chris@0 12775 objext="$ac_objext"
Chris@0 12776
Chris@0 12777 # Old archive suffix (normally "a").
Chris@0 12778 libext="$libext"
Chris@0 12779
Chris@0 12780 # Shared library suffix (normally ".so").
Chris@0 12781 shrext='$shrext'
Chris@0 12782
Chris@0 12783 # Executable file suffix (normally "").
Chris@0 12784 exeext="$exeext"
Chris@0 12785
Chris@0 12786 # Additional compiler flags for building library objects.
Chris@0 12787 pic_flag=$lt_lt_prog_compiler_pic_CXX
Chris@0 12788 pic_mode=$pic_mode
Chris@0 12789
Chris@0 12790 # What is the maximum length of a command?
Chris@0 12791 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@0 12792
Chris@0 12793 # Does compiler simultaneously support -c and -o options?
Chris@0 12794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
Chris@0 12795
Chris@0 12796 # Must we lock files when doing compilation ?
Chris@0 12797 need_locks=$lt_need_locks
Chris@0 12798
Chris@0 12799 # Do we need the lib prefix for modules?
Chris@0 12800 need_lib_prefix=$need_lib_prefix
Chris@0 12801
Chris@0 12802 # Do we need a version for libraries?
Chris@0 12803 need_version=$need_version
Chris@0 12804
Chris@0 12805 # Whether dlopen is supported.
Chris@0 12806 dlopen_support=$enable_dlopen
Chris@0 12807
Chris@0 12808 # Whether dlopen of programs is supported.
Chris@0 12809 dlopen_self=$enable_dlopen_self
Chris@0 12810
Chris@0 12811 # Whether dlopen of statically linked programs is supported.
Chris@0 12812 dlopen_self_static=$enable_dlopen_self_static
Chris@0 12813
Chris@0 12814 # Compiler flag to prevent dynamic linking.
Chris@0 12815 link_static_flag=$lt_lt_prog_compiler_static_CXX
Chris@0 12816
Chris@0 12817 # Compiler flag to turn off builtin functions.
Chris@0 12818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
Chris@0 12819
Chris@0 12820 # Compiler flag to allow reflexive dlopens.
Chris@0 12821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
Chris@0 12822
Chris@0 12823 # Compiler flag to generate shared objects directly from archives.
Chris@0 12824 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
Chris@0 12825
Chris@0 12826 # Compiler flag to generate thread-safe objects.
Chris@0 12827 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
Chris@0 12828
Chris@0 12829 # Library versioning type.
Chris@0 12830 version_type=$version_type
Chris@0 12831
Chris@0 12832 # Format of library name prefix.
Chris@0 12833 libname_spec=$lt_libname_spec
Chris@0 12834
Chris@0 12835 # List of archive names. First name is the real one, the rest are links.
Chris@0 12836 # The last name is the one that the linker finds with -lNAME.
Chris@0 12837 library_names_spec=$lt_library_names_spec
Chris@0 12838
Chris@0 12839 # The coded name of the library, if different from the real name.
Chris@0 12840 soname_spec=$lt_soname_spec
Chris@0 12841
Chris@0 12842 # Commands used to build and install an old-style archive.
Chris@0 12843 RANLIB=$lt_RANLIB
Chris@0 12844 old_archive_cmds=$lt_old_archive_cmds_CXX
Chris@0 12845 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@0 12846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@0 12847
Chris@0 12848 # Create an old-style archive from a shared archive.
Chris@0 12849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
Chris@0 12850
Chris@0 12851 # Create a temporary old-style archive to link instead of a shared archive.
Chris@0 12852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
Chris@0 12853
Chris@0 12854 # Commands used to build and install a shared archive.
Chris@0 12855 archive_cmds=$lt_archive_cmds_CXX
Chris@0 12856 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
Chris@0 12857 postinstall_cmds=$lt_postinstall_cmds
Chris@0 12858 postuninstall_cmds=$lt_postuninstall_cmds
Chris@0 12859
Chris@0 12860 # Commands used to build a loadable module (assumed same as above if empty)
Chris@0 12861 module_cmds=$lt_module_cmds_CXX
Chris@0 12862 module_expsym_cmds=$lt_module_expsym_cmds_CXX
Chris@0 12863
Chris@0 12864 # Commands to strip libraries.
Chris@0 12865 old_striplib=$lt_old_striplib
Chris@0 12866 striplib=$lt_striplib
Chris@0 12867
Chris@0 12868 # Dependencies to place before the objects being linked to create a
Chris@0 12869 # shared library.
Chris@0 12870 predep_objects=$lt_predep_objects_CXX
Chris@0 12871
Chris@0 12872 # Dependencies to place after the objects being linked to create a
Chris@0 12873 # shared library.
Chris@0 12874 postdep_objects=$lt_postdep_objects_CXX
Chris@0 12875
Chris@0 12876 # Dependencies to place before the objects being linked to create a
Chris@0 12877 # shared library.
Chris@0 12878 predeps=$lt_predeps_CXX
Chris@0 12879
Chris@0 12880 # Dependencies to place after the objects being linked to create a
Chris@0 12881 # shared library.
Chris@0 12882 postdeps=$lt_postdeps_CXX
Chris@0 12883
Chris@0 12884 # The library search path used internally by the compiler when linking
Chris@0 12885 # a shared library.
Chris@0 12886 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
Chris@0 12887
Chris@0 12888 # Method to check whether dependent libraries are shared objects.
Chris@0 12889 deplibs_check_method=$lt_deplibs_check_method
Chris@0 12890
Chris@0 12891 # Command to use when deplibs_check_method == file_magic.
Chris@0 12892 file_magic_cmd=$lt_file_magic_cmd
Chris@0 12893
Chris@0 12894 # Flag that allows shared libraries with undefined symbols to be built.
Chris@0 12895 allow_undefined_flag=$lt_allow_undefined_flag_CXX
Chris@0 12896
Chris@0 12897 # Flag that forces no undefined symbols.
Chris@0 12898 no_undefined_flag=$lt_no_undefined_flag_CXX
Chris@0 12899
Chris@0 12900 # Commands used to finish a libtool library installation in a directory.
Chris@0 12901 finish_cmds=$lt_finish_cmds
Chris@0 12902
Chris@0 12903 # Same as above, but a single script fragment to be evaled but not shown.
Chris@0 12904 finish_eval=$lt_finish_eval
Chris@0 12905
Chris@0 12906 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@0 12907 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@0 12908
Chris@0 12909 # Transform the output of nm in a proper C declaration
Chris@0 12910 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@0 12911
Chris@0 12912 # Transform the output of nm in a C name address pair
Chris@0 12913 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@0 12914
Chris@0 12915 # This is the shared library runtime path variable.
Chris@0 12916 runpath_var=$runpath_var
Chris@0 12917
Chris@0 12918 # This is the shared library path variable.
Chris@0 12919 shlibpath_var=$shlibpath_var
Chris@0 12920
Chris@0 12921 # Is shlibpath searched before the hard-coded library search path?
Chris@0 12922 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@0 12923
Chris@0 12924 # How to hardcode a shared library path into an executable.
Chris@0 12925 hardcode_action=$hardcode_action_CXX
Chris@0 12926
Chris@0 12927 # Whether we should hardcode library paths into libraries.
Chris@0 12928 hardcode_into_libs=$hardcode_into_libs
Chris@0 12929
Chris@0 12930 # Flag to hardcode \$libdir into a binary during linking.
Chris@0 12931 # This must work even if \$libdir does not exist.
Chris@0 12932 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
Chris@0 12933
Chris@0 12934 # If ld is used when linking, flag to hardcode \$libdir into
Chris@0 12935 # a binary during linking. This must work even if \$libdir does
Chris@0 12936 # not exist.
Chris@0 12937 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
Chris@0 12938
Chris@0 12939 # Whether we need a single -rpath flag with a separated argument.
Chris@0 12940 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
Chris@0 12941
Chris@0 12942 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Chris@0 12943 # resulting binary.
Chris@0 12944 hardcode_direct=$hardcode_direct_CXX
Chris@0 12945
Chris@0 12946 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
Chris@0 12947 # resulting binary.
Chris@0 12948 hardcode_minus_L=$hardcode_minus_L_CXX
Chris@0 12949
Chris@0 12950 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
Chris@0 12951 # the resulting binary.
Chris@0 12952 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
Chris@0 12953
Chris@0 12954 # Set to yes if building a shared library automatically hardcodes DIR into the library
Chris@0 12955 # and all subsequent libraries and executables linked against it.
Chris@0 12956 hardcode_automatic=$hardcode_automatic_CXX
Chris@0 12957
Chris@0 12958 # Variables whose values should be saved in libtool wrapper scripts and
Chris@0 12959 # restored at relink time.
Chris@0 12960 variables_saved_for_relink="$variables_saved_for_relink"
Chris@0 12961
Chris@0 12962 # Whether libtool must link a program against all its dependency libraries.
Chris@0 12963 link_all_deplibs=$link_all_deplibs_CXX
Chris@0 12964
Chris@0 12965 # Compile-time system search path for libraries
Chris@0 12966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@0 12967
Chris@0 12968 # Run-time system search path for libraries
Chris@0 12969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@0 12970
Chris@0 12971 # Fix the shell variable \$srcfile for the compiler.
Chris@0 12972 fix_srcfile_path="$fix_srcfile_path_CXX"
Chris@0 12973
Chris@0 12974 # Set to yes if exported symbols are required.
Chris@0 12975 always_export_symbols=$always_export_symbols_CXX
Chris@0 12976
Chris@0 12977 # The commands to list exported symbols.
Chris@0 12978 export_symbols_cmds=$lt_export_symbols_cmds_CXX
Chris@0 12979
Chris@0 12980 # The commands to extract the exported symbol list from a shared archive.
Chris@0 12981 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@0 12982
Chris@0 12983 # Symbols that should not be listed in the preloaded symbols.
Chris@0 12984 exclude_expsyms=$lt_exclude_expsyms_CXX
Chris@0 12985
Chris@0 12986 # Symbols that must always be exported.
Chris@0 12987 include_expsyms=$lt_include_expsyms_CXX
Chris@0 12988
Chris@0 12989 # ### END LIBTOOL TAG CONFIG: $tagname
Chris@0 12990
Chris@0 12991 __EOF__
Chris@0 12992
Chris@0 12993
Chris@0 12994 else
Chris@0 12995 # If there is no Makefile yet, we rely on a make rule to execute
Chris@0 12996 # `config.status --recheck' to rerun these tests and create the
Chris@0 12997 # libtool script then.
Chris@0 12998 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
Chris@0 12999 if test -f "$ltmain_in"; then
Chris@0 13000 test -f Makefile && make "$ltmain"
Chris@0 13001 fi
Chris@0 13002 fi
Chris@0 13003
Chris@0 13004
Chris@0 13005 ac_ext=c
Chris@0 13006 ac_cpp='$CPP $CPPFLAGS'
Chris@0 13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 13010
Chris@0 13011 CC=$lt_save_CC
Chris@0 13012 LDCXX=$LD
Chris@0 13013 LD=$lt_save_LD
Chris@0 13014 GCC=$lt_save_GCC
Chris@0 13015 with_gnu_ldcxx=$with_gnu_ld
Chris@0 13016 with_gnu_ld=$lt_save_with_gnu_ld
Chris@0 13017 lt_cv_path_LDCXX=$lt_cv_path_LD
Chris@0 13018 lt_cv_path_LD=$lt_save_path_LD
Chris@0 13019 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
Chris@0 13020 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Chris@0 13021
Chris@0 13022 else
Chris@0 13023 tagname=""
Chris@0 13024 fi
Chris@0 13025 ;;
Chris@0 13026
Chris@0 13027 F77)
Chris@0 13028 if test -n "$F77" && test "X$F77" != "Xno"; then
Chris@0 13029
Chris@0 13030 ac_ext=f
Chris@0 13031 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@0 13032 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 13033 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@0 13034
Chris@0 13035
Chris@0 13036 archive_cmds_need_lc_F77=no
Chris@0 13037 allow_undefined_flag_F77=
Chris@0 13038 always_export_symbols_F77=no
Chris@0 13039 archive_expsym_cmds_F77=
Chris@0 13040 export_dynamic_flag_spec_F77=
Chris@0 13041 hardcode_direct_F77=no
Chris@0 13042 hardcode_libdir_flag_spec_F77=
Chris@0 13043 hardcode_libdir_flag_spec_ld_F77=
Chris@0 13044 hardcode_libdir_separator_F77=
Chris@0 13045 hardcode_minus_L_F77=no
Chris@0 13046 hardcode_automatic_F77=no
Chris@0 13047 module_cmds_F77=
Chris@0 13048 module_expsym_cmds_F77=
Chris@0 13049 link_all_deplibs_F77=unknown
Chris@0 13050 old_archive_cmds_F77=$old_archive_cmds
Chris@0 13051 no_undefined_flag_F77=
Chris@0 13052 whole_archive_flag_spec_F77=
Chris@0 13053 enable_shared_with_static_runtimes_F77=no
Chris@0 13054
Chris@0 13055 # Source file extension for f77 test sources.
Chris@0 13056 ac_ext=f
Chris@0 13057
Chris@0 13058 # Object file extension for compiled f77 test sources.
Chris@0 13059 objext=o
Chris@0 13060 objext_F77=$objext
Chris@0 13061
Chris@0 13062 # Code to be used in simple compile tests
Chris@0 13063 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
Chris@0 13064
Chris@0 13065 # Code to be used in simple link tests
Chris@0 13066 lt_simple_link_test_code=" program t\n end\n"
Chris@0 13067
Chris@0 13068 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@0 13069
Chris@0 13070 # If no C compiler was specified, use CC.
Chris@0 13071 LTCC=${LTCC-"$CC"}
Chris@0 13072
Chris@0 13073 # Allow CC to be a program name with arguments.
Chris@0 13074 compiler=$CC
Chris@0 13075
Chris@0 13076
Chris@0 13077 # Allow CC to be a program name with arguments.
Chris@0 13078 lt_save_CC="$CC"
Chris@0 13079 CC=${F77-"f77"}
Chris@0 13080 compiler=$CC
Chris@0 13081 compiler_F77=$CC
Chris@0 13082 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
Chris@0 13083
Chris@0 13084 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Chris@0 13085 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
Chris@0 13086 echo "$as_me:$LINENO: result: $can_build_shared" >&5
Chris@0 13087 echo "${ECHO_T}$can_build_shared" >&6
Chris@0 13088
Chris@0 13089 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Chris@0 13090 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
Chris@0 13091 test "$can_build_shared" = "no" && enable_shared=no
Chris@0 13092
Chris@0 13093 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@0 13094 # are all built from PIC.
Chris@0 13095 case "$host_os" in
Chris@0 13096 aix3*)
Chris@0 13097 test "$enable_shared" = yes && enable_static=no
Chris@0 13098 if test -n "$RANLIB"; then
Chris@0 13099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@0 13100 postinstall_cmds='$RANLIB $lib'
Chris@0 13101 fi
Chris@0 13102 ;;
Chris@0 13103 aix4*)
Chris@0 13104 test "$enable_shared" = yes && enable_static=no
Chris@0 13105 ;;
Chris@0 13106 esac
Chris@0 13107 echo "$as_me:$LINENO: result: $enable_shared" >&5
Chris@0 13108 echo "${ECHO_T}$enable_shared" >&6
Chris@0 13109
Chris@0 13110 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Chris@0 13111 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
Chris@0 13112 # Make sure either enable_shared or enable_static is yes.
Chris@0 13113 test "$enable_shared" = yes || enable_static=yes
Chris@0 13114 echo "$as_me:$LINENO: result: $enable_static" >&5
Chris@0 13115 echo "${ECHO_T}$enable_static" >&6
Chris@0 13116
Chris@0 13117 test "$ld_shlibs_F77" = no && can_build_shared=no
Chris@0 13118
Chris@0 13119 GCC_F77="$G77"
Chris@0 13120 LD_F77="$LD"
Chris@0 13121
Chris@0 13122 lt_prog_compiler_wl_F77=
Chris@0 13123 lt_prog_compiler_pic_F77=
Chris@0 13124 lt_prog_compiler_static_F77=
Chris@0 13125
Chris@0 13126 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
Chris@0 13127 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
Chris@0 13128
Chris@0 13129 if test "$GCC" = yes; then
Chris@0 13130 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13131 lt_prog_compiler_static_F77='-static'
Chris@0 13132
Chris@0 13133 case $host_os in
Chris@0 13134 aix*)
Chris@0 13135 # All AIX code is PIC.
Chris@0 13136 if test "$host_cpu" = ia64; then
Chris@0 13137 # AIX 5 now supports IA64 processor
Chris@0 13138 lt_prog_compiler_static_F77='-Bstatic'
Chris@0 13139 fi
Chris@0 13140 ;;
Chris@0 13141
Chris@0 13142 amigaos*)
Chris@0 13143 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@0 13144 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@0 13145 # like `-m68040'.
Chris@0 13146 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
Chris@0 13147 ;;
Chris@0 13148
Chris@0 13149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@0 13150 # PIC is the default for these OSes.
Chris@0 13151 ;;
Chris@0 13152
Chris@0 13153 mingw* | pw32* | os2*)
Chris@0 13154 # This hack is so that the source file can tell whether it is being
Chris@0 13155 # built for inclusion in a dll (and should export symbols for example).
Chris@0 13156 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
Chris@0 13157 ;;
Chris@0 13158
Chris@0 13159 darwin* | rhapsody*)
Chris@0 13160 # PIC is the default on this platform
Chris@0 13161 # Common symbols not allowed in MH_DYLIB files
Chris@0 13162 lt_prog_compiler_pic_F77='-fno-common'
Chris@0 13163 ;;
Chris@0 13164
Chris@0 13165 msdosdjgpp*)
Chris@0 13166 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@0 13167 # on systems that don't support them.
Chris@0 13168 lt_prog_compiler_can_build_shared_F77=no
Chris@0 13169 enable_shared=no
Chris@0 13170 ;;
Chris@0 13171
Chris@0 13172 sysv4*MP*)
Chris@0 13173 if test -d /usr/nec; then
Chris@0 13174 lt_prog_compiler_pic_F77=-Kconform_pic
Chris@0 13175 fi
Chris@0 13176 ;;
Chris@0 13177
Chris@0 13178 hpux*)
Chris@0 13179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@0 13180 # not for PA HP-UX.
Chris@0 13181 case "$host_cpu" in
Chris@0 13182 hppa*64*|ia64*)
Chris@0 13183 # +Z the default
Chris@0 13184 ;;
Chris@0 13185 *)
Chris@0 13186 lt_prog_compiler_pic_F77='-fPIC'
Chris@0 13187 ;;
Chris@0 13188 esac
Chris@0 13189 ;;
Chris@0 13190
Chris@0 13191 *)
Chris@0 13192 lt_prog_compiler_pic_F77='-fPIC'
Chris@0 13193 ;;
Chris@0 13194 esac
Chris@0 13195 else
Chris@0 13196 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@0 13197 case $host_os in
Chris@0 13198 aix*)
Chris@0 13199 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13200 if test "$host_cpu" = ia64; then
Chris@0 13201 # AIX 5 now supports IA64 processor
Chris@0 13202 lt_prog_compiler_static_F77='-Bstatic'
Chris@0 13203 else
Chris@0 13204 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
Chris@0 13205 fi
Chris@0 13206 ;;
Chris@0 13207
Chris@0 13208 mingw* | pw32* | os2*)
Chris@0 13209 # This hack is so that the source file can tell whether it is being
Chris@0 13210 # built for inclusion in a dll (and should export symbols for example).
Chris@0 13211 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
Chris@0 13212 ;;
Chris@0 13213
Chris@0 13214 hpux9* | hpux10* | hpux11*)
Chris@0 13215 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@0 13217 # not for PA HP-UX.
Chris@0 13218 case "$host_cpu" in
Chris@0 13219 hppa*64*|ia64*)
Chris@0 13220 # +Z the default
Chris@0 13221 ;;
Chris@0 13222 *)
Chris@0 13223 lt_prog_compiler_pic_F77='+Z'
Chris@0 13224 ;;
Chris@0 13225 esac
Chris@0 13226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@0 13227 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
Chris@0 13228 ;;
Chris@0 13229
Chris@0 13230 irix5* | irix6* | nonstopux*)
Chris@0 13231 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13232 # PIC (with -KPIC) is the default.
Chris@0 13233 lt_prog_compiler_static_F77='-non_shared'
Chris@0 13234 ;;
Chris@0 13235
Chris@0 13236 newsos6)
Chris@0 13237 lt_prog_compiler_pic_F77='-KPIC'
Chris@0 13238 lt_prog_compiler_static_F77='-Bstatic'
Chris@0 13239 ;;
Chris@0 13240
Chris@0 13241 linux*)
Chris@0 13242 case $CC in
Chris@0 13243 icc* | ecc*)
Chris@0 13244 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13245 lt_prog_compiler_pic_F77='-KPIC'
Chris@0 13246 lt_prog_compiler_static_F77='-static'
Chris@0 13247 ;;
Chris@0 13248 ccc*)
Chris@0 13249 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13250 # All Alpha code is PIC.
Chris@0 13251 lt_prog_compiler_static_F77='-non_shared'
Chris@0 13252 ;;
Chris@0 13253 esac
Chris@0 13254 ;;
Chris@0 13255
Chris@0 13256 osf3* | osf4* | osf5*)
Chris@0 13257 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13258 # All OSF/1 code is PIC.
Chris@0 13259 lt_prog_compiler_static_F77='-non_shared'
Chris@0 13260 ;;
Chris@0 13261
Chris@0 13262 sco3.2v5*)
Chris@0 13263 lt_prog_compiler_pic_F77='-Kpic'
Chris@0 13264 lt_prog_compiler_static_F77='-dn'
Chris@0 13265 ;;
Chris@0 13266
Chris@0 13267 solaris*)
Chris@0 13268 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13269 lt_prog_compiler_pic_F77='-KPIC'
Chris@0 13270 lt_prog_compiler_static_F77='-Bstatic'
Chris@0 13271 ;;
Chris@0 13272
Chris@0 13273 sunos4*)
Chris@0 13274 lt_prog_compiler_wl_F77='-Qoption ld '
Chris@0 13275 lt_prog_compiler_pic_F77='-PIC'
Chris@0 13276 lt_prog_compiler_static_F77='-Bstatic'
Chris@0 13277 ;;
Chris@0 13278
Chris@0 13279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@0 13280 lt_prog_compiler_wl_F77='-Wl,'
Chris@0 13281 lt_prog_compiler_pic_F77='-KPIC'
Chris@0 13282 lt_prog_compiler_static_F77='-Bstatic'
Chris@0 13283 ;;
Chris@0 13284
Chris@0 13285 sysv4*MP*)
Chris@0 13286 if test -d /usr/nec ;then
Chris@0 13287 lt_prog_compiler_pic_F77='-Kconform_pic'
Chris@0 13288 lt_prog_compiler_static_F77='-Bstatic'
Chris@0 13289 fi
Chris@0 13290 ;;
Chris@0 13291
Chris@0 13292 uts4*)
Chris@0 13293 lt_prog_compiler_pic_F77='-pic'
Chris@0 13294 lt_prog_compiler_static_F77='-Bstatic'
Chris@0 13295 ;;
Chris@0 13296
Chris@0 13297 *)
Chris@0 13298 lt_prog_compiler_can_build_shared_F77=no
Chris@0 13299 ;;
Chris@0 13300 esac
Chris@0 13301 fi
Chris@0 13302
Chris@0 13303 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
Chris@0 13304 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
Chris@0 13305
Chris@0 13306 #
Chris@0 13307 # Check to make sure the PIC flag actually works.
Chris@0 13308 #
Chris@0 13309 if test -n "$lt_prog_compiler_pic_F77"; then
Chris@0 13310
Chris@0 13311 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
Chris@0 13312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
Chris@0 13313 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
Chris@0 13314 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 13315 else
Chris@0 13316 lt_prog_compiler_pic_works_F77=no
Chris@0 13317 ac_outfile=conftest.$ac_objext
Chris@0 13318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 13319 lt_compiler_flag="$lt_prog_compiler_pic_F77"
Chris@0 13320 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 13321 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 13322 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 13323 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 13324 # The option is referenced via a variable to avoid confusing sed.
Chris@0 13325 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 13326 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 13327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 13328 -e 's:$: $lt_compiler_flag:'`
Chris@0 13329 (eval echo "\"\$as_me:13329: $lt_compile\"" >&5)
Chris@0 13330 (eval "$lt_compile" 2>conftest.err)
Chris@0 13331 ac_status=$?
Chris@0 13332 cat conftest.err >&5
Chris@0 13333 echo "$as_me:13333: \$? = $ac_status" >&5
Chris@0 13334 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@0 13335 # The compiler can only warn and ignore the option if not recognized
Chris@0 13336 # So say no if there are warnings
Chris@0 13337 if test ! -s conftest.err; then
Chris@0 13338 lt_prog_compiler_pic_works_F77=yes
Chris@0 13339 fi
Chris@0 13340 fi
Chris@0 13341 $rm conftest*
Chris@0 13342
Chris@0 13343 fi
Chris@0 13344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
Chris@0 13345 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
Chris@0 13346
Chris@0 13347 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
Chris@0 13348 case $lt_prog_compiler_pic_F77 in
Chris@0 13349 "" | " "*) ;;
Chris@0 13350 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
Chris@0 13351 esac
Chris@0 13352 else
Chris@0 13353 lt_prog_compiler_pic_F77=
Chris@0 13354 lt_prog_compiler_can_build_shared_F77=no
Chris@0 13355 fi
Chris@0 13356
Chris@0 13357 fi
Chris@0 13358 case "$host_os" in
Chris@0 13359 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@0 13360 *djgpp*)
Chris@0 13361 lt_prog_compiler_pic_F77=
Chris@0 13362 ;;
Chris@0 13363 *)
Chris@0 13364 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
Chris@0 13365 ;;
Chris@0 13366 esac
Chris@0 13367
Chris@0 13368 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@0 13369 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
Chris@0 13370 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
Chris@0 13371 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 13372 else
Chris@0 13373 lt_cv_prog_compiler_c_o_F77=no
Chris@0 13374 $rm -r conftest 2>/dev/null
Chris@0 13375 mkdir conftest
Chris@0 13376 cd conftest
Chris@0 13377 mkdir out
Chris@0 13378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 13379
Chris@0 13380 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@0 13381 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 13382 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 13383 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 13384 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 13385 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 13386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 13387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 13388 -e 's:$: $lt_compiler_flag:'`
Chris@0 13389 (eval echo "\"\$as_me:13389: $lt_compile\"" >&5)
Chris@0 13390 (eval "$lt_compile" 2>out/conftest.err)
Chris@0 13391 ac_status=$?
Chris@0 13392 cat out/conftest.err >&5
Chris@0 13393 echo "$as_me:13393: \$? = $ac_status" >&5
Chris@0 13394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@0 13395 then
Chris@0 13396 # The compiler can only warn and ignore the option if not recognized
Chris@0 13397 # So say no if there are warnings
Chris@0 13398 if test ! -s out/conftest.err; then
Chris@0 13399 lt_cv_prog_compiler_c_o_F77=yes
Chris@0 13400 fi
Chris@0 13401 fi
Chris@0 13402 chmod u+w .
Chris@0 13403 $rm conftest*
Chris@0 13404 # SGI C++ compiler will create directory out/ii_files/ for
Chris@0 13405 # template instantiation
Chris@0 13406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
Chris@0 13407 $rm out/* && rmdir out
Chris@0 13408 cd ..
Chris@0 13409 rmdir conftest
Chris@0 13410 $rm conftest*
Chris@0 13411
Chris@0 13412 fi
Chris@0 13413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
Chris@0 13414 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
Chris@0 13415
Chris@0 13416
Chris@0 13417 hard_links="nottested"
Chris@0 13418 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
Chris@0 13419 # do not overwrite the value of need_locks provided by the user
Chris@0 13420 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Chris@0 13421 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
Chris@0 13422 hard_links=yes
Chris@0 13423 $rm conftest*
Chris@0 13424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@0 13425 touch conftest.a
Chris@0 13426 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@0 13427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@0 13428 echo "$as_me:$LINENO: result: $hard_links" >&5
Chris@0 13429 echo "${ECHO_T}$hard_links" >&6
Chris@0 13430 if test "$hard_links" = no; then
Chris@0 13431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@0 13432 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@0 13433 need_locks=warn
Chris@0 13434 fi
Chris@0 13435 else
Chris@0 13436 need_locks=no
Chris@0 13437 fi
Chris@0 13438
Chris@0 13439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@0 13440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
Chris@0 13441
Chris@0 13442 runpath_var=
Chris@0 13443 allow_undefined_flag_F77=
Chris@0 13444 enable_shared_with_static_runtimes_F77=no
Chris@0 13445 archive_cmds_F77=
Chris@0 13446 archive_expsym_cmds_F77=
Chris@0 13447 old_archive_From_new_cmds_F77=
Chris@0 13448 old_archive_from_expsyms_cmds_F77=
Chris@0 13449 export_dynamic_flag_spec_F77=
Chris@0 13450 whole_archive_flag_spec_F77=
Chris@0 13451 thread_safe_flag_spec_F77=
Chris@0 13452 hardcode_libdir_flag_spec_F77=
Chris@0 13453 hardcode_libdir_flag_spec_ld_F77=
Chris@0 13454 hardcode_libdir_separator_F77=
Chris@0 13455 hardcode_direct_F77=no
Chris@0 13456 hardcode_minus_L_F77=no
Chris@0 13457 hardcode_shlibpath_var_F77=unsupported
Chris@0 13458 link_all_deplibs_F77=unknown
Chris@0 13459 hardcode_automatic_F77=no
Chris@0 13460 module_cmds_F77=
Chris@0 13461 module_expsym_cmds_F77=
Chris@0 13462 always_export_symbols_F77=no
Chris@0 13463 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 13464 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@0 13465 # included in the symbol list
Chris@0 13466 include_expsyms_F77=
Chris@0 13467 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@0 13468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@0 13469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@0 13470 # as well as any symbol that contains `d'.
Chris@0 13471 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
Chris@0 13472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@0 13473 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@0 13474 # the symbol is explicitly referenced. Since portable code cannot
Chris@0 13475 # rely on this symbol name, it's probably fine to never include it in
Chris@0 13476 # preloaded symbol tables.
Chris@0 13477 extract_expsyms_cmds=
Chris@0 13478
Chris@0 13479 case $host_os in
Chris@0 13480 cygwin* | mingw* | pw32*)
Chris@0 13481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@0 13482 # When not using gcc, we currently assume that we are using
Chris@0 13483 # Microsoft Visual C++.
Chris@0 13484 if test "$GCC" != yes; then
Chris@0 13485 with_gnu_ld=no
Chris@0 13486 fi
Chris@0 13487 ;;
Chris@0 13488 openbsd*)
Chris@0 13489 with_gnu_ld=no
Chris@0 13490 ;;
Chris@0 13491 esac
Chris@0 13492
Chris@0 13493 ld_shlibs_F77=yes
Chris@0 13494 if test "$with_gnu_ld" = yes; then
Chris@0 13495 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@0 13496 wlarc='${wl}'
Chris@0 13497
Chris@0 13498 # See if GNU ld supports shared libraries.
Chris@0 13499 case $host_os in
Chris@0 13500 aix3* | aix4* | aix5*)
Chris@0 13501 # On AIX/PPC, the GNU linker is very broken
Chris@0 13502 if test "$host_cpu" != ia64; then
Chris@0 13503 ld_shlibs_F77=no
Chris@0 13504 cat <<EOF 1>&2
Chris@0 13505
Chris@0 13506 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
Chris@0 13507 *** to be unable to reliably create shared libraries on AIX.
Chris@0 13508 *** Therefore, libtool is disabling shared libraries support. If you
Chris@0 13509 *** really care for shared libraries, you may want to modify your PATH
Chris@0 13510 *** so that a non-GNU linker is found, and then restart.
Chris@0 13511
Chris@0 13512 EOF
Chris@0 13513 fi
Chris@0 13514 ;;
Chris@0 13515
Chris@0 13516 amigaos*)
Chris@0 13517 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)'
Chris@0 13518 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 13519 hardcode_minus_L_F77=yes
Chris@0 13520
Chris@0 13521 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
Chris@0 13522 # that the semantics of dynamic libraries on AmigaOS, at least up
Chris@0 13523 # to version 4, is to share data among multiple programs linked
Chris@0 13524 # with the same dynamic library. Since this doesn't match the
Chris@0 13525 # behavior of shared libraries on other platforms, we can't use
Chris@0 13526 # them.
Chris@0 13527 ld_shlibs_F77=no
Chris@0 13528 ;;
Chris@0 13529
Chris@0 13530 beos*)
Chris@0 13531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 13532 allow_undefined_flag_F77=unsupported
Chris@0 13533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@0 13534 # support --undefined. This deserves some investigation. FIXME
Chris@0 13535 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 13536 else
Chris@0 13537 ld_shlibs_F77=no
Chris@0 13538 fi
Chris@0 13539 ;;
Chris@0 13540
Chris@0 13541 cygwin* | mingw* | pw32*)
Chris@0 13542 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
Chris@0 13543 # as there is no search path for DLLs.
Chris@0 13544 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 13545 allow_undefined_flag_F77=unsupported
Chris@0 13546 always_export_symbols_F77=no
Chris@0 13547 enable_shared_with_static_runtimes_F77=yes
Chris@0 13548 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 13549
Chris@0 13550 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Chris@0 13551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Chris@0 13552 # If the export-symbols file already is a .def file (1st line
Chris@0 13553 # is EXPORTS), use it as is; otherwise, prepend...
Chris@0 13554 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@0 13555 cp $export_symbols $output_objdir/$soname.def;
Chris@0 13556 else
Chris@0 13557 echo EXPORTS > $output_objdir/$soname.def;
Chris@0 13558 cat $export_symbols >> $output_objdir/$soname.def;
Chris@0 13559 fi~
Chris@0 13560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Chris@0 13561 else
Chris@0 13562 ld_shlibs=no
Chris@0 13563 fi
Chris@0 13564 ;;
Chris@0 13565
Chris@0 13566 netbsd* | knetbsd*-gnu)
Chris@0 13567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 13568 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@0 13569 wlarc=
Chris@0 13570 else
Chris@0 13571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 13572 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 13573 fi
Chris@0 13574 ;;
Chris@0 13575
Chris@0 13576 solaris* | sysv5*)
Chris@0 13577 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
Chris@0 13578 ld_shlibs_F77=no
Chris@0 13579 cat <<EOF 1>&2
Chris@0 13580
Chris@0 13581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@0 13582 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@0 13583 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@0 13584 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@0 13585 *** your PATH or compiler configuration so that the native linker is
Chris@0 13586 *** used, and then restart.
Chris@0 13587
Chris@0 13588 EOF
Chris@0 13589 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 13590 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 13591 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 13592 else
Chris@0 13593 ld_shlibs_F77=no
Chris@0 13594 fi
Chris@0 13595 ;;
Chris@0 13596
Chris@0 13597 sunos4*)
Chris@0 13598 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 13599 wlarc=
Chris@0 13600 hardcode_direct_F77=yes
Chris@0 13601 hardcode_shlibpath_var_F77=no
Chris@0 13602 ;;
Chris@0 13603
Chris@0 13604 linux*)
Chris@0 13605 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
Chris@0 13606 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 13607 archive_cmds_F77="$tmp_archive_cmds"
Chris@0 13608 supports_anon_versioning=no
Chris@0 13609 case `$LD -v 2>/dev/null` in
Chris@0 13610 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@0 13611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@0 13612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@0 13613 *\ 2.11.*) ;; # other 2.11 versions
Chris@0 13614 *) supports_anon_versioning=yes ;;
Chris@0 13615 esac
Chris@0 13616 if test $supports_anon_versioning = yes; then
Chris@0 13617 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
Chris@0 13618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@0 13619 $echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@0 13620 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@0 13621 else
Chris@0 13622 archive_expsym_cmds_F77="$tmp_archive_cmds"
Chris@0 13623 fi
Chris@0 13624 else
Chris@0 13625 ld_shlibs_F77=no
Chris@0 13626 fi
Chris@0 13627 ;;
Chris@0 13628
Chris@0 13629 *)
Chris@0 13630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 13631 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 13632 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 13633 else
Chris@0 13634 ld_shlibs_F77=no
Chris@0 13635 fi
Chris@0 13636 ;;
Chris@0 13637 esac
Chris@0 13638
Chris@0 13639 if test "$ld_shlibs_F77" = yes; then
Chris@0 13640 runpath_var=LD_RUN_PATH
Chris@0 13641 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
Chris@0 13642 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
Chris@0 13643 # ancient GNU ld didn't support --whole-archive et. al.
Chris@0 13644 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
Chris@0 13645 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@0 13646 else
Chris@0 13647 whole_archive_flag_spec_F77=
Chris@0 13648 fi
Chris@0 13649 fi
Chris@0 13650 else
Chris@0 13651 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@0 13652 case $host_os in
Chris@0 13653 aix3*)
Chris@0 13654 allow_undefined_flag_F77=unsupported
Chris@0 13655 always_export_symbols_F77=yes
Chris@0 13656 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'
Chris@0 13657 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@0 13658 # are no directories specified by -L.
Chris@0 13659 hardcode_minus_L_F77=yes
Chris@0 13660 if test "$GCC" = yes && test -z "$link_static_flag"; then
Chris@0 13661 # Neither direct hardcoding nor static linking is supported with a
Chris@0 13662 # broken collect2.
Chris@0 13663 hardcode_direct_F77=unsupported
Chris@0 13664 fi
Chris@0 13665 ;;
Chris@0 13666
Chris@0 13667 aix4* | aix5*)
Chris@0 13668 if test "$host_cpu" = ia64; then
Chris@0 13669 # On IA64, the linker does run time linking by default, so we don't
Chris@0 13670 # have to do anything special.
Chris@0 13671 aix_use_runtimelinking=no
Chris@0 13672 exp_sym_flag='-Bexport'
Chris@0 13673 no_entry_flag=""
Chris@0 13674 else
Chris@0 13675 # If we're using GNU nm, then we don't want the "-C" option.
Chris@0 13676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@0 13677 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
Chris@0 13678 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'
Chris@0 13679 else
Chris@0 13680 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'
Chris@0 13681 fi
Chris@0 13682 aix_use_runtimelinking=no
Chris@0 13683
Chris@0 13684 # Test if we are trying to use run time linking or normal
Chris@0 13685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@0 13686 # need to do runtime linking.
Chris@0 13687 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
Chris@0 13688 for ld_flag in $LDFLAGS; do
Chris@0 13689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@0 13690 aix_use_runtimelinking=yes
Chris@0 13691 break
Chris@0 13692 fi
Chris@0 13693 done
Chris@0 13694 esac
Chris@0 13695
Chris@0 13696 exp_sym_flag='-bexport'
Chris@0 13697 no_entry_flag='-bnoentry'
Chris@0 13698 fi
Chris@0 13699
Chris@0 13700 # When large executables or shared objects are built, AIX ld can
Chris@0 13701 # have problems creating the table of contents. If linking a library
Chris@0 13702 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@0 13703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@0 13704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@0 13705
Chris@0 13706 archive_cmds_F77=''
Chris@0 13707 hardcode_direct_F77=yes
Chris@0 13708 hardcode_libdir_separator_F77=':'
Chris@0 13709 link_all_deplibs_F77=yes
Chris@0 13710
Chris@0 13711 if test "$GCC" = yes; then
Chris@0 13712 case $host_os in aix4.012|aix4.012.*)
Chris@0 13713 # We only want to do this on AIX 4.2 and lower, the check
Chris@0 13714 # below for broken collect2 doesn't work under 4.3+
Chris@0 13715 collect2name=`${CC} -print-prog-name=collect2`
Chris@0 13716 if test -f "$collect2name" && \
Chris@0 13717 strings "$collect2name" | grep resolve_lib_name >/dev/null
Chris@0 13718 then
Chris@0 13719 # We have reworked collect2
Chris@0 13720 hardcode_direct_F77=yes
Chris@0 13721 else
Chris@0 13722 # We have old collect2
Chris@0 13723 hardcode_direct_F77=unsupported
Chris@0 13724 # It fails to find uninstalled libraries when the uninstalled
Chris@0 13725 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@0 13726 # to unsupported forces relinking
Chris@0 13727 hardcode_minus_L_F77=yes
Chris@0 13728 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 13729 hardcode_libdir_separator_F77=
Chris@0 13730 fi
Chris@0 13731 esac
Chris@0 13732 shared_flag='-shared'
Chris@0 13733 else
Chris@0 13734 # not using gcc
Chris@0 13735 if test "$host_cpu" = ia64; then
Chris@0 13736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@0 13737 # chokes on -Wl,-G. The following line is correct:
Chris@0 13738 shared_flag='-G'
Chris@0 13739 else
Chris@0 13740 if test "$aix_use_runtimelinking" = yes; then
Chris@0 13741 shared_flag='${wl}-G'
Chris@0 13742 else
Chris@0 13743 shared_flag='${wl}-bM:SRE'
Chris@0 13744 fi
Chris@0 13745 fi
Chris@0 13746 fi
Chris@0 13747
Chris@0 13748 # It seems that -bexpall does not export symbols beginning with
Chris@0 13749 # underscore (_), so it is better to generate a list of symbols to export.
Chris@0 13750 always_export_symbols_F77=yes
Chris@0 13751 if test "$aix_use_runtimelinking" = yes; then
Chris@0 13752 # Warning - without using the other runtime loading flags (-brtl),
Chris@0 13753 # -berok will link without error, but may produce a broken library.
Chris@0 13754 allow_undefined_flag_F77='-berok'
Chris@0 13755 # Determine the default libpath from the value encoded in an empty executable.
Chris@0 13756 cat >conftest.$ac_ext <<_ACEOF
Chris@0 13757 program main
Chris@0 13758
Chris@0 13759 end
Chris@0 13760 _ACEOF
Chris@0 13761 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 13763 (eval $ac_link) 2>conftest.er1
Chris@0 13764 ac_status=$?
Chris@0 13765 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 13766 rm -f conftest.er1
Chris@0 13767 cat conftest.err >&5
Chris@0 13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 13769 (exit $ac_status); } &&
Chris@0 13770 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
Chris@0 13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 13772 (eval $ac_try) 2>&5
Chris@0 13773 ac_status=$?
Chris@0 13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 13775 (exit $ac_status); }; } &&
Chris@0 13776 { ac_try='test -s conftest$ac_exeext'
Chris@0 13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 13778 (eval $ac_try) 2>&5
Chris@0 13779 ac_status=$?
Chris@0 13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 13781 (exit $ac_status); }; }; then
Chris@0 13782
Chris@0 13783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
Chris@0 13784 }'`
Chris@0 13785 # Check for a 64-bit object if we didn't find anything.
Chris@0 13786 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; }
Chris@0 13787 }'`; fi
Chris@0 13788 else
Chris@0 13789 echo "$as_me: failed program was:" >&5
Chris@0 13790 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 13791
Chris@0 13792 fi
Chris@0 13793 rm -f conftest.err conftest.$ac_objext \
Chris@0 13794 conftest$ac_exeext conftest.$ac_ext
Chris@0 13795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Chris@0 13796
Chris@0 13797 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@0 13798 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"
Chris@0 13799 else
Chris@0 13800 if test "$host_cpu" = ia64; then
Chris@0 13801 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
Chris@0 13802 allow_undefined_flag_F77="-z nodefs"
Chris@0 13803 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"
Chris@0 13804 else
Chris@0 13805 # Determine the default libpath from the value encoded in an empty executable.
Chris@0 13806 cat >conftest.$ac_ext <<_ACEOF
Chris@0 13807 program main
Chris@0 13808
Chris@0 13809 end
Chris@0 13810 _ACEOF
Chris@0 13811 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 13813 (eval $ac_link) 2>conftest.er1
Chris@0 13814 ac_status=$?
Chris@0 13815 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 13816 rm -f conftest.er1
Chris@0 13817 cat conftest.err >&5
Chris@0 13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 13819 (exit $ac_status); } &&
Chris@0 13820 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
Chris@0 13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 13822 (eval $ac_try) 2>&5
Chris@0 13823 ac_status=$?
Chris@0 13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 13825 (exit $ac_status); }; } &&
Chris@0 13826 { ac_try='test -s conftest$ac_exeext'
Chris@0 13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 13828 (eval $ac_try) 2>&5
Chris@0 13829 ac_status=$?
Chris@0 13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 13831 (exit $ac_status); }; }; then
Chris@0 13832
Chris@0 13833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
Chris@0 13834 }'`
Chris@0 13835 # Check for a 64-bit object if we didn't find anything.
Chris@0 13836 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; }
Chris@0 13837 }'`; fi
Chris@0 13838 else
Chris@0 13839 echo "$as_me: failed program was:" >&5
Chris@0 13840 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 13841
Chris@0 13842 fi
Chris@0 13843 rm -f conftest.err conftest.$ac_objext \
Chris@0 13844 conftest$ac_exeext conftest.$ac_ext
Chris@0 13845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Chris@0 13846
Chris@0 13847 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@0 13848 # Warning - without using the other run time loading flags,
Chris@0 13849 # -berok will link without error, but may produce a broken library.
Chris@0 13850 no_undefined_flag_F77=' ${wl}-bernotok'
Chris@0 13851 allow_undefined_flag_F77=' ${wl}-berok'
Chris@0 13852 # -bexpall does not export symbols beginning with underscore (_)
Chris@0 13853 always_export_symbols_F77=yes
Chris@0 13854 # Exported symbols can be pulled into shared objects from archives
Chris@0 13855 whole_archive_flag_spec_F77=' '
Chris@0 13856 archive_cmds_need_lc_F77=yes
Chris@0 13857 # This is similar to how AIX traditionally builds it's shared libraries.
Chris@0 13858 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'
Chris@0 13859 fi
Chris@0 13860 fi
Chris@0 13861 ;;
Chris@0 13862
Chris@0 13863 amigaos*)
Chris@0 13864 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)'
Chris@0 13865 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 13866 hardcode_minus_L_F77=yes
Chris@0 13867 # see comment about different semantics on the GNU ld section
Chris@0 13868 ld_shlibs_F77=no
Chris@0 13869 ;;
Chris@0 13870
Chris@0 13871 bsdi4*)
Chris@0 13872 export_dynamic_flag_spec_F77=-rdynamic
Chris@0 13873 ;;
Chris@0 13874
Chris@0 13875 cygwin* | mingw* | pw32*)
Chris@0 13876 # When not using gcc, we currently assume that we are using
Chris@0 13877 # Microsoft Visual C++.
Chris@0 13878 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@0 13879 # no search path for DLLs.
Chris@0 13880 hardcode_libdir_flag_spec_F77=' '
Chris@0 13881 allow_undefined_flag_F77=unsupported
Chris@0 13882 # Tell ltmain to make .lib files, not .a files.
Chris@0 13883 libext=lib
Chris@0 13884 # Tell ltmain to make .dll files, not .so files.
Chris@0 13885 shrext=".dll"
Chris@0 13886 # FIXME: Setting linknames here is a bad hack.
Chris@0 13887 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@0 13888 # The linker will automatically build a .lib file if we build a DLL.
Chris@0 13889 old_archive_From_new_cmds_F77='true'
Chris@0 13890 # FIXME: Should let the user specify the lib program.
Chris@0 13891 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Chris@0 13892 fix_srcfile_path='`cygpath -w "$srcfile"`'
Chris@0 13893 enable_shared_with_static_runtimes_F77=yes
Chris@0 13894 ;;
Chris@0 13895
Chris@0 13896 darwin* | rhapsody*)
Chris@0 13897 if test "$GXX" = yes ; then
Chris@0 13898 archive_cmds_need_lc_F77=no
Chris@0 13899 case "$host_os" in
Chris@0 13900 rhapsody* | darwin1.[012])
Chris@0 13901 allow_undefined_flag_F77='-undefined suppress'
Chris@0 13902 ;;
Chris@0 13903 *) # Darwin 1.3 on
Chris@0 13904 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
Chris@0 13905 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
Chris@0 13906 else
Chris@0 13907 case ${MACOSX_DEPLOYMENT_TARGET} in
Chris@0 13908 10.[012])
Chris@0 13909 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
Chris@0 13910 ;;
Chris@0 13911 10.*)
Chris@0 13912 allow_undefined_flag_F77='-undefined dynamic_lookup'
Chris@0 13913 ;;
Chris@0 13914 esac
Chris@0 13915 fi
Chris@0 13916 ;;
Chris@0 13917 esac
Chris@0 13918 lt_int_apple_cc_single_mod=no
Chris@0 13919 output_verbose_link_cmd='echo'
Chris@0 13920 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
Chris@0 13921 lt_int_apple_cc_single_mod=yes
Chris@0 13922 fi
Chris@0 13923 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Chris@0 13924 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Chris@0 13925 else
Chris@0 13926 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'
Chris@0 13927 fi
Chris@0 13928 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Chris@0 13929 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Chris@0 13930 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Chris@0 13931 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}'
Chris@0 13932 else
Chris@0 13933 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}'
Chris@0 13934 fi
Chris@0 13935 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}'
Chris@0 13936 hardcode_direct_F77=no
Chris@0 13937 hardcode_automatic_F77=yes
Chris@0 13938 hardcode_shlibpath_var_F77=unsupported
Chris@0 13939 whole_archive_flag_spec_F77='-all_load $convenience'
Chris@0 13940 link_all_deplibs_F77=yes
Chris@0 13941 else
Chris@0 13942 ld_shlibs_F77=no
Chris@0 13943 fi
Chris@0 13944 ;;
Chris@0 13945
Chris@0 13946 dgux*)
Chris@0 13947 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 13948 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 13949 hardcode_shlibpath_var_F77=no
Chris@0 13950 ;;
Chris@0 13951
Chris@0 13952 freebsd1*)
Chris@0 13953 ld_shlibs_F77=no
Chris@0 13954 ;;
Chris@0 13955
Chris@0 13956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@0 13957 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@0 13958 # does not break anything, and helps significantly (at the cost of a little
Chris@0 13959 # extra space).
Chris@0 13960 freebsd2.2*)
Chris@0 13961 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@0 13962 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@0 13963 hardcode_direct_F77=yes
Chris@0 13964 hardcode_shlibpath_var_F77=no
Chris@0 13965 ;;
Chris@0 13966
Chris@0 13967 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@0 13968 freebsd2*)
Chris@0 13969 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 13970 hardcode_direct_F77=yes
Chris@0 13971 hardcode_minus_L_F77=yes
Chris@0 13972 hardcode_shlibpath_var_F77=no
Chris@0 13973 ;;
Chris@0 13974
Chris@0 13975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@0 13976 freebsd* | kfreebsd*-gnu)
Chris@0 13977 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 13978 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@0 13979 hardcode_direct_F77=yes
Chris@0 13980 hardcode_shlibpath_var_F77=no
Chris@0 13981 ;;
Chris@0 13982
Chris@0 13983 hpux9*)
Chris@0 13984 if test "$GCC" = yes; then
Chris@0 13985 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'
Chris@0 13986 else
Chris@0 13987 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'
Chris@0 13988 fi
Chris@0 13989 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@0 13990 hardcode_libdir_separator_F77=:
Chris@0 13991 hardcode_direct_F77=yes
Chris@0 13992
Chris@0 13993 # hardcode_minus_L: Not really in the search PATH,
Chris@0 13994 # but as the default location of the library.
Chris@0 13995 hardcode_minus_L_F77=yes
Chris@0 13996 export_dynamic_flag_spec_F77='${wl}-E'
Chris@0 13997 ;;
Chris@0 13998
Chris@0 13999 hpux10* | hpux11*)
Chris@0 14000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Chris@0 14001 case "$host_cpu" in
Chris@0 14002 hppa*64*|ia64*)
Chris@0 14003 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 14004 ;;
Chris@0 14005 *)
Chris@0 14006 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 14007 ;;
Chris@0 14008 esac
Chris@0 14009 else
Chris@0 14010 case "$host_cpu" in
Chris@0 14011 hppa*64*|ia64*)
Chris@0 14012 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14013 ;;
Chris@0 14014 *)
Chris@0 14015 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14016 ;;
Chris@0 14017 esac
Chris@0 14018 fi
Chris@0 14019 if test "$with_gnu_ld" = no; then
Chris@0 14020 case "$host_cpu" in
Chris@0 14021 hppa*64*)
Chris@0 14022 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@0 14023 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
Chris@0 14024 hardcode_libdir_separator_F77=:
Chris@0 14025 hardcode_direct_F77=no
Chris@0 14026 hardcode_shlibpath_var_F77=no
Chris@0 14027 ;;
Chris@0 14028 ia64*)
Chris@0 14029 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 14030 hardcode_direct_F77=no
Chris@0 14031 hardcode_shlibpath_var_F77=no
Chris@0 14032
Chris@0 14033 # hardcode_minus_L: Not really in the search PATH,
Chris@0 14034 # but as the default location of the library.
Chris@0 14035 hardcode_minus_L_F77=yes
Chris@0 14036 ;;
Chris@0 14037 *)
Chris@0 14038 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@0 14039 hardcode_libdir_separator_F77=:
Chris@0 14040 hardcode_direct_F77=yes
Chris@0 14041 export_dynamic_flag_spec_F77='${wl}-E'
Chris@0 14042
Chris@0 14043 # hardcode_minus_L: Not really in the search PATH,
Chris@0 14044 # but as the default location of the library.
Chris@0 14045 hardcode_minus_L_F77=yes
Chris@0 14046 ;;
Chris@0 14047 esac
Chris@0 14048 fi
Chris@0 14049 ;;
Chris@0 14050
Chris@0 14051 irix5* | irix6* | nonstopux*)
Chris@0 14052 if test "$GCC" = yes; then
Chris@0 14053 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'
Chris@0 14054 else
Chris@0 14055 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'
Chris@0 14056 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
Chris@0 14057 fi
Chris@0 14058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@0 14059 hardcode_libdir_separator_F77=:
Chris@0 14060 link_all_deplibs_F77=yes
Chris@0 14061 ;;
Chris@0 14062
Chris@0 14063 netbsd* | knetbsd*-gnu)
Chris@0 14064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 14065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@0 14066 else
Chris@0 14067 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@0 14068 fi
Chris@0 14069 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@0 14070 hardcode_direct_F77=yes
Chris@0 14071 hardcode_shlibpath_var_F77=no
Chris@0 14072 ;;
Chris@0 14073
Chris@0 14074 newsos6)
Chris@0 14075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14076 hardcode_direct_F77=yes
Chris@0 14077 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@0 14078 hardcode_libdir_separator_F77=:
Chris@0 14079 hardcode_shlibpath_var_F77=no
Chris@0 14080 ;;
Chris@0 14081
Chris@0 14082 openbsd*)
Chris@0 14083 hardcode_direct_F77=yes
Chris@0 14084 hardcode_shlibpath_var_F77=no
Chris@0 14085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@0 14086 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 14087 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
Chris@0 14088 export_dynamic_flag_spec_F77='${wl}-E'
Chris@0 14089 else
Chris@0 14090 case $host_os in
Chris@0 14091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@0 14092 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14093 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@0 14094 ;;
Chris@0 14095 *)
Chris@0 14096 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 14097 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
Chris@0 14098 ;;
Chris@0 14099 esac
Chris@0 14100 fi
Chris@0 14101 ;;
Chris@0 14102
Chris@0 14103 os2*)
Chris@0 14104 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 14105 hardcode_minus_L_F77=yes
Chris@0 14106 allow_undefined_flag_F77=unsupported
Chris@0 14107 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'
Chris@0 14108 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@0 14109 ;;
Chris@0 14110
Chris@0 14111 osf3*)
Chris@0 14112 if test "$GCC" = yes; then
Chris@0 14113 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 14114 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'
Chris@0 14115 else
Chris@0 14116 allow_undefined_flag_F77=' -expect_unresolved \*'
Chris@0 14117 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'
Chris@0 14118 fi
Chris@0 14119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@0 14120 hardcode_libdir_separator_F77=:
Chris@0 14121 ;;
Chris@0 14122
Chris@0 14123 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@0 14124 if test "$GCC" = yes; then
Chris@0 14125 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 14126 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'
Chris@0 14127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@0 14128 else
Chris@0 14129 allow_undefined_flag_F77=' -expect_unresolved \*'
Chris@0 14130 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'
Chris@0 14131 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~
Chris@0 14132 $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'
Chris@0 14133
Chris@0 14134 # Both c and cxx compiler support -rpath directly
Chris@0 14135 hardcode_libdir_flag_spec_F77='-rpath $libdir'
Chris@0 14136 fi
Chris@0 14137 hardcode_libdir_separator_F77=:
Chris@0 14138 ;;
Chris@0 14139
Chris@0 14140 sco3.2v5*)
Chris@0 14141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14142 hardcode_shlibpath_var_F77=no
Chris@0 14143 export_dynamic_flag_spec_F77='${wl}-Bexport'
Chris@0 14144 runpath_var=LD_RUN_PATH
Chris@0 14145 hardcode_runpath_var=yes
Chris@0 14146 ;;
Chris@0 14147
Chris@0 14148 solaris*)
Chris@0 14149 no_undefined_flag_F77=' -z text'
Chris@0 14150 if test "$GCC" = yes; then
Chris@0 14151 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 14152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 14153 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
Chris@0 14154 else
Chris@0 14155 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14156 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 14157 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Chris@0 14158 fi
Chris@0 14159 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@0 14160 hardcode_shlibpath_var_F77=no
Chris@0 14161 case $host_os in
Chris@0 14162 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@0 14163 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@0 14164 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
Chris@0 14165 esac
Chris@0 14166 link_all_deplibs_F77=yes
Chris@0 14167 ;;
Chris@0 14168
Chris@0 14169 sunos4*)
Chris@0 14170 if test "x$host_vendor" = xsequent; then
Chris@0 14171 # Use $CC to link under sequent, because it throws in some extra .o
Chris@0 14172 # files that make .init and .fini sections work.
Chris@0 14173 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 14174 else
Chris@0 14175 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14176 fi
Chris@0 14177 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 14178 hardcode_direct_F77=yes
Chris@0 14179 hardcode_minus_L_F77=yes
Chris@0 14180 hardcode_shlibpath_var_F77=no
Chris@0 14181 ;;
Chris@0 14182
Chris@0 14183 sysv4)
Chris@0 14184 case $host_vendor in
Chris@0 14185 sni)
Chris@0 14186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14187 hardcode_direct_F77=yes # is this really true???
Chris@0 14188 ;;
Chris@0 14189 siemens)
Chris@0 14190 ## LD is ld it makes a PLAMLIB
Chris@0 14191 ## CC just makes a GrossModule.
Chris@0 14192 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14193 reload_cmds_F77='$CC -r -o $output$reload_objs'
Chris@0 14194 hardcode_direct_F77=no
Chris@0 14195 ;;
Chris@0 14196 motorola)
Chris@0 14197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14198 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
Chris@0 14199 ;;
Chris@0 14200 esac
Chris@0 14201 runpath_var='LD_RUN_PATH'
Chris@0 14202 hardcode_shlibpath_var_F77=no
Chris@0 14203 ;;
Chris@0 14204
Chris@0 14205 sysv4.3*)
Chris@0 14206 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14207 hardcode_shlibpath_var_F77=no
Chris@0 14208 export_dynamic_flag_spec_F77='-Bexport'
Chris@0 14209 ;;
Chris@0 14210
Chris@0 14211 sysv4*MP*)
Chris@0 14212 if test -d /usr/nec; then
Chris@0 14213 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14214 hardcode_shlibpath_var_F77=no
Chris@0 14215 runpath_var=LD_RUN_PATH
Chris@0 14216 hardcode_runpath_var=yes
Chris@0 14217 ld_shlibs_F77=yes
Chris@0 14218 fi
Chris@0 14219 ;;
Chris@0 14220
Chris@0 14221 sysv4.2uw2*)
Chris@0 14222 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14223 hardcode_direct_F77=yes
Chris@0 14224 hardcode_minus_L_F77=no
Chris@0 14225 hardcode_shlibpath_var_F77=no
Chris@0 14226 hardcode_runpath_var=yes
Chris@0 14227 runpath_var=LD_RUN_PATH
Chris@0 14228 ;;
Chris@0 14229
Chris@0 14230 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
Chris@0 14231 no_undefined_flag_F77='${wl}-z ${wl}text'
Chris@0 14232 if test "$GCC" = yes; then
Chris@0 14233 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 14234 else
Chris@0 14235 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 14236 fi
Chris@0 14237 runpath_var='LD_RUN_PATH'
Chris@0 14238 hardcode_shlibpath_var_F77=no
Chris@0 14239 ;;
Chris@0 14240
Chris@0 14241 sysv5*)
Chris@0 14242 no_undefined_flag_F77=' -z text'
Chris@0 14243 # $CC -shared without GNU ld will not create a library from C++
Chris@0 14244 # object files and a static libstdc++, better avoid it by now
Chris@0 14245 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14246 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 14247 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Chris@0 14248 hardcode_libdir_flag_spec_F77=
Chris@0 14249 hardcode_shlibpath_var_F77=no
Chris@0 14250 runpath_var='LD_RUN_PATH'
Chris@0 14251 ;;
Chris@0 14252
Chris@0 14253 uts4*)
Chris@0 14254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 14255 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@0 14256 hardcode_shlibpath_var_F77=no
Chris@0 14257 ;;
Chris@0 14258
Chris@0 14259 *)
Chris@0 14260 ld_shlibs_F77=no
Chris@0 14261 ;;
Chris@0 14262 esac
Chris@0 14263 fi
Chris@0 14264
Chris@0 14265 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
Chris@0 14266 echo "${ECHO_T}$ld_shlibs_F77" >&6
Chris@0 14267 test "$ld_shlibs_F77" = no && can_build_shared=no
Chris@0 14268
Chris@0 14269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@0 14270 if test "$GCC" = yes; then
Chris@0 14271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@0 14272 fi
Chris@0 14273
Chris@0 14274 #
Chris@0 14275 # Do we need to explicitly link libc?
Chris@0 14276 #
Chris@0 14277 case "x$archive_cmds_need_lc_F77" in
Chris@0 14278 x|xyes)
Chris@0 14279 # Assume -lc should be added
Chris@0 14280 archive_cmds_need_lc_F77=yes
Chris@0 14281
Chris@0 14282 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@0 14283 case $archive_cmds_F77 in
Chris@0 14284 *'~'*)
Chris@0 14285 # FIXME: we may have to deal with multi-command sequences.
Chris@0 14286 ;;
Chris@0 14287 '$CC '*)
Chris@0 14288 # Test whether the compiler implicitly links with -lc since on some
Chris@0 14289 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@0 14290 # to ld, don't add -lc before -lgcc.
Chris@0 14291 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Chris@0 14292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
Chris@0 14293 $rm conftest*
Chris@0 14294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 14295
Chris@0 14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 14297 (eval $ac_compile) 2>&5
Chris@0 14298 ac_status=$?
Chris@0 14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 14300 (exit $ac_status); } 2>conftest.err; then
Chris@0 14301 soname=conftest
Chris@0 14302 lib=conftest
Chris@0 14303 libobjs=conftest.$ac_objext
Chris@0 14304 deplibs=
Chris@0 14305 wl=$lt_prog_compiler_wl_F77
Chris@0 14306 compiler_flags=-v
Chris@0 14307 linker_flags=-v
Chris@0 14308 verstring=
Chris@0 14309 output_objdir=.
Chris@0 14310 libname=conftest
Chris@0 14311 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
Chris@0 14312 allow_undefined_flag_F77=
Chris@0 14313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
Chris@0 14314 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@0 14315 ac_status=$?
Chris@0 14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 14317 (exit $ac_status); }
Chris@0 14318 then
Chris@0 14319 archive_cmds_need_lc_F77=no
Chris@0 14320 else
Chris@0 14321 archive_cmds_need_lc_F77=yes
Chris@0 14322 fi
Chris@0 14323 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
Chris@0 14324 else
Chris@0 14325 cat conftest.err 1>&5
Chris@0 14326 fi
Chris@0 14327 $rm conftest*
Chris@0 14328 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
Chris@0 14329 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
Chris@0 14330 ;;
Chris@0 14331 esac
Chris@0 14332 fi
Chris@0 14333 ;;
Chris@0 14334 esac
Chris@0 14335
Chris@0 14336 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Chris@0 14337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
Chris@0 14338 library_names_spec=
Chris@0 14339 libname_spec='lib$name'
Chris@0 14340 soname_spec=
Chris@0 14341 shrext=".so"
Chris@0 14342 postinstall_cmds=
Chris@0 14343 postuninstall_cmds=
Chris@0 14344 finish_cmds=
Chris@0 14345 finish_eval=
Chris@0 14346 shlibpath_var=
Chris@0 14347 shlibpath_overrides_runpath=unknown
Chris@0 14348 version_type=none
Chris@0 14349 dynamic_linker="$host_os ld.so"
Chris@0 14350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@0 14351 if test "$GCC" = yes; then
Chris@0 14352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Chris@0 14353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Chris@0 14354 # if the path contains ";" then we assume it to be the separator
Chris@0 14355 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@0 14356 # assumed that no part of a normal pathname contains ";" but that should
Chris@0 14357 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@0 14358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@0 14359 else
Chris@0 14360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@0 14361 fi
Chris@0 14362 else
Chris@0 14363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@0 14364 fi
Chris@0 14365 need_lib_prefix=unknown
Chris@0 14366 hardcode_into_libs=no
Chris@0 14367
Chris@0 14368 # when you set need_version to no, make sure it does not cause -set_version
Chris@0 14369 # flags to be left without arguments
Chris@0 14370 need_version=unknown
Chris@0 14371
Chris@0 14372 case $host_os in
Chris@0 14373 aix3*)
Chris@0 14374 version_type=linux
Chris@0 14375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@0 14376 shlibpath_var=LIBPATH
Chris@0 14377
Chris@0 14378 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@0 14379 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14380 ;;
Chris@0 14381
Chris@0 14382 aix4* | aix5*)
Chris@0 14383 version_type=linux
Chris@0 14384 need_lib_prefix=no
Chris@0 14385 need_version=no
Chris@0 14386 hardcode_into_libs=yes
Chris@0 14387 if test "$host_cpu" = ia64; then
Chris@0 14388 # AIX 5 supports IA64
Chris@0 14389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@0 14390 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14391 else
Chris@0 14392 # With GCC up to 2.95.x, collect2 would create an import file
Chris@0 14393 # for dependence libraries. The import file would start with
Chris@0 14394 # the line `#! .'. This would cause the generated library to
Chris@0 14395 # depend on `.', always an invalid library. This was fixed in
Chris@0 14396 # development snapshots of GCC prior to 3.0.
Chris@0 14397 case $host_os in
Chris@0 14398 aix4 | aix4.[01] | aix4.[01].*)
Chris@0 14399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@0 14400 echo ' yes '
Chris@0 14401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
Chris@0 14402 :
Chris@0 14403 else
Chris@0 14404 can_build_shared=no
Chris@0 14405 fi
Chris@0 14406 ;;
Chris@0 14407 esac
Chris@0 14408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@0 14409 # soname into executable. Probably we can add versioning support to
Chris@0 14410 # collect2, so additional links can be useful in future.
Chris@0 14411 if test "$aix_use_runtimelinking" = yes; then
Chris@0 14412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@0 14413 # instead of lib<name>.a to let people know that these are not
Chris@0 14414 # typical AIX shared libraries.
Chris@0 14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14416 else
Chris@0 14417 # We preserve .a as extension for shared libraries through AIX4.2
Chris@0 14418 # and later when we are not doing run time linking.
Chris@0 14419 library_names_spec='${libname}${release}.a $libname.a'
Chris@0 14420 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14421 fi
Chris@0 14422 shlibpath_var=LIBPATH
Chris@0 14423 fi
Chris@0 14424 ;;
Chris@0 14425
Chris@0 14426 amigaos*)
Chris@0 14427 library_names_spec='$libname.ixlibrary $libname.a'
Chris@0 14428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@0 14429 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'
Chris@0 14430 ;;
Chris@0 14431
Chris@0 14432 beos*)
Chris@0 14433 library_names_spec='${libname}${shared_ext}'
Chris@0 14434 dynamic_linker="$host_os ld.so"
Chris@0 14435 shlibpath_var=LIBRARY_PATH
Chris@0 14436 ;;
Chris@0 14437
Chris@0 14438 bsdi4*)
Chris@0 14439 version_type=linux
Chris@0 14440 need_version=no
Chris@0 14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14442 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@0 14444 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@0 14446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@0 14447 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@0 14448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@0 14449 # libtool to hard-code these into programs
Chris@0 14450 ;;
Chris@0 14451
Chris@0 14452 cygwin* | mingw* | pw32*)
Chris@0 14453 version_type=windows
Chris@0 14454 shrext=".dll"
Chris@0 14455 need_version=no
Chris@0 14456 need_lib_prefix=no
Chris@0 14457
Chris@0 14458 case $GCC,$host_os in
Chris@0 14459 yes,cygwin* | yes,mingw* | yes,pw32*)
Chris@0 14460 library_names_spec='$libname.dll.a'
Chris@0 14461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@0 14462 postinstall_cmds='base_file=`basename \${file}`~
Chris@0 14463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Chris@0 14464 dldir=$destdir/`dirname \$dlpath`~
Chris@0 14465 test -d \$dldir || mkdir -p \$dldir~
Chris@0 14466 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@0 14467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@0 14468 dlpath=$dir/\$dldll~
Chris@0 14469 $rm \$dlpath'
Chris@0 14470 shlibpath_overrides_runpath=yes
Chris@0 14471
Chris@0 14472 case $host_os in
Chris@0 14473 cygwin*)
Chris@0 14474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@0 14475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@0 14476 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Chris@0 14477 ;;
Chris@0 14478 mingw*)
Chris@0 14479 # MinGW DLLs use traditional 'lib' prefix
Chris@0 14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@0 14481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Chris@0 14482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
Chris@0 14483 # It is most probably a Windows format PATH printed by
Chris@0 14484 # mingw gcc, but we are running on Cygwin. Gcc prints its search
Chris@0 14485 # path with ; separators, and with drive letters. We can handle the
Chris@0 14486 # drive letters (cygwin fileutils understands them), so leave them,
Chris@0 14487 # especially as we might pass files found there to a mingw objdump,
Chris@0 14488 # which wouldn't understand a cygwinified path. Ahh.
Chris@0 14489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@0 14490 else
Chris@0 14491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@0 14492 fi
Chris@0 14493 ;;
Chris@0 14494 pw32*)
Chris@0 14495 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@0 14496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
Chris@0 14497 ;;
Chris@0 14498 esac
Chris@0 14499 ;;
Chris@0 14500
Chris@0 14501 *)
Chris@0 14502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@0 14503 ;;
Chris@0 14504 esac
Chris@0 14505 dynamic_linker='Win32 ld.exe'
Chris@0 14506 # FIXME: first we should search . and the directory the executable is in
Chris@0 14507 shlibpath_var=PATH
Chris@0 14508 ;;
Chris@0 14509
Chris@0 14510 darwin* | rhapsody*)
Chris@0 14511 dynamic_linker="$host_os dyld"
Chris@0 14512 version_type=darwin
Chris@0 14513 need_lib_prefix=no
Chris@0 14514 need_version=no
Chris@0 14515 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@0 14516 soname_spec='${libname}${release}${major}$shared_ext'
Chris@0 14517 shlibpath_overrides_runpath=yes
Chris@0 14518 shlibpath_var=DYLD_LIBRARY_PATH
Chris@0 14519 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
Chris@0 14520 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Chris@0 14521 if test "$GCC" = yes; then
Chris@0 14522 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"`
Chris@0 14523 else
Chris@0 14524 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
Chris@0 14525 fi
Chris@0 14526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@0 14527 ;;
Chris@0 14528
Chris@0 14529 dgux*)
Chris@0 14530 version_type=linux
Chris@0 14531 need_lib_prefix=no
Chris@0 14532 need_version=no
Chris@0 14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@0 14534 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14535 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14536 ;;
Chris@0 14537
Chris@0 14538 freebsd1*)
Chris@0 14539 dynamic_linker=no
Chris@0 14540 ;;
Chris@0 14541
Chris@0 14542 kfreebsd*-gnu)
Chris@0 14543 version_type=linux
Chris@0 14544 need_lib_prefix=no
Chris@0 14545 need_version=no
Chris@0 14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 14547 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14548 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14549 shlibpath_overrides_runpath=no
Chris@0 14550 hardcode_into_libs=yes
Chris@0 14551 dynamic_linker='GNU ld.so'
Chris@0 14552 ;;
Chris@0 14553
Chris@0 14554 freebsd*)
Chris@0 14555 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
Chris@0 14556 version_type=freebsd-$objformat
Chris@0 14557 case $version_type in
Chris@0 14558 freebsd-elf*)
Chris@0 14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@0 14560 need_version=no
Chris@0 14561 need_lib_prefix=no
Chris@0 14562 ;;
Chris@0 14563 freebsd-*)
Chris@0 14564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@0 14565 need_version=yes
Chris@0 14566 ;;
Chris@0 14567 esac
Chris@0 14568 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14569 case $host_os in
Chris@0 14570 freebsd2*)
Chris@0 14571 shlibpath_overrides_runpath=yes
Chris@0 14572 ;;
Chris@0 14573 freebsd3.01* | freebsdelf3.01*)
Chris@0 14574 shlibpath_overrides_runpath=yes
Chris@0 14575 hardcode_into_libs=yes
Chris@0 14576 ;;
Chris@0 14577 *) # from 3.2 on
Chris@0 14578 shlibpath_overrides_runpath=no
Chris@0 14579 hardcode_into_libs=yes
Chris@0 14580 ;;
Chris@0 14581 esac
Chris@0 14582 ;;
Chris@0 14583
Chris@0 14584 gnu*)
Chris@0 14585 version_type=linux
Chris@0 14586 need_lib_prefix=no
Chris@0 14587 need_version=no
Chris@0 14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@0 14589 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14590 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14591 hardcode_into_libs=yes
Chris@0 14592 ;;
Chris@0 14593
Chris@0 14594 hpux9* | hpux10* | hpux11*)
Chris@0 14595 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@0 14596 # link against other versions.
Chris@0 14597 version_type=sunos
Chris@0 14598 need_lib_prefix=no
Chris@0 14599 need_version=no
Chris@0 14600 case "$host_cpu" in
Chris@0 14601 ia64*)
Chris@0 14602 shrext='.so'
Chris@0 14603 hardcode_into_libs=yes
Chris@0 14604 dynamic_linker="$host_os dld.so"
Chris@0 14605 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@0 14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14608 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14609 if test "X$HPUX_IA64_MODE" = X32; then
Chris@0 14610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@0 14611 else
Chris@0 14612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@0 14613 fi
Chris@0 14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@0 14615 ;;
Chris@0 14616 hppa*64*)
Chris@0 14617 shrext='.sl'
Chris@0 14618 hardcode_into_libs=yes
Chris@0 14619 dynamic_linker="$host_os dld.sl"
Chris@0 14620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@0 14621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@0 14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14623 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@0 14625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@0 14626 ;;
Chris@0 14627 *)
Chris@0 14628 shrext='.sl'
Chris@0 14629 dynamic_linker="$host_os dld.sl"
Chris@0 14630 shlibpath_var=SHLIB_PATH
Chris@0 14631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@0 14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14633 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14634 ;;
Chris@0 14635 esac
Chris@0 14636 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Chris@0 14637 postinstall_cmds='chmod 555 $lib'
Chris@0 14638 ;;
Chris@0 14639
Chris@0 14640 irix5* | irix6* | nonstopux*)
Chris@0 14641 case $host_os in
Chris@0 14642 nonstopux*) version_type=nonstopux ;;
Chris@0 14643 *)
Chris@0 14644 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@0 14645 version_type=linux
Chris@0 14646 else
Chris@0 14647 version_type=irix
Chris@0 14648 fi ;;
Chris@0 14649 esac
Chris@0 14650 need_lib_prefix=no
Chris@0 14651 need_version=no
Chris@0 14652 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@0 14654 case $host_os in
Chris@0 14655 irix5* | nonstopux*)
Chris@0 14656 libsuff= shlibsuff=
Chris@0 14657 ;;
Chris@0 14658 *)
Chris@0 14659 case $LD in # libtool.m4 will add one of these switches to LD
Chris@0 14660 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@0 14661 libsuff= shlibsuff= libmagic=32-bit;;
Chris@0 14662 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@0 14663 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@0 14664 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@0 14665 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@0 14666 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@0 14667 esac
Chris@0 14668 ;;
Chris@0 14669 esac
Chris@0 14670 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@0 14671 shlibpath_overrides_runpath=no
Chris@0 14672 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@0 14673 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@0 14674 hardcode_into_libs=yes
Chris@0 14675 ;;
Chris@0 14676
Chris@0 14677 # No shared lib support for Linux oldld, aout, or coff.
Chris@0 14678 linux*oldld* | linux*aout* | linux*coff*)
Chris@0 14679 dynamic_linker=no
Chris@0 14680 ;;
Chris@0 14681
Chris@0 14682 # This must be Linux ELF.
Chris@0 14683 linux*)
Chris@0 14684 version_type=linux
Chris@0 14685 need_lib_prefix=no
Chris@0 14686 need_version=no
Chris@0 14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14688 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@0 14690 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14691 shlibpath_overrides_runpath=no
Chris@0 14692 # This implies no fast_install, which is unacceptable.
Chris@0 14693 # Some rework will be needed to allow for fast_install
Chris@0 14694 # before this can be enabled.
Chris@0 14695 hardcode_into_libs=yes
Chris@0 14696
Chris@0 14697 # Append ld.so.conf contents to the search path
Chris@0 14698 if test -f /etc/ld.so.conf; then
Chris@0 14699 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
Chris@0 14700 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
Chris@0 14701 fi
Chris@0 14702
Chris@0 14703 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@0 14704 # powerpc, because MkLinux only supported shared libraries with the
Chris@0 14705 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@0 14706 # most powerpc-linux boxes support dynamic linking these days and
Chris@0 14707 # people can always --disable-shared, the test was removed, and we
Chris@0 14708 # assume the GNU/Linux dynamic linker is in use.
Chris@0 14709 dynamic_linker='GNU/Linux ld.so'
Chris@0 14710 ;;
Chris@0 14711
Chris@0 14712 knetbsd*-gnu)
Chris@0 14713 version_type=linux
Chris@0 14714 need_lib_prefix=no
Chris@0 14715 need_version=no
Chris@0 14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 14717 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14718 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14719 shlibpath_overrides_runpath=no
Chris@0 14720 hardcode_into_libs=yes
Chris@0 14721 dynamic_linker='GNU ld.so'
Chris@0 14722 ;;
Chris@0 14723
Chris@0 14724 netbsd*)
Chris@0 14725 version_type=sunos
Chris@0 14726 need_lib_prefix=no
Chris@0 14727 need_version=no
Chris@0 14728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 14730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@0 14731 dynamic_linker='NetBSD (a.out) ld.so'
Chris@0 14732 else
Chris@0 14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 14734 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14735 dynamic_linker='NetBSD ld.elf_so'
Chris@0 14736 fi
Chris@0 14737 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14738 shlibpath_overrides_runpath=yes
Chris@0 14739 hardcode_into_libs=yes
Chris@0 14740 ;;
Chris@0 14741
Chris@0 14742 newsos6)
Chris@0 14743 version_type=linux
Chris@0 14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14745 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14746 shlibpath_overrides_runpath=yes
Chris@0 14747 ;;
Chris@0 14748
Chris@0 14749 nto-qnx*)
Chris@0 14750 version_type=linux
Chris@0 14751 need_lib_prefix=no
Chris@0 14752 need_version=no
Chris@0 14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14754 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14755 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14756 shlibpath_overrides_runpath=yes
Chris@0 14757 ;;
Chris@0 14758
Chris@0 14759 openbsd*)
Chris@0 14760 version_type=sunos
Chris@0 14761 need_lib_prefix=no
Chris@0 14762 need_version=yes
Chris@0 14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@0 14765 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@0 14767 case $host_os in
Chris@0 14768 openbsd2.[89] | openbsd2.[89].*)
Chris@0 14769 shlibpath_overrides_runpath=no
Chris@0 14770 ;;
Chris@0 14771 *)
Chris@0 14772 shlibpath_overrides_runpath=yes
Chris@0 14773 ;;
Chris@0 14774 esac
Chris@0 14775 else
Chris@0 14776 shlibpath_overrides_runpath=yes
Chris@0 14777 fi
Chris@0 14778 ;;
Chris@0 14779
Chris@0 14780 os2*)
Chris@0 14781 libname_spec='$name'
Chris@0 14782 shrext=".dll"
Chris@0 14783 need_lib_prefix=no
Chris@0 14784 library_names_spec='$libname${shared_ext} $libname.a'
Chris@0 14785 dynamic_linker='OS/2 ld.exe'
Chris@0 14786 shlibpath_var=LIBPATH
Chris@0 14787 ;;
Chris@0 14788
Chris@0 14789 osf3* | osf4* | osf5*)
Chris@0 14790 version_type=osf
Chris@0 14791 need_lib_prefix=no
Chris@0 14792 need_version=no
Chris@0 14793 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14795 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@0 14797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@0 14798 ;;
Chris@0 14799
Chris@0 14800 sco3.2v5*)
Chris@0 14801 version_type=osf
Chris@0 14802 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14804 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14805 ;;
Chris@0 14806
Chris@0 14807 solaris*)
Chris@0 14808 version_type=linux
Chris@0 14809 need_lib_prefix=no
Chris@0 14810 need_version=no
Chris@0 14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14812 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14813 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14814 shlibpath_overrides_runpath=yes
Chris@0 14815 hardcode_into_libs=yes
Chris@0 14816 # ldd complains unless libraries are executable
Chris@0 14817 postinstall_cmds='chmod +x $lib'
Chris@0 14818 ;;
Chris@0 14819
Chris@0 14820 sunos4*)
Chris@0 14821 version_type=sunos
Chris@0 14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 14823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@0 14824 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14825 shlibpath_overrides_runpath=yes
Chris@0 14826 if test "$with_gnu_ld" = yes; then
Chris@0 14827 need_lib_prefix=no
Chris@0 14828 fi
Chris@0 14829 need_version=yes
Chris@0 14830 ;;
Chris@0 14831
Chris@0 14832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@0 14833 version_type=linux
Chris@0 14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14835 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14836 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14837 case $host_vendor in
Chris@0 14838 sni)
Chris@0 14839 shlibpath_overrides_runpath=no
Chris@0 14840 need_lib_prefix=no
Chris@0 14841 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@0 14842 runpath_var=LD_RUN_PATH
Chris@0 14843 ;;
Chris@0 14844 siemens)
Chris@0 14845 need_lib_prefix=no
Chris@0 14846 ;;
Chris@0 14847 motorola)
Chris@0 14848 need_lib_prefix=no
Chris@0 14849 need_version=no
Chris@0 14850 shlibpath_overrides_runpath=no
Chris@0 14851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@0 14852 ;;
Chris@0 14853 esac
Chris@0 14854 ;;
Chris@0 14855
Chris@0 14856 sysv4*MP*)
Chris@0 14857 if test -d /usr/nec ;then
Chris@0 14858 version_type=linux
Chris@0 14859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@0 14860 soname_spec='$libname${shared_ext}.$major'
Chris@0 14861 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14862 fi
Chris@0 14863 ;;
Chris@0 14864
Chris@0 14865 uts4*)
Chris@0 14866 version_type=linux
Chris@0 14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 14868 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 14869 shlibpath_var=LD_LIBRARY_PATH
Chris@0 14870 ;;
Chris@0 14871
Chris@0 14872 *)
Chris@0 14873 dynamic_linker=no
Chris@0 14874 ;;
Chris@0 14875 esac
Chris@0 14876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Chris@0 14877 echo "${ECHO_T}$dynamic_linker" >&6
Chris@0 14878 test "$dynamic_linker" = no && can_build_shared=no
Chris@0 14879
Chris@0 14880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Chris@0 14881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
Chris@0 14882 hardcode_action_F77=
Chris@0 14883 if test -n "$hardcode_libdir_flag_spec_F77" || \
Chris@0 14884 test -n "$runpath_var F77" || \
Chris@0 14885 test "X$hardcode_automatic_F77"="Xyes" ; then
Chris@0 14886
Chris@0 14887 # We can hardcode non-existant directories.
Chris@0 14888 if test "$hardcode_direct_F77" != no &&
Chris@0 14889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@0 14890 # have to relink, otherwise we might link with an installed library
Chris@0 14891 # when we should be linking with a yet-to-be-installed one
Chris@0 14892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
Chris@0 14893 test "$hardcode_minus_L_F77" != no; then
Chris@0 14894 # Linking always hardcodes the temporary library directory.
Chris@0 14895 hardcode_action_F77=relink
Chris@0 14896 else
Chris@0 14897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@0 14898 hardcode_action_F77=immediate
Chris@0 14899 fi
Chris@0 14900 else
Chris@0 14901 # We cannot hardcode anything, or else we can only hardcode existing
Chris@0 14902 # directories.
Chris@0 14903 hardcode_action_F77=unsupported
Chris@0 14904 fi
Chris@0 14905 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
Chris@0 14906 echo "${ECHO_T}$hardcode_action_F77" >&6
Chris@0 14907
Chris@0 14908 if test "$hardcode_action_F77" = relink; then
Chris@0 14909 # Fast installation is not supported
Chris@0 14910 enable_fast_install=no
Chris@0 14911 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@0 14912 test "$enable_shared" = no; then
Chris@0 14913 # Fast installation is not necessary
Chris@0 14914 enable_fast_install=needless
Chris@0 14915 fi
Chris@0 14916
Chris@0 14917 striplib=
Chris@0 14918 old_striplib=
Chris@0 14919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
Chris@0 14920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
Chris@0 14921 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
Chris@0 14922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@0 14923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@0 14924 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 14925 echo "${ECHO_T}yes" >&6
Chris@0 14926 else
Chris@0 14927 # FIXME - insert some real tests, host_os isn't really good enough
Chris@0 14928 case $host_os in
Chris@0 14929 darwin*)
Chris@0 14930 if test -n "$STRIP" ; then
Chris@0 14931 striplib="$STRIP -x"
Chris@0 14932 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 14933 echo "${ECHO_T}yes" >&6
Chris@0 14934 else
Chris@0 14935 echo "$as_me:$LINENO: result: no" >&5
Chris@0 14936 echo "${ECHO_T}no" >&6
Chris@0 14937 fi
Chris@0 14938 ;;
Chris@0 14939 *)
Chris@0 14940 echo "$as_me:$LINENO: result: no" >&5
Chris@0 14941 echo "${ECHO_T}no" >&6
Chris@0 14942 ;;
Chris@0 14943 esac
Chris@0 14944 fi
Chris@0 14945
Chris@0 14946
Chris@0 14947
Chris@0 14948 # The else clause should only fire when bootstrapping the
Chris@0 14949 # libtool distribution, otherwise you forgot to ship ltmain.sh
Chris@0 14950 # with your package, and you will get complaints that there are
Chris@0 14951 # no rules to generate ltmain.sh.
Chris@0 14952 if test -f "$ltmain"; then
Chris@0 14953 # See if we are running on zsh, and set the options which allow our commands through
Chris@0 14954 # without removal of \ escapes.
Chris@0 14955 if test -n "${ZSH_VERSION+set}" ; then
Chris@0 14956 setopt NO_GLOB_SUBST
Chris@0 14957 fi
Chris@0 14958 # Now quote all the things that may contain metacharacters while being
Chris@0 14959 # careful not to overquote the AC_SUBSTed values. We take copies of the
Chris@0 14960 # variables and quote the copies for generation of the libtool script.
Chris@0 14961 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
Chris@0 14962 SED SHELL STRIP \
Chris@0 14963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
Chris@0 14964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
Chris@0 14965 deplibs_check_method reload_flag reload_cmds need_locks \
Chris@0 14966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
Chris@0 14967 lt_cv_sys_global_symbol_to_c_name_address \
Chris@0 14968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Chris@0 14969 old_postinstall_cmds old_postuninstall_cmds \
Chris@0 14970 compiler_F77 \
Chris@0 14971 CC_F77 \
Chris@0 14972 LD_F77 \
Chris@0 14973 lt_prog_compiler_wl_F77 \
Chris@0 14974 lt_prog_compiler_pic_F77 \
Chris@0 14975 lt_prog_compiler_static_F77 \
Chris@0 14976 lt_prog_compiler_no_builtin_flag_F77 \
Chris@0 14977 export_dynamic_flag_spec_F77 \
Chris@0 14978 thread_safe_flag_spec_F77 \
Chris@0 14979 whole_archive_flag_spec_F77 \
Chris@0 14980 enable_shared_with_static_runtimes_F77 \
Chris@0 14981 old_archive_cmds_F77 \
Chris@0 14982 old_archive_from_new_cmds_F77 \
Chris@0 14983 predep_objects_F77 \
Chris@0 14984 postdep_objects_F77 \
Chris@0 14985 predeps_F77 \
Chris@0 14986 postdeps_F77 \
Chris@0 14987 compiler_lib_search_path_F77 \
Chris@0 14988 archive_cmds_F77 \
Chris@0 14989 archive_expsym_cmds_F77 \
Chris@0 14990 postinstall_cmds_F77 \
Chris@0 14991 postuninstall_cmds_F77 \
Chris@0 14992 old_archive_from_expsyms_cmds_F77 \
Chris@0 14993 allow_undefined_flag_F77 \
Chris@0 14994 no_undefined_flag_F77 \
Chris@0 14995 export_symbols_cmds_F77 \
Chris@0 14996 hardcode_libdir_flag_spec_F77 \
Chris@0 14997 hardcode_libdir_flag_spec_ld_F77 \
Chris@0 14998 hardcode_libdir_separator_F77 \
Chris@0 14999 hardcode_automatic_F77 \
Chris@0 15000 module_cmds_F77 \
Chris@0 15001 module_expsym_cmds_F77 \
Chris@0 15002 lt_cv_prog_compiler_c_o_F77 \
Chris@0 15003 exclude_expsyms_F77 \
Chris@0 15004 include_expsyms_F77; do
Chris@0 15005
Chris@0 15006 case $var in
Chris@0 15007 old_archive_cmds_F77 | \
Chris@0 15008 old_archive_from_new_cmds_F77 | \
Chris@0 15009 archive_cmds_F77 | \
Chris@0 15010 archive_expsym_cmds_F77 | \
Chris@0 15011 module_cmds_F77 | \
Chris@0 15012 module_expsym_cmds_F77 | \
Chris@0 15013 old_archive_from_expsyms_cmds_F77 | \
Chris@0 15014 export_symbols_cmds_F77 | \
Chris@0 15015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Chris@0 15016 postinstall_cmds | postuninstall_cmds | \
Chris@0 15017 old_postinstall_cmds | old_postuninstall_cmds | \
Chris@0 15018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Chris@0 15019 # Double-quote double-evaled strings.
Chris@0 15020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
Chris@0 15021 ;;
Chris@0 15022 *)
Chris@0 15023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
Chris@0 15024 ;;
Chris@0 15025 esac
Chris@0 15026 done
Chris@0 15027
Chris@0 15028 case $lt_echo in
Chris@0 15029 *'\$0 --fallback-echo"')
Chris@0 15030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
Chris@0 15031 ;;
Chris@0 15032 esac
Chris@0 15033
Chris@0 15034 cfgfile="$ofile"
Chris@0 15035
Chris@0 15036 cat <<__EOF__ >> "$cfgfile"
Chris@0 15037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
Chris@0 15038
Chris@0 15039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@0 15040
Chris@0 15041 # Shell to use when invoking shell scripts.
Chris@0 15042 SHELL=$lt_SHELL
Chris@0 15043
Chris@0 15044 # Whether or not to build shared libraries.
Chris@0 15045 build_libtool_libs=$enable_shared
Chris@0 15046
Chris@0 15047 # Whether or not to build static libraries.
Chris@0 15048 build_old_libs=$enable_static
Chris@0 15049
Chris@0 15050 # Whether or not to add -lc for building shared libraries.
Chris@0 15051 build_libtool_need_lc=$archive_cmds_need_lc_F77
Chris@0 15052
Chris@0 15053 # Whether or not to disallow shared libs when runtime libs are static
Chris@0 15054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
Chris@0 15055
Chris@0 15056 # Whether or not to optimize for fast installation.
Chris@0 15057 fast_install=$enable_fast_install
Chris@0 15058
Chris@0 15059 # The host system.
Chris@0 15060 host_alias=$host_alias
Chris@0 15061 host=$host
Chris@0 15062
Chris@0 15063 # An echo program that does not interpret backslashes.
Chris@0 15064 echo=$lt_echo
Chris@0 15065
Chris@0 15066 # The archiver.
Chris@0 15067 AR=$lt_AR
Chris@0 15068 AR_FLAGS=$lt_AR_FLAGS
Chris@0 15069
Chris@0 15070 # A C compiler.
Chris@0 15071 LTCC=$lt_LTCC
Chris@0 15072
Chris@0 15073 # A language-specific compiler.
Chris@0 15074 CC=$lt_compiler_F77
Chris@0 15075
Chris@0 15076 # Is the compiler the GNU C compiler?
Chris@0 15077 with_gcc=$GCC_F77
Chris@0 15078
Chris@0 15079 # An ERE matcher.
Chris@0 15080 EGREP=$lt_EGREP
Chris@0 15081
Chris@0 15082 # The linker used to build libraries.
Chris@0 15083 LD=$lt_LD_F77
Chris@0 15084
Chris@0 15085 # Whether we need hard or soft links.
Chris@0 15086 LN_S=$lt_LN_S
Chris@0 15087
Chris@0 15088 # A BSD-compatible nm program.
Chris@0 15089 NM=$lt_NM
Chris@0 15090
Chris@0 15091 # A symbol stripping program
Chris@0 15092 STRIP=$lt_STRIP
Chris@0 15093
Chris@0 15094 # Used to examine libraries when file_magic_cmd begins "file"
Chris@0 15095 MAGIC_CMD=$MAGIC_CMD
Chris@0 15096
Chris@0 15097 # Used on cygwin: DLL creation program.
Chris@0 15098 DLLTOOL="$DLLTOOL"
Chris@0 15099
Chris@0 15100 # Used on cygwin: object dumper.
Chris@0 15101 OBJDUMP="$OBJDUMP"
Chris@0 15102
Chris@0 15103 # Used on cygwin: assembler.
Chris@0 15104 AS="$AS"
Chris@0 15105
Chris@0 15106 # The name of the directory that contains temporary libtool files.
Chris@0 15107 objdir=$objdir
Chris@0 15108
Chris@0 15109 # How to create reloadable object files.
Chris@0 15110 reload_flag=$lt_reload_flag
Chris@0 15111 reload_cmds=$lt_reload_cmds
Chris@0 15112
Chris@0 15113 # How to pass a linker flag through the compiler.
Chris@0 15114 wl=$lt_lt_prog_compiler_wl_F77
Chris@0 15115
Chris@0 15116 # Object file suffix (normally "o").
Chris@0 15117 objext="$ac_objext"
Chris@0 15118
Chris@0 15119 # Old archive suffix (normally "a").
Chris@0 15120 libext="$libext"
Chris@0 15121
Chris@0 15122 # Shared library suffix (normally ".so").
Chris@0 15123 shrext='$shrext'
Chris@0 15124
Chris@0 15125 # Executable file suffix (normally "").
Chris@0 15126 exeext="$exeext"
Chris@0 15127
Chris@0 15128 # Additional compiler flags for building library objects.
Chris@0 15129 pic_flag=$lt_lt_prog_compiler_pic_F77
Chris@0 15130 pic_mode=$pic_mode
Chris@0 15131
Chris@0 15132 # What is the maximum length of a command?
Chris@0 15133 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@0 15134
Chris@0 15135 # Does compiler simultaneously support -c and -o options?
Chris@0 15136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
Chris@0 15137
Chris@0 15138 # Must we lock files when doing compilation ?
Chris@0 15139 need_locks=$lt_need_locks
Chris@0 15140
Chris@0 15141 # Do we need the lib prefix for modules?
Chris@0 15142 need_lib_prefix=$need_lib_prefix
Chris@0 15143
Chris@0 15144 # Do we need a version for libraries?
Chris@0 15145 need_version=$need_version
Chris@0 15146
Chris@0 15147 # Whether dlopen is supported.
Chris@0 15148 dlopen_support=$enable_dlopen
Chris@0 15149
Chris@0 15150 # Whether dlopen of programs is supported.
Chris@0 15151 dlopen_self=$enable_dlopen_self
Chris@0 15152
Chris@0 15153 # Whether dlopen of statically linked programs is supported.
Chris@0 15154 dlopen_self_static=$enable_dlopen_self_static
Chris@0 15155
Chris@0 15156 # Compiler flag to prevent dynamic linking.
Chris@0 15157 link_static_flag=$lt_lt_prog_compiler_static_F77
Chris@0 15158
Chris@0 15159 # Compiler flag to turn off builtin functions.
Chris@0 15160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
Chris@0 15161
Chris@0 15162 # Compiler flag to allow reflexive dlopens.
Chris@0 15163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
Chris@0 15164
Chris@0 15165 # Compiler flag to generate shared objects directly from archives.
Chris@0 15166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
Chris@0 15167
Chris@0 15168 # Compiler flag to generate thread-safe objects.
Chris@0 15169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
Chris@0 15170
Chris@0 15171 # Library versioning type.
Chris@0 15172 version_type=$version_type
Chris@0 15173
Chris@0 15174 # Format of library name prefix.
Chris@0 15175 libname_spec=$lt_libname_spec
Chris@0 15176
Chris@0 15177 # List of archive names. First name is the real one, the rest are links.
Chris@0 15178 # The last name is the one that the linker finds with -lNAME.
Chris@0 15179 library_names_spec=$lt_library_names_spec
Chris@0 15180
Chris@0 15181 # The coded name of the library, if different from the real name.
Chris@0 15182 soname_spec=$lt_soname_spec
Chris@0 15183
Chris@0 15184 # Commands used to build and install an old-style archive.
Chris@0 15185 RANLIB=$lt_RANLIB
Chris@0 15186 old_archive_cmds=$lt_old_archive_cmds_F77
Chris@0 15187 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@0 15188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@0 15189
Chris@0 15190 # Create an old-style archive from a shared archive.
Chris@0 15191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
Chris@0 15192
Chris@0 15193 # Create a temporary old-style archive to link instead of a shared archive.
Chris@0 15194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
Chris@0 15195
Chris@0 15196 # Commands used to build and install a shared archive.
Chris@0 15197 archive_cmds=$lt_archive_cmds_F77
Chris@0 15198 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
Chris@0 15199 postinstall_cmds=$lt_postinstall_cmds
Chris@0 15200 postuninstall_cmds=$lt_postuninstall_cmds
Chris@0 15201
Chris@0 15202 # Commands used to build a loadable module (assumed same as above if empty)
Chris@0 15203 module_cmds=$lt_module_cmds_F77
Chris@0 15204 module_expsym_cmds=$lt_module_expsym_cmds_F77
Chris@0 15205
Chris@0 15206 # Commands to strip libraries.
Chris@0 15207 old_striplib=$lt_old_striplib
Chris@0 15208 striplib=$lt_striplib
Chris@0 15209
Chris@0 15210 # Dependencies to place before the objects being linked to create a
Chris@0 15211 # shared library.
Chris@0 15212 predep_objects=$lt_predep_objects_F77
Chris@0 15213
Chris@0 15214 # Dependencies to place after the objects being linked to create a
Chris@0 15215 # shared library.
Chris@0 15216 postdep_objects=$lt_postdep_objects_F77
Chris@0 15217
Chris@0 15218 # Dependencies to place before the objects being linked to create a
Chris@0 15219 # shared library.
Chris@0 15220 predeps=$lt_predeps_F77
Chris@0 15221
Chris@0 15222 # Dependencies to place after the objects being linked to create a
Chris@0 15223 # shared library.
Chris@0 15224 postdeps=$lt_postdeps_F77
Chris@0 15225
Chris@0 15226 # The library search path used internally by the compiler when linking
Chris@0 15227 # a shared library.
Chris@0 15228 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
Chris@0 15229
Chris@0 15230 # Method to check whether dependent libraries are shared objects.
Chris@0 15231 deplibs_check_method=$lt_deplibs_check_method
Chris@0 15232
Chris@0 15233 # Command to use when deplibs_check_method == file_magic.
Chris@0 15234 file_magic_cmd=$lt_file_magic_cmd
Chris@0 15235
Chris@0 15236 # Flag that allows shared libraries with undefined symbols to be built.
Chris@0 15237 allow_undefined_flag=$lt_allow_undefined_flag_F77
Chris@0 15238
Chris@0 15239 # Flag that forces no undefined symbols.
Chris@0 15240 no_undefined_flag=$lt_no_undefined_flag_F77
Chris@0 15241
Chris@0 15242 # Commands used to finish a libtool library installation in a directory.
Chris@0 15243 finish_cmds=$lt_finish_cmds
Chris@0 15244
Chris@0 15245 # Same as above, but a single script fragment to be evaled but not shown.
Chris@0 15246 finish_eval=$lt_finish_eval
Chris@0 15247
Chris@0 15248 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@0 15249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@0 15250
Chris@0 15251 # Transform the output of nm in a proper C declaration
Chris@0 15252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@0 15253
Chris@0 15254 # Transform the output of nm in a C name address pair
Chris@0 15255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@0 15256
Chris@0 15257 # This is the shared library runtime path variable.
Chris@0 15258 runpath_var=$runpath_var
Chris@0 15259
Chris@0 15260 # This is the shared library path variable.
Chris@0 15261 shlibpath_var=$shlibpath_var
Chris@0 15262
Chris@0 15263 # Is shlibpath searched before the hard-coded library search path?
Chris@0 15264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@0 15265
Chris@0 15266 # How to hardcode a shared library path into an executable.
Chris@0 15267 hardcode_action=$hardcode_action_F77
Chris@0 15268
Chris@0 15269 # Whether we should hardcode library paths into libraries.
Chris@0 15270 hardcode_into_libs=$hardcode_into_libs
Chris@0 15271
Chris@0 15272 # Flag to hardcode \$libdir into a binary during linking.
Chris@0 15273 # This must work even if \$libdir does not exist.
Chris@0 15274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
Chris@0 15275
Chris@0 15276 # If ld is used when linking, flag to hardcode \$libdir into
Chris@0 15277 # a binary during linking. This must work even if \$libdir does
Chris@0 15278 # not exist.
Chris@0 15279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
Chris@0 15280
Chris@0 15281 # Whether we need a single -rpath flag with a separated argument.
Chris@0 15282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
Chris@0 15283
Chris@0 15284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Chris@0 15285 # resulting binary.
Chris@0 15286 hardcode_direct=$hardcode_direct_F77
Chris@0 15287
Chris@0 15288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
Chris@0 15289 # resulting binary.
Chris@0 15290 hardcode_minus_L=$hardcode_minus_L_F77
Chris@0 15291
Chris@0 15292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
Chris@0 15293 # the resulting binary.
Chris@0 15294 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
Chris@0 15295
Chris@0 15296 # Set to yes if building a shared library automatically hardcodes DIR into the library
Chris@0 15297 # and all subsequent libraries and executables linked against it.
Chris@0 15298 hardcode_automatic=$hardcode_automatic_F77
Chris@0 15299
Chris@0 15300 # Variables whose values should be saved in libtool wrapper scripts and
Chris@0 15301 # restored at relink time.
Chris@0 15302 variables_saved_for_relink="$variables_saved_for_relink"
Chris@0 15303
Chris@0 15304 # Whether libtool must link a program against all its dependency libraries.
Chris@0 15305 link_all_deplibs=$link_all_deplibs_F77
Chris@0 15306
Chris@0 15307 # Compile-time system search path for libraries
Chris@0 15308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@0 15309
Chris@0 15310 # Run-time system search path for libraries
Chris@0 15311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@0 15312
Chris@0 15313 # Fix the shell variable \$srcfile for the compiler.
Chris@0 15314 fix_srcfile_path="$fix_srcfile_path_F77"
Chris@0 15315
Chris@0 15316 # Set to yes if exported symbols are required.
Chris@0 15317 always_export_symbols=$always_export_symbols_F77
Chris@0 15318
Chris@0 15319 # The commands to list exported symbols.
Chris@0 15320 export_symbols_cmds=$lt_export_symbols_cmds_F77
Chris@0 15321
Chris@0 15322 # The commands to extract the exported symbol list from a shared archive.
Chris@0 15323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@0 15324
Chris@0 15325 # Symbols that should not be listed in the preloaded symbols.
Chris@0 15326 exclude_expsyms=$lt_exclude_expsyms_F77
Chris@0 15327
Chris@0 15328 # Symbols that must always be exported.
Chris@0 15329 include_expsyms=$lt_include_expsyms_F77
Chris@0 15330
Chris@0 15331 # ### END LIBTOOL TAG CONFIG: $tagname
Chris@0 15332
Chris@0 15333 __EOF__
Chris@0 15334
Chris@0 15335
Chris@0 15336 else
Chris@0 15337 # If there is no Makefile yet, we rely on a make rule to execute
Chris@0 15338 # `config.status --recheck' to rerun these tests and create the
Chris@0 15339 # libtool script then.
Chris@0 15340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
Chris@0 15341 if test -f "$ltmain_in"; then
Chris@0 15342 test -f Makefile && make "$ltmain"
Chris@0 15343 fi
Chris@0 15344 fi
Chris@0 15345
Chris@0 15346
Chris@0 15347 ac_ext=c
Chris@0 15348 ac_cpp='$CPP $CPPFLAGS'
Chris@0 15349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 15350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 15351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 15352
Chris@0 15353 CC="$lt_save_CC"
Chris@0 15354
Chris@0 15355 else
Chris@0 15356 tagname=""
Chris@0 15357 fi
Chris@0 15358 ;;
Chris@0 15359
Chris@0 15360 GCJ)
Chris@0 15361 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Chris@0 15362
Chris@0 15363
Chris@0 15364
Chris@0 15365 # Source file extension for Java test sources.
Chris@0 15366 ac_ext=java
Chris@0 15367
Chris@0 15368 # Object file extension for compiled Java test sources.
Chris@0 15369 objext=o
Chris@0 15370 objext_GCJ=$objext
Chris@0 15371
Chris@0 15372 # Code to be used in simple compile tests
Chris@0 15373 lt_simple_compile_test_code="class foo {}\n"
Chris@0 15374
Chris@0 15375 # Code to be used in simple link tests
Chris@0 15376 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
Chris@0 15377
Chris@0 15378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@0 15379
Chris@0 15380 # If no C compiler was specified, use CC.
Chris@0 15381 LTCC=${LTCC-"$CC"}
Chris@0 15382
Chris@0 15383 # Allow CC to be a program name with arguments.
Chris@0 15384 compiler=$CC
Chris@0 15385
Chris@0 15386
Chris@0 15387 # Allow CC to be a program name with arguments.
Chris@0 15388 lt_save_CC="$CC"
Chris@0 15389 CC=${GCJ-"gcj"}
Chris@0 15390 compiler=$CC
Chris@0 15391 compiler_GCJ=$CC
Chris@0 15392
Chris@0 15393 # GCJ did not exist at the time GCC didn't implicitly link libc in.
Chris@0 15394 archive_cmds_need_lc_GCJ=no
Chris@0 15395
Chris@0 15396
Chris@0 15397 lt_prog_compiler_no_builtin_flag_GCJ=
Chris@0 15398
Chris@0 15399 if test "$GCC" = yes; then
Chris@0 15400 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
Chris@0 15401
Chris@0 15402
Chris@0 15403 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@0 15404 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
Chris@0 15405 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Chris@0 15406 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 15407 else
Chris@0 15408 lt_cv_prog_compiler_rtti_exceptions=no
Chris@0 15409 ac_outfile=conftest.$ac_objext
Chris@0 15410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 15411 lt_compiler_flag="-fno-rtti -fno-exceptions"
Chris@0 15412 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 15413 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 15414 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 15415 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 15416 # The option is referenced via a variable to avoid confusing sed.
Chris@0 15417 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 15418 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 15419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 15420 -e 's:$: $lt_compiler_flag:'`
Chris@0 15421 (eval echo "\"\$as_me:15421: $lt_compile\"" >&5)
Chris@0 15422 (eval "$lt_compile" 2>conftest.err)
Chris@0 15423 ac_status=$?
Chris@0 15424 cat conftest.err >&5
Chris@0 15425 echo "$as_me:15425: \$? = $ac_status" >&5
Chris@0 15426 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@0 15427 # The compiler can only warn and ignore the option if not recognized
Chris@0 15428 # So say no if there are warnings
Chris@0 15429 if test ! -s conftest.err; then
Chris@0 15430 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@0 15431 fi
Chris@0 15432 fi
Chris@0 15433 $rm conftest*
Chris@0 15434
Chris@0 15435 fi
Chris@0 15436 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@0 15437 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
Chris@0 15438
Chris@0 15439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
Chris@0 15440 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
Chris@0 15441 else
Chris@0 15442 :
Chris@0 15443 fi
Chris@0 15444
Chris@0 15445 fi
Chris@0 15446
Chris@0 15447 lt_prog_compiler_wl_GCJ=
Chris@0 15448 lt_prog_compiler_pic_GCJ=
Chris@0 15449 lt_prog_compiler_static_GCJ=
Chris@0 15450
Chris@0 15451 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
Chris@0 15452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
Chris@0 15453
Chris@0 15454 if test "$GCC" = yes; then
Chris@0 15455 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15456 lt_prog_compiler_static_GCJ='-static'
Chris@0 15457
Chris@0 15458 case $host_os in
Chris@0 15459 aix*)
Chris@0 15460 # All AIX code is PIC.
Chris@0 15461 if test "$host_cpu" = ia64; then
Chris@0 15462 # AIX 5 now supports IA64 processor
Chris@0 15463 lt_prog_compiler_static_GCJ='-Bstatic'
Chris@0 15464 fi
Chris@0 15465 ;;
Chris@0 15466
Chris@0 15467 amigaos*)
Chris@0 15468 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@0 15469 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@0 15470 # like `-m68040'.
Chris@0 15471 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
Chris@0 15472 ;;
Chris@0 15473
Chris@0 15474 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@0 15475 # PIC is the default for these OSes.
Chris@0 15476 ;;
Chris@0 15477
Chris@0 15478 mingw* | pw32* | os2*)
Chris@0 15479 # This hack is so that the source file can tell whether it is being
Chris@0 15480 # built for inclusion in a dll (and should export symbols for example).
Chris@0 15481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
Chris@0 15482 ;;
Chris@0 15483
Chris@0 15484 darwin* | rhapsody*)
Chris@0 15485 # PIC is the default on this platform
Chris@0 15486 # Common symbols not allowed in MH_DYLIB files
Chris@0 15487 lt_prog_compiler_pic_GCJ='-fno-common'
Chris@0 15488 ;;
Chris@0 15489
Chris@0 15490 msdosdjgpp*)
Chris@0 15491 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@0 15492 # on systems that don't support them.
Chris@0 15493 lt_prog_compiler_can_build_shared_GCJ=no
Chris@0 15494 enable_shared=no
Chris@0 15495 ;;
Chris@0 15496
Chris@0 15497 sysv4*MP*)
Chris@0 15498 if test -d /usr/nec; then
Chris@0 15499 lt_prog_compiler_pic_GCJ=-Kconform_pic
Chris@0 15500 fi
Chris@0 15501 ;;
Chris@0 15502
Chris@0 15503 hpux*)
Chris@0 15504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@0 15505 # not for PA HP-UX.
Chris@0 15506 case "$host_cpu" in
Chris@0 15507 hppa*64*|ia64*)
Chris@0 15508 # +Z the default
Chris@0 15509 ;;
Chris@0 15510 *)
Chris@0 15511 lt_prog_compiler_pic_GCJ='-fPIC'
Chris@0 15512 ;;
Chris@0 15513 esac
Chris@0 15514 ;;
Chris@0 15515
Chris@0 15516 *)
Chris@0 15517 lt_prog_compiler_pic_GCJ='-fPIC'
Chris@0 15518 ;;
Chris@0 15519 esac
Chris@0 15520 else
Chris@0 15521 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@0 15522 case $host_os in
Chris@0 15523 aix*)
Chris@0 15524 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15525 if test "$host_cpu" = ia64; then
Chris@0 15526 # AIX 5 now supports IA64 processor
Chris@0 15527 lt_prog_compiler_static_GCJ='-Bstatic'
Chris@0 15528 else
Chris@0 15529 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
Chris@0 15530 fi
Chris@0 15531 ;;
Chris@0 15532
Chris@0 15533 mingw* | pw32* | os2*)
Chris@0 15534 # This hack is so that the source file can tell whether it is being
Chris@0 15535 # built for inclusion in a dll (and should export symbols for example).
Chris@0 15536 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
Chris@0 15537 ;;
Chris@0 15538
Chris@0 15539 hpux9* | hpux10* | hpux11*)
Chris@0 15540 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@0 15542 # not for PA HP-UX.
Chris@0 15543 case "$host_cpu" in
Chris@0 15544 hppa*64*|ia64*)
Chris@0 15545 # +Z the default
Chris@0 15546 ;;
Chris@0 15547 *)
Chris@0 15548 lt_prog_compiler_pic_GCJ='+Z'
Chris@0 15549 ;;
Chris@0 15550 esac
Chris@0 15551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@0 15552 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
Chris@0 15553 ;;
Chris@0 15554
Chris@0 15555 irix5* | irix6* | nonstopux*)
Chris@0 15556 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15557 # PIC (with -KPIC) is the default.
Chris@0 15558 lt_prog_compiler_static_GCJ='-non_shared'
Chris@0 15559 ;;
Chris@0 15560
Chris@0 15561 newsos6)
Chris@0 15562 lt_prog_compiler_pic_GCJ='-KPIC'
Chris@0 15563 lt_prog_compiler_static_GCJ='-Bstatic'
Chris@0 15564 ;;
Chris@0 15565
Chris@0 15566 linux*)
Chris@0 15567 case $CC in
Chris@0 15568 icc* | ecc*)
Chris@0 15569 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15570 lt_prog_compiler_pic_GCJ='-KPIC'
Chris@0 15571 lt_prog_compiler_static_GCJ='-static'
Chris@0 15572 ;;
Chris@0 15573 ccc*)
Chris@0 15574 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15575 # All Alpha code is PIC.
Chris@0 15576 lt_prog_compiler_static_GCJ='-non_shared'
Chris@0 15577 ;;
Chris@0 15578 esac
Chris@0 15579 ;;
Chris@0 15580
Chris@0 15581 osf3* | osf4* | osf5*)
Chris@0 15582 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15583 # All OSF/1 code is PIC.
Chris@0 15584 lt_prog_compiler_static_GCJ='-non_shared'
Chris@0 15585 ;;
Chris@0 15586
Chris@0 15587 sco3.2v5*)
Chris@0 15588 lt_prog_compiler_pic_GCJ='-Kpic'
Chris@0 15589 lt_prog_compiler_static_GCJ='-dn'
Chris@0 15590 ;;
Chris@0 15591
Chris@0 15592 solaris*)
Chris@0 15593 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15594 lt_prog_compiler_pic_GCJ='-KPIC'
Chris@0 15595 lt_prog_compiler_static_GCJ='-Bstatic'
Chris@0 15596 ;;
Chris@0 15597
Chris@0 15598 sunos4*)
Chris@0 15599 lt_prog_compiler_wl_GCJ='-Qoption ld '
Chris@0 15600 lt_prog_compiler_pic_GCJ='-PIC'
Chris@0 15601 lt_prog_compiler_static_GCJ='-Bstatic'
Chris@0 15602 ;;
Chris@0 15603
Chris@0 15604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@0 15605 lt_prog_compiler_wl_GCJ='-Wl,'
Chris@0 15606 lt_prog_compiler_pic_GCJ='-KPIC'
Chris@0 15607 lt_prog_compiler_static_GCJ='-Bstatic'
Chris@0 15608 ;;
Chris@0 15609
Chris@0 15610 sysv4*MP*)
Chris@0 15611 if test -d /usr/nec ;then
Chris@0 15612 lt_prog_compiler_pic_GCJ='-Kconform_pic'
Chris@0 15613 lt_prog_compiler_static_GCJ='-Bstatic'
Chris@0 15614 fi
Chris@0 15615 ;;
Chris@0 15616
Chris@0 15617 uts4*)
Chris@0 15618 lt_prog_compiler_pic_GCJ='-pic'
Chris@0 15619 lt_prog_compiler_static_GCJ='-Bstatic'
Chris@0 15620 ;;
Chris@0 15621
Chris@0 15622 *)
Chris@0 15623 lt_prog_compiler_can_build_shared_GCJ=no
Chris@0 15624 ;;
Chris@0 15625 esac
Chris@0 15626 fi
Chris@0 15627
Chris@0 15628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
Chris@0 15629 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
Chris@0 15630
Chris@0 15631 #
Chris@0 15632 # Check to make sure the PIC flag actually works.
Chris@0 15633 #
Chris@0 15634 if test -n "$lt_prog_compiler_pic_GCJ"; then
Chris@0 15635
Chris@0 15636 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
Chris@0 15637 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
Chris@0 15638 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
Chris@0 15639 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 15640 else
Chris@0 15641 lt_prog_compiler_pic_works_GCJ=no
Chris@0 15642 ac_outfile=conftest.$ac_objext
Chris@0 15643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 15644 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
Chris@0 15645 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 15646 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 15647 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 15648 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 15649 # The option is referenced via a variable to avoid confusing sed.
Chris@0 15650 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 15651 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 15652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 15653 -e 's:$: $lt_compiler_flag:'`
Chris@0 15654 (eval echo "\"\$as_me:15654: $lt_compile\"" >&5)
Chris@0 15655 (eval "$lt_compile" 2>conftest.err)
Chris@0 15656 ac_status=$?
Chris@0 15657 cat conftest.err >&5
Chris@0 15658 echo "$as_me:15658: \$? = $ac_status" >&5
Chris@0 15659 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@0 15660 # The compiler can only warn and ignore the option if not recognized
Chris@0 15661 # So say no if there are warnings
Chris@0 15662 if test ! -s conftest.err; then
Chris@0 15663 lt_prog_compiler_pic_works_GCJ=yes
Chris@0 15664 fi
Chris@0 15665 fi
Chris@0 15666 $rm conftest*
Chris@0 15667
Chris@0 15668 fi
Chris@0 15669 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
Chris@0 15670 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
Chris@0 15671
Chris@0 15672 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
Chris@0 15673 case $lt_prog_compiler_pic_GCJ in
Chris@0 15674 "" | " "*) ;;
Chris@0 15675 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
Chris@0 15676 esac
Chris@0 15677 else
Chris@0 15678 lt_prog_compiler_pic_GCJ=
Chris@0 15679 lt_prog_compiler_can_build_shared_GCJ=no
Chris@0 15680 fi
Chris@0 15681
Chris@0 15682 fi
Chris@0 15683 case "$host_os" in
Chris@0 15684 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@0 15685 *djgpp*)
Chris@0 15686 lt_prog_compiler_pic_GCJ=
Chris@0 15687 ;;
Chris@0 15688 *)
Chris@0 15689 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
Chris@0 15690 ;;
Chris@0 15691 esac
Chris@0 15692
Chris@0 15693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@0 15694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
Chris@0 15695 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
Chris@0 15696 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 15697 else
Chris@0 15698 lt_cv_prog_compiler_c_o_GCJ=no
Chris@0 15699 $rm -r conftest 2>/dev/null
Chris@0 15700 mkdir conftest
Chris@0 15701 cd conftest
Chris@0 15702 mkdir out
Chris@0 15703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 15704
Chris@0 15705 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@0 15706 # Insert the option either (1) after the last *FLAGS variable, or
Chris@0 15707 # (2) before a word containing "conftest.", or (3) at the end.
Chris@0 15708 # Note that $ac_compile itself does not contain backslashes and begins
Chris@0 15709 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@0 15710 lt_compile=`echo "$ac_compile" | $SED \
Chris@0 15711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
Chris@0 15712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@0 15713 -e 's:$: $lt_compiler_flag:'`
Chris@0 15714 (eval echo "\"\$as_me:15714: $lt_compile\"" >&5)
Chris@0 15715 (eval "$lt_compile" 2>out/conftest.err)
Chris@0 15716 ac_status=$?
Chris@0 15717 cat out/conftest.err >&5
Chris@0 15718 echo "$as_me:15718: \$? = $ac_status" >&5
Chris@0 15719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@0 15720 then
Chris@0 15721 # The compiler can only warn and ignore the option if not recognized
Chris@0 15722 # So say no if there are warnings
Chris@0 15723 if test ! -s out/conftest.err; then
Chris@0 15724 lt_cv_prog_compiler_c_o_GCJ=yes
Chris@0 15725 fi
Chris@0 15726 fi
Chris@0 15727 chmod u+w .
Chris@0 15728 $rm conftest*
Chris@0 15729 # SGI C++ compiler will create directory out/ii_files/ for
Chris@0 15730 # template instantiation
Chris@0 15731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
Chris@0 15732 $rm out/* && rmdir out
Chris@0 15733 cd ..
Chris@0 15734 rmdir conftest
Chris@0 15735 $rm conftest*
Chris@0 15736
Chris@0 15737 fi
Chris@0 15738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
Chris@0 15739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
Chris@0 15740
Chris@0 15741
Chris@0 15742 hard_links="nottested"
Chris@0 15743 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
Chris@0 15744 # do not overwrite the value of need_locks provided by the user
Chris@0 15745 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Chris@0 15746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
Chris@0 15747 hard_links=yes
Chris@0 15748 $rm conftest*
Chris@0 15749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@0 15750 touch conftest.a
Chris@0 15751 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@0 15752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@0 15753 echo "$as_me:$LINENO: result: $hard_links" >&5
Chris@0 15754 echo "${ECHO_T}$hard_links" >&6
Chris@0 15755 if test "$hard_links" = no; then
Chris@0 15756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@0 15757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@0 15758 need_locks=warn
Chris@0 15759 fi
Chris@0 15760 else
Chris@0 15761 need_locks=no
Chris@0 15762 fi
Chris@0 15763
Chris@0 15764 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@0 15765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
Chris@0 15766
Chris@0 15767 runpath_var=
Chris@0 15768 allow_undefined_flag_GCJ=
Chris@0 15769 enable_shared_with_static_runtimes_GCJ=no
Chris@0 15770 archive_cmds_GCJ=
Chris@0 15771 archive_expsym_cmds_GCJ=
Chris@0 15772 old_archive_From_new_cmds_GCJ=
Chris@0 15773 old_archive_from_expsyms_cmds_GCJ=
Chris@0 15774 export_dynamic_flag_spec_GCJ=
Chris@0 15775 whole_archive_flag_spec_GCJ=
Chris@0 15776 thread_safe_flag_spec_GCJ=
Chris@0 15777 hardcode_libdir_flag_spec_GCJ=
Chris@0 15778 hardcode_libdir_flag_spec_ld_GCJ=
Chris@0 15779 hardcode_libdir_separator_GCJ=
Chris@0 15780 hardcode_direct_GCJ=no
Chris@0 15781 hardcode_minus_L_GCJ=no
Chris@0 15782 hardcode_shlibpath_var_GCJ=unsupported
Chris@0 15783 link_all_deplibs_GCJ=unknown
Chris@0 15784 hardcode_automatic_GCJ=no
Chris@0 15785 module_cmds_GCJ=
Chris@0 15786 module_expsym_cmds_GCJ=
Chris@0 15787 always_export_symbols_GCJ=no
Chris@0 15788 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 15789 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@0 15790 # included in the symbol list
Chris@0 15791 include_expsyms_GCJ=
Chris@0 15792 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@0 15793 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@0 15794 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@0 15795 # as well as any symbol that contains `d'.
Chris@0 15796 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
Chris@0 15797 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@0 15798 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@0 15799 # the symbol is explicitly referenced. Since portable code cannot
Chris@0 15800 # rely on this symbol name, it's probably fine to never include it in
Chris@0 15801 # preloaded symbol tables.
Chris@0 15802 extract_expsyms_cmds=
Chris@0 15803
Chris@0 15804 case $host_os in
Chris@0 15805 cygwin* | mingw* | pw32*)
Chris@0 15806 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@0 15807 # When not using gcc, we currently assume that we are using
Chris@0 15808 # Microsoft Visual C++.
Chris@0 15809 if test "$GCC" != yes; then
Chris@0 15810 with_gnu_ld=no
Chris@0 15811 fi
Chris@0 15812 ;;
Chris@0 15813 openbsd*)
Chris@0 15814 with_gnu_ld=no
Chris@0 15815 ;;
Chris@0 15816 esac
Chris@0 15817
Chris@0 15818 ld_shlibs_GCJ=yes
Chris@0 15819 if test "$with_gnu_ld" = yes; then
Chris@0 15820 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@0 15821 wlarc='${wl}'
Chris@0 15822
Chris@0 15823 # See if GNU ld supports shared libraries.
Chris@0 15824 case $host_os in
Chris@0 15825 aix3* | aix4* | aix5*)
Chris@0 15826 # On AIX/PPC, the GNU linker is very broken
Chris@0 15827 if test "$host_cpu" != ia64; then
Chris@0 15828 ld_shlibs_GCJ=no
Chris@0 15829 cat <<EOF 1>&2
Chris@0 15830
Chris@0 15831 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
Chris@0 15832 *** to be unable to reliably create shared libraries on AIX.
Chris@0 15833 *** Therefore, libtool is disabling shared libraries support. If you
Chris@0 15834 *** really care for shared libraries, you may want to modify your PATH
Chris@0 15835 *** so that a non-GNU linker is found, and then restart.
Chris@0 15836
Chris@0 15837 EOF
Chris@0 15838 fi
Chris@0 15839 ;;
Chris@0 15840
Chris@0 15841 amigaos*)
Chris@0 15842 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)'
Chris@0 15843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 15844 hardcode_minus_L_GCJ=yes
Chris@0 15845
Chris@0 15846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
Chris@0 15847 # that the semantics of dynamic libraries on AmigaOS, at least up
Chris@0 15848 # to version 4, is to share data among multiple programs linked
Chris@0 15849 # with the same dynamic library. Since this doesn't match the
Chris@0 15850 # behavior of shared libraries on other platforms, we can't use
Chris@0 15851 # them.
Chris@0 15852 ld_shlibs_GCJ=no
Chris@0 15853 ;;
Chris@0 15854
Chris@0 15855 beos*)
Chris@0 15856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 15857 allow_undefined_flag_GCJ=unsupported
Chris@0 15858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@0 15859 # support --undefined. This deserves some investigation. FIXME
Chris@0 15860 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 15861 else
Chris@0 15862 ld_shlibs_GCJ=no
Chris@0 15863 fi
Chris@0 15864 ;;
Chris@0 15865
Chris@0 15866 cygwin* | mingw* | pw32*)
Chris@0 15867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
Chris@0 15868 # as there is no search path for DLLs.
Chris@0 15869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 15870 allow_undefined_flag_GCJ=unsupported
Chris@0 15871 always_export_symbols_GCJ=no
Chris@0 15872 enable_shared_with_static_runtimes_GCJ=yes
Chris@0 15873 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
Chris@0 15874
Chris@0 15875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Chris@0 15876 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Chris@0 15877 # If the export-symbols file already is a .def file (1st line
Chris@0 15878 # is EXPORTS), use it as is; otherwise, prepend...
Chris@0 15879 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@0 15880 cp $export_symbols $output_objdir/$soname.def;
Chris@0 15881 else
Chris@0 15882 echo EXPORTS > $output_objdir/$soname.def;
Chris@0 15883 cat $export_symbols >> $output_objdir/$soname.def;
Chris@0 15884 fi~
Chris@0 15885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Chris@0 15886 else
Chris@0 15887 ld_shlibs=no
Chris@0 15888 fi
Chris@0 15889 ;;
Chris@0 15890
Chris@0 15891 netbsd* | knetbsd*-gnu)
Chris@0 15892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 15893 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@0 15894 wlarc=
Chris@0 15895 else
Chris@0 15896 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 15897 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 15898 fi
Chris@0 15899 ;;
Chris@0 15900
Chris@0 15901 solaris* | sysv5*)
Chris@0 15902 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
Chris@0 15903 ld_shlibs_GCJ=no
Chris@0 15904 cat <<EOF 1>&2
Chris@0 15905
Chris@0 15906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@0 15907 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@0 15908 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@0 15909 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@0 15910 *** your PATH or compiler configuration so that the native linker is
Chris@0 15911 *** used, and then restart.
Chris@0 15912
Chris@0 15913 EOF
Chris@0 15914 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 15915 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 15916 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 15917 else
Chris@0 15918 ld_shlibs_GCJ=no
Chris@0 15919 fi
Chris@0 15920 ;;
Chris@0 15921
Chris@0 15922 sunos4*)
Chris@0 15923 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 15924 wlarc=
Chris@0 15925 hardcode_direct_GCJ=yes
Chris@0 15926 hardcode_shlibpath_var_GCJ=no
Chris@0 15927 ;;
Chris@0 15928
Chris@0 15929 linux*)
Chris@0 15930 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
Chris@0 15931 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 15932 archive_cmds_GCJ="$tmp_archive_cmds"
Chris@0 15933 supports_anon_versioning=no
Chris@0 15934 case `$LD -v 2>/dev/null` in
Chris@0 15935 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@0 15936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@0 15937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@0 15938 *\ 2.11.*) ;; # other 2.11 versions
Chris@0 15939 *) supports_anon_versioning=yes ;;
Chris@0 15940 esac
Chris@0 15941 if test $supports_anon_versioning = yes; then
Chris@0 15942 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
Chris@0 15943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@0 15944 $echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@0 15945 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@0 15946 else
Chris@0 15947 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
Chris@0 15948 fi
Chris@0 15949 else
Chris@0 15950 ld_shlibs_GCJ=no
Chris@0 15951 fi
Chris@0 15952 ;;
Chris@0 15953
Chris@0 15954 *)
Chris@0 15955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Chris@0 15956 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@0 15957 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@0 15958 else
Chris@0 15959 ld_shlibs_GCJ=no
Chris@0 15960 fi
Chris@0 15961 ;;
Chris@0 15962 esac
Chris@0 15963
Chris@0 15964 if test "$ld_shlibs_GCJ" = yes; then
Chris@0 15965 runpath_var=LD_RUN_PATH
Chris@0 15966 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
Chris@0 15967 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
Chris@0 15968 # ancient GNU ld didn't support --whole-archive et. al.
Chris@0 15969 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
Chris@0 15970 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@0 15971 else
Chris@0 15972 whole_archive_flag_spec_GCJ=
Chris@0 15973 fi
Chris@0 15974 fi
Chris@0 15975 else
Chris@0 15976 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@0 15977 case $host_os in
Chris@0 15978 aix3*)
Chris@0 15979 allow_undefined_flag_GCJ=unsupported
Chris@0 15980 always_export_symbols_GCJ=yes
Chris@0 15981 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'
Chris@0 15982 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@0 15983 # are no directories specified by -L.
Chris@0 15984 hardcode_minus_L_GCJ=yes
Chris@0 15985 if test "$GCC" = yes && test -z "$link_static_flag"; then
Chris@0 15986 # Neither direct hardcoding nor static linking is supported with a
Chris@0 15987 # broken collect2.
Chris@0 15988 hardcode_direct_GCJ=unsupported
Chris@0 15989 fi
Chris@0 15990 ;;
Chris@0 15991
Chris@0 15992 aix4* | aix5*)
Chris@0 15993 if test "$host_cpu" = ia64; then
Chris@0 15994 # On IA64, the linker does run time linking by default, so we don't
Chris@0 15995 # have to do anything special.
Chris@0 15996 aix_use_runtimelinking=no
Chris@0 15997 exp_sym_flag='-Bexport'
Chris@0 15998 no_entry_flag=""
Chris@0 15999 else
Chris@0 16000 # If we're using GNU nm, then we don't want the "-C" option.
Chris@0 16001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@0 16002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
Chris@0 16003 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'
Chris@0 16004 else
Chris@0 16005 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'
Chris@0 16006 fi
Chris@0 16007 aix_use_runtimelinking=no
Chris@0 16008
Chris@0 16009 # Test if we are trying to use run time linking or normal
Chris@0 16010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@0 16011 # need to do runtime linking.
Chris@0 16012 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
Chris@0 16013 for ld_flag in $LDFLAGS; do
Chris@0 16014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@0 16015 aix_use_runtimelinking=yes
Chris@0 16016 break
Chris@0 16017 fi
Chris@0 16018 done
Chris@0 16019 esac
Chris@0 16020
Chris@0 16021 exp_sym_flag='-bexport'
Chris@0 16022 no_entry_flag='-bnoentry'
Chris@0 16023 fi
Chris@0 16024
Chris@0 16025 # When large executables or shared objects are built, AIX ld can
Chris@0 16026 # have problems creating the table of contents. If linking a library
Chris@0 16027 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@0 16028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@0 16029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@0 16030
Chris@0 16031 archive_cmds_GCJ=''
Chris@0 16032 hardcode_direct_GCJ=yes
Chris@0 16033 hardcode_libdir_separator_GCJ=':'
Chris@0 16034 link_all_deplibs_GCJ=yes
Chris@0 16035
Chris@0 16036 if test "$GCC" = yes; then
Chris@0 16037 case $host_os in aix4.012|aix4.012.*)
Chris@0 16038 # We only want to do this on AIX 4.2 and lower, the check
Chris@0 16039 # below for broken collect2 doesn't work under 4.3+
Chris@0 16040 collect2name=`${CC} -print-prog-name=collect2`
Chris@0 16041 if test -f "$collect2name" && \
Chris@0 16042 strings "$collect2name" | grep resolve_lib_name >/dev/null
Chris@0 16043 then
Chris@0 16044 # We have reworked collect2
Chris@0 16045 hardcode_direct_GCJ=yes
Chris@0 16046 else
Chris@0 16047 # We have old collect2
Chris@0 16048 hardcode_direct_GCJ=unsupported
Chris@0 16049 # It fails to find uninstalled libraries when the uninstalled
Chris@0 16050 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@0 16051 # to unsupported forces relinking
Chris@0 16052 hardcode_minus_L_GCJ=yes
Chris@0 16053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 16054 hardcode_libdir_separator_GCJ=
Chris@0 16055 fi
Chris@0 16056 esac
Chris@0 16057 shared_flag='-shared'
Chris@0 16058 else
Chris@0 16059 # not using gcc
Chris@0 16060 if test "$host_cpu" = ia64; then
Chris@0 16061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@0 16062 # chokes on -Wl,-G. The following line is correct:
Chris@0 16063 shared_flag='-G'
Chris@0 16064 else
Chris@0 16065 if test "$aix_use_runtimelinking" = yes; then
Chris@0 16066 shared_flag='${wl}-G'
Chris@0 16067 else
Chris@0 16068 shared_flag='${wl}-bM:SRE'
Chris@0 16069 fi
Chris@0 16070 fi
Chris@0 16071 fi
Chris@0 16072
Chris@0 16073 # It seems that -bexpall does not export symbols beginning with
Chris@0 16074 # underscore (_), so it is better to generate a list of symbols to export.
Chris@0 16075 always_export_symbols_GCJ=yes
Chris@0 16076 if test "$aix_use_runtimelinking" = yes; then
Chris@0 16077 # Warning - without using the other runtime loading flags (-brtl),
Chris@0 16078 # -berok will link without error, but may produce a broken library.
Chris@0 16079 allow_undefined_flag_GCJ='-berok'
Chris@0 16080 # Determine the default libpath from the value encoded in an empty executable.
Chris@0 16081 cat >conftest.$ac_ext <<_ACEOF
Chris@0 16082 /* confdefs.h. */
Chris@0 16083 _ACEOF
Chris@0 16084 cat confdefs.h >>conftest.$ac_ext
Chris@0 16085 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 16086 /* end confdefs.h. */
Chris@0 16087
Chris@0 16088 int
Chris@0 16089 main ()
Chris@0 16090 {
Chris@0 16091
Chris@0 16092 ;
Chris@0 16093 return 0;
Chris@0 16094 }
Chris@0 16095 _ACEOF
Chris@0 16096 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 16098 (eval $ac_link) 2>conftest.er1
Chris@0 16099 ac_status=$?
Chris@0 16100 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 16101 rm -f conftest.er1
Chris@0 16102 cat conftest.err >&5
Chris@0 16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 16104 (exit $ac_status); } &&
Chris@0 16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 16107 (eval $ac_try) 2>&5
Chris@0 16108 ac_status=$?
Chris@0 16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 16110 (exit $ac_status); }; } &&
Chris@0 16111 { ac_try='test -s conftest$ac_exeext'
Chris@0 16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 16113 (eval $ac_try) 2>&5
Chris@0 16114 ac_status=$?
Chris@0 16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 16116 (exit $ac_status); }; }; then
Chris@0 16117
Chris@0 16118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
Chris@0 16119 }'`
Chris@0 16120 # Check for a 64-bit object if we didn't find anything.
Chris@0 16121 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; }
Chris@0 16122 }'`; fi
Chris@0 16123 else
Chris@0 16124 echo "$as_me: failed program was:" >&5
Chris@0 16125 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 16126
Chris@0 16127 fi
Chris@0 16128 rm -f conftest.err conftest.$ac_objext \
Chris@0 16129 conftest$ac_exeext conftest.$ac_ext
Chris@0 16130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Chris@0 16131
Chris@0 16132 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@0 16133 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"
Chris@0 16134 else
Chris@0 16135 if test "$host_cpu" = ia64; then
Chris@0 16136 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
Chris@0 16137 allow_undefined_flag_GCJ="-z nodefs"
Chris@0 16138 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"
Chris@0 16139 else
Chris@0 16140 # Determine the default libpath from the value encoded in an empty executable.
Chris@0 16141 cat >conftest.$ac_ext <<_ACEOF
Chris@0 16142 /* confdefs.h. */
Chris@0 16143 _ACEOF
Chris@0 16144 cat confdefs.h >>conftest.$ac_ext
Chris@0 16145 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 16146 /* end confdefs.h. */
Chris@0 16147
Chris@0 16148 int
Chris@0 16149 main ()
Chris@0 16150 {
Chris@0 16151
Chris@0 16152 ;
Chris@0 16153 return 0;
Chris@0 16154 }
Chris@0 16155 _ACEOF
Chris@0 16156 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 16158 (eval $ac_link) 2>conftest.er1
Chris@0 16159 ac_status=$?
Chris@0 16160 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 16161 rm -f conftest.er1
Chris@0 16162 cat conftest.err >&5
Chris@0 16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 16164 (exit $ac_status); } &&
Chris@0 16165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 16167 (eval $ac_try) 2>&5
Chris@0 16168 ac_status=$?
Chris@0 16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 16170 (exit $ac_status); }; } &&
Chris@0 16171 { ac_try='test -s conftest$ac_exeext'
Chris@0 16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 16173 (eval $ac_try) 2>&5
Chris@0 16174 ac_status=$?
Chris@0 16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 16176 (exit $ac_status); }; }; then
Chris@0 16177
Chris@0 16178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
Chris@0 16179 }'`
Chris@0 16180 # Check for a 64-bit object if we didn't find anything.
Chris@0 16181 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; }
Chris@0 16182 }'`; fi
Chris@0 16183 else
Chris@0 16184 echo "$as_me: failed program was:" >&5
Chris@0 16185 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 16186
Chris@0 16187 fi
Chris@0 16188 rm -f conftest.err conftest.$ac_objext \
Chris@0 16189 conftest$ac_exeext conftest.$ac_ext
Chris@0 16190 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Chris@0 16191
Chris@0 16192 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@0 16193 # Warning - without using the other run time loading flags,
Chris@0 16194 # -berok will link without error, but may produce a broken library.
Chris@0 16195 no_undefined_flag_GCJ=' ${wl}-bernotok'
Chris@0 16196 allow_undefined_flag_GCJ=' ${wl}-berok'
Chris@0 16197 # -bexpall does not export symbols beginning with underscore (_)
Chris@0 16198 always_export_symbols_GCJ=yes
Chris@0 16199 # Exported symbols can be pulled into shared objects from archives
Chris@0 16200 whole_archive_flag_spec_GCJ=' '
Chris@0 16201 archive_cmds_need_lc_GCJ=yes
Chris@0 16202 # This is similar to how AIX traditionally builds it's shared libraries.
Chris@0 16203 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'
Chris@0 16204 fi
Chris@0 16205 fi
Chris@0 16206 ;;
Chris@0 16207
Chris@0 16208 amigaos*)
Chris@0 16209 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)'
Chris@0 16210 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 16211 hardcode_minus_L_GCJ=yes
Chris@0 16212 # see comment about different semantics on the GNU ld section
Chris@0 16213 ld_shlibs_GCJ=no
Chris@0 16214 ;;
Chris@0 16215
Chris@0 16216 bsdi4*)
Chris@0 16217 export_dynamic_flag_spec_GCJ=-rdynamic
Chris@0 16218 ;;
Chris@0 16219
Chris@0 16220 cygwin* | mingw* | pw32*)
Chris@0 16221 # When not using gcc, we currently assume that we are using
Chris@0 16222 # Microsoft Visual C++.
Chris@0 16223 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@0 16224 # no search path for DLLs.
Chris@0 16225 hardcode_libdir_flag_spec_GCJ=' '
Chris@0 16226 allow_undefined_flag_GCJ=unsupported
Chris@0 16227 # Tell ltmain to make .lib files, not .a files.
Chris@0 16228 libext=lib
Chris@0 16229 # Tell ltmain to make .dll files, not .so files.
Chris@0 16230 shrext=".dll"
Chris@0 16231 # FIXME: Setting linknames here is a bad hack.
Chris@0 16232 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@0 16233 # The linker will automatically build a .lib file if we build a DLL.
Chris@0 16234 old_archive_From_new_cmds_GCJ='true'
Chris@0 16235 # FIXME: Should let the user specify the lib program.
Chris@0 16236 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Chris@0 16237 fix_srcfile_path='`cygpath -w "$srcfile"`'
Chris@0 16238 enable_shared_with_static_runtimes_GCJ=yes
Chris@0 16239 ;;
Chris@0 16240
Chris@0 16241 darwin* | rhapsody*)
Chris@0 16242 if test "$GXX" = yes ; then
Chris@0 16243 archive_cmds_need_lc_GCJ=no
Chris@0 16244 case "$host_os" in
Chris@0 16245 rhapsody* | darwin1.[012])
Chris@0 16246 allow_undefined_flag_GCJ='-undefined suppress'
Chris@0 16247 ;;
Chris@0 16248 *) # Darwin 1.3 on
Chris@0 16249 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
Chris@0 16250 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
Chris@0 16251 else
Chris@0 16252 case ${MACOSX_DEPLOYMENT_TARGET} in
Chris@0 16253 10.[012])
Chris@0 16254 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
Chris@0 16255 ;;
Chris@0 16256 10.*)
Chris@0 16257 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
Chris@0 16258 ;;
Chris@0 16259 esac
Chris@0 16260 fi
Chris@0 16261 ;;
Chris@0 16262 esac
Chris@0 16263 lt_int_apple_cc_single_mod=no
Chris@0 16264 output_verbose_link_cmd='echo'
Chris@0 16265 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
Chris@0 16266 lt_int_apple_cc_single_mod=yes
Chris@0 16267 fi
Chris@0 16268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Chris@0 16269 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Chris@0 16270 else
Chris@0 16271 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'
Chris@0 16272 fi
Chris@0 16273 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Chris@0 16274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Chris@0 16275 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Chris@0 16276 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}'
Chris@0 16277 else
Chris@0 16278 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}'
Chris@0 16279 fi
Chris@0 16280 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}'
Chris@0 16281 hardcode_direct_GCJ=no
Chris@0 16282 hardcode_automatic_GCJ=yes
Chris@0 16283 hardcode_shlibpath_var_GCJ=unsupported
Chris@0 16284 whole_archive_flag_spec_GCJ='-all_load $convenience'
Chris@0 16285 link_all_deplibs_GCJ=yes
Chris@0 16286 else
Chris@0 16287 ld_shlibs_GCJ=no
Chris@0 16288 fi
Chris@0 16289 ;;
Chris@0 16290
Chris@0 16291 dgux*)
Chris@0 16292 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 16294 hardcode_shlibpath_var_GCJ=no
Chris@0 16295 ;;
Chris@0 16296
Chris@0 16297 freebsd1*)
Chris@0 16298 ld_shlibs_GCJ=no
Chris@0 16299 ;;
Chris@0 16300
Chris@0 16301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@0 16302 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@0 16303 # does not break anything, and helps significantly (at the cost of a little
Chris@0 16304 # extra space).
Chris@0 16305 freebsd2.2*)
Chris@0 16306 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@0 16307 hardcode_libdir_flag_spec_GCJ='-R$libdir'
Chris@0 16308 hardcode_direct_GCJ=yes
Chris@0 16309 hardcode_shlibpath_var_GCJ=no
Chris@0 16310 ;;
Chris@0 16311
Chris@0 16312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@0 16313 freebsd2*)
Chris@0 16314 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16315 hardcode_direct_GCJ=yes
Chris@0 16316 hardcode_minus_L_GCJ=yes
Chris@0 16317 hardcode_shlibpath_var_GCJ=no
Chris@0 16318 ;;
Chris@0 16319
Chris@0 16320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@0 16321 freebsd* | kfreebsd*-gnu)
Chris@0 16322 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16323 hardcode_libdir_flag_spec_GCJ='-R$libdir'
Chris@0 16324 hardcode_direct_GCJ=yes
Chris@0 16325 hardcode_shlibpath_var_GCJ=no
Chris@0 16326 ;;
Chris@0 16327
Chris@0 16328 hpux9*)
Chris@0 16329 if test "$GCC" = yes; then
Chris@0 16330 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'
Chris@0 16331 else
Chris@0 16332 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'
Chris@0 16333 fi
Chris@0 16334 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
Chris@0 16335 hardcode_libdir_separator_GCJ=:
Chris@0 16336 hardcode_direct_GCJ=yes
Chris@0 16337
Chris@0 16338 # hardcode_minus_L: Not really in the search PATH,
Chris@0 16339 # but as the default location of the library.
Chris@0 16340 hardcode_minus_L_GCJ=yes
Chris@0 16341 export_dynamic_flag_spec_GCJ='${wl}-E'
Chris@0 16342 ;;
Chris@0 16343
Chris@0 16344 hpux10* | hpux11*)
Chris@0 16345 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Chris@0 16346 case "$host_cpu" in
Chris@0 16347 hppa*64*|ia64*)
Chris@0 16348 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16349 ;;
Chris@0 16350 *)
Chris@0 16351 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16352 ;;
Chris@0 16353 esac
Chris@0 16354 else
Chris@0 16355 case "$host_cpu" in
Chris@0 16356 hppa*64*|ia64*)
Chris@0 16357 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16358 ;;
Chris@0 16359 *)
Chris@0 16360 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16361 ;;
Chris@0 16362 esac
Chris@0 16363 fi
Chris@0 16364 if test "$with_gnu_ld" = no; then
Chris@0 16365 case "$host_cpu" in
Chris@0 16366 hppa*64*)
Chris@0 16367 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
Chris@0 16368 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
Chris@0 16369 hardcode_libdir_separator_GCJ=:
Chris@0 16370 hardcode_direct_GCJ=no
Chris@0 16371 hardcode_shlibpath_var_GCJ=no
Chris@0 16372 ;;
Chris@0 16373 ia64*)
Chris@0 16374 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 16375 hardcode_direct_GCJ=no
Chris@0 16376 hardcode_shlibpath_var_GCJ=no
Chris@0 16377
Chris@0 16378 # hardcode_minus_L: Not really in the search PATH,
Chris@0 16379 # but as the default location of the library.
Chris@0 16380 hardcode_minus_L_GCJ=yes
Chris@0 16381 ;;
Chris@0 16382 *)
Chris@0 16383 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
Chris@0 16384 hardcode_libdir_separator_GCJ=:
Chris@0 16385 hardcode_direct_GCJ=yes
Chris@0 16386 export_dynamic_flag_spec_GCJ='${wl}-E'
Chris@0 16387
Chris@0 16388 # hardcode_minus_L: Not really in the search PATH,
Chris@0 16389 # but as the default location of the library.
Chris@0 16390 hardcode_minus_L_GCJ=yes
Chris@0 16391 ;;
Chris@0 16392 esac
Chris@0 16393 fi
Chris@0 16394 ;;
Chris@0 16395
Chris@0 16396 irix5* | irix6* | nonstopux*)
Chris@0 16397 if test "$GCC" = yes; then
Chris@0 16398 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'
Chris@0 16399 else
Chris@0 16400 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'
Chris@0 16401 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
Chris@0 16402 fi
Chris@0 16403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
Chris@0 16404 hardcode_libdir_separator_GCJ=:
Chris@0 16405 link_all_deplibs_GCJ=yes
Chris@0 16406 ;;
Chris@0 16407
Chris@0 16408 netbsd* | knetbsd*-gnu)
Chris@0 16409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 16410 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@0 16411 else
Chris@0 16412 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@0 16413 fi
Chris@0 16414 hardcode_libdir_flag_spec_GCJ='-R$libdir'
Chris@0 16415 hardcode_direct_GCJ=yes
Chris@0 16416 hardcode_shlibpath_var_GCJ=no
Chris@0 16417 ;;
Chris@0 16418
Chris@0 16419 newsos6)
Chris@0 16420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16421 hardcode_direct_GCJ=yes
Chris@0 16422 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
Chris@0 16423 hardcode_libdir_separator_GCJ=:
Chris@0 16424 hardcode_shlibpath_var_GCJ=no
Chris@0 16425 ;;
Chris@0 16426
Chris@0 16427 openbsd*)
Chris@0 16428 hardcode_direct_GCJ=yes
Chris@0 16429 hardcode_shlibpath_var_GCJ=no
Chris@0 16430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@0 16431 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
Chris@0 16433 export_dynamic_flag_spec_GCJ='${wl}-E'
Chris@0 16434 else
Chris@0 16435 case $host_os in
Chris@0 16436 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@0 16437 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16438 hardcode_libdir_flag_spec_GCJ='-R$libdir'
Chris@0 16439 ;;
Chris@0 16440 *)
Chris@0 16441 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
Chris@0 16443 ;;
Chris@0 16444 esac
Chris@0 16445 fi
Chris@0 16446 ;;
Chris@0 16447
Chris@0 16448 os2*)
Chris@0 16449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 16450 hardcode_minus_L_GCJ=yes
Chris@0 16451 allow_undefined_flag_GCJ=unsupported
Chris@0 16452 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'
Chris@0 16453 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@0 16454 ;;
Chris@0 16455
Chris@0 16456 osf3*)
Chris@0 16457 if test "$GCC" = yes; then
Chris@0 16458 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 16459 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'
Chris@0 16460 else
Chris@0 16461 allow_undefined_flag_GCJ=' -expect_unresolved \*'
Chris@0 16462 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'
Chris@0 16463 fi
Chris@0 16464 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
Chris@0 16465 hardcode_libdir_separator_GCJ=:
Chris@0 16466 ;;
Chris@0 16467
Chris@0 16468 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@0 16469 if test "$GCC" = yes; then
Chris@0 16470 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
Chris@0 16471 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'
Chris@0 16472 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
Chris@0 16473 else
Chris@0 16474 allow_undefined_flag_GCJ=' -expect_unresolved \*'
Chris@0 16475 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'
Chris@0 16476 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~
Chris@0 16477 $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'
Chris@0 16478
Chris@0 16479 # Both c and cxx compiler support -rpath directly
Chris@0 16480 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
Chris@0 16481 fi
Chris@0 16482 hardcode_libdir_separator_GCJ=:
Chris@0 16483 ;;
Chris@0 16484
Chris@0 16485 sco3.2v5*)
Chris@0 16486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16487 hardcode_shlibpath_var_GCJ=no
Chris@0 16488 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
Chris@0 16489 runpath_var=LD_RUN_PATH
Chris@0 16490 hardcode_runpath_var=yes
Chris@0 16491 ;;
Chris@0 16492
Chris@0 16493 solaris*)
Chris@0 16494 no_undefined_flag_GCJ=' -z text'
Chris@0 16495 if test "$GCC" = yes; then
Chris@0 16496 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16497 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 16498 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
Chris@0 16499 else
Chris@0 16500 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16501 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 16502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Chris@0 16503 fi
Chris@0 16504 hardcode_libdir_flag_spec_GCJ='-R$libdir'
Chris@0 16505 hardcode_shlibpath_var_GCJ=no
Chris@0 16506 case $host_os in
Chris@0 16507 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@0 16508 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@0 16509 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
Chris@0 16510 esac
Chris@0 16511 link_all_deplibs_GCJ=yes
Chris@0 16512 ;;
Chris@0 16513
Chris@0 16514 sunos4*)
Chris@0 16515 if test "x$host_vendor" = xsequent; then
Chris@0 16516 # Use $CC to link under sequent, because it throws in some extra .o
Chris@0 16517 # files that make .init and .fini sections work.
Chris@0 16518 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16519 else
Chris@0 16520 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16521 fi
Chris@0 16522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 16523 hardcode_direct_GCJ=yes
Chris@0 16524 hardcode_minus_L_GCJ=yes
Chris@0 16525 hardcode_shlibpath_var_GCJ=no
Chris@0 16526 ;;
Chris@0 16527
Chris@0 16528 sysv4)
Chris@0 16529 case $host_vendor in
Chris@0 16530 sni)
Chris@0 16531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16532 hardcode_direct_GCJ=yes # is this really true???
Chris@0 16533 ;;
Chris@0 16534 siemens)
Chris@0 16535 ## LD is ld it makes a PLAMLIB
Chris@0 16536 ## CC just makes a GrossModule.
Chris@0 16537 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16538 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
Chris@0 16539 hardcode_direct_GCJ=no
Chris@0 16540 ;;
Chris@0 16541 motorola)
Chris@0 16542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16543 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
Chris@0 16544 ;;
Chris@0 16545 esac
Chris@0 16546 runpath_var='LD_RUN_PATH'
Chris@0 16547 hardcode_shlibpath_var_GCJ=no
Chris@0 16548 ;;
Chris@0 16549
Chris@0 16550 sysv4.3*)
Chris@0 16551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16552 hardcode_shlibpath_var_GCJ=no
Chris@0 16553 export_dynamic_flag_spec_GCJ='-Bexport'
Chris@0 16554 ;;
Chris@0 16555
Chris@0 16556 sysv4*MP*)
Chris@0 16557 if test -d /usr/nec; then
Chris@0 16558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16559 hardcode_shlibpath_var_GCJ=no
Chris@0 16560 runpath_var=LD_RUN_PATH
Chris@0 16561 hardcode_runpath_var=yes
Chris@0 16562 ld_shlibs_GCJ=yes
Chris@0 16563 fi
Chris@0 16564 ;;
Chris@0 16565
Chris@0 16566 sysv4.2uw2*)
Chris@0 16567 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16568 hardcode_direct_GCJ=yes
Chris@0 16569 hardcode_minus_L_GCJ=no
Chris@0 16570 hardcode_shlibpath_var_GCJ=no
Chris@0 16571 hardcode_runpath_var=yes
Chris@0 16572 runpath_var=LD_RUN_PATH
Chris@0 16573 ;;
Chris@0 16574
Chris@0 16575 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
Chris@0 16576 no_undefined_flag_GCJ='${wl}-z ${wl}text'
Chris@0 16577 if test "$GCC" = yes; then
Chris@0 16578 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16579 else
Chris@0 16580 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@0 16581 fi
Chris@0 16582 runpath_var='LD_RUN_PATH'
Chris@0 16583 hardcode_shlibpath_var_GCJ=no
Chris@0 16584 ;;
Chris@0 16585
Chris@0 16586 sysv5*)
Chris@0 16587 no_undefined_flag_GCJ=' -z text'
Chris@0 16588 # $CC -shared without GNU ld will not create a library from C++
Chris@0 16589 # object files and a static libstdc++, better avoid it by now
Chris@0 16590 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16591 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Chris@0 16592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Chris@0 16593 hardcode_libdir_flag_spec_GCJ=
Chris@0 16594 hardcode_shlibpath_var_GCJ=no
Chris@0 16595 runpath_var='LD_RUN_PATH'
Chris@0 16596 ;;
Chris@0 16597
Chris@0 16598 uts4*)
Chris@0 16599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@0 16600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
Chris@0 16601 hardcode_shlibpath_var_GCJ=no
Chris@0 16602 ;;
Chris@0 16603
Chris@0 16604 *)
Chris@0 16605 ld_shlibs_GCJ=no
Chris@0 16606 ;;
Chris@0 16607 esac
Chris@0 16608 fi
Chris@0 16609
Chris@0 16610 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
Chris@0 16611 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
Chris@0 16612 test "$ld_shlibs_GCJ" = no && can_build_shared=no
Chris@0 16613
Chris@0 16614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@0 16615 if test "$GCC" = yes; then
Chris@0 16616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@0 16617 fi
Chris@0 16618
Chris@0 16619 #
Chris@0 16620 # Do we need to explicitly link libc?
Chris@0 16621 #
Chris@0 16622 case "x$archive_cmds_need_lc_GCJ" in
Chris@0 16623 x|xyes)
Chris@0 16624 # Assume -lc should be added
Chris@0 16625 archive_cmds_need_lc_GCJ=yes
Chris@0 16626
Chris@0 16627 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@0 16628 case $archive_cmds_GCJ in
Chris@0 16629 *'~'*)
Chris@0 16630 # FIXME: we may have to deal with multi-command sequences.
Chris@0 16631 ;;
Chris@0 16632 '$CC '*)
Chris@0 16633 # Test whether the compiler implicitly links with -lc since on some
Chris@0 16634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@0 16635 # to ld, don't add -lc before -lgcc.
Chris@0 16636 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Chris@0 16637 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
Chris@0 16638 $rm conftest*
Chris@0 16639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@0 16640
Chris@0 16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 16642 (eval $ac_compile) 2>&5
Chris@0 16643 ac_status=$?
Chris@0 16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 16645 (exit $ac_status); } 2>conftest.err; then
Chris@0 16646 soname=conftest
Chris@0 16647 lib=conftest
Chris@0 16648 libobjs=conftest.$ac_objext
Chris@0 16649 deplibs=
Chris@0 16650 wl=$lt_prog_compiler_wl_GCJ
Chris@0 16651 compiler_flags=-v
Chris@0 16652 linker_flags=-v
Chris@0 16653 verstring=
Chris@0 16654 output_objdir=.
Chris@0 16655 libname=conftest
Chris@0 16656 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
Chris@0 16657 allow_undefined_flag_GCJ=
Chris@0 16658 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
Chris@0 16659 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@0 16660 ac_status=$?
Chris@0 16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 16662 (exit $ac_status); }
Chris@0 16663 then
Chris@0 16664 archive_cmds_need_lc_GCJ=no
Chris@0 16665 else
Chris@0 16666 archive_cmds_need_lc_GCJ=yes
Chris@0 16667 fi
Chris@0 16668 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
Chris@0 16669 else
Chris@0 16670 cat conftest.err 1>&5
Chris@0 16671 fi
Chris@0 16672 $rm conftest*
Chris@0 16673 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
Chris@0 16674 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
Chris@0 16675 ;;
Chris@0 16676 esac
Chris@0 16677 fi
Chris@0 16678 ;;
Chris@0 16679 esac
Chris@0 16680
Chris@0 16681 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Chris@0 16682 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
Chris@0 16683 library_names_spec=
Chris@0 16684 libname_spec='lib$name'
Chris@0 16685 soname_spec=
Chris@0 16686 shrext=".so"
Chris@0 16687 postinstall_cmds=
Chris@0 16688 postuninstall_cmds=
Chris@0 16689 finish_cmds=
Chris@0 16690 finish_eval=
Chris@0 16691 shlibpath_var=
Chris@0 16692 shlibpath_overrides_runpath=unknown
Chris@0 16693 version_type=none
Chris@0 16694 dynamic_linker="$host_os ld.so"
Chris@0 16695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@0 16696 if test "$GCC" = yes; then
Chris@0 16697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Chris@0 16698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Chris@0 16699 # if the path contains ";" then we assume it to be the separator
Chris@0 16700 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@0 16701 # assumed that no part of a normal pathname contains ";" but that should
Chris@0 16702 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@0 16703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@0 16704 else
Chris@0 16705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@0 16706 fi
Chris@0 16707 else
Chris@0 16708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@0 16709 fi
Chris@0 16710 need_lib_prefix=unknown
Chris@0 16711 hardcode_into_libs=no
Chris@0 16712
Chris@0 16713 # when you set need_version to no, make sure it does not cause -set_version
Chris@0 16714 # flags to be left without arguments
Chris@0 16715 need_version=unknown
Chris@0 16716
Chris@0 16717 case $host_os in
Chris@0 16718 aix3*)
Chris@0 16719 version_type=linux
Chris@0 16720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@0 16721 shlibpath_var=LIBPATH
Chris@0 16722
Chris@0 16723 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@0 16724 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16725 ;;
Chris@0 16726
Chris@0 16727 aix4* | aix5*)
Chris@0 16728 version_type=linux
Chris@0 16729 need_lib_prefix=no
Chris@0 16730 need_version=no
Chris@0 16731 hardcode_into_libs=yes
Chris@0 16732 if test "$host_cpu" = ia64; then
Chris@0 16733 # AIX 5 supports IA64
Chris@0 16734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@0 16735 shlibpath_var=LD_LIBRARY_PATH
Chris@0 16736 else
Chris@0 16737 # With GCC up to 2.95.x, collect2 would create an import file
Chris@0 16738 # for dependence libraries. The import file would start with
Chris@0 16739 # the line `#! .'. This would cause the generated library to
Chris@0 16740 # depend on `.', always an invalid library. This was fixed in
Chris@0 16741 # development snapshots of GCC prior to 3.0.
Chris@0 16742 case $host_os in
Chris@0 16743 aix4 | aix4.[01] | aix4.[01].*)
Chris@0 16744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@0 16745 echo ' yes '
Chris@0 16746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
Chris@0 16747 :
Chris@0 16748 else
Chris@0 16749 can_build_shared=no
Chris@0 16750 fi
Chris@0 16751 ;;
Chris@0 16752 esac
Chris@0 16753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@0 16754 # soname into executable. Probably we can add versioning support to
Chris@0 16755 # collect2, so additional links can be useful in future.
Chris@0 16756 if test "$aix_use_runtimelinking" = yes; then
Chris@0 16757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@0 16758 # instead of lib<name>.a to let people know that these are not
Chris@0 16759 # typical AIX shared libraries.
Chris@0 16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 16761 else
Chris@0 16762 # We preserve .a as extension for shared libraries through AIX4.2
Chris@0 16763 # and later when we are not doing run time linking.
Chris@0 16764 library_names_spec='${libname}${release}.a $libname.a'
Chris@0 16765 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16766 fi
Chris@0 16767 shlibpath_var=LIBPATH
Chris@0 16768 fi
Chris@0 16769 ;;
Chris@0 16770
Chris@0 16771 amigaos*)
Chris@0 16772 library_names_spec='$libname.ixlibrary $libname.a'
Chris@0 16773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@0 16774 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'
Chris@0 16775 ;;
Chris@0 16776
Chris@0 16777 beos*)
Chris@0 16778 library_names_spec='${libname}${shared_ext}'
Chris@0 16779 dynamic_linker="$host_os ld.so"
Chris@0 16780 shlibpath_var=LIBRARY_PATH
Chris@0 16781 ;;
Chris@0 16782
Chris@0 16783 bsdi4*)
Chris@0 16784 version_type=linux
Chris@0 16785 need_version=no
Chris@0 16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 16787 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@0 16789 shlibpath_var=LD_LIBRARY_PATH
Chris@0 16790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@0 16791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@0 16792 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@0 16793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@0 16794 # libtool to hard-code these into programs
Chris@0 16795 ;;
Chris@0 16796
Chris@0 16797 cygwin* | mingw* | pw32*)
Chris@0 16798 version_type=windows
Chris@0 16799 shrext=".dll"
Chris@0 16800 need_version=no
Chris@0 16801 need_lib_prefix=no
Chris@0 16802
Chris@0 16803 case $GCC,$host_os in
Chris@0 16804 yes,cygwin* | yes,mingw* | yes,pw32*)
Chris@0 16805 library_names_spec='$libname.dll.a'
Chris@0 16806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@0 16807 postinstall_cmds='base_file=`basename \${file}`~
Chris@0 16808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Chris@0 16809 dldir=$destdir/`dirname \$dlpath`~
Chris@0 16810 test -d \$dldir || mkdir -p \$dldir~
Chris@0 16811 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@0 16812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@0 16813 dlpath=$dir/\$dldll~
Chris@0 16814 $rm \$dlpath'
Chris@0 16815 shlibpath_overrides_runpath=yes
Chris@0 16816
Chris@0 16817 case $host_os in
Chris@0 16818 cygwin*)
Chris@0 16819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@0 16820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@0 16821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Chris@0 16822 ;;
Chris@0 16823 mingw*)
Chris@0 16824 # MinGW DLLs use traditional 'lib' prefix
Chris@0 16825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@0 16826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Chris@0 16827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
Chris@0 16828 # It is most probably a Windows format PATH printed by
Chris@0 16829 # mingw gcc, but we are running on Cygwin. Gcc prints its search
Chris@0 16830 # path with ; separators, and with drive letters. We can handle the
Chris@0 16831 # drive letters (cygwin fileutils understands them), so leave them,
Chris@0 16832 # especially as we might pass files found there to a mingw objdump,
Chris@0 16833 # which wouldn't understand a cygwinified path. Ahh.
Chris@0 16834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@0 16835 else
Chris@0 16836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@0 16837 fi
Chris@0 16838 ;;
Chris@0 16839 pw32*)
Chris@0 16840 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@0 16841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
Chris@0 16842 ;;
Chris@0 16843 esac
Chris@0 16844 ;;
Chris@0 16845
Chris@0 16846 *)
Chris@0 16847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@0 16848 ;;
Chris@0 16849 esac
Chris@0 16850 dynamic_linker='Win32 ld.exe'
Chris@0 16851 # FIXME: first we should search . and the directory the executable is in
Chris@0 16852 shlibpath_var=PATH
Chris@0 16853 ;;
Chris@0 16854
Chris@0 16855 darwin* | rhapsody*)
Chris@0 16856 dynamic_linker="$host_os dyld"
Chris@0 16857 version_type=darwin
Chris@0 16858 need_lib_prefix=no
Chris@0 16859 need_version=no
Chris@0 16860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@0 16861 soname_spec='${libname}${release}${major}$shared_ext'
Chris@0 16862 shlibpath_overrides_runpath=yes
Chris@0 16863 shlibpath_var=DYLD_LIBRARY_PATH
Chris@0 16864 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
Chris@0 16865 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Chris@0 16866 if test "$GCC" = yes; then
Chris@0 16867 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"`
Chris@0 16868 else
Chris@0 16869 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
Chris@0 16870 fi
Chris@0 16871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@0 16872 ;;
Chris@0 16873
Chris@0 16874 dgux*)
Chris@0 16875 version_type=linux
Chris@0 16876 need_lib_prefix=no
Chris@0 16877 need_version=no
Chris@0 16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@0 16879 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16880 shlibpath_var=LD_LIBRARY_PATH
Chris@0 16881 ;;
Chris@0 16882
Chris@0 16883 freebsd1*)
Chris@0 16884 dynamic_linker=no
Chris@0 16885 ;;
Chris@0 16886
Chris@0 16887 kfreebsd*-gnu)
Chris@0 16888 version_type=linux
Chris@0 16889 need_lib_prefix=no
Chris@0 16890 need_version=no
Chris@0 16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 16892 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16893 shlibpath_var=LD_LIBRARY_PATH
Chris@0 16894 shlibpath_overrides_runpath=no
Chris@0 16895 hardcode_into_libs=yes
Chris@0 16896 dynamic_linker='GNU ld.so'
Chris@0 16897 ;;
Chris@0 16898
Chris@0 16899 freebsd*)
Chris@0 16900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
Chris@0 16901 version_type=freebsd-$objformat
Chris@0 16902 case $version_type in
Chris@0 16903 freebsd-elf*)
Chris@0 16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@0 16905 need_version=no
Chris@0 16906 need_lib_prefix=no
Chris@0 16907 ;;
Chris@0 16908 freebsd-*)
Chris@0 16909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@0 16910 need_version=yes
Chris@0 16911 ;;
Chris@0 16912 esac
Chris@0 16913 shlibpath_var=LD_LIBRARY_PATH
Chris@0 16914 case $host_os in
Chris@0 16915 freebsd2*)
Chris@0 16916 shlibpath_overrides_runpath=yes
Chris@0 16917 ;;
Chris@0 16918 freebsd3.01* | freebsdelf3.01*)
Chris@0 16919 shlibpath_overrides_runpath=yes
Chris@0 16920 hardcode_into_libs=yes
Chris@0 16921 ;;
Chris@0 16922 *) # from 3.2 on
Chris@0 16923 shlibpath_overrides_runpath=no
Chris@0 16924 hardcode_into_libs=yes
Chris@0 16925 ;;
Chris@0 16926 esac
Chris@0 16927 ;;
Chris@0 16928
Chris@0 16929 gnu*)
Chris@0 16930 version_type=linux
Chris@0 16931 need_lib_prefix=no
Chris@0 16932 need_version=no
Chris@0 16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@0 16934 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16935 shlibpath_var=LD_LIBRARY_PATH
Chris@0 16936 hardcode_into_libs=yes
Chris@0 16937 ;;
Chris@0 16938
Chris@0 16939 hpux9* | hpux10* | hpux11*)
Chris@0 16940 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@0 16941 # link against other versions.
Chris@0 16942 version_type=sunos
Chris@0 16943 need_lib_prefix=no
Chris@0 16944 need_version=no
Chris@0 16945 case "$host_cpu" in
Chris@0 16946 ia64*)
Chris@0 16947 shrext='.so'
Chris@0 16948 hardcode_into_libs=yes
Chris@0 16949 dynamic_linker="$host_os dld.so"
Chris@0 16950 shlibpath_var=LD_LIBRARY_PATH
Chris@0 16951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@0 16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 16953 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16954 if test "X$HPUX_IA64_MODE" = X32; then
Chris@0 16955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@0 16956 else
Chris@0 16957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@0 16958 fi
Chris@0 16959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@0 16960 ;;
Chris@0 16961 hppa*64*)
Chris@0 16962 shrext='.sl'
Chris@0 16963 hardcode_into_libs=yes
Chris@0 16964 dynamic_linker="$host_os dld.sl"
Chris@0 16965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@0 16966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@0 16967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 16968 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@0 16970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@0 16971 ;;
Chris@0 16972 *)
Chris@0 16973 shrext='.sl'
Chris@0 16974 dynamic_linker="$host_os dld.sl"
Chris@0 16975 shlibpath_var=SHLIB_PATH
Chris@0 16976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@0 16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 16978 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16979 ;;
Chris@0 16980 esac
Chris@0 16981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Chris@0 16982 postinstall_cmds='chmod 555 $lib'
Chris@0 16983 ;;
Chris@0 16984
Chris@0 16985 irix5* | irix6* | nonstopux*)
Chris@0 16986 case $host_os in
Chris@0 16987 nonstopux*) version_type=nonstopux ;;
Chris@0 16988 *)
Chris@0 16989 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@0 16990 version_type=linux
Chris@0 16991 else
Chris@0 16992 version_type=irix
Chris@0 16993 fi ;;
Chris@0 16994 esac
Chris@0 16995 need_lib_prefix=no
Chris@0 16996 need_version=no
Chris@0 16997 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@0 16999 case $host_os in
Chris@0 17000 irix5* | nonstopux*)
Chris@0 17001 libsuff= shlibsuff=
Chris@0 17002 ;;
Chris@0 17003 *)
Chris@0 17004 case $LD in # libtool.m4 will add one of these switches to LD
Chris@0 17005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@0 17006 libsuff= shlibsuff= libmagic=32-bit;;
Chris@0 17007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@0 17008 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@0 17009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@0 17010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@0 17011 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@0 17012 esac
Chris@0 17013 ;;
Chris@0 17014 esac
Chris@0 17015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@0 17016 shlibpath_overrides_runpath=no
Chris@0 17017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@0 17018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@0 17019 hardcode_into_libs=yes
Chris@0 17020 ;;
Chris@0 17021
Chris@0 17022 # No shared lib support for Linux oldld, aout, or coff.
Chris@0 17023 linux*oldld* | linux*aout* | linux*coff*)
Chris@0 17024 dynamic_linker=no
Chris@0 17025 ;;
Chris@0 17026
Chris@0 17027 # This must be Linux ELF.
Chris@0 17028 linux*)
Chris@0 17029 version_type=linux
Chris@0 17030 need_lib_prefix=no
Chris@0 17031 need_version=no
Chris@0 17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 17033 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@0 17035 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17036 shlibpath_overrides_runpath=no
Chris@0 17037 # This implies no fast_install, which is unacceptable.
Chris@0 17038 # Some rework will be needed to allow for fast_install
Chris@0 17039 # before this can be enabled.
Chris@0 17040 hardcode_into_libs=yes
Chris@0 17041
Chris@0 17042 # Append ld.so.conf contents to the search path
Chris@0 17043 if test -f /etc/ld.so.conf; then
Chris@0 17044 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
Chris@0 17045 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
Chris@0 17046 fi
Chris@0 17047
Chris@0 17048 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@0 17049 # powerpc, because MkLinux only supported shared libraries with the
Chris@0 17050 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@0 17051 # most powerpc-linux boxes support dynamic linking these days and
Chris@0 17052 # people can always --disable-shared, the test was removed, and we
Chris@0 17053 # assume the GNU/Linux dynamic linker is in use.
Chris@0 17054 dynamic_linker='GNU/Linux ld.so'
Chris@0 17055 ;;
Chris@0 17056
Chris@0 17057 knetbsd*-gnu)
Chris@0 17058 version_type=linux
Chris@0 17059 need_lib_prefix=no
Chris@0 17060 need_version=no
Chris@0 17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 17062 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17063 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17064 shlibpath_overrides_runpath=no
Chris@0 17065 hardcode_into_libs=yes
Chris@0 17066 dynamic_linker='GNU ld.so'
Chris@0 17067 ;;
Chris@0 17068
Chris@0 17069 netbsd*)
Chris@0 17070 version_type=sunos
Chris@0 17071 need_lib_prefix=no
Chris@0 17072 need_version=no
Chris@0 17073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Chris@0 17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 17075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@0 17076 dynamic_linker='NetBSD (a.out) ld.so'
Chris@0 17077 else
Chris@0 17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@0 17079 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17080 dynamic_linker='NetBSD ld.elf_so'
Chris@0 17081 fi
Chris@0 17082 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17083 shlibpath_overrides_runpath=yes
Chris@0 17084 hardcode_into_libs=yes
Chris@0 17085 ;;
Chris@0 17086
Chris@0 17087 newsos6)
Chris@0 17088 version_type=linux
Chris@0 17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 17090 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17091 shlibpath_overrides_runpath=yes
Chris@0 17092 ;;
Chris@0 17093
Chris@0 17094 nto-qnx*)
Chris@0 17095 version_type=linux
Chris@0 17096 need_lib_prefix=no
Chris@0 17097 need_version=no
Chris@0 17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 17099 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17100 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17101 shlibpath_overrides_runpath=yes
Chris@0 17102 ;;
Chris@0 17103
Chris@0 17104 openbsd*)
Chris@0 17105 version_type=sunos
Chris@0 17106 need_lib_prefix=no
Chris@0 17107 need_version=yes
Chris@0 17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 17109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@0 17110 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@0 17112 case $host_os in
Chris@0 17113 openbsd2.[89] | openbsd2.[89].*)
Chris@0 17114 shlibpath_overrides_runpath=no
Chris@0 17115 ;;
Chris@0 17116 *)
Chris@0 17117 shlibpath_overrides_runpath=yes
Chris@0 17118 ;;
Chris@0 17119 esac
Chris@0 17120 else
Chris@0 17121 shlibpath_overrides_runpath=yes
Chris@0 17122 fi
Chris@0 17123 ;;
Chris@0 17124
Chris@0 17125 os2*)
Chris@0 17126 libname_spec='$name'
Chris@0 17127 shrext=".dll"
Chris@0 17128 need_lib_prefix=no
Chris@0 17129 library_names_spec='$libname${shared_ext} $libname.a'
Chris@0 17130 dynamic_linker='OS/2 ld.exe'
Chris@0 17131 shlibpath_var=LIBPATH
Chris@0 17132 ;;
Chris@0 17133
Chris@0 17134 osf3* | osf4* | osf5*)
Chris@0 17135 version_type=osf
Chris@0 17136 need_lib_prefix=no
Chris@0 17137 need_version=no
Chris@0 17138 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 17140 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@0 17142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@0 17143 ;;
Chris@0 17144
Chris@0 17145 sco3.2v5*)
Chris@0 17146 version_type=osf
Chris@0 17147 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 17149 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17150 ;;
Chris@0 17151
Chris@0 17152 solaris*)
Chris@0 17153 version_type=linux
Chris@0 17154 need_lib_prefix=no
Chris@0 17155 need_version=no
Chris@0 17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 17157 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17158 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17159 shlibpath_overrides_runpath=yes
Chris@0 17160 hardcode_into_libs=yes
Chris@0 17161 # ldd complains unless libraries are executable
Chris@0 17162 postinstall_cmds='chmod +x $lib'
Chris@0 17163 ;;
Chris@0 17164
Chris@0 17165 sunos4*)
Chris@0 17166 version_type=sunos
Chris@0 17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@0 17168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@0 17169 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17170 shlibpath_overrides_runpath=yes
Chris@0 17171 if test "$with_gnu_ld" = yes; then
Chris@0 17172 need_lib_prefix=no
Chris@0 17173 fi
Chris@0 17174 need_version=yes
Chris@0 17175 ;;
Chris@0 17176
Chris@0 17177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@0 17178 version_type=linux
Chris@0 17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 17180 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17181 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17182 case $host_vendor in
Chris@0 17183 sni)
Chris@0 17184 shlibpath_overrides_runpath=no
Chris@0 17185 need_lib_prefix=no
Chris@0 17186 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@0 17187 runpath_var=LD_RUN_PATH
Chris@0 17188 ;;
Chris@0 17189 siemens)
Chris@0 17190 need_lib_prefix=no
Chris@0 17191 ;;
Chris@0 17192 motorola)
Chris@0 17193 need_lib_prefix=no
Chris@0 17194 need_version=no
Chris@0 17195 shlibpath_overrides_runpath=no
Chris@0 17196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@0 17197 ;;
Chris@0 17198 esac
Chris@0 17199 ;;
Chris@0 17200
Chris@0 17201 sysv4*MP*)
Chris@0 17202 if test -d /usr/nec ;then
Chris@0 17203 version_type=linux
Chris@0 17204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@0 17205 soname_spec='$libname${shared_ext}.$major'
Chris@0 17206 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17207 fi
Chris@0 17208 ;;
Chris@0 17209
Chris@0 17210 uts4*)
Chris@0 17211 version_type=linux
Chris@0 17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@0 17213 soname_spec='${libname}${release}${shared_ext}$major'
Chris@0 17214 shlibpath_var=LD_LIBRARY_PATH
Chris@0 17215 ;;
Chris@0 17216
Chris@0 17217 *)
Chris@0 17218 dynamic_linker=no
Chris@0 17219 ;;
Chris@0 17220 esac
Chris@0 17221 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Chris@0 17222 echo "${ECHO_T}$dynamic_linker" >&6
Chris@0 17223 test "$dynamic_linker" = no && can_build_shared=no
Chris@0 17224
Chris@0 17225 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Chris@0 17226 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
Chris@0 17227 hardcode_action_GCJ=
Chris@0 17228 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
Chris@0 17229 test -n "$runpath_var GCJ" || \
Chris@0 17230 test "X$hardcode_automatic_GCJ"="Xyes" ; then
Chris@0 17231
Chris@0 17232 # We can hardcode non-existant directories.
Chris@0 17233 if test "$hardcode_direct_GCJ" != no &&
Chris@0 17234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@0 17235 # have to relink, otherwise we might link with an installed library
Chris@0 17236 # when we should be linking with a yet-to-be-installed one
Chris@0 17237 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
Chris@0 17238 test "$hardcode_minus_L_GCJ" != no; then
Chris@0 17239 # Linking always hardcodes the temporary library directory.
Chris@0 17240 hardcode_action_GCJ=relink
Chris@0 17241 else
Chris@0 17242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@0 17243 hardcode_action_GCJ=immediate
Chris@0 17244 fi
Chris@0 17245 else
Chris@0 17246 # We cannot hardcode anything, or else we can only hardcode existing
Chris@0 17247 # directories.
Chris@0 17248 hardcode_action_GCJ=unsupported
Chris@0 17249 fi
Chris@0 17250 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
Chris@0 17251 echo "${ECHO_T}$hardcode_action_GCJ" >&6
Chris@0 17252
Chris@0 17253 if test "$hardcode_action_GCJ" = relink; then
Chris@0 17254 # Fast installation is not supported
Chris@0 17255 enable_fast_install=no
Chris@0 17256 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@0 17257 test "$enable_shared" = no; then
Chris@0 17258 # Fast installation is not necessary
Chris@0 17259 enable_fast_install=needless
Chris@0 17260 fi
Chris@0 17261
Chris@0 17262 striplib=
Chris@0 17263 old_striplib=
Chris@0 17264 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
Chris@0 17265 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
Chris@0 17266 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
Chris@0 17267 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@0 17268 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@0 17269 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 17270 echo "${ECHO_T}yes" >&6
Chris@0 17271 else
Chris@0 17272 # FIXME - insert some real tests, host_os isn't really good enough
Chris@0 17273 case $host_os in
Chris@0 17274 darwin*)
Chris@0 17275 if test -n "$STRIP" ; then
Chris@0 17276 striplib="$STRIP -x"
Chris@0 17277 echo "$as_me:$LINENO: result: yes" >&5
Chris@0 17278 echo "${ECHO_T}yes" >&6
Chris@0 17279 else
Chris@0 17280 echo "$as_me:$LINENO: result: no" >&5
Chris@0 17281 echo "${ECHO_T}no" >&6
Chris@0 17282 fi
Chris@0 17283 ;;
Chris@0 17284 *)
Chris@0 17285 echo "$as_me:$LINENO: result: no" >&5
Chris@0 17286 echo "${ECHO_T}no" >&6
Chris@0 17287 ;;
Chris@0 17288 esac
Chris@0 17289 fi
Chris@0 17290
Chris@0 17291 if test "x$enable_dlopen" != xyes; then
Chris@0 17292 enable_dlopen=unknown
Chris@0 17293 enable_dlopen_self=unknown
Chris@0 17294 enable_dlopen_self_static=unknown
Chris@0 17295 else
Chris@0 17296 lt_cv_dlopen=no
Chris@0 17297 lt_cv_dlopen_libs=
Chris@0 17298
Chris@0 17299 case $host_os in
Chris@0 17300 beos*)
Chris@0 17301 lt_cv_dlopen="load_add_on"
Chris@0 17302 lt_cv_dlopen_libs=
Chris@0 17303 lt_cv_dlopen_self=yes
Chris@0 17304 ;;
Chris@0 17305
Chris@0 17306 mingw* | pw32*)
Chris@0 17307 lt_cv_dlopen="LoadLibrary"
Chris@0 17308 lt_cv_dlopen_libs=
Chris@0 17309 ;;
Chris@0 17310
Chris@0 17311 cygwin*)
Chris@0 17312 lt_cv_dlopen="dlopen"
Chris@0 17313 lt_cv_dlopen_libs=
Chris@0 17314 ;;
Chris@0 17315
Chris@0 17316 darwin*)
Chris@0 17317 # if libdl is installed we need to link against it
Chris@0 17318 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Chris@0 17319 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
Chris@0 17320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Chris@0 17321 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17322 else
Chris@0 17323 ac_check_lib_save_LIBS=$LIBS
Chris@0 17324 LIBS="-ldl $LIBS"
Chris@0 17325 cat >conftest.$ac_ext <<_ACEOF
Chris@0 17326 /* confdefs.h. */
Chris@0 17327 _ACEOF
Chris@0 17328 cat confdefs.h >>conftest.$ac_ext
Chris@0 17329 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 17330 /* end confdefs.h. */
Chris@0 17331
Chris@0 17332 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 17333 #ifdef __cplusplus
Chris@0 17334 extern "C"
Chris@0 17335 #endif
Chris@0 17336 /* We use char because int might match the return type of a gcc2
Chris@0 17337 builtin and then its argument prototype would still apply. */
Chris@0 17338 char dlopen ();
Chris@0 17339 int
Chris@0 17340 main ()
Chris@0 17341 {
Chris@0 17342 dlopen ();
Chris@0 17343 ;
Chris@0 17344 return 0;
Chris@0 17345 }
Chris@0 17346 _ACEOF
Chris@0 17347 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 17348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 17349 (eval $ac_link) 2>conftest.er1
Chris@0 17350 ac_status=$?
Chris@0 17351 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 17352 rm -f conftest.er1
Chris@0 17353 cat conftest.err >&5
Chris@0 17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17355 (exit $ac_status); } &&
Chris@0 17356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17358 (eval $ac_try) 2>&5
Chris@0 17359 ac_status=$?
Chris@0 17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17361 (exit $ac_status); }; } &&
Chris@0 17362 { ac_try='test -s conftest$ac_exeext'
Chris@0 17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17364 (eval $ac_try) 2>&5
Chris@0 17365 ac_status=$?
Chris@0 17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17367 (exit $ac_status); }; }; then
Chris@0 17368 ac_cv_lib_dl_dlopen=yes
Chris@0 17369 else
Chris@0 17370 echo "$as_me: failed program was:" >&5
Chris@0 17371 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 17372
Chris@0 17373 ac_cv_lib_dl_dlopen=no
Chris@0 17374 fi
Chris@0 17375 rm -f conftest.err conftest.$ac_objext \
Chris@0 17376 conftest$ac_exeext conftest.$ac_ext
Chris@0 17377 LIBS=$ac_check_lib_save_LIBS
Chris@0 17378 fi
Chris@0 17379 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Chris@0 17380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
Chris@0 17381 if test $ac_cv_lib_dl_dlopen = yes; then
Chris@0 17382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@0 17383 else
Chris@0 17384
Chris@0 17385 lt_cv_dlopen="dyld"
Chris@0 17386 lt_cv_dlopen_libs=
Chris@0 17387 lt_cv_dlopen_self=yes
Chris@0 17388
Chris@0 17389 fi
Chris@0 17390
Chris@0 17391 ;;
Chris@0 17392
Chris@0 17393 *)
Chris@0 17394 echo "$as_me:$LINENO: checking for shl_load" >&5
Chris@0 17395 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
Chris@0 17396 if test "${ac_cv_func_shl_load+set}" = set; then
Chris@0 17397 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17398 else
Chris@0 17399 cat >conftest.$ac_ext <<_ACEOF
Chris@0 17400 /* confdefs.h. */
Chris@0 17401 _ACEOF
Chris@0 17402 cat confdefs.h >>conftest.$ac_ext
Chris@0 17403 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 17404 /* end confdefs.h. */
Chris@0 17405 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
Chris@0 17406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@0 17407 #define shl_load innocuous_shl_load
Chris@0 17408
Chris@0 17409 /* System header to define __stub macros and hopefully few prototypes,
Chris@0 17410 which can conflict with char shl_load (); below.
Chris@0 17411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 17412 <limits.h> exists even on freestanding compilers. */
Chris@0 17413
Chris@0 17414 #ifdef __STDC__
Chris@0 17415 # include <limits.h>
Chris@0 17416 #else
Chris@0 17417 # include <assert.h>
Chris@0 17418 #endif
Chris@0 17419
Chris@0 17420 #undef shl_load
Chris@0 17421
Chris@0 17422 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 17423 #ifdef __cplusplus
Chris@0 17424 extern "C"
Chris@0 17425 {
Chris@0 17426 #endif
Chris@0 17427 /* We use char because int might match the return type of a gcc2
Chris@0 17428 builtin and then its argument prototype would still apply. */
Chris@0 17429 char shl_load ();
Chris@0 17430 /* The GNU C library defines this for functions which it implements
Chris@0 17431 to always fail with ENOSYS. Some functions are actually named
Chris@0 17432 something starting with __ and the normal name is an alias. */
Chris@0 17433 #if defined (__stub_shl_load) || defined (__stub___shl_load)
Chris@0 17434 choke me
Chris@0 17435 #else
Chris@0 17436 char (*f) () = shl_load;
Chris@0 17437 #endif
Chris@0 17438 #ifdef __cplusplus
Chris@0 17439 }
Chris@0 17440 #endif
Chris@0 17441
Chris@0 17442 int
Chris@0 17443 main ()
Chris@0 17444 {
Chris@0 17445 return f != shl_load;
Chris@0 17446 ;
Chris@0 17447 return 0;
Chris@0 17448 }
Chris@0 17449 _ACEOF
Chris@0 17450 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 17451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 17452 (eval $ac_link) 2>conftest.er1
Chris@0 17453 ac_status=$?
Chris@0 17454 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 17455 rm -f conftest.er1
Chris@0 17456 cat conftest.err >&5
Chris@0 17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17458 (exit $ac_status); } &&
Chris@0 17459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17461 (eval $ac_try) 2>&5
Chris@0 17462 ac_status=$?
Chris@0 17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17464 (exit $ac_status); }; } &&
Chris@0 17465 { ac_try='test -s conftest$ac_exeext'
Chris@0 17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17467 (eval $ac_try) 2>&5
Chris@0 17468 ac_status=$?
Chris@0 17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17470 (exit $ac_status); }; }; then
Chris@0 17471 ac_cv_func_shl_load=yes
Chris@0 17472 else
Chris@0 17473 echo "$as_me: failed program was:" >&5
Chris@0 17474 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 17475
Chris@0 17476 ac_cv_func_shl_load=no
Chris@0 17477 fi
Chris@0 17478 rm -f conftest.err conftest.$ac_objext \
Chris@0 17479 conftest$ac_exeext conftest.$ac_ext
Chris@0 17480 fi
Chris@0 17481 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
Chris@0 17482 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
Chris@0 17483 if test $ac_cv_func_shl_load = yes; then
Chris@0 17484 lt_cv_dlopen="shl_load"
Chris@0 17485 else
Chris@0 17486 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
Chris@0 17487 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
Chris@0 17488 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Chris@0 17489 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17490 else
Chris@0 17491 ac_check_lib_save_LIBS=$LIBS
Chris@0 17492 LIBS="-ldld $LIBS"
Chris@0 17493 cat >conftest.$ac_ext <<_ACEOF
Chris@0 17494 /* confdefs.h. */
Chris@0 17495 _ACEOF
Chris@0 17496 cat confdefs.h >>conftest.$ac_ext
Chris@0 17497 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 17498 /* end confdefs.h. */
Chris@0 17499
Chris@0 17500 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 17501 #ifdef __cplusplus
Chris@0 17502 extern "C"
Chris@0 17503 #endif
Chris@0 17504 /* We use char because int might match the return type of a gcc2
Chris@0 17505 builtin and then its argument prototype would still apply. */
Chris@0 17506 char shl_load ();
Chris@0 17507 int
Chris@0 17508 main ()
Chris@0 17509 {
Chris@0 17510 shl_load ();
Chris@0 17511 ;
Chris@0 17512 return 0;
Chris@0 17513 }
Chris@0 17514 _ACEOF
Chris@0 17515 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 17516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 17517 (eval $ac_link) 2>conftest.er1
Chris@0 17518 ac_status=$?
Chris@0 17519 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 17520 rm -f conftest.er1
Chris@0 17521 cat conftest.err >&5
Chris@0 17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17523 (exit $ac_status); } &&
Chris@0 17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17526 (eval $ac_try) 2>&5
Chris@0 17527 ac_status=$?
Chris@0 17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17529 (exit $ac_status); }; } &&
Chris@0 17530 { ac_try='test -s conftest$ac_exeext'
Chris@0 17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17532 (eval $ac_try) 2>&5
Chris@0 17533 ac_status=$?
Chris@0 17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17535 (exit $ac_status); }; }; then
Chris@0 17536 ac_cv_lib_dld_shl_load=yes
Chris@0 17537 else
Chris@0 17538 echo "$as_me: failed program was:" >&5
Chris@0 17539 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 17540
Chris@0 17541 ac_cv_lib_dld_shl_load=no
Chris@0 17542 fi
Chris@0 17543 rm -f conftest.err conftest.$ac_objext \
Chris@0 17544 conftest$ac_exeext conftest.$ac_ext
Chris@0 17545 LIBS=$ac_check_lib_save_LIBS
Chris@0 17546 fi
Chris@0 17547 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Chris@0 17548 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
Chris@0 17549 if test $ac_cv_lib_dld_shl_load = yes; then
Chris@0 17550 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
Chris@0 17551 else
Chris@0 17552 echo "$as_me:$LINENO: checking for dlopen" >&5
Chris@0 17553 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
Chris@0 17554 if test "${ac_cv_func_dlopen+set}" = set; then
Chris@0 17555 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17556 else
Chris@0 17557 cat >conftest.$ac_ext <<_ACEOF
Chris@0 17558 /* confdefs.h. */
Chris@0 17559 _ACEOF
Chris@0 17560 cat confdefs.h >>conftest.$ac_ext
Chris@0 17561 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 17562 /* end confdefs.h. */
Chris@0 17563 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
Chris@0 17564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@0 17565 #define dlopen innocuous_dlopen
Chris@0 17566
Chris@0 17567 /* System header to define __stub macros and hopefully few prototypes,
Chris@0 17568 which can conflict with char dlopen (); below.
Chris@0 17569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 17570 <limits.h> exists even on freestanding compilers. */
Chris@0 17571
Chris@0 17572 #ifdef __STDC__
Chris@0 17573 # include <limits.h>
Chris@0 17574 #else
Chris@0 17575 # include <assert.h>
Chris@0 17576 #endif
Chris@0 17577
Chris@0 17578 #undef dlopen
Chris@0 17579
Chris@0 17580 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 17581 #ifdef __cplusplus
Chris@0 17582 extern "C"
Chris@0 17583 {
Chris@0 17584 #endif
Chris@0 17585 /* We use char because int might match the return type of a gcc2
Chris@0 17586 builtin and then its argument prototype would still apply. */
Chris@0 17587 char dlopen ();
Chris@0 17588 /* The GNU C library defines this for functions which it implements
Chris@0 17589 to always fail with ENOSYS. Some functions are actually named
Chris@0 17590 something starting with __ and the normal name is an alias. */
Chris@0 17591 #if defined (__stub_dlopen) || defined (__stub___dlopen)
Chris@0 17592 choke me
Chris@0 17593 #else
Chris@0 17594 char (*f) () = dlopen;
Chris@0 17595 #endif
Chris@0 17596 #ifdef __cplusplus
Chris@0 17597 }
Chris@0 17598 #endif
Chris@0 17599
Chris@0 17600 int
Chris@0 17601 main ()
Chris@0 17602 {
Chris@0 17603 return f != dlopen;
Chris@0 17604 ;
Chris@0 17605 return 0;
Chris@0 17606 }
Chris@0 17607 _ACEOF
Chris@0 17608 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 17609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 17610 (eval $ac_link) 2>conftest.er1
Chris@0 17611 ac_status=$?
Chris@0 17612 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 17613 rm -f conftest.er1
Chris@0 17614 cat conftest.err >&5
Chris@0 17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17616 (exit $ac_status); } &&
Chris@0 17617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17619 (eval $ac_try) 2>&5
Chris@0 17620 ac_status=$?
Chris@0 17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17622 (exit $ac_status); }; } &&
Chris@0 17623 { ac_try='test -s conftest$ac_exeext'
Chris@0 17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17625 (eval $ac_try) 2>&5
Chris@0 17626 ac_status=$?
Chris@0 17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17628 (exit $ac_status); }; }; then
Chris@0 17629 ac_cv_func_dlopen=yes
Chris@0 17630 else
Chris@0 17631 echo "$as_me: failed program was:" >&5
Chris@0 17632 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 17633
Chris@0 17634 ac_cv_func_dlopen=no
Chris@0 17635 fi
Chris@0 17636 rm -f conftest.err conftest.$ac_objext \
Chris@0 17637 conftest$ac_exeext conftest.$ac_ext
Chris@0 17638 fi
Chris@0 17639 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
Chris@0 17640 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
Chris@0 17641 if test $ac_cv_func_dlopen = yes; then
Chris@0 17642 lt_cv_dlopen="dlopen"
Chris@0 17643 else
Chris@0 17644 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Chris@0 17645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
Chris@0 17646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Chris@0 17647 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17648 else
Chris@0 17649 ac_check_lib_save_LIBS=$LIBS
Chris@0 17650 LIBS="-ldl $LIBS"
Chris@0 17651 cat >conftest.$ac_ext <<_ACEOF
Chris@0 17652 /* confdefs.h. */
Chris@0 17653 _ACEOF
Chris@0 17654 cat confdefs.h >>conftest.$ac_ext
Chris@0 17655 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 17656 /* end confdefs.h. */
Chris@0 17657
Chris@0 17658 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 17659 #ifdef __cplusplus
Chris@0 17660 extern "C"
Chris@0 17661 #endif
Chris@0 17662 /* We use char because int might match the return type of a gcc2
Chris@0 17663 builtin and then its argument prototype would still apply. */
Chris@0 17664 char dlopen ();
Chris@0 17665 int
Chris@0 17666 main ()
Chris@0 17667 {
Chris@0 17668 dlopen ();
Chris@0 17669 ;
Chris@0 17670 return 0;
Chris@0 17671 }
Chris@0 17672 _ACEOF
Chris@0 17673 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 17675 (eval $ac_link) 2>conftest.er1
Chris@0 17676 ac_status=$?
Chris@0 17677 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 17678 rm -f conftest.er1
Chris@0 17679 cat conftest.err >&5
Chris@0 17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17681 (exit $ac_status); } &&
Chris@0 17682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17684 (eval $ac_try) 2>&5
Chris@0 17685 ac_status=$?
Chris@0 17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17687 (exit $ac_status); }; } &&
Chris@0 17688 { ac_try='test -s conftest$ac_exeext'
Chris@0 17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17690 (eval $ac_try) 2>&5
Chris@0 17691 ac_status=$?
Chris@0 17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17693 (exit $ac_status); }; }; then
Chris@0 17694 ac_cv_lib_dl_dlopen=yes
Chris@0 17695 else
Chris@0 17696 echo "$as_me: failed program was:" >&5
Chris@0 17697 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 17698
Chris@0 17699 ac_cv_lib_dl_dlopen=no
Chris@0 17700 fi
Chris@0 17701 rm -f conftest.err conftest.$ac_objext \
Chris@0 17702 conftest$ac_exeext conftest.$ac_ext
Chris@0 17703 LIBS=$ac_check_lib_save_LIBS
Chris@0 17704 fi
Chris@0 17705 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Chris@0 17706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
Chris@0 17707 if test $ac_cv_lib_dl_dlopen = yes; then
Chris@0 17708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@0 17709 else
Chris@0 17710 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
Chris@0 17711 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
Chris@0 17712 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
Chris@0 17713 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17714 else
Chris@0 17715 ac_check_lib_save_LIBS=$LIBS
Chris@0 17716 LIBS="-lsvld $LIBS"
Chris@0 17717 cat >conftest.$ac_ext <<_ACEOF
Chris@0 17718 /* confdefs.h. */
Chris@0 17719 _ACEOF
Chris@0 17720 cat confdefs.h >>conftest.$ac_ext
Chris@0 17721 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 17722 /* end confdefs.h. */
Chris@0 17723
Chris@0 17724 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 17725 #ifdef __cplusplus
Chris@0 17726 extern "C"
Chris@0 17727 #endif
Chris@0 17728 /* We use char because int might match the return type of a gcc2
Chris@0 17729 builtin and then its argument prototype would still apply. */
Chris@0 17730 char dlopen ();
Chris@0 17731 int
Chris@0 17732 main ()
Chris@0 17733 {
Chris@0 17734 dlopen ();
Chris@0 17735 ;
Chris@0 17736 return 0;
Chris@0 17737 }
Chris@0 17738 _ACEOF
Chris@0 17739 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 17741 (eval $ac_link) 2>conftest.er1
Chris@0 17742 ac_status=$?
Chris@0 17743 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 17744 rm -f conftest.er1
Chris@0 17745 cat conftest.err >&5
Chris@0 17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17747 (exit $ac_status); } &&
Chris@0 17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17750 (eval $ac_try) 2>&5
Chris@0 17751 ac_status=$?
Chris@0 17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17753 (exit $ac_status); }; } &&
Chris@0 17754 { ac_try='test -s conftest$ac_exeext'
Chris@0 17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17756 (eval $ac_try) 2>&5
Chris@0 17757 ac_status=$?
Chris@0 17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17759 (exit $ac_status); }; }; then
Chris@0 17760 ac_cv_lib_svld_dlopen=yes
Chris@0 17761 else
Chris@0 17762 echo "$as_me: failed program was:" >&5
Chris@0 17763 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 17764
Chris@0 17765 ac_cv_lib_svld_dlopen=no
Chris@0 17766 fi
Chris@0 17767 rm -f conftest.err conftest.$ac_objext \
Chris@0 17768 conftest$ac_exeext conftest.$ac_ext
Chris@0 17769 LIBS=$ac_check_lib_save_LIBS
Chris@0 17770 fi
Chris@0 17771 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Chris@0 17772 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
Chris@0 17773 if test $ac_cv_lib_svld_dlopen = yes; then
Chris@0 17774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@0 17775 else
Chris@0 17776 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
Chris@0 17777 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
Chris@0 17778 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
Chris@0 17779 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17780 else
Chris@0 17781 ac_check_lib_save_LIBS=$LIBS
Chris@0 17782 LIBS="-ldld $LIBS"
Chris@0 17783 cat >conftest.$ac_ext <<_ACEOF
Chris@0 17784 /* confdefs.h. */
Chris@0 17785 _ACEOF
Chris@0 17786 cat confdefs.h >>conftest.$ac_ext
Chris@0 17787 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 17788 /* end confdefs.h. */
Chris@0 17789
Chris@0 17790 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 17791 #ifdef __cplusplus
Chris@0 17792 extern "C"
Chris@0 17793 #endif
Chris@0 17794 /* We use char because int might match the return type of a gcc2
Chris@0 17795 builtin and then its argument prototype would still apply. */
Chris@0 17796 char dld_link ();
Chris@0 17797 int
Chris@0 17798 main ()
Chris@0 17799 {
Chris@0 17800 dld_link ();
Chris@0 17801 ;
Chris@0 17802 return 0;
Chris@0 17803 }
Chris@0 17804 _ACEOF
Chris@0 17805 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 17806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 17807 (eval $ac_link) 2>conftest.er1
Chris@0 17808 ac_status=$?
Chris@0 17809 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 17810 rm -f conftest.er1
Chris@0 17811 cat conftest.err >&5
Chris@0 17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17813 (exit $ac_status); } &&
Chris@0 17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17816 (eval $ac_try) 2>&5
Chris@0 17817 ac_status=$?
Chris@0 17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17819 (exit $ac_status); }; } &&
Chris@0 17820 { ac_try='test -s conftest$ac_exeext'
Chris@0 17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 17822 (eval $ac_try) 2>&5
Chris@0 17823 ac_status=$?
Chris@0 17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17825 (exit $ac_status); }; }; then
Chris@0 17826 ac_cv_lib_dld_dld_link=yes
Chris@0 17827 else
Chris@0 17828 echo "$as_me: failed program was:" >&5
Chris@0 17829 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 17830
Chris@0 17831 ac_cv_lib_dld_dld_link=no
Chris@0 17832 fi
Chris@0 17833 rm -f conftest.err conftest.$ac_objext \
Chris@0 17834 conftest$ac_exeext conftest.$ac_ext
Chris@0 17835 LIBS=$ac_check_lib_save_LIBS
Chris@0 17836 fi
Chris@0 17837 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Chris@0 17838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
Chris@0 17839 if test $ac_cv_lib_dld_dld_link = yes; then
Chris@0 17840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
Chris@0 17841 fi
Chris@0 17842
Chris@0 17843
Chris@0 17844 fi
Chris@0 17845
Chris@0 17846
Chris@0 17847 fi
Chris@0 17848
Chris@0 17849
Chris@0 17850 fi
Chris@0 17851
Chris@0 17852
Chris@0 17853 fi
Chris@0 17854
Chris@0 17855
Chris@0 17856 fi
Chris@0 17857
Chris@0 17858 ;;
Chris@0 17859 esac
Chris@0 17860
Chris@0 17861 if test "x$lt_cv_dlopen" != xno; then
Chris@0 17862 enable_dlopen=yes
Chris@0 17863 else
Chris@0 17864 enable_dlopen=no
Chris@0 17865 fi
Chris@0 17866
Chris@0 17867 case $lt_cv_dlopen in
Chris@0 17868 dlopen)
Chris@0 17869 save_CPPFLAGS="$CPPFLAGS"
Chris@0 17870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@0 17871
Chris@0 17872 save_LDFLAGS="$LDFLAGS"
Chris@0 17873 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@0 17874
Chris@0 17875 save_LIBS="$LIBS"
Chris@0 17876 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@0 17877
Chris@0 17878 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
Chris@0 17879 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
Chris@0 17880 if test "${lt_cv_dlopen_self+set}" = set; then
Chris@0 17881 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17882 else
Chris@0 17883 if test "$cross_compiling" = yes; then :
Chris@0 17884 lt_cv_dlopen_self=cross
Chris@0 17885 else
Chris@0 17886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@0 17887 lt_status=$lt_dlunknown
Chris@0 17888 cat > conftest.$ac_ext <<EOF
Chris@0 17889 #line 17889 "configure"
Chris@0 17890 #include "confdefs.h"
Chris@0 17891
Chris@0 17892 #if HAVE_DLFCN_H
Chris@0 17893 #include <dlfcn.h>
Chris@0 17894 #endif
Chris@0 17895
Chris@0 17896 #include <stdio.h>
Chris@0 17897
Chris@0 17898 #ifdef RTLD_GLOBAL
Chris@0 17899 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@0 17900 #else
Chris@0 17901 # ifdef DL_GLOBAL
Chris@0 17902 # define LT_DLGLOBAL DL_GLOBAL
Chris@0 17903 # else
Chris@0 17904 # define LT_DLGLOBAL 0
Chris@0 17905 # endif
Chris@0 17906 #endif
Chris@0 17907
Chris@0 17908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@0 17909 find out it does not work in some platform. */
Chris@0 17910 #ifndef LT_DLLAZY_OR_NOW
Chris@0 17911 # ifdef RTLD_LAZY
Chris@0 17912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@0 17913 # else
Chris@0 17914 # ifdef DL_LAZY
Chris@0 17915 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@0 17916 # else
Chris@0 17917 # ifdef RTLD_NOW
Chris@0 17918 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@0 17919 # else
Chris@0 17920 # ifdef DL_NOW
Chris@0 17921 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@0 17922 # else
Chris@0 17923 # define LT_DLLAZY_OR_NOW 0
Chris@0 17924 # endif
Chris@0 17925 # endif
Chris@0 17926 # endif
Chris@0 17927 # endif
Chris@0 17928 #endif
Chris@0 17929
Chris@0 17930 #ifdef __cplusplus
Chris@0 17931 extern "C" void exit (int);
Chris@0 17932 #endif
Chris@0 17933
Chris@0 17934 void fnord() { int i=42;}
Chris@0 17935 int main ()
Chris@0 17936 {
Chris@0 17937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@0 17938 int status = $lt_dlunknown;
Chris@0 17939
Chris@0 17940 if (self)
Chris@0 17941 {
Chris@0 17942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@0 17943 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@0 17944 /* dlclose (self); */
Chris@0 17945 }
Chris@0 17946
Chris@0 17947 exit (status);
Chris@0 17948 }
Chris@0 17949 EOF
Chris@0 17950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 17951 (eval $ac_link) 2>&5
Chris@0 17952 ac_status=$?
Chris@0 17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 17954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@0 17955 (./conftest; exit; ) 2>/dev/null
Chris@0 17956 lt_status=$?
Chris@0 17957 case x$lt_status in
Chris@0 17958 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@0 17959 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@0 17960 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
Chris@0 17961 esac
Chris@0 17962 else :
Chris@0 17963 # compilation failed
Chris@0 17964 lt_cv_dlopen_self=no
Chris@0 17965 fi
Chris@0 17966 fi
Chris@0 17967 rm -fr conftest*
Chris@0 17968
Chris@0 17969
Chris@0 17970 fi
Chris@0 17971 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
Chris@0 17972 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
Chris@0 17973
Chris@0 17974 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@0 17975 LDFLAGS="$LDFLAGS $link_static_flag"
Chris@0 17976 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
Chris@0 17977 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
Chris@0 17978 if test "${lt_cv_dlopen_self_static+set}" = set; then
Chris@0 17979 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 17980 else
Chris@0 17981 if test "$cross_compiling" = yes; then :
Chris@0 17982 lt_cv_dlopen_self_static=cross
Chris@0 17983 else
Chris@0 17984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@0 17985 lt_status=$lt_dlunknown
Chris@0 17986 cat > conftest.$ac_ext <<EOF
Chris@0 17987 #line 17987 "configure"
Chris@0 17988 #include "confdefs.h"
Chris@0 17989
Chris@0 17990 #if HAVE_DLFCN_H
Chris@0 17991 #include <dlfcn.h>
Chris@0 17992 #endif
Chris@0 17993
Chris@0 17994 #include <stdio.h>
Chris@0 17995
Chris@0 17996 #ifdef RTLD_GLOBAL
Chris@0 17997 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@0 17998 #else
Chris@0 17999 # ifdef DL_GLOBAL
Chris@0 18000 # define LT_DLGLOBAL DL_GLOBAL
Chris@0 18001 # else
Chris@0 18002 # define LT_DLGLOBAL 0
Chris@0 18003 # endif
Chris@0 18004 #endif
Chris@0 18005
Chris@0 18006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@0 18007 find out it does not work in some platform. */
Chris@0 18008 #ifndef LT_DLLAZY_OR_NOW
Chris@0 18009 # ifdef RTLD_LAZY
Chris@0 18010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@0 18011 # else
Chris@0 18012 # ifdef DL_LAZY
Chris@0 18013 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@0 18014 # else
Chris@0 18015 # ifdef RTLD_NOW
Chris@0 18016 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@0 18017 # else
Chris@0 18018 # ifdef DL_NOW
Chris@0 18019 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@0 18020 # else
Chris@0 18021 # define LT_DLLAZY_OR_NOW 0
Chris@0 18022 # endif
Chris@0 18023 # endif
Chris@0 18024 # endif
Chris@0 18025 # endif
Chris@0 18026 #endif
Chris@0 18027
Chris@0 18028 #ifdef __cplusplus
Chris@0 18029 extern "C" void exit (int);
Chris@0 18030 #endif
Chris@0 18031
Chris@0 18032 void fnord() { int i=42;}
Chris@0 18033 int main ()
Chris@0 18034 {
Chris@0 18035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@0 18036 int status = $lt_dlunknown;
Chris@0 18037
Chris@0 18038 if (self)
Chris@0 18039 {
Chris@0 18040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@0 18041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@0 18042 /* dlclose (self); */
Chris@0 18043 }
Chris@0 18044
Chris@0 18045 exit (status);
Chris@0 18046 }
Chris@0 18047 EOF
Chris@0 18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 18049 (eval $ac_link) 2>&5
Chris@0 18050 ac_status=$?
Chris@0 18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 18052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@0 18053 (./conftest; exit; ) 2>/dev/null
Chris@0 18054 lt_status=$?
Chris@0 18055 case x$lt_status in
Chris@0 18056 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@0 18057 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@0 18058 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@0 18059 esac
Chris@0 18060 else :
Chris@0 18061 # compilation failed
Chris@0 18062 lt_cv_dlopen_self_static=no
Chris@0 18063 fi
Chris@0 18064 fi
Chris@0 18065 rm -fr conftest*
Chris@0 18066
Chris@0 18067
Chris@0 18068 fi
Chris@0 18069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
Chris@0 18070 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
Chris@0 18071 fi
Chris@0 18072
Chris@0 18073 CPPFLAGS="$save_CPPFLAGS"
Chris@0 18074 LDFLAGS="$save_LDFLAGS"
Chris@0 18075 LIBS="$save_LIBS"
Chris@0 18076 ;;
Chris@0 18077 esac
Chris@0 18078
Chris@0 18079 case $lt_cv_dlopen_self in
Chris@0 18080 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@0 18081 *) enable_dlopen_self=unknown ;;
Chris@0 18082 esac
Chris@0 18083
Chris@0 18084 case $lt_cv_dlopen_self_static in
Chris@0 18085 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@0 18086 *) enable_dlopen_self_static=unknown ;;
Chris@0 18087 esac
Chris@0 18088 fi
Chris@0 18089
Chris@0 18090
Chris@0 18091 # The else clause should only fire when bootstrapping the
Chris@0 18092 # libtool distribution, otherwise you forgot to ship ltmain.sh
Chris@0 18093 # with your package, and you will get complaints that there are
Chris@0 18094 # no rules to generate ltmain.sh.
Chris@0 18095 if test -f "$ltmain"; then
Chris@0 18096 # See if we are running on zsh, and set the options which allow our commands through
Chris@0 18097 # without removal of \ escapes.
Chris@0 18098 if test -n "${ZSH_VERSION+set}" ; then
Chris@0 18099 setopt NO_GLOB_SUBST
Chris@0 18100 fi
Chris@0 18101 # Now quote all the things that may contain metacharacters while being
Chris@0 18102 # careful not to overquote the AC_SUBSTed values. We take copies of the
Chris@0 18103 # variables and quote the copies for generation of the libtool script.
Chris@0 18104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
Chris@0 18105 SED SHELL STRIP \
Chris@0 18106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
Chris@0 18107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
Chris@0 18108 deplibs_check_method reload_flag reload_cmds need_locks \
Chris@0 18109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
Chris@0 18110 lt_cv_sys_global_symbol_to_c_name_address \
Chris@0 18111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Chris@0 18112 old_postinstall_cmds old_postuninstall_cmds \
Chris@0 18113 compiler_GCJ \
Chris@0 18114 CC_GCJ \
Chris@0 18115 LD_GCJ \
Chris@0 18116 lt_prog_compiler_wl_GCJ \
Chris@0 18117 lt_prog_compiler_pic_GCJ \
Chris@0 18118 lt_prog_compiler_static_GCJ \
Chris@0 18119 lt_prog_compiler_no_builtin_flag_GCJ \
Chris@0 18120 export_dynamic_flag_spec_GCJ \
Chris@0 18121 thread_safe_flag_spec_GCJ \
Chris@0 18122 whole_archive_flag_spec_GCJ \
Chris@0 18123 enable_shared_with_static_runtimes_GCJ \
Chris@0 18124 old_archive_cmds_GCJ \
Chris@0 18125 old_archive_from_new_cmds_GCJ \
Chris@0 18126 predep_objects_GCJ \
Chris@0 18127 postdep_objects_GCJ \
Chris@0 18128 predeps_GCJ \
Chris@0 18129 postdeps_GCJ \
Chris@0 18130 compiler_lib_search_path_GCJ \
Chris@0 18131 archive_cmds_GCJ \
Chris@0 18132 archive_expsym_cmds_GCJ \
Chris@0 18133 postinstall_cmds_GCJ \
Chris@0 18134 postuninstall_cmds_GCJ \
Chris@0 18135 old_archive_from_expsyms_cmds_GCJ \
Chris@0 18136 allow_undefined_flag_GCJ \
Chris@0 18137 no_undefined_flag_GCJ \
Chris@0 18138 export_symbols_cmds_GCJ \
Chris@0 18139 hardcode_libdir_flag_spec_GCJ \
Chris@0 18140 hardcode_libdir_flag_spec_ld_GCJ \
Chris@0 18141 hardcode_libdir_separator_GCJ \
Chris@0 18142 hardcode_automatic_GCJ \
Chris@0 18143 module_cmds_GCJ \
Chris@0 18144 module_expsym_cmds_GCJ \
Chris@0 18145 lt_cv_prog_compiler_c_o_GCJ \
Chris@0 18146 exclude_expsyms_GCJ \
Chris@0 18147 include_expsyms_GCJ; do
Chris@0 18148
Chris@0 18149 case $var in
Chris@0 18150 old_archive_cmds_GCJ | \
Chris@0 18151 old_archive_from_new_cmds_GCJ | \
Chris@0 18152 archive_cmds_GCJ | \
Chris@0 18153 archive_expsym_cmds_GCJ | \
Chris@0 18154 module_cmds_GCJ | \
Chris@0 18155 module_expsym_cmds_GCJ | \
Chris@0 18156 old_archive_from_expsyms_cmds_GCJ | \
Chris@0 18157 export_symbols_cmds_GCJ | \
Chris@0 18158 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Chris@0 18159 postinstall_cmds | postuninstall_cmds | \
Chris@0 18160 old_postinstall_cmds | old_postuninstall_cmds | \
Chris@0 18161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Chris@0 18162 # Double-quote double-evaled strings.
Chris@0 18163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
Chris@0 18164 ;;
Chris@0 18165 *)
Chris@0 18166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
Chris@0 18167 ;;
Chris@0 18168 esac
Chris@0 18169 done
Chris@0 18170
Chris@0 18171 case $lt_echo in
Chris@0 18172 *'\$0 --fallback-echo"')
Chris@0 18173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
Chris@0 18174 ;;
Chris@0 18175 esac
Chris@0 18176
Chris@0 18177 cfgfile="$ofile"
Chris@0 18178
Chris@0 18179 cat <<__EOF__ >> "$cfgfile"
Chris@0 18180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
Chris@0 18181
Chris@0 18182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@0 18183
Chris@0 18184 # Shell to use when invoking shell scripts.
Chris@0 18185 SHELL=$lt_SHELL
Chris@0 18186
Chris@0 18187 # Whether or not to build shared libraries.
Chris@0 18188 build_libtool_libs=$enable_shared
Chris@0 18189
Chris@0 18190 # Whether or not to build static libraries.
Chris@0 18191 build_old_libs=$enable_static
Chris@0 18192
Chris@0 18193 # Whether or not to add -lc for building shared libraries.
Chris@0 18194 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
Chris@0 18195
Chris@0 18196 # Whether or not to disallow shared libs when runtime libs are static
Chris@0 18197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
Chris@0 18198
Chris@0 18199 # Whether or not to optimize for fast installation.
Chris@0 18200 fast_install=$enable_fast_install
Chris@0 18201
Chris@0 18202 # The host system.
Chris@0 18203 host_alias=$host_alias
Chris@0 18204 host=$host
Chris@0 18205
Chris@0 18206 # An echo program that does not interpret backslashes.
Chris@0 18207 echo=$lt_echo
Chris@0 18208
Chris@0 18209 # The archiver.
Chris@0 18210 AR=$lt_AR
Chris@0 18211 AR_FLAGS=$lt_AR_FLAGS
Chris@0 18212
Chris@0 18213 # A C compiler.
Chris@0 18214 LTCC=$lt_LTCC
Chris@0 18215
Chris@0 18216 # A language-specific compiler.
Chris@0 18217 CC=$lt_compiler_GCJ
Chris@0 18218
Chris@0 18219 # Is the compiler the GNU C compiler?
Chris@0 18220 with_gcc=$GCC_GCJ
Chris@0 18221
Chris@0 18222 # An ERE matcher.
Chris@0 18223 EGREP=$lt_EGREP
Chris@0 18224
Chris@0 18225 # The linker used to build libraries.
Chris@0 18226 LD=$lt_LD_GCJ
Chris@0 18227
Chris@0 18228 # Whether we need hard or soft links.
Chris@0 18229 LN_S=$lt_LN_S
Chris@0 18230
Chris@0 18231 # A BSD-compatible nm program.
Chris@0 18232 NM=$lt_NM
Chris@0 18233
Chris@0 18234 # A symbol stripping program
Chris@0 18235 STRIP=$lt_STRIP
Chris@0 18236
Chris@0 18237 # Used to examine libraries when file_magic_cmd begins "file"
Chris@0 18238 MAGIC_CMD=$MAGIC_CMD
Chris@0 18239
Chris@0 18240 # Used on cygwin: DLL creation program.
Chris@0 18241 DLLTOOL="$DLLTOOL"
Chris@0 18242
Chris@0 18243 # Used on cygwin: object dumper.
Chris@0 18244 OBJDUMP="$OBJDUMP"
Chris@0 18245
Chris@0 18246 # Used on cygwin: assembler.
Chris@0 18247 AS="$AS"
Chris@0 18248
Chris@0 18249 # The name of the directory that contains temporary libtool files.
Chris@0 18250 objdir=$objdir
Chris@0 18251
Chris@0 18252 # How to create reloadable object files.
Chris@0 18253 reload_flag=$lt_reload_flag
Chris@0 18254 reload_cmds=$lt_reload_cmds
Chris@0 18255
Chris@0 18256 # How to pass a linker flag through the compiler.
Chris@0 18257 wl=$lt_lt_prog_compiler_wl_GCJ
Chris@0 18258
Chris@0 18259 # Object file suffix (normally "o").
Chris@0 18260 objext="$ac_objext"
Chris@0 18261
Chris@0 18262 # Old archive suffix (normally "a").
Chris@0 18263 libext="$libext"
Chris@0 18264
Chris@0 18265 # Shared library suffix (normally ".so").
Chris@0 18266 shrext='$shrext'
Chris@0 18267
Chris@0 18268 # Executable file suffix (normally "").
Chris@0 18269 exeext="$exeext"
Chris@0 18270
Chris@0 18271 # Additional compiler flags for building library objects.
Chris@0 18272 pic_flag=$lt_lt_prog_compiler_pic_GCJ
Chris@0 18273 pic_mode=$pic_mode
Chris@0 18274
Chris@0 18275 # What is the maximum length of a command?
Chris@0 18276 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@0 18277
Chris@0 18278 # Does compiler simultaneously support -c and -o options?
Chris@0 18279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
Chris@0 18280
Chris@0 18281 # Must we lock files when doing compilation ?
Chris@0 18282 need_locks=$lt_need_locks
Chris@0 18283
Chris@0 18284 # Do we need the lib prefix for modules?
Chris@0 18285 need_lib_prefix=$need_lib_prefix
Chris@0 18286
Chris@0 18287 # Do we need a version for libraries?
Chris@0 18288 need_version=$need_version
Chris@0 18289
Chris@0 18290 # Whether dlopen is supported.
Chris@0 18291 dlopen_support=$enable_dlopen
Chris@0 18292
Chris@0 18293 # Whether dlopen of programs is supported.
Chris@0 18294 dlopen_self=$enable_dlopen_self
Chris@0 18295
Chris@0 18296 # Whether dlopen of statically linked programs is supported.
Chris@0 18297 dlopen_self_static=$enable_dlopen_self_static
Chris@0 18298
Chris@0 18299 # Compiler flag to prevent dynamic linking.
Chris@0 18300 link_static_flag=$lt_lt_prog_compiler_static_GCJ
Chris@0 18301
Chris@0 18302 # Compiler flag to turn off builtin functions.
Chris@0 18303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
Chris@0 18304
Chris@0 18305 # Compiler flag to allow reflexive dlopens.
Chris@0 18306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
Chris@0 18307
Chris@0 18308 # Compiler flag to generate shared objects directly from archives.
Chris@0 18309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
Chris@0 18310
Chris@0 18311 # Compiler flag to generate thread-safe objects.
Chris@0 18312 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
Chris@0 18313
Chris@0 18314 # Library versioning type.
Chris@0 18315 version_type=$version_type
Chris@0 18316
Chris@0 18317 # Format of library name prefix.
Chris@0 18318 libname_spec=$lt_libname_spec
Chris@0 18319
Chris@0 18320 # List of archive names. First name is the real one, the rest are links.
Chris@0 18321 # The last name is the one that the linker finds with -lNAME.
Chris@0 18322 library_names_spec=$lt_library_names_spec
Chris@0 18323
Chris@0 18324 # The coded name of the library, if different from the real name.
Chris@0 18325 soname_spec=$lt_soname_spec
Chris@0 18326
Chris@0 18327 # Commands used to build and install an old-style archive.
Chris@0 18328 RANLIB=$lt_RANLIB
Chris@0 18329 old_archive_cmds=$lt_old_archive_cmds_GCJ
Chris@0 18330 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@0 18331 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@0 18332
Chris@0 18333 # Create an old-style archive from a shared archive.
Chris@0 18334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
Chris@0 18335
Chris@0 18336 # Create a temporary old-style archive to link instead of a shared archive.
Chris@0 18337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
Chris@0 18338
Chris@0 18339 # Commands used to build and install a shared archive.
Chris@0 18340 archive_cmds=$lt_archive_cmds_GCJ
Chris@0 18341 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
Chris@0 18342 postinstall_cmds=$lt_postinstall_cmds
Chris@0 18343 postuninstall_cmds=$lt_postuninstall_cmds
Chris@0 18344
Chris@0 18345 # Commands used to build a loadable module (assumed same as above if empty)
Chris@0 18346 module_cmds=$lt_module_cmds_GCJ
Chris@0 18347 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
Chris@0 18348
Chris@0 18349 # Commands to strip libraries.
Chris@0 18350 old_striplib=$lt_old_striplib
Chris@0 18351 striplib=$lt_striplib
Chris@0 18352
Chris@0 18353 # Dependencies to place before the objects being linked to create a
Chris@0 18354 # shared library.
Chris@0 18355 predep_objects=$lt_predep_objects_GCJ
Chris@0 18356
Chris@0 18357 # Dependencies to place after the objects being linked to create a
Chris@0 18358 # shared library.
Chris@0 18359 postdep_objects=$lt_postdep_objects_GCJ
Chris@0 18360
Chris@0 18361 # Dependencies to place before the objects being linked to create a
Chris@0 18362 # shared library.
Chris@0 18363 predeps=$lt_predeps_GCJ
Chris@0 18364
Chris@0 18365 # Dependencies to place after the objects being linked to create a
Chris@0 18366 # shared library.
Chris@0 18367 postdeps=$lt_postdeps_GCJ
Chris@0 18368
Chris@0 18369 # The library search path used internally by the compiler when linking
Chris@0 18370 # a shared library.
Chris@0 18371 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
Chris@0 18372
Chris@0 18373 # Method to check whether dependent libraries are shared objects.
Chris@0 18374 deplibs_check_method=$lt_deplibs_check_method
Chris@0 18375
Chris@0 18376 # Command to use when deplibs_check_method == file_magic.
Chris@0 18377 file_magic_cmd=$lt_file_magic_cmd
Chris@0 18378
Chris@0 18379 # Flag that allows shared libraries with undefined symbols to be built.
Chris@0 18380 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
Chris@0 18381
Chris@0 18382 # Flag that forces no undefined symbols.
Chris@0 18383 no_undefined_flag=$lt_no_undefined_flag_GCJ
Chris@0 18384
Chris@0 18385 # Commands used to finish a libtool library installation in a directory.
Chris@0 18386 finish_cmds=$lt_finish_cmds
Chris@0 18387
Chris@0 18388 # Same as above, but a single script fragment to be evaled but not shown.
Chris@0 18389 finish_eval=$lt_finish_eval
Chris@0 18390
Chris@0 18391 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@0 18392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@0 18393
Chris@0 18394 # Transform the output of nm in a proper C declaration
Chris@0 18395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@0 18396
Chris@0 18397 # Transform the output of nm in a C name address pair
Chris@0 18398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@0 18399
Chris@0 18400 # This is the shared library runtime path variable.
Chris@0 18401 runpath_var=$runpath_var
Chris@0 18402
Chris@0 18403 # This is the shared library path variable.
Chris@0 18404 shlibpath_var=$shlibpath_var
Chris@0 18405
Chris@0 18406 # Is shlibpath searched before the hard-coded library search path?
Chris@0 18407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@0 18408
Chris@0 18409 # How to hardcode a shared library path into an executable.
Chris@0 18410 hardcode_action=$hardcode_action_GCJ
Chris@0 18411
Chris@0 18412 # Whether we should hardcode library paths into libraries.
Chris@0 18413 hardcode_into_libs=$hardcode_into_libs
Chris@0 18414
Chris@0 18415 # Flag to hardcode \$libdir into a binary during linking.
Chris@0 18416 # This must work even if \$libdir does not exist.
Chris@0 18417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
Chris@0 18418
Chris@0 18419 # If ld is used when linking, flag to hardcode \$libdir into
Chris@0 18420 # a binary during linking. This must work even if \$libdir does
Chris@0 18421 # not exist.
Chris@0 18422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
Chris@0 18423
Chris@0 18424 # Whether we need a single -rpath flag with a separated argument.
Chris@0 18425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
Chris@0 18426
Chris@0 18427 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Chris@0 18428 # resulting binary.
Chris@0 18429 hardcode_direct=$hardcode_direct_GCJ
Chris@0 18430
Chris@0 18431 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
Chris@0 18432 # resulting binary.
Chris@0 18433 hardcode_minus_L=$hardcode_minus_L_GCJ
Chris@0 18434
Chris@0 18435 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
Chris@0 18436 # the resulting binary.
Chris@0 18437 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
Chris@0 18438
Chris@0 18439 # Set to yes if building a shared library automatically hardcodes DIR into the library
Chris@0 18440 # and all subsequent libraries and executables linked against it.
Chris@0 18441 hardcode_automatic=$hardcode_automatic_GCJ
Chris@0 18442
Chris@0 18443 # Variables whose values should be saved in libtool wrapper scripts and
Chris@0 18444 # restored at relink time.
Chris@0 18445 variables_saved_for_relink="$variables_saved_for_relink"
Chris@0 18446
Chris@0 18447 # Whether libtool must link a program against all its dependency libraries.
Chris@0 18448 link_all_deplibs=$link_all_deplibs_GCJ
Chris@0 18449
Chris@0 18450 # Compile-time system search path for libraries
Chris@0 18451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@0 18452
Chris@0 18453 # Run-time system search path for libraries
Chris@0 18454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@0 18455
Chris@0 18456 # Fix the shell variable \$srcfile for the compiler.
Chris@0 18457 fix_srcfile_path="$fix_srcfile_path_GCJ"
Chris@0 18458
Chris@0 18459 # Set to yes if exported symbols are required.
Chris@0 18460 always_export_symbols=$always_export_symbols_GCJ
Chris@0 18461
Chris@0 18462 # The commands to list exported symbols.
Chris@0 18463 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
Chris@0 18464
Chris@0 18465 # The commands to extract the exported symbol list from a shared archive.
Chris@0 18466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@0 18467
Chris@0 18468 # Symbols that should not be listed in the preloaded symbols.
Chris@0 18469 exclude_expsyms=$lt_exclude_expsyms_GCJ
Chris@0 18470
Chris@0 18471 # Symbols that must always be exported.
Chris@0 18472 include_expsyms=$lt_include_expsyms_GCJ
Chris@0 18473
Chris@0 18474 # ### END LIBTOOL TAG CONFIG: $tagname
Chris@0 18475
Chris@0 18476 __EOF__
Chris@0 18477
Chris@0 18478
Chris@0 18479 else
Chris@0 18480 # If there is no Makefile yet, we rely on a make rule to execute
Chris@0 18481 # `config.status --recheck' to rerun these tests and create the
Chris@0 18482 # libtool script then.
Chris@0 18483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
Chris@0 18484 if test -f "$ltmain_in"; then
Chris@0 18485 test -f Makefile && make "$ltmain"
Chris@0 18486 fi
Chris@0 18487 fi
Chris@0 18488
Chris@0 18489
Chris@0 18490 ac_ext=c
Chris@0 18491 ac_cpp='$CPP $CPPFLAGS'
Chris@0 18492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 18493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 18494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 18495
Chris@0 18496 CC="$lt_save_CC"
Chris@0 18497
Chris@0 18498 else
Chris@0 18499 tagname=""
Chris@0 18500 fi
Chris@0 18501 ;;
Chris@0 18502
Chris@0 18503 RC)
Chris@0 18504
Chris@0 18505
Chris@0 18506
Chris@0 18507 # Source file extension for RC test sources.
Chris@0 18508 ac_ext=rc
Chris@0 18509
Chris@0 18510 # Object file extension for compiled RC test sources.
Chris@0 18511 objext=o
Chris@0 18512 objext_RC=$objext
Chris@0 18513
Chris@0 18514 # Code to be used in simple compile tests
Chris@0 18515 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
Chris@0 18516
Chris@0 18517 # Code to be used in simple link tests
Chris@0 18518 lt_simple_link_test_code="$lt_simple_compile_test_code"
Chris@0 18519
Chris@0 18520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@0 18521
Chris@0 18522 # If no C compiler was specified, use CC.
Chris@0 18523 LTCC=${LTCC-"$CC"}
Chris@0 18524
Chris@0 18525 # Allow CC to be a program name with arguments.
Chris@0 18526 compiler=$CC
Chris@0 18527
Chris@0 18528
Chris@0 18529 # Allow CC to be a program name with arguments.
Chris@0 18530 lt_save_CC="$CC"
Chris@0 18531 CC=${RC-"windres"}
Chris@0 18532 compiler=$CC
Chris@0 18533 compiler_RC=$CC
Chris@0 18534 lt_cv_prog_compiler_c_o_RC=yes
Chris@0 18535
Chris@0 18536 # The else clause should only fire when bootstrapping the
Chris@0 18537 # libtool distribution, otherwise you forgot to ship ltmain.sh
Chris@0 18538 # with your package, and you will get complaints that there are
Chris@0 18539 # no rules to generate ltmain.sh.
Chris@0 18540 if test -f "$ltmain"; then
Chris@0 18541 # See if we are running on zsh, and set the options which allow our commands through
Chris@0 18542 # without removal of \ escapes.
Chris@0 18543 if test -n "${ZSH_VERSION+set}" ; then
Chris@0 18544 setopt NO_GLOB_SUBST
Chris@0 18545 fi
Chris@0 18546 # Now quote all the things that may contain metacharacters while being
Chris@0 18547 # careful not to overquote the AC_SUBSTed values. We take copies of the
Chris@0 18548 # variables and quote the copies for generation of the libtool script.
Chris@0 18549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
Chris@0 18550 SED SHELL STRIP \
Chris@0 18551 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
Chris@0 18552 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
Chris@0 18553 deplibs_check_method reload_flag reload_cmds need_locks \
Chris@0 18554 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
Chris@0 18555 lt_cv_sys_global_symbol_to_c_name_address \
Chris@0 18556 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Chris@0 18557 old_postinstall_cmds old_postuninstall_cmds \
Chris@0 18558 compiler_RC \
Chris@0 18559 CC_RC \
Chris@0 18560 LD_RC \
Chris@0 18561 lt_prog_compiler_wl_RC \
Chris@0 18562 lt_prog_compiler_pic_RC \
Chris@0 18563 lt_prog_compiler_static_RC \
Chris@0 18564 lt_prog_compiler_no_builtin_flag_RC \
Chris@0 18565 export_dynamic_flag_spec_RC \
Chris@0 18566 thread_safe_flag_spec_RC \
Chris@0 18567 whole_archive_flag_spec_RC \
Chris@0 18568 enable_shared_with_static_runtimes_RC \
Chris@0 18569 old_archive_cmds_RC \
Chris@0 18570 old_archive_from_new_cmds_RC \
Chris@0 18571 predep_objects_RC \
Chris@0 18572 postdep_objects_RC \
Chris@0 18573 predeps_RC \
Chris@0 18574 postdeps_RC \
Chris@0 18575 compiler_lib_search_path_RC \
Chris@0 18576 archive_cmds_RC \
Chris@0 18577 archive_expsym_cmds_RC \
Chris@0 18578 postinstall_cmds_RC \
Chris@0 18579 postuninstall_cmds_RC \
Chris@0 18580 old_archive_from_expsyms_cmds_RC \
Chris@0 18581 allow_undefined_flag_RC \
Chris@0 18582 no_undefined_flag_RC \
Chris@0 18583 export_symbols_cmds_RC \
Chris@0 18584 hardcode_libdir_flag_spec_RC \
Chris@0 18585 hardcode_libdir_flag_spec_ld_RC \
Chris@0 18586 hardcode_libdir_separator_RC \
Chris@0 18587 hardcode_automatic_RC \
Chris@0 18588 module_cmds_RC \
Chris@0 18589 module_expsym_cmds_RC \
Chris@0 18590 lt_cv_prog_compiler_c_o_RC \
Chris@0 18591 exclude_expsyms_RC \
Chris@0 18592 include_expsyms_RC; do
Chris@0 18593
Chris@0 18594 case $var in
Chris@0 18595 old_archive_cmds_RC | \
Chris@0 18596 old_archive_from_new_cmds_RC | \
Chris@0 18597 archive_cmds_RC | \
Chris@0 18598 archive_expsym_cmds_RC | \
Chris@0 18599 module_cmds_RC | \
Chris@0 18600 module_expsym_cmds_RC | \
Chris@0 18601 old_archive_from_expsyms_cmds_RC | \
Chris@0 18602 export_symbols_cmds_RC | \
Chris@0 18603 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Chris@0 18604 postinstall_cmds | postuninstall_cmds | \
Chris@0 18605 old_postinstall_cmds | old_postuninstall_cmds | \
Chris@0 18606 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Chris@0 18607 # Double-quote double-evaled strings.
Chris@0 18608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
Chris@0 18609 ;;
Chris@0 18610 *)
Chris@0 18611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
Chris@0 18612 ;;
Chris@0 18613 esac
Chris@0 18614 done
Chris@0 18615
Chris@0 18616 case $lt_echo in
Chris@0 18617 *'\$0 --fallback-echo"')
Chris@0 18618 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
Chris@0 18619 ;;
Chris@0 18620 esac
Chris@0 18621
Chris@0 18622 cfgfile="$ofile"
Chris@0 18623
Chris@0 18624 cat <<__EOF__ >> "$cfgfile"
Chris@0 18625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
Chris@0 18626
Chris@0 18627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@0 18628
Chris@0 18629 # Shell to use when invoking shell scripts.
Chris@0 18630 SHELL=$lt_SHELL
Chris@0 18631
Chris@0 18632 # Whether or not to build shared libraries.
Chris@0 18633 build_libtool_libs=$enable_shared
Chris@0 18634
Chris@0 18635 # Whether or not to build static libraries.
Chris@0 18636 build_old_libs=$enable_static
Chris@0 18637
Chris@0 18638 # Whether or not to add -lc for building shared libraries.
Chris@0 18639 build_libtool_need_lc=$archive_cmds_need_lc_RC
Chris@0 18640
Chris@0 18641 # Whether or not to disallow shared libs when runtime libs are static
Chris@0 18642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
Chris@0 18643
Chris@0 18644 # Whether or not to optimize for fast installation.
Chris@0 18645 fast_install=$enable_fast_install
Chris@0 18646
Chris@0 18647 # The host system.
Chris@0 18648 host_alias=$host_alias
Chris@0 18649 host=$host
Chris@0 18650
Chris@0 18651 # An echo program that does not interpret backslashes.
Chris@0 18652 echo=$lt_echo
Chris@0 18653
Chris@0 18654 # The archiver.
Chris@0 18655 AR=$lt_AR
Chris@0 18656 AR_FLAGS=$lt_AR_FLAGS
Chris@0 18657
Chris@0 18658 # A C compiler.
Chris@0 18659 LTCC=$lt_LTCC
Chris@0 18660
Chris@0 18661 # A language-specific compiler.
Chris@0 18662 CC=$lt_compiler_RC
Chris@0 18663
Chris@0 18664 # Is the compiler the GNU C compiler?
Chris@0 18665 with_gcc=$GCC_RC
Chris@0 18666
Chris@0 18667 # An ERE matcher.
Chris@0 18668 EGREP=$lt_EGREP
Chris@0 18669
Chris@0 18670 # The linker used to build libraries.
Chris@0 18671 LD=$lt_LD_RC
Chris@0 18672
Chris@0 18673 # Whether we need hard or soft links.
Chris@0 18674 LN_S=$lt_LN_S
Chris@0 18675
Chris@0 18676 # A BSD-compatible nm program.
Chris@0 18677 NM=$lt_NM
Chris@0 18678
Chris@0 18679 # A symbol stripping program
Chris@0 18680 STRIP=$lt_STRIP
Chris@0 18681
Chris@0 18682 # Used to examine libraries when file_magic_cmd begins "file"
Chris@0 18683 MAGIC_CMD=$MAGIC_CMD
Chris@0 18684
Chris@0 18685 # Used on cygwin: DLL creation program.
Chris@0 18686 DLLTOOL="$DLLTOOL"
Chris@0 18687
Chris@0 18688 # Used on cygwin: object dumper.
Chris@0 18689 OBJDUMP="$OBJDUMP"
Chris@0 18690
Chris@0 18691 # Used on cygwin: assembler.
Chris@0 18692 AS="$AS"
Chris@0 18693
Chris@0 18694 # The name of the directory that contains temporary libtool files.
Chris@0 18695 objdir=$objdir
Chris@0 18696
Chris@0 18697 # How to create reloadable object files.
Chris@0 18698 reload_flag=$lt_reload_flag
Chris@0 18699 reload_cmds=$lt_reload_cmds
Chris@0 18700
Chris@0 18701 # How to pass a linker flag through the compiler.
Chris@0 18702 wl=$lt_lt_prog_compiler_wl_RC
Chris@0 18703
Chris@0 18704 # Object file suffix (normally "o").
Chris@0 18705 objext="$ac_objext"
Chris@0 18706
Chris@0 18707 # Old archive suffix (normally "a").
Chris@0 18708 libext="$libext"
Chris@0 18709
Chris@0 18710 # Shared library suffix (normally ".so").
Chris@0 18711 shrext='$shrext'
Chris@0 18712
Chris@0 18713 # Executable file suffix (normally "").
Chris@0 18714 exeext="$exeext"
Chris@0 18715
Chris@0 18716 # Additional compiler flags for building library objects.
Chris@0 18717 pic_flag=$lt_lt_prog_compiler_pic_RC
Chris@0 18718 pic_mode=$pic_mode
Chris@0 18719
Chris@0 18720 # What is the maximum length of a command?
Chris@0 18721 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@0 18722
Chris@0 18723 # Does compiler simultaneously support -c and -o options?
Chris@0 18724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
Chris@0 18725
Chris@0 18726 # Must we lock files when doing compilation ?
Chris@0 18727 need_locks=$lt_need_locks
Chris@0 18728
Chris@0 18729 # Do we need the lib prefix for modules?
Chris@0 18730 need_lib_prefix=$need_lib_prefix
Chris@0 18731
Chris@0 18732 # Do we need a version for libraries?
Chris@0 18733 need_version=$need_version
Chris@0 18734
Chris@0 18735 # Whether dlopen is supported.
Chris@0 18736 dlopen_support=$enable_dlopen
Chris@0 18737
Chris@0 18738 # Whether dlopen of programs is supported.
Chris@0 18739 dlopen_self=$enable_dlopen_self
Chris@0 18740
Chris@0 18741 # Whether dlopen of statically linked programs is supported.
Chris@0 18742 dlopen_self_static=$enable_dlopen_self_static
Chris@0 18743
Chris@0 18744 # Compiler flag to prevent dynamic linking.
Chris@0 18745 link_static_flag=$lt_lt_prog_compiler_static_RC
Chris@0 18746
Chris@0 18747 # Compiler flag to turn off builtin functions.
Chris@0 18748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
Chris@0 18749
Chris@0 18750 # Compiler flag to allow reflexive dlopens.
Chris@0 18751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
Chris@0 18752
Chris@0 18753 # Compiler flag to generate shared objects directly from archives.
Chris@0 18754 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
Chris@0 18755
Chris@0 18756 # Compiler flag to generate thread-safe objects.
Chris@0 18757 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
Chris@0 18758
Chris@0 18759 # Library versioning type.
Chris@0 18760 version_type=$version_type
Chris@0 18761
Chris@0 18762 # Format of library name prefix.
Chris@0 18763 libname_spec=$lt_libname_spec
Chris@0 18764
Chris@0 18765 # List of archive names. First name is the real one, the rest are links.
Chris@0 18766 # The last name is the one that the linker finds with -lNAME.
Chris@0 18767 library_names_spec=$lt_library_names_spec
Chris@0 18768
Chris@0 18769 # The coded name of the library, if different from the real name.
Chris@0 18770 soname_spec=$lt_soname_spec
Chris@0 18771
Chris@0 18772 # Commands used to build and install an old-style archive.
Chris@0 18773 RANLIB=$lt_RANLIB
Chris@0 18774 old_archive_cmds=$lt_old_archive_cmds_RC
Chris@0 18775 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@0 18776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@0 18777
Chris@0 18778 # Create an old-style archive from a shared archive.
Chris@0 18779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
Chris@0 18780
Chris@0 18781 # Create a temporary old-style archive to link instead of a shared archive.
Chris@0 18782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
Chris@0 18783
Chris@0 18784 # Commands used to build and install a shared archive.
Chris@0 18785 archive_cmds=$lt_archive_cmds_RC
Chris@0 18786 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
Chris@0 18787 postinstall_cmds=$lt_postinstall_cmds
Chris@0 18788 postuninstall_cmds=$lt_postuninstall_cmds
Chris@0 18789
Chris@0 18790 # Commands used to build a loadable module (assumed same as above if empty)
Chris@0 18791 module_cmds=$lt_module_cmds_RC
Chris@0 18792 module_expsym_cmds=$lt_module_expsym_cmds_RC
Chris@0 18793
Chris@0 18794 # Commands to strip libraries.
Chris@0 18795 old_striplib=$lt_old_striplib
Chris@0 18796 striplib=$lt_striplib
Chris@0 18797
Chris@0 18798 # Dependencies to place before the objects being linked to create a
Chris@0 18799 # shared library.
Chris@0 18800 predep_objects=$lt_predep_objects_RC
Chris@0 18801
Chris@0 18802 # Dependencies to place after the objects being linked to create a
Chris@0 18803 # shared library.
Chris@0 18804 postdep_objects=$lt_postdep_objects_RC
Chris@0 18805
Chris@0 18806 # Dependencies to place before the objects being linked to create a
Chris@0 18807 # shared library.
Chris@0 18808 predeps=$lt_predeps_RC
Chris@0 18809
Chris@0 18810 # Dependencies to place after the objects being linked to create a
Chris@0 18811 # shared library.
Chris@0 18812 postdeps=$lt_postdeps_RC
Chris@0 18813
Chris@0 18814 # The library search path used internally by the compiler when linking
Chris@0 18815 # a shared library.
Chris@0 18816 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
Chris@0 18817
Chris@0 18818 # Method to check whether dependent libraries are shared objects.
Chris@0 18819 deplibs_check_method=$lt_deplibs_check_method
Chris@0 18820
Chris@0 18821 # Command to use when deplibs_check_method == file_magic.
Chris@0 18822 file_magic_cmd=$lt_file_magic_cmd
Chris@0 18823
Chris@0 18824 # Flag that allows shared libraries with undefined symbols to be built.
Chris@0 18825 allow_undefined_flag=$lt_allow_undefined_flag_RC
Chris@0 18826
Chris@0 18827 # Flag that forces no undefined symbols.
Chris@0 18828 no_undefined_flag=$lt_no_undefined_flag_RC
Chris@0 18829
Chris@0 18830 # Commands used to finish a libtool library installation in a directory.
Chris@0 18831 finish_cmds=$lt_finish_cmds
Chris@0 18832
Chris@0 18833 # Same as above, but a single script fragment to be evaled but not shown.
Chris@0 18834 finish_eval=$lt_finish_eval
Chris@0 18835
Chris@0 18836 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@0 18837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@0 18838
Chris@0 18839 # Transform the output of nm in a proper C declaration
Chris@0 18840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@0 18841
Chris@0 18842 # Transform the output of nm in a C name address pair
Chris@0 18843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@0 18844
Chris@0 18845 # This is the shared library runtime path variable.
Chris@0 18846 runpath_var=$runpath_var
Chris@0 18847
Chris@0 18848 # This is the shared library path variable.
Chris@0 18849 shlibpath_var=$shlibpath_var
Chris@0 18850
Chris@0 18851 # Is shlibpath searched before the hard-coded library search path?
Chris@0 18852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@0 18853
Chris@0 18854 # How to hardcode a shared library path into an executable.
Chris@0 18855 hardcode_action=$hardcode_action_RC
Chris@0 18856
Chris@0 18857 # Whether we should hardcode library paths into libraries.
Chris@0 18858 hardcode_into_libs=$hardcode_into_libs
Chris@0 18859
Chris@0 18860 # Flag to hardcode \$libdir into a binary during linking.
Chris@0 18861 # This must work even if \$libdir does not exist.
Chris@0 18862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
Chris@0 18863
Chris@0 18864 # If ld is used when linking, flag to hardcode \$libdir into
Chris@0 18865 # a binary during linking. This must work even if \$libdir does
Chris@0 18866 # not exist.
Chris@0 18867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
Chris@0 18868
Chris@0 18869 # Whether we need a single -rpath flag with a separated argument.
Chris@0 18870 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
Chris@0 18871
Chris@0 18872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Chris@0 18873 # resulting binary.
Chris@0 18874 hardcode_direct=$hardcode_direct_RC
Chris@0 18875
Chris@0 18876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
Chris@0 18877 # resulting binary.
Chris@0 18878 hardcode_minus_L=$hardcode_minus_L_RC
Chris@0 18879
Chris@0 18880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
Chris@0 18881 # the resulting binary.
Chris@0 18882 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
Chris@0 18883
Chris@0 18884 # Set to yes if building a shared library automatically hardcodes DIR into the library
Chris@0 18885 # and all subsequent libraries and executables linked against it.
Chris@0 18886 hardcode_automatic=$hardcode_automatic_RC
Chris@0 18887
Chris@0 18888 # Variables whose values should be saved in libtool wrapper scripts and
Chris@0 18889 # restored at relink time.
Chris@0 18890 variables_saved_for_relink="$variables_saved_for_relink"
Chris@0 18891
Chris@0 18892 # Whether libtool must link a program against all its dependency libraries.
Chris@0 18893 link_all_deplibs=$link_all_deplibs_RC
Chris@0 18894
Chris@0 18895 # Compile-time system search path for libraries
Chris@0 18896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@0 18897
Chris@0 18898 # Run-time system search path for libraries
Chris@0 18899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@0 18900
Chris@0 18901 # Fix the shell variable \$srcfile for the compiler.
Chris@0 18902 fix_srcfile_path="$fix_srcfile_path_RC"
Chris@0 18903
Chris@0 18904 # Set to yes if exported symbols are required.
Chris@0 18905 always_export_symbols=$always_export_symbols_RC
Chris@0 18906
Chris@0 18907 # The commands to list exported symbols.
Chris@0 18908 export_symbols_cmds=$lt_export_symbols_cmds_RC
Chris@0 18909
Chris@0 18910 # The commands to extract the exported symbol list from a shared archive.
Chris@0 18911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@0 18912
Chris@0 18913 # Symbols that should not be listed in the preloaded symbols.
Chris@0 18914 exclude_expsyms=$lt_exclude_expsyms_RC
Chris@0 18915
Chris@0 18916 # Symbols that must always be exported.
Chris@0 18917 include_expsyms=$lt_include_expsyms_RC
Chris@0 18918
Chris@0 18919 # ### END LIBTOOL TAG CONFIG: $tagname
Chris@0 18920
Chris@0 18921 __EOF__
Chris@0 18922
Chris@0 18923
Chris@0 18924 else
Chris@0 18925 # If there is no Makefile yet, we rely on a make rule to execute
Chris@0 18926 # `config.status --recheck' to rerun these tests and create the
Chris@0 18927 # libtool script then.
Chris@0 18928 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
Chris@0 18929 if test -f "$ltmain_in"; then
Chris@0 18930 test -f Makefile && make "$ltmain"
Chris@0 18931 fi
Chris@0 18932 fi
Chris@0 18933
Chris@0 18934
Chris@0 18935 ac_ext=c
Chris@0 18936 ac_cpp='$CPP $CPPFLAGS'
Chris@0 18937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@0 18938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@0 18939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@0 18940
Chris@0 18941 CC="$lt_save_CC"
Chris@0 18942
Chris@0 18943 ;;
Chris@0 18944
Chris@0 18945 *)
Chris@0 18946 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
Chris@0 18947 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
Chris@0 18948 { (exit 1); exit 1; }; }
Chris@0 18949 ;;
Chris@0 18950 esac
Chris@0 18951
Chris@0 18952 # Append the new tag name to the list of available tags.
Chris@0 18953 if test -n "$tagname" ; then
Chris@0 18954 available_tags="$available_tags $tagname"
Chris@0 18955 fi
Chris@0 18956 fi
Chris@0 18957 done
Chris@0 18958 IFS="$lt_save_ifs"
Chris@0 18959
Chris@0 18960 # Now substitute the updated list of available tags.
Chris@0 18961 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
Chris@0 18962 mv "${ofile}T" "$ofile"
Chris@0 18963 chmod +x "$ofile"
Chris@0 18964 else
Chris@0 18965 rm -f "${ofile}T"
Chris@0 18966 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
Chris@0 18967 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
Chris@0 18968 { (exit 1); exit 1; }; }
Chris@0 18969 fi
Chris@0 18970 fi
Chris@0 18971
Chris@0 18972
Chris@0 18973
Chris@0 18974 # This can be used to rebuild libtool when needed
Chris@0 18975 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
Chris@0 18976
Chris@0 18977 # Always use our own libtool.
Chris@0 18978 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@0 18979
Chris@0 18980 # Prevent multiple expansion
Chris@0 18981
Chris@0 18982
Chris@0 18983
Chris@0 18984
Chris@0 18985
Chris@0 18986
Chris@0 18987
Chris@0 18988
Chris@0 18989
Chris@0 18990
Chris@0 18991
Chris@0 18992
Chris@0 18993
Chris@0 18994
Chris@0 18995
Chris@0 18996
Chris@0 18997
Chris@0 18998
Chris@0 18999
Chris@0 19000
Chris@0 19001
Chris@0 19002
Chris@0 19003
Chris@0 19004
Chris@0 19005 arch=""
Chris@0 19006 debug=""
Chris@0 19007 optimize=""
Chris@0 19008 profile=""
Chris@0 19009
Chris@0 19010 set -- $CFLAGS
Chris@0 19011 CFLAGS=""
Chris@0 19012
Chris@0 19013 if test "$GCC" = yes
Chris@0 19014 then
Chris@0 19015 CFLAGS="-Wall"
Chris@0 19016 fi
Chris@0 19017
Chris@0 19018 while test $# -gt 0
Chris@0 19019 do
Chris@0 19020 case "$1" in
Chris@0 19021 -Wall)
Chris@0 19022 if test "$GCC" = yes
Chris@0 19023 then
Chris@0 19024 :
Chris@0 19025 else
Chris@0 19026 CFLAGS="$CFLAGS $1"
Chris@0 19027 fi
Chris@0 19028 shift
Chris@0 19029 ;;
Chris@0 19030 -g)
Chris@0 19031 debug="-g"
Chris@0 19032 shift
Chris@0 19033 ;;
Chris@0 19034 -mno-cygwin)
Chris@0 19035 shift
Chris@0 19036 ;;
Chris@0 19037 -m*)
Chris@0 19038 arch="$arch $1"
Chris@0 19039 shift
Chris@0 19040 ;;
Chris@0 19041 -fomit-frame-pointer)
Chris@0 19042 shift
Chris@0 19043 ;;
Chris@0 19044 -O*|-f*)
Chris@0 19045 optimize="$1"
Chris@0 19046 shift
Chris@0 19047 ;;
Chris@0 19048 *)
Chris@0 19049 CFLAGS="$CFLAGS $1"
Chris@0 19050 shift
Chris@0 19051 ;;
Chris@0 19052 esac
Chris@0 19053 done
Chris@0 19054
Chris@0 19055
Chris@0 19056 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Chris@0 19057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
Chris@0 19058 if test "${ac_cv_header_stdc+set}" = set; then
Chris@0 19059 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19060 else
Chris@0 19061 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19062 /* confdefs.h. */
Chris@0 19063 _ACEOF
Chris@0 19064 cat confdefs.h >>conftest.$ac_ext
Chris@0 19065 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19066 /* end confdefs.h. */
Chris@0 19067 #include <stdlib.h>
Chris@0 19068 #include <stdarg.h>
Chris@0 19069 #include <string.h>
Chris@0 19070 #include <float.h>
Chris@0 19071
Chris@0 19072 int
Chris@0 19073 main ()
Chris@0 19074 {
Chris@0 19075
Chris@0 19076 ;
Chris@0 19077 return 0;
Chris@0 19078 }
Chris@0 19079 _ACEOF
Chris@0 19080 rm -f conftest.$ac_objext
Chris@0 19081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 19082 (eval $ac_compile) 2>conftest.er1
Chris@0 19083 ac_status=$?
Chris@0 19084 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19085 rm -f conftest.er1
Chris@0 19086 cat conftest.err >&5
Chris@0 19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19088 (exit $ac_status); } &&
Chris@0 19089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19091 (eval $ac_try) 2>&5
Chris@0 19092 ac_status=$?
Chris@0 19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19094 (exit $ac_status); }; } &&
Chris@0 19095 { ac_try='test -s conftest.$ac_objext'
Chris@0 19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19097 (eval $ac_try) 2>&5
Chris@0 19098 ac_status=$?
Chris@0 19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19100 (exit $ac_status); }; }; then
Chris@0 19101 ac_cv_header_stdc=yes
Chris@0 19102 else
Chris@0 19103 echo "$as_me: failed program was:" >&5
Chris@0 19104 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19105
Chris@0 19106 ac_cv_header_stdc=no
Chris@0 19107 fi
Chris@0 19108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 19109
Chris@0 19110 if test $ac_cv_header_stdc = yes; then
Chris@0 19111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@0 19112 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19113 /* confdefs.h. */
Chris@0 19114 _ACEOF
Chris@0 19115 cat confdefs.h >>conftest.$ac_ext
Chris@0 19116 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19117 /* end confdefs.h. */
Chris@0 19118 #include <string.h>
Chris@0 19119
Chris@0 19120 _ACEOF
Chris@0 19121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@0 19122 $EGREP "memchr" >/dev/null 2>&1; then
Chris@0 19123 :
Chris@0 19124 else
Chris@0 19125 ac_cv_header_stdc=no
Chris@0 19126 fi
Chris@0 19127 rm -f conftest*
Chris@0 19128
Chris@0 19129 fi
Chris@0 19130
Chris@0 19131 if test $ac_cv_header_stdc = yes; then
Chris@0 19132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@0 19133 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19134 /* confdefs.h. */
Chris@0 19135 _ACEOF
Chris@0 19136 cat confdefs.h >>conftest.$ac_ext
Chris@0 19137 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19138 /* end confdefs.h. */
Chris@0 19139 #include <stdlib.h>
Chris@0 19140
Chris@0 19141 _ACEOF
Chris@0 19142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@0 19143 $EGREP "free" >/dev/null 2>&1; then
Chris@0 19144 :
Chris@0 19145 else
Chris@0 19146 ac_cv_header_stdc=no
Chris@0 19147 fi
Chris@0 19148 rm -f conftest*
Chris@0 19149
Chris@0 19150 fi
Chris@0 19151
Chris@0 19152 if test $ac_cv_header_stdc = yes; then
Chris@0 19153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@0 19154 if test "$cross_compiling" = yes; then
Chris@0 19155 :
Chris@0 19156 else
Chris@0 19157 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19158 /* confdefs.h. */
Chris@0 19159 _ACEOF
Chris@0 19160 cat confdefs.h >>conftest.$ac_ext
Chris@0 19161 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19162 /* end confdefs.h. */
Chris@0 19163 #include <ctype.h>
Chris@0 19164 #if ((' ' & 0x0FF) == 0x020)
Chris@0 19165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@0 19166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@0 19167 #else
Chris@0 19168 # define ISLOWER(c) \
Chris@0 19169 (('a' <= (c) && (c) <= 'i') \
Chris@0 19170 || ('j' <= (c) && (c) <= 'r') \
Chris@0 19171 || ('s' <= (c) && (c) <= 'z'))
Chris@0 19172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@0 19173 #endif
Chris@0 19174
Chris@0 19175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@0 19176 int
Chris@0 19177 main ()
Chris@0 19178 {
Chris@0 19179 int i;
Chris@0 19180 for (i = 0; i < 256; i++)
Chris@0 19181 if (XOR (islower (i), ISLOWER (i))
Chris@0 19182 || toupper (i) != TOUPPER (i))
Chris@0 19183 exit(2);
Chris@0 19184 exit (0);
Chris@0 19185 }
Chris@0 19186 _ACEOF
Chris@0 19187 rm -f conftest$ac_exeext
Chris@0 19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 19189 (eval $ac_link) 2>&5
Chris@0 19190 ac_status=$?
Chris@0 19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Chris@0 19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19194 (eval $ac_try) 2>&5
Chris@0 19195 ac_status=$?
Chris@0 19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19197 (exit $ac_status); }; }; then
Chris@0 19198 :
Chris@0 19199 else
Chris@0 19200 echo "$as_me: program exited with status $ac_status" >&5
Chris@0 19201 echo "$as_me: failed program was:" >&5
Chris@0 19202 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19203
Chris@0 19204 ( exit $ac_status )
Chris@0 19205 ac_cv_header_stdc=no
Chris@0 19206 fi
Chris@0 19207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Chris@0 19208 fi
Chris@0 19209 fi
Chris@0 19210 fi
Chris@0 19211 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Chris@0 19212 echo "${ECHO_T}$ac_cv_header_stdc" >&6
Chris@0 19213 if test $ac_cv_header_stdc = yes; then
Chris@0 19214
Chris@0 19215 cat >>confdefs.h <<\_ACEOF
Chris@0 19216 #define STDC_HEADERS 1
Chris@0 19217 _ACEOF
Chris@0 19218
Chris@0 19219 fi
Chris@0 19220
Chris@0 19221
Chris@0 19222
Chris@0 19223 for ac_header in assert.h unistd.h
Chris@0 19224 do
Chris@0 19225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@0 19226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
Chris@0 19227 echo "$as_me:$LINENO: checking for $ac_header" >&5
Chris@0 19228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
Chris@0 19229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
Chris@0 19230 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19231 fi
Chris@0 19232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Chris@0 19233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Chris@0 19234 else
Chris@0 19235 # Is the header compilable?
Chris@0 19236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
Chris@0 19237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Chris@0 19238 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19239 /* confdefs.h. */
Chris@0 19240 _ACEOF
Chris@0 19241 cat confdefs.h >>conftest.$ac_ext
Chris@0 19242 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19243 /* end confdefs.h. */
Chris@0 19244 $ac_includes_default
Chris@0 19245 #include <$ac_header>
Chris@0 19246 _ACEOF
Chris@0 19247 rm -f conftest.$ac_objext
Chris@0 19248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 19249 (eval $ac_compile) 2>conftest.er1
Chris@0 19250 ac_status=$?
Chris@0 19251 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19252 rm -f conftest.er1
Chris@0 19253 cat conftest.err >&5
Chris@0 19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19255 (exit $ac_status); } &&
Chris@0 19256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19258 (eval $ac_try) 2>&5
Chris@0 19259 ac_status=$?
Chris@0 19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19261 (exit $ac_status); }; } &&
Chris@0 19262 { ac_try='test -s conftest.$ac_objext'
Chris@0 19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19264 (eval $ac_try) 2>&5
Chris@0 19265 ac_status=$?
Chris@0 19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19267 (exit $ac_status); }; }; then
Chris@0 19268 ac_header_compiler=yes
Chris@0 19269 else
Chris@0 19270 echo "$as_me: failed program was:" >&5
Chris@0 19271 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19272
Chris@0 19273 ac_header_compiler=no
Chris@0 19274 fi
Chris@0 19275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 19276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
Chris@0 19277 echo "${ECHO_T}$ac_header_compiler" >&6
Chris@0 19278
Chris@0 19279 # Is the header present?
Chris@0 19280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
Chris@0 19281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Chris@0 19282 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19283 /* confdefs.h. */
Chris@0 19284 _ACEOF
Chris@0 19285 cat confdefs.h >>conftest.$ac_ext
Chris@0 19286 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19287 /* end confdefs.h. */
Chris@0 19288 #include <$ac_header>
Chris@0 19289 _ACEOF
Chris@0 19290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 19291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 19292 ac_status=$?
Chris@0 19293 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19294 rm -f conftest.er1
Chris@0 19295 cat conftest.err >&5
Chris@0 19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19297 (exit $ac_status); } >/dev/null; then
Chris@0 19298 if test -s conftest.err; then
Chris@0 19299 ac_cpp_err=$ac_c_preproc_warn_flag
Chris@0 19300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Chris@0 19301 else
Chris@0 19302 ac_cpp_err=
Chris@0 19303 fi
Chris@0 19304 else
Chris@0 19305 ac_cpp_err=yes
Chris@0 19306 fi
Chris@0 19307 if test -z "$ac_cpp_err"; then
Chris@0 19308 ac_header_preproc=yes
Chris@0 19309 else
Chris@0 19310 echo "$as_me: failed program was:" >&5
Chris@0 19311 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19312
Chris@0 19313 ac_header_preproc=no
Chris@0 19314 fi
Chris@0 19315 rm -f conftest.err conftest.$ac_ext
Chris@0 19316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
Chris@0 19317 echo "${ECHO_T}$ac_header_preproc" >&6
Chris@0 19318
Chris@0 19319 # So? What about this header?
Chris@0 19320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
Chris@0 19321 yes:no: )
Chris@0 19322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@0 19323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@0 19324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
Chris@0 19325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Chris@0 19326 ac_header_preproc=yes
Chris@0 19327 ;;
Chris@0 19328 no:yes:* )
Chris@0 19329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
Chris@0 19330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Chris@0 19331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
Chris@0 19332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
Chris@0 19333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
Chris@0 19334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
Chris@0 19335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
Chris@0 19336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@0 19337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Chris@0 19338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Chris@0 19339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
Chris@0 19340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Chris@0 19341 (
Chris@0 19342 cat <<\_ASBOX
Chris@0 19343 ## ----------------------------------- ##
Chris@0 19344 ## Report this to support@underbit.com ##
Chris@0 19345 ## ----------------------------------- ##
Chris@0 19346 _ASBOX
Chris@0 19347 ) |
Chris@0 19348 sed "s/^/$as_me: WARNING: /" >&2
Chris@0 19349 ;;
Chris@0 19350 esac
Chris@0 19351 echo "$as_me:$LINENO: checking for $ac_header" >&5
Chris@0 19352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
Chris@0 19353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
Chris@0 19354 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19355 else
Chris@0 19356 eval "$as_ac_Header=\$ac_header_preproc"
Chris@0 19357 fi
Chris@0 19358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Chris@0 19359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Chris@0 19360
Chris@0 19361 fi
Chris@0 19362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@0 19363 cat >>confdefs.h <<_ACEOF
Chris@0 19364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@0 19365 _ACEOF
Chris@0 19366
Chris@0 19367 fi
Chris@0 19368
Chris@0 19369 done
Chris@0 19370
Chris@0 19371
Chris@0 19372 if test "${ac_cv_header_zlib_h+set}" = set; then
Chris@0 19373 echo "$as_me:$LINENO: checking for zlib.h" >&5
Chris@0 19374 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
Chris@0 19375 if test "${ac_cv_header_zlib_h+set}" = set; then
Chris@0 19376 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19377 fi
Chris@0 19378 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
Chris@0 19379 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
Chris@0 19380 else
Chris@0 19381 # Is the header compilable?
Chris@0 19382 echo "$as_me:$LINENO: checking zlib.h usability" >&5
Chris@0 19383 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
Chris@0 19384 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19385 /* confdefs.h. */
Chris@0 19386 _ACEOF
Chris@0 19387 cat confdefs.h >>conftest.$ac_ext
Chris@0 19388 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19389 /* end confdefs.h. */
Chris@0 19390 $ac_includes_default
Chris@0 19391 #include <zlib.h>
Chris@0 19392 _ACEOF
Chris@0 19393 rm -f conftest.$ac_objext
Chris@0 19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 19395 (eval $ac_compile) 2>conftest.er1
Chris@0 19396 ac_status=$?
Chris@0 19397 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19398 rm -f conftest.er1
Chris@0 19399 cat conftest.err >&5
Chris@0 19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19401 (exit $ac_status); } &&
Chris@0 19402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19404 (eval $ac_try) 2>&5
Chris@0 19405 ac_status=$?
Chris@0 19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19407 (exit $ac_status); }; } &&
Chris@0 19408 { ac_try='test -s conftest.$ac_objext'
Chris@0 19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19410 (eval $ac_try) 2>&5
Chris@0 19411 ac_status=$?
Chris@0 19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19413 (exit $ac_status); }; }; then
Chris@0 19414 ac_header_compiler=yes
Chris@0 19415 else
Chris@0 19416 echo "$as_me: failed program was:" >&5
Chris@0 19417 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19418
Chris@0 19419 ac_header_compiler=no
Chris@0 19420 fi
Chris@0 19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 19422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
Chris@0 19423 echo "${ECHO_T}$ac_header_compiler" >&6
Chris@0 19424
Chris@0 19425 # Is the header present?
Chris@0 19426 echo "$as_me:$LINENO: checking zlib.h presence" >&5
Chris@0 19427 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
Chris@0 19428 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19429 /* confdefs.h. */
Chris@0 19430 _ACEOF
Chris@0 19431 cat confdefs.h >>conftest.$ac_ext
Chris@0 19432 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19433 /* end confdefs.h. */
Chris@0 19434 #include <zlib.h>
Chris@0 19435 _ACEOF
Chris@0 19436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Chris@0 19437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Chris@0 19438 ac_status=$?
Chris@0 19439 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19440 rm -f conftest.er1
Chris@0 19441 cat conftest.err >&5
Chris@0 19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19443 (exit $ac_status); } >/dev/null; then
Chris@0 19444 if test -s conftest.err; then
Chris@0 19445 ac_cpp_err=$ac_c_preproc_warn_flag
Chris@0 19446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Chris@0 19447 else
Chris@0 19448 ac_cpp_err=
Chris@0 19449 fi
Chris@0 19450 else
Chris@0 19451 ac_cpp_err=yes
Chris@0 19452 fi
Chris@0 19453 if test -z "$ac_cpp_err"; then
Chris@0 19454 ac_header_preproc=yes
Chris@0 19455 else
Chris@0 19456 echo "$as_me: failed program was:" >&5
Chris@0 19457 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19458
Chris@0 19459 ac_header_preproc=no
Chris@0 19460 fi
Chris@0 19461 rm -f conftest.err conftest.$ac_ext
Chris@0 19462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
Chris@0 19463 echo "${ECHO_T}$ac_header_preproc" >&6
Chris@0 19464
Chris@0 19465 # So? What about this header?
Chris@0 19466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
Chris@0 19467 yes:no: )
Chris@0 19468 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@0 19469 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@0 19470 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
Chris@0 19471 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
Chris@0 19472 ac_header_preproc=yes
Chris@0 19473 ;;
Chris@0 19474 no:yes:* )
Chris@0 19475 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
Chris@0 19476 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
Chris@0 19477 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
Chris@0 19478 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
Chris@0 19479 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
Chris@0 19480 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
Chris@0 19481 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
Chris@0 19482 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@0 19483 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
Chris@0 19484 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
Chris@0 19485 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
Chris@0 19486 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
Chris@0 19487 (
Chris@0 19488 cat <<\_ASBOX
Chris@0 19489 ## ----------------------------------- ##
Chris@0 19490 ## Report this to support@underbit.com ##
Chris@0 19491 ## ----------------------------------- ##
Chris@0 19492 _ASBOX
Chris@0 19493 ) |
Chris@0 19494 sed "s/^/$as_me: WARNING: /" >&2
Chris@0 19495 ;;
Chris@0 19496 esac
Chris@0 19497 echo "$as_me:$LINENO: checking for zlib.h" >&5
Chris@0 19498 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
Chris@0 19499 if test "${ac_cv_header_zlib_h+set}" = set; then
Chris@0 19500 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19501 else
Chris@0 19502 ac_cv_header_zlib_h=$ac_header_preproc
Chris@0 19503 fi
Chris@0 19504 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
Chris@0 19505 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
Chris@0 19506
Chris@0 19507 fi
Chris@0 19508 if test $ac_cv_header_zlib_h = yes; then
Chris@0 19509 :
Chris@0 19510 else
Chris@0 19511
Chris@0 19512 { { echo "$as_me:$LINENO: error: zlib.h was not found
Chris@0 19513 *** You must first install zlib (libz) before you can build this package.
Chris@0 19514 *** If zlib is already installed, you may need to use the CPPFLAGS
Chris@0 19515 *** environment variable to specify its installed location, e.g. -I<dir>." >&5
Chris@0 19516 echo "$as_me: error: zlib.h was not found
Chris@0 19517 *** You must first install zlib (libz) before you can build this package.
Chris@0 19518 *** If zlib is already installed, you may need to use the CPPFLAGS
Chris@0 19519 *** environment variable to specify its installed location, e.g. -I<dir>." >&2;}
Chris@0 19520 { (exit 1); exit 1; }; }
Chris@0 19521
Chris@0 19522 fi
Chris@0 19523
Chris@0 19524
Chris@0 19525
Chris@0 19526
Chris@0 19527 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Chris@0 19528 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
Chris@0 19529 if test "${ac_cv_c_const+set}" = set; then
Chris@0 19530 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19531 else
Chris@0 19532 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19533 /* confdefs.h. */
Chris@0 19534 _ACEOF
Chris@0 19535 cat confdefs.h >>conftest.$ac_ext
Chris@0 19536 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19537 /* end confdefs.h. */
Chris@0 19538
Chris@0 19539 int
Chris@0 19540 main ()
Chris@0 19541 {
Chris@0 19542 /* FIXME: Include the comments suggested by Paul. */
Chris@0 19543 #ifndef __cplusplus
Chris@0 19544 /* Ultrix mips cc rejects this. */
Chris@0 19545 typedef int charset[2];
Chris@0 19546 const charset x;
Chris@0 19547 /* SunOS 4.1.1 cc rejects this. */
Chris@0 19548 char const *const *ccp;
Chris@0 19549 char **p;
Chris@0 19550 /* NEC SVR4.0.2 mips cc rejects this. */
Chris@0 19551 struct point {int x, y;};
Chris@0 19552 static struct point const zero = {0,0};
Chris@0 19553 /* AIX XL C 1.02.0.0 rejects this.
Chris@0 19554 It does not let you subtract one const X* pointer from another in
Chris@0 19555 an arm of an if-expression whose if-part is not a constant
Chris@0 19556 expression */
Chris@0 19557 const char *g = "string";
Chris@0 19558 ccp = &g + (g ? g-g : 0);
Chris@0 19559 /* HPUX 7.0 cc rejects these. */
Chris@0 19560 ++ccp;
Chris@0 19561 p = (char**) ccp;
Chris@0 19562 ccp = (char const *const *) p;
Chris@0 19563 { /* SCO 3.2v4 cc rejects this. */
Chris@0 19564 char *t;
Chris@0 19565 char const *s = 0 ? (char *) 0 : (char const *) 0;
Chris@0 19566
Chris@0 19567 *t++ = 0;
Chris@0 19568 }
Chris@0 19569 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Chris@0 19570 int x[] = {25, 17};
Chris@0 19571 const int *foo = &x[0];
Chris@0 19572 ++foo;
Chris@0 19573 }
Chris@0 19574 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
Chris@0 19575 typedef const int *iptr;
Chris@0 19576 iptr p = 0;
Chris@0 19577 ++p;
Chris@0 19578 }
Chris@0 19579 { /* AIX XL C 1.02.0.0 rejects this saying
Chris@0 19580 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Chris@0 19581 struct s { int j; const int *ap[3]; };
Chris@0 19582 struct s *b; b->j = 5;
Chris@0 19583 }
Chris@0 19584 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
Chris@0 19585 const int foo = 10;
Chris@0 19586 }
Chris@0 19587 #endif
Chris@0 19588
Chris@0 19589 ;
Chris@0 19590 return 0;
Chris@0 19591 }
Chris@0 19592 _ACEOF
Chris@0 19593 rm -f conftest.$ac_objext
Chris@0 19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 19595 (eval $ac_compile) 2>conftest.er1
Chris@0 19596 ac_status=$?
Chris@0 19597 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19598 rm -f conftest.er1
Chris@0 19599 cat conftest.err >&5
Chris@0 19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19601 (exit $ac_status); } &&
Chris@0 19602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19604 (eval $ac_try) 2>&5
Chris@0 19605 ac_status=$?
Chris@0 19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19607 (exit $ac_status); }; } &&
Chris@0 19608 { ac_try='test -s conftest.$ac_objext'
Chris@0 19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19610 (eval $ac_try) 2>&5
Chris@0 19611 ac_status=$?
Chris@0 19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19613 (exit $ac_status); }; }; then
Chris@0 19614 ac_cv_c_const=yes
Chris@0 19615 else
Chris@0 19616 echo "$as_me: failed program was:" >&5
Chris@0 19617 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19618
Chris@0 19619 ac_cv_c_const=no
Chris@0 19620 fi
Chris@0 19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 19622 fi
Chris@0 19623 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Chris@0 19624 echo "${ECHO_T}$ac_cv_c_const" >&6
Chris@0 19625 if test $ac_cv_c_const = no; then
Chris@0 19626
Chris@0 19627 cat >>confdefs.h <<\_ACEOF
Chris@0 19628 #define const
Chris@0 19629 _ACEOF
Chris@0 19630
Chris@0 19631 fi
Chris@0 19632
Chris@0 19633 echo "$as_me:$LINENO: checking for inline" >&5
Chris@0 19634 echo $ECHO_N "checking for inline... $ECHO_C" >&6
Chris@0 19635 if test "${ac_cv_c_inline+set}" = set; then
Chris@0 19636 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19637 else
Chris@0 19638 ac_cv_c_inline=no
Chris@0 19639 for ac_kw in inline __inline__ __inline; do
Chris@0 19640 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19641 /* confdefs.h. */
Chris@0 19642 _ACEOF
Chris@0 19643 cat confdefs.h >>conftest.$ac_ext
Chris@0 19644 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19645 /* end confdefs.h. */
Chris@0 19646 #ifndef __cplusplus
Chris@0 19647 typedef int foo_t;
Chris@0 19648 static $ac_kw foo_t static_foo () {return 0; }
Chris@0 19649 $ac_kw foo_t foo () {return 0; }
Chris@0 19650 #endif
Chris@0 19651
Chris@0 19652 _ACEOF
Chris@0 19653 rm -f conftest.$ac_objext
Chris@0 19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris@0 19655 (eval $ac_compile) 2>conftest.er1
Chris@0 19656 ac_status=$?
Chris@0 19657 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19658 rm -f conftest.er1
Chris@0 19659 cat conftest.err >&5
Chris@0 19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19661 (exit $ac_status); } &&
Chris@0 19662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19664 (eval $ac_try) 2>&5
Chris@0 19665 ac_status=$?
Chris@0 19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19667 (exit $ac_status); }; } &&
Chris@0 19668 { ac_try='test -s conftest.$ac_objext'
Chris@0 19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19670 (eval $ac_try) 2>&5
Chris@0 19671 ac_status=$?
Chris@0 19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19673 (exit $ac_status); }; }; then
Chris@0 19674 ac_cv_c_inline=$ac_kw; break
Chris@0 19675 else
Chris@0 19676 echo "$as_me: failed program was:" >&5
Chris@0 19677 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19678
Chris@0 19679 fi
Chris@0 19680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@0 19681 done
Chris@0 19682
Chris@0 19683 fi
Chris@0 19684 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Chris@0 19685 echo "${ECHO_T}$ac_cv_c_inline" >&6
Chris@0 19686
Chris@0 19687
Chris@0 19688 case $ac_cv_c_inline in
Chris@0 19689 inline | yes) ;;
Chris@0 19690 *)
Chris@0 19691 case $ac_cv_c_inline in
Chris@0 19692 no) ac_val=;;
Chris@0 19693 *) ac_val=$ac_cv_c_inline;;
Chris@0 19694 esac
Chris@0 19695 cat >>confdefs.h <<_ACEOF
Chris@0 19696 #ifndef __cplusplus
Chris@0 19697 #define inline $ac_val
Chris@0 19698 #endif
Chris@0 19699 _ACEOF
Chris@0 19700 ;;
Chris@0 19701 esac
Chris@0 19702
Chris@0 19703
Chris@0 19704
Chris@0 19705
Chris@0 19706 for ac_func in ftruncate
Chris@0 19707 do
Chris@0 19708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@0 19709 echo "$as_me:$LINENO: checking for $ac_func" >&5
Chris@0 19710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
Chris@0 19711 if eval "test \"\${$as_ac_var+set}\" = set"; then
Chris@0 19712 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19713 else
Chris@0 19714 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19715 /* confdefs.h. */
Chris@0 19716 _ACEOF
Chris@0 19717 cat confdefs.h >>conftest.$ac_ext
Chris@0 19718 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19719 /* end confdefs.h. */
Chris@0 19720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
Chris@0 19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@0 19722 #define $ac_func innocuous_$ac_func
Chris@0 19723
Chris@0 19724 /* System header to define __stub macros and hopefully few prototypes,
Chris@0 19725 which can conflict with char $ac_func (); below.
Chris@0 19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@0 19727 <limits.h> exists even on freestanding compilers. */
Chris@0 19728
Chris@0 19729 #ifdef __STDC__
Chris@0 19730 # include <limits.h>
Chris@0 19731 #else
Chris@0 19732 # include <assert.h>
Chris@0 19733 #endif
Chris@0 19734
Chris@0 19735 #undef $ac_func
Chris@0 19736
Chris@0 19737 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 19738 #ifdef __cplusplus
Chris@0 19739 extern "C"
Chris@0 19740 {
Chris@0 19741 #endif
Chris@0 19742 /* We use char because int might match the return type of a gcc2
Chris@0 19743 builtin and then its argument prototype would still apply. */
Chris@0 19744 char $ac_func ();
Chris@0 19745 /* The GNU C library defines this for functions which it implements
Chris@0 19746 to always fail with ENOSYS. Some functions are actually named
Chris@0 19747 something starting with __ and the normal name is an alias. */
Chris@0 19748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Chris@0 19749 choke me
Chris@0 19750 #else
Chris@0 19751 char (*f) () = $ac_func;
Chris@0 19752 #endif
Chris@0 19753 #ifdef __cplusplus
Chris@0 19754 }
Chris@0 19755 #endif
Chris@0 19756
Chris@0 19757 int
Chris@0 19758 main ()
Chris@0 19759 {
Chris@0 19760 return f != $ac_func;
Chris@0 19761 ;
Chris@0 19762 return 0;
Chris@0 19763 }
Chris@0 19764 _ACEOF
Chris@0 19765 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 19767 (eval $ac_link) 2>conftest.er1
Chris@0 19768 ac_status=$?
Chris@0 19769 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19770 rm -f conftest.er1
Chris@0 19771 cat conftest.err >&5
Chris@0 19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19773 (exit $ac_status); } &&
Chris@0 19774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19776 (eval $ac_try) 2>&5
Chris@0 19777 ac_status=$?
Chris@0 19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19779 (exit $ac_status); }; } &&
Chris@0 19780 { ac_try='test -s conftest$ac_exeext'
Chris@0 19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19782 (eval $ac_try) 2>&5
Chris@0 19783 ac_status=$?
Chris@0 19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19785 (exit $ac_status); }; }; then
Chris@0 19786 eval "$as_ac_var=yes"
Chris@0 19787 else
Chris@0 19788 echo "$as_me: failed program was:" >&5
Chris@0 19789 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19790
Chris@0 19791 eval "$as_ac_var=no"
Chris@0 19792 fi
Chris@0 19793 rm -f conftest.err conftest.$ac_objext \
Chris@0 19794 conftest$ac_exeext conftest.$ac_ext
Chris@0 19795 fi
Chris@0 19796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Chris@0 19797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
Chris@0 19798 if test `eval echo '${'$as_ac_var'}'` = yes; then
Chris@0 19799 cat >>confdefs.h <<_ACEOF
Chris@0 19800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@0 19801 _ACEOF
Chris@0 19802
Chris@0 19803 fi
Chris@0 19804 done
Chris@0 19805
Chris@0 19806
Chris@0 19807
Chris@0 19808 echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
Chris@0 19809 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6
Chris@0 19810 if test "${ac_cv_lib_z_compress2+set}" = set; then
Chris@0 19811 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@0 19812 else
Chris@0 19813 ac_check_lib_save_LIBS=$LIBS
Chris@0 19814 LIBS="-lz $LIBS"
Chris@0 19815 cat >conftest.$ac_ext <<_ACEOF
Chris@0 19816 /* confdefs.h. */
Chris@0 19817 _ACEOF
Chris@0 19818 cat confdefs.h >>conftest.$ac_ext
Chris@0 19819 cat >>conftest.$ac_ext <<_ACEOF
Chris@0 19820 /* end confdefs.h. */
Chris@0 19821
Chris@0 19822 /* Override any gcc2 internal prototype to avoid an error. */
Chris@0 19823 #ifdef __cplusplus
Chris@0 19824 extern "C"
Chris@0 19825 #endif
Chris@0 19826 /* We use char because int might match the return type of a gcc2
Chris@0 19827 builtin and then its argument prototype would still apply. */
Chris@0 19828 char compress2 ();
Chris@0 19829 int
Chris@0 19830 main ()
Chris@0 19831 {
Chris@0 19832 compress2 ();
Chris@0 19833 ;
Chris@0 19834 return 0;
Chris@0 19835 }
Chris@0 19836 _ACEOF
Chris@0 19837 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@0 19838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Chris@0 19839 (eval $ac_link) 2>conftest.er1
Chris@0 19840 ac_status=$?
Chris@0 19841 grep -v '^ *+' conftest.er1 >conftest.err
Chris@0 19842 rm -f conftest.er1
Chris@0 19843 cat conftest.err >&5
Chris@0 19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19845 (exit $ac_status); } &&
Chris@0 19846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
Chris@0 19847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19848 (eval $ac_try) 2>&5
Chris@0 19849 ac_status=$?
Chris@0 19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19851 (exit $ac_status); }; } &&
Chris@0 19852 { ac_try='test -s conftest$ac_exeext'
Chris@0 19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris@0 19854 (eval $ac_try) 2>&5
Chris@0 19855 ac_status=$?
Chris@0 19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@0 19857 (exit $ac_status); }; }; then
Chris@0 19858 ac_cv_lib_z_compress2=yes
Chris@0 19859 else
Chris@0 19860 echo "$as_me: failed program was:" >&5
Chris@0 19861 sed 's/^/| /' conftest.$ac_ext >&5
Chris@0 19862
Chris@0 19863 ac_cv_lib_z_compress2=no
Chris@0 19864 fi
Chris@0 19865 rm -f conftest.err conftest.$ac_objext \
Chris@0 19866 conftest$ac_exeext conftest.$ac_ext
Chris@0 19867 LIBS=$ac_check_lib_save_LIBS
Chris@0 19868 fi
Chris@0 19869 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
Chris@0 19870 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6
Chris@0 19871 if test $ac_cv_lib_z_compress2 = yes; then
Chris@0 19872 cat >>confdefs.h <<_ACEOF
Chris@0 19873 #define HAVE_LIBZ 1
Chris@0 19874 _ACEOF
Chris@0 19875
Chris@0 19876 LIBS="-lz $LIBS"
Chris@0 19877
Chris@0 19878 else
Chris@0 19879
Chris@0 19880 { { echo "$as_me:$LINENO: error: libz was not found
Chris@0 19881 *** You must first install zlib (libz) before you can build this package.
Chris@0 19882 *** If zlib is already installed, you may need to use the LDFLAGS
Chris@0 19883 *** environment variable to specify its installed location, e.g. -L<dir>." >&5
Chris@0 19884 echo "$as_me: error: libz was not found
Chris@0 19885 *** You must first install zlib (libz) before you can build this package.
Chris@0 19886 *** If zlib is already installed, you may need to use the LDFLAGS
Chris@0 19887 *** environment variable to specify its installed location, e.g. -L<dir>." >&2;}
Chris@0 19888 { (exit 1); exit 1; }; }
Chris@0 19889
Chris@0 19890 fi
Chris@0 19891
Chris@0 19892
Chris@0 19893
Chris@0 19894 cat >confcache <<\_ACEOF
Chris@0 19895 # This file is a shell script that caches the results of configure
Chris@0 19896 # tests run on this system so they can be shared between configure
Chris@0 19897 # scripts and configure runs, see configure's option --config-cache.
Chris@0 19898 # It is not useful on other systems. If it contains results you don't
Chris@0 19899 # want to keep, you may remove or edit it.
Chris@0 19900 #
Chris@0 19901 # config.status only pays attention to the cache file if you give it
Chris@0 19902 # the --recheck option to rerun configure.
Chris@0 19903 #
Chris@0 19904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@0 19905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@0 19906 # following values.
Chris@0 19907
Chris@0 19908 _ACEOF
Chris@0 19909
Chris@0 19910 # The following way of writing the cache mishandles newlines in values,
Chris@0 19911 # but we know of no workaround that is simple, portable, and efficient.
Chris@0 19912 # So, don't put newlines in cache variables' values.
Chris@0 19913 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@0 19914 # and sets the high bit in the cache file unless we assign to the vars.
Chris@0 19915 {
Chris@0 19916 (set) 2>&1 |
Chris@0 19917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Chris@0 19918 *ac_space=\ *)
Chris@0 19919 # `set' does not quote correctly, so add quotes (double-quote
Chris@0 19920 # substitution turns \\\\ into \\, and sed turns \\ into \).
Chris@0 19921 sed -n \
Chris@0 19922 "s/'/'\\\\''/g;
Chris@0 19923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@0 19924 ;;
Chris@0 19925 *)
Chris@0 19926 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@0 19927 sed -n \
Chris@0 19928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Chris@0 19929 ;;
Chris@0 19930 esac;
Chris@0 19931 } |
Chris@0 19932 sed '
Chris@0 19933 t clear
Chris@0 19934 : clear
Chris@0 19935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@0 19936 t end
Chris@0 19937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@0 19938 : end' >>confcache
Chris@0 19939 if diff $cache_file confcache >/dev/null 2>&1; then :; else
Chris@0 19940 if test -w $cache_file; then
Chris@0 19941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
Chris@0 19942 cat confcache >$cache_file
Chris@0 19943 else
Chris@0 19944 echo "not updating unwritable cache $cache_file"
Chris@0 19945 fi
Chris@0 19946 fi
Chris@0 19947 rm -f confcache
Chris@0 19948
Chris@0 19949 echo "$as_me:$LINENO: checking whether to enable profiling" >&5
Chris@0 19950 echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
Chris@0 19951 # Check whether --enable-profiling or --disable-profiling was given.
Chris@0 19952 if test "${enable_profiling+set}" = set; then
Chris@0 19953 enableval="$enable_profiling"
Chris@0 19954
Chris@0 19955 case "$enableval" in
Chris@0 19956 yes) profile="-pg" ;;
Chris@0 19957 esac
Chris@0 19958
Chris@0 19959 fi;
Chris@0 19960 echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
Chris@0 19961 echo "${ECHO_T}${enable_profiling-no}" >&6
Chris@0 19962
Chris@0 19963 echo "$as_me:$LINENO: checking whether to enable debugging" >&5
Chris@0 19964 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
Chris@0 19965 # Check whether --enable-debugging or --disable-debugging was given.
Chris@0 19966 if test "${enable_debugging+set}" = set; then
Chris@0 19967 enableval="$enable_debugging"
Chris@0 19968
Chris@0 19969 case "$enableval" in
Chris@0 19970 yes)
Chris@0 19971
Chris@0 19972 cat >>confdefs.h <<\_ACEOF
Chris@0 19973 #define DEBUG 1
Chris@0 19974 _ACEOF
Chris@0 19975
Chris@0 19976 optimize=""
Chris@0 19977 ;;
Chris@0 19978 no)
Chris@0 19979 if test -n "$profile"
Chris@0 19980 then
Chris@0 19981 { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
Chris@0 19982 echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
Chris@0 19983 { (exit 1); exit 1; }; }
Chris@0 19984 fi
Chris@0 19985
Chris@0 19986
Chris@0 19987 cat >>confdefs.h <<\_ACEOF
Chris@0 19988 #define NDEBUG 1
Chris@0 19989 _ACEOF
Chris@0 19990
Chris@0 19991 debug=""
Chris@0 19992 if test "$GCC" = yes
Chris@0 19993 then
Chris@0 19994 optimize="$optimize -fomit-frame-pointer"
Chris@0 19995 fi
Chris@0 19996 ;;
Chris@0 19997 esac
Chris@0 19998
Chris@0 19999 fi;
Chris@0 20000 echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
Chris@0 20001 echo "${ECHO_T}${enable_debugging-default}" >&6
Chris@0 20002
Chris@0 20003
Chris@0 20004 if test ${enable_debugging-default} = yes; then
Chris@0 20005 DEBUG_TRUE=
Chris@0 20006 DEBUG_FALSE='#'
Chris@0 20007 else
Chris@0 20008 DEBUG_TRUE='#'
Chris@0 20009 DEBUG_FALSE=
Chris@0 20010 fi
Chris@0 20011
Chris@0 20012
Chris@0 20013
Chris@0 20014 test -n "$arch" && CFLAGS="$CFLAGS $arch"
Chris@0 20015 test -n "$debug" && CFLAGS="$CFLAGS $debug"
Chris@0 20016 test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
Chris@0 20017 test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
Chris@0 20018
Chris@0 20019
Chris@0 20020 ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list"
Chris@0 20021
Chris@0 20022 cat >confcache <<\_ACEOF
Chris@0 20023 # This file is a shell script that caches the results of configure
Chris@0 20024 # tests run on this system so they can be shared between configure
Chris@0 20025 # scripts and configure runs, see configure's option --config-cache.
Chris@0 20026 # It is not useful on other systems. If it contains results you don't
Chris@0 20027 # want to keep, you may remove or edit it.
Chris@0 20028 #
Chris@0 20029 # config.status only pays attention to the cache file if you give it
Chris@0 20030 # the --recheck option to rerun configure.
Chris@0 20031 #
Chris@0 20032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@0 20033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@0 20034 # following values.
Chris@0 20035
Chris@0 20036 _ACEOF
Chris@0 20037
Chris@0 20038 # The following way of writing the cache mishandles newlines in values,
Chris@0 20039 # but we know of no workaround that is simple, portable, and efficient.
Chris@0 20040 # So, don't put newlines in cache variables' values.
Chris@0 20041 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@0 20042 # and sets the high bit in the cache file unless we assign to the vars.
Chris@0 20043 {
Chris@0 20044 (set) 2>&1 |
Chris@0 20045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Chris@0 20046 *ac_space=\ *)
Chris@0 20047 # `set' does not quote correctly, so add quotes (double-quote
Chris@0 20048 # substitution turns \\\\ into \\, and sed turns \\ into \).
Chris@0 20049 sed -n \
Chris@0 20050 "s/'/'\\\\''/g;
Chris@0 20051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@0 20052 ;;
Chris@0 20053 *)
Chris@0 20054 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@0 20055 sed -n \
Chris@0 20056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Chris@0 20057 ;;
Chris@0 20058 esac;
Chris@0 20059 } |
Chris@0 20060 sed '
Chris@0 20061 t clear
Chris@0 20062 : clear
Chris@0 20063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@0 20064 t end
Chris@0 20065 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@0 20066 : end' >>confcache
Chris@0 20067 if diff $cache_file confcache >/dev/null 2>&1; then :; else
Chris@0 20068 if test -w $cache_file; then
Chris@0 20069 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
Chris@0 20070 cat confcache >$cache_file
Chris@0 20071 else
Chris@0 20072 echo "not updating unwritable cache $cache_file"
Chris@0 20073 fi
Chris@0 20074 fi
Chris@0 20075 rm -f confcache
Chris@0 20076
Chris@0 20077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@0 20078 # Let make expand exec_prefix.
Chris@0 20079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@0 20080
Chris@0 20081 # VPATH may cause trouble with some makes, so we remove $(srcdir),
Chris@0 20082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
Chris@0 20083 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@0 20084 # (actually we leave an empty line to preserve line numbers).
Chris@0 20085 if test "x$srcdir" = x.; then
Chris@0 20086 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Chris@0 20087 s/:*\$(srcdir):*/:/;
Chris@0 20088 s/:*\${srcdir}:*/:/;
Chris@0 20089 s/:*@srcdir@:*/:/;
Chris@0 20090 s/^\([^=]*=[ ]*\):*/\1/;
Chris@0 20091 s/:*$//;
Chris@0 20092 s/^[^=]*=[ ]*$//;
Chris@0 20093 }'
Chris@0 20094 fi
Chris@0 20095
Chris@0 20096 DEFS=-DHAVE_CONFIG_H
Chris@0 20097
Chris@0 20098 ac_libobjs=
Chris@0 20099 ac_ltlibobjs=
Chris@0 20100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@0 20101 # 1. Remove the extension, and $U if already installed.
Chris@0 20102 ac_i=`echo "$ac_i" |
Chris@0 20103 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Chris@0 20104 # 2. Add them.
Chris@0 20105 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
Chris@0 20106 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
Chris@0 20107 done
Chris@0 20108 LIBOBJS=$ac_libobjs
Chris@0 20109
Chris@0 20110 LTLIBOBJS=$ac_ltlibobjs
Chris@0 20111
Chris@0 20112
Chris@0 20113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@0 20114 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Chris@0 20115 Usually this means the macro was only invoked conditionally." >&5
Chris@0 20116 echo "$as_me: error: conditional \"AMDEP\" was never defined.
Chris@0 20117 Usually this means the macro was only invoked conditionally." >&2;}
Chris@0 20118 { (exit 1); exit 1; }; }
Chris@0 20119 fi
Chris@0 20120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@0 20121 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Chris@0 20122 Usually this means the macro was only invoked conditionally." >&5
Chris@0 20123 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Chris@0 20124 Usually this means the macro was only invoked conditionally." >&2;}
Chris@0 20125 { (exit 1); exit 1; }; }
Chris@0 20126 fi
Chris@0 20127 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
Chris@0 20128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Chris@0 20129 Usually this means the macro was only invoked conditionally." >&5
Chris@0 20130 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Chris@0 20131 Usually this means the macro was only invoked conditionally." >&2;}
Chris@0 20132 { (exit 1); exit 1; }; }
Chris@0 20133 fi
Chris@0 20134 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
Chris@0 20135 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
Chris@0 20136 Usually this means the macro was only invoked conditionally." >&5
Chris@0 20137 echo "$as_me: error: conditional \"DEBUG\" was never defined.
Chris@0 20138 Usually this means the macro was only invoked conditionally." >&2;}
Chris@0 20139 { (exit 1); exit 1; }; }
Chris@0 20140 fi
Chris@0 20141
Chris@0 20142 : ${CONFIG_STATUS=./config.status}
Chris@0 20143 ac_clean_files_save=$ac_clean_files
Chris@0 20144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@0 20145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Chris@0 20146 echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@0 20147 cat >$CONFIG_STATUS <<_ACEOF
Chris@0 20148 #! $SHELL
Chris@0 20149 # Generated by $as_me.
Chris@0 20150 # Run this file to recreate the current configuration.
Chris@0 20151 # Compiler output produced by configure, useful for debugging
Chris@0 20152 # configure, is in config.log if it exists.
Chris@0 20153
Chris@0 20154 debug=false
Chris@0 20155 ac_cs_recheck=false
Chris@0 20156 ac_cs_silent=false
Chris@0 20157 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@0 20158 _ACEOF
Chris@0 20159
Chris@0 20160 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20161 ## --------------------- ##
Chris@0 20162 ## M4sh Initialization. ##
Chris@0 20163 ## --------------------- ##
Chris@0 20164
Chris@0 20165 # Be Bourne compatible
Chris@0 20166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Chris@0 20167 emulate sh
Chris@0 20168 NULLCMD=:
Chris@0 20169 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Chris@0 20170 # is contrary to our usage. Disable this feature.
Chris@0 20171 alias -g '${1+"$@"}'='"$@"'
Chris@0 20172 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
Chris@0 20173 set -o posix
Chris@0 20174 fi
Chris@0 20175 DUALCASE=1; export DUALCASE # for MKS sh
Chris@0 20176
Chris@0 20177 # Support unset when possible.
Chris@0 20178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@0 20179 as_unset=unset
Chris@0 20180 else
Chris@0 20181 as_unset=false
Chris@0 20182 fi
Chris@0 20183
Chris@0 20184
Chris@0 20185 # Work around bugs in pre-3.0 UWIN ksh.
Chris@0 20186 $as_unset ENV MAIL MAILPATH
Chris@0 20187 PS1='$ '
Chris@0 20188 PS2='> '
Chris@0 20189 PS4='+ '
Chris@0 20190
Chris@0 20191 # NLS nuisances.
Chris@0 20192 for as_var in \
Chris@0 20193 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
Chris@0 20194 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
Chris@0 20195 LC_TELEPHONE LC_TIME
Chris@0 20196 do
Chris@0 20197 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Chris@0 20198 eval $as_var=C; export $as_var
Chris@0 20199 else
Chris@0 20200 $as_unset $as_var
Chris@0 20201 fi
Chris@0 20202 done
Chris@0 20203
Chris@0 20204 # Required to use basename.
Chris@0 20205 if expr a : '\(a\)' >/dev/null 2>&1; then
Chris@0 20206 as_expr=expr
Chris@0 20207 else
Chris@0 20208 as_expr=false
Chris@0 20209 fi
Chris@0 20210
Chris@0 20211 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
Chris@0 20212 as_basename=basename
Chris@0 20213 else
Chris@0 20214 as_basename=false
Chris@0 20215 fi
Chris@0 20216
Chris@0 20217
Chris@0 20218 # Name of the executable.
Chris@0 20219 as_me=`$as_basename "$0" ||
Chris@0 20220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@0 20221 X"$0" : 'X\(//\)$' \| \
Chris@0 20222 X"$0" : 'X\(/\)$' \| \
Chris@0 20223 . : '\(.\)' 2>/dev/null ||
Chris@0 20224 echo X/"$0" |
Chris@0 20225 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
Chris@0 20226 /^X\/\(\/\/\)$/{ s//\1/; q; }
Chris@0 20227 /^X\/\(\/\).*/{ s//\1/; q; }
Chris@0 20228 s/.*/./; q'`
Chris@0 20229
Chris@0 20230
Chris@0 20231 # PATH needs CR, and LINENO needs CR and PATH.
Chris@0 20232 # Avoid depending upon Character Ranges.
Chris@0 20233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@0 20234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@0 20235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@0 20236 as_cr_digits='0123456789'
Chris@0 20237 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@0 20238
Chris@0 20239 # The user is always right.
Chris@0 20240 if test "${PATH_SEPARATOR+set}" != set; then
Chris@0 20241 echo "#! /bin/sh" >conf$$.sh
Chris@0 20242 echo "exit 0" >>conf$$.sh
Chris@0 20243 chmod +x conf$$.sh
Chris@0 20244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Chris@0 20245 PATH_SEPARATOR=';'
Chris@0 20246 else
Chris@0 20247 PATH_SEPARATOR=:
Chris@0 20248 fi
Chris@0 20249 rm -f conf$$.sh
Chris@0 20250 fi
Chris@0 20251
Chris@0 20252
Chris@0 20253 as_lineno_1=$LINENO
Chris@0 20254 as_lineno_2=$LINENO
Chris@0 20255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Chris@0 20256 test "x$as_lineno_1" != "x$as_lineno_2" &&
Chris@0 20257 test "x$as_lineno_3" = "x$as_lineno_2" || {
Chris@0 20258 # Find who we are. Look in the path if we contain no path at all
Chris@0 20259 # relative or not.
Chris@0 20260 case $0 in
Chris@0 20261 *[\\/]* ) as_myself=$0 ;;
Chris@0 20262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 20263 for as_dir in $PATH
Chris@0 20264 do
Chris@0 20265 IFS=$as_save_IFS
Chris@0 20266 test -z "$as_dir" && as_dir=.
Chris@0 20267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@0 20268 done
Chris@0 20269
Chris@0 20270 ;;
Chris@0 20271 esac
Chris@0 20272 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@0 20273 # in which case we are not to be found in the path.
Chris@0 20274 if test "x$as_myself" = x; then
Chris@0 20275 as_myself=$0
Chris@0 20276 fi
Chris@0 20277 if test ! -f "$as_myself"; then
Chris@0 20278 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
Chris@0 20279 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
Chris@0 20280 { (exit 1); exit 1; }; }
Chris@0 20281 fi
Chris@0 20282 case $CONFIG_SHELL in
Chris@0 20283 '')
Chris@0 20284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@0 20285 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@0 20286 do
Chris@0 20287 IFS=$as_save_IFS
Chris@0 20288 test -z "$as_dir" && as_dir=.
Chris@0 20289 for as_base in sh bash ksh sh5; do
Chris@0 20290 case $as_dir in
Chris@0 20291 /*)
Chris@0 20292 if ("$as_dir/$as_base" -c '
Chris@0 20293 as_lineno_1=$LINENO
Chris@0 20294 as_lineno_2=$LINENO
Chris@0 20295 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Chris@0 20296 test "x$as_lineno_1" != "x$as_lineno_2" &&
Chris@0 20297 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Chris@0 20298 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
Chris@0 20299 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Chris@0 20300 CONFIG_SHELL=$as_dir/$as_base
Chris@0 20301 export CONFIG_SHELL
Chris@0 20302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
Chris@0 20303 fi;;
Chris@0 20304 esac
Chris@0 20305 done
Chris@0 20306 done
Chris@0 20307 ;;
Chris@0 20308 esac
Chris@0 20309
Chris@0 20310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
Chris@0 20311 # uniformly replaced by the line number. The first 'sed' inserts a
Chris@0 20312 # line-number line before each line; the second 'sed' does the real
Chris@0 20313 # work. The second script uses 'N' to pair each line-number line
Chris@0 20314 # with the numbered line, and appends trailing '-' during
Chris@0 20315 # substitution so that $LINENO is not a special case at line end.
Chris@0 20316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Chris@0 20317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
Chris@0 20318 sed '=' <$as_myself |
Chris@0 20319 sed '
Chris@0 20320 N
Chris@0 20321 s,$,-,
Chris@0 20322 : loop
Chris@0 20323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Chris@0 20324 t loop
Chris@0 20325 s,-$,,
Chris@0 20326 s,^['$as_cr_digits']*\n,,
Chris@0 20327 ' >$as_me.lineno &&
Chris@0 20328 chmod +x $as_me.lineno ||
Chris@0 20329 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
Chris@0 20330 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
Chris@0 20331 { (exit 1); exit 1; }; }
Chris@0 20332
Chris@0 20333 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@0 20334 # (the dirname of $[0] is not the place where we might find the
Chris@0 20335 # original and so on. Autoconf is especially sensible to this).
Chris@0 20336 . ./$as_me.lineno
Chris@0 20337 # Exit status is that of the last command.
Chris@0 20338 exit
Chris@0 20339 }
Chris@0 20340
Chris@0 20341
Chris@0 20342 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
Chris@0 20343 *c*,-n*) ECHO_N= ECHO_C='
Chris@0 20344 ' ECHO_T=' ' ;;
Chris@0 20345 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
Chris@0 20346 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
Chris@0 20347 esac
Chris@0 20348
Chris@0 20349 if expr a : '\(a\)' >/dev/null 2>&1; then
Chris@0 20350 as_expr=expr
Chris@0 20351 else
Chris@0 20352 as_expr=false
Chris@0 20353 fi
Chris@0 20354
Chris@0 20355 rm -f conf$$ conf$$.exe conf$$.file
Chris@0 20356 echo >conf$$.file
Chris@0 20357 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@0 20358 # We could just check for DJGPP; but this test a) works b) is more generic
Chris@0 20359 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
Chris@0 20360 if test -f conf$$.exe; then
Chris@0 20361 # Don't use ln at all; we don't have any links
Chris@0 20362 as_ln_s='cp -p'
Chris@0 20363 else
Chris@0 20364 as_ln_s='ln -s'
Chris@0 20365 fi
Chris@0 20366 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@0 20367 as_ln_s=ln
Chris@0 20368 else
Chris@0 20369 as_ln_s='cp -p'
Chris@0 20370 fi
Chris@0 20371 rm -f conf$$ conf$$.exe conf$$.file
Chris@0 20372
Chris@0 20373 if mkdir -p . 2>/dev/null; then
Chris@0 20374 as_mkdir_p=:
Chris@0 20375 else
Chris@0 20376 test -d ./-p && rmdir ./-p
Chris@0 20377 as_mkdir_p=false
Chris@0 20378 fi
Chris@0 20379
Chris@0 20380 as_executable_p="test -f"
Chris@0 20381
Chris@0 20382 # Sed expression to map a string onto a valid CPP name.
Chris@0 20383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@0 20384
Chris@0 20385 # Sed expression to map a string onto a valid variable name.
Chris@0 20386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@0 20387
Chris@0 20388
Chris@0 20389 # IFS
Chris@0 20390 # We need space, tab and new line, in precisely that order.
Chris@0 20391 as_nl='
Chris@0 20392 '
Chris@0 20393 IFS=" $as_nl"
Chris@0 20394
Chris@0 20395 # CDPATH.
Chris@0 20396 $as_unset CDPATH
Chris@0 20397
Chris@0 20398 exec 6>&1
Chris@0 20399
Chris@0 20400 # Open the log real soon, to keep \$[0] and so on meaningful, and to
Chris@0 20401 # report actual input values of CONFIG_FILES etc. instead of their
Chris@0 20402 # values after options handling. Logging --version etc. is OK.
Chris@0 20403 exec 5>>config.log
Chris@0 20404 {
Chris@0 20405 echo
Chris@0 20406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@0 20407 ## Running $as_me. ##
Chris@0 20408 _ASBOX
Chris@0 20409 } >&5
Chris@0 20410 cat >&5 <<_CSEOF
Chris@0 20411
Chris@0 20412 This file was extended by ID3 Tag $as_me 0.15.1b, which was
Chris@0 20413 generated by GNU Autoconf 2.59. Invocation command line was
Chris@0 20414
Chris@0 20415 CONFIG_FILES = $CONFIG_FILES
Chris@0 20416 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@0 20417 CONFIG_LINKS = $CONFIG_LINKS
Chris@0 20418 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@0 20419 $ $0 $@
Chris@0 20420
Chris@0 20421 _CSEOF
Chris@0 20422 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
Chris@0 20423 echo >&5
Chris@0 20424 _ACEOF
Chris@0 20425
Chris@0 20426 # Files that config.status was made for.
Chris@0 20427 if test -n "$ac_config_files"; then
Chris@0 20428 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
Chris@0 20429 fi
Chris@0 20430
Chris@0 20431 if test -n "$ac_config_headers"; then
Chris@0 20432 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
Chris@0 20433 fi
Chris@0 20434
Chris@0 20435 if test -n "$ac_config_links"; then
Chris@0 20436 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
Chris@0 20437 fi
Chris@0 20438
Chris@0 20439 if test -n "$ac_config_commands"; then
Chris@0 20440 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
Chris@0 20441 fi
Chris@0 20442
Chris@0 20443 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20444
Chris@0 20445 ac_cs_usage="\
Chris@0 20446 \`$as_me' instantiates files from templates according to the
Chris@0 20447 current configuration.
Chris@0 20448
Chris@0 20449 Usage: $0 [OPTIONS] [FILE]...
Chris@0 20450
Chris@0 20451 -h, --help print this help, then exit
Chris@0 20452 -V, --version print version number, then exit
Chris@0 20453 -q, --quiet do not print progress messages
Chris@0 20454 -d, --debug don't remove temporary files
Chris@0 20455 --recheck update $as_me by reconfiguring in the same conditions
Chris@0 20456 --file=FILE[:TEMPLATE]
Chris@0 20457 instantiate the configuration file FILE
Chris@0 20458 --header=FILE[:TEMPLATE]
Chris@0 20459 instantiate the configuration header FILE
Chris@0 20460
Chris@0 20461 Configuration files:
Chris@0 20462 $config_files
Chris@0 20463
Chris@0 20464 Configuration headers:
Chris@0 20465 $config_headers
Chris@0 20466
Chris@0 20467 Configuration commands:
Chris@0 20468 $config_commands
Chris@0 20469
Chris@0 20470 Report bugs to <bug-autoconf@gnu.org>."
Chris@0 20471 _ACEOF
Chris@0 20472
Chris@0 20473 cat >>$CONFIG_STATUS <<_ACEOF
Chris@0 20474 ac_cs_version="\\
Chris@0 20475 ID3 Tag config.status 0.15.1b
Chris@0 20476 configured by $0, generated by GNU Autoconf 2.59,
Chris@0 20477 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Chris@0 20478
Chris@0 20479 Copyright (C) 2003 Free Software Foundation, Inc.
Chris@0 20480 This config.status script is free software; the Free Software Foundation
Chris@0 20481 gives unlimited permission to copy, distribute and modify it."
Chris@0 20482 srcdir=$srcdir
Chris@0 20483 INSTALL="$INSTALL"
Chris@0 20484 _ACEOF
Chris@0 20485
Chris@0 20486 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20487 # If no file are specified by the user, then we need to provide default
Chris@0 20488 # value. By we need to know if files were specified by the user.
Chris@0 20489 ac_need_defaults=:
Chris@0 20490 while test $# != 0
Chris@0 20491 do
Chris@0 20492 case $1 in
Chris@0 20493 --*=*)
Chris@0 20494 ac_option=`expr "x$1" : 'x\([^=]*\)='`
Chris@0 20495 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Chris@0 20496 ac_shift=:
Chris@0 20497 ;;
Chris@0 20498 -*)
Chris@0 20499 ac_option=$1
Chris@0 20500 ac_optarg=$2
Chris@0 20501 ac_shift=shift
Chris@0 20502 ;;
Chris@0 20503 *) # This is not an option, so the user has probably given explicit
Chris@0 20504 # arguments.
Chris@0 20505 ac_option=$1
Chris@0 20506 ac_need_defaults=false;;
Chris@0 20507 esac
Chris@0 20508
Chris@0 20509 case $ac_option in
Chris@0 20510 # Handling of the options.
Chris@0 20511 _ACEOF
Chris@0 20512 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@0 20514 ac_cs_recheck=: ;;
Chris@0 20515 --version | --vers* | -V )
Chris@0 20516 echo "$ac_cs_version"; exit 0 ;;
Chris@0 20517 --he | --h)
Chris@0 20518 # Conflict between --help and --header
Chris@0 20519 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Chris@0 20520 Try \`$0 --help' for more information." >&5
Chris@0 20521 echo "$as_me: error: ambiguous option: $1
Chris@0 20522 Try \`$0 --help' for more information." >&2;}
Chris@0 20523 { (exit 1); exit 1; }; };;
Chris@0 20524 --help | --hel | -h )
Chris@0 20525 echo "$ac_cs_usage"; exit 0 ;;
Chris@0 20526 --debug | --d* | -d )
Chris@0 20527 debug=: ;;
Chris@0 20528 --file | --fil | --fi | --f )
Chris@0 20529 $ac_shift
Chris@0 20530 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Chris@0 20531 ac_need_defaults=false;;
Chris@0 20532 --header | --heade | --head | --hea )
Chris@0 20533 $ac_shift
Chris@0 20534 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Chris@0 20535 ac_need_defaults=false;;
Chris@0 20536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@0 20537 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@0 20538 ac_cs_silent=: ;;
Chris@0 20539
Chris@0 20540 # This is an error.
Chris@0 20541 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Chris@0 20542 Try \`$0 --help' for more information." >&5
Chris@0 20543 echo "$as_me: error: unrecognized option: $1
Chris@0 20544 Try \`$0 --help' for more information." >&2;}
Chris@0 20545 { (exit 1); exit 1; }; } ;;
Chris@0 20546
Chris@0 20547 *) ac_config_targets="$ac_config_targets $1" ;;
Chris@0 20548
Chris@0 20549 esac
Chris@0 20550 shift
Chris@0 20551 done
Chris@0 20552
Chris@0 20553 ac_configure_extra_args=
Chris@0 20554
Chris@0 20555 if $ac_cs_silent; then
Chris@0 20556 exec 6>/dev/null
Chris@0 20557 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@0 20558 fi
Chris@0 20559
Chris@0 20560 _ACEOF
Chris@0 20561 cat >>$CONFIG_STATUS <<_ACEOF
Chris@0 20562 if \$ac_cs_recheck; then
Chris@0 20563 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
Chris@0 20564 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@0 20565 fi
Chris@0 20566
Chris@0 20567 _ACEOF
Chris@0 20568
Chris@0 20569 cat >>$CONFIG_STATUS <<_ACEOF
Chris@0 20570 #
Chris@0 20571 # INIT-COMMANDS section.
Chris@0 20572 #
Chris@0 20573
Chris@0 20574 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@0 20575
Chris@0 20576 _ACEOF
Chris@0 20577
Chris@0 20578
Chris@0 20579
Chris@0 20580 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20581 for ac_config_target in $ac_config_targets
Chris@0 20582 do
Chris@0 20583 case "$ac_config_target" in
Chris@0 20584 # Handling of arguments.
Chris@0 20585 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@0 20586 "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
Chris@0 20587 "libid3tag.list" ) CONFIG_FILES="$CONFIG_FILES libid3tag.list" ;;
Chris@0 20588 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@0 20589 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Chris@0 20590 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Chris@0 20591 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Chris@0 20592 { (exit 1); exit 1; }; };;
Chris@0 20593 esac
Chris@0 20594 done
Chris@0 20595
Chris@0 20596 # If the user did not use the arguments to specify the items to instantiate,
Chris@0 20597 # then the envvar interface is used. Set only those that are not.
Chris@0 20598 # We use the long form for the default assignment because of an extremely
Chris@0 20599 # bizarre bug on SunOS 4.1.3.
Chris@0 20600 if $ac_need_defaults; then
Chris@0 20601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@0 20602 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@0 20603 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@0 20604 fi
Chris@0 20605
Chris@0 20606 # Have a temporary directory for convenience. Make it in the build tree
Chris@0 20607 # simply because there is no reason to put it here, and in addition,
Chris@0 20608 # creating and moving files from /tmp can sometimes cause problems.
Chris@0 20609 # Create a temporary directory, and hook for its removal unless debugging.
Chris@0 20610 $debug ||
Chris@0 20611 {
Chris@0 20612 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
Chris@0 20613 trap '{ (exit 1); exit 1; }' 1 2 13 15
Chris@0 20614 }
Chris@0 20615
Chris@0 20616 # Create a (secure) tmp directory for tmp files.
Chris@0 20617
Chris@0 20618 {
Chris@0 20619 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Chris@0 20620 test -n "$tmp" && test -d "$tmp"
Chris@0 20621 } ||
Chris@0 20622 {
Chris@0 20623 tmp=./confstat$$-$RANDOM
Chris@0 20624 (umask 077 && mkdir $tmp)
Chris@0 20625 } ||
Chris@0 20626 {
Chris@0 20627 echo "$me: cannot create a temporary directory in ." >&2
Chris@0 20628 { (exit 1); exit 1; }
Chris@0 20629 }
Chris@0 20630
Chris@0 20631 _ACEOF
Chris@0 20632
Chris@0 20633 cat >>$CONFIG_STATUS <<_ACEOF
Chris@0 20634
Chris@0 20635 #
Chris@0 20636 # CONFIG_FILES section.
Chris@0 20637 #
Chris@0 20638
Chris@0 20639 # No need to generate the scripts if there are no CONFIG_FILES.
Chris@0 20640 # This happens for instance when ./config.status config.h
Chris@0 20641 if test -n "\$CONFIG_FILES"; then
Chris@0 20642 # Protect against being on the right side of a sed subst in config.status.
Chris@0 20643 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
Chris@0 20644 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
Chris@0 20645 s,@SHELL@,$SHELL,;t t
Chris@0 20646 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
Chris@0 20647 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
Chris@0 20648 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
Chris@0 20649 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
Chris@0 20650 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
Chris@0 20651 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Chris@0 20652 s,@exec_prefix@,$exec_prefix,;t t
Chris@0 20653 s,@prefix@,$prefix,;t t
Chris@0 20654 s,@program_transform_name@,$program_transform_name,;t t
Chris@0 20655 s,@bindir@,$bindir,;t t
Chris@0 20656 s,@sbindir@,$sbindir,;t t
Chris@0 20657 s,@libexecdir@,$libexecdir,;t t
Chris@0 20658 s,@datadir@,$datadir,;t t
Chris@0 20659 s,@sysconfdir@,$sysconfdir,;t t
Chris@0 20660 s,@sharedstatedir@,$sharedstatedir,;t t
Chris@0 20661 s,@localstatedir@,$localstatedir,;t t
Chris@0 20662 s,@libdir@,$libdir,;t t
Chris@0 20663 s,@includedir@,$includedir,;t t
Chris@0 20664 s,@oldincludedir@,$oldincludedir,;t t
Chris@0 20665 s,@infodir@,$infodir,;t t
Chris@0 20666 s,@mandir@,$mandir,;t t
Chris@0 20667 s,@build_alias@,$build_alias,;t t
Chris@0 20668 s,@host_alias@,$host_alias,;t t
Chris@0 20669 s,@target_alias@,$target_alias,;t t
Chris@0 20670 s,@DEFS@,$DEFS,;t t
Chris@0 20671 s,@ECHO_C@,$ECHO_C,;t t
Chris@0 20672 s,@ECHO_N@,$ECHO_N,;t t
Chris@0 20673 s,@ECHO_T@,$ECHO_T,;t t
Chris@0 20674 s,@LIBS@,$LIBS,;t t
Chris@0 20675 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
Chris@0 20676 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
Chris@0 20677 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Chris@0 20678 s,@CYGPATH_W@,$CYGPATH_W,;t t
Chris@0 20679 s,@PACKAGE@,$PACKAGE,;t t
Chris@0 20680 s,@VERSION@,$VERSION,;t t
Chris@0 20681 s,@ACLOCAL@,$ACLOCAL,;t t
Chris@0 20682 s,@AUTOCONF@,$AUTOCONF,;t t
Chris@0 20683 s,@AUTOMAKE@,$AUTOMAKE,;t t
Chris@0 20684 s,@AUTOHEADER@,$AUTOHEADER,;t t
Chris@0 20685 s,@MAKEINFO@,$MAKEINFO,;t t
Chris@0 20686 s,@AMTAR@,$AMTAR,;t t
Chris@0 20687 s,@install_sh@,$install_sh,;t t
Chris@0 20688 s,@STRIP@,$STRIP,;t t
Chris@0 20689 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
Chris@0 20690 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
Chris@0 20691 s,@mkdir_p@,$mkdir_p,;t t
Chris@0 20692 s,@AWK@,$AWK,;t t
Chris@0 20693 s,@SET_MAKE@,$SET_MAKE,;t t
Chris@0 20694 s,@am__leading_dot@,$am__leading_dot,;t t
Chris@0 20695 s,@build@,$build,;t t
Chris@0 20696 s,@build_cpu@,$build_cpu,;t t
Chris@0 20697 s,@build_vendor@,$build_vendor,;t t
Chris@0 20698 s,@build_os@,$build_os,;t t
Chris@0 20699 s,@host@,$host,;t t
Chris@0 20700 s,@host_cpu@,$host_cpu,;t t
Chris@0 20701 s,@host_vendor@,$host_vendor,;t t
Chris@0 20702 s,@host_os@,$host_os,;t t
Chris@0 20703 s,@CC@,$CC,;t t
Chris@0 20704 s,@CFLAGS@,$CFLAGS,;t t
Chris@0 20705 s,@LDFLAGS@,$LDFLAGS,;t t
Chris@0 20706 s,@CPPFLAGS@,$CPPFLAGS,;t t
Chris@0 20707 s,@ac_ct_CC@,$ac_ct_CC,;t t
Chris@0 20708 s,@EXEEXT@,$EXEEXT,;t t
Chris@0 20709 s,@OBJEXT@,$OBJEXT,;t t
Chris@0 20710 s,@DEPDIR@,$DEPDIR,;t t
Chris@0 20711 s,@am__include@,$am__include,;t t
Chris@0 20712 s,@am__quote@,$am__quote,;t t
Chris@0 20713 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
Chris@0 20714 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
Chris@0 20715 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
Chris@0 20716 s,@CCDEPMODE@,$CCDEPMODE,;t t
Chris@0 20717 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
Chris@0 20718 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
Chris@0 20719 s,@EGREP@,$EGREP,;t t
Chris@0 20720 s,@LN_S@,$LN_S,;t t
Chris@0 20721 s,@ECHO@,$ECHO,;t t
Chris@0 20722 s,@AR@,$AR,;t t
Chris@0 20723 s,@ac_ct_AR@,$ac_ct_AR,;t t
Chris@0 20724 s,@RANLIB@,$RANLIB,;t t
Chris@0 20725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Chris@0 20726 s,@CPP@,$CPP,;t t
Chris@0 20727 s,@CXX@,$CXX,;t t
Chris@0 20728 s,@CXXFLAGS@,$CXXFLAGS,;t t
Chris@0 20729 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Chris@0 20730 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
Chris@0 20731 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
Chris@0 20732 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
Chris@0 20733 s,@CXXCPP@,$CXXCPP,;t t
Chris@0 20734 s,@F77@,$F77,;t t
Chris@0 20735 s,@FFLAGS@,$FFLAGS,;t t
Chris@0 20736 s,@ac_ct_F77@,$ac_ct_F77,;t t
Chris@0 20737 s,@LIBTOOL@,$LIBTOOL,;t t
Chris@0 20738 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
Chris@0 20739 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
Chris@0 20740 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
Chris@0 20741 s,@LIBOBJS@,$LIBOBJS,;t t
Chris@0 20742 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Chris@0 20743 CEOF
Chris@0 20744
Chris@0 20745 _ACEOF
Chris@0 20746
Chris@0 20747 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20748 # Split the substitutions into bite-sized pieces for seds with
Chris@0 20749 # small command number limits, like on Digital OSF/1 and HP-UX.
Chris@0 20750 ac_max_sed_lines=48
Chris@0 20751 ac_sed_frag=1 # Number of current file.
Chris@0 20752 ac_beg=1 # First line for current file.
Chris@0 20753 ac_end=$ac_max_sed_lines # Line after last line for current file.
Chris@0 20754 ac_more_lines=:
Chris@0 20755 ac_sed_cmds=
Chris@0 20756 while $ac_more_lines; do
Chris@0 20757 if test $ac_beg -gt 1; then
Chris@0 20758 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
Chris@0 20759 else
Chris@0 20760 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
Chris@0 20761 fi
Chris@0 20762 if test ! -s $tmp/subs.frag; then
Chris@0 20763 ac_more_lines=false
Chris@0 20764 else
Chris@0 20765 # The purpose of the label and of the branching condition is to
Chris@0 20766 # speed up the sed processing (if there are no `@' at all, there
Chris@0 20767 # is no need to browse any of the substitutions).
Chris@0 20768 # These are the two extra sed commands mentioned above.
Chris@0 20769 (echo ':t
Chris@0 20770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
Chris@0 20771 if test -z "$ac_sed_cmds"; then
Chris@0 20772 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Chris@0 20773 else
Chris@0 20774 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Chris@0 20775 fi
Chris@0 20776 ac_sed_frag=`expr $ac_sed_frag + 1`
Chris@0 20777 ac_beg=$ac_end
Chris@0 20778 ac_end=`expr $ac_end + $ac_max_sed_lines`
Chris@0 20779 fi
Chris@0 20780 done
Chris@0 20781 if test -z "$ac_sed_cmds"; then
Chris@0 20782 ac_sed_cmds=cat
Chris@0 20783 fi
Chris@0 20784 fi # test -n "$CONFIG_FILES"
Chris@0 20785
Chris@0 20786 _ACEOF
Chris@0 20787 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20788 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
Chris@0 20789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Chris@0 20790 case $ac_file in
Chris@0 20791 - | *:- | *:-:* ) # input from stdin
Chris@0 20792 cat >$tmp/stdin
Chris@0 20793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Chris@0 20794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Chris@0 20795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Chris@0 20796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Chris@0 20797 * ) ac_file_in=$ac_file.in ;;
Chris@0 20798 esac
Chris@0 20799
Chris@0 20800 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Chris@0 20801 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
Chris@0 20802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 20803 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@0 20804 X"$ac_file" : 'X\(//\)$' \| \
Chris@0 20805 X"$ac_file" : 'X\(/\)' \| \
Chris@0 20806 . : '\(.\)' 2>/dev/null ||
Chris@0 20807 echo X"$ac_file" |
Chris@0 20808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 20809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 20810 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 20811 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 20812 s/.*/./; q'`
Chris@0 20813 { if $as_mkdir_p; then
Chris@0 20814 mkdir -p "$ac_dir"
Chris@0 20815 else
Chris@0 20816 as_dir="$ac_dir"
Chris@0 20817 as_dirs=
Chris@0 20818 while test ! -d "$as_dir"; do
Chris@0 20819 as_dirs="$as_dir $as_dirs"
Chris@0 20820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Chris@0 20821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 20822 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@0 20823 X"$as_dir" : 'X\(//\)$' \| \
Chris@0 20824 X"$as_dir" : 'X\(/\)' \| \
Chris@0 20825 . : '\(.\)' 2>/dev/null ||
Chris@0 20826 echo X"$as_dir" |
Chris@0 20827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 20828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 20829 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 20830 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 20831 s/.*/./; q'`
Chris@0 20832 done
Chris@0 20833 test ! -n "$as_dirs" || mkdir $as_dirs
Chris@0 20834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
Chris@0 20835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
Chris@0 20836 { (exit 1); exit 1; }; }; }
Chris@0 20837
Chris@0 20838 ac_builddir=.
Chris@0 20839
Chris@0 20840 if test "$ac_dir" != .; then
Chris@0 20841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@0 20842 # A "../" for each directory in $ac_dir_suffix.
Chris@0 20843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Chris@0 20844 else
Chris@0 20845 ac_dir_suffix= ac_top_builddir=
Chris@0 20846 fi
Chris@0 20847
Chris@0 20848 case $srcdir in
Chris@0 20849 .) # No --srcdir option. We are building in place.
Chris@0 20850 ac_srcdir=.
Chris@0 20851 if test -z "$ac_top_builddir"; then
Chris@0 20852 ac_top_srcdir=.
Chris@0 20853 else
Chris@0 20854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
Chris@0 20855 fi ;;
Chris@0 20856 [\\/]* | ?:[\\/]* ) # Absolute path.
Chris@0 20857 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@0 20858 ac_top_srcdir=$srcdir ;;
Chris@0 20859 *) # Relative path.
Chris@0 20860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
Chris@0 20861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Chris@0 20862 esac
Chris@0 20863
Chris@0 20864 # Do not use `cd foo && pwd` to compute absolute paths, because
Chris@0 20865 # the directories may not exist.
Chris@0 20866 case `pwd` in
Chris@0 20867 .) ac_abs_builddir="$ac_dir";;
Chris@0 20868 *)
Chris@0 20869 case "$ac_dir" in
Chris@0 20870 .) ac_abs_builddir=`pwd`;;
Chris@0 20871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
Chris@0 20872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
Chris@0 20873 esac;;
Chris@0 20874 esac
Chris@0 20875 case $ac_abs_builddir in
Chris@0 20876 .) ac_abs_top_builddir=${ac_top_builddir}.;;
Chris@0 20877 *)
Chris@0 20878 case ${ac_top_builddir}. in
Chris@0 20879 .) ac_abs_top_builddir=$ac_abs_builddir;;
Chris@0 20880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
Chris@0 20881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
Chris@0 20882 esac;;
Chris@0 20883 esac
Chris@0 20884 case $ac_abs_builddir in
Chris@0 20885 .) ac_abs_srcdir=$ac_srcdir;;
Chris@0 20886 *)
Chris@0 20887 case $ac_srcdir in
Chris@0 20888 .) ac_abs_srcdir=$ac_abs_builddir;;
Chris@0 20889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
Chris@0 20890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
Chris@0 20891 esac;;
Chris@0 20892 esac
Chris@0 20893 case $ac_abs_builddir in
Chris@0 20894 .) ac_abs_top_srcdir=$ac_top_srcdir;;
Chris@0 20895 *)
Chris@0 20896 case $ac_top_srcdir in
Chris@0 20897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
Chris@0 20898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
Chris@0 20899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
Chris@0 20900 esac;;
Chris@0 20901 esac
Chris@0 20902
Chris@0 20903
Chris@0 20904 case $INSTALL in
Chris@0 20905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@0 20906 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Chris@0 20907 esac
Chris@0 20908
Chris@0 20909 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@0 20910 # use $as_me), people would be surprised to read:
Chris@0 20911 # /* config.h. Generated by config.status. */
Chris@0 20912 if test x"$ac_file" = x-; then
Chris@0 20913 configure_input=
Chris@0 20914 else
Chris@0 20915 configure_input="$ac_file. "
Chris@0 20916 fi
Chris@0 20917 configure_input=$configure_input"Generated from `echo $ac_file_in |
Chris@0 20918 sed 's,.*/,,'` by configure."
Chris@0 20919
Chris@0 20920 # First look for the input files in the build tree, otherwise in the
Chris@0 20921 # src tree.
Chris@0 20922 ac_file_inputs=`IFS=:
Chris@0 20923 for f in $ac_file_in; do
Chris@0 20924 case $f in
Chris@0 20925 -) echo $tmp/stdin ;;
Chris@0 20926 [\\/$]*)
Chris@0 20927 # Absolute (can't be DOS-style, as IFS=:)
Chris@0 20928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Chris@0 20929 echo "$as_me: error: cannot find input file: $f" >&2;}
Chris@0 20930 { (exit 1); exit 1; }; }
Chris@0 20931 echo "$f";;
Chris@0 20932 *) # Relative
Chris@0 20933 if test -f "$f"; then
Chris@0 20934 # Build tree
Chris@0 20935 echo "$f"
Chris@0 20936 elif test -f "$srcdir/$f"; then
Chris@0 20937 # Source tree
Chris@0 20938 echo "$srcdir/$f"
Chris@0 20939 else
Chris@0 20940 # /dev/null tree
Chris@0 20941 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Chris@0 20942 echo "$as_me: error: cannot find input file: $f" >&2;}
Chris@0 20943 { (exit 1); exit 1; }; }
Chris@0 20944 fi;;
Chris@0 20945 esac
Chris@0 20946 done` || { (exit 1); exit 1; }
Chris@0 20947
Chris@0 20948 if test x"$ac_file" != x-; then
Chris@0 20949 { echo "$as_me:$LINENO: creating $ac_file" >&5
Chris@0 20950 echo "$as_me: creating $ac_file" >&6;}
Chris@0 20951 rm -f "$ac_file"
Chris@0 20952 fi
Chris@0 20953 _ACEOF
Chris@0 20954 cat >>$CONFIG_STATUS <<_ACEOF
Chris@0 20955 sed "$ac_vpsub
Chris@0 20956 $extrasub
Chris@0 20957 _ACEOF
Chris@0 20958 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20959 :t
Chris@0 20960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@0 20961 s,@configure_input@,$configure_input,;t t
Chris@0 20962 s,@srcdir@,$ac_srcdir,;t t
Chris@0 20963 s,@abs_srcdir@,$ac_abs_srcdir,;t t
Chris@0 20964 s,@top_srcdir@,$ac_top_srcdir,;t t
Chris@0 20965 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
Chris@0 20966 s,@builddir@,$ac_builddir,;t t
Chris@0 20967 s,@abs_builddir@,$ac_abs_builddir,;t t
Chris@0 20968 s,@top_builddir@,$ac_top_builddir,;t t
Chris@0 20969 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Chris@0 20970 s,@INSTALL@,$ac_INSTALL,;t t
Chris@0 20971 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
Chris@0 20972 rm -f $tmp/stdin
Chris@0 20973 if test x"$ac_file" != x-; then
Chris@0 20974 mv $tmp/out $ac_file
Chris@0 20975 else
Chris@0 20976 cat $tmp/out
Chris@0 20977 rm -f $tmp/out
Chris@0 20978 fi
Chris@0 20979
Chris@0 20980 done
Chris@0 20981 _ACEOF
Chris@0 20982 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 20983
Chris@0 20984 #
Chris@0 20985 # CONFIG_HEADER section.
Chris@0 20986 #
Chris@0 20987
Chris@0 20988 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
Chris@0 20989 # NAME is the cpp macro being defined and VALUE is the value it is being given.
Chris@0 20990 #
Chris@0 20991 # ac_d sets the value in "#define NAME VALUE" lines.
Chris@0 20992 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
Chris@0 20993 ac_dB='[ ].*$,\1#\2'
Chris@0 20994 ac_dC=' '
Chris@0 20995 ac_dD=',;t'
Chris@0 20996 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Chris@0 20997 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Chris@0 20998 ac_uB='$,\1#\2define\3'
Chris@0 20999 ac_uC=' '
Chris@0 21000 ac_uD=',;t'
Chris@0 21001
Chris@0 21002 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Chris@0 21003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Chris@0 21004 case $ac_file in
Chris@0 21005 - | *:- | *:-:* ) # input from stdin
Chris@0 21006 cat >$tmp/stdin
Chris@0 21007 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Chris@0 21008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Chris@0 21009 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Chris@0 21010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Chris@0 21011 * ) ac_file_in=$ac_file.in ;;
Chris@0 21012 esac
Chris@0 21013
Chris@0 21014 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Chris@0 21015 echo "$as_me: creating $ac_file" >&6;}
Chris@0 21016
Chris@0 21017 # First look for the input files in the build tree, otherwise in the
Chris@0 21018 # src tree.
Chris@0 21019 ac_file_inputs=`IFS=:
Chris@0 21020 for f in $ac_file_in; do
Chris@0 21021 case $f in
Chris@0 21022 -) echo $tmp/stdin ;;
Chris@0 21023 [\\/$]*)
Chris@0 21024 # Absolute (can't be DOS-style, as IFS=:)
Chris@0 21025 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Chris@0 21026 echo "$as_me: error: cannot find input file: $f" >&2;}
Chris@0 21027 { (exit 1); exit 1; }; }
Chris@0 21028 # Do quote $f, to prevent DOS paths from being IFS'd.
Chris@0 21029 echo "$f";;
Chris@0 21030 *) # Relative
Chris@0 21031 if test -f "$f"; then
Chris@0 21032 # Build tree
Chris@0 21033 echo "$f"
Chris@0 21034 elif test -f "$srcdir/$f"; then
Chris@0 21035 # Source tree
Chris@0 21036 echo "$srcdir/$f"
Chris@0 21037 else
Chris@0 21038 # /dev/null tree
Chris@0 21039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Chris@0 21040 echo "$as_me: error: cannot find input file: $f" >&2;}
Chris@0 21041 { (exit 1); exit 1; }; }
Chris@0 21042 fi;;
Chris@0 21043 esac
Chris@0 21044 done` || { (exit 1); exit 1; }
Chris@0 21045 # Remove the trailing spaces.
Chris@0 21046 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Chris@0 21047
Chris@0 21048 _ACEOF
Chris@0 21049
Chris@0 21050 # Transform confdefs.h into two sed scripts, `conftest.defines' and
Chris@0 21051 # `conftest.undefs', that substitutes the proper values into
Chris@0 21052 # config.h.in to produce config.h. The first handles `#define'
Chris@0 21053 # templates, and the second `#undef' templates.
Chris@0 21054 # And first: Protect against being on the right side of a sed subst in
Chris@0 21055 # config.status. Protect against being in an unquoted here document
Chris@0 21056 # in config.status.
Chris@0 21057 rm -f conftest.defines conftest.undefs
Chris@0 21058 # Using a here document instead of a string reduces the quoting nightmare.
Chris@0 21059 # Putting comments in sed scripts is not portable.
Chris@0 21060 #
Chris@0 21061 # `end' is used to avoid that the second main sed command (meant for
Chris@0 21062 # 0-ary CPP macros) applies to n-ary macro definitions.
Chris@0 21063 # See the Autoconf documentation for `clear'.
Chris@0 21064 cat >confdef2sed.sed <<\_ACEOF
Chris@0 21065 s/[\\&,]/\\&/g
Chris@0 21066 s,[\\$`],\\&,g
Chris@0 21067 t clear
Chris@0 21068 : clear
Chris@0 21069 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Chris@0 21070 t end
Chris@0 21071 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Chris@0 21072 : end
Chris@0 21073 _ACEOF
Chris@0 21074 # If some macros were called several times there might be several times
Chris@0 21075 # the same #defines, which is useless. Nevertheless, we may not want to
Chris@0 21076 # sort them, since we want the *last* AC-DEFINE to be honored.
Chris@0 21077 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
Chris@0 21078 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
Chris@0 21079 rm -f confdef2sed.sed
Chris@0 21080
Chris@0 21081 # This sed command replaces #undef with comments. This is necessary, for
Chris@0 21082 # example, in the case of _POSIX_SOURCE, which is predefined and required
Chris@0 21083 # on some systems where configure will not decide to define it.
Chris@0 21084 cat >>conftest.undefs <<\_ACEOF
Chris@0 21085 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Chris@0 21086 _ACEOF
Chris@0 21087
Chris@0 21088 # Break up conftest.defines because some shells have a limit on the size
Chris@0 21089 # of here documents, and old seds have small limits too (100 cmds).
Chris@0 21090 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Chris@0 21091 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Chris@0 21092 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
Chris@0 21093 echo ' :' >>$CONFIG_STATUS
Chris@0 21094 rm -f conftest.tail
Chris@0 21095 while grep . conftest.defines >/dev/null
Chris@0 21096 do
Chris@0 21097 # Write a limited-size here document to $tmp/defines.sed.
Chris@0 21098 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
Chris@0 21099 # Speed up: don't consider the non `#define' lines.
Chris@0 21100 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Chris@0 21101 # Work around the forget-to-reset-the-flag bug.
Chris@0 21102 echo 't clr' >>$CONFIG_STATUS
Chris@0 21103 echo ': clr' >>$CONFIG_STATUS
Chris@0 21104 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Chris@0 21105 echo 'CEOF
Chris@0 21106 sed -f $tmp/defines.sed $tmp/in >$tmp/out
Chris@0 21107 rm -f $tmp/in
Chris@0 21108 mv $tmp/out $tmp/in
Chris@0 21109 ' >>$CONFIG_STATUS
Chris@0 21110 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
Chris@0 21111 rm -f conftest.defines
Chris@0 21112 mv conftest.tail conftest.defines
Chris@0 21113 done
Chris@0 21114 rm -f conftest.defines
Chris@0 21115 echo ' fi # grep' >>$CONFIG_STATUS
Chris@0 21116 echo >>$CONFIG_STATUS
Chris@0 21117
Chris@0 21118 # Break up conftest.undefs because some shells have a limit on the size
Chris@0 21119 # of here documents, and old seds have small limits too (100 cmds).
Chris@0 21120 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
Chris@0 21121 rm -f conftest.tail
Chris@0 21122 while grep . conftest.undefs >/dev/null
Chris@0 21123 do
Chris@0 21124 # Write a limited-size here document to $tmp/undefs.sed.
Chris@0 21125 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
Chris@0 21126 # Speed up: don't consider the non `#undef'
Chris@0 21127 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Chris@0 21128 # Work around the forget-to-reset-the-flag bug.
Chris@0 21129 echo 't clr' >>$CONFIG_STATUS
Chris@0 21130 echo ': clr' >>$CONFIG_STATUS
Chris@0 21131 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
Chris@0 21132 echo 'CEOF
Chris@0 21133 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
Chris@0 21134 rm -f $tmp/in
Chris@0 21135 mv $tmp/out $tmp/in
Chris@0 21136 ' >>$CONFIG_STATUS
Chris@0 21137 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
Chris@0 21138 rm -f conftest.undefs
Chris@0 21139 mv conftest.tail conftest.undefs
Chris@0 21140 done
Chris@0 21141 rm -f conftest.undefs
Chris@0 21142
Chris@0 21143 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 21144 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@0 21145 # use $as_me), people would be surprised to read:
Chris@0 21146 # /* config.h. Generated by config.status. */
Chris@0 21147 if test x"$ac_file" = x-; then
Chris@0 21148 echo "/* Generated by configure. */" >$tmp/config.h
Chris@0 21149 else
Chris@0 21150 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Chris@0 21151 fi
Chris@0 21152 cat $tmp/in >>$tmp/config.h
Chris@0 21153 rm -f $tmp/in
Chris@0 21154 if test x"$ac_file" != x-; then
Chris@0 21155 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Chris@0 21156 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Chris@0 21157 echo "$as_me: $ac_file is unchanged" >&6;}
Chris@0 21158 else
Chris@0 21159 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
Chris@0 21160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 21161 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@0 21162 X"$ac_file" : 'X\(//\)$' \| \
Chris@0 21163 X"$ac_file" : 'X\(/\)' \| \
Chris@0 21164 . : '\(.\)' 2>/dev/null ||
Chris@0 21165 echo X"$ac_file" |
Chris@0 21166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 21167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 21168 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 21169 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 21170 s/.*/./; q'`
Chris@0 21171 { if $as_mkdir_p; then
Chris@0 21172 mkdir -p "$ac_dir"
Chris@0 21173 else
Chris@0 21174 as_dir="$ac_dir"
Chris@0 21175 as_dirs=
Chris@0 21176 while test ! -d "$as_dir"; do
Chris@0 21177 as_dirs="$as_dir $as_dirs"
Chris@0 21178 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Chris@0 21179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 21180 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@0 21181 X"$as_dir" : 'X\(//\)$' \| \
Chris@0 21182 X"$as_dir" : 'X\(/\)' \| \
Chris@0 21183 . : '\(.\)' 2>/dev/null ||
Chris@0 21184 echo X"$as_dir" |
Chris@0 21185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 21186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 21187 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 21188 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 21189 s/.*/./; q'`
Chris@0 21190 done
Chris@0 21191 test ! -n "$as_dirs" || mkdir $as_dirs
Chris@0 21192 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
Chris@0 21193 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
Chris@0 21194 { (exit 1); exit 1; }; }; }
Chris@0 21195
Chris@0 21196 rm -f $ac_file
Chris@0 21197 mv $tmp/config.h $ac_file
Chris@0 21198 fi
Chris@0 21199 else
Chris@0 21200 cat $tmp/config.h
Chris@0 21201 rm -f $tmp/config.h
Chris@0 21202 fi
Chris@0 21203 # Compute $ac_file's index in $config_headers.
Chris@0 21204 _am_stamp_count=1
Chris@0 21205 for _am_header in $config_headers :; do
Chris@0 21206 case $_am_header in
Chris@0 21207 $ac_file | $ac_file:* )
Chris@0 21208 break ;;
Chris@0 21209 * )
Chris@0 21210 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@0 21211 esac
Chris@0 21212 done
Chris@0 21213 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
Chris@0 21214 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 21215 X$ac_file : 'X\(//\)[^/]' \| \
Chris@0 21216 X$ac_file : 'X\(//\)$' \| \
Chris@0 21217 X$ac_file : 'X\(/\)' \| \
Chris@0 21218 . : '\(.\)' 2>/dev/null ||
Chris@0 21219 echo X$ac_file |
Chris@0 21220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 21221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 21222 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 21223 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 21224 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@0 21225 done
Chris@0 21226 _ACEOF
Chris@0 21227 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 21228
Chris@0 21229 #
Chris@0 21230 # CONFIG_COMMANDS section.
Chris@0 21231 #
Chris@0 21232 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
Chris@0 21233 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
Chris@0 21234 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Chris@0 21235 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
Chris@0 21236 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 21237 X"$ac_dest" : 'X\(//\)[^/]' \| \
Chris@0 21238 X"$ac_dest" : 'X\(//\)$' \| \
Chris@0 21239 X"$ac_dest" : 'X\(/\)' \| \
Chris@0 21240 . : '\(.\)' 2>/dev/null ||
Chris@0 21241 echo X"$ac_dest" |
Chris@0 21242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 21243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 21244 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 21245 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 21246 s/.*/./; q'`
Chris@0 21247 { if $as_mkdir_p; then
Chris@0 21248 mkdir -p "$ac_dir"
Chris@0 21249 else
Chris@0 21250 as_dir="$ac_dir"
Chris@0 21251 as_dirs=
Chris@0 21252 while test ! -d "$as_dir"; do
Chris@0 21253 as_dirs="$as_dir $as_dirs"
Chris@0 21254 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Chris@0 21255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 21256 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@0 21257 X"$as_dir" : 'X\(//\)$' \| \
Chris@0 21258 X"$as_dir" : 'X\(/\)' \| \
Chris@0 21259 . : '\(.\)' 2>/dev/null ||
Chris@0 21260 echo X"$as_dir" |
Chris@0 21261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 21262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 21263 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 21264 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 21265 s/.*/./; q'`
Chris@0 21266 done
Chris@0 21267 test ! -n "$as_dirs" || mkdir $as_dirs
Chris@0 21268 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
Chris@0 21269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
Chris@0 21270 { (exit 1); exit 1; }; }; }
Chris@0 21271
Chris@0 21272 ac_builddir=.
Chris@0 21273
Chris@0 21274 if test "$ac_dir" != .; then
Chris@0 21275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@0 21276 # A "../" for each directory in $ac_dir_suffix.
Chris@0 21277 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Chris@0 21278 else
Chris@0 21279 ac_dir_suffix= ac_top_builddir=
Chris@0 21280 fi
Chris@0 21281
Chris@0 21282 case $srcdir in
Chris@0 21283 .) # No --srcdir option. We are building in place.
Chris@0 21284 ac_srcdir=.
Chris@0 21285 if test -z "$ac_top_builddir"; then
Chris@0 21286 ac_top_srcdir=.
Chris@0 21287 else
Chris@0 21288 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
Chris@0 21289 fi ;;
Chris@0 21290 [\\/]* | ?:[\\/]* ) # Absolute path.
Chris@0 21291 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@0 21292 ac_top_srcdir=$srcdir ;;
Chris@0 21293 *) # Relative path.
Chris@0 21294 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
Chris@0 21295 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Chris@0 21296 esac
Chris@0 21297
Chris@0 21298 # Do not use `cd foo && pwd` to compute absolute paths, because
Chris@0 21299 # the directories may not exist.
Chris@0 21300 case `pwd` in
Chris@0 21301 .) ac_abs_builddir="$ac_dir";;
Chris@0 21302 *)
Chris@0 21303 case "$ac_dir" in
Chris@0 21304 .) ac_abs_builddir=`pwd`;;
Chris@0 21305 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
Chris@0 21306 *) ac_abs_builddir=`pwd`/"$ac_dir";;
Chris@0 21307 esac;;
Chris@0 21308 esac
Chris@0 21309 case $ac_abs_builddir in
Chris@0 21310 .) ac_abs_top_builddir=${ac_top_builddir}.;;
Chris@0 21311 *)
Chris@0 21312 case ${ac_top_builddir}. in
Chris@0 21313 .) ac_abs_top_builddir=$ac_abs_builddir;;
Chris@0 21314 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
Chris@0 21315 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
Chris@0 21316 esac;;
Chris@0 21317 esac
Chris@0 21318 case $ac_abs_builddir in
Chris@0 21319 .) ac_abs_srcdir=$ac_srcdir;;
Chris@0 21320 *)
Chris@0 21321 case $ac_srcdir in
Chris@0 21322 .) ac_abs_srcdir=$ac_abs_builddir;;
Chris@0 21323 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
Chris@0 21324 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
Chris@0 21325 esac;;
Chris@0 21326 esac
Chris@0 21327 case $ac_abs_builddir in
Chris@0 21328 .) ac_abs_top_srcdir=$ac_top_srcdir;;
Chris@0 21329 *)
Chris@0 21330 case $ac_top_srcdir in
Chris@0 21331 .) ac_abs_top_srcdir=$ac_abs_builddir;;
Chris@0 21332 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
Chris@0 21333 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
Chris@0 21334 esac;;
Chris@0 21335 esac
Chris@0 21336
Chris@0 21337
Chris@0 21338 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
Chris@0 21339 echo "$as_me: executing $ac_dest commands" >&6;}
Chris@0 21340 case $ac_dest in
Chris@0 21341 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Chris@0 21342 # Strip MF so we end up with the name of the file.
Chris@0 21343 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@0 21344 # Check whether this is an Automake generated Makefile or not.
Chris@0 21345 # We used to match only the files named `Makefile.in', but
Chris@0 21346 # some people rename them; so instead we look at the file content.
Chris@0 21347 # Grep'ing the first line is not enough: some people post-process
Chris@0 21348 # each Makefile.in and add a new line on top of each file to say so.
Chris@0 21349 # So let's grep whole file.
Chris@0 21350 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
Chris@0 21351 dirpart=`(dirname "$mf") 2>/dev/null ||
Chris@0 21352 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 21353 X"$mf" : 'X\(//\)[^/]' \| \
Chris@0 21354 X"$mf" : 'X\(//\)$' \| \
Chris@0 21355 X"$mf" : 'X\(/\)' \| \
Chris@0 21356 . : '\(.\)' 2>/dev/null ||
Chris@0 21357 echo X"$mf" |
Chris@0 21358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 21359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 21360 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 21361 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 21362 s/.*/./; q'`
Chris@0 21363 else
Chris@0 21364 continue
Chris@0 21365 fi
Chris@0 21366 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
Chris@0 21367 # Extract the definition of DEP_FILES from the Makefile without
Chris@0 21368 # running `make'.
Chris@0 21369 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
Chris@0 21370 test -z "$DEPDIR" && continue
Chris@0 21371 # When using ansi2knr, U may be empty or an underscore; expand it
Chris@0 21372 U=`sed -n -e '/^U = / s///p' < "$mf"`
Chris@0 21373 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
Chris@0 21374 # We invoke sed twice because it is the simplest approach to
Chris@0 21375 # changing $(DEPDIR) to its actual value in the expansion.
Chris@0 21376 for file in `sed -n -e '
Chris@0 21377 /^DEP_FILES = .*\\\\$/ {
Chris@0 21378 s/^DEP_FILES = //
Chris@0 21379 :loop
Chris@0 21380 s/\\\\$//
Chris@0 21381 p
Chris@0 21382 n
Chris@0 21383 /\\\\$/ b loop
Chris@0 21384 p
Chris@0 21385 }
Chris@0 21386 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
Chris@0 21387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
Chris@0 21388 # Make sure the directory exists.
Chris@0 21389 test -f "$dirpart/$file" && continue
Chris@0 21390 fdir=`(dirname "$file") 2>/dev/null ||
Chris@0 21391 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 21392 X"$file" : 'X\(//\)[^/]' \| \
Chris@0 21393 X"$file" : 'X\(//\)$' \| \
Chris@0 21394 X"$file" : 'X\(/\)' \| \
Chris@0 21395 . : '\(.\)' 2>/dev/null ||
Chris@0 21396 echo X"$file" |
Chris@0 21397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 21398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 21399 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 21400 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 21401 s/.*/./; q'`
Chris@0 21402 { if $as_mkdir_p; then
Chris@0 21403 mkdir -p $dirpart/$fdir
Chris@0 21404 else
Chris@0 21405 as_dir=$dirpart/$fdir
Chris@0 21406 as_dirs=
Chris@0 21407 while test ! -d "$as_dir"; do
Chris@0 21408 as_dirs="$as_dir $as_dirs"
Chris@0 21409 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Chris@0 21410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@0 21411 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@0 21412 X"$as_dir" : 'X\(//\)$' \| \
Chris@0 21413 X"$as_dir" : 'X\(/\)' \| \
Chris@0 21414 . : '\(.\)' 2>/dev/null ||
Chris@0 21415 echo X"$as_dir" |
Chris@0 21416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
Chris@0 21417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Chris@0 21418 /^X\(\/\/\)$/{ s//\1/; q; }
Chris@0 21419 /^X\(\/\).*/{ s//\1/; q; }
Chris@0 21420 s/.*/./; q'`
Chris@0 21421 done
Chris@0 21422 test ! -n "$as_dirs" || mkdir $as_dirs
Chris@0 21423 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
Chris@0 21424 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
Chris@0 21425 { (exit 1); exit 1; }; }; }
Chris@0 21426
Chris@0 21427 # echo "creating $dirpart/$file"
Chris@0 21428 echo '# dummy' > "$dirpart/$file"
Chris@0 21429 done
Chris@0 21430 done
Chris@0 21431 ;;
Chris@0 21432 esac
Chris@0 21433 done
Chris@0 21434 _ACEOF
Chris@0 21435
Chris@0 21436 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@0 21437
Chris@0 21438 { (exit 0); exit 0; }
Chris@0 21439 _ACEOF
Chris@0 21440 chmod +x $CONFIG_STATUS
Chris@0 21441 ac_clean_files=$ac_clean_files_save
Chris@0 21442
Chris@0 21443
Chris@0 21444 # configure is writing to config.log, and then calls config.status.
Chris@0 21445 # config.status does its own redirection, appending to config.log.
Chris@0 21446 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@0 21447 # by configure, so config.status won't be able to write to it; its
Chris@0 21448 # output is simply discarded. So we exec the FD to /dev/null,
Chris@0 21449 # effectively closing config.log, so it can be properly (re)opened and
Chris@0 21450 # appended to by config.status. When coming back to configure, we
Chris@0 21451 # need to make the FD available again.
Chris@0 21452 if test "$no_create" != yes; then
Chris@0 21453 ac_cs_success=:
Chris@0 21454 ac_config_status_args=
Chris@0 21455 test "$silent" = yes &&
Chris@0 21456 ac_config_status_args="$ac_config_status_args --quiet"
Chris@0 21457 exec 5>/dev/null
Chris@0 21458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@0 21459 exec 5>>config.log
Chris@0 21460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@0 21461 # would make configure fail if this is the last instruction.
Chris@0 21462 $ac_cs_success || { (exit 1); exit 1; }
Chris@0 21463 fi
Chris@0 21464