John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57 for [LLVM] [1.0]. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
| 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 8 | # Free Software Foundation, Inc. |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
| 25 | |
| 26 | # Support unset when possible. |
| 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
| 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
| 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
| 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
| 242 | $as_unset CDPATH |
| 243 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 244 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 245 | |
| 246 | # Check that we are running under the correct shell. |
| 247 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 248 | |
| 249 | case X$ECHO in |
| 250 | X*--fallback-echo) |
| 251 | # Remove one level of quotation (which was required for Make). |
| 252 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 253 | ;; |
| 254 | esac |
| 255 | |
| 256 | echo=${ECHO-echo} |
| 257 | if test "X$1" = X--no-reexec; then |
| 258 | # Discard the --no-reexec flag, and continue. |
| 259 | shift |
| 260 | elif test "X$1" = X--fallback-echo; then |
| 261 | # Avoid inline document here, it may be left over |
| 262 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 263 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 264 | # Yippee, $echo works! |
| 265 | : |
| 266 | else |
| 267 | # Restart under the correct shell. |
| 268 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 269 | fi |
| 270 | |
| 271 | if test "X$1" = X--fallback-echo; then |
| 272 | # used as fallback echo |
| 273 | shift |
| 274 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 275 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 276 | EOF |
| 277 | exit 0 |
| 278 | fi |
| 279 | |
| 280 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 281 | # if CDPATH is set. |
| 282 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 283 | |
| 284 | if test -z "$ECHO"; then |
| 285 | if test "X${echo_test_string+set}" != Xset; then |
| 286 | # find a string as large as possible, as long as the shell can cope with it |
| 287 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 288 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 289 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 290 | echo_test_string="`eval $cmd`" && |
| 291 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 292 | then |
| 293 | break |
| 294 | fi |
| 295 | done |
| 296 | fi |
| 297 | |
| 298 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 299 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 300 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 301 | : |
| 302 | else |
| 303 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 304 | # backslashes. This makes it impossible to quote backslashes using |
| 305 | # echo "$something" | sed 's/\\/\\\\/g' |
| 306 | # |
| 307 | # So, first we look for a working echo in the user's PATH. |
| 308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 309 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 310 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 311 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 312 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 313 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 314 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 315 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 316 | echo="$dir/echo" |
| 317 | break |
| 318 | fi |
| 319 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 320 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 321 | |
| 322 | if test "X$echo" = Xecho; then |
| 323 | # We didn't find a better echo, so look for alternatives. |
| 324 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 325 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 326 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 327 | # This shell has a builtin print -r that does the trick. |
| 328 | echo='print -r' |
| 329 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 330 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 331 | # If we have ksh, try running configure again with it. |
| 332 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 333 | export ORIGINAL_CONFIG_SHELL |
| 334 | CONFIG_SHELL=/bin/ksh |
| 335 | export CONFIG_SHELL |
| 336 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 337 | else |
| 338 | # Try using printf. |
| 339 | echo='printf %s\n' |
| 340 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 341 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 342 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 343 | # Cool, printf works |
| 344 | : |
| 345 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 346 | test "X$echo_testing_string" = 'X\t' && |
| 347 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 348 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 349 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 350 | export CONFIG_SHELL |
| 351 | SHELL="$CONFIG_SHELL" |
| 352 | export SHELL |
| 353 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 354 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 355 | test "X$echo_testing_string" = 'X\t' && |
| 356 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 357 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 358 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 359 | else |
| 360 | # maybe with a smaller string... |
| 361 | prev=: |
| 362 | |
| 363 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 364 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 365 | then |
| 366 | break |
| 367 | fi |
| 368 | prev="$cmd" |
| 369 | done |
| 370 | |
| 371 | if test "$prev" != 'sed 50q "$0"'; then |
| 372 | echo_test_string=`eval $prev` |
| 373 | export echo_test_string |
| 374 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 375 | else |
| 376 | # Oops. We lost completely, so just stick with echo. |
| 377 | echo=echo |
| 378 | fi |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | |
| 385 | # Copy echo and quote the copy suitably for passing to libtool from |
| 386 | # the Makefile, instead of quoting the original, which is used later. |
| 387 | ECHO=$echo |
| 388 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 389 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 390 | fi |
| 391 | |
| 392 | |
| 393 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 394 | |
| 395 | tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` |
| 396 | |
| 397 | tagnames=`echo "$tagnames,F77" | sed 's/^,//'` |
| 398 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 399 | # Name of the host. |
| 400 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 401 | # so uname gets run too. |
| 402 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 403 | |
| 404 | exec 6>&1 |
| 405 | |
| 406 | # |
| 407 | # Initializations. |
| 408 | # |
| 409 | ac_default_prefix=/usr/local |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 410 | ac_config_libobj_dir=. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 411 | cross_compiling=no |
| 412 | subdirs= |
| 413 | MFLAGS= |
| 414 | MAKEFLAGS= |
| 415 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 416 | |
| 417 | # Maximum number of lines to put in a shell here document. |
| 418 | # This variable seems obsolete. It should probably be removed, and |
| 419 | # only ac_max_sed_lines should be used. |
| 420 | : ${ac_max_here_lines=38} |
| 421 | |
| 422 | # Identity of this package. |
| 423 | PACKAGE_NAME='[LLVM]' |
| 424 | PACKAGE_TARNAME='--llvm--' |
| 425 | PACKAGE_VERSION='[1.0]' |
| 426 | PACKAGE_STRING='[LLVM] [1.0]' |
| 427 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 428 | |
| 429 | # Factoring default headers for most tests. |
| 430 | ac_includes_default="\ |
| 431 | #include <stdio.h> |
| 432 | #if HAVE_SYS_TYPES_H |
| 433 | # include <sys/types.h> |
| 434 | #endif |
| 435 | #if HAVE_SYS_STAT_H |
| 436 | # include <sys/stat.h> |
| 437 | #endif |
| 438 | #if STDC_HEADERS |
| 439 | # include <stdlib.h> |
| 440 | # include <stddef.h> |
| 441 | #else |
| 442 | # if HAVE_STDLIB_H |
| 443 | # include <stdlib.h> |
| 444 | # endif |
| 445 | #endif |
| 446 | #if HAVE_STRING_H |
| 447 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 448 | # include <memory.h> |
| 449 | # endif |
| 450 | # include <string.h> |
| 451 | #endif |
| 452 | #if HAVE_STRINGS_H |
| 453 | # include <strings.h> |
| 454 | #endif |
| 455 | #if HAVE_INTTYPES_H |
| 456 | # include <inttypes.h> |
| 457 | #else |
| 458 | # if HAVE_STDINT_H |
| 459 | # include <stdint.h> |
| 460 | # endif |
| 461 | #endif |
| 462 | #if HAVE_UNISTD_H |
| 463 | # include <unistd.h> |
| 464 | #endif" |
| 465 | |
| 466 | ac_unique_file=""Makefile.config.in"" |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 467 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SED RM MKDIR DATE MV DOT ETAGS PURIFY ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR OBJROOT LTLIBOBJS' |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 468 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 469 | |
| 470 | # Initialize some variables set by options. |
| 471 | ac_init_help= |
| 472 | ac_init_version=false |
| 473 | # The variables have the same names as the options, with |
| 474 | # dashes changed to underlines. |
| 475 | cache_file=/dev/null |
| 476 | exec_prefix=NONE |
| 477 | no_create= |
| 478 | no_recursion= |
| 479 | prefix=NONE |
| 480 | program_prefix=NONE |
| 481 | program_suffix=NONE |
| 482 | program_transform_name=s,x,x, |
| 483 | silent= |
| 484 | site= |
| 485 | srcdir= |
| 486 | verbose= |
| 487 | x_includes=NONE |
| 488 | x_libraries=NONE |
| 489 | |
| 490 | # Installation directory options. |
| 491 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 492 | # and all the variables that are supposed to be based on exec_prefix |
| 493 | # by default will actually change. |
| 494 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 495 | bindir='${exec_prefix}/bin' |
| 496 | sbindir='${exec_prefix}/sbin' |
| 497 | libexecdir='${exec_prefix}/libexec' |
| 498 | datadir='${prefix}/share' |
| 499 | sysconfdir='${prefix}/etc' |
| 500 | sharedstatedir='${prefix}/com' |
| 501 | localstatedir='${prefix}/var' |
| 502 | libdir='${exec_prefix}/lib' |
| 503 | includedir='${prefix}/include' |
| 504 | oldincludedir='/usr/include' |
| 505 | infodir='${prefix}/info' |
| 506 | mandir='${prefix}/man' |
| 507 | |
| 508 | ac_prev= |
| 509 | for ac_option |
| 510 | do |
| 511 | # If the previous option needs an argument, assign it. |
| 512 | if test -n "$ac_prev"; then |
| 513 | eval "$ac_prev=\$ac_option" |
| 514 | ac_prev= |
| 515 | continue |
| 516 | fi |
| 517 | |
| 518 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 519 | |
| 520 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 521 | |
| 522 | case $ac_option in |
| 523 | |
| 524 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 525 | ac_prev=bindir ;; |
| 526 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 527 | bindir=$ac_optarg ;; |
| 528 | |
| 529 | -build | --build | --buil | --bui | --bu) |
| 530 | ac_prev=build_alias ;; |
| 531 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 532 | build_alias=$ac_optarg ;; |
| 533 | |
| 534 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 535 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 536 | ac_prev=cache_file ;; |
| 537 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 538 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 539 | cache_file=$ac_optarg ;; |
| 540 | |
| 541 | --config-cache | -C) |
| 542 | cache_file=config.cache ;; |
| 543 | |
| 544 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 545 | ac_prev=datadir ;; |
| 546 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 547 | | --da=*) |
| 548 | datadir=$ac_optarg ;; |
| 549 | |
| 550 | -disable-* | --disable-*) |
| 551 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 552 | # Reject names that are not valid shell variable names. |
| 553 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 554 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 555 | { (exit 1); exit 1; }; } |
| 556 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 557 | eval "enable_$ac_feature=no" ;; |
| 558 | |
| 559 | -enable-* | --enable-*) |
| 560 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 561 | # Reject names that are not valid shell variable names. |
| 562 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 563 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 564 | { (exit 1); exit 1; }; } |
| 565 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 566 | case $ac_option in |
| 567 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 568 | *) ac_optarg=yes ;; |
| 569 | esac |
| 570 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 571 | |
| 572 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 573 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 574 | | --exec | --exe | --ex) |
| 575 | ac_prev=exec_prefix ;; |
| 576 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 577 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 578 | | --exec=* | --exe=* | --ex=*) |
| 579 | exec_prefix=$ac_optarg ;; |
| 580 | |
| 581 | -gas | --gas | --ga | --g) |
| 582 | # Obsolete; use --with-gas. |
| 583 | with_gas=yes ;; |
| 584 | |
| 585 | -help | --help | --hel | --he | -h) |
| 586 | ac_init_help=long ;; |
| 587 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 588 | ac_init_help=recursive ;; |
| 589 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 590 | ac_init_help=short ;; |
| 591 | |
| 592 | -host | --host | --hos | --ho) |
| 593 | ac_prev=host_alias ;; |
| 594 | -host=* | --host=* | --hos=* | --ho=*) |
| 595 | host_alias=$ac_optarg ;; |
| 596 | |
| 597 | -includedir | --includedir | --includedi | --included | --include \ |
| 598 | | --includ | --inclu | --incl | --inc) |
| 599 | ac_prev=includedir ;; |
| 600 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 601 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 602 | includedir=$ac_optarg ;; |
| 603 | |
| 604 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 605 | ac_prev=infodir ;; |
| 606 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 607 | infodir=$ac_optarg ;; |
| 608 | |
| 609 | -libdir | --libdir | --libdi | --libd) |
| 610 | ac_prev=libdir ;; |
| 611 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 612 | libdir=$ac_optarg ;; |
| 613 | |
| 614 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 615 | | --libexe | --libex | --libe) |
| 616 | ac_prev=libexecdir ;; |
| 617 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 618 | | --libexe=* | --libex=* | --libe=*) |
| 619 | libexecdir=$ac_optarg ;; |
| 620 | |
| 621 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 622 | | --localstate | --localstat | --localsta | --localst \ |
| 623 | | --locals | --local | --loca | --loc | --lo) |
| 624 | ac_prev=localstatedir ;; |
| 625 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 626 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 627 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 628 | localstatedir=$ac_optarg ;; |
| 629 | |
| 630 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 631 | ac_prev=mandir ;; |
| 632 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 633 | mandir=$ac_optarg ;; |
| 634 | |
| 635 | -nfp | --nfp | --nf) |
| 636 | # Obsolete; use --without-fp. |
| 637 | with_fp=no ;; |
| 638 | |
| 639 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 640 | | --no-cr | --no-c | -n) |
| 641 | no_create=yes ;; |
| 642 | |
| 643 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 644 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 645 | no_recursion=yes ;; |
| 646 | |
| 647 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 648 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 649 | | --oldin | --oldi | --old | --ol | --o) |
| 650 | ac_prev=oldincludedir ;; |
| 651 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 652 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 653 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 654 | oldincludedir=$ac_optarg ;; |
| 655 | |
| 656 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 657 | ac_prev=prefix ;; |
| 658 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 659 | prefix=$ac_optarg ;; |
| 660 | |
| 661 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 662 | | --program-pre | --program-pr | --program-p) |
| 663 | ac_prev=program_prefix ;; |
| 664 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 665 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 666 | program_prefix=$ac_optarg ;; |
| 667 | |
| 668 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 669 | | --program-suf | --program-su | --program-s) |
| 670 | ac_prev=program_suffix ;; |
| 671 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 672 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 673 | program_suffix=$ac_optarg ;; |
| 674 | |
| 675 | -program-transform-name | --program-transform-name \ |
| 676 | | --program-transform-nam | --program-transform-na \ |
| 677 | | --program-transform-n | --program-transform- \ |
| 678 | | --program-transform | --program-transfor \ |
| 679 | | --program-transfo | --program-transf \ |
| 680 | | --program-trans | --program-tran \ |
| 681 | | --progr-tra | --program-tr | --program-t) |
| 682 | ac_prev=program_transform_name ;; |
| 683 | -program-transform-name=* | --program-transform-name=* \ |
| 684 | | --program-transform-nam=* | --program-transform-na=* \ |
| 685 | | --program-transform-n=* | --program-transform-=* \ |
| 686 | | --program-transform=* | --program-transfor=* \ |
| 687 | | --program-transfo=* | --program-transf=* \ |
| 688 | | --program-trans=* | --program-tran=* \ |
| 689 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 690 | program_transform_name=$ac_optarg ;; |
| 691 | |
| 692 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 693 | | -silent | --silent | --silen | --sile | --sil) |
| 694 | silent=yes ;; |
| 695 | |
| 696 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 697 | ac_prev=sbindir ;; |
| 698 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 699 | | --sbi=* | --sb=*) |
| 700 | sbindir=$ac_optarg ;; |
| 701 | |
| 702 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 703 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 704 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 705 | | --sha | --sh) |
| 706 | ac_prev=sharedstatedir ;; |
| 707 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 708 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 709 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 710 | | --sha=* | --sh=*) |
| 711 | sharedstatedir=$ac_optarg ;; |
| 712 | |
| 713 | -site | --site | --sit) |
| 714 | ac_prev=site ;; |
| 715 | -site=* | --site=* | --sit=*) |
| 716 | site=$ac_optarg ;; |
| 717 | |
| 718 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 719 | ac_prev=srcdir ;; |
| 720 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 721 | srcdir=$ac_optarg ;; |
| 722 | |
| 723 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 724 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 725 | ac_prev=sysconfdir ;; |
| 726 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 727 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 728 | sysconfdir=$ac_optarg ;; |
| 729 | |
| 730 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 731 | ac_prev=target_alias ;; |
| 732 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 733 | target_alias=$ac_optarg ;; |
| 734 | |
| 735 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 736 | verbose=yes ;; |
| 737 | |
| 738 | -version | --version | --versio | --versi | --vers | -V) |
| 739 | ac_init_version=: ;; |
| 740 | |
| 741 | -with-* | --with-*) |
| 742 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 743 | # Reject names that are not valid shell variable names. |
| 744 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 745 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 746 | { (exit 1); exit 1; }; } |
| 747 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 748 | case $ac_option in |
| 749 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 750 | *) ac_optarg=yes ;; |
| 751 | esac |
| 752 | eval "with_$ac_package='$ac_optarg'" ;; |
| 753 | |
| 754 | -without-* | --without-*) |
| 755 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 756 | # Reject names that are not valid shell variable names. |
| 757 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 758 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 759 | { (exit 1); exit 1; }; } |
| 760 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 761 | eval "with_$ac_package=no" ;; |
| 762 | |
| 763 | --x) |
| 764 | # Obsolete; use --with-x. |
| 765 | with_x=yes ;; |
| 766 | |
| 767 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 768 | | --x-incl | --x-inc | --x-in | --x-i) |
| 769 | ac_prev=x_includes ;; |
| 770 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 771 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 772 | x_includes=$ac_optarg ;; |
| 773 | |
| 774 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 775 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 776 | ac_prev=x_libraries ;; |
| 777 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 778 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 779 | x_libraries=$ac_optarg ;; |
| 780 | |
| 781 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 782 | Try \`$0 --help' for more information." >&2 |
| 783 | { (exit 1); exit 1; }; } |
| 784 | ;; |
| 785 | |
| 786 | *=*) |
| 787 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 788 | # Reject names that are not valid shell variable names. |
| 789 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 790 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 791 | { (exit 1); exit 1; }; } |
| 792 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 793 | eval "$ac_envvar='$ac_optarg'" |
| 794 | export $ac_envvar ;; |
| 795 | |
| 796 | *) |
| 797 | # FIXME: should be removed in autoconf 3.0. |
| 798 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 799 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 800 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 801 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 802 | ;; |
| 803 | |
| 804 | esac |
| 805 | done |
| 806 | |
| 807 | if test -n "$ac_prev"; then |
| 808 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 809 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 810 | { (exit 1); exit 1; }; } |
| 811 | fi |
| 812 | |
| 813 | # Be sure to have absolute paths. |
| 814 | for ac_var in exec_prefix prefix |
| 815 | do |
| 816 | eval ac_val=$`echo $ac_var` |
| 817 | case $ac_val in |
| 818 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 819 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 820 | { (exit 1); exit 1; }; };; |
| 821 | esac |
| 822 | done |
| 823 | |
| 824 | # Be sure to have absolute paths. |
| 825 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 826 | localstatedir libdir includedir oldincludedir infodir mandir |
| 827 | do |
| 828 | eval ac_val=$`echo $ac_var` |
| 829 | case $ac_val in |
| 830 | [\\/$]* | ?:[\\/]* ) ;; |
| 831 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 832 | { (exit 1); exit 1; }; };; |
| 833 | esac |
| 834 | done |
| 835 | |
| 836 | # There might be people who depend on the old broken behavior: `$host' |
| 837 | # used to hold the argument of --host etc. |
| 838 | # FIXME: To remove some day. |
| 839 | build=$build_alias |
| 840 | host=$host_alias |
| 841 | target=$target_alias |
| 842 | |
| 843 | # FIXME: To remove some day. |
| 844 | if test "x$host_alias" != x; then |
| 845 | if test "x$build_alias" = x; then |
| 846 | cross_compiling=maybe |
| 847 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 848 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 849 | elif test "x$build_alias" != "x$host_alias"; then |
| 850 | cross_compiling=yes |
| 851 | fi |
| 852 | fi |
| 853 | |
| 854 | ac_tool_prefix= |
| 855 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 856 | |
| 857 | test "$silent" = yes && exec 6>/dev/null |
| 858 | |
| 859 | |
| 860 | # Find the source files, if location was not specified. |
| 861 | if test -z "$srcdir"; then |
| 862 | ac_srcdir_defaulted=yes |
| 863 | # Try the directory containing this script, then its parent. |
| 864 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 865 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 866 | X"$0" : 'X\(//\)[^/]' \| \ |
| 867 | X"$0" : 'X\(//\)$' \| \ |
| 868 | X"$0" : 'X\(/\)' \| \ |
| 869 | . : '\(.\)' 2>/dev/null || |
| 870 | echo X"$0" | |
| 871 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 872 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 873 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 874 | /^X\(\/\).*/{ s//\1/; q; } |
| 875 | s/.*/./; q'` |
| 876 | srcdir=$ac_confdir |
| 877 | if test ! -r $srcdir/$ac_unique_file; then |
| 878 | srcdir=.. |
| 879 | fi |
| 880 | else |
| 881 | ac_srcdir_defaulted=no |
| 882 | fi |
| 883 | if test ! -r $srcdir/$ac_unique_file; then |
| 884 | if test "$ac_srcdir_defaulted" = yes; then |
| 885 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 886 | { (exit 1); exit 1; }; } |
| 887 | else |
| 888 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 889 | { (exit 1); exit 1; }; } |
| 890 | fi |
| 891 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 892 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 893 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 894 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 895 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 896 | ac_env_build_alias_set=${build_alias+set} |
| 897 | ac_env_build_alias_value=$build_alias |
| 898 | ac_cv_env_build_alias_set=${build_alias+set} |
| 899 | ac_cv_env_build_alias_value=$build_alias |
| 900 | ac_env_host_alias_set=${host_alias+set} |
| 901 | ac_env_host_alias_value=$host_alias |
| 902 | ac_cv_env_host_alias_set=${host_alias+set} |
| 903 | ac_cv_env_host_alias_value=$host_alias |
| 904 | ac_env_target_alias_set=${target_alias+set} |
| 905 | ac_env_target_alias_value=$target_alias |
| 906 | ac_cv_env_target_alias_set=${target_alias+set} |
| 907 | ac_cv_env_target_alias_value=$target_alias |
| 908 | ac_env_CXX_set=${CXX+set} |
| 909 | ac_env_CXX_value=$CXX |
| 910 | ac_cv_env_CXX_set=${CXX+set} |
| 911 | ac_cv_env_CXX_value=$CXX |
| 912 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 913 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 914 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 915 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 916 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 917 | ac_env_LDFLAGS_value=$LDFLAGS |
| 918 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 919 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 920 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 921 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 922 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 923 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 924 | ac_env_CC_set=${CC+set} |
| 925 | ac_env_CC_value=$CC |
| 926 | ac_cv_env_CC_set=${CC+set} |
| 927 | ac_cv_env_CC_value=$CC |
| 928 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 929 | ac_env_CFLAGS_value=$CFLAGS |
| 930 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 931 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 932 | ac_env_CPP_set=${CPP+set} |
| 933 | ac_env_CPP_value=$CPP |
| 934 | ac_cv_env_CPP_set=${CPP+set} |
| 935 | ac_cv_env_CPP_value=$CPP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 936 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 937 | ac_env_CXXCPP_value=$CXXCPP |
| 938 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 939 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 940 | ac_env_F77_set=${F77+set} |
| 941 | ac_env_F77_value=$F77 |
| 942 | ac_cv_env_F77_set=${F77+set} |
| 943 | ac_cv_env_F77_value=$F77 |
| 944 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 945 | ac_env_FFLAGS_value=$FFLAGS |
| 946 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 947 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 948 | |
| 949 | # |
| 950 | # Report the --help message. |
| 951 | # |
| 952 | if test "$ac_init_help" = "long"; then |
| 953 | # Omit some internal or obsolete options to make the list less imposing. |
| 954 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 955 | cat <<_ACEOF |
| 956 | \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems. |
| 957 | |
| 958 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 959 | |
| 960 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 961 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 962 | |
| 963 | Defaults for the options are specified in brackets. |
| 964 | |
| 965 | Configuration: |
| 966 | -h, --help display this help and exit |
| 967 | --help=short display options specific to this package |
| 968 | --help=recursive display the short help of all the included packages |
| 969 | -V, --version display version information and exit |
| 970 | -q, --quiet, --silent do not print \`checking...' messages |
| 971 | --cache-file=FILE cache test results in FILE [disabled] |
| 972 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 973 | -n, --no-create do not create output files |
| 974 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 975 | |
| 976 | _ACEOF |
| 977 | |
| 978 | cat <<_ACEOF |
| 979 | Installation directories: |
| 980 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 981 | [$ac_default_prefix] |
| 982 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 983 | [PREFIX] |
| 984 | |
| 985 | By default, \`make install' will install all the files in |
| 986 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 987 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 988 | for instance \`--prefix=\$HOME'. |
| 989 | |
| 990 | For better control, use the options below. |
| 991 | |
| 992 | Fine tuning of the installation directories: |
| 993 | --bindir=DIR user executables [EPREFIX/bin] |
| 994 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 995 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 996 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 997 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 998 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 999 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1000 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1001 | --includedir=DIR C header files [PREFIX/include] |
| 1002 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1003 | --infodir=DIR info documentation [PREFIX/info] |
| 1004 | --mandir=DIR man documentation [PREFIX/man] |
| 1005 | _ACEOF |
| 1006 | |
| 1007 | cat <<\_ACEOF |
| 1008 | |
| 1009 | System types: |
| 1010 | --build=BUILD configure for building on BUILD [guessed] |
| 1011 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1012 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1013 | _ACEOF |
| 1014 | fi |
| 1015 | |
| 1016 | if test -n "$ac_init_help"; then |
| 1017 | case $ac_init_help in |
| 1018 | short | recursive ) echo "Configuration of [LLVM] [1.0]:";; |
| 1019 | esac |
| 1020 | cat <<\_ACEOF |
| 1021 | |
| 1022 | Optional Features: |
| 1023 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1024 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1025 | --enable-shared[=PKGS] |
| 1026 | build shared libraries [default=yes] |
| 1027 | --enable-static[=PKGS] |
| 1028 | build static libraries [default=yes] |
| 1029 | --enable-fast-install[=PKGS] |
| 1030 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1031 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1032 | --enable-purify Compile with purify (default is NO) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1033 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1034 | --enable-spec Compile SPEC benchmarks (default is NO) |
| 1035 | --enable-precompiled_bytecode |
| 1036 | Use pre-compiled bytecode (default is NO) |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 1037 | --enable-llc_diffs Enable LLC Diffs when testing (default is YES) |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1038 | --enable-jit Enable Just In Time Compiling (default is YES) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1039 | |
| 1040 | Optional Packages: |
| 1041 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1042 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1043 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1044 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1045 | both] |
| 1046 | --with-tags[=TAGS] |
| 1047 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1048 | --with-spec Location of SPEC benchmarks |
| 1049 | --with-llvmgccdir Location of LLVM GCC front-end |
| 1050 | --with-bcrepos Location of Bytecode Repository |
| 1051 | --with-papi Location of PAPI |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1052 | --with-purify Location of purify program |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 | --with-objroot Location where object files should be placed |
| 1054 | (default is .) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1055 | |
| 1056 | Some influential environment variables: |
| 1057 | CXX C++ compiler command |
| 1058 | CXXFLAGS C++ compiler flags |
| 1059 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1060 | nonstandard directory <lib dir> |
| 1061 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1062 | headers in a nonstandard directory <include dir> |
| 1063 | CC C compiler command |
| 1064 | CFLAGS C compiler flags |
| 1065 | CPP C preprocessor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1066 | CXXCPP C++ preprocessor |
| 1067 | F77 Fortran 77 compiler command |
| 1068 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1069 | |
| 1070 | Use these variables to override the choices made by `configure' or to help |
| 1071 | it to find libraries and programs with nonstandard names/locations. |
| 1072 | |
| 1073 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1074 | _ACEOF |
| 1075 | fi |
| 1076 | |
| 1077 | if test "$ac_init_help" = "recursive"; then |
| 1078 | # If there are subdirs, report their specific --help. |
| 1079 | ac_popdir=`pwd` |
| 1080 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1081 | test -d $ac_dir || continue |
| 1082 | ac_builddir=. |
| 1083 | |
| 1084 | if test "$ac_dir" != .; then |
| 1085 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1086 | # A "../" for each directory in $ac_dir_suffix. |
| 1087 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1088 | else |
| 1089 | ac_dir_suffix= ac_top_builddir= |
| 1090 | fi |
| 1091 | |
| 1092 | case $srcdir in |
| 1093 | .) # No --srcdir option. We are building in place. |
| 1094 | ac_srcdir=. |
| 1095 | if test -z "$ac_top_builddir"; then |
| 1096 | ac_top_srcdir=. |
| 1097 | else |
| 1098 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1099 | fi ;; |
| 1100 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1101 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1102 | ac_top_srcdir=$srcdir ;; |
| 1103 | *) # Relative path. |
| 1104 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1105 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1106 | esac |
| 1107 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1108 | # absolute. |
| 1109 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1110 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1111 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1112 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1113 | |
| 1114 | cd $ac_dir |
| 1115 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1116 | if test -f $ac_srcdir/configure.gnu; then |
| 1117 | echo |
| 1118 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1119 | elif test -f $ac_srcdir/configure; then |
| 1120 | echo |
| 1121 | $SHELL $ac_srcdir/configure --help=recursive |
| 1122 | elif test -f $ac_srcdir/configure.ac || |
| 1123 | test -f $ac_srcdir/configure.in; then |
| 1124 | echo |
| 1125 | $ac_configure --help |
| 1126 | else |
| 1127 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1128 | fi |
| 1129 | cd $ac_popdir |
| 1130 | done |
| 1131 | fi |
| 1132 | |
| 1133 | test -n "$ac_init_help" && exit 0 |
| 1134 | if $ac_init_version; then |
| 1135 | cat <<\_ACEOF |
| 1136 | [LLVM] configure [1.0] |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1137 | generated by GNU Autoconf 2.57 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1138 | |
| 1139 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1140 | Free Software Foundation, Inc. |
| 1141 | This configure script is free software; the Free Software Foundation |
| 1142 | gives unlimited permission to copy, distribute and modify it. |
| 1143 | _ACEOF |
| 1144 | exit 0 |
| 1145 | fi |
| 1146 | exec 5>config.log |
| 1147 | cat >&5 <<_ACEOF |
| 1148 | This file contains any messages produced by compilers while |
| 1149 | running configure, to aid debugging if configure makes a mistake. |
| 1150 | |
| 1151 | It was created by [LLVM] $as_me [1.0], which was |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1152 | generated by GNU Autoconf 2.57. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1153 | |
| 1154 | $ $0 $@ |
| 1155 | |
| 1156 | _ACEOF |
| 1157 | { |
| 1158 | cat <<_ASUNAME |
| 1159 | ## --------- ## |
| 1160 | ## Platform. ## |
| 1161 | ## --------- ## |
| 1162 | |
| 1163 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1164 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1165 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1166 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1167 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1168 | |
| 1169 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1170 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1171 | |
| 1172 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1173 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1174 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1175 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1176 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1177 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1178 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1179 | |
| 1180 | _ASUNAME |
| 1181 | |
| 1182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1183 | for as_dir in $PATH |
| 1184 | do |
| 1185 | IFS=$as_save_IFS |
| 1186 | test -z "$as_dir" && as_dir=. |
| 1187 | echo "PATH: $as_dir" |
| 1188 | done |
| 1189 | |
| 1190 | } >&5 |
| 1191 | |
| 1192 | cat >&5 <<_ACEOF |
| 1193 | |
| 1194 | |
| 1195 | ## ----------- ## |
| 1196 | ## Core tests. ## |
| 1197 | ## ----------- ## |
| 1198 | |
| 1199 | _ACEOF |
| 1200 | |
| 1201 | |
| 1202 | # Keep a trace of the command line. |
| 1203 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1204 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1205 | # Also quote any args containing shell meta-characters. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1206 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1207 | ac_configure_args= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1208 | ac_configure_args0= |
| 1209 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | ac_sep= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1211 | ac_must_keep_next=false |
| 1212 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | do |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1214 | for ac_arg |
| 1215 | do |
| 1216 | case $ac_arg in |
| 1217 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1218 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1219 | | -silent | --silent | --silen | --sile | --sil) |
| 1220 | continue ;; |
| 1221 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1222 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1223 | esac |
| 1224 | case $ac_pass in |
| 1225 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1226 | 2) |
| 1227 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1228 | if test $ac_must_keep_next = true; then |
| 1229 | ac_must_keep_next=false # Got value, back to normal. |
| 1230 | else |
| 1231 | case $ac_arg in |
| 1232 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1233 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1234 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1235 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1236 | case "$ac_configure_args0 " in |
| 1237 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1238 | esac |
| 1239 | ;; |
| 1240 | -* ) ac_must_keep_next=true ;; |
| 1241 | esac |
| 1242 | fi |
| 1243 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1244 | # Get rid of the leading space. |
| 1245 | ac_sep=" " |
| 1246 | ;; |
| 1247 | esac |
| 1248 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1249 | done |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1250 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1251 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1252 | |
| 1253 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1254 | # config.log. We remove comments because anyway the quotes in there |
| 1255 | # would cause problems or look ugly. |
| 1256 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1257 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1258 | trap 'exit_status=$? |
| 1259 | # Save into config.log some information that might help in debugging. |
| 1260 | { |
| 1261 | echo |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1262 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1263 | cat <<\_ASBOX |
| 1264 | ## ---------------- ## |
| 1265 | ## Cache variables. ## |
| 1266 | ## ---------------- ## |
| 1267 | _ASBOX |
| 1268 | echo |
| 1269 | # The following way of writing the cache mishandles newlines in values, |
| 1270 | { |
| 1271 | (set) 2>&1 | |
| 1272 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1273 | *ac_space=\ *) |
| 1274 | sed -n \ |
| 1275 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1276 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1277 | ;; |
| 1278 | *) |
| 1279 | sed -n \ |
| 1280 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1281 | ;; |
| 1282 | esac; |
| 1283 | } |
| 1284 | echo |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1285 | |
| 1286 | cat <<\_ASBOX |
| 1287 | ## ----------------- ## |
| 1288 | ## Output variables. ## |
| 1289 | ## ----------------- ## |
| 1290 | _ASBOX |
| 1291 | echo |
| 1292 | for ac_var in $ac_subst_vars |
| 1293 | do |
| 1294 | eval ac_val=$`echo $ac_var` |
| 1295 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1296 | done | sort |
| 1297 | echo |
| 1298 | |
| 1299 | if test -n "$ac_subst_files"; then |
| 1300 | cat <<\_ASBOX |
| 1301 | ## ------------- ## |
| 1302 | ## Output files. ## |
| 1303 | ## ------------- ## |
| 1304 | _ASBOX |
| 1305 | echo |
| 1306 | for ac_var in $ac_subst_files |
| 1307 | do |
| 1308 | eval ac_val=$`echo $ac_var` |
| 1309 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1310 | done | sort |
| 1311 | echo |
| 1312 | fi |
| 1313 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1314 | if test -s confdefs.h; then |
| 1315 | cat <<\_ASBOX |
| 1316 | ## ----------- ## |
| 1317 | ## confdefs.h. ## |
| 1318 | ## ----------- ## |
| 1319 | _ASBOX |
| 1320 | echo |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1321 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1322 | echo |
| 1323 | fi |
| 1324 | test "$ac_signal" != 0 && |
| 1325 | echo "$as_me: caught signal $ac_signal" |
| 1326 | echo "$as_me: exit $exit_status" |
| 1327 | } >&5 |
| 1328 | rm -f core core.* *.core && |
| 1329 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1330 | exit $exit_status |
| 1331 | ' 0 |
| 1332 | for ac_signal in 1 2 13 15; do |
| 1333 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1334 | done |
| 1335 | ac_signal=0 |
| 1336 | |
| 1337 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1338 | rm -rf conftest* confdefs.h |
| 1339 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1340 | echo >confdefs.h |
| 1341 | |
| 1342 | # Predefined preprocessor variables. |
| 1343 | |
| 1344 | cat >>confdefs.h <<_ACEOF |
| 1345 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1346 | _ACEOF |
| 1347 | |
| 1348 | |
| 1349 | cat >>confdefs.h <<_ACEOF |
| 1350 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1351 | _ACEOF |
| 1352 | |
| 1353 | |
| 1354 | cat >>confdefs.h <<_ACEOF |
| 1355 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1356 | _ACEOF |
| 1357 | |
| 1358 | |
| 1359 | cat >>confdefs.h <<_ACEOF |
| 1360 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1361 | _ACEOF |
| 1362 | |
| 1363 | |
| 1364 | cat >>confdefs.h <<_ACEOF |
| 1365 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1366 | _ACEOF |
| 1367 | |
| 1368 | |
| 1369 | # Let the site file select an alternate cache file if it wants to. |
| 1370 | # Prefer explicitly selected file to automatically selected ones. |
| 1371 | if test -z "$CONFIG_SITE"; then |
| 1372 | if test "x$prefix" != xNONE; then |
| 1373 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1374 | else |
| 1375 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1376 | fi |
| 1377 | fi |
| 1378 | for ac_site_file in $CONFIG_SITE; do |
| 1379 | if test -r "$ac_site_file"; then |
| 1380 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1381 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1382 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1383 | . "$ac_site_file" |
| 1384 | fi |
| 1385 | done |
| 1386 | |
| 1387 | if test -r "$cache_file"; then |
| 1388 | # Some versions of bash will fail to source /dev/null (special |
| 1389 | # files actually), so we avoid doing that. |
| 1390 | if test -f "$cache_file"; then |
| 1391 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1392 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1393 | case $cache_file in |
| 1394 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1395 | *) . ./$cache_file;; |
| 1396 | esac |
| 1397 | fi |
| 1398 | else |
| 1399 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1400 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1401 | >$cache_file |
| 1402 | fi |
| 1403 | |
| 1404 | # Check that the precious variables saved in the cache have kept the same |
| 1405 | # value. |
| 1406 | ac_cache_corrupted=false |
| 1407 | for ac_var in `(set) 2>&1 | |
| 1408 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1409 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1410 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1411 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1412 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1413 | case $ac_old_set,$ac_new_set in |
| 1414 | set,) |
| 1415 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1416 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1417 | ac_cache_corrupted=: ;; |
| 1418 | ,set) |
| 1419 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1420 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1421 | ac_cache_corrupted=: ;; |
| 1422 | ,);; |
| 1423 | *) |
| 1424 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1425 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1426 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1427 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1428 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1429 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1430 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1431 | ac_cache_corrupted=: |
| 1432 | fi;; |
| 1433 | esac |
| 1434 | # Pass precious variables to config.status. |
| 1435 | if test "$ac_new_set" = set; then |
| 1436 | case $ac_new_val in |
| 1437 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1438 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1439 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1440 | esac |
| 1441 | case " $ac_configure_args " in |
| 1442 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1443 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1444 | esac |
| 1445 | fi |
| 1446 | done |
| 1447 | if $ac_cache_corrupted; then |
| 1448 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1449 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1450 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1451 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1452 | { (exit 1); exit 1; }; } |
| 1453 | fi |
| 1454 | |
| 1455 | ac_ext=c |
| 1456 | ac_cpp='$CPP $CPPFLAGS' |
| 1457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1487 | |
| 1488 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1489 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1490 | if test -f $ac_dir/install-sh; then |
| 1491 | ac_aux_dir=$ac_dir |
| 1492 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1493 | break |
| 1494 | elif test -f $ac_dir/install.sh; then |
| 1495 | ac_aux_dir=$ac_dir |
| 1496 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1497 | break |
| 1498 | elif test -f $ac_dir/shtool; then |
| 1499 | ac_aux_dir=$ac_dir |
| 1500 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1501 | break |
| 1502 | fi |
| 1503 | done |
| 1504 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1505 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1506 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1507 | { (exit 1); exit 1; }; } |
| 1508 | fi |
| 1509 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1510 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1511 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1512 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1513 | |
| 1514 | ac_config_headers="$ac_config_headers include/Config/config.h" |
| 1515 | |
| 1516 | |
| 1517 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1518 | # Find a good install program. We prefer a C program (faster), |
| 1519 | # so one script is as good as another. But avoid the broken or |
| 1520 | # incompatible versions: |
| 1521 | # SysV /etc/install, /usr/sbin/install |
| 1522 | # SunOS /usr/etc/install |
| 1523 | # IRIX /sbin/install |
| 1524 | # AIX /bin/install |
| 1525 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1526 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1527 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1528 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1529 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1530 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1531 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1532 | if test -z "$INSTALL"; then |
| 1533 | if test "${ac_cv_path_install+set}" = set; then |
| 1534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1535 | else |
| 1536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1537 | for as_dir in $PATH |
| 1538 | do |
| 1539 | IFS=$as_save_IFS |
| 1540 | test -z "$as_dir" && as_dir=. |
| 1541 | # Account for people who put trailing slashes in PATH elements. |
| 1542 | case $as_dir/ in |
| 1543 | ./ | .// | /cC/* | \ |
| 1544 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1545 | /usr/ucb/* ) ;; |
| 1546 | *) |
| 1547 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1548 | # Don't use installbsd from OSF since it installs stuff as root |
| 1549 | # by default. |
| 1550 | for ac_prog in ginstall scoinst install; do |
| 1551 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1552 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1553 | if test $ac_prog = install && |
| 1554 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1555 | # AIX install. It has an incompatible calling convention. |
| 1556 | : |
| 1557 | elif test $ac_prog = install && |
| 1558 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1559 | # program-specific install script used by HP pwplus--don't use. |
| 1560 | : |
| 1561 | else |
| 1562 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1563 | break 3 |
| 1564 | fi |
| 1565 | fi |
| 1566 | done |
| 1567 | done |
| 1568 | ;; |
| 1569 | esac |
| 1570 | done |
| 1571 | |
| 1572 | |
| 1573 | fi |
| 1574 | if test "${ac_cv_path_install+set}" = set; then |
| 1575 | INSTALL=$ac_cv_path_install |
| 1576 | else |
| 1577 | # As a last resort, use the slow shell script. We don't cache a |
| 1578 | # path for INSTALL within a source directory, because that will |
| 1579 | # break other packages using the cache if that directory is |
| 1580 | # removed, or if the path is relative. |
| 1581 | INSTALL=$ac_install_sh |
| 1582 | fi |
| 1583 | fi |
| 1584 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1585 | echo "${ECHO_T}$INSTALL" >&6 |
| 1586 | |
| 1587 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1588 | # It thinks the first close brace ends the variable substitution. |
| 1589 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1590 | |
| 1591 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1592 | |
| 1593 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1594 | |
| 1595 | |
| 1596 | # Make sure we can run config.sub. |
| 1597 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1598 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1599 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1600 | { (exit 1); exit 1; }; } |
| 1601 | |
| 1602 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1603 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1604 | if test "${ac_cv_build+set}" = set; then |
| 1605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1606 | else |
| 1607 | ac_cv_build_alias=$build_alias |
| 1608 | test -z "$ac_cv_build_alias" && |
| 1609 | ac_cv_build_alias=`$ac_config_guess` |
| 1610 | test -z "$ac_cv_build_alias" && |
| 1611 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1612 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1613 | { (exit 1); exit 1; }; } |
| 1614 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1615 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1616 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1617 | { (exit 1); exit 1; }; } |
| 1618 | |
| 1619 | fi |
| 1620 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1621 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1622 | build=$ac_cv_build |
| 1623 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1624 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1625 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1626 | |
| 1627 | |
| 1628 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1629 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1630 | if test "${ac_cv_host+set}" = set; then |
| 1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1632 | else |
| 1633 | ac_cv_host_alias=$host_alias |
| 1634 | test -z "$ac_cv_host_alias" && |
| 1635 | ac_cv_host_alias=$ac_cv_build_alias |
| 1636 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1637 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1638 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1639 | { (exit 1); exit 1; }; } |
| 1640 | |
| 1641 | fi |
| 1642 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1643 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1644 | host=$ac_cv_host |
| 1645 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1646 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1647 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1648 | |
| 1649 | |
| 1650 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1651 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1652 | if test "${ac_cv_target+set}" = set; then |
| 1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1654 | else |
| 1655 | ac_cv_target_alias=$target_alias |
| 1656 | test "x$ac_cv_target_alias" = "x" && |
| 1657 | ac_cv_target_alias=$ac_cv_host_alias |
| 1658 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1659 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1660 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1661 | { (exit 1); exit 1; }; } |
| 1662 | |
| 1663 | fi |
| 1664 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1665 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1666 | target=$ac_cv_target |
| 1667 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1668 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1669 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1670 | |
| 1671 | |
| 1672 | # The aliases save the names the user supplied, while $host etc. |
| 1673 | # will get canonicalized. |
| 1674 | test -n "$target_alias" && |
| 1675 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1676 | NONENONEs,x,x, && |
| 1677 | program_prefix=${target_alias}- |
| 1678 | |
| 1679 | case $build in |
| 1680 | *i*86*) OS=Linux |
| 1681 | |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 1682 | LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | |
| 1684 | ;; |
| 1685 | |
| 1686 | *sparc*) OS=SunOS |
| 1687 | |
| 1688 | LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ |
| 1689 | |
| 1690 | ;; |
| 1691 | |
| 1692 | *) OS=Unknown |
| 1693 | |
| 1694 | ;; |
| 1695 | esac |
| 1696 | |
| 1697 | case $target in |
| 1698 | *sparc*solaris*) target=sparcv9-sun-solaris2.8 |
| 1699 | |
| 1700 | ;; |
| 1701 | esac |
| 1702 | |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1703 | case $target in |
| 1704 | *i*86*) ARCH=x86 |
| 1705 | |
| 1706 | ;; |
| 1707 | *sparc*solaris*) ARCH=Sparc |
| 1708 | |
| 1709 | ;; |
| 1710 | esac |
| 1711 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1712 | |
| 1713 | ac_ext=cc |
| 1714 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 1715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1718 | if test -n "$ac_tool_prefix"; then |
| 1719 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 1720 | do |
| 1721 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1722 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1723 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1725 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1727 | else |
| 1728 | if test -n "$CXX"; then |
| 1729 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1730 | else |
| 1731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1732 | for as_dir in $PATH |
| 1733 | do |
| 1734 | IFS=$as_save_IFS |
| 1735 | test -z "$as_dir" && as_dir=. |
| 1736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1737 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1738 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 1739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1740 | break 2 |
| 1741 | fi |
| 1742 | done |
| 1743 | done |
| 1744 | |
| 1745 | fi |
| 1746 | fi |
| 1747 | CXX=$ac_cv_prog_CXX |
| 1748 | if test -n "$CXX"; then |
| 1749 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1750 | echo "${ECHO_T}$CXX" >&6 |
| 1751 | else |
| 1752 | echo "$as_me:$LINENO: result: no" >&5 |
| 1753 | echo "${ECHO_T}no" >&6 |
| 1754 | fi |
| 1755 | |
| 1756 | test -n "$CXX" && break |
| 1757 | done |
| 1758 | fi |
| 1759 | if test -z "$CXX"; then |
| 1760 | ac_ct_CXX=$CXX |
| 1761 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 1762 | do |
| 1763 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1764 | set dummy $ac_prog; ac_word=$2 |
| 1765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1767 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1769 | else |
| 1770 | if test -n "$ac_ct_CXX"; then |
| 1771 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 1772 | else |
| 1773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1774 | for as_dir in $PATH |
| 1775 | do |
| 1776 | IFS=$as_save_IFS |
| 1777 | test -z "$as_dir" && as_dir=. |
| 1778 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1780 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 1781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1782 | break 2 |
| 1783 | fi |
| 1784 | done |
| 1785 | done |
| 1786 | |
| 1787 | fi |
| 1788 | fi |
| 1789 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 1790 | if test -n "$ac_ct_CXX"; then |
| 1791 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 1792 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 1793 | else |
| 1794 | echo "$as_me:$LINENO: result: no" >&5 |
| 1795 | echo "${ECHO_T}no" >&6 |
| 1796 | fi |
| 1797 | |
| 1798 | test -n "$ac_ct_CXX" && break |
| 1799 | done |
| 1800 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 1801 | |
| 1802 | CXX=$ac_ct_CXX |
| 1803 | fi |
| 1804 | |
| 1805 | |
| 1806 | # Provide some information about the compiler. |
| 1807 | echo "$as_me:$LINENO:" \ |
| 1808 | "checking for C++ compiler version" >&5 |
| 1809 | ac_compiler=`set X $ac_compile; echo $2` |
| 1810 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1811 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1812 | ac_status=$? |
| 1813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1814 | (exit $ac_status); } |
| 1815 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1816 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1817 | ac_status=$? |
| 1818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1819 | (exit $ac_status); } |
| 1820 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1821 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1822 | ac_status=$? |
| 1823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1824 | (exit $ac_status); } |
| 1825 | |
| 1826 | cat >conftest.$ac_ext <<_ACEOF |
| 1827 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1828 | /* confdefs.h. */ |
| 1829 | _ACEOF |
| 1830 | cat confdefs.h >>conftest.$ac_ext |
| 1831 | cat >>conftest.$ac_ext <<_ACEOF |
| 1832 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1833 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1834 | int |
| 1835 | main () |
| 1836 | { |
| 1837 | |
| 1838 | ; |
| 1839 | return 0; |
| 1840 | } |
| 1841 | _ACEOF |
| 1842 | ac_clean_files_save=$ac_clean_files |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1843 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1844 | # Try to create an executable without -o first, disregard a.out. |
| 1845 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1846 | # of exeext. |
| 1847 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1848 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1849 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1850 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1851 | (eval $ac_link_default) 2>&5 |
| 1852 | ac_status=$? |
| 1853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1854 | (exit $ac_status); }; then |
| 1855 | # Find the output, starting from the most likely. This scheme is |
| 1856 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1857 | # resort. |
| 1858 | |
| 1859 | # Be careful to initialize this variable, since it used to be cached. |
| 1860 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1861 | ac_cv_exeext= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1862 | # b.out is created by i960 compilers. |
| 1863 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1864 | do |
| 1865 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1866 | case $ac_file in |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1867 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1868 | ;; |
| 1869 | conftest.$ac_ext ) |
| 1870 | # This is the source file. |
| 1871 | ;; |
| 1872 | [ab].out ) |
| 1873 | # We found the default executable, but exeext='' is most |
| 1874 | # certainly right. |
| 1875 | break;; |
| 1876 | *.* ) |
| 1877 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1878 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1879 | # but it would be cool to find out if it's true. Does anybody |
| 1880 | # maintain Libtool? --akim. |
| 1881 | export ac_cv_exeext |
| 1882 | break;; |
| 1883 | * ) |
| 1884 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1885 | esac |
| 1886 | done |
| 1887 | else |
| 1888 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1890 | |
| 1891 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1892 | See \`config.log' for more details." >&5 |
| 1893 | echo "$as_me: error: C++ compiler cannot create executables |
| 1894 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1895 | { (exit 77); exit 77; }; } |
| 1896 | fi |
| 1897 | |
| 1898 | ac_exeext=$ac_cv_exeext |
| 1899 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1900 | echo "${ECHO_T}$ac_file" >&6 |
| 1901 | |
| 1902 | # Check the compiler produces executables we can run. If not, either |
| 1903 | # the compiler is broken, or we cross compile. |
| 1904 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1905 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1906 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1907 | # If not cross compiling, check that we can run a simple program. |
| 1908 | if test "$cross_compiling" != yes; then |
| 1909 | if { ac_try='./$ac_file' |
| 1910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1911 | (eval $ac_try) 2>&5 |
| 1912 | ac_status=$? |
| 1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1914 | (exit $ac_status); }; }; then |
| 1915 | cross_compiling=no |
| 1916 | else |
| 1917 | if test "$cross_compiling" = maybe; then |
| 1918 | cross_compiling=yes |
| 1919 | else |
| 1920 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1921 | If you meant to cross compile, use \`--host'. |
| 1922 | See \`config.log' for more details." >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1923 | echo "$as_me: error: cannot run C++ compiled programs. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1924 | If you meant to cross compile, use \`--host'. |
| 1925 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1926 | { (exit 1); exit 1; }; } |
| 1927 | fi |
| 1928 | fi |
| 1929 | fi |
| 1930 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1931 | echo "${ECHO_T}yes" >&6 |
| 1932 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1933 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | ac_clean_files=$ac_clean_files_save |
| 1935 | # Check the compiler produces executables we can run. If not, either |
| 1936 | # the compiler is broken, or we cross compile. |
| 1937 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1938 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1939 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1940 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1941 | |
| 1942 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1943 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1945 | (eval $ac_link) 2>&5 |
| 1946 | ac_status=$? |
| 1947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1948 | (exit $ac_status); }; then |
| 1949 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1950 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1951 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1952 | # `rm'. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1953 | for ac_file in conftest.exe conftest conftest.*; do |
| 1954 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1955 | case $ac_file in |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1956 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1957 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1958 | export ac_cv_exeext |
| 1959 | break;; |
| 1960 | * ) break;; |
| 1961 | esac |
| 1962 | done |
| 1963 | else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1964 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1965 | See \`config.log' for more details." >&5 |
| 1966 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1967 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1968 | { (exit 1); exit 1; }; } |
| 1969 | fi |
| 1970 | |
| 1971 | rm -f conftest$ac_cv_exeext |
| 1972 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1973 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1974 | |
| 1975 | rm -f conftest.$ac_ext |
| 1976 | EXEEXT=$ac_cv_exeext |
| 1977 | ac_exeext=$EXEEXT |
| 1978 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1979 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1980 | if test "${ac_cv_objext+set}" = set; then |
| 1981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1982 | else |
| 1983 | cat >conftest.$ac_ext <<_ACEOF |
| 1984 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1985 | /* confdefs.h. */ |
| 1986 | _ACEOF |
| 1987 | cat confdefs.h >>conftest.$ac_ext |
| 1988 | cat >>conftest.$ac_ext <<_ACEOF |
| 1989 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1990 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1991 | int |
| 1992 | main () |
| 1993 | { |
| 1994 | |
| 1995 | ; |
| 1996 | return 0; |
| 1997 | } |
| 1998 | _ACEOF |
| 1999 | rm -f conftest.o conftest.obj |
| 2000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2001 | (eval $ac_compile) 2>&5 |
| 2002 | ac_status=$? |
| 2003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2004 | (exit $ac_status); }; then |
| 2005 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2006 | case $ac_file in |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2007 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2008 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2009 | break;; |
| 2010 | esac |
| 2011 | done |
| 2012 | else |
| 2013 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2015 | |
| 2016 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2017 | See \`config.log' for more details." >&5 |
| 2018 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2019 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2020 | { (exit 1); exit 1; }; } |
| 2021 | fi |
| 2022 | |
| 2023 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2024 | fi |
| 2025 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2026 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2027 | OBJEXT=$ac_cv_objext |
| 2028 | ac_objext=$OBJEXT |
| 2029 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2030 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2031 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2033 | else |
| 2034 | cat >conftest.$ac_ext <<_ACEOF |
| 2035 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2036 | /* confdefs.h. */ |
| 2037 | _ACEOF |
| 2038 | cat confdefs.h >>conftest.$ac_ext |
| 2039 | cat >>conftest.$ac_ext <<_ACEOF |
| 2040 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2041 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2042 | int |
| 2043 | main () |
| 2044 | { |
| 2045 | #ifndef __GNUC__ |
| 2046 | choke me |
| 2047 | #endif |
| 2048 | |
| 2049 | ; |
| 2050 | return 0; |
| 2051 | } |
| 2052 | _ACEOF |
| 2053 | rm -f conftest.$ac_objext |
| 2054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2055 | (eval $ac_compile) 2>&5 |
| 2056 | ac_status=$? |
| 2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2058 | (exit $ac_status); } && |
| 2059 | { ac_try='test -s conftest.$ac_objext' |
| 2060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2061 | (eval $ac_try) 2>&5 |
| 2062 | ac_status=$? |
| 2063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2064 | (exit $ac_status); }; }; then |
| 2065 | ac_compiler_gnu=yes |
| 2066 | else |
| 2067 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2069 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | ac_compiler_gnu=no |
| 2071 | fi |
| 2072 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2073 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2074 | |
| 2075 | fi |
| 2076 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2077 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2078 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2079 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2080 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2081 | CXXFLAGS="-g" |
| 2082 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2083 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2084 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2086 | else |
| 2087 | cat >conftest.$ac_ext <<_ACEOF |
| 2088 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2089 | /* confdefs.h. */ |
| 2090 | _ACEOF |
| 2091 | cat confdefs.h >>conftest.$ac_ext |
| 2092 | cat >>conftest.$ac_ext <<_ACEOF |
| 2093 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2094 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2095 | int |
| 2096 | main () |
| 2097 | { |
| 2098 | |
| 2099 | ; |
| 2100 | return 0; |
| 2101 | } |
| 2102 | _ACEOF |
| 2103 | rm -f conftest.$ac_objext |
| 2104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2105 | (eval $ac_compile) 2>&5 |
| 2106 | ac_status=$? |
| 2107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2108 | (exit $ac_status); } && |
| 2109 | { ac_try='test -s conftest.$ac_objext' |
| 2110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2111 | (eval $ac_try) 2>&5 |
| 2112 | ac_status=$? |
| 2113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2114 | (exit $ac_status); }; }; then |
| 2115 | ac_cv_prog_cxx_g=yes |
| 2116 | else |
| 2117 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2119 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2120 | ac_cv_prog_cxx_g=no |
| 2121 | fi |
| 2122 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2123 | fi |
| 2124 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2125 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2126 | if test "$ac_test_CXXFLAGS" = set; then |
| 2127 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2128 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2129 | if test "$GXX" = yes; then |
| 2130 | CXXFLAGS="-g -O2" |
| 2131 | else |
| 2132 | CXXFLAGS="-g" |
| 2133 | fi |
| 2134 | else |
| 2135 | if test "$GXX" = yes; then |
| 2136 | CXXFLAGS="-O2" |
| 2137 | else |
| 2138 | CXXFLAGS= |
| 2139 | fi |
| 2140 | fi |
| 2141 | for ac_declaration in \ |
| 2142 | ''\ |
| 2143 | '#include <stdlib.h>' \ |
| 2144 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2145 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2146 | 'extern "C" void exit (int) throw ();' \ |
| 2147 | 'extern "C" void exit (int);' \ |
| 2148 | 'void exit (int);' |
| 2149 | do |
| 2150 | cat >conftest.$ac_ext <<_ACEOF |
| 2151 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2152 | /* confdefs.h. */ |
| 2153 | _ACEOF |
| 2154 | cat confdefs.h >>conftest.$ac_ext |
| 2155 | cat >>conftest.$ac_ext <<_ACEOF |
| 2156 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2157 | #include <stdlib.h> |
| 2158 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2159 | int |
| 2160 | main () |
| 2161 | { |
| 2162 | exit (42); |
| 2163 | ; |
| 2164 | return 0; |
| 2165 | } |
| 2166 | _ACEOF |
| 2167 | rm -f conftest.$ac_objext |
| 2168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2169 | (eval $ac_compile) 2>&5 |
| 2170 | ac_status=$? |
| 2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2172 | (exit $ac_status); } && |
| 2173 | { ac_try='test -s conftest.$ac_objext' |
| 2174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2175 | (eval $ac_try) 2>&5 |
| 2176 | ac_status=$? |
| 2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2178 | (exit $ac_status); }; }; then |
| 2179 | : |
| 2180 | else |
| 2181 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2183 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2184 | continue |
| 2185 | fi |
| 2186 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2187 | cat >conftest.$ac_ext <<_ACEOF |
| 2188 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2189 | /* confdefs.h. */ |
| 2190 | _ACEOF |
| 2191 | cat confdefs.h >>conftest.$ac_ext |
| 2192 | cat >>conftest.$ac_ext <<_ACEOF |
| 2193 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2194 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2195 | int |
| 2196 | main () |
| 2197 | { |
| 2198 | exit (42); |
| 2199 | ; |
| 2200 | return 0; |
| 2201 | } |
| 2202 | _ACEOF |
| 2203 | rm -f conftest.$ac_objext |
| 2204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2205 | (eval $ac_compile) 2>&5 |
| 2206 | ac_status=$? |
| 2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2208 | (exit $ac_status); } && |
| 2209 | { ac_try='test -s conftest.$ac_objext' |
| 2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2211 | (eval $ac_try) 2>&5 |
| 2212 | ac_status=$? |
| 2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2214 | (exit $ac_status); }; }; then |
| 2215 | break |
| 2216 | else |
| 2217 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2219 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2220 | fi |
| 2221 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2222 | done |
| 2223 | rm -f conftest* |
| 2224 | if test -n "$ac_declaration"; then |
| 2225 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2226 | echo $ac_declaration >>confdefs.h |
| 2227 | echo '#endif' >>confdefs.h |
| 2228 | fi |
| 2229 | |
| 2230 | ac_ext=c |
| 2231 | ac_cpp='$CPP $CPPFLAGS' |
| 2232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2235 | |
| 2236 | ac_ext=c |
| 2237 | ac_cpp='$CPP $CPPFLAGS' |
| 2238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2241 | if test -n "$ac_tool_prefix"; then |
| 2242 | for ac_prog in gcc |
| 2243 | do |
| 2244 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2245 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2246 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2248 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2250 | else |
| 2251 | if test -n "$CC"; then |
| 2252 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2253 | else |
| 2254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2255 | for as_dir in $PATH |
| 2256 | do |
| 2257 | IFS=$as_save_IFS |
| 2258 | test -z "$as_dir" && as_dir=. |
| 2259 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2260 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2261 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2263 | break 2 |
| 2264 | fi |
| 2265 | done |
| 2266 | done |
| 2267 | |
| 2268 | fi |
| 2269 | fi |
| 2270 | CC=$ac_cv_prog_CC |
| 2271 | if test -n "$CC"; then |
| 2272 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2273 | echo "${ECHO_T}$CC" >&6 |
| 2274 | else |
| 2275 | echo "$as_me:$LINENO: result: no" >&5 |
| 2276 | echo "${ECHO_T}no" >&6 |
| 2277 | fi |
| 2278 | |
| 2279 | test -n "$CC" && break |
| 2280 | done |
| 2281 | fi |
| 2282 | if test -z "$CC"; then |
| 2283 | ac_ct_CC=$CC |
| 2284 | for ac_prog in gcc |
| 2285 | do |
| 2286 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2287 | set dummy $ac_prog; ac_word=$2 |
| 2288 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2289 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2290 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2292 | else |
| 2293 | if test -n "$ac_ct_CC"; then |
| 2294 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2295 | else |
| 2296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2297 | for as_dir in $PATH |
| 2298 | do |
| 2299 | IFS=$as_save_IFS |
| 2300 | test -z "$as_dir" && as_dir=. |
| 2301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2302 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2303 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2305 | break 2 |
| 2306 | fi |
| 2307 | done |
| 2308 | done |
| 2309 | |
| 2310 | fi |
| 2311 | fi |
| 2312 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2313 | if test -n "$ac_ct_CC"; then |
| 2314 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2315 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2316 | else |
| 2317 | echo "$as_me:$LINENO: result: no" >&5 |
| 2318 | echo "${ECHO_T}no" >&6 |
| 2319 | fi |
| 2320 | |
| 2321 | test -n "$ac_ct_CC" && break |
| 2322 | done |
| 2323 | |
| 2324 | CC=$ac_ct_CC |
| 2325 | fi |
| 2326 | |
| 2327 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2328 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2329 | See \`config.log' for more details." >&5 |
| 2330 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2331 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2332 | { (exit 1); exit 1; }; } |
| 2333 | |
| 2334 | # Provide some information about the compiler. |
| 2335 | echo "$as_me:$LINENO:" \ |
| 2336 | "checking for C compiler version" >&5 |
| 2337 | ac_compiler=`set X $ac_compile; echo $2` |
| 2338 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2339 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2340 | ac_status=$? |
| 2341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2342 | (exit $ac_status); } |
| 2343 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2344 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2345 | ac_status=$? |
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2347 | (exit $ac_status); } |
| 2348 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2349 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2350 | ac_status=$? |
| 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2352 | (exit $ac_status); } |
| 2353 | |
| 2354 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2355 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2356 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2358 | else |
| 2359 | cat >conftest.$ac_ext <<_ACEOF |
| 2360 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2361 | /* confdefs.h. */ |
| 2362 | _ACEOF |
| 2363 | cat confdefs.h >>conftest.$ac_ext |
| 2364 | cat >>conftest.$ac_ext <<_ACEOF |
| 2365 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2366 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2367 | int |
| 2368 | main () |
| 2369 | { |
| 2370 | #ifndef __GNUC__ |
| 2371 | choke me |
| 2372 | #endif |
| 2373 | |
| 2374 | ; |
| 2375 | return 0; |
| 2376 | } |
| 2377 | _ACEOF |
| 2378 | rm -f conftest.$ac_objext |
| 2379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2380 | (eval $ac_compile) 2>&5 |
| 2381 | ac_status=$? |
| 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2383 | (exit $ac_status); } && |
| 2384 | { ac_try='test -s conftest.$ac_objext' |
| 2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2386 | (eval $ac_try) 2>&5 |
| 2387 | ac_status=$? |
| 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2389 | (exit $ac_status); }; }; then |
| 2390 | ac_compiler_gnu=yes |
| 2391 | else |
| 2392 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2394 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2395 | ac_compiler_gnu=no |
| 2396 | fi |
| 2397 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2398 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2399 | |
| 2400 | fi |
| 2401 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2402 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2403 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2404 | ac_test_CFLAGS=${CFLAGS+set} |
| 2405 | ac_save_CFLAGS=$CFLAGS |
| 2406 | CFLAGS="-g" |
| 2407 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2408 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2409 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2411 | else |
| 2412 | cat >conftest.$ac_ext <<_ACEOF |
| 2413 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2414 | /* confdefs.h. */ |
| 2415 | _ACEOF |
| 2416 | cat confdefs.h >>conftest.$ac_ext |
| 2417 | cat >>conftest.$ac_ext <<_ACEOF |
| 2418 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2419 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2420 | int |
| 2421 | main () |
| 2422 | { |
| 2423 | |
| 2424 | ; |
| 2425 | return 0; |
| 2426 | } |
| 2427 | _ACEOF |
| 2428 | rm -f conftest.$ac_objext |
| 2429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2430 | (eval $ac_compile) 2>&5 |
| 2431 | ac_status=$? |
| 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2433 | (exit $ac_status); } && |
| 2434 | { ac_try='test -s conftest.$ac_objext' |
| 2435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2436 | (eval $ac_try) 2>&5 |
| 2437 | ac_status=$? |
| 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2439 | (exit $ac_status); }; }; then |
| 2440 | ac_cv_prog_cc_g=yes |
| 2441 | else |
| 2442 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2444 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2445 | ac_cv_prog_cc_g=no |
| 2446 | fi |
| 2447 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2448 | fi |
| 2449 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2450 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2451 | if test "$ac_test_CFLAGS" = set; then |
| 2452 | CFLAGS=$ac_save_CFLAGS |
| 2453 | elif test $ac_cv_prog_cc_g = yes; then |
| 2454 | if test "$GCC" = yes; then |
| 2455 | CFLAGS="-g -O2" |
| 2456 | else |
| 2457 | CFLAGS="-g" |
| 2458 | fi |
| 2459 | else |
| 2460 | if test "$GCC" = yes; then |
| 2461 | CFLAGS="-O2" |
| 2462 | else |
| 2463 | CFLAGS= |
| 2464 | fi |
| 2465 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2466 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2467 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2468 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2470 | else |
| 2471 | ac_cv_prog_cc_stdc=no |
| 2472 | ac_save_CC=$CC |
| 2473 | cat >conftest.$ac_ext <<_ACEOF |
| 2474 | #line $LINENO "configure" |
| 2475 | /* confdefs.h. */ |
| 2476 | _ACEOF |
| 2477 | cat confdefs.h >>conftest.$ac_ext |
| 2478 | cat >>conftest.$ac_ext <<_ACEOF |
| 2479 | /* end confdefs.h. */ |
| 2480 | #include <stdarg.h> |
| 2481 | #include <stdio.h> |
| 2482 | #include <sys/types.h> |
| 2483 | #include <sys/stat.h> |
| 2484 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2485 | struct buf { int x; }; |
| 2486 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2487 | static char *e (p, i) |
| 2488 | char **p; |
| 2489 | int i; |
| 2490 | { |
| 2491 | return p[i]; |
| 2492 | } |
| 2493 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2494 | { |
| 2495 | char *s; |
| 2496 | va_list v; |
| 2497 | va_start (v,p); |
| 2498 | s = g (p, va_arg (v,int)); |
| 2499 | va_end (v); |
| 2500 | return s; |
| 2501 | } |
| 2502 | int test (int i, double x); |
| 2503 | struct s1 {int (*f) (int a);}; |
| 2504 | struct s2 {int (*f) (double a);}; |
| 2505 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2506 | int argc; |
| 2507 | char **argv; |
| 2508 | int |
| 2509 | main () |
| 2510 | { |
| 2511 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2512 | ; |
| 2513 | return 0; |
| 2514 | } |
| 2515 | _ACEOF |
| 2516 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2517 | # breaks some systems' header files. |
| 2518 | # AIX -qlanglvl=ansi |
| 2519 | # Ultrix and OSF/1 -std1 |
| 2520 | # HP-UX 10.20 and later -Ae |
| 2521 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2522 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2523 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2524 | do |
| 2525 | CC="$ac_save_CC $ac_arg" |
| 2526 | rm -f conftest.$ac_objext |
| 2527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2528 | (eval $ac_compile) 2>&5 |
| 2529 | ac_status=$? |
| 2530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2531 | (exit $ac_status); } && |
| 2532 | { ac_try='test -s conftest.$ac_objext' |
| 2533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2534 | (eval $ac_try) 2>&5 |
| 2535 | ac_status=$? |
| 2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2537 | (exit $ac_status); }; }; then |
| 2538 | ac_cv_prog_cc_stdc=$ac_arg |
| 2539 | break |
| 2540 | else |
| 2541 | echo "$as_me: failed program was:" >&5 |
| 2542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2543 | |
| 2544 | fi |
| 2545 | rm -f conftest.$ac_objext |
| 2546 | done |
| 2547 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2548 | CC=$ac_save_CC |
| 2549 | |
| 2550 | fi |
| 2551 | |
| 2552 | case "x$ac_cv_prog_cc_stdc" in |
| 2553 | x|xno) |
| 2554 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2555 | echo "${ECHO_T}none needed" >&6 ;; |
| 2556 | *) |
| 2557 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2558 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2559 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2560 | esac |
| 2561 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2562 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2563 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2564 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2565 | # the declaration of exit, since it's the most demanding environment. |
| 2566 | cat >conftest.$ac_ext <<_ACEOF |
| 2567 | #ifndef __cplusplus |
| 2568 | choke me |
| 2569 | #endif |
| 2570 | _ACEOF |
| 2571 | rm -f conftest.$ac_objext |
| 2572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2573 | (eval $ac_compile) 2>&5 |
| 2574 | ac_status=$? |
| 2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2576 | (exit $ac_status); } && |
| 2577 | { ac_try='test -s conftest.$ac_objext' |
| 2578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2579 | (eval $ac_try) 2>&5 |
| 2580 | ac_status=$? |
| 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2582 | (exit $ac_status); }; }; then |
| 2583 | for ac_declaration in \ |
| 2584 | ''\ |
| 2585 | '#include <stdlib.h>' \ |
| 2586 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2587 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2588 | 'extern "C" void exit (int) throw ();' \ |
| 2589 | 'extern "C" void exit (int);' \ |
| 2590 | 'void exit (int);' |
| 2591 | do |
| 2592 | cat >conftest.$ac_ext <<_ACEOF |
| 2593 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2594 | /* confdefs.h. */ |
| 2595 | _ACEOF |
| 2596 | cat confdefs.h >>conftest.$ac_ext |
| 2597 | cat >>conftest.$ac_ext <<_ACEOF |
| 2598 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2599 | #include <stdlib.h> |
| 2600 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2601 | int |
| 2602 | main () |
| 2603 | { |
| 2604 | exit (42); |
| 2605 | ; |
| 2606 | return 0; |
| 2607 | } |
| 2608 | _ACEOF |
| 2609 | rm -f conftest.$ac_objext |
| 2610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2611 | (eval $ac_compile) 2>&5 |
| 2612 | ac_status=$? |
| 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2614 | (exit $ac_status); } && |
| 2615 | { ac_try='test -s conftest.$ac_objext' |
| 2616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2617 | (eval $ac_try) 2>&5 |
| 2618 | ac_status=$? |
| 2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2620 | (exit $ac_status); }; }; then |
| 2621 | : |
| 2622 | else |
| 2623 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2625 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2626 | continue |
| 2627 | fi |
| 2628 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2629 | cat >conftest.$ac_ext <<_ACEOF |
| 2630 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2631 | /* confdefs.h. */ |
| 2632 | _ACEOF |
| 2633 | cat confdefs.h >>conftest.$ac_ext |
| 2634 | cat >>conftest.$ac_ext <<_ACEOF |
| 2635 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | int |
| 2638 | main () |
| 2639 | { |
| 2640 | exit (42); |
| 2641 | ; |
| 2642 | return 0; |
| 2643 | } |
| 2644 | _ACEOF |
| 2645 | rm -f conftest.$ac_objext |
| 2646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2647 | (eval $ac_compile) 2>&5 |
| 2648 | ac_status=$? |
| 2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2650 | (exit $ac_status); } && |
| 2651 | { ac_try='test -s conftest.$ac_objext' |
| 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2653 | (eval $ac_try) 2>&5 |
| 2654 | ac_status=$? |
| 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2656 | (exit $ac_status); }; }; then |
| 2657 | break |
| 2658 | else |
| 2659 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2661 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2662 | fi |
| 2663 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2664 | done |
| 2665 | rm -f conftest* |
| 2666 | if test -n "$ac_declaration"; then |
| 2667 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2668 | echo $ac_declaration >>confdefs.h |
| 2669 | echo '#endif' >>confdefs.h |
| 2670 | fi |
| 2671 | |
| 2672 | else |
| 2673 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2675 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2676 | fi |
| 2677 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2678 | ac_ext=c |
| 2679 | ac_cpp='$CPP $CPPFLAGS' |
| 2680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2683 | |
| 2684 | ac_ext=c |
| 2685 | ac_cpp='$CPP $CPPFLAGS' |
| 2686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2689 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2690 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2691 | # On Suns, sometimes $CPP names a directory. |
| 2692 | if test -n "$CPP" && test -d "$CPP"; then |
| 2693 | CPP= |
| 2694 | fi |
| 2695 | if test -z "$CPP"; then |
| 2696 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2698 | else |
| 2699 | # Double quotes because CPP needs to be expanded |
| 2700 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2701 | do |
| 2702 | ac_preproc_ok=false |
| 2703 | for ac_c_preproc_warn_flag in '' yes |
| 2704 | do |
| 2705 | # Use a header file that comes with gcc, so configuring glibc |
| 2706 | # with a fresh cross-compiler works. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2707 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2708 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2709 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2710 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2711 | cat >conftest.$ac_ext <<_ACEOF |
| 2712 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2713 | /* confdefs.h. */ |
| 2714 | _ACEOF |
| 2715 | cat confdefs.h >>conftest.$ac_ext |
| 2716 | cat >>conftest.$ac_ext <<_ACEOF |
| 2717 | /* end confdefs.h. */ |
| 2718 | #ifdef __STDC__ |
| 2719 | # include <limits.h> |
| 2720 | #else |
| 2721 | # include <assert.h> |
| 2722 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2723 | Syntax error |
| 2724 | _ACEOF |
| 2725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2727 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2728 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2729 | rm -f conftest.er1 |
| 2730 | cat conftest.err >&5 |
| 2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2732 | (exit $ac_status); } >/dev/null; then |
| 2733 | if test -s conftest.err; then |
| 2734 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2735 | else |
| 2736 | ac_cpp_err= |
| 2737 | fi |
| 2738 | else |
| 2739 | ac_cpp_err=yes |
| 2740 | fi |
| 2741 | if test -z "$ac_cpp_err"; then |
| 2742 | : |
| 2743 | else |
| 2744 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2746 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2747 | # Broken: fails on valid input. |
| 2748 | continue |
| 2749 | fi |
| 2750 | rm -f conftest.err conftest.$ac_ext |
| 2751 | |
| 2752 | # OK, works on sane cases. Now check whether non-existent headers |
| 2753 | # can be detected and how. |
| 2754 | cat >conftest.$ac_ext <<_ACEOF |
| 2755 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2756 | /* confdefs.h. */ |
| 2757 | _ACEOF |
| 2758 | cat confdefs.h >>conftest.$ac_ext |
| 2759 | cat >>conftest.$ac_ext <<_ACEOF |
| 2760 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2761 | #include <ac_nonexistent.h> |
| 2762 | _ACEOF |
| 2763 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2764 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2765 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2766 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2767 | rm -f conftest.er1 |
| 2768 | cat conftest.err >&5 |
| 2769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2770 | (exit $ac_status); } >/dev/null; then |
| 2771 | if test -s conftest.err; then |
| 2772 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2773 | else |
| 2774 | ac_cpp_err= |
| 2775 | fi |
| 2776 | else |
| 2777 | ac_cpp_err=yes |
| 2778 | fi |
| 2779 | if test -z "$ac_cpp_err"; then |
| 2780 | # Broken: success on invalid input. |
| 2781 | continue |
| 2782 | else |
| 2783 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2785 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2786 | # Passes both tests. |
| 2787 | ac_preproc_ok=: |
| 2788 | break |
| 2789 | fi |
| 2790 | rm -f conftest.err conftest.$ac_ext |
| 2791 | |
| 2792 | done |
| 2793 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2794 | rm -f conftest.err conftest.$ac_ext |
| 2795 | if $ac_preproc_ok; then |
| 2796 | break |
| 2797 | fi |
| 2798 | |
| 2799 | done |
| 2800 | ac_cv_prog_CPP=$CPP |
| 2801 | |
| 2802 | fi |
| 2803 | CPP=$ac_cv_prog_CPP |
| 2804 | else |
| 2805 | ac_cv_prog_CPP=$CPP |
| 2806 | fi |
| 2807 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2808 | echo "${ECHO_T}$CPP" >&6 |
| 2809 | ac_preproc_ok=false |
| 2810 | for ac_c_preproc_warn_flag in '' yes |
| 2811 | do |
| 2812 | # Use a header file that comes with gcc, so configuring glibc |
| 2813 | # with a fresh cross-compiler works. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2814 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2815 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2816 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2817 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2818 | cat >conftest.$ac_ext <<_ACEOF |
| 2819 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2820 | /* confdefs.h. */ |
| 2821 | _ACEOF |
| 2822 | cat confdefs.h >>conftest.$ac_ext |
| 2823 | cat >>conftest.$ac_ext <<_ACEOF |
| 2824 | /* end confdefs.h. */ |
| 2825 | #ifdef __STDC__ |
| 2826 | # include <limits.h> |
| 2827 | #else |
| 2828 | # include <assert.h> |
| 2829 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2830 | Syntax error |
| 2831 | _ACEOF |
| 2832 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2833 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2834 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2835 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2836 | rm -f conftest.er1 |
| 2837 | cat conftest.err >&5 |
| 2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2839 | (exit $ac_status); } >/dev/null; then |
| 2840 | if test -s conftest.err; then |
| 2841 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2842 | else |
| 2843 | ac_cpp_err= |
| 2844 | fi |
| 2845 | else |
| 2846 | ac_cpp_err=yes |
| 2847 | fi |
| 2848 | if test -z "$ac_cpp_err"; then |
| 2849 | : |
| 2850 | else |
| 2851 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2853 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2854 | # Broken: fails on valid input. |
| 2855 | continue |
| 2856 | fi |
| 2857 | rm -f conftest.err conftest.$ac_ext |
| 2858 | |
| 2859 | # OK, works on sane cases. Now check whether non-existent headers |
| 2860 | # can be detected and how. |
| 2861 | cat >conftest.$ac_ext <<_ACEOF |
| 2862 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2863 | /* confdefs.h. */ |
| 2864 | _ACEOF |
| 2865 | cat confdefs.h >>conftest.$ac_ext |
| 2866 | cat >>conftest.$ac_ext <<_ACEOF |
| 2867 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2868 | #include <ac_nonexistent.h> |
| 2869 | _ACEOF |
| 2870 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2871 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2872 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2873 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2874 | rm -f conftest.er1 |
| 2875 | cat conftest.err >&5 |
| 2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2877 | (exit $ac_status); } >/dev/null; then |
| 2878 | if test -s conftest.err; then |
| 2879 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2880 | else |
| 2881 | ac_cpp_err= |
| 2882 | fi |
| 2883 | else |
| 2884 | ac_cpp_err=yes |
| 2885 | fi |
| 2886 | if test -z "$ac_cpp_err"; then |
| 2887 | # Broken: success on invalid input. |
| 2888 | continue |
| 2889 | else |
| 2890 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2893 | # Passes both tests. |
| 2894 | ac_preproc_ok=: |
| 2895 | break |
| 2896 | fi |
| 2897 | rm -f conftest.err conftest.$ac_ext |
| 2898 | |
| 2899 | done |
| 2900 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2901 | rm -f conftest.err conftest.$ac_ext |
| 2902 | if $ac_preproc_ok; then |
| 2903 | : |
| 2904 | else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2905 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2906 | See \`config.log' for more details." >&5 |
| 2907 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2908 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 | { (exit 1); exit 1; }; } |
| 2910 | fi |
| 2911 | |
| 2912 | ac_ext=c |
| 2913 | ac_cpp='$CPP $CPPFLAGS' |
| 2914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2917 | |
| 2918 | |
| 2919 | if test "$GCC" != "yes" |
| 2920 | then |
| 2921 | { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 |
| 2922 | echo "$as_me: error: gcc required but not found" >&2;} |
| 2923 | { (exit 1); exit 1; }; } |
| 2924 | fi |
| 2925 | |
| 2926 | if test "$GXX" != "yes" |
| 2927 | then |
| 2928 | { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 |
| 2929 | echo "$as_me: error: g++ required but not found" >&2;} |
| 2930 | { (exit 1); exit 1; }; } |
| 2931 | fi |
| 2932 | |
| 2933 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 2934 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 2935 | if test "${_cv_gnu_make_command+set}" = set; then |
| 2936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2937 | else |
| 2938 | _cv_gnu_make_command='' ; |
| 2939 | for a in "$MAKE" make gmake gnumake ; do |
| 2940 | if test -z "$a" ; then continue ; fi ; |
| 2941 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 2942 | _cv_gnu_make_command=$a ; |
| 2943 | break; |
| 2944 | fi |
| 2945 | done ; |
| 2946 | |
| 2947 | fi |
| 2948 | echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 |
| 2949 | echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; |
| 2950 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 2951 | ifGNUmake='' ; |
| 2952 | else |
| 2953 | ifGNUmake='#' ; |
| 2954 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 2955 | echo "${ECHO_T}\"Not found\"" >&6; |
| 2956 | fi |
| 2957 | |
| 2958 | |
| 2959 | if test -z "$_cv_gnu_make_command" |
| 2960 | then |
| 2961 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 2962 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 2963 | { (exit 1); exit 1; }; } |
| 2964 | fi |
| 2965 | |
| 2966 | |
| 2967 | echo "$as_me:$LINENO: checking " >&5 |
| 2968 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 2969 | if test "${ac_cv_has_flex+set}" = set; then |
| 2970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2971 | else |
| 2972 | for ac_prog in flex lex |
| 2973 | do |
| 2974 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2975 | set dummy $ac_prog; ac_word=$2 |
| 2976 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2978 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 2979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2980 | else |
| 2981 | if test -n "$LEX"; then |
| 2982 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 2983 | else |
| 2984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2985 | for as_dir in $PATH |
| 2986 | do |
| 2987 | IFS=$as_save_IFS |
| 2988 | test -z "$as_dir" && as_dir=. |
| 2989 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2991 | ac_cv_prog_LEX="$ac_prog" |
| 2992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2993 | break 2 |
| 2994 | fi |
| 2995 | done |
| 2996 | done |
| 2997 | |
| 2998 | fi |
| 2999 | fi |
| 3000 | LEX=$ac_cv_prog_LEX |
| 3001 | if test -n "$LEX"; then |
| 3002 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 3003 | echo "${ECHO_T}$LEX" >&6 |
| 3004 | else |
| 3005 | echo "$as_me:$LINENO: result: no" >&5 |
| 3006 | echo "${ECHO_T}no" >&6 |
| 3007 | fi |
| 3008 | |
| 3009 | test -n "$LEX" && break |
| 3010 | done |
| 3011 | test -n "$LEX" || LEX=":" |
| 3012 | |
| 3013 | if test -z "$LEXLIB" |
| 3014 | then |
| 3015 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 3016 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3017 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3019 | else |
| 3020 | ac_check_lib_save_LIBS=$LIBS |
| 3021 | LIBS="-lfl $LIBS" |
| 3022 | cat >conftest.$ac_ext <<_ACEOF |
| 3023 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 3024 | /* confdefs.h. */ |
| 3025 | _ACEOF |
| 3026 | cat confdefs.h >>conftest.$ac_ext |
| 3027 | cat >>conftest.$ac_ext <<_ACEOF |
| 3028 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3029 | |
| 3030 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3031 | #ifdef __cplusplus |
| 3032 | extern "C" |
| 3033 | #endif |
| 3034 | /* We use char because int might match the return type of a gcc2 |
| 3035 | builtin and then its argument prototype would still apply. */ |
| 3036 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | int |
| 3038 | main () |
| 3039 | { |
| 3040 | yywrap (); |
| 3041 | ; |
| 3042 | return 0; |
| 3043 | } |
| 3044 | _ACEOF |
| 3045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3047 | (eval $ac_link) 2>&5 |
| 3048 | ac_status=$? |
| 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3050 | (exit $ac_status); } && |
| 3051 | { ac_try='test -s conftest$ac_exeext' |
| 3052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3053 | (eval $ac_try) 2>&5 |
| 3054 | ac_status=$? |
| 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3056 | (exit $ac_status); }; }; then |
| 3057 | ac_cv_lib_fl_yywrap=yes |
| 3058 | else |
| 3059 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 3060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3061 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3062 | ac_cv_lib_fl_yywrap=no |
| 3063 | fi |
| 3064 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3065 | LIBS=$ac_check_lib_save_LIBS |
| 3066 | fi |
| 3067 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 3068 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3069 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3070 | LEXLIB="-lfl" |
| 3071 | else |
| 3072 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 3073 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3074 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3076 | else |
| 3077 | ac_check_lib_save_LIBS=$LIBS |
| 3078 | LIBS="-ll $LIBS" |
| 3079 | cat >conftest.$ac_ext <<_ACEOF |
| 3080 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 3081 | /* confdefs.h. */ |
| 3082 | _ACEOF |
| 3083 | cat confdefs.h >>conftest.$ac_ext |
| 3084 | cat >>conftest.$ac_ext <<_ACEOF |
| 3085 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3086 | |
| 3087 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3088 | #ifdef __cplusplus |
| 3089 | extern "C" |
| 3090 | #endif |
| 3091 | /* We use char because int might match the return type of a gcc2 |
| 3092 | builtin and then its argument prototype would still apply. */ |
| 3093 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3094 | int |
| 3095 | main () |
| 3096 | { |
| 3097 | yywrap (); |
| 3098 | ; |
| 3099 | return 0; |
| 3100 | } |
| 3101 | _ACEOF |
| 3102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3104 | (eval $ac_link) 2>&5 |
| 3105 | ac_status=$? |
| 3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3107 | (exit $ac_status); } && |
| 3108 | { ac_try='test -s conftest$ac_exeext' |
| 3109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3110 | (eval $ac_try) 2>&5 |
| 3111 | ac_status=$? |
| 3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3113 | (exit $ac_status); }; }; then |
| 3114 | ac_cv_lib_l_yywrap=yes |
| 3115 | else |
| 3116 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 3117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3118 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3119 | ac_cv_lib_l_yywrap=no |
| 3120 | fi |
| 3121 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3122 | LIBS=$ac_check_lib_save_LIBS |
| 3123 | fi |
| 3124 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 3125 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 3126 | if test $ac_cv_lib_l_yywrap = yes; then |
| 3127 | LEXLIB="-ll" |
| 3128 | fi |
| 3129 | |
| 3130 | fi |
| 3131 | |
| 3132 | fi |
| 3133 | |
| 3134 | if test "x$LEX" != "x:"; then |
| 3135 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 3136 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 3137 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 3138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3139 | else |
| 3140 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 3141 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 3142 | cat >conftest.l <<_ACEOF |
| 3143 | %% |
| 3144 | %% |
| 3145 | _ACEOF |
| 3146 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 3147 | (eval $LEX conftest.l) 2>&5 |
| 3148 | ac_status=$? |
| 3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3150 | (exit $ac_status); } |
| 3151 | if test -f lex.yy.c; then |
| 3152 | ac_cv_prog_lex_root=lex.yy |
| 3153 | elif test -f lexyy.c; then |
| 3154 | ac_cv_prog_lex_root=lexyy |
| 3155 | else |
| 3156 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 3157 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 3158 | { (exit 1); exit 1; }; } |
| 3159 | fi |
| 3160 | fi |
| 3161 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 3162 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 3163 | rm -f conftest.l |
| 3164 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 3165 | |
| 3166 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 3167 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 3168 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 3169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3170 | else |
| 3171 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 3172 | # default is implementation-dependent. Figure out which it is, since |
| 3173 | # not all implementations provide the %pointer and %array declarations. |
| 3174 | ac_cv_prog_lex_yytext_pointer=no |
| 3175 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 3176 | ac_save_LIBS=$LIBS |
| 3177 | LIBS="$LIBS $LEXLIB" |
| 3178 | cat >conftest.$ac_ext <<_ACEOF |
| 3179 | `cat $LEX_OUTPUT_ROOT.c` |
| 3180 | _ACEOF |
| 3181 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3183 | (eval $ac_link) 2>&5 |
| 3184 | ac_status=$? |
| 3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3186 | (exit $ac_status); } && |
| 3187 | { ac_try='test -s conftest$ac_exeext' |
| 3188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3189 | (eval $ac_try) 2>&5 |
| 3190 | ac_status=$? |
| 3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3192 | (exit $ac_status); }; }; then |
| 3193 | ac_cv_prog_lex_yytext_pointer=yes |
| 3194 | else |
| 3195 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 3196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3197 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3198 | fi |
| 3199 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3200 | LIBS=$ac_save_LIBS |
| 3201 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 3202 | |
| 3203 | fi |
| 3204 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 3205 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 3206 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 3207 | |
| 3208 | cat >>confdefs.h <<\_ACEOF |
| 3209 | #define YYTEXT_POINTER 1 |
| 3210 | _ACEOF |
| 3211 | |
| 3212 | fi |
| 3213 | |
| 3214 | fi |
| 3215 | |
| 3216 | fi |
| 3217 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 3218 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 3219 | if test "$LEX" != "flex"; then |
| 3220 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 3221 | echo "$as_me: error: flex not found but required" >&2;} |
| 3222 | { (exit 1); exit 1; }; } |
| 3223 | fi |
| 3224 | |
| 3225 | echo "$as_me:$LINENO: checking " >&5 |
| 3226 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 3227 | if test "${ac_cv_has_bison+set}" = set; then |
| 3228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3229 | else |
| 3230 | for ac_prog in 'bison -y' byacc |
| 3231 | do |
| 3232 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3233 | set dummy $ac_prog; ac_word=$2 |
| 3234 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3236 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3238 | else |
| 3239 | if test -n "$YACC"; then |
| 3240 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3241 | else |
| 3242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3243 | for as_dir in $PATH |
| 3244 | do |
| 3245 | IFS=$as_save_IFS |
| 3246 | test -z "$as_dir" && as_dir=. |
| 3247 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3248 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3249 | ac_cv_prog_YACC="$ac_prog" |
| 3250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3251 | break 2 |
| 3252 | fi |
| 3253 | done |
| 3254 | done |
| 3255 | |
| 3256 | fi |
| 3257 | fi |
| 3258 | YACC=$ac_cv_prog_YACC |
| 3259 | if test -n "$YACC"; then |
| 3260 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 3261 | echo "${ECHO_T}$YACC" >&6 |
| 3262 | else |
| 3263 | echo "$as_me:$LINENO: result: no" >&5 |
| 3264 | echo "${ECHO_T}no" >&6 |
| 3265 | fi |
| 3266 | |
| 3267 | test -n "$YACC" && break |
| 3268 | done |
| 3269 | test -n "$YACC" || YACC="yacc" |
| 3270 | |
| 3271 | |
| 3272 | fi |
| 3273 | echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 |
| 3274 | echo "${ECHO_T}$ac_cv_has_bison" >&6 |
| 3275 | if test "$YACC" != "bison -y"; then |
| 3276 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 3277 | echo "$as_me: error: bison not found but required" >&2;} |
| 3278 | { (exit 1); exit 1; }; } |
| 3279 | else |
| 3280 | YACC=bison |
| 3281 | |
| 3282 | fi |
| 3283 | |
| 3284 | |
| 3285 | # Check whether --enable-shared or --disable-shared was given. |
| 3286 | if test "${enable_shared+set}" = set; then |
| 3287 | enableval="$enable_shared" |
| 3288 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3289 | case $enableval in |
| 3290 | yes) enable_shared=yes ;; |
| 3291 | no) enable_shared=no ;; |
| 3292 | *) |
| 3293 | enable_shared=no |
| 3294 | # Look at the argument we got. We use all the common list separators. |
| 3295 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3296 | for pkg in $enableval; do |
| 3297 | IFS="$lt_save_ifs" |
| 3298 | if test "X$pkg" = "X$p"; then |
| 3299 | enable_shared=yes |
| 3300 | fi |
| 3301 | done |
| 3302 | IFS="$lt_save_ifs" |
| 3303 | ;; |
| 3304 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3305 | else |
| 3306 | enable_shared=yes |
| 3307 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3308 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3309 | # Check whether --enable-static or --disable-static was given. |
| 3310 | if test "${enable_static+set}" = set; then |
| 3311 | enableval="$enable_static" |
| 3312 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3313 | case $enableval in |
| 3314 | yes) enable_static=yes ;; |
| 3315 | no) enable_static=no ;; |
| 3316 | *) |
| 3317 | enable_static=no |
| 3318 | # Look at the argument we got. We use all the common list separators. |
| 3319 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3320 | for pkg in $enableval; do |
| 3321 | IFS="$lt_save_ifs" |
| 3322 | if test "X$pkg" = "X$p"; then |
| 3323 | enable_static=yes |
| 3324 | fi |
| 3325 | done |
| 3326 | IFS="$lt_save_ifs" |
| 3327 | ;; |
| 3328 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3329 | else |
| 3330 | enable_static=yes |
| 3331 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3332 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3333 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3334 | if test "${enable_fast_install+set}" = set; then |
| 3335 | enableval="$enable_fast_install" |
| 3336 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3337 | case $enableval in |
| 3338 | yes) enable_fast_install=yes ;; |
| 3339 | no) enable_fast_install=no ;; |
| 3340 | *) |
| 3341 | enable_fast_install=no |
| 3342 | # Look at the argument we got. We use all the common list separators. |
| 3343 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3344 | for pkg in $enableval; do |
| 3345 | IFS="$lt_save_ifs" |
| 3346 | if test "X$pkg" = "X$p"; then |
| 3347 | enable_fast_install=yes |
| 3348 | fi |
| 3349 | done |
| 3350 | IFS="$lt_save_ifs" |
| 3351 | ;; |
| 3352 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3353 | else |
| 3354 | enable_fast_install=yes |
| 3355 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3356 | |
| 3357 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3358 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3359 | if test "${lt_cv_path_SED+set}" = set; then |
| 3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3361 | else |
| 3362 | # Loop through the user's path and test for sed and gsed. |
| 3363 | # Then use that list of sed's as ones to test for truncation. |
| 3364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3365 | for as_dir in $PATH |
| 3366 | do |
| 3367 | IFS=$as_save_IFS |
| 3368 | test -z "$as_dir" && as_dir=. |
| 3369 | for lt_ac_prog in sed gsed; do |
| 3370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3371 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3372 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3373 | fi |
| 3374 | done |
| 3375 | done |
| 3376 | done |
| 3377 | lt_ac_max=0 |
| 3378 | lt_ac_count=0 |
| 3379 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3380 | # along with /bin/sed that truncates output. |
| 3381 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3382 | test ! -f $lt_ac_sed && break |
| 3383 | cat /dev/null > conftest.in |
| 3384 | lt_ac_count=0 |
| 3385 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3386 | # Check for GNU sed and select it if it is found. |
| 3387 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3388 | lt_cv_path_SED=$lt_ac_sed |
| 3389 | break |
| 3390 | fi |
| 3391 | while true; do |
| 3392 | cat conftest.in conftest.in >conftest.tmp |
| 3393 | mv conftest.tmp conftest.in |
| 3394 | cp conftest.in conftest.nl |
| 3395 | echo >>conftest.nl |
| 3396 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3397 | cmp -s conftest.out conftest.nl || break |
| 3398 | # 10000 chars as input seems more than enough |
| 3399 | test $lt_ac_count -gt 10 && break |
| 3400 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3401 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3402 | lt_ac_max=$lt_ac_count |
| 3403 | lt_cv_path_SED=$lt_ac_sed |
| 3404 | fi |
| 3405 | done |
| 3406 | done |
| 3407 | SED=$lt_cv_path_SED |
| 3408 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3409 | fi |
| 3410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3411 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3412 | echo "${ECHO_T}$SED" >&6 |
| 3413 | |
| 3414 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3415 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3416 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3418 | else |
| 3419 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3420 | then ac_cv_prog_egrep='grep -E' |
| 3421 | else ac_cv_prog_egrep='egrep' |
| 3422 | fi |
| 3423 | fi |
| 3424 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3425 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3426 | EGREP=$ac_cv_prog_egrep |
| 3427 | |
| 3428 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3429 | |
| 3430 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3431 | if test "${with_gnu_ld+set}" = set; then |
| 3432 | withval="$with_gnu_ld" |
| 3433 | test "$withval" = no || with_gnu_ld=yes |
| 3434 | else |
| 3435 | with_gnu_ld=no |
| 3436 | fi; |
| 3437 | ac_prog=ld |
| 3438 | if test "$GCC" = yes; then |
| 3439 | # Check if gcc -print-prog-name=ld gives a path. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3440 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3441 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3442 | case $host in |
| 3443 | *-*-mingw*) |
| 3444 | # gcc leaves a trailing carriage return which upsets mingw |
| 3445 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3446 | *) |
| 3447 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3448 | esac |
| 3449 | case $ac_prog in |
| 3450 | # Accept absolute paths. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3451 | [\\/]* | ?:[\\/]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3452 | re_direlt='/[^/][^/]*/\.\./' |
| 3453 | # Canonicalize the path of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3454 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3455 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3456 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3457 | done |
| 3458 | test -z "$LD" && LD="$ac_prog" |
| 3459 | ;; |
| 3460 | "") |
| 3461 | # If it fails, then pretend we aren't using GCC. |
| 3462 | ac_prog=ld |
| 3463 | ;; |
| 3464 | *) |
| 3465 | # If it is relative, then search for the first ld in PATH. |
| 3466 | with_gnu_ld=unknown |
| 3467 | ;; |
| 3468 | esac |
| 3469 | elif test "$with_gnu_ld" = yes; then |
| 3470 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3471 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3472 | else |
| 3473 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3474 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3475 | fi |
| 3476 | if test "${lt_cv_path_LD+set}" = set; then |
| 3477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3478 | else |
| 3479 | if test -z "$LD"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3480 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3481 | for ac_dir in $PATH; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3482 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3483 | test -z "$ac_dir" && ac_dir=. |
| 3484 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3485 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3486 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3487 | # but apparently some GNU ld's only accept -v. |
| 3488 | # Break only if it was the GNU/non-GNU ld that we prefer. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3489 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3490 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3491 | test "$with_gnu_ld" != no && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3492 | ;; |
| 3493 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3494 | test "$with_gnu_ld" != yes && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3495 | ;; |
| 3496 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3497 | fi |
| 3498 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3499 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3500 | else |
| 3501 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3502 | fi |
| 3503 | fi |
| 3504 | |
| 3505 | LD="$lt_cv_path_LD" |
| 3506 | if test -n "$LD"; then |
| 3507 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3508 | echo "${ECHO_T}$LD" >&6 |
| 3509 | else |
| 3510 | echo "$as_me:$LINENO: result: no" >&5 |
| 3511 | echo "${ECHO_T}no" >&6 |
| 3512 | fi |
| 3513 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3514 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3515 | { (exit 1); exit 1; }; } |
| 3516 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3517 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3518 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3520 | else |
| 3521 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3522 | case `"$LD" -v 2>&1 </dev/null` in |
| 3523 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3524 | lt_cv_prog_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3525 | ;; |
| 3526 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3527 | lt_cv_prog_gnu_ld=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3528 | ;; |
| 3529 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3530 | fi |
| 3531 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3532 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3533 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3534 | |
| 3535 | |
| 3536 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3537 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3538 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3540 | else |
| 3541 | lt_cv_ld_reload_flag='-r' |
| 3542 | fi |
| 3543 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3544 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3545 | reload_flag=$lt_cv_ld_reload_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3546 | case $reload_flag in |
| 3547 | "" | " "*) ;; |
| 3548 | *) reload_flag=" $reload_flag" ;; |
| 3549 | esac |
| 3550 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3551 | |
| 3552 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3553 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3554 | if test "${lt_cv_path_NM+set}" = set; then |
| 3555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3556 | else |
| 3557 | if test -n "$NM"; then |
| 3558 | # Let the user override the test. |
| 3559 | lt_cv_path_NM="$NM" |
| 3560 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3561 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3562 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3563 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3564 | test -z "$ac_dir" && ac_dir=. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3565 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 3566 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3567 | # Check to see if the nm accepts a BSD-compat flag. |
| 3568 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3569 | # nm: unknown option "B" ignored |
| 3570 | # Tru64's nm complains that /dev/null is an invalid object file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3571 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3572 | */dev/null* | *'Invalid file or object type'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3573 | lt_cv_path_NM="$tmp_nm -B" |
| 3574 | break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3575 | ;; |
| 3576 | *) |
| 3577 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3578 | */dev/null*) |
| 3579 | lt_cv_path_NM="$tmp_nm -p" |
| 3580 | break |
| 3581 | ;; |
| 3582 | *) |
| 3583 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3584 | continue # so that we can try to find one that supports BSD flags |
| 3585 | ;; |
| 3586 | esac |
| 3587 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3588 | fi |
| 3589 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3590 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3591 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3592 | fi |
| 3593 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3594 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 3595 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3596 | NM="$lt_cv_path_NM" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3597 | |
| 3598 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3599 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3600 | LN_S=$as_ln_s |
| 3601 | if test "$LN_S" = "ln -s"; then |
| 3602 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3603 | echo "${ECHO_T}yes" >&6 |
| 3604 | else |
| 3605 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3606 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3607 | fi |
| 3608 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3609 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3610 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3611 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3613 | else |
| 3614 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3615 | lt_cv_file_magic_test_file= |
| 3616 | lt_cv_deplibs_check_method='unknown' |
| 3617 | # Need to set the preceding variable on all platforms that support |
| 3618 | # interlibrary dependencies. |
| 3619 | # 'none' -- dependencies not supported. |
| 3620 | # `unknown' -- same as none, but documents that we really don't know. |
| 3621 | # 'pass_all' -- all dependencies passed with no checks. |
| 3622 | # 'test_compile' -- check by making test program. |
| 3623 | # 'file_magic [[regex]]' -- check by looking for files in library path |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3624 | # which responds to the $file_magic_cmd with a given extended regex. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3625 | # If you have `file' or equivalent on your system and you're not sure |
| 3626 | # whether `pass_all' will *always* work, you probably want this one. |
| 3627 | |
| 3628 | case $host_os in |
| 3629 | aix4* | aix5*) |
| 3630 | lt_cv_deplibs_check_method=pass_all |
| 3631 | ;; |
| 3632 | |
| 3633 | beos*) |
| 3634 | lt_cv_deplibs_check_method=pass_all |
| 3635 | ;; |
| 3636 | |
| 3637 | bsdi4*) |
| 3638 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3639 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3640 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3641 | ;; |
| 3642 | |
| 3643 | cygwin* | mingw* | pw32*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3644 | # win32_libid is a shell function defined in ltmain.sh |
| 3645 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3646 | lt_cv_file_magic_cmd='win32_libid' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3647 | ;; |
| 3648 | |
| 3649 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3650 | # this will be overwritten by pass_all, but leave it in just in case |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3651 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3652 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3653 | case "$host_os" in |
| 3654 | rhapsody* | darwin1.[012]) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3655 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3656 | ;; |
| 3657 | *) # Darwin 1.3 on |
| 3658 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3659 | ;; |
| 3660 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3661 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3662 | ;; |
| 3663 | |
| 3664 | freebsd*) |
| 3665 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3666 | case $host_cpu in |
| 3667 | i*86 ) |
| 3668 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3669 | # Let's accept both of them until this is cleared up. |
| 3670 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3671 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3672 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3673 | ;; |
| 3674 | esac |
| 3675 | else |
| 3676 | lt_cv_deplibs_check_method=pass_all |
| 3677 | fi |
| 3678 | ;; |
| 3679 | |
| 3680 | gnu*) |
| 3681 | lt_cv_deplibs_check_method=pass_all |
| 3682 | ;; |
| 3683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3684 | hpux10.20* | hpux11*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3685 | lt_cv_file_magic_cmd=/usr/bin/file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3686 | case "$host_cpu" in |
| 3687 | ia64*) |
| 3688 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3689 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3690 | ;; |
| 3691 | hppa*64*) |
| 3692 | 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]' |
| 3693 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3694 | ;; |
| 3695 | *) |
| 3696 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3697 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3698 | ;; |
| 3699 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3700 | ;; |
| 3701 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3702 | irix5* | irix6* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3703 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3704 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3705 | # this will be overridden with pass_all, but let us keep it just in case |
| 3706 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3707 | ;; |
| 3708 | *) |
| 3709 | case $LD in |
| 3710 | *-32|*"-32 ") libmagic=32-bit;; |
| 3711 | *-n32|*"-n32 ") libmagic=N32;; |
| 3712 | *-64|*"-64 ") libmagic=64-bit;; |
| 3713 | *) libmagic=never-match;; |
| 3714 | esac |
| 3715 | # this will be overridden with pass_all, but let us keep it just in case |
| 3716 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3717 | ;; |
| 3718 | esac |
| 3719 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3720 | lt_cv_deplibs_check_method=pass_all |
| 3721 | ;; |
| 3722 | |
| 3723 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3724 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3725 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3726 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3727 | lt_cv_deplibs_check_method=pass_all ;; |
| 3728 | *) |
| 3729 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3730 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3731 | esac |
| 3732 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3733 | ;; |
| 3734 | |
| 3735 | netbsd*) |
| 3736 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3737 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3738 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3739 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3740 | fi |
| 3741 | ;; |
| 3742 | |
| 3743 | newos6*) |
| 3744 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3745 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3746 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3747 | ;; |
| 3748 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3749 | nto-qnx) |
| 3750 | lt_cv_deplibs_check_method=unknown |
| 3751 | ;; |
| 3752 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3753 | openbsd*) |
| 3754 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3755 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3756 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3757 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3758 | else |
| 3759 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3760 | fi |
| 3761 | ;; |
| 3762 | |
| 3763 | osf3* | osf4* | osf5*) |
| 3764 | # this will be overridden with pass_all, but let us keep it just in case |
| 3765 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3766 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3767 | lt_cv_deplibs_check_method=pass_all |
| 3768 | ;; |
| 3769 | |
| 3770 | sco3.2v5*) |
| 3771 | lt_cv_deplibs_check_method=pass_all |
| 3772 | ;; |
| 3773 | |
| 3774 | solaris*) |
| 3775 | lt_cv_deplibs_check_method=pass_all |
| 3776 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3777 | ;; |
| 3778 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3779 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3780 | case $host_vendor in |
| 3781 | motorola) |
| 3782 | 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]' |
| 3783 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3784 | ;; |
| 3785 | ncr) |
| 3786 | lt_cv_deplibs_check_method=pass_all |
| 3787 | ;; |
| 3788 | sequent) |
| 3789 | lt_cv_file_magic_cmd='/bin/file' |
| 3790 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3791 | ;; |
| 3792 | sni) |
| 3793 | lt_cv_file_magic_cmd='/bin/file' |
| 3794 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3795 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3796 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3797 | siemens) |
| 3798 | lt_cv_deplibs_check_method=pass_all |
| 3799 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3800 | esac |
| 3801 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3802 | |
| 3803 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 3804 | lt_cv_deplibs_check_method=pass_all |
| 3805 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3806 | esac |
| 3807 | |
| 3808 | fi |
| 3809 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3810 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3811 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3812 | deplibs_check_method=$lt_cv_deplibs_check_method |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3813 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3814 | |
| 3815 | |
| 3816 | |
| 3817 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3818 | # If no C compiler was specified, use CC. |
| 3819 | LTCC=${LTCC-"$CC"} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3820 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3821 | # Allow CC to be a program name with arguments. |
| 3822 | compiler=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3823 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3824 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3825 | if test "${enable_libtool_lock+set}" = set; then |
| 3826 | enableval="$enable_libtool_lock" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3827 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3828 | fi; |
| 3829 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3830 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3831 | # Some flags need to be propagated to the compiler or linker for good |
| 3832 | # libtool support. |
| 3833 | case $host in |
| 3834 | ia64-*-hpux*) |
| 3835 | # Find out which ABI we are using. |
| 3836 | echo 'int i;' > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3838 | (eval $ac_compile) 2>&5 |
| 3839 | ac_status=$? |
| 3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3841 | (exit $ac_status); }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3842 | case `/usr/bin/file conftest.$ac_objext` in |
| 3843 | *ELF-32*) |
| 3844 | HPUX_IA64_MODE="32" |
| 3845 | ;; |
| 3846 | *ELF-64*) |
| 3847 | HPUX_IA64_MODE="64" |
| 3848 | ;; |
| 3849 | esac |
| 3850 | fi |
| 3851 | rm -rf conftest* |
| 3852 | ;; |
| 3853 | *-*-irix6*) |
| 3854 | # Find out which ABI we are using. |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 3855 | echo '#line 3855 "configure"' > conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3857 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3858 | ac_status=$? |
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3860 | (exit $ac_status); }; then |
| 3861 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 3862 | case `/usr/bin/file conftest.$ac_objext` in |
| 3863 | *32-bit*) |
| 3864 | LD="${LD-ld} -melf32bsmip" |
| 3865 | ;; |
| 3866 | *N32*) |
| 3867 | LD="${LD-ld} -melf32bmipn32" |
| 3868 | ;; |
| 3869 | *64-bit*) |
| 3870 | LD="${LD-ld} -melf64bmip" |
| 3871 | ;; |
| 3872 | esac |
| 3873 | else |
| 3874 | case `/usr/bin/file conftest.$ac_objext` in |
| 3875 | *32-bit*) |
| 3876 | LD="${LD-ld} -32" |
| 3877 | ;; |
| 3878 | *N32*) |
| 3879 | LD="${LD-ld} -n32" |
| 3880 | ;; |
| 3881 | *64-bit*) |
| 3882 | LD="${LD-ld} -64" |
| 3883 | ;; |
| 3884 | esac |
| 3885 | fi |
| 3886 | fi |
| 3887 | rm -rf conftest* |
| 3888 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3889 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3890 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 3891 | # Find out which ABI we are using. |
| 3892 | echo 'int i;' > conftest.$ac_ext |
| 3893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3894 | (eval $ac_compile) 2>&5 |
| 3895 | ac_status=$? |
| 3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3897 | (exit $ac_status); }; then |
| 3898 | case "`/usr/bin/file conftest.o`" in |
| 3899 | *32-bit*) |
| 3900 | case $host in |
| 3901 | x86_64-*linux*) |
| 3902 | LD="${LD-ld} -m elf_i386" |
| 3903 | ;; |
| 3904 | ppc64-*linux*) |
| 3905 | LD="${LD-ld} -m elf32ppclinux" |
| 3906 | ;; |
| 3907 | s390x-*linux*) |
| 3908 | LD="${LD-ld} -m elf_s390" |
| 3909 | ;; |
| 3910 | sparc64-*linux*) |
| 3911 | LD="${LD-ld} -m elf32_sparc" |
| 3912 | ;; |
| 3913 | esac |
| 3914 | ;; |
| 3915 | *64-bit*) |
| 3916 | case $host in |
| 3917 | x86_64-*linux*) |
| 3918 | LD="${LD-ld} -m elf_x86_64" |
| 3919 | ;; |
| 3920 | ppc*-*linux*|powerpc*-*linux*) |
| 3921 | LD="${LD-ld} -m elf64ppc" |
| 3922 | ;; |
| 3923 | s390*-*linux*) |
| 3924 | LD="${LD-ld} -m elf64_s390" |
| 3925 | ;; |
| 3926 | sparc*-*linux*) |
| 3927 | LD="${LD-ld} -m elf64_sparc" |
| 3928 | ;; |
| 3929 | esac |
| 3930 | ;; |
| 3931 | esac |
| 3932 | fi |
| 3933 | rm -rf conftest* |
| 3934 | ;; |
| 3935 | |
| 3936 | *-*-sco3.2v5*) |
| 3937 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 3938 | SAVE_CFLAGS="$CFLAGS" |
| 3939 | CFLAGS="$CFLAGS -belf" |
| 3940 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 3941 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 3942 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3944 | else |
| 3945 | ac_ext=c |
| 3946 | ac_cpp='$CPP $CPPFLAGS' |
| 3947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3950 | |
| 3951 | cat >conftest.$ac_ext <<_ACEOF |
| 3952 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 3953 | /* confdefs.h. */ |
| 3954 | _ACEOF |
| 3955 | cat confdefs.h >>conftest.$ac_ext |
| 3956 | cat >>conftest.$ac_ext <<_ACEOF |
| 3957 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3958 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3959 | int |
| 3960 | main () |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3961 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3962 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3963 | ; |
| 3964 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3965 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3966 | _ACEOF |
| 3967 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3969 | (eval $ac_link) 2>&5 |
| 3970 | ac_status=$? |
| 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3972 | (exit $ac_status); } && |
| 3973 | { ac_try='test -s conftest$ac_exeext' |
| 3974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3975 | (eval $ac_try) 2>&5 |
| 3976 | ac_status=$? |
| 3977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3978 | (exit $ac_status); }; }; then |
| 3979 | lt_cv_cc_needs_belf=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3980 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3981 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 3982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3983 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3984 | lt_cv_cc_needs_belf=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3985 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3986 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3987 | ac_ext=c |
| 3988 | ac_cpp='$CPP $CPPFLAGS' |
| 3989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3992 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3993 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3994 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 3995 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 3996 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 3997 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 3998 | CFLAGS="$SAVE_CFLAGS" |
| 3999 | fi |
| 4000 | ;; |
| 4001 | |
| 4002 | esac |
| 4003 | |
| 4004 | need_locks="$enable_libtool_lock" |
| 4005 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4006 | |
| 4007 | |
| 4008 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4009 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4010 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4012 | else |
| 4013 | cat >conftest.$ac_ext <<_ACEOF |
| 4014 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4015 | /* confdefs.h. */ |
| 4016 | _ACEOF |
| 4017 | cat confdefs.h >>conftest.$ac_ext |
| 4018 | cat >>conftest.$ac_ext <<_ACEOF |
| 4019 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4020 | #include <stdlib.h> |
| 4021 | #include <stdarg.h> |
| 4022 | #include <string.h> |
| 4023 | #include <float.h> |
| 4024 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4025 | int |
| 4026 | main () |
| 4027 | { |
| 4028 | |
| 4029 | ; |
| 4030 | return 0; |
| 4031 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4032 | _ACEOF |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4033 | rm -f conftest.$ac_objext |
| 4034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4035 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4036 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4038 | (exit $ac_status); } && |
| 4039 | { ac_try='test -s conftest.$ac_objext' |
| 4040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4041 | (eval $ac_try) 2>&5 |
| 4042 | ac_status=$? |
| 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4044 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4045 | ac_cv_header_stdc=yes |
| 4046 | else |
| 4047 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4049 | |
| 4050 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4051 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4052 | rm -f conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4053 | |
| 4054 | if test $ac_cv_header_stdc = yes; then |
| 4055 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4056 | cat >conftest.$ac_ext <<_ACEOF |
| 4057 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4058 | /* confdefs.h. */ |
| 4059 | _ACEOF |
| 4060 | cat confdefs.h >>conftest.$ac_ext |
| 4061 | cat >>conftest.$ac_ext <<_ACEOF |
| 4062 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4063 | #include <string.h> |
| 4064 | |
| 4065 | _ACEOF |
| 4066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4067 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4068 | : |
| 4069 | else |
| 4070 | ac_cv_header_stdc=no |
| 4071 | fi |
| 4072 | rm -f conftest* |
| 4073 | |
| 4074 | fi |
| 4075 | |
| 4076 | if test $ac_cv_header_stdc = yes; then |
| 4077 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4078 | cat >conftest.$ac_ext <<_ACEOF |
| 4079 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4080 | /* confdefs.h. */ |
| 4081 | _ACEOF |
| 4082 | cat confdefs.h >>conftest.$ac_ext |
| 4083 | cat >>conftest.$ac_ext <<_ACEOF |
| 4084 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4085 | #include <stdlib.h> |
| 4086 | |
| 4087 | _ACEOF |
| 4088 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4089 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4090 | : |
| 4091 | else |
| 4092 | ac_cv_header_stdc=no |
| 4093 | fi |
| 4094 | rm -f conftest* |
| 4095 | |
| 4096 | fi |
| 4097 | |
| 4098 | if test $ac_cv_header_stdc = yes; then |
| 4099 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4100 | if test "$cross_compiling" = yes; then |
| 4101 | : |
| 4102 | else |
| 4103 | cat >conftest.$ac_ext <<_ACEOF |
| 4104 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4105 | /* confdefs.h. */ |
| 4106 | _ACEOF |
| 4107 | cat confdefs.h >>conftest.$ac_ext |
| 4108 | cat >>conftest.$ac_ext <<_ACEOF |
| 4109 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4110 | #include <ctype.h> |
| 4111 | #if ((' ' & 0x0FF) == 0x020) |
| 4112 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4113 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4114 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4115 | # define ISLOWER(c) \ |
| 4116 | (('a' <= (c) && (c) <= 'i') \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4117 | || ('j' <= (c) && (c) <= 'r') \ |
| 4118 | || ('s' <= (c) && (c) <= 'z')) |
| 4119 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4120 | #endif |
| 4121 | |
| 4122 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4123 | int |
| 4124 | main () |
| 4125 | { |
| 4126 | int i; |
| 4127 | for (i = 0; i < 256; i++) |
| 4128 | if (XOR (islower (i), ISLOWER (i)) |
| 4129 | || toupper (i) != TOUPPER (i)) |
| 4130 | exit(2); |
| 4131 | exit (0); |
| 4132 | } |
| 4133 | _ACEOF |
| 4134 | rm -f conftest$ac_exeext |
| 4135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4136 | (eval $ac_link) 2>&5 |
| 4137 | ac_status=$? |
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4141 | (eval $ac_try) 2>&5 |
| 4142 | ac_status=$? |
| 4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4144 | (exit $ac_status); }; }; then |
| 4145 | : |
| 4146 | else |
| 4147 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4148 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4150 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4151 | ( exit $ac_status ) |
| 4152 | ac_cv_header_stdc=no |
| 4153 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4154 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4155 | fi |
| 4156 | fi |
| 4157 | fi |
| 4158 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4159 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4160 | if test $ac_cv_header_stdc = yes; then |
| 4161 | |
| 4162 | cat >>confdefs.h <<\_ACEOF |
| 4163 | #define STDC_HEADERS 1 |
| 4164 | _ACEOF |
| 4165 | |
| 4166 | fi |
| 4167 | |
| 4168 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
| 4178 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4179 | inttypes.h stdint.h unistd.h |
| 4180 | do |
| 4181 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4182 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4184 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4186 | else |
| 4187 | cat >conftest.$ac_ext <<_ACEOF |
| 4188 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4189 | /* confdefs.h. */ |
| 4190 | _ACEOF |
| 4191 | cat confdefs.h >>conftest.$ac_ext |
| 4192 | cat >>conftest.$ac_ext <<_ACEOF |
| 4193 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4194 | $ac_includes_default |
| 4195 | |
| 4196 | #include <$ac_header> |
| 4197 | _ACEOF |
| 4198 | rm -f conftest.$ac_objext |
| 4199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4200 | (eval $ac_compile) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); } && |
| 4204 | { ac_try='test -s conftest.$ac_objext' |
| 4205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4206 | (eval $ac_try) 2>&5 |
| 4207 | ac_status=$? |
| 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4209 | (exit $ac_status); }; }; then |
| 4210 | eval "$as_ac_Header=yes" |
| 4211 | else |
| 4212 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4214 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4215 | eval "$as_ac_Header=no" |
| 4216 | fi |
| 4217 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4218 | fi |
| 4219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4220 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4221 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4222 | cat >>confdefs.h <<_ACEOF |
| 4223 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4224 | _ACEOF |
| 4225 | |
| 4226 | fi |
| 4227 | |
| 4228 | done |
| 4229 | |
| 4230 | |
| 4231 | |
| 4232 | for ac_header in dlfcn.h |
| 4233 | do |
| 4234 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4236 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4237 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4240 | fi |
| 4241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4243 | else |
| 4244 | # Is the header compilable? |
| 4245 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4246 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4247 | cat >conftest.$ac_ext <<_ACEOF |
| 4248 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4249 | /* confdefs.h. */ |
| 4250 | _ACEOF |
| 4251 | cat confdefs.h >>conftest.$ac_ext |
| 4252 | cat >>conftest.$ac_ext <<_ACEOF |
| 4253 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4254 | $ac_includes_default |
| 4255 | #include <$ac_header> |
| 4256 | _ACEOF |
| 4257 | rm -f conftest.$ac_objext |
| 4258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4259 | (eval $ac_compile) 2>&5 |
| 4260 | ac_status=$? |
| 4261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4262 | (exit $ac_status); } && |
| 4263 | { ac_try='test -s conftest.$ac_objext' |
| 4264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4265 | (eval $ac_try) 2>&5 |
| 4266 | ac_status=$? |
| 4267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4268 | (exit $ac_status); }; }; then |
| 4269 | ac_header_compiler=yes |
| 4270 | else |
| 4271 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4273 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4274 | ac_header_compiler=no |
| 4275 | fi |
| 4276 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4277 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4278 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4279 | |
| 4280 | # Is the header present? |
| 4281 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4282 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4283 | cat >conftest.$ac_ext <<_ACEOF |
| 4284 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4285 | /* confdefs.h. */ |
| 4286 | _ACEOF |
| 4287 | cat confdefs.h >>conftest.$ac_ext |
| 4288 | cat >>conftest.$ac_ext <<_ACEOF |
| 4289 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4290 | #include <$ac_header> |
| 4291 | _ACEOF |
| 4292 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4293 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4294 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4295 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4296 | rm -f conftest.er1 |
| 4297 | cat conftest.err >&5 |
| 4298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4299 | (exit $ac_status); } >/dev/null; then |
| 4300 | if test -s conftest.err; then |
| 4301 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4302 | else |
| 4303 | ac_cpp_err= |
| 4304 | fi |
| 4305 | else |
| 4306 | ac_cpp_err=yes |
| 4307 | fi |
| 4308 | if test -z "$ac_cpp_err"; then |
| 4309 | ac_header_preproc=yes |
| 4310 | else |
| 4311 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4313 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4314 | ac_header_preproc=no |
| 4315 | fi |
| 4316 | rm -f conftest.err conftest.$ac_ext |
| 4317 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4318 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4319 | |
| 4320 | # So? What about this header? |
| 4321 | case $ac_header_compiler:$ac_header_preproc in |
| 4322 | yes:no ) |
| 4323 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4324 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4326 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4327 | ( |
| 4328 | cat <<\_ASBOX |
| 4329 | ## ------------------------------------ ## |
| 4330 | ## Report this to bug-autoconf@gnu.org. ## |
| 4331 | ## ------------------------------------ ## |
| 4332 | _ASBOX |
| 4333 | ) | |
| 4334 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4335 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4336 | no:yes ) |
| 4337 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4338 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4339 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4340 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4341 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4342 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4343 | ( |
| 4344 | cat <<\_ASBOX |
| 4345 | ## ------------------------------------ ## |
| 4346 | ## Report this to bug-autoconf@gnu.org. ## |
| 4347 | ## ------------------------------------ ## |
| 4348 | _ASBOX |
| 4349 | ) | |
| 4350 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4351 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4352 | esac |
| 4353 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4354 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4355 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4357 | else |
| 4358 | eval "$as_ac_Header=$ac_header_preproc" |
| 4359 | fi |
| 4360 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4361 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4362 | |
| 4363 | fi |
| 4364 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4365 | cat >>confdefs.h <<_ACEOF |
| 4366 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4367 | _ACEOF |
| 4368 | |
| 4369 | fi |
| 4370 | |
| 4371 | done |
| 4372 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4373 | ac_ext=cc |
| 4374 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4375 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4376 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4377 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4378 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4379 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4380 | if test -z "$CXXCPP"; then |
| 4381 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4383 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4384 | # Double quotes because CXXCPP needs to be expanded |
| 4385 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4386 | do |
| 4387 | ac_preproc_ok=false |
| 4388 | for ac_cxx_preproc_warn_flag in '' yes |
| 4389 | do |
| 4390 | # Use a header file that comes with gcc, so configuring glibc |
| 4391 | # with a fresh cross-compiler works. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4392 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4393 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4394 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4395 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4396 | cat >conftest.$ac_ext <<_ACEOF |
| 4397 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4398 | /* confdefs.h. */ |
| 4399 | _ACEOF |
| 4400 | cat confdefs.h >>conftest.$ac_ext |
| 4401 | cat >>conftest.$ac_ext <<_ACEOF |
| 4402 | /* end confdefs.h. */ |
| 4403 | #ifdef __STDC__ |
| 4404 | # include <limits.h> |
| 4405 | #else |
| 4406 | # include <assert.h> |
| 4407 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4408 | Syntax error |
| 4409 | _ACEOF |
| 4410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4412 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4413 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4414 | rm -f conftest.er1 |
| 4415 | cat conftest.err >&5 |
| 4416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4417 | (exit $ac_status); } >/dev/null; then |
| 4418 | if test -s conftest.err; then |
| 4419 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4420 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4421 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4422 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4423 | else |
| 4424 | ac_cpp_err=yes |
| 4425 | fi |
| 4426 | if test -z "$ac_cpp_err"; then |
| 4427 | : |
| 4428 | else |
| 4429 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4431 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4432 | # Broken: fails on valid input. |
| 4433 | continue |
| 4434 | fi |
| 4435 | rm -f conftest.err conftest.$ac_ext |
| 4436 | |
| 4437 | # OK, works on sane cases. Now check whether non-existent headers |
| 4438 | # can be detected and how. |
| 4439 | cat >conftest.$ac_ext <<_ACEOF |
| 4440 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4441 | /* confdefs.h. */ |
| 4442 | _ACEOF |
| 4443 | cat confdefs.h >>conftest.$ac_ext |
| 4444 | cat >>conftest.$ac_ext <<_ACEOF |
| 4445 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4446 | #include <ac_nonexistent.h> |
| 4447 | _ACEOF |
| 4448 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4449 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4450 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4451 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4452 | rm -f conftest.er1 |
| 4453 | cat conftest.err >&5 |
| 4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4455 | (exit $ac_status); } >/dev/null; then |
| 4456 | if test -s conftest.err; then |
| 4457 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4458 | else |
| 4459 | ac_cpp_err= |
| 4460 | fi |
| 4461 | else |
| 4462 | ac_cpp_err=yes |
| 4463 | fi |
| 4464 | if test -z "$ac_cpp_err"; then |
| 4465 | # Broken: success on invalid input. |
| 4466 | continue |
| 4467 | else |
| 4468 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4470 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4471 | # Passes both tests. |
| 4472 | ac_preproc_ok=: |
| 4473 | break |
| 4474 | fi |
| 4475 | rm -f conftest.err conftest.$ac_ext |
| 4476 | |
| 4477 | done |
| 4478 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4479 | rm -f conftest.err conftest.$ac_ext |
| 4480 | if $ac_preproc_ok; then |
| 4481 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4482 | fi |
| 4483 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4484 | done |
| 4485 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4486 | |
| 4487 | fi |
| 4488 | CXXCPP=$ac_cv_prog_CXXCPP |
| 4489 | else |
| 4490 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4491 | fi |
| 4492 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4493 | echo "${ECHO_T}$CXXCPP" >&6 |
| 4494 | ac_preproc_ok=false |
| 4495 | for ac_cxx_preproc_warn_flag in '' yes |
| 4496 | do |
| 4497 | # Use a header file that comes with gcc, so configuring glibc |
| 4498 | # with a fresh cross-compiler works. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4499 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4500 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4501 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4502 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4503 | cat >conftest.$ac_ext <<_ACEOF |
| 4504 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4505 | /* confdefs.h. */ |
| 4506 | _ACEOF |
| 4507 | cat confdefs.h >>conftest.$ac_ext |
| 4508 | cat >>conftest.$ac_ext <<_ACEOF |
| 4509 | /* end confdefs.h. */ |
| 4510 | #ifdef __STDC__ |
| 4511 | # include <limits.h> |
| 4512 | #else |
| 4513 | # include <assert.h> |
| 4514 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4515 | Syntax error |
| 4516 | _ACEOF |
| 4517 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4518 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4519 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4520 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4521 | rm -f conftest.er1 |
| 4522 | cat conftest.err >&5 |
| 4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4524 | (exit $ac_status); } >/dev/null; then |
| 4525 | if test -s conftest.err; then |
| 4526 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4527 | else |
| 4528 | ac_cpp_err= |
| 4529 | fi |
| 4530 | else |
| 4531 | ac_cpp_err=yes |
| 4532 | fi |
| 4533 | if test -z "$ac_cpp_err"; then |
| 4534 | : |
| 4535 | else |
| 4536 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4538 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4539 | # Broken: fails on valid input. |
| 4540 | continue |
| 4541 | fi |
| 4542 | rm -f conftest.err conftest.$ac_ext |
| 4543 | |
| 4544 | # OK, works on sane cases. Now check whether non-existent headers |
| 4545 | # can be detected and how. |
| 4546 | cat >conftest.$ac_ext <<_ACEOF |
| 4547 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4548 | /* confdefs.h. */ |
| 4549 | _ACEOF |
| 4550 | cat confdefs.h >>conftest.$ac_ext |
| 4551 | cat >>conftest.$ac_ext <<_ACEOF |
| 4552 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4553 | #include <ac_nonexistent.h> |
| 4554 | _ACEOF |
| 4555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4557 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4558 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4559 | rm -f conftest.er1 |
| 4560 | cat conftest.err >&5 |
| 4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4562 | (exit $ac_status); } >/dev/null; then |
| 4563 | if test -s conftest.err; then |
| 4564 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4565 | else |
| 4566 | ac_cpp_err= |
| 4567 | fi |
| 4568 | else |
| 4569 | ac_cpp_err=yes |
| 4570 | fi |
| 4571 | if test -z "$ac_cpp_err"; then |
| 4572 | # Broken: success on invalid input. |
| 4573 | continue |
| 4574 | else |
| 4575 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4577 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4578 | # Passes both tests. |
| 4579 | ac_preproc_ok=: |
| 4580 | break |
| 4581 | fi |
| 4582 | rm -f conftest.err conftest.$ac_ext |
| 4583 | |
| 4584 | done |
| 4585 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4586 | rm -f conftest.err conftest.$ac_ext |
| 4587 | if $ac_preproc_ok; then |
| 4588 | : |
| 4589 | else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4590 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4591 | See \`config.log' for more details." >&5 |
| 4592 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4593 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4594 | { (exit 1); exit 1; }; } |
| 4595 | fi |
| 4596 | |
| 4597 | ac_ext=cc |
| 4598 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4599 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4600 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4601 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4602 | |
| 4603 | |
| 4604 | ac_ext=f |
| 4605 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4606 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4607 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 4608 | if test -n "$ac_tool_prefix"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4609 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4610 | do |
| 4611 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4612 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4615 | if test "${ac_cv_prog_F77+set}" = set; then |
| 4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4617 | else |
| 4618 | if test -n "$F77"; then |
| 4619 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 4620 | else |
| 4621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4622 | for as_dir in $PATH |
| 4623 | do |
| 4624 | IFS=$as_save_IFS |
| 4625 | test -z "$as_dir" && as_dir=. |
| 4626 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4628 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 4629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4630 | break 2 |
| 4631 | fi |
| 4632 | done |
| 4633 | done |
| 4634 | |
| 4635 | fi |
| 4636 | fi |
| 4637 | F77=$ac_cv_prog_F77 |
| 4638 | if test -n "$F77"; then |
| 4639 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 4640 | echo "${ECHO_T}$F77" >&6 |
| 4641 | else |
| 4642 | echo "$as_me:$LINENO: result: no" >&5 |
| 4643 | echo "${ECHO_T}no" >&6 |
| 4644 | fi |
| 4645 | |
| 4646 | test -n "$F77" && break |
| 4647 | done |
| 4648 | fi |
| 4649 | if test -z "$F77"; then |
| 4650 | ac_ct_F77=$F77 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4651 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4652 | do |
| 4653 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4654 | set dummy $ac_prog; ac_word=$2 |
| 4655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4657 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 4658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4659 | else |
| 4660 | if test -n "$ac_ct_F77"; then |
| 4661 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 4662 | else |
| 4663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4664 | for as_dir in $PATH |
| 4665 | do |
| 4666 | IFS=$as_save_IFS |
| 4667 | test -z "$as_dir" && as_dir=. |
| 4668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4669 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4670 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 4671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4672 | break 2 |
| 4673 | fi |
| 4674 | done |
| 4675 | done |
| 4676 | |
| 4677 | fi |
| 4678 | fi |
| 4679 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 4680 | if test -n "$ac_ct_F77"; then |
| 4681 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 4682 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 4683 | else |
| 4684 | echo "$as_me:$LINENO: result: no" >&5 |
| 4685 | echo "${ECHO_T}no" >&6 |
| 4686 | fi |
| 4687 | |
| 4688 | test -n "$ac_ct_F77" && break |
| 4689 | done |
| 4690 | |
| 4691 | F77=$ac_ct_F77 |
| 4692 | fi |
| 4693 | |
| 4694 | |
| 4695 | # Provide some information about the compiler. |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 4696 | echo "$as_me:4696:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4697 | "checking for Fortran 77 compiler version" >&5 |
| 4698 | ac_compiler=`set X $ac_compile; echo $2` |
| 4699 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4700 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4701 | ac_status=$? |
| 4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4703 | (exit $ac_status); } |
| 4704 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4705 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4706 | ac_status=$? |
| 4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4708 | (exit $ac_status); } |
| 4709 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4710 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4711 | ac_status=$? |
| 4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4713 | (exit $ac_status); } |
| 4714 | |
| 4715 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 4716 | # input file. |
| 4717 | ac_save_ext=$ac_ext |
| 4718 | ac_ext=F |
| 4719 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 4720 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 4721 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 4722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4723 | else |
| 4724 | cat >conftest.$ac_ext <<_ACEOF |
| 4725 | program main |
| 4726 | #ifndef __GNUC__ |
| 4727 | choke me |
| 4728 | #endif |
| 4729 | |
| 4730 | end |
| 4731 | _ACEOF |
| 4732 | rm -f conftest.$ac_objext |
| 4733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4734 | (eval $ac_compile) 2>&5 |
| 4735 | ac_status=$? |
| 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4737 | (exit $ac_status); } && |
| 4738 | { ac_try='test -s conftest.$ac_objext' |
| 4739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4740 | (eval $ac_try) 2>&5 |
| 4741 | ac_status=$? |
| 4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4743 | (exit $ac_status); }; }; then |
| 4744 | ac_compiler_gnu=yes |
| 4745 | else |
| 4746 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4748 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4749 | ac_compiler_gnu=no |
| 4750 | fi |
| 4751 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4752 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 4753 | |
| 4754 | fi |
| 4755 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 4756 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 4757 | ac_ext=$ac_save_ext |
| 4758 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 4759 | ac_test_FFLAGS=${FFLAGS+set} |
| 4760 | ac_save_FFLAGS=$FFLAGS |
| 4761 | FFLAGS= |
| 4762 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 4763 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 4764 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 4765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4766 | else |
| 4767 | FFLAGS=-g |
| 4768 | cat >conftest.$ac_ext <<_ACEOF |
| 4769 | program main |
| 4770 | |
| 4771 | end |
| 4772 | _ACEOF |
| 4773 | rm -f conftest.$ac_objext |
| 4774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4775 | (eval $ac_compile) 2>&5 |
| 4776 | ac_status=$? |
| 4777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4778 | (exit $ac_status); } && |
| 4779 | { ac_try='test -s conftest.$ac_objext' |
| 4780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4781 | (eval $ac_try) 2>&5 |
| 4782 | ac_status=$? |
| 4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4784 | (exit $ac_status); }; }; then |
| 4785 | ac_cv_prog_f77_g=yes |
| 4786 | else |
| 4787 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 4788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4789 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4790 | ac_cv_prog_f77_g=no |
| 4791 | fi |
| 4792 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4793 | |
| 4794 | fi |
| 4795 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 4796 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 4797 | if test "$ac_test_FFLAGS" = set; then |
| 4798 | FFLAGS=$ac_save_FFLAGS |
| 4799 | elif test $ac_cv_prog_f77_g = yes; then |
| 4800 | if test "$G77" = yes; then |
| 4801 | FFLAGS="-g -O2" |
| 4802 | else |
| 4803 | FFLAGS="-g" |
| 4804 | fi |
| 4805 | else |
| 4806 | if test "$G77" = yes; then |
| 4807 | FFLAGS="-O2" |
| 4808 | else |
| 4809 | FFLAGS= |
| 4810 | fi |
| 4811 | fi |
| 4812 | ac_ext=c |
| 4813 | ac_cpp='$CPP $CPPFLAGS' |
| 4814 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4815 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4816 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4817 | |
| 4818 | |
| 4819 | |
| 4820 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 4821 | |
| 4822 | # find the maximum length of command line arguments |
| 4823 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 4824 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 4825 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 4826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4827 | else |
| 4828 | i=0 |
| 4829 | testring="ABCD" |
| 4830 | |
| 4831 | case $build_os in |
| 4832 | msdosdjgpp*) |
| 4833 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4834 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4835 | # during glob expansion). Even if it were fixed, the result of this |
| 4836 | # check would be larger than it should be. |
| 4837 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4838 | ;; |
| 4839 | |
| 4840 | gnu*) |
| 4841 | # Under GNU Hurd, this test is not required because there is |
| 4842 | # no limit to the length of command line arguments. |
| 4843 | # Libtool will interpret -1 as no limit whatsoever |
| 4844 | lt_cv_sys_max_cmd_len=-1; |
| 4845 | ;; |
| 4846 | |
| 4847 | cygwin* | mingw*) |
| 4848 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4849 | # about 5 minutes as the teststring grows exponentially. |
| 4850 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4851 | # you end up with a "frozen" computer, even though with patience |
| 4852 | # the test eventually succeeds (with a max line length of 256k). |
| 4853 | # Instead, let's just punt: use the minimum linelength reported by |
| 4854 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4855 | lt_cv_sys_max_cmd_len=8192; |
| 4856 | ;; |
| 4857 | |
| 4858 | *) |
| 4859 | # If test is not a shell built-in, we'll probably end up computing a |
| 4860 | # maximum length that is only half of the actual maximum length, but |
| 4861 | # we can't tell. |
| 4862 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 4863 | = "XX$testring") >/dev/null 2>&1 && |
| 4864 | new_result=`expr "X$testring" : ".*" 2>&1` && |
| 4865 | lt_cv_sys_max_cmd_len=$new_result && |
| 4866 | test $i != 17 # 1/2 MB should be enough |
| 4867 | do |
| 4868 | i=`expr $i + 1` |
| 4869 | testring=$testring$testring |
| 4870 | done |
| 4871 | testring= |
| 4872 | # Add a significant safety factor because C++ compilers can tack on massive |
| 4873 | # amounts of additional arguments before passing them to the linker. |
| 4874 | # It appears as though 1/2 is a usable value. |
| 4875 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4876 | ;; |
| 4877 | esac |
| 4878 | |
| 4879 | fi |
| 4880 | |
| 4881 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 4882 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 4883 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 4884 | else |
| 4885 | echo "$as_me:$LINENO: result: none" >&5 |
| 4886 | echo "${ECHO_T}none" >&6 |
| 4887 | fi |
| 4888 | |
| 4889 | |
| 4890 | |
| 4891 | |
| 4892 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 4893 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 4894 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 4895 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 4896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4897 | else |
| 4898 | |
| 4899 | # These are sane defaults that work on at least a few old systems. |
| 4900 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 4901 | |
| 4902 | # Character class describing NM global symbol codes. |
| 4903 | symcode='[BCDEGRST]' |
| 4904 | |
| 4905 | # Regexp to match symbols that can be accessed directly from C. |
| 4906 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 4907 | |
| 4908 | # Transform the above into a raw symbol and a C symbol. |
| 4909 | symxfrm='\1 \2\3 \3' |
| 4910 | |
| 4911 | # Transform an extracted symbol line into a proper C declaration |
| 4912 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 4913 | |
| 4914 | # Transform an extracted symbol line into symbol name and symbol address |
| 4915 | 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'" |
| 4916 | |
| 4917 | # Define system-specific variables. |
| 4918 | case $host_os in |
| 4919 | aix*) |
| 4920 | symcode='[BCDT]' |
| 4921 | ;; |
| 4922 | cygwin* | mingw* | pw32*) |
| 4923 | symcode='[ABCDGISTW]' |
| 4924 | ;; |
| 4925 | hpux*) # Its linker distinguishes data from code symbols |
| 4926 | if test "$host_cpu" = ia64; then |
| 4927 | symcode='[ABCDEGRST]' |
| 4928 | fi |
| 4929 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4930 | 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'" |
| 4931 | ;; |
| 4932 | irix* | nonstopux*) |
| 4933 | symcode='[BCDEGRST]' |
| 4934 | ;; |
| 4935 | osf*) |
| 4936 | symcode='[BCDEGQRST]' |
| 4937 | ;; |
| 4938 | solaris* | sysv5*) |
| 4939 | symcode='[BDT]' |
| 4940 | ;; |
| 4941 | sysv4) |
| 4942 | symcode='[DFNSTU]' |
| 4943 | ;; |
| 4944 | esac |
| 4945 | |
| 4946 | # Handle CRLF in mingw tool chain |
| 4947 | opt_cr= |
| 4948 | case $build_os in |
| 4949 | mingw*) |
| 4950 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 4951 | ;; |
| 4952 | esac |
| 4953 | |
| 4954 | # If we're using GNU nm, then use its standard symbol codes. |
| 4955 | case `$NM -V 2>&1` in |
| 4956 | *GNU* | *'with BFD'*) |
| 4957 | symcode='[ABCDGISTW]' ;; |
| 4958 | esac |
| 4959 | |
| 4960 | # Try without a prefix undercore, then with it. |
| 4961 | for ac_symprfx in "" "_"; do |
| 4962 | |
| 4963 | # Write the raw and C identifiers. |
| 4964 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 4965 | |
| 4966 | # Check to see that the pipe works correctly. |
| 4967 | pipe_works=no |
| 4968 | |
| 4969 | rm -f conftest* |
| 4970 | cat > conftest.$ac_ext <<EOF |
| 4971 | #ifdef __cplusplus |
| 4972 | extern "C" { |
| 4973 | #endif |
| 4974 | char nm_test_var; |
| 4975 | void nm_test_func(){} |
| 4976 | #ifdef __cplusplus |
| 4977 | } |
| 4978 | #endif |
| 4979 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 4980 | EOF |
| 4981 | |
| 4982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4983 | (eval $ac_compile) 2>&5 |
| 4984 | ac_status=$? |
| 4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4986 | (exit $ac_status); }; then |
| 4987 | # Now try to grab the symbols. |
| 4988 | nlist=conftest.nm |
| 4989 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 4990 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 4991 | ac_status=$? |
| 4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4993 | (exit $ac_status); } && test -s "$nlist"; then |
| 4994 | # Try sorting and uniquifying the output. |
| 4995 | if sort "$nlist" | uniq > "$nlist"T; then |
| 4996 | mv -f "$nlist"T "$nlist" |
| 4997 | else |
| 4998 | rm -f "$nlist"T |
| 4999 | fi |
| 5000 | |
| 5001 | # Make sure that we snagged all the symbols we need. |
| 5002 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 5003 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 5004 | cat <<EOF > conftest.$ac_ext |
| 5005 | #ifdef __cplusplus |
| 5006 | extern "C" { |
| 5007 | #endif |
| 5008 | |
| 5009 | EOF |
| 5010 | # Now generate the symbol file. |
| 5011 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 5012 | |
| 5013 | cat <<EOF >> conftest.$ac_ext |
| 5014 | #if defined (__STDC__) && __STDC__ |
| 5015 | # define lt_ptr_t void * |
| 5016 | #else |
| 5017 | # define lt_ptr_t char * |
| 5018 | # define const |
| 5019 | #endif |
| 5020 | |
| 5021 | /* The mapping between symbol names and symbols. */ |
| 5022 | const struct { |
| 5023 | const char *name; |
| 5024 | lt_ptr_t address; |
| 5025 | } |
| 5026 | lt_preloaded_symbols[] = |
| 5027 | { |
| 5028 | EOF |
| 5029 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 5030 | cat <<\EOF >> conftest.$ac_ext |
| 5031 | {0, (lt_ptr_t) 0} |
| 5032 | }; |
| 5033 | |
| 5034 | #ifdef __cplusplus |
| 5035 | } |
| 5036 | #endif |
| 5037 | EOF |
| 5038 | # Now try linking the two files. |
| 5039 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5040 | lt_save_LIBS="$LIBS" |
| 5041 | lt_save_CFLAGS="$CFLAGS" |
| 5042 | LIBS="conftstm.$ac_objext" |
| 5043 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5045 | (eval $ac_link) 2>&5 |
| 5046 | ac_status=$? |
| 5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5048 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5049 | pipe_works=yes |
| 5050 | fi |
| 5051 | LIBS="$lt_save_LIBS" |
| 5052 | CFLAGS="$lt_save_CFLAGS" |
| 5053 | else |
| 5054 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5055 | fi |
| 5056 | else |
| 5057 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5058 | fi |
| 5059 | else |
| 5060 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5061 | fi |
| 5062 | else |
| 5063 | echo "$progname: failed program was:" >&5 |
| 5064 | cat conftest.$ac_ext >&5 |
| 5065 | fi |
| 5066 | rm -f conftest* conftst* |
| 5067 | |
| 5068 | # Do not use the global_symbol_pipe unless it works. |
| 5069 | if test "$pipe_works" = yes; then |
| 5070 | break |
| 5071 | else |
| 5072 | lt_cv_sys_global_symbol_pipe= |
| 5073 | fi |
| 5074 | done |
| 5075 | |
| 5076 | fi |
| 5077 | |
| 5078 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5079 | lt_cv_sys_global_symbol_to_cdecl= |
| 5080 | fi |
| 5081 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5082 | echo "$as_me:$LINENO: result: failed" >&5 |
| 5083 | echo "${ECHO_T}failed" >&6 |
| 5084 | else |
| 5085 | echo "$as_me:$LINENO: result: ok" >&5 |
| 5086 | echo "${ECHO_T}ok" >&6 |
| 5087 | fi |
| 5088 | |
| 5089 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5090 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 5091 | if test "${lt_cv_objdir+set}" = set; then |
| 5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5093 | else |
| 5094 | rm -f .libs 2>/dev/null |
| 5095 | mkdir .libs 2>/dev/null |
| 5096 | if test -d .libs; then |
| 5097 | lt_cv_objdir=.libs |
| 5098 | else |
| 5099 | # MS-DOS does not allow filenames that begin with a dot. |
| 5100 | lt_cv_objdir=_libs |
| 5101 | fi |
| 5102 | rmdir .libs 2>/dev/null |
| 5103 | fi |
| 5104 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5105 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 5106 | objdir=$lt_cv_objdir |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | |
| 5111 | |
| 5112 | case $host_os in |
| 5113 | aix3*) |
| 5114 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5115 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5116 | # vanish in a puff of smoke. |
| 5117 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5118 | COLLECT_NAMES= |
| 5119 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5120 | fi |
| 5121 | ;; |
| 5122 | esac |
| 5123 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5124 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5125 | # metacharacters that are still active within double-quoted strings. |
| 5126 | Xsed='sed -e s/^X//' |
| 5127 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5128 | |
| 5129 | # Same as above, but do not quote variable references. |
| 5130 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5131 | |
| 5132 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5133 | # double_quote_subst'ed string. |
| 5134 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5135 | |
| 5136 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5137 | no_glob_subst='s/\*/\\\*/g' |
| 5138 | |
| 5139 | # Constants: |
| 5140 | rm="rm -f" |
| 5141 | |
| 5142 | # Global variables: |
John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 5143 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5144 | can_build_shared=yes |
| 5145 | |
| 5146 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5147 | # which needs '.lib'). |
| 5148 | libext=a |
| 5149 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5150 | ofile="$default_ofile" |
| 5151 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5152 | |
| 5153 | if test -n "$ac_tool_prefix"; then |
| 5154 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5155 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5156 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5158 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5160 | else |
| 5161 | if test -n "$AR"; then |
| 5162 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5163 | else |
| 5164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5165 | for as_dir in $PATH |
| 5166 | do |
| 5167 | IFS=$as_save_IFS |
| 5168 | test -z "$as_dir" && as_dir=. |
| 5169 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5170 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5171 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5173 | break 2 |
| 5174 | fi |
| 5175 | done |
| 5176 | done |
| 5177 | |
| 5178 | fi |
| 5179 | fi |
| 5180 | AR=$ac_cv_prog_AR |
| 5181 | if test -n "$AR"; then |
| 5182 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5183 | echo "${ECHO_T}$AR" >&6 |
| 5184 | else |
| 5185 | echo "$as_me:$LINENO: result: no" >&5 |
| 5186 | echo "${ECHO_T}no" >&6 |
| 5187 | fi |
| 5188 | |
| 5189 | fi |
| 5190 | if test -z "$ac_cv_prog_AR"; then |
| 5191 | ac_ct_AR=$AR |
| 5192 | # Extract the first word of "ar", so it can be a program name with args. |
| 5193 | set dummy ar; ac_word=$2 |
| 5194 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5196 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5198 | else |
| 5199 | if test -n "$ac_ct_AR"; then |
| 5200 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5201 | else |
| 5202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5203 | for as_dir in $PATH |
| 5204 | do |
| 5205 | IFS=$as_save_IFS |
| 5206 | test -z "$as_dir" && as_dir=. |
| 5207 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5208 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5209 | ac_cv_prog_ac_ct_AR="ar" |
| 5210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5211 | break 2 |
| 5212 | fi |
| 5213 | done |
| 5214 | done |
| 5215 | |
| 5216 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5217 | fi |
| 5218 | fi |
| 5219 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5220 | if test -n "$ac_ct_AR"; then |
| 5221 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5222 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5223 | else |
| 5224 | echo "$as_me:$LINENO: result: no" >&5 |
| 5225 | echo "${ECHO_T}no" >&6 |
| 5226 | fi |
| 5227 | |
| 5228 | AR=$ac_ct_AR |
| 5229 | else |
| 5230 | AR="$ac_cv_prog_AR" |
| 5231 | fi |
| 5232 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5233 | if test -n "$ac_tool_prefix"; then |
| 5234 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5235 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5236 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5238 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5240 | else |
| 5241 | if test -n "$RANLIB"; then |
| 5242 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5243 | else |
| 5244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5245 | for as_dir in $PATH |
| 5246 | do |
| 5247 | IFS=$as_save_IFS |
| 5248 | test -z "$as_dir" && as_dir=. |
| 5249 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5250 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5251 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5253 | break 2 |
| 5254 | fi |
| 5255 | done |
| 5256 | done |
| 5257 | |
| 5258 | fi |
| 5259 | fi |
| 5260 | RANLIB=$ac_cv_prog_RANLIB |
| 5261 | if test -n "$RANLIB"; then |
| 5262 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5263 | echo "${ECHO_T}$RANLIB" >&6 |
| 5264 | else |
| 5265 | echo "$as_me:$LINENO: result: no" >&5 |
| 5266 | echo "${ECHO_T}no" >&6 |
| 5267 | fi |
| 5268 | |
| 5269 | fi |
| 5270 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5271 | ac_ct_RANLIB=$RANLIB |
| 5272 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5273 | set dummy ranlib; ac_word=$2 |
| 5274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5276 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5278 | else |
| 5279 | if test -n "$ac_ct_RANLIB"; then |
| 5280 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5281 | else |
| 5282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5283 | for as_dir in $PATH |
| 5284 | do |
| 5285 | IFS=$as_save_IFS |
| 5286 | test -z "$as_dir" && as_dir=. |
| 5287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5289 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5291 | break 2 |
| 5292 | fi |
| 5293 | done |
| 5294 | done |
| 5295 | |
| 5296 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5297 | fi |
| 5298 | fi |
| 5299 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5300 | if test -n "$ac_ct_RANLIB"; then |
| 5301 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5302 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5303 | else |
| 5304 | echo "$as_me:$LINENO: result: no" >&5 |
| 5305 | echo "${ECHO_T}no" >&6 |
| 5306 | fi |
| 5307 | |
| 5308 | RANLIB=$ac_ct_RANLIB |
| 5309 | else |
| 5310 | RANLIB="$ac_cv_prog_RANLIB" |
| 5311 | fi |
| 5312 | |
| 5313 | if test -n "$ac_tool_prefix"; then |
| 5314 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5315 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5318 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5320 | else |
| 5321 | if test -n "$STRIP"; then |
| 5322 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5323 | else |
| 5324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5325 | for as_dir in $PATH |
| 5326 | do |
| 5327 | IFS=$as_save_IFS |
| 5328 | test -z "$as_dir" && as_dir=. |
| 5329 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5331 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5333 | break 2 |
| 5334 | fi |
| 5335 | done |
| 5336 | done |
| 5337 | |
| 5338 | fi |
| 5339 | fi |
| 5340 | STRIP=$ac_cv_prog_STRIP |
| 5341 | if test -n "$STRIP"; then |
| 5342 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5343 | echo "${ECHO_T}$STRIP" >&6 |
| 5344 | else |
| 5345 | echo "$as_me:$LINENO: result: no" >&5 |
| 5346 | echo "${ECHO_T}no" >&6 |
| 5347 | fi |
| 5348 | |
| 5349 | fi |
| 5350 | if test -z "$ac_cv_prog_STRIP"; then |
| 5351 | ac_ct_STRIP=$STRIP |
| 5352 | # Extract the first word of "strip", so it can be a program name with args. |
| 5353 | set dummy strip; ac_word=$2 |
| 5354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5356 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5358 | else |
| 5359 | if test -n "$ac_ct_STRIP"; then |
| 5360 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5361 | else |
| 5362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5363 | for as_dir in $PATH |
| 5364 | do |
| 5365 | IFS=$as_save_IFS |
| 5366 | test -z "$as_dir" && as_dir=. |
| 5367 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5369 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5371 | break 2 |
| 5372 | fi |
| 5373 | done |
| 5374 | done |
| 5375 | |
| 5376 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5377 | fi |
| 5378 | fi |
| 5379 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5380 | if test -n "$ac_ct_STRIP"; then |
| 5381 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5382 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5383 | else |
| 5384 | echo "$as_me:$LINENO: result: no" >&5 |
| 5385 | echo "${ECHO_T}no" >&6 |
| 5386 | fi |
| 5387 | |
| 5388 | STRIP=$ac_ct_STRIP |
| 5389 | else |
| 5390 | STRIP="$ac_cv_prog_STRIP" |
| 5391 | fi |
| 5392 | |
| 5393 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5394 | old_CC="$CC" |
| 5395 | old_CFLAGS="$CFLAGS" |
| 5396 | |
| 5397 | # Set sane defaults for various variables |
| 5398 | test -z "$AR" && AR=ar |
| 5399 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5400 | test -z "$AS" && AS=as |
| 5401 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5402 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5403 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5404 | test -z "$LD" && LD=ld |
| 5405 | test -z "$LN_S" && LN_S="ln -s" |
| 5406 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5407 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5408 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5409 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5410 | test -z "$RANLIB" && RANLIB=: |
| 5411 | test -z "$STRIP" && STRIP=: |
| 5412 | test -z "$ac_objext" && ac_objext=o |
| 5413 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5414 | # Determine commands to create old-style static archives. |
| 5415 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5416 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5417 | old_postuninstall_cmds= |
| 5418 | |
| 5419 | if test -n "$RANLIB"; then |
| 5420 | case $host_os in |
| 5421 | openbsd*) |
| 5422 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5423 | ;; |
| 5424 | *) |
| 5425 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5426 | ;; |
| 5427 | esac |
| 5428 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5429 | fi |
| 5430 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5431 | # Only perform the check for file, if the check method requires it |
| 5432 | case $deplibs_check_method in |
| 5433 | file_magic*) |
| 5434 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5435 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5436 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5437 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5439 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5440 | case $MAGIC_CMD in |
| 5441 | [\\/*] | ?:[\\/]*) |
| 5442 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5443 | ;; |
| 5444 | *) |
| 5445 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5446 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5447 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5448 | for ac_dir in $ac_dummy; do |
| 5449 | IFS="$lt_save_ifs" |
| 5450 | test -z "$ac_dir" && ac_dir=. |
| 5451 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5452 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5453 | if test -n "$file_magic_test_file"; then |
| 5454 | case $deplibs_check_method in |
| 5455 | "file_magic "*) |
| 5456 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5457 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5458 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5459 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5460 | : |
| 5461 | else |
| 5462 | cat <<EOF 1>&2 |
| 5463 | |
| 5464 | *** Warning: the command libtool uses to detect shared libraries, |
| 5465 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5466 | *** The result is that libtool may fail to recognize shared libraries |
| 5467 | *** as such. This will affect the creation of libtool libraries that |
| 5468 | *** depend on shared libraries, but programs linked with such libtool |
| 5469 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5470 | *** may want to report the problem to your system manager and/or to |
| 5471 | *** bug-libtool@gnu.org |
| 5472 | |
| 5473 | EOF |
| 5474 | fi ;; |
| 5475 | esac |
| 5476 | fi |
| 5477 | break |
| 5478 | fi |
| 5479 | done |
| 5480 | IFS="$lt_save_ifs" |
| 5481 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5482 | ;; |
| 5483 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5484 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5485 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5486 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5487 | if test -n "$MAGIC_CMD"; then |
| 5488 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5489 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5490 | else |
| 5491 | echo "$as_me:$LINENO: result: no" >&5 |
| 5492 | echo "${ECHO_T}no" >&6 |
| 5493 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5494 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5495 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5496 | if test -n "$ac_tool_prefix"; then |
| 5497 | echo "$as_me:$LINENO: checking for file" >&5 |
| 5498 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 5499 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5501 | else |
| 5502 | case $MAGIC_CMD in |
| 5503 | [\\/*] | ?:[\\/]*) |
| 5504 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5505 | ;; |
| 5506 | *) |
| 5507 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5508 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5509 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5510 | for ac_dir in $ac_dummy; do |
| 5511 | IFS="$lt_save_ifs" |
| 5512 | test -z "$ac_dir" && ac_dir=. |
| 5513 | if test -f $ac_dir/file; then |
| 5514 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 5515 | if test -n "$file_magic_test_file"; then |
| 5516 | case $deplibs_check_method in |
| 5517 | "file_magic "*) |
| 5518 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5519 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5520 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5521 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5522 | : |
| 5523 | else |
| 5524 | cat <<EOF 1>&2 |
| 5525 | |
| 5526 | *** Warning: the command libtool uses to detect shared libraries, |
| 5527 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5528 | *** The result is that libtool may fail to recognize shared libraries |
| 5529 | *** as such. This will affect the creation of libtool libraries that |
| 5530 | *** depend on shared libraries, but programs linked with such libtool |
| 5531 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5532 | *** may want to report the problem to your system manager and/or to |
| 5533 | *** bug-libtool@gnu.org |
| 5534 | |
| 5535 | EOF |
| 5536 | fi ;; |
| 5537 | esac |
| 5538 | fi |
| 5539 | break |
| 5540 | fi |
| 5541 | done |
| 5542 | IFS="$lt_save_ifs" |
| 5543 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5544 | ;; |
| 5545 | esac |
| 5546 | fi |
| 5547 | |
| 5548 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5549 | if test -n "$MAGIC_CMD"; then |
| 5550 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5551 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5552 | else |
| 5553 | echo "$as_me:$LINENO: result: no" >&5 |
| 5554 | echo "${ECHO_T}no" >&6 |
| 5555 | fi |
| 5556 | |
| 5557 | else |
| 5558 | MAGIC_CMD=: |
| 5559 | fi |
| 5560 | fi |
| 5561 | |
| 5562 | fi |
| 5563 | ;; |
| 5564 | esac |
| 5565 | |
| 5566 | enable_dlopen=no |
| 5567 | enable_win32_dll=no |
| 5568 | |
| 5569 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 5570 | if test "${enable_libtool_lock+set}" = set; then |
| 5571 | enableval="$enable_libtool_lock" |
| 5572 | |
| 5573 | fi; |
| 5574 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5575 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5576 | |
| 5577 | # Check whether --with-pic or --without-pic was given. |
| 5578 | if test "${with_pic+set}" = set; then |
| 5579 | withval="$with_pic" |
| 5580 | pic_mode="$withval" |
| 5581 | else |
| 5582 | pic_mode=default |
| 5583 | fi; |
| 5584 | test -z "$pic_mode" && pic_mode=default |
| 5585 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5586 | # Use C for the default configuration in the libtool script |
| 5587 | tagname= |
| 5588 | lt_save_CC="$CC" |
| 5589 | ac_ext=c |
| 5590 | ac_cpp='$CPP $CPPFLAGS' |
| 5591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5594 | |
| 5595 | |
| 5596 | # Source file extension for C test sources. |
| 5597 | ac_ext=c |
| 5598 | |
| 5599 | # Object file extension for compiled C test sources. |
| 5600 | objext=o |
| 5601 | objext=$objext |
| 5602 | |
| 5603 | # Code to be used in simple compile tests |
| 5604 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 5605 | |
| 5606 | # Code to be used in simple link tests |
| 5607 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 5608 | |
| 5609 | |
| 5610 | # If no C compiler was specified, use CC. |
| 5611 | LTCC=${LTCC-"$CC"} |
| 5612 | |
| 5613 | # Allow CC to be a program name with arguments. |
| 5614 | compiler=$CC |
| 5615 | |
| 5616 | |
| 5617 | # |
| 5618 | # Check for any special shared library compilation flags. |
| 5619 | # |
| 5620 | lt_prog_cc_shlib= |
| 5621 | if test "$GCC" = no; then |
| 5622 | case $host_os in |
| 5623 | sco3.2v5*) |
| 5624 | lt_prog_cc_shlib='-belf' |
| 5625 | ;; |
| 5626 | esac |
| 5627 | fi |
| 5628 | if test -n "$lt_prog_cc_shlib"; then |
| 5629 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 5630 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 5631 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 5632 | else |
| 5633 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5634 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5635 | lt_cv_prog_cc_can_build_shared=no |
| 5636 | fi |
| 5637 | fi |
| 5638 | |
| 5639 | |
| 5640 | # |
| 5641 | # Check to make sure the static flag actually works. |
| 5642 | # |
| 5643 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 5644 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 5645 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5647 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5648 | lt_prog_compiler_static_works=no |
| 5649 | save_LDFLAGS="$LDFLAGS" |
| 5650 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 5651 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 5652 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 5653 | # The compiler can only warn and ignore the option if not recognized |
| 5654 | # So say no if there are warnings |
| 5655 | if test -s conftest.err; then |
| 5656 | # Append any errors to the config.log. |
| 5657 | cat conftest.err 1>&5 |
| 5658 | else |
| 5659 | lt_prog_compiler_static_works=yes |
| 5660 | fi |
| 5661 | fi |
| 5662 | $rm conftest* |
| 5663 | LDFLAGS="$save_LDFLAGS" |
| 5664 | |
| 5665 | fi |
| 5666 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 5667 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 5668 | |
| 5669 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 5670 | : |
| 5671 | else |
| 5672 | lt_prog_compiler_static= |
| 5673 | fi |
| 5674 | |
| 5675 | |
| 5676 | |
| 5677 | ## CAVEAT EMPTOR: |
| 5678 | ## There is no encapsulation within the following macros, do not change |
| 5679 | ## the running order or otherwise move them around unless you know exactly |
| 5680 | ## what you are doing... |
| 5681 | |
| 5682 | lt_prog_compiler_no_builtin_flag= |
| 5683 | |
| 5684 | if test "$GCC" = yes; then |
| 5685 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 5686 | |
| 5687 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5688 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5689 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5691 | else |
| 5692 | lt_cv_prog_compiler_rtti_exceptions=no |
| 5693 | ac_outfile=conftest.$ac_objext |
| 5694 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5695 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 5696 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5697 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5698 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5699 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5700 | # The option is referenced via a variable to avoid confusing sed. |
| 5701 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5702 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5703 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5704 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 5705 | (eval echo "\"\$as_me:5705: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5706 | (eval "$lt_compile" 2>conftest.err) |
| 5707 | ac_status=$? |
| 5708 | cat conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 5709 | echo "$as_me:5709: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5710 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5711 | # The compiler can only warn and ignore the option if not recognized |
| 5712 | # So say no if there are warnings |
| 5713 | if test ! -s conftest.err; then |
| 5714 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 5715 | fi |
| 5716 | fi |
| 5717 | $rm conftest* |
| 5718 | |
| 5719 | fi |
| 5720 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 5721 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 5722 | |
| 5723 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 5724 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 5725 | else |
| 5726 | : |
| 5727 | fi |
| 5728 | |
| 5729 | fi |
| 5730 | |
| 5731 | lt_prog_compiler_wl= |
| 5732 | lt_prog_compiler_pic= |
| 5733 | lt_prog_compiler_static= |
| 5734 | |
| 5735 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 5736 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5737 | |
| 5738 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5739 | lt_prog_compiler_wl='-Wl,' |
| 5740 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5741 | |
| 5742 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5743 | aix*) |
| 5744 | # All AIX code is PIC. |
| 5745 | if test "$host_cpu" = ia64; then |
| 5746 | # AIX 5 now supports IA64 processor |
| 5747 | lt_prog_compiler_static='-Bstatic' |
| 5748 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5749 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5750 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5751 | amigaos*) |
| 5752 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 5753 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 5754 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5755 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5756 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5757 | |
| 5758 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5759 | # PIC is the default for these OSes. |
| 5760 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5761 | |
| 5762 | mingw* | pw32* | os2*) |
| 5763 | # This hack is so that the source file can tell whether it is being |
| 5764 | # built for inclusion in a dll (and should export symbols for example). |
| 5765 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5766 | ;; |
| 5767 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5768 | darwin* | rhapsody*) |
| 5769 | # PIC is the default on this platform |
| 5770 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5771 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5772 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5773 | |
| 5774 | msdosdjgpp*) |
| 5775 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 5776 | # on systems that don't support them. |
| 5777 | lt_prog_compiler_can_build_shared=no |
| 5778 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5779 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5780 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5781 | sysv4*MP*) |
| 5782 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5783 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5784 | fi |
| 5785 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5786 | |
| 5787 | hpux*) |
| 5788 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5789 | # not for PA HP-UX. |
| 5790 | case "$host_cpu" in |
| 5791 | hppa*64*|ia64*) |
| 5792 | # +Z the default |
| 5793 | ;; |
| 5794 | *) |
| 5795 | lt_prog_compiler_pic='-fPIC' |
| 5796 | ;; |
| 5797 | esac |
| 5798 | ;; |
| 5799 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5800 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5801 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5802 | ;; |
| 5803 | esac |
| 5804 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5805 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5806 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5807 | aix*) |
| 5808 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5809 | if test "$host_cpu" = ia64; then |
| 5810 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5811 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5812 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5813 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5814 | fi |
| 5815 | ;; |
| 5816 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5817 | mingw* | pw32* | os2*) |
| 5818 | # This hack is so that the source file can tell whether it is being |
| 5819 | # built for inclusion in a dll (and should export symbols for example). |
| 5820 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5821 | ;; |
| 5822 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5823 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5824 | lt_prog_compiler_wl='-Wl,' |
| 5825 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5826 | # not for PA HP-UX. |
| 5827 | case "$host_cpu" in |
| 5828 | hppa*64*|ia64*) |
| 5829 | # +Z the default |
| 5830 | ;; |
| 5831 | *) |
| 5832 | lt_prog_compiler_pic='+Z' |
| 5833 | ;; |
| 5834 | esac |
| 5835 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 5836 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5837 | ;; |
| 5838 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5839 | irix5* | irix6* | nonstopux*) |
| 5840 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5841 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5842 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5843 | ;; |
| 5844 | |
| 5845 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5846 | lt_prog_compiler_pic='-KPIC' |
| 5847 | lt_prog_compiler_static='-Bstatic' |
| 5848 | ;; |
| 5849 | |
| 5850 | linux*) |
| 5851 | case $CC in |
| 5852 | icc|ecc) |
| 5853 | lt_prog_compiler_wl='-Wl,' |
| 5854 | lt_prog_compiler_pic='-KPIC' |
| 5855 | lt_prog_compiler_static='-static' |
| 5856 | ;; |
| 5857 | ccc) |
| 5858 | lt_prog_compiler_wl='-Wl,' |
| 5859 | # All Alpha code is PIC. |
| 5860 | lt_prog_compiler_static='-non_shared' |
| 5861 | ;; |
| 5862 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5863 | ;; |
| 5864 | |
| 5865 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5866 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5867 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5868 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5869 | ;; |
| 5870 | |
| 5871 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5872 | lt_prog_compiler_pic='-Kpic' |
| 5873 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5874 | ;; |
| 5875 | |
| 5876 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5877 | lt_prog_compiler_wl='-Wl,' |
| 5878 | lt_prog_compiler_pic='-KPIC' |
| 5879 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5880 | ;; |
| 5881 | |
| 5882 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5883 | lt_prog_compiler_wl='-Qoption ld ' |
| 5884 | lt_prog_compiler_pic='-PIC' |
| 5885 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5886 | ;; |
| 5887 | |
| 5888 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5889 | lt_prog_compiler_wl='-Wl,' |
| 5890 | lt_prog_compiler_pic='-KPIC' |
| 5891 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5892 | ;; |
| 5893 | |
| 5894 | sysv4*MP*) |
| 5895 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5896 | lt_prog_compiler_pic='-Kconform_pic' |
| 5897 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5898 | fi |
| 5899 | ;; |
| 5900 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5901 | uts4*) |
| 5902 | lt_prog_compiler_pic='-pic' |
| 5903 | lt_prog_compiler_static='-Bstatic' |
| 5904 | ;; |
| 5905 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5906 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5907 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5908 | ;; |
| 5909 | esac |
| 5910 | fi |
| 5911 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5912 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 5913 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5914 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5915 | # |
| 5916 | # Check to make sure the PIC flag actually works. |
| 5917 | # |
| 5918 | if test -n "$lt_prog_compiler_pic"; then |
| 5919 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 5920 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 5921 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5923 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5924 | lt_prog_compiler_pic_works=no |
| 5925 | ac_outfile=conftest.$ac_objext |
| 5926 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5927 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 5928 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5929 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5930 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5931 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5932 | # The option is referenced via a variable to avoid confusing sed. |
| 5933 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5934 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5935 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5936 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 5937 | (eval echo "\"\$as_me:5937: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5938 | (eval "$lt_compile" 2>conftest.err) |
| 5939 | ac_status=$? |
| 5940 | cat conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 5941 | echo "$as_me:5941: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5942 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5943 | # The compiler can only warn and ignore the option if not recognized |
| 5944 | # So say no if there are warnings |
| 5945 | if test ! -s conftest.err; then |
| 5946 | lt_prog_compiler_pic_works=yes |
| 5947 | fi |
| 5948 | fi |
| 5949 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5950 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5951 | fi |
| 5952 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 5953 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5954 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5955 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 5956 | case $lt_prog_compiler_pic in |
| 5957 | "" | " "*) ;; |
| 5958 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 5959 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5960 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5961 | lt_prog_compiler_pic= |
| 5962 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5963 | fi |
| 5964 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5965 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5966 | case "$host_os" in |
| 5967 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 5968 | *djgpp*) |
| 5969 | lt_prog_compiler_pic= |
| 5970 | ;; |
| 5971 | *) |
| 5972 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 5973 | ;; |
| 5974 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5975 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5976 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 5977 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5978 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5980 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5981 | lt_cv_prog_compiler_c_o=no |
| 5982 | $rm -r conftest 2>/dev/null |
| 5983 | mkdir conftest |
| 5984 | cd conftest |
| 5985 | mkdir out |
| 5986 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5987 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5988 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 5989 | # that will create temporary files in the current directory regardless of |
| 5990 | # the output directory. Thus, making CWD read-only will cause this test |
| 5991 | # to fail, enabling locking or at least warning the user not to do parallel |
| 5992 | # builds. |
| 5993 | chmod -w . |
| 5994 | |
| 5995 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 5996 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5997 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5998 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5999 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6000 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6001 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6002 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6003 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 6004 | (eval echo "\"\$as_me:6004: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6005 | (eval "$lt_compile" 2>out/conftest.err) |
| 6006 | ac_status=$? |
| 6007 | cat out/conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 6008 | echo "$as_me:6008: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6009 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6010 | then |
| 6011 | # The compiler can only warn and ignore the option if not recognized |
| 6012 | # So say no if there are warnings |
| 6013 | if test ! -s out/conftest.err; then |
| 6014 | lt_cv_prog_compiler_c_o=yes |
| 6015 | fi |
| 6016 | fi |
| 6017 | chmod u+w . |
| 6018 | $rm conftest* out/* |
| 6019 | rmdir out |
| 6020 | cd .. |
| 6021 | rmdir conftest |
| 6022 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6023 | |
| 6024 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6025 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6026 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6027 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6028 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6029 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6030 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6031 | # do not overwrite the value of need_locks provided by the user |
| 6032 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6033 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 6034 | hard_links=yes |
| 6035 | $rm conftest* |
| 6036 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6037 | touch conftest.a |
| 6038 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6039 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6040 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6041 | echo "${ECHO_T}$hard_links" >&6 |
| 6042 | if test "$hard_links" = no; then |
| 6043 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6044 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 6045 | need_locks=warn |
| 6046 | fi |
| 6047 | else |
| 6048 | need_locks=no |
| 6049 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6050 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6051 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6052 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 6053 | |
| 6054 | runpath_var= |
| 6055 | allow_undefined_flag= |
| 6056 | enable_shared_with_static_runtimes=no |
| 6057 | archive_cmds= |
| 6058 | archive_expsym_cmds= |
| 6059 | old_archive_From_new_cmds= |
| 6060 | old_archive_from_expsyms_cmds= |
| 6061 | export_dynamic_flag_spec= |
| 6062 | whole_archive_flag_spec= |
| 6063 | thread_safe_flag_spec= |
| 6064 | hardcode_libdir_flag_spec= |
| 6065 | hardcode_libdir_flag_spec_ld= |
| 6066 | hardcode_libdir_separator= |
| 6067 | hardcode_direct=no |
| 6068 | hardcode_minus_L=no |
| 6069 | hardcode_shlibpath_var=unsupported |
| 6070 | link_all_deplibs=unknown |
| 6071 | hardcode_automatic=no |
| 6072 | module_cmds= |
| 6073 | module_expsym_cmds= |
| 6074 | always_export_symbols=no |
| 6075 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6076 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6077 | # included in the symbol list |
| 6078 | include_expsyms= |
| 6079 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6080 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6081 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6082 | # as well as any symbol that contains `d'. |
| 6083 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 6084 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6085 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6086 | # the symbol is explicitly referenced. Since portable code cannot |
| 6087 | # rely on this symbol name, it's probably fine to never include it in |
| 6088 | # preloaded symbol tables. |
| 6089 | extract_expsyms_cmds= |
| 6090 | |
| 6091 | case $host_os in |
| 6092 | cygwin* | mingw* | pw32*) |
| 6093 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6094 | # When not using gcc, we currently assume that we are using |
| 6095 | # Microsoft Visual C++. |
| 6096 | if test "$GCC" != yes; then |
| 6097 | with_gnu_ld=no |
| 6098 | fi |
| 6099 | ;; |
| 6100 | openbsd*) |
| 6101 | with_gnu_ld=no |
| 6102 | ;; |
| 6103 | esac |
| 6104 | |
| 6105 | ld_shlibs=yes |
| 6106 | if test "$with_gnu_ld" = yes; then |
| 6107 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6108 | wlarc='${wl}' |
| 6109 | |
| 6110 | # See if GNU ld supports shared libraries. |
| 6111 | case $host_os in |
| 6112 | aix3* | aix4* | aix5*) |
| 6113 | # On AIX/PPC, the GNU linker is very broken |
| 6114 | if test "$host_cpu" != ia64; then |
| 6115 | ld_shlibs=no |
| 6116 | cat <<EOF 1>&2 |
| 6117 | |
| 6118 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6119 | *** to be unable to reliably create shared libraries on AIX. |
| 6120 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6121 | *** really care for shared libraries, you may want to modify your PATH |
| 6122 | *** so that a non-GNU linker is found, and then restart. |
| 6123 | |
| 6124 | EOF |
| 6125 | fi |
| 6126 | ;; |
| 6127 | |
| 6128 | amigaos*) |
| 6129 | 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)' |
| 6130 | hardcode_libdir_flag_spec='-L$libdir' |
| 6131 | hardcode_minus_L=yes |
| 6132 | |
| 6133 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 6134 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 6135 | # to version 4, is to share data among multiple programs linked |
| 6136 | # with the same dynamic library. Since this doesn't match the |
| 6137 | # behavior of shared libraries on other platforms, we can't use |
| 6138 | # them. |
| 6139 | ld_shlibs=no |
| 6140 | ;; |
| 6141 | |
| 6142 | beos*) |
| 6143 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6144 | allow_undefined_flag=unsupported |
| 6145 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6146 | # support --undefined. This deserves some investigation. FIXME |
| 6147 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6148 | else |
| 6149 | ld_shlibs=no |
| 6150 | fi |
| 6151 | ;; |
| 6152 | |
| 6153 | cygwin* | mingw* | pw32*) |
| 6154 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6155 | # as there is no search path for DLLs. |
| 6156 | hardcode_libdir_flag_spec='-L$libdir' |
| 6157 | allow_undefined_flag=unsupported |
| 6158 | always_export_symbols=no |
| 6159 | enable_shared_with_static_runtimes=yes |
| 6160 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6161 | |
| 6162 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6163 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6164 | # If the export-symbols file already is a .def file (1st line |
| 6165 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6166 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6167 | cp $export_symbols $output_objdir/$soname.def; |
| 6168 | else |
| 6169 | echo EXPORTS > $output_objdir/$soname.def; |
| 6170 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6171 | fi~ |
| 6172 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6173 | else |
| 6174 | ld_shlibs=no |
| 6175 | fi |
| 6176 | ;; |
| 6177 | |
| 6178 | netbsd*) |
| 6179 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6180 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6181 | wlarc= |
| 6182 | else |
| 6183 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6184 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6185 | fi |
| 6186 | ;; |
| 6187 | |
| 6188 | solaris* | sysv5*) |
| 6189 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6190 | ld_shlibs=no |
| 6191 | cat <<EOF 1>&2 |
| 6192 | |
| 6193 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6194 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6195 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6196 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6197 | *** your PATH or compiler configuration so that the native linker is |
| 6198 | *** used, and then restart. |
| 6199 | |
| 6200 | EOF |
| 6201 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6202 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6203 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6204 | else |
| 6205 | ld_shlibs=no |
| 6206 | fi |
| 6207 | ;; |
| 6208 | |
| 6209 | sunos4*) |
| 6210 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6211 | wlarc= |
| 6212 | hardcode_direct=yes |
| 6213 | hardcode_shlibpath_var=no |
| 6214 | ;; |
| 6215 | |
| 6216 | *) |
| 6217 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6218 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6219 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6220 | else |
| 6221 | ld_shlibs=no |
| 6222 | fi |
| 6223 | ;; |
| 6224 | esac |
| 6225 | |
| 6226 | if test "$ld_shlibs" = yes; then |
| 6227 | runpath_var=LD_RUN_PATH |
| 6228 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6229 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6230 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6231 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6232 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6233 | else |
| 6234 | whole_archive_flag_spec= |
| 6235 | fi |
| 6236 | fi |
| 6237 | else |
| 6238 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6239 | case $host_os in |
| 6240 | aix3*) |
| 6241 | allow_undefined_flag=unsupported |
| 6242 | always_export_symbols=yes |
| 6243 | 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' |
| 6244 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6245 | # are no directories specified by -L. |
| 6246 | hardcode_minus_L=yes |
| 6247 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6248 | # Neither direct hardcoding nor static linking is supported with a |
| 6249 | # broken collect2. |
| 6250 | hardcode_direct=unsupported |
| 6251 | fi |
| 6252 | ;; |
| 6253 | |
| 6254 | aix4* | aix5*) |
| 6255 | if test "$host_cpu" = ia64; then |
| 6256 | # On IA64, the linker does run time linking by default, so we don't |
| 6257 | # have to do anything special. |
| 6258 | aix_use_runtimelinking=no |
| 6259 | exp_sym_flag='-Bexport' |
| 6260 | no_entry_flag="" |
| 6261 | else |
| 6262 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6263 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6264 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6265 | 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' |
| 6266 | else |
| 6267 | 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' |
| 6268 | fi |
| 6269 | aix_use_runtimelinking=no |
| 6270 | |
| 6271 | # Test if we are trying to use run time linking or normal |
| 6272 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6273 | # need to do runtime linking. |
| 6274 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6275 | for ld_flag in $LDFLAGS; do |
| 6276 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6277 | aix_use_runtimelinking=yes |
| 6278 | break |
| 6279 | fi |
| 6280 | done |
| 6281 | esac |
| 6282 | |
| 6283 | exp_sym_flag='-bexport' |
| 6284 | no_entry_flag='-bnoentry' |
| 6285 | fi |
| 6286 | |
| 6287 | # When large executables or shared objects are built, AIX ld can |
| 6288 | # have problems creating the table of contents. If linking a library |
| 6289 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6290 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6291 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6292 | |
| 6293 | archive_cmds='' |
| 6294 | hardcode_direct=yes |
| 6295 | hardcode_libdir_separator=':' |
| 6296 | link_all_deplibs=yes |
| 6297 | |
| 6298 | if test "$GCC" = yes; then |
| 6299 | case $host_os in aix4.012|aix4.012.*) |
| 6300 | # We only want to do this on AIX 4.2 and lower, the check |
| 6301 | # below for broken collect2 doesn't work under 4.3+ |
| 6302 | collect2name=`${CC} -print-prog-name=collect2` |
| 6303 | if test -f "$collect2name" && \ |
| 6304 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6305 | then |
| 6306 | # We have reworked collect2 |
| 6307 | hardcode_direct=yes |
| 6308 | else |
| 6309 | # We have old collect2 |
| 6310 | hardcode_direct=unsupported |
| 6311 | # It fails to find uninstalled libraries when the uninstalled |
| 6312 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6313 | # to unsupported forces relinking |
| 6314 | hardcode_minus_L=yes |
| 6315 | hardcode_libdir_flag_spec='-L$libdir' |
| 6316 | hardcode_libdir_separator= |
| 6317 | fi |
| 6318 | esac |
| 6319 | shared_flag='-shared' |
| 6320 | else |
| 6321 | # not using gcc |
| 6322 | if test "$host_cpu" = ia64; then |
| 6323 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6324 | # chokes on -Wl,-G. The following line is correct: |
| 6325 | shared_flag='-G' |
| 6326 | else |
| 6327 | if test "$aix_use_runtimelinking" = yes; then |
| 6328 | shared_flag='${wl}-G' |
| 6329 | else |
| 6330 | shared_flag='${wl}-bM:SRE' |
| 6331 | fi |
| 6332 | fi |
| 6333 | fi |
| 6334 | |
| 6335 | # It seems that -bexpall does not export symbols beginning with |
| 6336 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6337 | always_export_symbols=yes |
| 6338 | if test "$aix_use_runtimelinking" = yes; then |
| 6339 | # Warning - without using the other runtime loading flags (-brtl), |
| 6340 | # -berok will link without error, but may produce a broken library. |
| 6341 | allow_undefined_flag='-berok' |
| 6342 | # Determine the default libpath from the value encoded in an empty executable. |
| 6343 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6344 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 6345 | /* confdefs.h. */ |
| 6346 | _ACEOF |
| 6347 | cat confdefs.h >>conftest.$ac_ext |
| 6348 | cat >>conftest.$ac_ext <<_ACEOF |
| 6349 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6350 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6351 | int |
| 6352 | main () |
| 6353 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6354 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6355 | ; |
| 6356 | return 0; |
| 6357 | } |
| 6358 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6359 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6361 | (eval $ac_link) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6362 | ac_status=$? |
| 6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6364 | (exit $ac_status); } && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6365 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6367 | (eval $ac_try) 2>&5 |
| 6368 | ac_status=$? |
| 6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6370 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6371 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6372 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6373 | }'` |
| 6374 | # Check for a 64-bit object if we didn't find anything. |
| 6375 | 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; } |
| 6376 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6377 | else |
| 6378 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 6379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6380 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6381 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6382 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6383 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6384 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6385 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6386 | 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" |
| 6387 | else |
| 6388 | if test "$host_cpu" = ia64; then |
| 6389 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6390 | allow_undefined_flag="-z nodefs" |
| 6391 | 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" |
| 6392 | else |
| 6393 | # Determine the default libpath from the value encoded in an empty executable. |
| 6394 | cat >conftest.$ac_ext <<_ACEOF |
| 6395 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 6396 | /* confdefs.h. */ |
| 6397 | _ACEOF |
| 6398 | cat confdefs.h >>conftest.$ac_ext |
| 6399 | cat >>conftest.$ac_ext <<_ACEOF |
| 6400 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6401 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6402 | int |
| 6403 | main () |
| 6404 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6405 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6406 | ; |
| 6407 | return 0; |
| 6408 | } |
| 6409 | _ACEOF |
| 6410 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6412 | (eval $ac_link) 2>&5 |
| 6413 | ac_status=$? |
| 6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6415 | (exit $ac_status); } && |
| 6416 | { ac_try='test -s conftest$ac_exeext' |
| 6417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6418 | (eval $ac_try) 2>&5 |
| 6419 | ac_status=$? |
| 6420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6421 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6422 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6423 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6424 | }'` |
| 6425 | # Check for a 64-bit object if we didn't find anything. |
| 6426 | 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; } |
| 6427 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6428 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6429 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 6430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6431 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6432 | fi |
| 6433 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6434 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6435 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6436 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6437 | # Warning - without using the other run time loading flags, |
| 6438 | # -berok will link without error, but may produce a broken library. |
| 6439 | no_undefined_flag=' ${wl}-bernotok' |
| 6440 | allow_undefined_flag=' ${wl}-berok' |
| 6441 | # -bexpall does not export symbols beginning with underscore (_) |
| 6442 | always_export_symbols=yes |
| 6443 | # Exported symbols can be pulled into shared objects from archives |
| 6444 | whole_archive_flag_spec=' ' |
| 6445 | archive_cmds_need_lc=yes |
| 6446 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 6447 | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6448 | fi |
| 6449 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6450 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6451 | |
| 6452 | amigaos*) |
| 6453 | 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)' |
| 6454 | hardcode_libdir_flag_spec='-L$libdir' |
| 6455 | hardcode_minus_L=yes |
| 6456 | # see comment about different semantics on the GNU ld section |
| 6457 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6458 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6459 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6460 | bsdi4*) |
| 6461 | export_dynamic_flag_spec=-rdynamic |
| 6462 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6463 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6464 | cygwin* | mingw* | pw32*) |
| 6465 | # When not using gcc, we currently assume that we are using |
| 6466 | # Microsoft Visual C++. |
| 6467 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6468 | # no search path for DLLs. |
| 6469 | hardcode_libdir_flag_spec=' ' |
| 6470 | allow_undefined_flag=unsupported |
| 6471 | # Tell ltmain to make .lib files, not .a files. |
| 6472 | libext=lib |
| 6473 | # Tell ltmain to make .dll files, not .so files. |
| 6474 | shrext=".dll" |
| 6475 | # FIXME: Setting linknames here is a bad hack. |
| 6476 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 6477 | # The linker will automatically build a .lib file if we build a DLL. |
| 6478 | old_archive_From_new_cmds='true' |
| 6479 | # FIXME: Should let the user specify the lib program. |
| 6480 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 6481 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6482 | enable_shared_with_static_runtimes=yes |
| 6483 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6484 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6485 | darwin* | rhapsody*) |
| 6486 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 6487 | archive_cmds_need_lc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6488 | case "$host_os" in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6489 | rhapsody* | darwin1.[012]) |
| 6490 | allow_undefined_flag='-undefined suppress' |
| 6491 | ;; |
| 6492 | *) # Darwin 1.3 on |
| 6493 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6494 | ;; |
| 6495 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6496 | # FIXME: Relying on posixy $() will cause problems for |
| 6497 | # cross-compilation, but unfortunately the echo tests do not |
| 6498 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 6499 | # `"' quotes if we put them in here... so don't! |
| 6500 | lt_int_apple_cc_single_mod=no |
| 6501 | output_verbose_link_cmd='echo' |
| 6502 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 6503 | lt_int_apple_cc_single_mod=yes |
| 6504 | fi |
| 6505 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6506 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 6507 | else |
| 6508 | 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' |
| 6509 | fi |
| 6510 | module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 6511 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 6512 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6513 | 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}' |
| 6514 | else |
| 6515 | 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}' |
| 6516 | fi |
| 6517 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6518 | hardcode_direct=no |
| 6519 | hardcode_automatic=yes |
| 6520 | hardcode_shlibpath_var=unsupported |
| 6521 | whole_archive_flag_spec='-all_load $convenience' |
| 6522 | link_all_deplibs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6523 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6524 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6525 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6526 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6527 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6528 | hardcode_libdir_flag_spec='-L$libdir' |
| 6529 | hardcode_shlibpath_var=no |
| 6530 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6531 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6532 | freebsd1*) |
| 6533 | ld_shlibs=no |
| 6534 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6535 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6536 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 6537 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 6538 | # does not break anything, and helps significantly (at the cost of a little |
| 6539 | # extra space). |
| 6540 | freebsd2.2*) |
| 6541 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 6542 | hardcode_libdir_flag_spec='-R$libdir' |
| 6543 | hardcode_direct=yes |
| 6544 | hardcode_shlibpath_var=no |
| 6545 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6547 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 6548 | freebsd2*) |
| 6549 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6550 | hardcode_direct=yes |
| 6551 | hardcode_minus_L=yes |
| 6552 | hardcode_shlibpath_var=no |
| 6553 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6554 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6555 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 6556 | freebsd*) |
| 6557 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 6558 | hardcode_libdir_flag_spec='-R$libdir' |
| 6559 | hardcode_direct=yes |
| 6560 | hardcode_shlibpath_var=no |
| 6561 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6562 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6563 | hpux9*) |
| 6564 | if test "$GCC" = yes; then |
| 6565 | 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' |
| 6566 | else |
| 6567 | 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' |
| 6568 | fi |
| 6569 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6570 | hardcode_libdir_separator=: |
| 6571 | hardcode_direct=yes |
| 6572 | |
| 6573 | # hardcode_minus_L: Not really in the search PATH, |
| 6574 | # but as the default location of the library. |
| 6575 | hardcode_minus_L=yes |
| 6576 | export_dynamic_flag_spec='${wl}-E' |
| 6577 | ;; |
| 6578 | |
| 6579 | hpux10* | hpux11*) |
| 6580 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 6581 | case "$host_cpu" in |
| 6582 | hppa*64*|ia64*) |
| 6583 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6584 | ;; |
| 6585 | *) |
| 6586 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 6587 | ;; |
| 6588 | esac |
| 6589 | else |
| 6590 | case "$host_cpu" in |
| 6591 | hppa*64*|ia64*) |
| 6592 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6593 | ;; |
| 6594 | *) |
| 6595 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 6596 | ;; |
| 6597 | esac |
| 6598 | fi |
| 6599 | if test "$with_gnu_ld" = no; then |
| 6600 | case "$host_cpu" in |
| 6601 | hppa*64*) |
| 6602 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6603 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 6604 | hardcode_libdir_separator=: |
| 6605 | hardcode_direct=no |
| 6606 | hardcode_shlibpath_var=no |
| 6607 | ;; |
| 6608 | ia64*) |
| 6609 | hardcode_libdir_flag_spec='-L$libdir' |
| 6610 | hardcode_direct=no |
| 6611 | hardcode_shlibpath_var=no |
| 6612 | |
| 6613 | # hardcode_minus_L: Not really in the search PATH, |
| 6614 | # but as the default location of the library. |
| 6615 | hardcode_minus_L=yes |
| 6616 | ;; |
| 6617 | *) |
| 6618 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6619 | hardcode_libdir_separator=: |
| 6620 | hardcode_direct=yes |
| 6621 | export_dynamic_flag_spec='${wl}-E' |
| 6622 | |
| 6623 | # hardcode_minus_L: Not really in the search PATH, |
| 6624 | # but as the default location of the library. |
| 6625 | hardcode_minus_L=yes |
| 6626 | ;; |
| 6627 | esac |
| 6628 | fi |
| 6629 | ;; |
| 6630 | |
| 6631 | irix5* | irix6* | nonstopux*) |
| 6632 | if test "$GCC" = yes; then |
| 6633 | 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' |
| 6634 | else |
| 6635 | 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' |
| 6636 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 6637 | fi |
| 6638 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6639 | hardcode_libdir_separator=: |
| 6640 | link_all_deplibs=yes |
| 6641 | ;; |
| 6642 | |
| 6643 | netbsd*) |
| 6644 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6645 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 6646 | else |
| 6647 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 6648 | fi |
| 6649 | hardcode_libdir_flag_spec='-R$libdir' |
| 6650 | hardcode_direct=yes |
| 6651 | hardcode_shlibpath_var=no |
| 6652 | ;; |
| 6653 | |
| 6654 | newsos6) |
| 6655 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6656 | hardcode_direct=yes |
| 6657 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6658 | hardcode_libdir_separator=: |
| 6659 | hardcode_shlibpath_var=no |
| 6660 | ;; |
| 6661 | |
| 6662 | openbsd*) |
| 6663 | hardcode_direct=yes |
| 6664 | hardcode_shlibpath_var=no |
| 6665 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6666 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6667 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6668 | export_dynamic_flag_spec='${wl}-E' |
| 6669 | else |
| 6670 | case $host_os in |
| 6671 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 6672 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6673 | hardcode_libdir_flag_spec='-R$libdir' |
| 6674 | ;; |
| 6675 | *) |
| 6676 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6677 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6678 | ;; |
| 6679 | esac |
| 6680 | fi |
| 6681 | ;; |
| 6682 | |
| 6683 | os2*) |
| 6684 | hardcode_libdir_flag_spec='-L$libdir' |
| 6685 | hardcode_minus_L=yes |
| 6686 | allow_undefined_flag=unsupported |
| 6687 | 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' |
| 6688 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 6689 | ;; |
| 6690 | |
| 6691 | osf3*) |
| 6692 | if test "$GCC" = yes; then |
| 6693 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6694 | 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' |
| 6695 | else |
| 6696 | allow_undefined_flag=' -expect_unresolved \*' |
| 6697 | 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' |
| 6698 | fi |
| 6699 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6700 | hardcode_libdir_separator=: |
| 6701 | ;; |
| 6702 | |
| 6703 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 6704 | if test "$GCC" = yes; then |
| 6705 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6706 | 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' |
| 6707 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6708 | else |
| 6709 | allow_undefined_flag=' -expect_unresolved \*' |
| 6710 | 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' |
| 6711 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 6712 | $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' |
| 6713 | |
| 6714 | # Both c and cxx compiler support -rpath directly |
| 6715 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 6716 | fi |
| 6717 | hardcode_libdir_separator=: |
| 6718 | ;; |
| 6719 | |
| 6720 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6721 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6722 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6723 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6724 | runpath_var=LD_RUN_PATH |
| 6725 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6726 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6727 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6728 | solaris*) |
| 6729 | no_undefined_flag=' -z text' |
| 6730 | if test "$GCC" = yes; then |
| 6731 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6732 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6733 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 6734 | else |
| 6735 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6736 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6737 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6738 | fi |
| 6739 | hardcode_libdir_flag_spec='-R$libdir' |
| 6740 | hardcode_shlibpath_var=no |
| 6741 | case $host_os in |
| 6742 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 6743 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6744 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 6745 | esac |
| 6746 | link_all_deplibs=yes |
| 6747 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6748 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6749 | sunos4*) |
| 6750 | if test "x$host_vendor" = xsequent; then |
| 6751 | # Use $CC to link under sequent, because it throws in some extra .o |
| 6752 | # files that make .init and .fini sections work. |
| 6753 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6754 | else |
| 6755 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 6756 | fi |
| 6757 | hardcode_libdir_flag_spec='-L$libdir' |
| 6758 | hardcode_direct=yes |
| 6759 | hardcode_minus_L=yes |
| 6760 | hardcode_shlibpath_var=no |
| 6761 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6762 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6763 | sysv4) |
| 6764 | case $host_vendor in |
| 6765 | sni) |
| 6766 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6767 | hardcode_direct=yes # is this really true??? |
| 6768 | ;; |
| 6769 | siemens) |
| 6770 | ## LD is ld it makes a PLAMLIB |
| 6771 | ## CC just makes a GrossModule. |
| 6772 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6773 | reload_cmds='$CC -r -o $output$reload_objs' |
| 6774 | hardcode_direct=no |
| 6775 | ;; |
| 6776 | motorola) |
| 6777 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6778 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 6779 | ;; |
| 6780 | esac |
| 6781 | runpath_var='LD_RUN_PATH' |
| 6782 | hardcode_shlibpath_var=no |
| 6783 | ;; |
| 6784 | |
| 6785 | sysv4.3*) |
| 6786 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6787 | hardcode_shlibpath_var=no |
| 6788 | export_dynamic_flag_spec='-Bexport' |
| 6789 | ;; |
| 6790 | |
| 6791 | sysv4*MP*) |
| 6792 | if test -d /usr/nec; then |
| 6793 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6794 | hardcode_shlibpath_var=no |
| 6795 | runpath_var=LD_RUN_PATH |
| 6796 | hardcode_runpath_var=yes |
| 6797 | ld_shlibs=yes |
| 6798 | fi |
| 6799 | ;; |
| 6800 | |
| 6801 | sysv4.2uw2*) |
| 6802 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6803 | hardcode_direct=yes |
| 6804 | hardcode_minus_L=no |
| 6805 | hardcode_shlibpath_var=no |
| 6806 | hardcode_runpath_var=yes |
| 6807 | runpath_var=LD_RUN_PATH |
| 6808 | ;; |
| 6809 | |
| 6810 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 6811 | no_undefined_flag='${wl}-z ${wl}text' |
| 6812 | if test "$GCC" = yes; then |
| 6813 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6814 | else |
| 6815 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6816 | fi |
| 6817 | runpath_var='LD_RUN_PATH' |
| 6818 | hardcode_shlibpath_var=no |
| 6819 | ;; |
| 6820 | |
| 6821 | sysv5*) |
| 6822 | no_undefined_flag=' -z text' |
| 6823 | # $CC -shared without GNU ld will not create a library from C++ |
| 6824 | # object files and a static libstdc++, better avoid it by now |
| 6825 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6826 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6827 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6828 | hardcode_libdir_flag_spec= |
| 6829 | hardcode_shlibpath_var=no |
| 6830 | runpath_var='LD_RUN_PATH' |
| 6831 | ;; |
| 6832 | |
| 6833 | uts4*) |
| 6834 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6835 | hardcode_libdir_flag_spec='-L$libdir' |
| 6836 | hardcode_shlibpath_var=no |
| 6837 | ;; |
| 6838 | |
| 6839 | *) |
| 6840 | ld_shlibs=no |
| 6841 | ;; |
| 6842 | esac |
| 6843 | fi |
| 6844 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6845 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 6846 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 6847 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6848 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6849 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6850 | if test "$GCC" = yes; then |
| 6851 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6852 | fi |
| 6853 | |
| 6854 | # |
| 6855 | # Do we need to explicitly link libc? |
| 6856 | # |
| 6857 | case "x$archive_cmds_need_lc" in |
| 6858 | x|xyes) |
| 6859 | # Assume -lc should be added |
| 6860 | archive_cmds_need_lc=yes |
| 6861 | |
| 6862 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 6863 | case $archive_cmds in |
| 6864 | *'~'*) |
| 6865 | # FIXME: we may have to deal with multi-command sequences. |
| 6866 | ;; |
| 6867 | '$CC '*) |
| 6868 | # Test whether the compiler implicitly links with -lc since on some |
| 6869 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 6870 | # to ld, don't add -lc before -lgcc. |
| 6871 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 6872 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 6873 | $rm conftest* |
| 6874 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6875 | |
| 6876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6877 | (eval $ac_compile) 2>&5 |
| 6878 | ac_status=$? |
| 6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6880 | (exit $ac_status); } 2>conftest.err; then |
| 6881 | soname=conftest |
| 6882 | lib=conftest |
| 6883 | libobjs=conftest.$ac_objext |
| 6884 | deplibs= |
| 6885 | wl=$lt_prog_compiler_wl |
| 6886 | compiler_flags=-v |
| 6887 | linker_flags=-v |
| 6888 | verstring= |
| 6889 | output_objdir=. |
| 6890 | libname=conftest |
| 6891 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 6892 | allow_undefined_flag= |
| 6893 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 6894 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 6895 | ac_status=$? |
| 6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6897 | (exit $ac_status); } |
| 6898 | then |
| 6899 | archive_cmds_need_lc=no |
| 6900 | else |
| 6901 | archive_cmds_need_lc=yes |
| 6902 | fi |
| 6903 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 6904 | else |
| 6905 | cat conftest.err 1>&5 |
| 6906 | fi |
| 6907 | $rm conftest* |
| 6908 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 6909 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 6910 | ;; |
| 6911 | esac |
| 6912 | fi |
| 6913 | ;; |
| 6914 | esac |
| 6915 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6916 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 6917 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 6918 | hardcode_action= |
| 6919 | if test -n "$hardcode_libdir_flag_spec" || \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6920 | test -n "$runpath_var " || \ |
| 6921 | test "X$hardcode_automatic"="Xyes" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6922 | |
| 6923 | # We can hardcode non-existant directories. |
| 6924 | if test "$hardcode_direct" != no && |
| 6925 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 6926 | # have to relink, otherwise we might link with an installed library |
| 6927 | # when we should be linking with a yet-to-be-installed one |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6928 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6929 | test "$hardcode_minus_L" != no; then |
| 6930 | # Linking always hardcodes the temporary library directory. |
| 6931 | hardcode_action=relink |
| 6932 | else |
| 6933 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 6934 | hardcode_action=immediate |
| 6935 | fi |
| 6936 | else |
| 6937 | # We cannot hardcode anything, or else we can only hardcode existing |
| 6938 | # directories. |
| 6939 | hardcode_action=unsupported |
| 6940 | fi |
| 6941 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 6942 | echo "${ECHO_T}$hardcode_action" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6943 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6944 | if test "$hardcode_action" = relink; then |
| 6945 | # Fast installation is not supported |
| 6946 | enable_fast_install=no |
| 6947 | elif test "$shlibpath_overrides_runpath" = yes || |
| 6948 | test "$enable_shared" = no; then |
| 6949 | # Fast installation is not necessary |
| 6950 | enable_fast_install=needless |
| 6951 | fi |
| 6952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6953 | striplib= |
| 6954 | old_striplib= |
| 6955 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 6956 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 6957 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 6958 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 6959 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 6960 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6961 | echo "${ECHO_T}yes" >&6 |
| 6962 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6963 | # FIXME - insert some real tests, host_os isn't really good enough |
| 6964 | case $host_os in |
| 6965 | darwin*) |
| 6966 | if test -n "$STRIP" ; then |
| 6967 | striplib="$STRIP -x" |
| 6968 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6969 | echo "${ECHO_T}yes" >&6 |
| 6970 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6971 | echo "$as_me:$LINENO: result: no" >&5 |
| 6972 | echo "${ECHO_T}no" >&6 |
| 6973 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6974 | ;; |
| 6975 | *) |
| 6976 | echo "$as_me:$LINENO: result: no" >&5 |
| 6977 | echo "${ECHO_T}no" >&6 |
| 6978 | ;; |
| 6979 | esac |
| 6980 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6981 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6982 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6983 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6984 | library_names_spec= |
| 6985 | libname_spec='lib$name' |
| 6986 | soname_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6987 | shrext=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6988 | postinstall_cmds= |
| 6989 | postuninstall_cmds= |
| 6990 | finish_cmds= |
| 6991 | finish_eval= |
| 6992 | shlibpath_var= |
| 6993 | shlibpath_overrides_runpath=unknown |
| 6994 | version_type=none |
| 6995 | dynamic_linker="$host_os ld.so" |
| 6996 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6997 | if test "$GCC" = yes; then |
| 6998 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6999 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 7000 | # if the path contains ";" then we assume it to be the separator |
| 7001 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7002 | # assumed that no part of a normal pathname contains ";" but that should |
| 7003 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7004 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7005 | else |
| 7006 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7007 | fi |
| 7008 | else |
| 7009 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7010 | fi |
| 7011 | need_lib_prefix=unknown |
| 7012 | hardcode_into_libs=no |
| 7013 | |
| 7014 | # when you set need_version to no, make sure it does not cause -set_version |
| 7015 | # flags to be left without arguments |
| 7016 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7017 | |
| 7018 | case $host_os in |
| 7019 | aix3*) |
| 7020 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7021 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7022 | shlibpath_var=LIBPATH |
| 7023 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7024 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7025 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7026 | ;; |
| 7027 | |
| 7028 | aix4* | aix5*) |
| 7029 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7030 | need_lib_prefix=no |
| 7031 | need_version=no |
| 7032 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7033 | if test "$host_cpu" = ia64; then |
| 7034 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7035 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7036 | shlibpath_var=LD_LIBRARY_PATH |
| 7037 | else |
| 7038 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7039 | # for dependence libraries. The import file would start with |
| 7040 | # the line `#! .'. This would cause the generated library to |
| 7041 | # depend on `.', always an invalid library. This was fixed in |
| 7042 | # development snapshots of GCC prior to 3.0. |
| 7043 | case $host_os in |
| 7044 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7045 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7046 | echo ' yes ' |
| 7047 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 7048 | : |
| 7049 | else |
| 7050 | can_build_shared=no |
| 7051 | fi |
| 7052 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7053 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7054 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7055 | # soname into executable. Probably we can add versioning support to |
| 7056 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7057 | if test "$aix_use_runtimelinking" = yes; then |
| 7058 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7059 | # instead of lib<name>.a to let people know that these are not |
| 7060 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7062 | else |
| 7063 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7064 | # and later when we are not doing run time linking. |
| 7065 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7066 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7067 | fi |
| 7068 | shlibpath_var=LIBPATH |
| 7069 | fi |
| 7070 | ;; |
| 7071 | |
| 7072 | amigaos*) |
| 7073 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7074 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7075 | 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' |
| 7076 | ;; |
| 7077 | |
| 7078 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7079 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7080 | dynamic_linker="$host_os ld.so" |
| 7081 | shlibpath_var=LIBRARY_PATH |
| 7082 | ;; |
| 7083 | |
| 7084 | bsdi4*) |
| 7085 | version_type=linux |
| 7086 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7088 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7089 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7090 | shlibpath_var=LD_LIBRARY_PATH |
| 7091 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7092 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7093 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7094 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7095 | # libtool to hard-code these into programs |
| 7096 | ;; |
| 7097 | |
| 7098 | cygwin* | mingw* | pw32*) |
| 7099 | version_type=windows |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7100 | shrext=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7101 | need_version=no |
| 7102 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7103 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7104 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7105 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7106 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7107 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7108 | postinstall_cmds='base_file=`basename \${file}`~ |
| 7109 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7110 | dldir=$destdir/`dirname \$dlpath`~ |
| 7111 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7112 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 7113 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7114 | dlpath=$dir/\$dldll~ |
| 7115 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7116 | shlibpath_overrides_runpath=yes |
| 7117 | |
| 7118 | case $host_os in |
| 7119 | cygwin*) |
| 7120 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7121 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7122 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 7123 | ;; |
| 7124 | mingw*) |
| 7125 | # MinGW DLLs use traditional 'lib' prefix |
| 7126 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7127 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7128 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 7129 | # It is most probably a Windows format PATH printed by |
| 7130 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7131 | # path with ; separators, and with drive letters. We can handle the |
| 7132 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7133 | # especially as we might pass files found there to a mingw objdump, |
| 7134 | # which wouldn't understand a cygwinified path. Ahh. |
| 7135 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7136 | else |
| 7137 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7138 | fi |
| 7139 | ;; |
| 7140 | pw32*) |
| 7141 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7142 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 7143 | ;; |
| 7144 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7145 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7146 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7147 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7148 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7149 | ;; |
| 7150 | esac |
| 7151 | dynamic_linker='Win32 ld.exe' |
| 7152 | # FIXME: first we should search . and the directory the executable is in |
| 7153 | shlibpath_var=PATH |
| 7154 | ;; |
| 7155 | |
| 7156 | darwin* | rhapsody*) |
| 7157 | dynamic_linker="$host_os dyld" |
| 7158 | version_type=darwin |
| 7159 | need_lib_prefix=no |
| 7160 | need_version=no |
| 7161 | # FIXME: Relying on posixy $() will cause problems for |
| 7162 | # cross-compilation, but unfortunately the echo tests do not |
| 7163 | # yet detect zsh echo's removal of \ escapes. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7164 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 7165 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7166 | shlibpath_overrides_runpath=yes |
| 7167 | shlibpath_var=DYLD_LIBRARY_PATH |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7168 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 7169 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7170 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 7171 | 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"` |
| 7172 | fi |
| 7173 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7174 | ;; |
| 7175 | |
| 7176 | dgux*) |
| 7177 | version_type=linux |
| 7178 | need_lib_prefix=no |
| 7179 | need_version=no |
| 7180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7181 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7182 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7183 | ;; |
| 7184 | |
| 7185 | freebsd1*) |
| 7186 | dynamic_linker=no |
| 7187 | ;; |
| 7188 | |
| 7189 | freebsd*) |
| 7190 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7191 | version_type=freebsd-$objformat |
| 7192 | case $version_type in |
| 7193 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7195 | need_version=no |
| 7196 | need_lib_prefix=no |
| 7197 | ;; |
| 7198 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7199 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7200 | need_version=yes |
| 7201 | ;; |
| 7202 | esac |
| 7203 | shlibpath_var=LD_LIBRARY_PATH |
| 7204 | case $host_os in |
| 7205 | freebsd2*) |
| 7206 | shlibpath_overrides_runpath=yes |
| 7207 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7208 | freebsd3.01* | freebsdelf3.01*) |
| 7209 | shlibpath_overrides_runpath=yes |
| 7210 | hardcode_into_libs=yes |
| 7211 | ;; |
| 7212 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7213 | shlibpath_overrides_runpath=no |
| 7214 | hardcode_into_libs=yes |
| 7215 | ;; |
| 7216 | esac |
| 7217 | ;; |
| 7218 | |
| 7219 | gnu*) |
| 7220 | version_type=linux |
| 7221 | need_lib_prefix=no |
| 7222 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7224 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7225 | shlibpath_var=LD_LIBRARY_PATH |
| 7226 | hardcode_into_libs=yes |
| 7227 | ;; |
| 7228 | |
| 7229 | hpux9* | hpux10* | hpux11*) |
| 7230 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7231 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7232 | version_type=sunos |
| 7233 | need_lib_prefix=no |
| 7234 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7235 | case "$host_cpu" in |
| 7236 | ia64*) |
| 7237 | shrext='.so' |
| 7238 | hardcode_into_libs=yes |
| 7239 | dynamic_linker="$host_os dld.so" |
| 7240 | shlibpath_var=LD_LIBRARY_PATH |
| 7241 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7243 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7244 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7245 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7246 | else |
| 7247 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7248 | fi |
| 7249 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7250 | ;; |
| 7251 | hppa*64*) |
| 7252 | shrext='.sl' |
| 7253 | hardcode_into_libs=yes |
| 7254 | dynamic_linker="$host_os dld.sl" |
| 7255 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7256 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7258 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7259 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7260 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7261 | ;; |
| 7262 | *) |
| 7263 | shrext='.sl' |
| 7264 | dynamic_linker="$host_os dld.sl" |
| 7265 | shlibpath_var=SHLIB_PATH |
| 7266 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7268 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7269 | ;; |
| 7270 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7271 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7272 | postinstall_cmds='chmod 555 $lib' |
| 7273 | ;; |
| 7274 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7275 | irix5* | irix6* | nonstopux*) |
| 7276 | case $host_os in |
| 7277 | nonstopux*) version_type=nonstopux ;; |
| 7278 | *) |
| 7279 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7280 | version_type=linux |
| 7281 | else |
| 7282 | version_type=irix |
| 7283 | fi ;; |
| 7284 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7285 | need_lib_prefix=no |
| 7286 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7287 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7289 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7290 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7291 | libsuff= shlibsuff= |
| 7292 | ;; |
| 7293 | *) |
| 7294 | case $LD in # libtool.m4 will add one of these switches to LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7295 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7296 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7297 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7298 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7299 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7300 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7301 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7302 | esac |
| 7303 | ;; |
| 7304 | esac |
| 7305 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7306 | shlibpath_overrides_runpath=no |
| 7307 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7308 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7309 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7310 | ;; |
| 7311 | |
| 7312 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7313 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7314 | dynamic_linker=no |
| 7315 | ;; |
| 7316 | |
| 7317 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7318 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7319 | version_type=linux |
| 7320 | need_lib_prefix=no |
| 7321 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7323 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7324 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7325 | shlibpath_var=LD_LIBRARY_PATH |
| 7326 | shlibpath_overrides_runpath=no |
| 7327 | # This implies no fast_install, which is unacceptable. |
| 7328 | # Some rework will be needed to allow for fast_install |
| 7329 | # before this can be enabled. |
| 7330 | hardcode_into_libs=yes |
| 7331 | |
| 7332 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7333 | # powerpc, because MkLinux only supported shared libraries with the |
| 7334 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7335 | # most powerpc-linux boxes support dynamic linking these days and |
| 7336 | # people can always --disable-shared, the test was removed, and we |
| 7337 | # assume the GNU/Linux dynamic linker is in use. |
| 7338 | dynamic_linker='GNU/Linux ld.so' |
| 7339 | ;; |
| 7340 | |
| 7341 | netbsd*) |
| 7342 | version_type=sunos |
| 7343 | need_lib_prefix=no |
| 7344 | need_version=no |
| 7345 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7347 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7348 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7349 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 7351 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7352 | dynamic_linker='NetBSD ld.elf_so' |
| 7353 | fi |
| 7354 | shlibpath_var=LD_LIBRARY_PATH |
| 7355 | shlibpath_overrides_runpath=yes |
| 7356 | hardcode_into_libs=yes |
| 7357 | ;; |
| 7358 | |
| 7359 | newsos6) |
| 7360 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7362 | shlibpath_var=LD_LIBRARY_PATH |
| 7363 | shlibpath_overrides_runpath=yes |
| 7364 | ;; |
| 7365 | |
| 7366 | nto-qnx) |
| 7367 | version_type=linux |
| 7368 | need_lib_prefix=no |
| 7369 | need_version=no |
| 7370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7371 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7372 | shlibpath_var=LD_LIBRARY_PATH |
| 7373 | shlibpath_overrides_runpath=yes |
| 7374 | ;; |
| 7375 | |
| 7376 | openbsd*) |
| 7377 | version_type=sunos |
| 7378 | need_lib_prefix=no |
| 7379 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7381 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7382 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7383 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7384 | case $host_os in |
| 7385 | openbsd2.[89] | openbsd2.[89].*) |
| 7386 | shlibpath_overrides_runpath=no |
| 7387 | ;; |
| 7388 | *) |
| 7389 | shlibpath_overrides_runpath=yes |
| 7390 | ;; |
| 7391 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7392 | else |
| 7393 | shlibpath_overrides_runpath=yes |
| 7394 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7395 | ;; |
| 7396 | |
| 7397 | os2*) |
| 7398 | libname_spec='$name' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7399 | shrext=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7400 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7401 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7402 | dynamic_linker='OS/2 ld.exe' |
| 7403 | shlibpath_var=LIBPATH |
| 7404 | ;; |
| 7405 | |
| 7406 | osf3* | osf4* | osf5*) |
| 7407 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7408 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7409 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7410 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7412 | shlibpath_var=LD_LIBRARY_PATH |
| 7413 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7414 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7415 | ;; |
| 7416 | |
| 7417 | sco3.2v5*) |
| 7418 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7419 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7421 | shlibpath_var=LD_LIBRARY_PATH |
| 7422 | ;; |
| 7423 | |
| 7424 | solaris*) |
| 7425 | version_type=linux |
| 7426 | need_lib_prefix=no |
| 7427 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7429 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7430 | shlibpath_var=LD_LIBRARY_PATH |
| 7431 | shlibpath_overrides_runpath=yes |
| 7432 | hardcode_into_libs=yes |
| 7433 | # ldd complains unless libraries are executable |
| 7434 | postinstall_cmds='chmod +x $lib' |
| 7435 | ;; |
| 7436 | |
| 7437 | sunos4*) |
| 7438 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7440 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7441 | shlibpath_var=LD_LIBRARY_PATH |
| 7442 | shlibpath_overrides_runpath=yes |
| 7443 | if test "$with_gnu_ld" = yes; then |
| 7444 | need_lib_prefix=no |
| 7445 | fi |
| 7446 | need_version=yes |
| 7447 | ;; |
| 7448 | |
| 7449 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7450 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7452 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7453 | shlibpath_var=LD_LIBRARY_PATH |
| 7454 | case $host_vendor in |
| 7455 | sni) |
| 7456 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7457 | need_lib_prefix=no |
| 7458 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7459 | runpath_var=LD_RUN_PATH |
| 7460 | ;; |
| 7461 | siemens) |
| 7462 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7463 | ;; |
| 7464 | motorola) |
| 7465 | need_lib_prefix=no |
| 7466 | need_version=no |
| 7467 | shlibpath_overrides_runpath=no |
| 7468 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7469 | ;; |
| 7470 | esac |
| 7471 | ;; |
| 7472 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7473 | sysv4*MP*) |
| 7474 | if test -d /usr/nec ;then |
| 7475 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7476 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7477 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7478 | shlibpath_var=LD_LIBRARY_PATH |
| 7479 | fi |
| 7480 | ;; |
| 7481 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7482 | uts4*) |
| 7483 | version_type=linux |
| 7484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7485 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7486 | shlibpath_var=LD_LIBRARY_PATH |
| 7487 | ;; |
| 7488 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7489 | *) |
| 7490 | dynamic_linker=no |
| 7491 | ;; |
| 7492 | esac |
| 7493 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 7494 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7495 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7496 | |
| 7497 | if test "x$enable_dlopen" != xyes; then |
| 7498 | enable_dlopen=unknown |
| 7499 | enable_dlopen_self=unknown |
| 7500 | enable_dlopen_self_static=unknown |
| 7501 | else |
| 7502 | lt_cv_dlopen=no |
| 7503 | lt_cv_dlopen_libs= |
| 7504 | |
| 7505 | case $host_os in |
| 7506 | beos*) |
| 7507 | lt_cv_dlopen="load_add_on" |
| 7508 | lt_cv_dlopen_libs= |
| 7509 | lt_cv_dlopen_self=yes |
| 7510 | ;; |
| 7511 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7512 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7513 | lt_cv_dlopen="LoadLibrary" |
| 7514 | lt_cv_dlopen_libs= |
| 7515 | ;; |
| 7516 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7517 | cygwin*) |
| 7518 | lt_cv_dlopen="dlopen" |
| 7519 | lt_cv_dlopen_libs= |
| 7520 | ;; |
| 7521 | |
| 7522 | darwin*) |
| 7523 | # if libdl is installed we need to link against it |
| 7524 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7525 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7526 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7528 | else |
| 7529 | ac_check_lib_save_LIBS=$LIBS |
| 7530 | LIBS="-ldl $LIBS" |
| 7531 | cat >conftest.$ac_ext <<_ACEOF |
| 7532 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7533 | /* confdefs.h. */ |
| 7534 | _ACEOF |
| 7535 | cat confdefs.h >>conftest.$ac_ext |
| 7536 | cat >>conftest.$ac_ext <<_ACEOF |
| 7537 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7538 | |
| 7539 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7540 | #ifdef __cplusplus |
| 7541 | extern "C" |
| 7542 | #endif |
| 7543 | /* We use char because int might match the return type of a gcc2 |
| 7544 | builtin and then its argument prototype would still apply. */ |
| 7545 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7546 | int |
| 7547 | main () |
| 7548 | { |
| 7549 | dlopen (); |
| 7550 | ; |
| 7551 | return 0; |
| 7552 | } |
| 7553 | _ACEOF |
| 7554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7556 | (eval $ac_link) 2>&5 |
| 7557 | ac_status=$? |
| 7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7559 | (exit $ac_status); } && |
| 7560 | { ac_try='test -s conftest$ac_exeext' |
| 7561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7562 | (eval $ac_try) 2>&5 |
| 7563 | ac_status=$? |
| 7564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7565 | (exit $ac_status); }; }; then |
| 7566 | ac_cv_lib_dl_dlopen=yes |
| 7567 | else |
| 7568 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7570 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7571 | ac_cv_lib_dl_dlopen=no |
| 7572 | fi |
| 7573 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7574 | LIBS=$ac_check_lib_save_LIBS |
| 7575 | fi |
| 7576 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7577 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7578 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7579 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 7580 | else |
| 7581 | |
| 7582 | lt_cv_dlopen="dyld" |
| 7583 | lt_cv_dlopen_libs= |
| 7584 | lt_cv_dlopen_self=yes |
| 7585 | |
| 7586 | fi |
| 7587 | |
| 7588 | ;; |
| 7589 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7590 | *) |
| 7591 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 7592 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 7593 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 7594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7595 | else |
| 7596 | cat >conftest.$ac_ext <<_ACEOF |
| 7597 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7598 | /* confdefs.h. */ |
| 7599 | _ACEOF |
| 7600 | cat confdefs.h >>conftest.$ac_ext |
| 7601 | cat >>conftest.$ac_ext <<_ACEOF |
| 7602 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7603 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7604 | which can conflict with char shl_load (); below. |
| 7605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7606 | <limits.h> exists even on freestanding compilers. */ |
| 7607 | #ifdef __STDC__ |
| 7608 | # include <limits.h> |
| 7609 | #else |
| 7610 | # include <assert.h> |
| 7611 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7612 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7613 | #ifdef __cplusplus |
| 7614 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7615 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7616 | #endif |
| 7617 | /* We use char because int might match the return type of a gcc2 |
| 7618 | builtin and then its argument prototype would still apply. */ |
| 7619 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7620 | /* The GNU C library defines this for functions which it implements |
| 7621 | to always fail with ENOSYS. Some functions are actually named |
| 7622 | something starting with __ and the normal name is an alias. */ |
| 7623 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 7624 | choke me |
| 7625 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7626 | char (*f) () = shl_load; |
| 7627 | #endif |
| 7628 | #ifdef __cplusplus |
| 7629 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7630 | #endif |
| 7631 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7632 | int |
| 7633 | main () |
| 7634 | { |
| 7635 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7636 | ; |
| 7637 | return 0; |
| 7638 | } |
| 7639 | _ACEOF |
| 7640 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7642 | (eval $ac_link) 2>&5 |
| 7643 | ac_status=$? |
| 7644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7645 | (exit $ac_status); } && |
| 7646 | { ac_try='test -s conftest$ac_exeext' |
| 7647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7648 | (eval $ac_try) 2>&5 |
| 7649 | ac_status=$? |
| 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7651 | (exit $ac_status); }; }; then |
| 7652 | ac_cv_func_shl_load=yes |
| 7653 | else |
| 7654 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7656 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7657 | ac_cv_func_shl_load=no |
| 7658 | fi |
| 7659 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7660 | fi |
| 7661 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 7662 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 7663 | if test $ac_cv_func_shl_load = yes; then |
| 7664 | lt_cv_dlopen="shl_load" |
| 7665 | else |
| 7666 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 7667 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 7668 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 7669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7670 | else |
| 7671 | ac_check_lib_save_LIBS=$LIBS |
| 7672 | LIBS="-ldld $LIBS" |
| 7673 | cat >conftest.$ac_ext <<_ACEOF |
| 7674 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7675 | /* confdefs.h. */ |
| 7676 | _ACEOF |
| 7677 | cat confdefs.h >>conftest.$ac_ext |
| 7678 | cat >>conftest.$ac_ext <<_ACEOF |
| 7679 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7680 | |
| 7681 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7682 | #ifdef __cplusplus |
| 7683 | extern "C" |
| 7684 | #endif |
| 7685 | /* We use char because int might match the return type of a gcc2 |
| 7686 | builtin and then its argument prototype would still apply. */ |
| 7687 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7688 | int |
| 7689 | main () |
| 7690 | { |
| 7691 | shl_load (); |
| 7692 | ; |
| 7693 | return 0; |
| 7694 | } |
| 7695 | _ACEOF |
| 7696 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7698 | (eval $ac_link) 2>&5 |
| 7699 | ac_status=$? |
| 7700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7701 | (exit $ac_status); } && |
| 7702 | { ac_try='test -s conftest$ac_exeext' |
| 7703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7704 | (eval $ac_try) 2>&5 |
| 7705 | ac_status=$? |
| 7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7707 | (exit $ac_status); }; }; then |
| 7708 | ac_cv_lib_dld_shl_load=yes |
| 7709 | else |
| 7710 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7712 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7713 | ac_cv_lib_dld_shl_load=no |
| 7714 | fi |
| 7715 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7716 | LIBS=$ac_check_lib_save_LIBS |
| 7717 | fi |
| 7718 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7719 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 7720 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 7721 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 7722 | else |
| 7723 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 7724 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 7725 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 7726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7727 | else |
| 7728 | cat >conftest.$ac_ext <<_ACEOF |
| 7729 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7730 | /* confdefs.h. */ |
| 7731 | _ACEOF |
| 7732 | cat confdefs.h >>conftest.$ac_ext |
| 7733 | cat >>conftest.$ac_ext <<_ACEOF |
| 7734 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7735 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7736 | which can conflict with char dlopen (); below. |
| 7737 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7738 | <limits.h> exists even on freestanding compilers. */ |
| 7739 | #ifdef __STDC__ |
| 7740 | # include <limits.h> |
| 7741 | #else |
| 7742 | # include <assert.h> |
| 7743 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7744 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7745 | #ifdef __cplusplus |
| 7746 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7747 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7748 | #endif |
| 7749 | /* We use char because int might match the return type of a gcc2 |
| 7750 | builtin and then its argument prototype would still apply. */ |
| 7751 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7752 | /* The GNU C library defines this for functions which it implements |
| 7753 | to always fail with ENOSYS. Some functions are actually named |
| 7754 | something starting with __ and the normal name is an alias. */ |
| 7755 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 7756 | choke me |
| 7757 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7758 | char (*f) () = dlopen; |
| 7759 | #endif |
| 7760 | #ifdef __cplusplus |
| 7761 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7762 | #endif |
| 7763 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7764 | int |
| 7765 | main () |
| 7766 | { |
| 7767 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7768 | ; |
| 7769 | return 0; |
| 7770 | } |
| 7771 | _ACEOF |
| 7772 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7774 | (eval $ac_link) 2>&5 |
| 7775 | ac_status=$? |
| 7776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7777 | (exit $ac_status); } && |
| 7778 | { ac_try='test -s conftest$ac_exeext' |
| 7779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7780 | (eval $ac_try) 2>&5 |
| 7781 | ac_status=$? |
| 7782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7783 | (exit $ac_status); }; }; then |
| 7784 | ac_cv_func_dlopen=yes |
| 7785 | else |
| 7786 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7788 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7789 | ac_cv_func_dlopen=no |
| 7790 | fi |
| 7791 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7792 | fi |
| 7793 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 7794 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 7795 | if test $ac_cv_func_dlopen = yes; then |
| 7796 | lt_cv_dlopen="dlopen" |
| 7797 | else |
| 7798 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7799 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7800 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7802 | else |
| 7803 | ac_check_lib_save_LIBS=$LIBS |
| 7804 | LIBS="-ldl $LIBS" |
| 7805 | cat >conftest.$ac_ext <<_ACEOF |
| 7806 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7807 | /* confdefs.h. */ |
| 7808 | _ACEOF |
| 7809 | cat confdefs.h >>conftest.$ac_ext |
| 7810 | cat >>conftest.$ac_ext <<_ACEOF |
| 7811 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7812 | |
| 7813 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7814 | #ifdef __cplusplus |
| 7815 | extern "C" |
| 7816 | #endif |
| 7817 | /* We use char because int might match the return type of a gcc2 |
| 7818 | builtin and then its argument prototype would still apply. */ |
| 7819 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7820 | int |
| 7821 | main () |
| 7822 | { |
| 7823 | dlopen (); |
| 7824 | ; |
| 7825 | return 0; |
| 7826 | } |
| 7827 | _ACEOF |
| 7828 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7830 | (eval $ac_link) 2>&5 |
| 7831 | ac_status=$? |
| 7832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7833 | (exit $ac_status); } && |
| 7834 | { ac_try='test -s conftest$ac_exeext' |
| 7835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7836 | (eval $ac_try) 2>&5 |
| 7837 | ac_status=$? |
| 7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7839 | (exit $ac_status); }; }; then |
| 7840 | ac_cv_lib_dl_dlopen=yes |
| 7841 | else |
| 7842 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7844 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7845 | ac_cv_lib_dl_dlopen=no |
| 7846 | fi |
| 7847 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7848 | LIBS=$ac_check_lib_save_LIBS |
| 7849 | fi |
| 7850 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7851 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7852 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7853 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 7854 | else |
| 7855 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 7856 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 7857 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 7858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7859 | else |
| 7860 | ac_check_lib_save_LIBS=$LIBS |
| 7861 | LIBS="-lsvld $LIBS" |
| 7862 | cat >conftest.$ac_ext <<_ACEOF |
| 7863 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7864 | /* confdefs.h. */ |
| 7865 | _ACEOF |
| 7866 | cat confdefs.h >>conftest.$ac_ext |
| 7867 | cat >>conftest.$ac_ext <<_ACEOF |
| 7868 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7869 | |
| 7870 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7871 | #ifdef __cplusplus |
| 7872 | extern "C" |
| 7873 | #endif |
| 7874 | /* We use char because int might match the return type of a gcc2 |
| 7875 | builtin and then its argument prototype would still apply. */ |
| 7876 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7877 | int |
| 7878 | main () |
| 7879 | { |
| 7880 | dlopen (); |
| 7881 | ; |
| 7882 | return 0; |
| 7883 | } |
| 7884 | _ACEOF |
| 7885 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7887 | (eval $ac_link) 2>&5 |
| 7888 | ac_status=$? |
| 7889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7890 | (exit $ac_status); } && |
| 7891 | { ac_try='test -s conftest$ac_exeext' |
| 7892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7893 | (eval $ac_try) 2>&5 |
| 7894 | ac_status=$? |
| 7895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7896 | (exit $ac_status); }; }; then |
| 7897 | ac_cv_lib_svld_dlopen=yes |
| 7898 | else |
| 7899 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7901 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7902 | ac_cv_lib_svld_dlopen=no |
| 7903 | fi |
| 7904 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7905 | LIBS=$ac_check_lib_save_LIBS |
| 7906 | fi |
| 7907 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 7908 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 7909 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 7910 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 7911 | else |
| 7912 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 7913 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 7914 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 7915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7916 | else |
| 7917 | ac_check_lib_save_LIBS=$LIBS |
| 7918 | LIBS="-ldld $LIBS" |
| 7919 | cat >conftest.$ac_ext <<_ACEOF |
| 7920 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7921 | /* confdefs.h. */ |
| 7922 | _ACEOF |
| 7923 | cat confdefs.h >>conftest.$ac_ext |
| 7924 | cat >>conftest.$ac_ext <<_ACEOF |
| 7925 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7926 | |
| 7927 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7928 | #ifdef __cplusplus |
| 7929 | extern "C" |
| 7930 | #endif |
| 7931 | /* We use char because int might match the return type of a gcc2 |
| 7932 | builtin and then its argument prototype would still apply. */ |
| 7933 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7934 | int |
| 7935 | main () |
| 7936 | { |
| 7937 | dld_link (); |
| 7938 | ; |
| 7939 | return 0; |
| 7940 | } |
| 7941 | _ACEOF |
| 7942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7944 | (eval $ac_link) 2>&5 |
| 7945 | ac_status=$? |
| 7946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7947 | (exit $ac_status); } && |
| 7948 | { ac_try='test -s conftest$ac_exeext' |
| 7949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7950 | (eval $ac_try) 2>&5 |
| 7951 | ac_status=$? |
| 7952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7953 | (exit $ac_status); }; }; then |
| 7954 | ac_cv_lib_dld_dld_link=yes |
| 7955 | else |
| 7956 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 7957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7958 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7959 | ac_cv_lib_dld_dld_link=no |
| 7960 | fi |
| 7961 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7962 | LIBS=$ac_check_lib_save_LIBS |
| 7963 | fi |
| 7964 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 7965 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 7966 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 7967 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 7968 | fi |
| 7969 | |
| 7970 | |
| 7971 | fi |
| 7972 | |
| 7973 | |
| 7974 | fi |
| 7975 | |
| 7976 | |
| 7977 | fi |
| 7978 | |
| 7979 | |
| 7980 | fi |
| 7981 | |
| 7982 | |
| 7983 | fi |
| 7984 | |
| 7985 | ;; |
| 7986 | esac |
| 7987 | |
| 7988 | if test "x$lt_cv_dlopen" != xno; then |
| 7989 | enable_dlopen=yes |
| 7990 | else |
| 7991 | enable_dlopen=no |
| 7992 | fi |
| 7993 | |
| 7994 | case $lt_cv_dlopen in |
| 7995 | dlopen) |
| 7996 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7997 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7998 | |
| 7999 | save_LDFLAGS="$LDFLAGS" |
| 8000 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8001 | |
| 8002 | save_LIBS="$LIBS" |
| 8003 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8004 | |
| 8005 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 8006 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8007 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8009 | else |
| 8010 | if test "$cross_compiling" = yes; then : |
| 8011 | lt_cv_dlopen_self=cross |
| 8012 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8013 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8014 | lt_status=$lt_dlunknown |
| 8015 | cat > conftest.$ac_ext <<EOF |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 8016 | #line 8016 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8017 | #include "confdefs.h" |
| 8018 | |
| 8019 | #if HAVE_DLFCN_H |
| 8020 | #include <dlfcn.h> |
| 8021 | #endif |
| 8022 | |
| 8023 | #include <stdio.h> |
| 8024 | |
| 8025 | #ifdef RTLD_GLOBAL |
| 8026 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8027 | #else |
| 8028 | # ifdef DL_GLOBAL |
| 8029 | # define LT_DLGLOBAL DL_GLOBAL |
| 8030 | # else |
| 8031 | # define LT_DLGLOBAL 0 |
| 8032 | # endif |
| 8033 | #endif |
| 8034 | |
| 8035 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8036 | find out it does not work in some platform. */ |
| 8037 | #ifndef LT_DLLAZY_OR_NOW |
| 8038 | # ifdef RTLD_LAZY |
| 8039 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8040 | # else |
| 8041 | # ifdef DL_LAZY |
| 8042 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8043 | # else |
| 8044 | # ifdef RTLD_NOW |
| 8045 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8046 | # else |
| 8047 | # ifdef DL_NOW |
| 8048 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8049 | # else |
| 8050 | # define LT_DLLAZY_OR_NOW 0 |
| 8051 | # endif |
| 8052 | # endif |
| 8053 | # endif |
| 8054 | # endif |
| 8055 | #endif |
| 8056 | |
| 8057 | #ifdef __cplusplus |
| 8058 | extern "C" void exit (int); |
| 8059 | #endif |
| 8060 | |
| 8061 | void fnord() { int i=42;} |
| 8062 | int main () |
| 8063 | { |
| 8064 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8065 | int status = $lt_dlunknown; |
| 8066 | |
| 8067 | if (self) |
| 8068 | { |
| 8069 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8070 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8071 | /* dlclose (self); */ |
| 8072 | } |
| 8073 | |
| 8074 | exit (status); |
| 8075 | } |
| 8076 | EOF |
| 8077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8078 | (eval $ac_link) 2>&5 |
| 8079 | ac_status=$? |
| 8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8081 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8082 | (./conftest; exit; ) 2>/dev/null |
| 8083 | lt_status=$? |
| 8084 | case x$lt_status in |
| 8085 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8086 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8087 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8088 | esac |
| 8089 | else : |
| 8090 | # compilation failed |
| 8091 | lt_cv_dlopen_self=no |
| 8092 | fi |
| 8093 | fi |
| 8094 | rm -fr conftest* |
| 8095 | |
| 8096 | |
| 8097 | fi |
| 8098 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 8099 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8100 | |
| 8101 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8102 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 8103 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8104 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8105 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8107 | else |
| 8108 | if test "$cross_compiling" = yes; then : |
| 8109 | lt_cv_dlopen_self_static=cross |
| 8110 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8111 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8112 | lt_status=$lt_dlunknown |
| 8113 | cat > conftest.$ac_ext <<EOF |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 8114 | #line 8114 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8115 | #include "confdefs.h" |
| 8116 | |
| 8117 | #if HAVE_DLFCN_H |
| 8118 | #include <dlfcn.h> |
| 8119 | #endif |
| 8120 | |
| 8121 | #include <stdio.h> |
| 8122 | |
| 8123 | #ifdef RTLD_GLOBAL |
| 8124 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8125 | #else |
| 8126 | # ifdef DL_GLOBAL |
| 8127 | # define LT_DLGLOBAL DL_GLOBAL |
| 8128 | # else |
| 8129 | # define LT_DLGLOBAL 0 |
| 8130 | # endif |
| 8131 | #endif |
| 8132 | |
| 8133 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8134 | find out it does not work in some platform. */ |
| 8135 | #ifndef LT_DLLAZY_OR_NOW |
| 8136 | # ifdef RTLD_LAZY |
| 8137 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8138 | # else |
| 8139 | # ifdef DL_LAZY |
| 8140 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8141 | # else |
| 8142 | # ifdef RTLD_NOW |
| 8143 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8144 | # else |
| 8145 | # ifdef DL_NOW |
| 8146 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8147 | # else |
| 8148 | # define LT_DLLAZY_OR_NOW 0 |
| 8149 | # endif |
| 8150 | # endif |
| 8151 | # endif |
| 8152 | # endif |
| 8153 | #endif |
| 8154 | |
| 8155 | #ifdef __cplusplus |
| 8156 | extern "C" void exit (int); |
| 8157 | #endif |
| 8158 | |
| 8159 | void fnord() { int i=42;} |
| 8160 | int main () |
| 8161 | { |
| 8162 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8163 | int status = $lt_dlunknown; |
| 8164 | |
| 8165 | if (self) |
| 8166 | { |
| 8167 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8168 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8169 | /* dlclose (self); */ |
| 8170 | } |
| 8171 | |
| 8172 | exit (status); |
| 8173 | } |
| 8174 | EOF |
| 8175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8176 | (eval $ac_link) 2>&5 |
| 8177 | ac_status=$? |
| 8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8179 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8180 | (./conftest; exit; ) 2>/dev/null |
| 8181 | lt_status=$? |
| 8182 | case x$lt_status in |
| 8183 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8184 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8185 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8186 | esac |
| 8187 | else : |
| 8188 | # compilation failed |
| 8189 | lt_cv_dlopen_self_static=no |
| 8190 | fi |
| 8191 | fi |
| 8192 | rm -fr conftest* |
| 8193 | |
| 8194 | |
| 8195 | fi |
| 8196 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 8197 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 8198 | fi |
| 8199 | |
| 8200 | CPPFLAGS="$save_CPPFLAGS" |
| 8201 | LDFLAGS="$save_LDFLAGS" |
| 8202 | LIBS="$save_LIBS" |
| 8203 | ;; |
| 8204 | esac |
| 8205 | |
| 8206 | case $lt_cv_dlopen_self in |
| 8207 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 8208 | *) enable_dlopen_self=unknown ;; |
| 8209 | esac |
| 8210 | |
| 8211 | case $lt_cv_dlopen_self_static in |
| 8212 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 8213 | *) enable_dlopen_self_static=unknown ;; |
| 8214 | esac |
| 8215 | fi |
| 8216 | |
| 8217 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8218 | # Report which librarie types wil actually be built |
| 8219 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8220 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8221 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8222 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8223 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8224 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 8225 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 8226 | test "$can_build_shared" = "no" && enable_shared=no |
| 8227 | |
| 8228 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 8229 | # are all built from PIC. |
| 8230 | case "$host_os" in |
| 8231 | aix3*) |
| 8232 | test "$enable_shared" = yes && enable_static=no |
| 8233 | if test -n "$RANLIB"; then |
| 8234 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 8235 | postinstall_cmds='$RANLIB $lib' |
| 8236 | fi |
| 8237 | ;; |
| 8238 | |
| 8239 | aix4*) |
| 8240 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 8241 | test "$enable_shared" = yes && enable_static=no |
| 8242 | fi |
| 8243 | ;; |
| 8244 | darwin* | rhapsody*) |
| 8245 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 8246 | archive_cmds_need_lc=no |
| 8247 | case "$host_os" in |
| 8248 | rhapsody* | darwin1.[012]) |
| 8249 | allow_undefined_flag='-undefined suppress' |
| 8250 | ;; |
| 8251 | *) # Darwin 1.3 on |
| 8252 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8253 | ;; |
| 8254 | esac |
| 8255 | # FIXME: Relying on posixy $() will cause problems for |
| 8256 | # cross-compilation, but unfortunately the echo tests do not |
| 8257 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 8258 | # `"' quotes if we put them in here... so don't! |
| 8259 | output_verbose_link_cmd='echo' |
| 8260 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 8261 | module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 8262 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 8263 | 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}' |
| 8264 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8265 | hardcode_direct=no |
| 8266 | hardcode_automatic=yes |
| 8267 | hardcode_shlibpath_var=unsupported |
| 8268 | whole_archive_flag_spec='-all_load $convenience' |
| 8269 | link_all_deplibs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8270 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8271 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8272 | esac |
| 8273 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 8274 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8275 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8276 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 8277 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 8278 | # Make sure either enable_shared or enable_static is yes. |
| 8279 | test "$enable_shared" = yes || enable_static=yes |
| 8280 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 8281 | echo "${ECHO_T}$enable_static" >&6 |
| 8282 | |
| 8283 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8284 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 8285 | # with your package, and you will get complaints that there are |
| 8286 | # no rules to generate ltmain.sh. |
| 8287 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8288 | # See if we are running on zsh, and set the options which allow our commands through |
| 8289 | # without removal of \ escapes. |
| 8290 | if test -n "${ZSH_VERSION+set}" ; then |
| 8291 | setopt NO_GLOB_SUBST |
| 8292 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8293 | # Now quote all the things that may contain metacharacters while being |
| 8294 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 8295 | # variables and quote the copies for generation of the libtool script. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8296 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 8297 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 8298 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 8299 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 8300 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 8301 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8302 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8303 | old_postinstall_cmds old_postuninstall_cmds \ |
| 8304 | compiler \ |
| 8305 | CC \ |
| 8306 | LD \ |
| 8307 | lt_prog_compiler_wl \ |
| 8308 | lt_prog_compiler_pic \ |
| 8309 | lt_prog_compiler_static \ |
| 8310 | lt_prog_compiler_no_builtin_flag \ |
| 8311 | export_dynamic_flag_spec \ |
| 8312 | thread_safe_flag_spec \ |
| 8313 | whole_archive_flag_spec \ |
| 8314 | enable_shared_with_static_runtimes \ |
| 8315 | old_archive_cmds \ |
| 8316 | old_archive_from_new_cmds \ |
| 8317 | predep_objects \ |
| 8318 | postdep_objects \ |
| 8319 | predeps \ |
| 8320 | postdeps \ |
| 8321 | compiler_lib_search_path \ |
| 8322 | archive_cmds \ |
| 8323 | archive_expsym_cmds \ |
| 8324 | postinstall_cmds \ |
| 8325 | postuninstall_cmds \ |
| 8326 | old_archive_from_expsyms_cmds \ |
| 8327 | allow_undefined_flag \ |
| 8328 | no_undefined_flag \ |
| 8329 | export_symbols_cmds \ |
| 8330 | hardcode_libdir_flag_spec \ |
| 8331 | hardcode_libdir_flag_spec_ld \ |
| 8332 | hardcode_libdir_separator \ |
| 8333 | hardcode_automatic \ |
| 8334 | module_cmds \ |
| 8335 | module_expsym_cmds \ |
| 8336 | lt_cv_prog_compiler_c_o \ |
| 8337 | exclude_expsyms \ |
| 8338 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8339 | |
| 8340 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8341 | old_archive_cmds | \ |
| 8342 | old_archive_from_new_cmds | \ |
| 8343 | archive_cmds | \ |
| 8344 | archive_expsym_cmds | \ |
| 8345 | module_cmds | \ |
| 8346 | module_expsym_cmds | \ |
| 8347 | old_archive_from_expsyms_cmds | \ |
| 8348 | export_symbols_cmds | \ |
| 8349 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8350 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8351 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 8352 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8353 | # Double-quote double-evaled strings. |
| 8354 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 8355 | ;; |
| 8356 | *) |
| 8357 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 8358 | ;; |
| 8359 | esac |
| 8360 | done |
| 8361 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8362 | case $lt_echo in |
| 8363 | *'\$0 --fallback-echo"') |
| 8364 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 8365 | ;; |
| 8366 | esac |
| 8367 | |
| 8368 | cfgfile="${ofile}T" |
| 8369 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 8370 | $rm -f "$cfgfile" |
| 8371 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 8372 | echo "$as_me: creating $ofile" >&6;} |
| 8373 | |
| 8374 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8375 | #! $SHELL |
| 8376 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8377 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8378 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 8379 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 8380 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8381 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 8382 | # Free Software Foundation, Inc. |
| 8383 | # |
| 8384 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8385 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 8386 | # |
| 8387 | # This program is free software; you can redistribute it and/or modify |
| 8388 | # it under the terms of the GNU General Public License as published by |
| 8389 | # the Free Software Foundation; either version 2 of the License, or |
| 8390 | # (at your option) any later version. |
| 8391 | # |
| 8392 | # This program is distributed in the hope that it will be useful, but |
| 8393 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 8394 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 8395 | # General Public License for more details. |
| 8396 | # |
| 8397 | # You should have received a copy of the GNU General Public License |
| 8398 | # along with this program; if not, write to the Free Software |
| 8399 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 8400 | # |
| 8401 | # As a special exception to the GNU General Public License, if you |
| 8402 | # distribute this file as part of a program that contains a |
| 8403 | # configuration script generated by Autoconf, you may include it under |
| 8404 | # the same distribution terms that you use for the rest of that program. |
| 8405 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8406 | # A sed program that does not truncate output. |
| 8407 | SED=$lt_SED |
| 8408 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8409 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8410 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8411 | |
| 8412 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 8413 | # if CDPATH is set. |
| 8414 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 8415 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8416 | # The names of the tagged configurations supported by this script. |
| 8417 | available_tags= |
| 8418 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8419 | # ### BEGIN LIBTOOL CONFIG |
| 8420 | |
| 8421 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 8422 | |
| 8423 | # Shell to use when invoking shell scripts. |
| 8424 | SHELL=$lt_SHELL |
| 8425 | |
| 8426 | # Whether or not to build shared libraries. |
| 8427 | build_libtool_libs=$enable_shared |
| 8428 | |
| 8429 | # Whether or not to build static libraries. |
| 8430 | build_old_libs=$enable_static |
| 8431 | |
| 8432 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8433 | build_libtool_need_lc=$archive_cmds_need_lc |
| 8434 | |
| 8435 | # Whether or not to disallow shared libs when runtime libs are static |
| 8436 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8437 | |
| 8438 | # Whether or not to optimize for fast installation. |
| 8439 | fast_install=$enable_fast_install |
| 8440 | |
| 8441 | # The host system. |
| 8442 | host_alias=$host_alias |
| 8443 | host=$host |
| 8444 | |
| 8445 | # An echo program that does not interpret backslashes. |
| 8446 | echo=$lt_echo |
| 8447 | |
| 8448 | # The archiver. |
| 8449 | AR=$lt_AR |
| 8450 | AR_FLAGS=$lt_AR_FLAGS |
| 8451 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8452 | # A C compiler. |
| 8453 | LTCC=$lt_LTCC |
| 8454 | |
| 8455 | # A language-specific compiler. |
| 8456 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8457 | |
| 8458 | # Is the compiler the GNU C compiler? |
| 8459 | with_gcc=$GCC |
| 8460 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8461 | # An ERE matcher. |
| 8462 | EGREP=$lt_EGREP |
| 8463 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8464 | # The linker used to build libraries. |
| 8465 | LD=$lt_LD |
| 8466 | |
| 8467 | # Whether we need hard or soft links. |
| 8468 | LN_S=$lt_LN_S |
| 8469 | |
| 8470 | # A BSD-compatible nm program. |
| 8471 | NM=$lt_NM |
| 8472 | |
| 8473 | # A symbol stripping program |
| 8474 | STRIP=$STRIP |
| 8475 | |
| 8476 | # Used to examine libraries when file_magic_cmd begins "file" |
| 8477 | MAGIC_CMD=$MAGIC_CMD |
| 8478 | |
| 8479 | # Used on cygwin: DLL creation program. |
| 8480 | DLLTOOL="$DLLTOOL" |
| 8481 | |
| 8482 | # Used on cygwin: object dumper. |
| 8483 | OBJDUMP="$OBJDUMP" |
| 8484 | |
| 8485 | # Used on cygwin: assembler. |
| 8486 | AS="$AS" |
| 8487 | |
| 8488 | # The name of the directory that contains temporary libtool files. |
| 8489 | objdir=$objdir |
| 8490 | |
| 8491 | # How to create reloadable object files. |
| 8492 | reload_flag=$lt_reload_flag |
| 8493 | reload_cmds=$lt_reload_cmds |
| 8494 | |
| 8495 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8496 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8497 | |
| 8498 | # Object file suffix (normally "o"). |
| 8499 | objext="$ac_objext" |
| 8500 | |
| 8501 | # Old archive suffix (normally "a"). |
| 8502 | libext="$libext" |
| 8503 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8504 | # Shared library suffix (normally ".so"). |
| 8505 | shrext='$shrext' |
| 8506 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8507 | # Executable file suffix (normally ""). |
| 8508 | exeext="$exeext" |
| 8509 | |
| 8510 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8511 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8512 | pic_mode=$pic_mode |
| 8513 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8514 | # What is the maximum length of a command? |
| 8515 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8516 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8517 | # Does compiler simultaneously support -c and -o options? |
| 8518 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8519 | |
| 8520 | # Must we lock files when doing compilation ? |
| 8521 | need_locks=$lt_need_locks |
| 8522 | |
| 8523 | # Do we need the lib prefix for modules? |
| 8524 | need_lib_prefix=$need_lib_prefix |
| 8525 | |
| 8526 | # Do we need a version for libraries? |
| 8527 | need_version=$need_version |
| 8528 | |
| 8529 | # Whether dlopen is supported. |
| 8530 | dlopen_support=$enable_dlopen |
| 8531 | |
| 8532 | # Whether dlopen of programs is supported. |
| 8533 | dlopen_self=$enable_dlopen_self |
| 8534 | |
| 8535 | # Whether dlopen of statically linked programs is supported. |
| 8536 | dlopen_self_static=$enable_dlopen_self_static |
| 8537 | |
| 8538 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8539 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8540 | |
| 8541 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8542 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8543 | |
| 8544 | # Compiler flag to allow reflexive dlopens. |
| 8545 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 8546 | |
| 8547 | # Compiler flag to generate shared objects directly from archives. |
| 8548 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 8549 | |
| 8550 | # Compiler flag to generate thread-safe objects. |
| 8551 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 8552 | |
| 8553 | # Library versioning type. |
| 8554 | version_type=$version_type |
| 8555 | |
| 8556 | # Format of library name prefix. |
| 8557 | libname_spec=$lt_libname_spec |
| 8558 | |
| 8559 | # List of archive names. First name is the real one, the rest are links. |
| 8560 | # The last name is the one that the linker finds with -lNAME. |
| 8561 | library_names_spec=$lt_library_names_spec |
| 8562 | |
| 8563 | # The coded name of the library, if different from the real name. |
| 8564 | soname_spec=$lt_soname_spec |
| 8565 | |
| 8566 | # Commands used to build and install an old-style archive. |
| 8567 | RANLIB=$lt_RANLIB |
| 8568 | old_archive_cmds=$lt_old_archive_cmds |
| 8569 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 8570 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 8571 | |
| 8572 | # Create an old-style archive from a shared archive. |
| 8573 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 8574 | |
| 8575 | # Create a temporary old-style archive to link instead of a shared archive. |
| 8576 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 8577 | |
| 8578 | # Commands used to build and install a shared archive. |
| 8579 | archive_cmds=$lt_archive_cmds |
| 8580 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 8581 | postinstall_cmds=$lt_postinstall_cmds |
| 8582 | postuninstall_cmds=$lt_postuninstall_cmds |
| 8583 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8584 | # Commands used to build a loadable module (assumed same as above if empty) |
| 8585 | module_cmds=$lt_module_cmds |
| 8586 | module_expsym_cmds=$lt_module_expsym_cmds |
| 8587 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8588 | # Commands to strip libraries. |
| 8589 | old_striplib=$lt_old_striplib |
| 8590 | striplib=$lt_striplib |
| 8591 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8592 | # Dependencies to place before the objects being linked to create a |
| 8593 | # shared library. |
| 8594 | predep_objects=$lt_predep_objects |
| 8595 | |
| 8596 | # Dependencies to place after the objects being linked to create a |
| 8597 | # shared library. |
| 8598 | postdep_objects=$lt_postdep_objects |
| 8599 | |
| 8600 | # Dependencies to place before the objects being linked to create a |
| 8601 | # shared library. |
| 8602 | predeps=$lt_predeps |
| 8603 | |
| 8604 | # Dependencies to place after the objects being linked to create a |
| 8605 | # shared library. |
| 8606 | postdeps=$lt_postdeps |
| 8607 | |
| 8608 | # The library search path used internally by the compiler when linking |
| 8609 | # a shared library. |
| 8610 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 8611 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8612 | # Method to check whether dependent libraries are shared objects. |
| 8613 | deplibs_check_method=$lt_deplibs_check_method |
| 8614 | |
| 8615 | # Command to use when deplibs_check_method == file_magic. |
| 8616 | file_magic_cmd=$lt_file_magic_cmd |
| 8617 | |
| 8618 | # Flag that allows shared libraries with undefined symbols to be built. |
| 8619 | allow_undefined_flag=$lt_allow_undefined_flag |
| 8620 | |
| 8621 | # Flag that forces no undefined symbols. |
| 8622 | no_undefined_flag=$lt_no_undefined_flag |
| 8623 | |
| 8624 | # Commands used to finish a libtool library installation in a directory. |
| 8625 | finish_cmds=$lt_finish_cmds |
| 8626 | |
| 8627 | # Same as above, but a single script fragment to be evaled but not shown. |
| 8628 | finish_eval=$lt_finish_eval |
| 8629 | |
| 8630 | # Take the output of nm and produce a listing of raw symbols and C names. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8631 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8632 | |
| 8633 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8634 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8635 | |
| 8636 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8637 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8638 | |
| 8639 | # This is the shared library runtime path variable. |
| 8640 | runpath_var=$runpath_var |
| 8641 | |
| 8642 | # This is the shared library path variable. |
| 8643 | shlibpath_var=$shlibpath_var |
| 8644 | |
| 8645 | # Is shlibpath searched before the hard-coded library search path? |
| 8646 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 8647 | |
| 8648 | # How to hardcode a shared library path into an executable. |
| 8649 | hardcode_action=$hardcode_action |
| 8650 | |
| 8651 | # Whether we should hardcode library paths into libraries. |
| 8652 | hardcode_into_libs=$hardcode_into_libs |
| 8653 | |
| 8654 | # Flag to hardcode \$libdir into a binary during linking. |
| 8655 | # This must work even if \$libdir does not exist. |
| 8656 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 8657 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8658 | # If ld is used when linking, flag to hardcode \$libdir into |
| 8659 | # a binary during linking. This must work even if \$libdir does |
| 8660 | # not exist. |
| 8661 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 8662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8663 | # Whether we need a single -rpath flag with a separated argument. |
| 8664 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 8665 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8666 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8667 | # resulting binary. |
| 8668 | hardcode_direct=$hardcode_direct |
| 8669 | |
| 8670 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 8671 | # resulting binary. |
| 8672 | hardcode_minus_L=$hardcode_minus_L |
| 8673 | |
| 8674 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 8675 | # the resulting binary. |
| 8676 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 8677 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8678 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 8679 | # and all subsequent libraries and executables linked against it. |
| 8680 | hardcode_automatic=$hardcode_automatic |
| 8681 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8682 | # Variables whose values should be saved in libtool wrapper scripts and |
| 8683 | # restored at relink time. |
| 8684 | variables_saved_for_relink="$variables_saved_for_relink" |
| 8685 | |
| 8686 | # Whether libtool must link a program against all its dependency libraries. |
| 8687 | link_all_deplibs=$link_all_deplibs |
| 8688 | |
| 8689 | # Compile-time system search path for libraries |
| 8690 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 8691 | |
| 8692 | # Run-time system search path for libraries |
| 8693 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 8694 | |
| 8695 | # Fix the shell variable \$srcfile for the compiler. |
| 8696 | fix_srcfile_path="$fix_srcfile_path" |
| 8697 | |
| 8698 | # Set to yes if exported symbols are required. |
| 8699 | always_export_symbols=$always_export_symbols |
| 8700 | |
| 8701 | # The commands to list exported symbols. |
| 8702 | export_symbols_cmds=$lt_export_symbols_cmds |
| 8703 | |
| 8704 | # The commands to extract the exported symbol list from a shared archive. |
| 8705 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 8706 | |
| 8707 | # Symbols that should not be listed in the preloaded symbols. |
| 8708 | exclude_expsyms=$lt_exclude_expsyms |
| 8709 | |
| 8710 | # Symbols that must always be exported. |
| 8711 | include_expsyms=$lt_include_expsyms |
| 8712 | |
| 8713 | # ### END LIBTOOL CONFIG |
| 8714 | |
| 8715 | __EOF__ |
| 8716 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8717 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8718 | case $host_os in |
| 8719 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8720 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8721 | |
| 8722 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8723 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8724 | # vanish in a puff of smoke. |
| 8725 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8726 | COLLECT_NAMES= |
| 8727 | export COLLECT_NAMES |
| 8728 | fi |
| 8729 | EOF |
| 8730 | ;; |
| 8731 | esac |
| 8732 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8733 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 8734 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 8735 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 8736 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8737 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8738 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8739 | mv -f "$cfgfile" "$ofile" || \ |
| 8740 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8741 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8742 | |
| 8743 | else |
| 8744 | # If there is no Makefile yet, we rely on a make rule to execute |
| 8745 | # `config.status --recheck' to rerun these tests and create the |
| 8746 | # libtool script then. |
| 8747 | test -f Makefile && make "$ltmain" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8748 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8749 | |
| 8750 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8751 | ac_ext=c |
| 8752 | ac_cpp='$CPP $CPPFLAGS' |
| 8753 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8754 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8755 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8756 | |
| 8757 | CC="$lt_save_CC" |
| 8758 | |
| 8759 | |
| 8760 | # Check whether --with-tags or --without-tags was given. |
| 8761 | if test "${with_tags+set}" = set; then |
| 8762 | withval="$with_tags" |
| 8763 | tagnames="$withval" |
| 8764 | fi; |
| 8765 | |
| 8766 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 8767 | if test ! -f "${ofile}"; then |
| 8768 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 8769 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 8770 | fi |
| 8771 | |
| 8772 | if test -z "$LTCC"; then |
| 8773 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 8774 | if test -z "$LTCC"; then |
| 8775 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 8776 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 8777 | else |
| 8778 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 8779 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 8780 | fi |
| 8781 | fi |
| 8782 | |
| 8783 | # Extract list of available tagged configurations in $ofile. |
| 8784 | # Note that this assumes the entire list is on one line. |
| 8785 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 8786 | |
| 8787 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8788 | for tagname in $tagnames; do |
| 8789 | IFS="$lt_save_ifs" |
| 8790 | # Check whether tagname contains only valid characters |
| 8791 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 8792 | "") ;; |
| 8793 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 8794 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 8795 | { (exit 1); exit 1; }; } |
| 8796 | ;; |
| 8797 | esac |
| 8798 | |
| 8799 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 8800 | then |
| 8801 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 8802 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 8803 | { (exit 1); exit 1; }; } |
| 8804 | fi |
| 8805 | |
| 8806 | # Update the list of available tags. |
| 8807 | if test -n "$tagname"; then |
| 8808 | echo appending configuration tag \"$tagname\" to $ofile |
| 8809 | |
| 8810 | case $tagname in |
| 8811 | CXX) |
| 8812 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 8813 | ac_ext=cc |
| 8814 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8818 | |
| 8819 | |
| 8820 | |
| 8821 | |
| 8822 | archive_cmds_need_lc_CXX=no |
| 8823 | allow_undefined_flag_CXX= |
| 8824 | always_export_symbols_CXX=no |
| 8825 | archive_expsym_cmds_CXX= |
| 8826 | export_dynamic_flag_spec_CXX= |
| 8827 | hardcode_direct_CXX=no |
| 8828 | hardcode_libdir_flag_spec_CXX= |
| 8829 | hardcode_libdir_flag_spec_ld_CXX= |
| 8830 | hardcode_libdir_separator_CXX= |
| 8831 | hardcode_minus_L_CXX=no |
| 8832 | hardcode_automatic_CXX=no |
| 8833 | module_cmds_CXX= |
| 8834 | module_expsym_cmds_CXX= |
| 8835 | link_all_deplibs_CXX=unknown |
| 8836 | old_archive_cmds_CXX=$old_archive_cmds |
| 8837 | no_undefined_flag_CXX= |
| 8838 | whole_archive_flag_spec_CXX= |
| 8839 | enable_shared_with_static_runtimes_CXX=no |
| 8840 | |
| 8841 | # Dependencies to place before and after the object being linked: |
| 8842 | predep_objects_CXX= |
| 8843 | postdep_objects_CXX= |
| 8844 | predeps_CXX= |
| 8845 | postdeps_CXX= |
| 8846 | compiler_lib_search_path_CXX= |
| 8847 | |
| 8848 | # Source file extension for C++ test sources. |
| 8849 | ac_ext=cc |
| 8850 | |
| 8851 | # Object file extension for compiled C++ test sources. |
| 8852 | objext=o |
| 8853 | objext_CXX=$objext |
| 8854 | |
| 8855 | # Code to be used in simple compile tests |
| 8856 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 8857 | |
| 8858 | # Code to be used in simple link tests |
| 8859 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 8860 | |
| 8861 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 8862 | |
| 8863 | # If no C compiler was specified, use CC. |
| 8864 | LTCC=${LTCC-"$CC"} |
| 8865 | |
| 8866 | # Allow CC to be a program name with arguments. |
| 8867 | compiler=$CC |
| 8868 | |
| 8869 | |
| 8870 | # Allow CC to be a program name with arguments. |
| 8871 | lt_save_CC=$CC |
| 8872 | lt_save_LD=$LD |
| 8873 | lt_save_GCC=$GCC |
| 8874 | GCC=$GXX |
| 8875 | lt_save_with_gnu_ld=$with_gnu_ld |
| 8876 | lt_save_path_LD=$lt_cv_path_LD |
| 8877 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 8878 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 8879 | else |
| 8880 | unset lt_cv_prog_gnu_ld |
| 8881 | fi |
| 8882 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 8883 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 8884 | else |
| 8885 | unset lt_cv_path_LD |
| 8886 | fi |
| 8887 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 8888 | CC=${CXX-"c++"} |
| 8889 | compiler=$CC |
| 8890 | compiler_CXX=$CC |
| 8891 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 8892 | |
| 8893 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 8894 | # no_builtin_flag separately |
| 8895 | if test "$GXX" = yes; then |
| 8896 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 8897 | else |
| 8898 | lt_prog_compiler_no_builtin_flag_CXX= |
| 8899 | fi |
| 8900 | |
| 8901 | if test "$GXX" = yes; then |
| 8902 | # Set up default GNU C++ configuration |
| 8903 | |
| 8904 | |
| 8905 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 8906 | if test "${with_gnu_ld+set}" = set; then |
| 8907 | withval="$with_gnu_ld" |
| 8908 | test "$withval" = no || with_gnu_ld=yes |
| 8909 | else |
| 8910 | with_gnu_ld=no |
| 8911 | fi; |
| 8912 | ac_prog=ld |
| 8913 | if test "$GCC" = yes; then |
| 8914 | # Check if gcc -print-prog-name=ld gives a path. |
| 8915 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 8916 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 8917 | case $host in |
| 8918 | *-*-mingw*) |
| 8919 | # gcc leaves a trailing carriage return which upsets mingw |
| 8920 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8921 | *) |
| 8922 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8923 | esac |
| 8924 | case $ac_prog in |
| 8925 | # Accept absolute paths. |
| 8926 | [\\/]* | ?:[\\/]*) |
| 8927 | re_direlt='/[^/][^/]*/\.\./' |
| 8928 | # Canonicalize the path of ld |
| 8929 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 8930 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8931 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 8932 | done |
| 8933 | test -z "$LD" && LD="$ac_prog" |
| 8934 | ;; |
| 8935 | "") |
| 8936 | # If it fails, then pretend we aren't using GCC. |
| 8937 | ac_prog=ld |
| 8938 | ;; |
| 8939 | *) |
| 8940 | # If it is relative, then search for the first ld in PATH. |
| 8941 | with_gnu_ld=unknown |
| 8942 | ;; |
| 8943 | esac |
| 8944 | elif test "$with_gnu_ld" = yes; then |
| 8945 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8946 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 8947 | else |
| 8948 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8949 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 8950 | fi |
| 8951 | if test "${lt_cv_path_LD+set}" = set; then |
| 8952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8953 | else |
| 8954 | if test -z "$LD"; then |
| 8955 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8956 | for ac_dir in $PATH; do |
| 8957 | IFS="$lt_save_ifs" |
| 8958 | test -z "$ac_dir" && ac_dir=. |
| 8959 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8960 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 8961 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8962 | # but apparently some GNU ld's only accept -v. |
| 8963 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8964 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 8965 | *GNU* | *'with BFD'*) |
| 8966 | test "$with_gnu_ld" != no && break |
| 8967 | ;; |
| 8968 | *) |
| 8969 | test "$with_gnu_ld" != yes && break |
| 8970 | ;; |
| 8971 | esac |
| 8972 | fi |
| 8973 | done |
| 8974 | IFS="$lt_save_ifs" |
| 8975 | else |
| 8976 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8977 | fi |
| 8978 | fi |
| 8979 | |
| 8980 | LD="$lt_cv_path_LD" |
| 8981 | if test -n "$LD"; then |
| 8982 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 8983 | echo "${ECHO_T}$LD" >&6 |
| 8984 | else |
| 8985 | echo "$as_me:$LINENO: result: no" >&5 |
| 8986 | echo "${ECHO_T}no" >&6 |
| 8987 | fi |
| 8988 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8989 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8990 | { (exit 1); exit 1; }; } |
| 8991 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8992 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 8993 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 8994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8995 | else |
| 8996 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8997 | case `"$LD" -v 2>&1 </dev/null` in |
| 8998 | *GNU* | *'with BFD'*) |
| 8999 | lt_cv_prog_gnu_ld=yes |
| 9000 | ;; |
| 9001 | *) |
| 9002 | lt_cv_prog_gnu_ld=no |
| 9003 | ;; |
| 9004 | esac |
| 9005 | fi |
| 9006 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9007 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9008 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9009 | |
| 9010 | |
| 9011 | |
| 9012 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9013 | # archiving commands below assume that GNU ld is being used. |
| 9014 | if test "$with_gnu_ld" = yes; then |
| 9015 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9016 | 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' |
| 9017 | |
| 9018 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 9019 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9020 | |
| 9021 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9022 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9023 | # investigate it a little bit more. (MM) |
| 9024 | wlarc='${wl}' |
| 9025 | |
| 9026 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9027 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 9028 | grep 'no-whole-archive' > /dev/null; then |
| 9029 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9030 | else |
| 9031 | whole_archive_flag_spec_CXX= |
| 9032 | fi |
| 9033 | else |
| 9034 | with_gnu_ld=no |
| 9035 | wlarc= |
| 9036 | |
| 9037 | # A generic and very simple default shared library creation |
| 9038 | # command for GNU C++ for the case where it uses the native |
| 9039 | # linker, instead of GNU ld. If possible, this setting should |
| 9040 | # overridden to take advantage of the native linker features on |
| 9041 | # the platform it is being used on. |
| 9042 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9043 | fi |
| 9044 | |
| 9045 | # Commands to make compiler produce verbose output that lists |
| 9046 | # what "hidden" libraries, object files and flags are used when |
| 9047 | # linking a shared library. |
| 9048 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9049 | |
| 9050 | else |
| 9051 | GXX=no |
| 9052 | with_gnu_ld=no |
| 9053 | wlarc= |
| 9054 | fi |
| 9055 | |
| 9056 | # PORTME: fill in a description of your system's C++ link characteristics |
| 9057 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9058 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9059 | ld_shlibs_CXX=yes |
| 9060 | case $host_os in |
| 9061 | aix3*) |
| 9062 | # FIXME: insert proper C++ library support |
| 9063 | ld_shlibs_CXX=no |
| 9064 | ;; |
| 9065 | aix4* | aix5*) |
| 9066 | if test "$host_cpu" = ia64; then |
| 9067 | # On IA64, the linker does run time linking by default, so we don't |
| 9068 | # have to do anything special. |
| 9069 | aix_use_runtimelinking=no |
| 9070 | exp_sym_flag='-Bexport' |
| 9071 | no_entry_flag="" |
| 9072 | else |
| 9073 | aix_use_runtimelinking=no |
| 9074 | |
| 9075 | # Test if we are trying to use run time linking or normal |
| 9076 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9077 | # need to do runtime linking. |
| 9078 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9079 | for ld_flag in $LDFLAGS; do |
| 9080 | case $ld_flag in |
| 9081 | *-brtl*) |
| 9082 | aix_use_runtimelinking=yes |
| 9083 | break |
| 9084 | ;; |
| 9085 | esac |
| 9086 | done |
| 9087 | esac |
| 9088 | |
| 9089 | exp_sym_flag='-bexport' |
| 9090 | no_entry_flag='-bnoentry' |
| 9091 | fi |
| 9092 | |
| 9093 | # When large executables or shared objects are built, AIX ld can |
| 9094 | # have problems creating the table of contents. If linking a library |
| 9095 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9096 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9097 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9098 | |
| 9099 | archive_cmds_CXX='' |
| 9100 | hardcode_direct_CXX=yes |
| 9101 | hardcode_libdir_separator_CXX=':' |
| 9102 | link_all_deplibs_CXX=yes |
| 9103 | |
| 9104 | if test "$GXX" = yes; then |
| 9105 | case $host_os in aix4.012|aix4.012.*) |
| 9106 | # We only want to do this on AIX 4.2 and lower, the check |
| 9107 | # below for broken collect2 doesn't work under 4.3+ |
| 9108 | collect2name=`${CC} -print-prog-name=collect2` |
| 9109 | if test -f "$collect2name" && \ |
| 9110 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9111 | then |
| 9112 | # We have reworked collect2 |
| 9113 | hardcode_direct_CXX=yes |
| 9114 | else |
| 9115 | # We have old collect2 |
| 9116 | hardcode_direct_CXX=unsupported |
| 9117 | # It fails to find uninstalled libraries when the uninstalled |
| 9118 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9119 | # to unsupported forces relinking |
| 9120 | hardcode_minus_L_CXX=yes |
| 9121 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9122 | hardcode_libdir_separator_CXX= |
| 9123 | fi |
| 9124 | esac |
| 9125 | shared_flag='-shared' |
| 9126 | else |
| 9127 | # not using gcc |
| 9128 | if test "$host_cpu" = ia64; then |
| 9129 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9130 | # chokes on -Wl,-G. The following line is correct: |
| 9131 | shared_flag='-G' |
| 9132 | else |
| 9133 | if test "$aix_use_runtimelinking" = yes; then |
| 9134 | shared_flag='${wl}-G' |
| 9135 | else |
| 9136 | shared_flag='${wl}-bM:SRE' |
| 9137 | fi |
| 9138 | fi |
| 9139 | fi |
| 9140 | |
| 9141 | # It seems that -bexpall does not export symbols beginning with |
| 9142 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9143 | always_export_symbols_CXX=yes |
| 9144 | if test "$aix_use_runtimelinking" = yes; then |
| 9145 | # Warning - without using the other runtime loading flags (-brtl), |
| 9146 | # -berok will link without error, but may produce a broken library. |
| 9147 | allow_undefined_flag_CXX='-berok' |
| 9148 | # Determine the default libpath from the value encoded in an empty executable. |
| 9149 | cat >conftest.$ac_ext <<_ACEOF |
| 9150 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 9151 | /* confdefs.h. */ |
| 9152 | _ACEOF |
| 9153 | cat confdefs.h >>conftest.$ac_ext |
| 9154 | cat >>conftest.$ac_ext <<_ACEOF |
| 9155 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9156 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9157 | int |
| 9158 | main () |
| 9159 | { |
| 9160 | |
| 9161 | ; |
| 9162 | return 0; |
| 9163 | } |
| 9164 | _ACEOF |
| 9165 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9167 | (eval $ac_link) 2>&5 |
| 9168 | ac_status=$? |
| 9169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9170 | (exit $ac_status); } && |
| 9171 | { ac_try='test -s conftest$ac_exeext' |
| 9172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9173 | (eval $ac_try) 2>&5 |
| 9174 | ac_status=$? |
| 9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9176 | (exit $ac_status); }; }; then |
| 9177 | |
| 9178 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9179 | }'` |
| 9180 | # Check for a 64-bit object if we didn't find anything. |
| 9181 | 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; } |
| 9182 | }'`; fi |
| 9183 | else |
| 9184 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 9185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9186 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9187 | fi |
| 9188 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9189 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9190 | |
| 9191 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9192 | |
| 9193 | 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" |
| 9194 | else |
| 9195 | if test "$host_cpu" = ia64; then |
| 9196 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9197 | allow_undefined_flag_CXX="-z nodefs" |
| 9198 | 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" |
| 9199 | else |
| 9200 | # Determine the default libpath from the value encoded in an empty executable. |
| 9201 | cat >conftest.$ac_ext <<_ACEOF |
| 9202 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 9203 | /* confdefs.h. */ |
| 9204 | _ACEOF |
| 9205 | cat confdefs.h >>conftest.$ac_ext |
| 9206 | cat >>conftest.$ac_ext <<_ACEOF |
| 9207 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9208 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9209 | int |
| 9210 | main () |
| 9211 | { |
| 9212 | |
| 9213 | ; |
| 9214 | return 0; |
| 9215 | } |
| 9216 | _ACEOF |
| 9217 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9219 | (eval $ac_link) 2>&5 |
| 9220 | ac_status=$? |
| 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9222 | (exit $ac_status); } && |
| 9223 | { ac_try='test -s conftest$ac_exeext' |
| 9224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9225 | (eval $ac_try) 2>&5 |
| 9226 | ac_status=$? |
| 9227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9228 | (exit $ac_status); }; }; then |
| 9229 | |
| 9230 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9231 | }'` |
| 9232 | # Check for a 64-bit object if we didn't find anything. |
| 9233 | 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; } |
| 9234 | }'`; fi |
| 9235 | else |
| 9236 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 9237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9238 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9239 | fi |
| 9240 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9241 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9242 | |
| 9243 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9244 | # Warning - without using the other run time loading flags, |
| 9245 | # -berok will link without error, but may produce a broken library. |
| 9246 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 9247 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 9248 | # -bexpall does not export symbols beginning with underscore (_) |
| 9249 | always_export_symbols_CXX=yes |
| 9250 | # Exported symbols can be pulled into shared objects from archives |
| 9251 | whole_archive_flag_spec_CXX=' ' |
| 9252 | archive_cmds_need_lc_CXX=yes |
| 9253 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 9254 | 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' |
| 9255 | fi |
| 9256 | fi |
| 9257 | ;; |
| 9258 | chorus*) |
| 9259 | case $cc_basename in |
| 9260 | *) |
| 9261 | # FIXME: insert proper C++ library support |
| 9262 | ld_shlibs_CXX=no |
| 9263 | ;; |
| 9264 | esac |
| 9265 | ;; |
| 9266 | |
| 9267 | cygwin* | mingw* | pw32*) |
| 9268 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 9269 | # as there is no search path for DLLs. |
| 9270 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9271 | allow_undefined_flag_CXX=unsupported |
| 9272 | always_export_symbols_CXX=no |
| 9273 | enable_shared_with_static_runtimes_CXX=yes |
| 9274 | |
| 9275 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 9276 | 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' |
| 9277 | # If the export-symbols file already is a .def file (1st line |
| 9278 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9279 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9280 | cp $export_symbols $output_objdir/$soname.def; |
| 9281 | else |
| 9282 | echo EXPORTS > $output_objdir/$soname.def; |
| 9283 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9284 | fi~ |
| 9285 | $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' |
| 9286 | else |
| 9287 | ld_shlibs_CXX=no |
| 9288 | fi |
| 9289 | ;; |
| 9290 | |
| 9291 | darwin* | rhapsody*) |
| 9292 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 9293 | archive_cmds_need_lc_CXX=no |
| 9294 | case "$host_os" in |
| 9295 | rhapsody* | darwin1.[012]) |
| 9296 | allow_undefined_flag_CXX='-undefined suppress' |
| 9297 | ;; |
| 9298 | *) # Darwin 1.3 on |
| 9299 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 9300 | ;; |
| 9301 | esac |
| 9302 | lt_int_apple_cc_single_mod=no |
| 9303 | output_verbose_link_cmd='echo' |
| 9304 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 9305 | lt_int_apple_cc_single_mod=yes |
| 9306 | fi |
| 9307 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9308 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9309 | else |
| 9310 | 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' |
| 9311 | fi |
| 9312 | module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 9313 | |
| 9314 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 9315 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9316 | 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}' |
| 9317 | else |
| 9318 | 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}' |
| 9319 | fi |
| 9320 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9321 | hardcode_direct_CXX=no |
| 9322 | hardcode_automatic_CXX=yes |
| 9323 | hardcode_shlibpath_var_CXX=unsupported |
| 9324 | whole_archive_flag_spec_CXX='-all_load $convenience' |
| 9325 | link_all_deplibs_CXX=yes |
| 9326 | fi |
| 9327 | ;; |
| 9328 | |
| 9329 | dgux*) |
| 9330 | case $cc_basename in |
| 9331 | ec++) |
| 9332 | # FIXME: insert proper C++ library support |
| 9333 | ld_shlibs_CXX=no |
| 9334 | ;; |
| 9335 | ghcx) |
| 9336 | # Green Hills C++ Compiler |
| 9337 | # FIXME: insert proper C++ library support |
| 9338 | ld_shlibs_CXX=no |
| 9339 | ;; |
| 9340 | *) |
| 9341 | # FIXME: insert proper C++ library support |
| 9342 | ld_shlibs_CXX=no |
| 9343 | ;; |
| 9344 | esac |
| 9345 | ;; |
| 9346 | freebsd12*) |
| 9347 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 9348 | ld_shlibs_CXX=no |
| 9349 | ;; |
| 9350 | freebsd-elf*) |
| 9351 | archive_cmds_need_lc_CXX=no |
| 9352 | ;; |
| 9353 | freebsd*) |
| 9354 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 9355 | # conventions |
| 9356 | ld_shlibs_CXX=yes |
| 9357 | ;; |
| 9358 | gnu*) |
| 9359 | ;; |
| 9360 | hpux9*) |
| 9361 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9362 | hardcode_libdir_separator_CXX=: |
| 9363 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9364 | hardcode_direct_CXX=yes |
| 9365 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9366 | # but as the default |
| 9367 | # location of the library. |
| 9368 | |
| 9369 | case $cc_basename in |
| 9370 | CC) |
| 9371 | # FIXME: insert proper C++ library support |
| 9372 | ld_shlibs_CXX=no |
| 9373 | ;; |
| 9374 | aCC) |
| 9375 | 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' |
| 9376 | # Commands to make compiler produce verbose output that lists |
| 9377 | # what "hidden" libraries, object files and flags are used when |
| 9378 | # linking a shared library. |
| 9379 | # |
| 9380 | # There doesn't appear to be a way to prevent this compiler from |
| 9381 | # explicitly linking system object files so we need to strip them |
| 9382 | # from the output so that they don't get included in the library |
| 9383 | # dependencies. |
| 9384 | 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' |
| 9385 | ;; |
| 9386 | *) |
| 9387 | if test "$GXX" = yes; then |
| 9388 | 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' |
| 9389 | else |
| 9390 | # FIXME: insert proper C++ library support |
| 9391 | ld_shlibs_CXX=no |
| 9392 | fi |
| 9393 | ;; |
| 9394 | esac |
| 9395 | ;; |
| 9396 | hpux10*|hpux11*) |
| 9397 | if test $with_gnu_ld = no; then |
| 9398 | case "$host_cpu" in |
| 9399 | hppa*64*) |
| 9400 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9401 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 9402 | hardcode_libdir_separator_CXX=: |
| 9403 | ;; |
| 9404 | ia64*) |
| 9405 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9406 | ;; |
| 9407 | *) |
| 9408 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9409 | hardcode_libdir_separator_CXX=: |
| 9410 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9411 | ;; |
| 9412 | esac |
| 9413 | fi |
| 9414 | case "$host_cpu" in |
| 9415 | hppa*64*) |
| 9416 | hardcode_direct_CXX=no |
| 9417 | hardcode_shlibpath_var_CXX=no |
| 9418 | ;; |
| 9419 | ia64*) |
| 9420 | hardcode_direct_CXX=no |
| 9421 | hardcode_shlibpath_var_CXX=no |
| 9422 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9423 | # but as the default |
| 9424 | # location of the library. |
| 9425 | ;; |
| 9426 | *) |
| 9427 | hardcode_direct_CXX=yes |
| 9428 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9429 | # but as the default |
| 9430 | # location of the library. |
| 9431 | ;; |
| 9432 | esac |
| 9433 | |
| 9434 | case $cc_basename in |
| 9435 | CC) |
| 9436 | # FIXME: insert proper C++ library support |
| 9437 | ld_shlibs_CXX=no |
| 9438 | ;; |
| 9439 | aCC) |
| 9440 | case "$host_cpu" in |
| 9441 | hppa*64*|ia64*) |
| 9442 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9443 | ;; |
| 9444 | *) |
| 9445 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9446 | ;; |
| 9447 | esac |
| 9448 | # Commands to make compiler produce verbose output that lists |
| 9449 | # what "hidden" libraries, object files and flags are used when |
| 9450 | # linking a shared library. |
| 9451 | # |
| 9452 | # There doesn't appear to be a way to prevent this compiler from |
| 9453 | # explicitly linking system object files so we need to strip them |
| 9454 | # from the output so that they don't get included in the library |
| 9455 | # dependencies. |
| 9456 | 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' |
| 9457 | ;; |
| 9458 | *) |
| 9459 | if test "$GXX" = yes; then |
| 9460 | if test $with_gnu_ld = no; then |
| 9461 | case "$host_cpu" in |
| 9462 | ia64*|hppa*64*) |
| 9463 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9464 | ;; |
| 9465 | *) |
| 9466 | 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' |
| 9467 | ;; |
| 9468 | esac |
| 9469 | fi |
| 9470 | else |
| 9471 | # FIXME: insert proper C++ library support |
| 9472 | ld_shlibs_CXX=no |
| 9473 | fi |
| 9474 | ;; |
| 9475 | esac |
| 9476 | ;; |
| 9477 | irix5* | irix6*) |
| 9478 | case $cc_basename in |
| 9479 | CC) |
| 9480 | # SGI C++ |
| 9481 | 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' |
| 9482 | |
| 9483 | # Archives containing C++ object files must be created using |
| 9484 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 9485 | # necessary to make sure instantiated templates are included |
| 9486 | # in the archive. |
| 9487 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 9488 | ;; |
| 9489 | *) |
| 9490 | if test "$GXX" = yes; then |
| 9491 | if test "$with_gnu_ld" = no; then |
| 9492 | 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' |
| 9493 | else |
| 9494 | 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' |
| 9495 | fi |
| 9496 | fi |
| 9497 | link_all_deplibs_CXX=yes |
| 9498 | ;; |
| 9499 | esac |
| 9500 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9501 | hardcode_libdir_separator_CXX=: |
| 9502 | ;; |
| 9503 | linux*) |
| 9504 | case $cc_basename in |
| 9505 | KCC) |
| 9506 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9507 | |
| 9508 | # KCC will only create a shared library if the output file |
| 9509 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9510 | # to its proper name (with version) after linking. |
| 9511 | 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' |
| 9512 | 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' |
| 9513 | # Commands to make compiler produce verbose output that lists |
| 9514 | # what "hidden" libraries, object files and flags are used when |
| 9515 | # linking a shared library. |
| 9516 | # |
| 9517 | # There doesn't appear to be a way to prevent this compiler from |
| 9518 | # explicitly linking system object files so we need to strip them |
| 9519 | # from the output so that they don't get included in the library |
| 9520 | # dependencies. |
| 9521 | 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' |
| 9522 | |
| 9523 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 9524 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9525 | |
| 9526 | # Archives containing C++ object files must be created using |
| 9527 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 9528 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 9529 | ;; |
| 9530 | icpc) |
| 9531 | # Intel C++ |
| 9532 | with_gnu_ld=yes |
| 9533 | archive_cmds_need_lc_CXX=no |
| 9534 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9535 | 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' |
| 9536 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9537 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9538 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9539 | ;; |
| 9540 | cxx) |
| 9541 | # Compaq C++ |
| 9542 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9543 | 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' |
| 9544 | |
| 9545 | runpath_var=LD_RUN_PATH |
| 9546 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 9547 | hardcode_libdir_separator_CXX=: |
| 9548 | |
| 9549 | # Commands to make compiler produce verbose output that lists |
| 9550 | # what "hidden" libraries, object files and flags are used when |
| 9551 | # linking a shared library. |
| 9552 | # |
| 9553 | # There doesn't appear to be a way to prevent this compiler from |
| 9554 | # explicitly linking system object files so we need to strip them |
| 9555 | # from the output so that they don't get included in the library |
| 9556 | # dependencies. |
| 9557 | 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' |
| 9558 | ;; |
| 9559 | esac |
| 9560 | ;; |
| 9561 | lynxos*) |
| 9562 | # FIXME: insert proper C++ library support |
| 9563 | ld_shlibs_CXX=no |
| 9564 | ;; |
| 9565 | m88k*) |
| 9566 | # FIXME: insert proper C++ library support |
| 9567 | ld_shlibs_CXX=no |
| 9568 | ;; |
| 9569 | mvs*) |
| 9570 | case $cc_basename in |
| 9571 | cxx) |
| 9572 | # FIXME: insert proper C++ library support |
| 9573 | ld_shlibs_CXX=no |
| 9574 | ;; |
| 9575 | *) |
| 9576 | # FIXME: insert proper C++ library support |
| 9577 | ld_shlibs_CXX=no |
| 9578 | ;; |
| 9579 | esac |
| 9580 | ;; |
| 9581 | netbsd*) |
| 9582 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9583 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 9584 | wlarc= |
| 9585 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 9586 | hardcode_direct_CXX=yes |
| 9587 | hardcode_shlibpath_var_CXX=no |
| 9588 | fi |
| 9589 | # Workaround some broken pre-1.5 toolchains |
| 9590 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 9591 | ;; |
| 9592 | osf3*) |
| 9593 | case $cc_basename in |
| 9594 | KCC) |
| 9595 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9596 | |
| 9597 | # KCC will only create a shared library if the output file |
| 9598 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9599 | # to its proper name (with version) after linking. |
| 9600 | 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' |
| 9601 | |
| 9602 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9603 | hardcode_libdir_separator_CXX=: |
| 9604 | |
| 9605 | # Archives containing C++ object files must be created using |
| 9606 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 9607 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 9608 | |
| 9609 | ;; |
| 9610 | RCC) |
| 9611 | # Rational C++ 2.4.1 |
| 9612 | # FIXME: insert proper C++ library support |
| 9613 | ld_shlibs_CXX=no |
| 9614 | ;; |
| 9615 | cxx) |
| 9616 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9617 | 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' |
| 9618 | |
| 9619 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9620 | hardcode_libdir_separator_CXX=: |
| 9621 | |
| 9622 | # Commands to make compiler produce verbose output that lists |
| 9623 | # what "hidden" libraries, object files and flags are used when |
| 9624 | # linking a shared library. |
| 9625 | # |
| 9626 | # There doesn't appear to be a way to prevent this compiler from |
| 9627 | # explicitly linking system object files so we need to strip them |
| 9628 | # from the output so that they don't get included in the library |
| 9629 | # dependencies. |
| 9630 | 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' |
| 9631 | ;; |
| 9632 | *) |
| 9633 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9634 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9635 | 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' |
| 9636 | |
| 9637 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9638 | hardcode_libdir_separator_CXX=: |
| 9639 | |
| 9640 | # Commands to make compiler produce verbose output that lists |
| 9641 | # what "hidden" libraries, object files and flags are used when |
| 9642 | # linking a shared library. |
| 9643 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9644 | |
| 9645 | else |
| 9646 | # FIXME: insert proper C++ library support |
| 9647 | ld_shlibs_CXX=no |
| 9648 | fi |
| 9649 | ;; |
| 9650 | esac |
| 9651 | ;; |
| 9652 | osf4* | osf5*) |
| 9653 | case $cc_basename in |
| 9654 | KCC) |
| 9655 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9656 | |
| 9657 | # KCC will only create a shared library if the output file |
| 9658 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9659 | # to its proper name (with version) after linking. |
| 9660 | 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' |
| 9661 | |
| 9662 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9663 | hardcode_libdir_separator_CXX=: |
| 9664 | |
| 9665 | # Archives containing C++ object files must be created using |
| 9666 | # the KAI C++ compiler. |
| 9667 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 9668 | ;; |
| 9669 | RCC) |
| 9670 | # Rational C++ 2.4.1 |
| 9671 | # FIXME: insert proper C++ library support |
| 9672 | ld_shlibs_CXX=no |
| 9673 | ;; |
| 9674 | cxx) |
| 9675 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 9676 | 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' |
| 9677 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 9678 | echo "-hidden">> $lib.exp~ |
| 9679 | $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~ |
| 9680 | $rm $lib.exp' |
| 9681 | |
| 9682 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 9683 | hardcode_libdir_separator_CXX=: |
| 9684 | |
| 9685 | # Commands to make compiler produce verbose output that lists |
| 9686 | # what "hidden" libraries, object files and flags are used when |
| 9687 | # linking a shared library. |
| 9688 | # |
| 9689 | # There doesn't appear to be a way to prevent this compiler from |
| 9690 | # explicitly linking system object files so we need to strip them |
| 9691 | # from the output so that they don't get included in the library |
| 9692 | # dependencies. |
| 9693 | 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' |
| 9694 | ;; |
| 9695 | *) |
| 9696 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9697 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9698 | 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' |
| 9699 | |
| 9700 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9701 | hardcode_libdir_separator_CXX=: |
| 9702 | |
| 9703 | # Commands to make compiler produce verbose output that lists |
| 9704 | # what "hidden" libraries, object files and flags are used when |
| 9705 | # linking a shared library. |
| 9706 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9707 | |
| 9708 | else |
| 9709 | # FIXME: insert proper C++ library support |
| 9710 | ld_shlibs_CXX=no |
| 9711 | fi |
| 9712 | ;; |
| 9713 | esac |
| 9714 | ;; |
| 9715 | psos*) |
| 9716 | # FIXME: insert proper C++ library support |
| 9717 | ld_shlibs_CXX=no |
| 9718 | ;; |
| 9719 | sco*) |
| 9720 | archive_cmds_need_lc_CXX=no |
| 9721 | case $cc_basename in |
| 9722 | CC) |
| 9723 | # FIXME: insert proper C++ library support |
| 9724 | ld_shlibs_CXX=no |
| 9725 | ;; |
| 9726 | *) |
| 9727 | # FIXME: insert proper C++ library support |
| 9728 | ld_shlibs_CXX=no |
| 9729 | ;; |
| 9730 | esac |
| 9731 | ;; |
| 9732 | sunos4*) |
| 9733 | case $cc_basename in |
| 9734 | CC) |
| 9735 | # Sun C++ 4.x |
| 9736 | # FIXME: insert proper C++ library support |
| 9737 | ld_shlibs_CXX=no |
| 9738 | ;; |
| 9739 | lcc) |
| 9740 | # Lucid |
| 9741 | # FIXME: insert proper C++ library support |
| 9742 | ld_shlibs_CXX=no |
| 9743 | ;; |
| 9744 | *) |
| 9745 | # FIXME: insert proper C++ library support |
| 9746 | ld_shlibs_CXX=no |
| 9747 | ;; |
| 9748 | esac |
| 9749 | ;; |
| 9750 | solaris*) |
| 9751 | case $cc_basename in |
| 9752 | CC) |
| 9753 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 9754 | no_undefined_flag_CXX=' -zdefs' |
| 9755 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9756 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9757 | $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' |
| 9758 | |
| 9759 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 9760 | hardcode_shlibpath_var_CXX=no |
| 9761 | case $host_os in |
| 9762 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 9763 | *) |
| 9764 | # The C++ compiler is used as linker so we must use $wl |
| 9765 | # flag to pass the commands to the underlying system |
| 9766 | # linker. |
| 9767 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9768 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9769 | ;; |
| 9770 | esac |
| 9771 | link_all_deplibs_CXX=yes |
| 9772 | |
| 9773 | # Commands to make compiler produce verbose output that lists |
| 9774 | # what "hidden" libraries, object files and flags are used when |
| 9775 | # linking a shared library. |
| 9776 | # |
| 9777 | # There doesn't appear to be a way to prevent this compiler from |
| 9778 | # explicitly linking system object files so we need to strip them |
| 9779 | # from the output so that they don't get included in the library |
| 9780 | # dependencies. |
| 9781 | 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' |
| 9782 | |
| 9783 | # Archives containing C++ object files must be created using |
| 9784 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 9785 | # necessary to make sure instantiated templates are included |
| 9786 | # in the archive. |
| 9787 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 9788 | ;; |
| 9789 | gcx) |
| 9790 | # Green Hills C++ Compiler |
| 9791 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9792 | |
| 9793 | # The C++ compiler must be used to create the archive. |
| 9794 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 9795 | ;; |
| 9796 | *) |
| 9797 | # GNU C++ compiler with Solaris linker |
| 9798 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9799 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 9800 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 9801 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9802 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9803 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 9804 | |
| 9805 | # Commands to make compiler produce verbose output that lists |
| 9806 | # what "hidden" libraries, object files and flags are used when |
| 9807 | # linking a shared library. |
| 9808 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 9809 | else |
| 9810 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 9811 | # platform. |
| 9812 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9813 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9814 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 9815 | |
| 9816 | # Commands to make compiler produce verbose output that lists |
| 9817 | # what "hidden" libraries, object files and flags are used when |
| 9818 | # linking a shared library. |
| 9819 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 9820 | fi |
| 9821 | |
| 9822 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 9823 | fi |
| 9824 | ;; |
| 9825 | esac |
| 9826 | ;; |
| 9827 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 9828 | archive_cmds_need_lc_CXX=no |
| 9829 | ;; |
| 9830 | tandem*) |
| 9831 | case $cc_basename in |
| 9832 | NCC) |
| 9833 | # NonStop-UX NCC 3.20 |
| 9834 | # FIXME: insert proper C++ library support |
| 9835 | ld_shlibs_CXX=no |
| 9836 | ;; |
| 9837 | *) |
| 9838 | # FIXME: insert proper C++ library support |
| 9839 | ld_shlibs_CXX=no |
| 9840 | ;; |
| 9841 | esac |
| 9842 | ;; |
| 9843 | vxworks*) |
| 9844 | # FIXME: insert proper C++ library support |
| 9845 | ld_shlibs_CXX=no |
| 9846 | ;; |
| 9847 | *) |
| 9848 | # FIXME: insert proper C++ library support |
| 9849 | ld_shlibs_CXX=no |
| 9850 | ;; |
| 9851 | esac |
| 9852 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 9853 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 9854 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 9855 | |
| 9856 | GCC_CXX="$GXX" |
| 9857 | LD_CXX="$LD" |
| 9858 | |
| 9859 | ## CAVEAT EMPTOR: |
| 9860 | ## There is no encapsulation within the following macros, do not change |
| 9861 | ## the running order or otherwise move them around unless you know exactly |
| 9862 | ## what you are doing... |
| 9863 | |
| 9864 | cat > conftest.$ac_ext <<EOF |
| 9865 | class Foo |
| 9866 | { |
| 9867 | public: |
| 9868 | Foo (void) { a = 0; } |
| 9869 | private: |
| 9870 | int a; |
| 9871 | }; |
| 9872 | EOF |
| 9873 | |
| 9874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9875 | (eval $ac_compile) 2>&5 |
| 9876 | ac_status=$? |
| 9877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9878 | (exit $ac_status); }; then |
| 9879 | # Parse the compiler output and extract the necessary |
| 9880 | # objects, libraries and library flags. |
| 9881 | |
| 9882 | # Sentinel used to keep track of whether or not we are before |
| 9883 | # the conftest object file. |
| 9884 | pre_test_object_deps_done=no |
| 9885 | |
| 9886 | # The `*' in the case matches for architectures that use `case' in |
| 9887 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 9888 | # eval without this substitution. |
| 9889 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 9890 | |
| 9891 | for p in `eval $output_verbose_link_cmd`; do |
| 9892 | case $p in |
| 9893 | |
| 9894 | -L* | -R* | -l*) |
| 9895 | # Some compilers place space between "-{L,R}" and the path. |
| 9896 | # Remove the space. |
| 9897 | if test $p = "-L" \ |
| 9898 | || test $p = "-R"; then |
| 9899 | prev=$p |
| 9900 | continue |
| 9901 | else |
| 9902 | prev= |
| 9903 | fi |
| 9904 | |
| 9905 | if test "$pre_test_object_deps_done" = no; then |
| 9906 | case $p in |
| 9907 | -L* | -R*) |
| 9908 | # Internal compiler library paths should come after those |
| 9909 | # provided the user. The postdeps already come after the |
| 9910 | # user supplied libs so there is no need to process them. |
| 9911 | if test -z "$compiler_lib_search_path_CXX"; then |
| 9912 | compiler_lib_search_path_CXX="${prev}${p}" |
| 9913 | else |
| 9914 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 9915 | fi |
| 9916 | ;; |
| 9917 | # The "-l" case would never come before the object being |
| 9918 | # linked, so don't bother handling this case. |
| 9919 | esac |
| 9920 | else |
| 9921 | if test -z "$postdeps_CXX"; then |
| 9922 | postdeps_CXX="${prev}${p}" |
| 9923 | else |
| 9924 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 9925 | fi |
| 9926 | fi |
| 9927 | ;; |
| 9928 | |
| 9929 | *.$objext) |
| 9930 | # This assumes that the test object file only shows up |
| 9931 | # once in the compiler output. |
| 9932 | if test "$p" = "conftest.$objext"; then |
| 9933 | pre_test_object_deps_done=yes |
| 9934 | continue |
| 9935 | fi |
| 9936 | |
| 9937 | if test "$pre_test_object_deps_done" = no; then |
| 9938 | if test -z "$predep_objects_CXX"; then |
| 9939 | predep_objects_CXX="$p" |
| 9940 | else |
| 9941 | predep_objects_CXX="$predep_objects_CXX $p" |
| 9942 | fi |
| 9943 | else |
| 9944 | if test -z "$postdep_objects_CXX"; then |
| 9945 | postdep_objects_CXX="$p" |
| 9946 | else |
| 9947 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 9948 | fi |
| 9949 | fi |
| 9950 | ;; |
| 9951 | |
| 9952 | *) ;; # Ignore the rest. |
| 9953 | |
| 9954 | esac |
| 9955 | done |
| 9956 | |
| 9957 | # Clean up. |
| 9958 | rm -f a.out a.exe |
| 9959 | else |
| 9960 | echo "libtool.m4: error: problem compiling CXX test program" |
| 9961 | fi |
| 9962 | |
| 9963 | $rm -f confest.$objext |
| 9964 | |
| 9965 | case " $postdeps_CXX " in |
| 9966 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 9967 | esac |
| 9968 | |
| 9969 | lt_prog_compiler_wl_CXX= |
| 9970 | lt_prog_compiler_pic_CXX= |
| 9971 | lt_prog_compiler_static_CXX= |
| 9972 | |
| 9973 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 9974 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 9975 | |
| 9976 | # C++ specific cases for pic, static, wl, etc. |
| 9977 | if test "$GXX" = yes; then |
| 9978 | lt_prog_compiler_wl_CXX='-Wl,' |
| 9979 | lt_prog_compiler_static_CXX='-static' |
| 9980 | |
| 9981 | case $host_os in |
| 9982 | aix*) |
| 9983 | # All AIX code is PIC. |
| 9984 | if test "$host_cpu" = ia64; then |
| 9985 | # AIX 5 now supports IA64 processor |
| 9986 | lt_prog_compiler_static_CXX='-Bstatic' |
| 9987 | fi |
| 9988 | ;; |
| 9989 | amigaos*) |
| 9990 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 9991 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 9992 | # like `-m68040'. |
| 9993 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 9994 | ;; |
| 9995 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 9996 | # PIC is the default for these OSes. |
| 9997 | ;; |
| 9998 | mingw* | os2* | pw32*) |
| 9999 | # This hack is so that the source file can tell whether it is being |
| 10000 | # built for inclusion in a dll (and should export symbols for example). |
| 10001 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 10002 | ;; |
| 10003 | darwin* | rhapsody*) |
| 10004 | # PIC is the default on this platform |
| 10005 | # Common symbols not allowed in MH_DYLIB files |
| 10006 | lt_prog_compiler_pic_CXX='-fno-common' |
| 10007 | ;; |
| 10008 | *djgpp*) |
| 10009 | # DJGPP does not support shared libraries at all |
| 10010 | lt_prog_compiler_pic_CXX= |
| 10011 | ;; |
| 10012 | sysv4*MP*) |
| 10013 | if test -d /usr/nec; then |
| 10014 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 10015 | fi |
| 10016 | ;; |
| 10017 | hpux*) |
| 10018 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10019 | # not for PA HP-UX. |
| 10020 | case "$host_cpu" in |
| 10021 | hppa*64*|ia64*) |
| 10022 | ;; |
| 10023 | *) |
| 10024 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10025 | ;; |
| 10026 | esac |
| 10027 | ;; |
| 10028 | *) |
| 10029 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10030 | ;; |
| 10031 | esac |
| 10032 | else |
| 10033 | case $host_os in |
| 10034 | aix4* | aix5*) |
| 10035 | # All AIX code is PIC. |
| 10036 | if test "$host_cpu" = ia64; then |
| 10037 | # AIX 5 now supports IA64 processor |
| 10038 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10039 | else |
| 10040 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 10041 | fi |
| 10042 | ;; |
| 10043 | chorus*) |
| 10044 | case $cc_basename in |
| 10045 | cxch68) |
| 10046 | # Green Hills C++ Compiler |
| 10047 | # _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" |
| 10048 | ;; |
| 10049 | esac |
| 10050 | ;; |
| 10051 | dgux*) |
| 10052 | case $cc_basename in |
| 10053 | ec++) |
| 10054 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10055 | ;; |
| 10056 | ghcx) |
| 10057 | # Green Hills C++ Compiler |
| 10058 | lt_prog_compiler_pic_CXX='-pic' |
| 10059 | ;; |
| 10060 | *) |
| 10061 | ;; |
| 10062 | esac |
| 10063 | ;; |
| 10064 | freebsd*) |
| 10065 | # FreeBSD uses GNU C++ |
| 10066 | ;; |
| 10067 | hpux9* | hpux10* | hpux11*) |
| 10068 | case $cc_basename in |
| 10069 | CC) |
| 10070 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10071 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10072 | if test "$host_cpu" != ia64; then |
| 10073 | lt_prog_compiler_pic_CXX='+Z' |
| 10074 | fi |
| 10075 | ;; |
| 10076 | aCC) |
| 10077 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10078 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10079 | case "$host_cpu" in |
| 10080 | hppa*64*|ia64*) |
| 10081 | # +Z the default |
| 10082 | ;; |
| 10083 | *) |
| 10084 | lt_prog_compiler_pic_CXX='+Z' |
| 10085 | ;; |
| 10086 | esac |
| 10087 | ;; |
| 10088 | *) |
| 10089 | ;; |
| 10090 | esac |
| 10091 | ;; |
| 10092 | irix5* | irix6* | nonstopux*) |
| 10093 | case $cc_basename in |
| 10094 | CC) |
| 10095 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10096 | lt_prog_compiler_static_CXX='-non_shared' |
| 10097 | # CC pic flag -KPIC is the default. |
| 10098 | ;; |
| 10099 | *) |
| 10100 | ;; |
| 10101 | esac |
| 10102 | ;; |
| 10103 | linux*) |
| 10104 | case $cc_basename in |
| 10105 | KCC) |
| 10106 | # KAI C++ Compiler |
| 10107 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10108 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10109 | ;; |
| 10110 | icpc) |
| 10111 | # Intel C++ |
| 10112 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10113 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10114 | lt_prog_compiler_static_CXX='-static' |
| 10115 | ;; |
| 10116 | cxx) |
| 10117 | # Compaq C++ |
| 10118 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10119 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10120 | lt_prog_compiler_pic_CXX= |
| 10121 | lt_prog_compiler_static_CXX='-non_shared' |
| 10122 | ;; |
| 10123 | *) |
| 10124 | ;; |
| 10125 | esac |
| 10126 | ;; |
| 10127 | lynxos*) |
| 10128 | ;; |
| 10129 | m88k*) |
| 10130 | ;; |
| 10131 | mvs*) |
| 10132 | case $cc_basename in |
| 10133 | cxx) |
| 10134 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 10135 | ;; |
| 10136 | *) |
| 10137 | ;; |
| 10138 | esac |
| 10139 | ;; |
| 10140 | netbsd*) |
| 10141 | ;; |
| 10142 | osf3* | osf4* | osf5*) |
| 10143 | case $cc_basename in |
| 10144 | KCC) |
| 10145 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10146 | ;; |
| 10147 | RCC) |
| 10148 | # Rational C++ 2.4.1 |
| 10149 | lt_prog_compiler_pic_CXX='-pic' |
| 10150 | ;; |
| 10151 | cxx) |
| 10152 | # Digital/Compaq C++ |
| 10153 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10154 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10155 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10156 | lt_prog_compiler_pic_CXX= |
| 10157 | lt_prog_compiler_static_CXX='-non_shared' |
| 10158 | ;; |
| 10159 | *) |
| 10160 | ;; |
| 10161 | esac |
| 10162 | ;; |
| 10163 | psos*) |
| 10164 | ;; |
| 10165 | sco*) |
| 10166 | case $cc_basename in |
| 10167 | CC) |
| 10168 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10169 | ;; |
| 10170 | *) |
| 10171 | ;; |
| 10172 | esac |
| 10173 | ;; |
| 10174 | solaris*) |
| 10175 | case $cc_basename in |
| 10176 | CC) |
| 10177 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10178 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10179 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10180 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 10181 | ;; |
| 10182 | gcx) |
| 10183 | # Green Hills C++ Compiler |
| 10184 | lt_prog_compiler_pic_CXX='-PIC' |
| 10185 | ;; |
| 10186 | *) |
| 10187 | ;; |
| 10188 | esac |
| 10189 | ;; |
| 10190 | sunos4*) |
| 10191 | case $cc_basename in |
| 10192 | CC) |
| 10193 | # Sun C++ 4.x |
| 10194 | lt_prog_compiler_pic_CXX='-pic' |
| 10195 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10196 | ;; |
| 10197 | lcc) |
| 10198 | # Lucid |
| 10199 | lt_prog_compiler_pic_CXX='-pic' |
| 10200 | ;; |
| 10201 | *) |
| 10202 | ;; |
| 10203 | esac |
| 10204 | ;; |
| 10205 | tandem*) |
| 10206 | case $cc_basename in |
| 10207 | NCC) |
| 10208 | # NonStop-UX NCC 3.20 |
| 10209 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10210 | ;; |
| 10211 | *) |
| 10212 | ;; |
| 10213 | esac |
| 10214 | ;; |
| 10215 | unixware*) |
| 10216 | ;; |
| 10217 | vxworks*) |
| 10218 | ;; |
| 10219 | *) |
| 10220 | lt_prog_compiler_can_build_shared_CXX=no |
| 10221 | ;; |
| 10222 | esac |
| 10223 | fi |
| 10224 | |
| 10225 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 10226 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 10227 | |
| 10228 | # |
| 10229 | # Check to make sure the PIC flag actually works. |
| 10230 | # |
| 10231 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 10232 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 10233 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 10234 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 10235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10236 | else |
| 10237 | lt_prog_compiler_pic_works_CXX=no |
| 10238 | ac_outfile=conftest.$ac_objext |
| 10239 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10240 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 10241 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10242 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10243 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10244 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10245 | # The option is referenced via a variable to avoid confusing sed. |
| 10246 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10247 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10248 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10249 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 10250 | (eval echo "\"\$as_me:10250: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10251 | (eval "$lt_compile" 2>conftest.err) |
| 10252 | ac_status=$? |
| 10253 | cat conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 10254 | echo "$as_me:10254: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10255 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10256 | # The compiler can only warn and ignore the option if not recognized |
| 10257 | # So say no if there are warnings |
| 10258 | if test ! -s conftest.err; then |
| 10259 | lt_prog_compiler_pic_works_CXX=yes |
| 10260 | fi |
| 10261 | fi |
| 10262 | $rm conftest* |
| 10263 | |
| 10264 | fi |
| 10265 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 10266 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 10267 | |
| 10268 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 10269 | case $lt_prog_compiler_pic_CXX in |
| 10270 | "" | " "*) ;; |
| 10271 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 10272 | esac |
| 10273 | else |
| 10274 | lt_prog_compiler_pic_CXX= |
| 10275 | lt_prog_compiler_can_build_shared_CXX=no |
| 10276 | fi |
| 10277 | |
| 10278 | fi |
| 10279 | case "$host_os" in |
| 10280 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 10281 | *djgpp*) |
| 10282 | lt_prog_compiler_pic_CXX= |
| 10283 | ;; |
| 10284 | *) |
| 10285 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 10286 | ;; |
| 10287 | esac |
| 10288 | |
| 10289 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10290 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 10291 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 10292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10293 | else |
| 10294 | lt_cv_prog_compiler_c_o_CXX=no |
| 10295 | $rm -r conftest 2>/dev/null |
| 10296 | mkdir conftest |
| 10297 | cd conftest |
| 10298 | mkdir out |
| 10299 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10300 | |
| 10301 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 10302 | # that will create temporary files in the current directory regardless of |
| 10303 | # the output directory. Thus, making CWD read-only will cause this test |
| 10304 | # to fail, enabling locking or at least warning the user not to do parallel |
| 10305 | # builds. |
| 10306 | chmod -w . |
| 10307 | |
| 10308 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10309 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10310 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10311 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10312 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10313 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10314 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10315 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10316 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 10317 | (eval echo "\"\$as_me:10317: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10318 | (eval "$lt_compile" 2>out/conftest.err) |
| 10319 | ac_status=$? |
| 10320 | cat out/conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 10321 | echo "$as_me:10321: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10322 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10323 | then |
| 10324 | # The compiler can only warn and ignore the option if not recognized |
| 10325 | # So say no if there are warnings |
| 10326 | if test ! -s out/conftest.err; then |
| 10327 | lt_cv_prog_compiler_c_o_CXX=yes |
| 10328 | fi |
| 10329 | fi |
| 10330 | chmod u+w . |
| 10331 | $rm conftest* out/* |
| 10332 | rmdir out |
| 10333 | cd .. |
| 10334 | rmdir conftest |
| 10335 | $rm conftest* |
| 10336 | |
| 10337 | fi |
| 10338 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 10339 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 10340 | |
| 10341 | |
| 10342 | hard_links="nottested" |
| 10343 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 10344 | # do not overwrite the value of need_locks provided by the user |
| 10345 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 10346 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 10347 | hard_links=yes |
| 10348 | $rm conftest* |
| 10349 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10350 | touch conftest.a |
| 10351 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10352 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10353 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 10354 | echo "${ECHO_T}$hard_links" >&6 |
| 10355 | if test "$hard_links" = no; then |
| 10356 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 10357 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 10358 | need_locks=warn |
| 10359 | fi |
| 10360 | else |
| 10361 | need_locks=no |
| 10362 | fi |
| 10363 | |
| 10364 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10365 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 10366 | |
| 10367 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10368 | case $host_os in |
| 10369 | aix4* | aix5*) |
| 10370 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10371 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 10372 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 10373 | 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' |
| 10374 | else |
| 10375 | 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' |
| 10376 | fi |
| 10377 | ;; |
| 10378 | pw32*) |
| 10379 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 10380 | ;; |
| 10381 | cygwin* | mingw*) |
| 10382 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 10383 | ;; |
| 10384 | *) |
| 10385 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10386 | ;; |
| 10387 | esac |
| 10388 | |
| 10389 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10390 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10391 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10392 | |
| 10393 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10394 | if test "$GCC" = yes; then |
| 10395 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10396 | fi |
| 10397 | |
| 10398 | # |
| 10399 | # Do we need to explicitly link libc? |
| 10400 | # |
| 10401 | case "x$archive_cmds_need_lc_CXX" in |
| 10402 | x|xyes) |
| 10403 | # Assume -lc should be added |
| 10404 | archive_cmds_need_lc_CXX=yes |
| 10405 | |
| 10406 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10407 | case $archive_cmds_CXX in |
| 10408 | *'~'*) |
| 10409 | # FIXME: we may have to deal with multi-command sequences. |
| 10410 | ;; |
| 10411 | '$CC '*) |
| 10412 | # Test whether the compiler implicitly links with -lc since on some |
| 10413 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10414 | # to ld, don't add -lc before -lgcc. |
| 10415 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 10416 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 10417 | $rm conftest* |
| 10418 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10419 | |
| 10420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10421 | (eval $ac_compile) 2>&5 |
| 10422 | ac_status=$? |
| 10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10424 | (exit $ac_status); } 2>conftest.err; then |
| 10425 | soname=conftest |
| 10426 | lib=conftest |
| 10427 | libobjs=conftest.$ac_objext |
| 10428 | deplibs= |
| 10429 | wl=$lt_prog_compiler_wl_CXX |
| 10430 | compiler_flags=-v |
| 10431 | linker_flags=-v |
| 10432 | verstring= |
| 10433 | output_objdir=. |
| 10434 | libname=conftest |
| 10435 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 10436 | allow_undefined_flag_CXX= |
| 10437 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 10438 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10439 | ac_status=$? |
| 10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10441 | (exit $ac_status); } |
| 10442 | then |
| 10443 | archive_cmds_need_lc_CXX=no |
| 10444 | else |
| 10445 | archive_cmds_need_lc_CXX=yes |
| 10446 | fi |
| 10447 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 10448 | else |
| 10449 | cat conftest.err 1>&5 |
| 10450 | fi |
| 10451 | $rm conftest* |
| 10452 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 10453 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 10454 | ;; |
| 10455 | esac |
| 10456 | fi |
| 10457 | ;; |
| 10458 | esac |
| 10459 | |
| 10460 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 10461 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 10462 | hardcode_action_CXX= |
| 10463 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 10464 | test -n "$runpath_var CXX" || \ |
| 10465 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
| 10466 | |
| 10467 | # We can hardcode non-existant directories. |
| 10468 | if test "$hardcode_direct_CXX" != no && |
| 10469 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10470 | # have to relink, otherwise we might link with an installed library |
| 10471 | # when we should be linking with a yet-to-be-installed one |
| 10472 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 10473 | test "$hardcode_minus_L_CXX" != no; then |
| 10474 | # Linking always hardcodes the temporary library directory. |
| 10475 | hardcode_action_CXX=relink |
| 10476 | else |
| 10477 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10478 | hardcode_action_CXX=immediate |
| 10479 | fi |
| 10480 | else |
| 10481 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10482 | # directories. |
| 10483 | hardcode_action_CXX=unsupported |
| 10484 | fi |
| 10485 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 10486 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 10487 | |
| 10488 | if test "$hardcode_action_CXX" = relink; then |
| 10489 | # Fast installation is not supported |
| 10490 | enable_fast_install=no |
| 10491 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10492 | test "$enable_shared" = no; then |
| 10493 | # Fast installation is not necessary |
| 10494 | enable_fast_install=needless |
| 10495 | fi |
| 10496 | |
| 10497 | striplib= |
| 10498 | old_striplib= |
| 10499 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 10500 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 10501 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 10502 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 10503 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 10504 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10505 | echo "${ECHO_T}yes" >&6 |
| 10506 | else |
| 10507 | # FIXME - insert some real tests, host_os isn't really good enough |
| 10508 | case $host_os in |
| 10509 | darwin*) |
| 10510 | if test -n "$STRIP" ; then |
| 10511 | striplib="$STRIP -x" |
| 10512 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10513 | echo "${ECHO_T}yes" >&6 |
| 10514 | else |
| 10515 | echo "$as_me:$LINENO: result: no" >&5 |
| 10516 | echo "${ECHO_T}no" >&6 |
| 10517 | fi |
| 10518 | ;; |
| 10519 | *) |
| 10520 | echo "$as_me:$LINENO: result: no" >&5 |
| 10521 | echo "${ECHO_T}no" >&6 |
| 10522 | ;; |
| 10523 | esac |
| 10524 | fi |
| 10525 | |
| 10526 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 10527 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 10528 | library_names_spec= |
| 10529 | libname_spec='lib$name' |
| 10530 | soname_spec= |
| 10531 | shrext=".so" |
| 10532 | postinstall_cmds= |
| 10533 | postuninstall_cmds= |
| 10534 | finish_cmds= |
| 10535 | finish_eval= |
| 10536 | shlibpath_var= |
| 10537 | shlibpath_overrides_runpath=unknown |
| 10538 | version_type=none |
| 10539 | dynamic_linker="$host_os ld.so" |
| 10540 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10541 | if test "$GCC" = yes; then |
| 10542 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10543 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 10544 | # if the path contains ";" then we assume it to be the separator |
| 10545 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10546 | # assumed that no part of a normal pathname contains ";" but that should |
| 10547 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10548 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10549 | else |
| 10550 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10551 | fi |
| 10552 | else |
| 10553 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10554 | fi |
| 10555 | need_lib_prefix=unknown |
| 10556 | hardcode_into_libs=no |
| 10557 | |
| 10558 | # when you set need_version to no, make sure it does not cause -set_version |
| 10559 | # flags to be left without arguments |
| 10560 | need_version=unknown |
| 10561 | |
| 10562 | case $host_os in |
| 10563 | aix3*) |
| 10564 | version_type=linux |
| 10565 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10566 | shlibpath_var=LIBPATH |
| 10567 | |
| 10568 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10569 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10570 | ;; |
| 10571 | |
| 10572 | aix4* | aix5*) |
| 10573 | version_type=linux |
| 10574 | need_lib_prefix=no |
| 10575 | need_version=no |
| 10576 | hardcode_into_libs=yes |
| 10577 | if test "$host_cpu" = ia64; then |
| 10578 | # AIX 5 supports IA64 |
| 10579 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10580 | shlibpath_var=LD_LIBRARY_PATH |
| 10581 | else |
| 10582 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10583 | # for dependence libraries. The import file would start with |
| 10584 | # the line `#! .'. This would cause the generated library to |
| 10585 | # depend on `.', always an invalid library. This was fixed in |
| 10586 | # development snapshots of GCC prior to 3.0. |
| 10587 | case $host_os in |
| 10588 | aix4 | aix4.[01] | aix4.[01].*) |
| 10589 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10590 | echo ' yes ' |
| 10591 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 10592 | : |
| 10593 | else |
| 10594 | can_build_shared=no |
| 10595 | fi |
| 10596 | ;; |
| 10597 | esac |
| 10598 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10599 | # soname into executable. Probably we can add versioning support to |
| 10600 | # collect2, so additional links can be useful in future. |
| 10601 | if test "$aix_use_runtimelinking" = yes; then |
| 10602 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10603 | # instead of lib<name>.a to let people know that these are not |
| 10604 | # typical AIX shared libraries. |
| 10605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10606 | else |
| 10607 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10608 | # and later when we are not doing run time linking. |
| 10609 | library_names_spec='${libname}${release}.a $libname.a' |
| 10610 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10611 | fi |
| 10612 | shlibpath_var=LIBPATH |
| 10613 | fi |
| 10614 | ;; |
| 10615 | |
| 10616 | amigaos*) |
| 10617 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10618 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10619 | 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' |
| 10620 | ;; |
| 10621 | |
| 10622 | beos*) |
| 10623 | library_names_spec='${libname}${shared_ext}' |
| 10624 | dynamic_linker="$host_os ld.so" |
| 10625 | shlibpath_var=LIBRARY_PATH |
| 10626 | ;; |
| 10627 | |
| 10628 | bsdi4*) |
| 10629 | version_type=linux |
| 10630 | need_version=no |
| 10631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10632 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10633 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10634 | shlibpath_var=LD_LIBRARY_PATH |
| 10635 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10636 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10637 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10638 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10639 | # libtool to hard-code these into programs |
| 10640 | ;; |
| 10641 | |
| 10642 | cygwin* | mingw* | pw32*) |
| 10643 | version_type=windows |
| 10644 | shrext=".dll" |
| 10645 | need_version=no |
| 10646 | need_lib_prefix=no |
| 10647 | |
| 10648 | case $GCC,$host_os in |
| 10649 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 10650 | library_names_spec='$libname.dll.a' |
| 10651 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10652 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10653 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 10654 | dldir=$destdir/`dirname \$dlpath`~ |
| 10655 | test -d \$dldir || mkdir -p \$dldir~ |
| 10656 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10657 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10658 | dlpath=$dir/\$dldll~ |
| 10659 | $rm \$dlpath' |
| 10660 | shlibpath_overrides_runpath=yes |
| 10661 | |
| 10662 | case $host_os in |
| 10663 | cygwin*) |
| 10664 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10665 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10666 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 10667 | ;; |
| 10668 | mingw*) |
| 10669 | # MinGW DLLs use traditional 'lib' prefix |
| 10670 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10671 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10672 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 10673 | # It is most probably a Windows format PATH printed by |
| 10674 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10675 | # path with ; separators, and with drive letters. We can handle the |
| 10676 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10677 | # especially as we might pass files found there to a mingw objdump, |
| 10678 | # which wouldn't understand a cygwinified path. Ahh. |
| 10679 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10680 | else |
| 10681 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10682 | fi |
| 10683 | ;; |
| 10684 | pw32*) |
| 10685 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10686 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 10687 | ;; |
| 10688 | esac |
| 10689 | ;; |
| 10690 | |
| 10691 | *) |
| 10692 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10693 | ;; |
| 10694 | esac |
| 10695 | dynamic_linker='Win32 ld.exe' |
| 10696 | # FIXME: first we should search . and the directory the executable is in |
| 10697 | shlibpath_var=PATH |
| 10698 | ;; |
| 10699 | |
| 10700 | darwin* | rhapsody*) |
| 10701 | dynamic_linker="$host_os dyld" |
| 10702 | version_type=darwin |
| 10703 | need_lib_prefix=no |
| 10704 | need_version=no |
| 10705 | # FIXME: Relying on posixy $() will cause problems for |
| 10706 | # cross-compilation, but unfortunately the echo tests do not |
| 10707 | # yet detect zsh echo's removal of \ escapes. |
| 10708 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10709 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10710 | shlibpath_overrides_runpath=yes |
| 10711 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10712 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 10713 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 10714 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 10715 | 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"` |
| 10716 | fi |
| 10717 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10718 | ;; |
| 10719 | |
| 10720 | dgux*) |
| 10721 | version_type=linux |
| 10722 | need_lib_prefix=no |
| 10723 | need_version=no |
| 10724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10726 | shlibpath_var=LD_LIBRARY_PATH |
| 10727 | ;; |
| 10728 | |
| 10729 | freebsd1*) |
| 10730 | dynamic_linker=no |
| 10731 | ;; |
| 10732 | |
| 10733 | freebsd*) |
| 10734 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 10735 | version_type=freebsd-$objformat |
| 10736 | case $version_type in |
| 10737 | freebsd-elf*) |
| 10738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10739 | need_version=no |
| 10740 | need_lib_prefix=no |
| 10741 | ;; |
| 10742 | freebsd-*) |
| 10743 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10744 | need_version=yes |
| 10745 | ;; |
| 10746 | esac |
| 10747 | shlibpath_var=LD_LIBRARY_PATH |
| 10748 | case $host_os in |
| 10749 | freebsd2*) |
| 10750 | shlibpath_overrides_runpath=yes |
| 10751 | ;; |
| 10752 | freebsd3.01* | freebsdelf3.01*) |
| 10753 | shlibpath_overrides_runpath=yes |
| 10754 | hardcode_into_libs=yes |
| 10755 | ;; |
| 10756 | *) # from 3.2 on |
| 10757 | shlibpath_overrides_runpath=no |
| 10758 | hardcode_into_libs=yes |
| 10759 | ;; |
| 10760 | esac |
| 10761 | ;; |
| 10762 | |
| 10763 | gnu*) |
| 10764 | version_type=linux |
| 10765 | need_lib_prefix=no |
| 10766 | need_version=no |
| 10767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10769 | shlibpath_var=LD_LIBRARY_PATH |
| 10770 | hardcode_into_libs=yes |
| 10771 | ;; |
| 10772 | |
| 10773 | hpux9* | hpux10* | hpux11*) |
| 10774 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10775 | # link against other versions. |
| 10776 | version_type=sunos |
| 10777 | need_lib_prefix=no |
| 10778 | need_version=no |
| 10779 | case "$host_cpu" in |
| 10780 | ia64*) |
| 10781 | shrext='.so' |
| 10782 | hardcode_into_libs=yes |
| 10783 | dynamic_linker="$host_os dld.so" |
| 10784 | shlibpath_var=LD_LIBRARY_PATH |
| 10785 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10787 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10788 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10789 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10790 | else |
| 10791 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10792 | fi |
| 10793 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10794 | ;; |
| 10795 | hppa*64*) |
| 10796 | shrext='.sl' |
| 10797 | hardcode_into_libs=yes |
| 10798 | dynamic_linker="$host_os dld.sl" |
| 10799 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10800 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10802 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10803 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10804 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10805 | ;; |
| 10806 | *) |
| 10807 | shrext='.sl' |
| 10808 | dynamic_linker="$host_os dld.sl" |
| 10809 | shlibpath_var=SHLIB_PATH |
| 10810 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10812 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10813 | ;; |
| 10814 | esac |
| 10815 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10816 | postinstall_cmds='chmod 555 $lib' |
| 10817 | ;; |
| 10818 | |
| 10819 | irix5* | irix6* | nonstopux*) |
| 10820 | case $host_os in |
| 10821 | nonstopux*) version_type=nonstopux ;; |
| 10822 | *) |
| 10823 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10824 | version_type=linux |
| 10825 | else |
| 10826 | version_type=irix |
| 10827 | fi ;; |
| 10828 | esac |
| 10829 | need_lib_prefix=no |
| 10830 | need_version=no |
| 10831 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10833 | case $host_os in |
| 10834 | irix5* | nonstopux*) |
| 10835 | libsuff= shlibsuff= |
| 10836 | ;; |
| 10837 | *) |
| 10838 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10839 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10840 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10841 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10842 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10843 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10844 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10845 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10846 | esac |
| 10847 | ;; |
| 10848 | esac |
| 10849 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10850 | shlibpath_overrides_runpath=no |
| 10851 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10852 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10853 | hardcode_into_libs=yes |
| 10854 | ;; |
| 10855 | |
| 10856 | # No shared lib support for Linux oldld, aout, or coff. |
| 10857 | linux*oldld* | linux*aout* | linux*coff*) |
| 10858 | dynamic_linker=no |
| 10859 | ;; |
| 10860 | |
| 10861 | # This must be Linux ELF. |
| 10862 | linux*) |
| 10863 | version_type=linux |
| 10864 | need_lib_prefix=no |
| 10865 | need_version=no |
| 10866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10867 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10869 | shlibpath_var=LD_LIBRARY_PATH |
| 10870 | shlibpath_overrides_runpath=no |
| 10871 | # This implies no fast_install, which is unacceptable. |
| 10872 | # Some rework will be needed to allow for fast_install |
| 10873 | # before this can be enabled. |
| 10874 | hardcode_into_libs=yes |
| 10875 | |
| 10876 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10877 | # powerpc, because MkLinux only supported shared libraries with the |
| 10878 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10879 | # most powerpc-linux boxes support dynamic linking these days and |
| 10880 | # people can always --disable-shared, the test was removed, and we |
| 10881 | # assume the GNU/Linux dynamic linker is in use. |
| 10882 | dynamic_linker='GNU/Linux ld.so' |
| 10883 | ;; |
| 10884 | |
| 10885 | netbsd*) |
| 10886 | version_type=sunos |
| 10887 | need_lib_prefix=no |
| 10888 | need_version=no |
| 10889 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10891 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10892 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10893 | else |
| 10894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 10895 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10896 | dynamic_linker='NetBSD ld.elf_so' |
| 10897 | fi |
| 10898 | shlibpath_var=LD_LIBRARY_PATH |
| 10899 | shlibpath_overrides_runpath=yes |
| 10900 | hardcode_into_libs=yes |
| 10901 | ;; |
| 10902 | |
| 10903 | newsos6) |
| 10904 | version_type=linux |
| 10905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10906 | shlibpath_var=LD_LIBRARY_PATH |
| 10907 | shlibpath_overrides_runpath=yes |
| 10908 | ;; |
| 10909 | |
| 10910 | nto-qnx) |
| 10911 | version_type=linux |
| 10912 | need_lib_prefix=no |
| 10913 | need_version=no |
| 10914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10915 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10916 | shlibpath_var=LD_LIBRARY_PATH |
| 10917 | shlibpath_overrides_runpath=yes |
| 10918 | ;; |
| 10919 | |
| 10920 | openbsd*) |
| 10921 | version_type=sunos |
| 10922 | need_lib_prefix=no |
| 10923 | need_version=no |
| 10924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10925 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10926 | shlibpath_var=LD_LIBRARY_PATH |
| 10927 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10928 | case $host_os in |
| 10929 | openbsd2.[89] | openbsd2.[89].*) |
| 10930 | shlibpath_overrides_runpath=no |
| 10931 | ;; |
| 10932 | *) |
| 10933 | shlibpath_overrides_runpath=yes |
| 10934 | ;; |
| 10935 | esac |
| 10936 | else |
| 10937 | shlibpath_overrides_runpath=yes |
| 10938 | fi |
| 10939 | ;; |
| 10940 | |
| 10941 | os2*) |
| 10942 | libname_spec='$name' |
| 10943 | shrext=".dll" |
| 10944 | need_lib_prefix=no |
| 10945 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10946 | dynamic_linker='OS/2 ld.exe' |
| 10947 | shlibpath_var=LIBPATH |
| 10948 | ;; |
| 10949 | |
| 10950 | osf3* | osf4* | osf5*) |
| 10951 | version_type=osf |
| 10952 | need_lib_prefix=no |
| 10953 | need_version=no |
| 10954 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10956 | shlibpath_var=LD_LIBRARY_PATH |
| 10957 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10958 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10959 | ;; |
| 10960 | |
| 10961 | sco3.2v5*) |
| 10962 | version_type=osf |
| 10963 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10965 | shlibpath_var=LD_LIBRARY_PATH |
| 10966 | ;; |
| 10967 | |
| 10968 | solaris*) |
| 10969 | version_type=linux |
| 10970 | need_lib_prefix=no |
| 10971 | need_version=no |
| 10972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10973 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10974 | shlibpath_var=LD_LIBRARY_PATH |
| 10975 | shlibpath_overrides_runpath=yes |
| 10976 | hardcode_into_libs=yes |
| 10977 | # ldd complains unless libraries are executable |
| 10978 | postinstall_cmds='chmod +x $lib' |
| 10979 | ;; |
| 10980 | |
| 10981 | sunos4*) |
| 10982 | version_type=sunos |
| 10983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10984 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10985 | shlibpath_var=LD_LIBRARY_PATH |
| 10986 | shlibpath_overrides_runpath=yes |
| 10987 | if test "$with_gnu_ld" = yes; then |
| 10988 | need_lib_prefix=no |
| 10989 | fi |
| 10990 | need_version=yes |
| 10991 | ;; |
| 10992 | |
| 10993 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10994 | version_type=linux |
| 10995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10996 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10997 | shlibpath_var=LD_LIBRARY_PATH |
| 10998 | case $host_vendor in |
| 10999 | sni) |
| 11000 | shlibpath_overrides_runpath=no |
| 11001 | need_lib_prefix=no |
| 11002 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11003 | runpath_var=LD_RUN_PATH |
| 11004 | ;; |
| 11005 | siemens) |
| 11006 | need_lib_prefix=no |
| 11007 | ;; |
| 11008 | motorola) |
| 11009 | need_lib_prefix=no |
| 11010 | need_version=no |
| 11011 | shlibpath_overrides_runpath=no |
| 11012 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11013 | ;; |
| 11014 | esac |
| 11015 | ;; |
| 11016 | |
| 11017 | sysv4*MP*) |
| 11018 | if test -d /usr/nec ;then |
| 11019 | version_type=linux |
| 11020 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11021 | soname_spec='$libname${shared_ext}.$major' |
| 11022 | shlibpath_var=LD_LIBRARY_PATH |
| 11023 | fi |
| 11024 | ;; |
| 11025 | |
| 11026 | uts4*) |
| 11027 | version_type=linux |
| 11028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11030 | shlibpath_var=LD_LIBRARY_PATH |
| 11031 | ;; |
| 11032 | |
| 11033 | *) |
| 11034 | dynamic_linker=no |
| 11035 | ;; |
| 11036 | esac |
| 11037 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 11038 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11039 | test "$dynamic_linker" = no && can_build_shared=no |
| 11040 | |
| 11041 | if test "x$enable_dlopen" != xyes; then |
| 11042 | enable_dlopen=unknown |
| 11043 | enable_dlopen_self=unknown |
| 11044 | enable_dlopen_self_static=unknown |
| 11045 | else |
| 11046 | lt_cv_dlopen=no |
| 11047 | lt_cv_dlopen_libs= |
| 11048 | |
| 11049 | case $host_os in |
| 11050 | beos*) |
| 11051 | lt_cv_dlopen="load_add_on" |
| 11052 | lt_cv_dlopen_libs= |
| 11053 | lt_cv_dlopen_self=yes |
| 11054 | ;; |
| 11055 | |
| 11056 | mingw* | pw32*) |
| 11057 | lt_cv_dlopen="LoadLibrary" |
| 11058 | lt_cv_dlopen_libs= |
| 11059 | ;; |
| 11060 | |
| 11061 | cygwin*) |
| 11062 | lt_cv_dlopen="dlopen" |
| 11063 | lt_cv_dlopen_libs= |
| 11064 | ;; |
| 11065 | |
| 11066 | darwin*) |
| 11067 | # if libdl is installed we need to link against it |
| 11068 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11069 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11070 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11072 | else |
| 11073 | ac_check_lib_save_LIBS=$LIBS |
| 11074 | LIBS="-ldl $LIBS" |
| 11075 | cat >conftest.$ac_ext <<_ACEOF |
| 11076 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11077 | /* confdefs.h. */ |
| 11078 | _ACEOF |
| 11079 | cat confdefs.h >>conftest.$ac_ext |
| 11080 | cat >>conftest.$ac_ext <<_ACEOF |
| 11081 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11082 | |
| 11083 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11084 | #ifdef __cplusplus |
| 11085 | extern "C" |
| 11086 | #endif |
| 11087 | /* We use char because int might match the return type of a gcc2 |
| 11088 | builtin and then its argument prototype would still apply. */ |
| 11089 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11090 | int |
| 11091 | main () |
| 11092 | { |
| 11093 | dlopen (); |
| 11094 | ; |
| 11095 | return 0; |
| 11096 | } |
| 11097 | _ACEOF |
| 11098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11100 | (eval $ac_link) 2>&5 |
| 11101 | ac_status=$? |
| 11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11103 | (exit $ac_status); } && |
| 11104 | { ac_try='test -s conftest$ac_exeext' |
| 11105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11106 | (eval $ac_try) 2>&5 |
| 11107 | ac_status=$? |
| 11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11109 | (exit $ac_status); }; }; then |
| 11110 | ac_cv_lib_dl_dlopen=yes |
| 11111 | else |
| 11112 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11114 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11115 | ac_cv_lib_dl_dlopen=no |
| 11116 | fi |
| 11117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11118 | LIBS=$ac_check_lib_save_LIBS |
| 11119 | fi |
| 11120 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11121 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11122 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11123 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11124 | else |
| 11125 | |
| 11126 | lt_cv_dlopen="dyld" |
| 11127 | lt_cv_dlopen_libs= |
| 11128 | lt_cv_dlopen_self=yes |
| 11129 | |
| 11130 | fi |
| 11131 | |
| 11132 | ;; |
| 11133 | |
| 11134 | *) |
| 11135 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11136 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11137 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11139 | else |
| 11140 | cat >conftest.$ac_ext <<_ACEOF |
| 11141 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11142 | /* confdefs.h. */ |
| 11143 | _ACEOF |
| 11144 | cat confdefs.h >>conftest.$ac_ext |
| 11145 | cat >>conftest.$ac_ext <<_ACEOF |
| 11146 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11147 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11148 | which can conflict with char shl_load (); below. |
| 11149 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11150 | <limits.h> exists even on freestanding compilers. */ |
| 11151 | #ifdef __STDC__ |
| 11152 | # include <limits.h> |
| 11153 | #else |
| 11154 | # include <assert.h> |
| 11155 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11156 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11157 | #ifdef __cplusplus |
| 11158 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11159 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11160 | #endif |
| 11161 | /* We use char because int might match the return type of a gcc2 |
| 11162 | builtin and then its argument prototype would still apply. */ |
| 11163 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11164 | /* The GNU C library defines this for functions which it implements |
| 11165 | to always fail with ENOSYS. Some functions are actually named |
| 11166 | something starting with __ and the normal name is an alias. */ |
| 11167 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 11168 | choke me |
| 11169 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11170 | char (*f) () = shl_load; |
| 11171 | #endif |
| 11172 | #ifdef __cplusplus |
| 11173 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11174 | #endif |
| 11175 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11176 | int |
| 11177 | main () |
| 11178 | { |
| 11179 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11180 | ; |
| 11181 | return 0; |
| 11182 | } |
| 11183 | _ACEOF |
| 11184 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11186 | (eval $ac_link) 2>&5 |
| 11187 | ac_status=$? |
| 11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11189 | (exit $ac_status); } && |
| 11190 | { ac_try='test -s conftest$ac_exeext' |
| 11191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11192 | (eval $ac_try) 2>&5 |
| 11193 | ac_status=$? |
| 11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11195 | (exit $ac_status); }; }; then |
| 11196 | ac_cv_func_shl_load=yes |
| 11197 | else |
| 11198 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11200 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11201 | ac_cv_func_shl_load=no |
| 11202 | fi |
| 11203 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11204 | fi |
| 11205 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 11206 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 11207 | if test $ac_cv_func_shl_load = yes; then |
| 11208 | lt_cv_dlopen="shl_load" |
| 11209 | else |
| 11210 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11211 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11212 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11214 | else |
| 11215 | ac_check_lib_save_LIBS=$LIBS |
| 11216 | LIBS="-ldld $LIBS" |
| 11217 | cat >conftest.$ac_ext <<_ACEOF |
| 11218 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11219 | /* confdefs.h. */ |
| 11220 | _ACEOF |
| 11221 | cat confdefs.h >>conftest.$ac_ext |
| 11222 | cat >>conftest.$ac_ext <<_ACEOF |
| 11223 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11224 | |
| 11225 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11226 | #ifdef __cplusplus |
| 11227 | extern "C" |
| 11228 | #endif |
| 11229 | /* We use char because int might match the return type of a gcc2 |
| 11230 | builtin and then its argument prototype would still apply. */ |
| 11231 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11232 | int |
| 11233 | main () |
| 11234 | { |
| 11235 | shl_load (); |
| 11236 | ; |
| 11237 | return 0; |
| 11238 | } |
| 11239 | _ACEOF |
| 11240 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11242 | (eval $ac_link) 2>&5 |
| 11243 | ac_status=$? |
| 11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11245 | (exit $ac_status); } && |
| 11246 | { ac_try='test -s conftest$ac_exeext' |
| 11247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11248 | (eval $ac_try) 2>&5 |
| 11249 | ac_status=$? |
| 11250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11251 | (exit $ac_status); }; }; then |
| 11252 | ac_cv_lib_dld_shl_load=yes |
| 11253 | else |
| 11254 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11256 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11257 | ac_cv_lib_dld_shl_load=no |
| 11258 | fi |
| 11259 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11260 | LIBS=$ac_check_lib_save_LIBS |
| 11261 | fi |
| 11262 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11263 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11264 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11265 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 11266 | else |
| 11267 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 11268 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 11269 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11271 | else |
| 11272 | cat >conftest.$ac_ext <<_ACEOF |
| 11273 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11274 | /* confdefs.h. */ |
| 11275 | _ACEOF |
| 11276 | cat confdefs.h >>conftest.$ac_ext |
| 11277 | cat >>conftest.$ac_ext <<_ACEOF |
| 11278 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11279 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11280 | which can conflict with char dlopen (); below. |
| 11281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11282 | <limits.h> exists even on freestanding compilers. */ |
| 11283 | #ifdef __STDC__ |
| 11284 | # include <limits.h> |
| 11285 | #else |
| 11286 | # include <assert.h> |
| 11287 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11288 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11289 | #ifdef __cplusplus |
| 11290 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11291 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11292 | #endif |
| 11293 | /* We use char because int might match the return type of a gcc2 |
| 11294 | builtin and then its argument prototype would still apply. */ |
| 11295 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11296 | /* The GNU C library defines this for functions which it implements |
| 11297 | to always fail with ENOSYS. Some functions are actually named |
| 11298 | something starting with __ and the normal name is an alias. */ |
| 11299 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 11300 | choke me |
| 11301 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11302 | char (*f) () = dlopen; |
| 11303 | #endif |
| 11304 | #ifdef __cplusplus |
| 11305 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11306 | #endif |
| 11307 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11308 | int |
| 11309 | main () |
| 11310 | { |
| 11311 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11312 | ; |
| 11313 | return 0; |
| 11314 | } |
| 11315 | _ACEOF |
| 11316 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11318 | (eval $ac_link) 2>&5 |
| 11319 | ac_status=$? |
| 11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11321 | (exit $ac_status); } && |
| 11322 | { ac_try='test -s conftest$ac_exeext' |
| 11323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11324 | (eval $ac_try) 2>&5 |
| 11325 | ac_status=$? |
| 11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11327 | (exit $ac_status); }; }; then |
| 11328 | ac_cv_func_dlopen=yes |
| 11329 | else |
| 11330 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11332 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11333 | ac_cv_func_dlopen=no |
| 11334 | fi |
| 11335 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11336 | fi |
| 11337 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 11338 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 11339 | if test $ac_cv_func_dlopen = yes; then |
| 11340 | lt_cv_dlopen="dlopen" |
| 11341 | else |
| 11342 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11343 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11344 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11346 | else |
| 11347 | ac_check_lib_save_LIBS=$LIBS |
| 11348 | LIBS="-ldl $LIBS" |
| 11349 | cat >conftest.$ac_ext <<_ACEOF |
| 11350 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11351 | /* confdefs.h. */ |
| 11352 | _ACEOF |
| 11353 | cat confdefs.h >>conftest.$ac_ext |
| 11354 | cat >>conftest.$ac_ext <<_ACEOF |
| 11355 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11356 | |
| 11357 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11358 | #ifdef __cplusplus |
| 11359 | extern "C" |
| 11360 | #endif |
| 11361 | /* We use char because int might match the return type of a gcc2 |
| 11362 | builtin and then its argument prototype would still apply. */ |
| 11363 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11364 | int |
| 11365 | main () |
| 11366 | { |
| 11367 | dlopen (); |
| 11368 | ; |
| 11369 | return 0; |
| 11370 | } |
| 11371 | _ACEOF |
| 11372 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11374 | (eval $ac_link) 2>&5 |
| 11375 | ac_status=$? |
| 11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11377 | (exit $ac_status); } && |
| 11378 | { ac_try='test -s conftest$ac_exeext' |
| 11379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11380 | (eval $ac_try) 2>&5 |
| 11381 | ac_status=$? |
| 11382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11383 | (exit $ac_status); }; }; then |
| 11384 | ac_cv_lib_dl_dlopen=yes |
| 11385 | else |
| 11386 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11388 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11389 | ac_cv_lib_dl_dlopen=no |
| 11390 | fi |
| 11391 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11392 | LIBS=$ac_check_lib_save_LIBS |
| 11393 | fi |
| 11394 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11395 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11396 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11397 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11398 | else |
| 11399 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11400 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 11401 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11403 | else |
| 11404 | ac_check_lib_save_LIBS=$LIBS |
| 11405 | LIBS="-lsvld $LIBS" |
| 11406 | cat >conftest.$ac_ext <<_ACEOF |
| 11407 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11408 | /* confdefs.h. */ |
| 11409 | _ACEOF |
| 11410 | cat confdefs.h >>conftest.$ac_ext |
| 11411 | cat >>conftest.$ac_ext <<_ACEOF |
| 11412 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11413 | |
| 11414 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11415 | #ifdef __cplusplus |
| 11416 | extern "C" |
| 11417 | #endif |
| 11418 | /* We use char because int might match the return type of a gcc2 |
| 11419 | builtin and then its argument prototype would still apply. */ |
| 11420 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11421 | int |
| 11422 | main () |
| 11423 | { |
| 11424 | dlopen (); |
| 11425 | ; |
| 11426 | return 0; |
| 11427 | } |
| 11428 | _ACEOF |
| 11429 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11431 | (eval $ac_link) 2>&5 |
| 11432 | ac_status=$? |
| 11433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11434 | (exit $ac_status); } && |
| 11435 | { ac_try='test -s conftest$ac_exeext' |
| 11436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11437 | (eval $ac_try) 2>&5 |
| 11438 | ac_status=$? |
| 11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11440 | (exit $ac_status); }; }; then |
| 11441 | ac_cv_lib_svld_dlopen=yes |
| 11442 | else |
| 11443 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11445 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11446 | ac_cv_lib_svld_dlopen=no |
| 11447 | fi |
| 11448 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11449 | LIBS=$ac_check_lib_save_LIBS |
| 11450 | fi |
| 11451 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11452 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 11453 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 11454 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11455 | else |
| 11456 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11457 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 11458 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11460 | else |
| 11461 | ac_check_lib_save_LIBS=$LIBS |
| 11462 | LIBS="-ldld $LIBS" |
| 11463 | cat >conftest.$ac_ext <<_ACEOF |
| 11464 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11465 | /* confdefs.h. */ |
| 11466 | _ACEOF |
| 11467 | cat confdefs.h >>conftest.$ac_ext |
| 11468 | cat >>conftest.$ac_ext <<_ACEOF |
| 11469 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11470 | |
| 11471 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11472 | #ifdef __cplusplus |
| 11473 | extern "C" |
| 11474 | #endif |
| 11475 | /* We use char because int might match the return type of a gcc2 |
| 11476 | builtin and then its argument prototype would still apply. */ |
| 11477 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11478 | int |
| 11479 | main () |
| 11480 | { |
| 11481 | dld_link (); |
| 11482 | ; |
| 11483 | return 0; |
| 11484 | } |
| 11485 | _ACEOF |
| 11486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11488 | (eval $ac_link) 2>&5 |
| 11489 | ac_status=$? |
| 11490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11491 | (exit $ac_status); } && |
| 11492 | { ac_try='test -s conftest$ac_exeext' |
| 11493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11494 | (eval $ac_try) 2>&5 |
| 11495 | ac_status=$? |
| 11496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11497 | (exit $ac_status); }; }; then |
| 11498 | ac_cv_lib_dld_dld_link=yes |
| 11499 | else |
| 11500 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 11501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11502 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11503 | ac_cv_lib_dld_dld_link=no |
| 11504 | fi |
| 11505 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11506 | LIBS=$ac_check_lib_save_LIBS |
| 11507 | fi |
| 11508 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11509 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 11510 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 11511 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 11512 | fi |
| 11513 | |
| 11514 | |
| 11515 | fi |
| 11516 | |
| 11517 | |
| 11518 | fi |
| 11519 | |
| 11520 | |
| 11521 | fi |
| 11522 | |
| 11523 | |
| 11524 | fi |
| 11525 | |
| 11526 | |
| 11527 | fi |
| 11528 | |
| 11529 | ;; |
| 11530 | esac |
| 11531 | |
| 11532 | if test "x$lt_cv_dlopen" != xno; then |
| 11533 | enable_dlopen=yes |
| 11534 | else |
| 11535 | enable_dlopen=no |
| 11536 | fi |
| 11537 | |
| 11538 | case $lt_cv_dlopen in |
| 11539 | dlopen) |
| 11540 | save_CPPFLAGS="$CPPFLAGS" |
| 11541 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11542 | |
| 11543 | save_LDFLAGS="$LDFLAGS" |
| 11544 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11545 | |
| 11546 | save_LIBS="$LIBS" |
| 11547 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11548 | |
| 11549 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 11550 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 11551 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 11552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11553 | else |
| 11554 | if test "$cross_compiling" = yes; then : |
| 11555 | lt_cv_dlopen_self=cross |
| 11556 | else |
| 11557 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11558 | lt_status=$lt_dlunknown |
| 11559 | cat > conftest.$ac_ext <<EOF |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 11560 | #line 11560 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11561 | #include "confdefs.h" |
| 11562 | |
| 11563 | #if HAVE_DLFCN_H |
| 11564 | #include <dlfcn.h> |
| 11565 | #endif |
| 11566 | |
| 11567 | #include <stdio.h> |
| 11568 | |
| 11569 | #ifdef RTLD_GLOBAL |
| 11570 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11571 | #else |
| 11572 | # ifdef DL_GLOBAL |
| 11573 | # define LT_DLGLOBAL DL_GLOBAL |
| 11574 | # else |
| 11575 | # define LT_DLGLOBAL 0 |
| 11576 | # endif |
| 11577 | #endif |
| 11578 | |
| 11579 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11580 | find out it does not work in some platform. */ |
| 11581 | #ifndef LT_DLLAZY_OR_NOW |
| 11582 | # ifdef RTLD_LAZY |
| 11583 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11584 | # else |
| 11585 | # ifdef DL_LAZY |
| 11586 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11587 | # else |
| 11588 | # ifdef RTLD_NOW |
| 11589 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11590 | # else |
| 11591 | # ifdef DL_NOW |
| 11592 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11593 | # else |
| 11594 | # define LT_DLLAZY_OR_NOW 0 |
| 11595 | # endif |
| 11596 | # endif |
| 11597 | # endif |
| 11598 | # endif |
| 11599 | #endif |
| 11600 | |
| 11601 | #ifdef __cplusplus |
| 11602 | extern "C" void exit (int); |
| 11603 | #endif |
| 11604 | |
| 11605 | void fnord() { int i=42;} |
| 11606 | int main () |
| 11607 | { |
| 11608 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11609 | int status = $lt_dlunknown; |
| 11610 | |
| 11611 | if (self) |
| 11612 | { |
| 11613 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11614 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11615 | /* dlclose (self); */ |
| 11616 | } |
| 11617 | |
| 11618 | exit (status); |
| 11619 | } |
| 11620 | EOF |
| 11621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11622 | (eval $ac_link) 2>&5 |
| 11623 | ac_status=$? |
| 11624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11625 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11626 | (./conftest; exit; ) 2>/dev/null |
| 11627 | lt_status=$? |
| 11628 | case x$lt_status in |
| 11629 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11630 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11631 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 11632 | esac |
| 11633 | else : |
| 11634 | # compilation failed |
| 11635 | lt_cv_dlopen_self=no |
| 11636 | fi |
| 11637 | fi |
| 11638 | rm -fr conftest* |
| 11639 | |
| 11640 | |
| 11641 | fi |
| 11642 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 11643 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 11644 | |
| 11645 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11646 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 11647 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 11648 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 11649 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 11650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11651 | else |
| 11652 | if test "$cross_compiling" = yes; then : |
| 11653 | lt_cv_dlopen_self_static=cross |
| 11654 | else |
| 11655 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11656 | lt_status=$lt_dlunknown |
| 11657 | cat > conftest.$ac_ext <<EOF |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 11658 | #line 11658 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11659 | #include "confdefs.h" |
| 11660 | |
| 11661 | #if HAVE_DLFCN_H |
| 11662 | #include <dlfcn.h> |
| 11663 | #endif |
| 11664 | |
| 11665 | #include <stdio.h> |
| 11666 | |
| 11667 | #ifdef RTLD_GLOBAL |
| 11668 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11669 | #else |
| 11670 | # ifdef DL_GLOBAL |
| 11671 | # define LT_DLGLOBAL DL_GLOBAL |
| 11672 | # else |
| 11673 | # define LT_DLGLOBAL 0 |
| 11674 | # endif |
| 11675 | #endif |
| 11676 | |
| 11677 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11678 | find out it does not work in some platform. */ |
| 11679 | #ifndef LT_DLLAZY_OR_NOW |
| 11680 | # ifdef RTLD_LAZY |
| 11681 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11682 | # else |
| 11683 | # ifdef DL_LAZY |
| 11684 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11685 | # else |
| 11686 | # ifdef RTLD_NOW |
| 11687 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11688 | # else |
| 11689 | # ifdef DL_NOW |
| 11690 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11691 | # else |
| 11692 | # define LT_DLLAZY_OR_NOW 0 |
| 11693 | # endif |
| 11694 | # endif |
| 11695 | # endif |
| 11696 | # endif |
| 11697 | #endif |
| 11698 | |
| 11699 | #ifdef __cplusplus |
| 11700 | extern "C" void exit (int); |
| 11701 | #endif |
| 11702 | |
| 11703 | void fnord() { int i=42;} |
| 11704 | int main () |
| 11705 | { |
| 11706 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11707 | int status = $lt_dlunknown; |
| 11708 | |
| 11709 | if (self) |
| 11710 | { |
| 11711 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11712 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11713 | /* dlclose (self); */ |
| 11714 | } |
| 11715 | |
| 11716 | exit (status); |
| 11717 | } |
| 11718 | EOF |
| 11719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11720 | (eval $ac_link) 2>&5 |
| 11721 | ac_status=$? |
| 11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11723 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11724 | (./conftest; exit; ) 2>/dev/null |
| 11725 | lt_status=$? |
| 11726 | case x$lt_status in |
| 11727 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11728 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11729 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11730 | esac |
| 11731 | else : |
| 11732 | # compilation failed |
| 11733 | lt_cv_dlopen_self_static=no |
| 11734 | fi |
| 11735 | fi |
| 11736 | rm -fr conftest* |
| 11737 | |
| 11738 | |
| 11739 | fi |
| 11740 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 11741 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 11742 | fi |
| 11743 | |
| 11744 | CPPFLAGS="$save_CPPFLAGS" |
| 11745 | LDFLAGS="$save_LDFLAGS" |
| 11746 | LIBS="$save_LIBS" |
| 11747 | ;; |
| 11748 | esac |
| 11749 | |
| 11750 | case $lt_cv_dlopen_self in |
| 11751 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11752 | *) enable_dlopen_self=unknown ;; |
| 11753 | esac |
| 11754 | |
| 11755 | case $lt_cv_dlopen_self_static in |
| 11756 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11757 | *) enable_dlopen_self_static=unknown ;; |
| 11758 | esac |
| 11759 | fi |
| 11760 | |
| 11761 | |
| 11762 | # The else clause should only fire when bootstrapping the |
| 11763 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 11764 | # with your package, and you will get complaints that there are |
| 11765 | # no rules to generate ltmain.sh. |
| 11766 | if test -f "$ltmain"; then |
| 11767 | # See if we are running on zsh, and set the options which allow our commands through |
| 11768 | # without removal of \ escapes. |
| 11769 | if test -n "${ZSH_VERSION+set}" ; then |
| 11770 | setopt NO_GLOB_SUBST |
| 11771 | fi |
| 11772 | # Now quote all the things that may contain metacharacters while being |
| 11773 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 11774 | # variables and quote the copies for generation of the libtool script. |
| 11775 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 11776 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 11777 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 11778 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 11779 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 11780 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 11781 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 11782 | old_postinstall_cmds old_postuninstall_cmds \ |
| 11783 | compiler_CXX \ |
| 11784 | CC_CXX \ |
| 11785 | LD_CXX \ |
| 11786 | lt_prog_compiler_wl_CXX \ |
| 11787 | lt_prog_compiler_pic_CXX \ |
| 11788 | lt_prog_compiler_static_CXX \ |
| 11789 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 11790 | export_dynamic_flag_spec_CXX \ |
| 11791 | thread_safe_flag_spec_CXX \ |
| 11792 | whole_archive_flag_spec_CXX \ |
| 11793 | enable_shared_with_static_runtimes_CXX \ |
| 11794 | old_archive_cmds_CXX \ |
| 11795 | old_archive_from_new_cmds_CXX \ |
| 11796 | predep_objects_CXX \ |
| 11797 | postdep_objects_CXX \ |
| 11798 | predeps_CXX \ |
| 11799 | postdeps_CXX \ |
| 11800 | compiler_lib_search_path_CXX \ |
| 11801 | archive_cmds_CXX \ |
| 11802 | archive_expsym_cmds_CXX \ |
| 11803 | postinstall_cmds_CXX \ |
| 11804 | postuninstall_cmds_CXX \ |
| 11805 | old_archive_from_expsyms_cmds_CXX \ |
| 11806 | allow_undefined_flag_CXX \ |
| 11807 | no_undefined_flag_CXX \ |
| 11808 | export_symbols_cmds_CXX \ |
| 11809 | hardcode_libdir_flag_spec_CXX \ |
| 11810 | hardcode_libdir_flag_spec_ld_CXX \ |
| 11811 | hardcode_libdir_separator_CXX \ |
| 11812 | hardcode_automatic_CXX \ |
| 11813 | module_cmds_CXX \ |
| 11814 | module_expsym_cmds_CXX \ |
| 11815 | lt_cv_prog_compiler_c_o_CXX \ |
| 11816 | exclude_expsyms_CXX \ |
| 11817 | include_expsyms_CXX; do |
| 11818 | |
| 11819 | case $var in |
| 11820 | old_archive_cmds_CXX | \ |
| 11821 | old_archive_from_new_cmds_CXX | \ |
| 11822 | archive_cmds_CXX | \ |
| 11823 | archive_expsym_cmds_CXX | \ |
| 11824 | module_cmds_CXX | \ |
| 11825 | module_expsym_cmds_CXX | \ |
| 11826 | old_archive_from_expsyms_cmds_CXX | \ |
| 11827 | export_symbols_cmds_CXX | \ |
| 11828 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 11829 | postinstall_cmds | postuninstall_cmds | \ |
| 11830 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 11831 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 11832 | # Double-quote double-evaled strings. |
| 11833 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 11834 | ;; |
| 11835 | *) |
| 11836 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 11837 | ;; |
| 11838 | esac |
| 11839 | done |
| 11840 | |
| 11841 | case $lt_echo in |
| 11842 | *'\$0 --fallback-echo"') |
| 11843 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 11844 | ;; |
| 11845 | esac |
| 11846 | |
| 11847 | cfgfile="$ofile" |
| 11848 | |
| 11849 | cat <<__EOF__ >> "$cfgfile" |
| 11850 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 11851 | |
| 11852 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 11853 | |
| 11854 | # Shell to use when invoking shell scripts. |
| 11855 | SHELL=$lt_SHELL |
| 11856 | |
| 11857 | # Whether or not to build shared libraries. |
| 11858 | build_libtool_libs=$enable_shared |
| 11859 | |
| 11860 | # Whether or not to build static libraries. |
| 11861 | build_old_libs=$enable_static |
| 11862 | |
| 11863 | # Whether or not to add -lc for building shared libraries. |
| 11864 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 11865 | |
| 11866 | # Whether or not to disallow shared libs when runtime libs are static |
| 11867 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 11868 | |
| 11869 | # Whether or not to optimize for fast installation. |
| 11870 | fast_install=$enable_fast_install |
| 11871 | |
| 11872 | # The host system. |
| 11873 | host_alias=$host_alias |
| 11874 | host=$host |
| 11875 | |
| 11876 | # An echo program that does not interpret backslashes. |
| 11877 | echo=$lt_echo |
| 11878 | |
| 11879 | # The archiver. |
| 11880 | AR=$lt_AR |
| 11881 | AR_FLAGS=$lt_AR_FLAGS |
| 11882 | |
| 11883 | # A C compiler. |
| 11884 | LTCC=$lt_LTCC |
| 11885 | |
| 11886 | # A language-specific compiler. |
| 11887 | CC=$lt_compiler_CXX |
| 11888 | |
| 11889 | # Is the compiler the GNU C compiler? |
| 11890 | with_gcc=$GCC_CXX |
| 11891 | |
| 11892 | # An ERE matcher. |
| 11893 | EGREP=$lt_EGREP |
| 11894 | |
| 11895 | # The linker used to build libraries. |
| 11896 | LD=$lt_LD_CXX |
| 11897 | |
| 11898 | # Whether we need hard or soft links. |
| 11899 | LN_S=$lt_LN_S |
| 11900 | |
| 11901 | # A BSD-compatible nm program. |
| 11902 | NM=$lt_NM |
| 11903 | |
| 11904 | # A symbol stripping program |
| 11905 | STRIP=$STRIP |
| 11906 | |
| 11907 | # Used to examine libraries when file_magic_cmd begins "file" |
| 11908 | MAGIC_CMD=$MAGIC_CMD |
| 11909 | |
| 11910 | # Used on cygwin: DLL creation program. |
| 11911 | DLLTOOL="$DLLTOOL" |
| 11912 | |
| 11913 | # Used on cygwin: object dumper. |
| 11914 | OBJDUMP="$OBJDUMP" |
| 11915 | |
| 11916 | # Used on cygwin: assembler. |
| 11917 | AS="$AS" |
| 11918 | |
| 11919 | # The name of the directory that contains temporary libtool files. |
| 11920 | objdir=$objdir |
| 11921 | |
| 11922 | # How to create reloadable object files. |
| 11923 | reload_flag=$lt_reload_flag |
| 11924 | reload_cmds=$lt_reload_cmds |
| 11925 | |
| 11926 | # How to pass a linker flag through the compiler. |
| 11927 | wl=$lt_lt_prog_compiler_wl_CXX |
| 11928 | |
| 11929 | # Object file suffix (normally "o"). |
| 11930 | objext="$ac_objext" |
| 11931 | |
| 11932 | # Old archive suffix (normally "a"). |
| 11933 | libext="$libext" |
| 11934 | |
| 11935 | # Shared library suffix (normally ".so"). |
| 11936 | shrext='$shrext' |
| 11937 | |
| 11938 | # Executable file suffix (normally ""). |
| 11939 | exeext="$exeext" |
| 11940 | |
| 11941 | # Additional compiler flags for building library objects. |
| 11942 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 11943 | pic_mode=$pic_mode |
| 11944 | |
| 11945 | # What is the maximum length of a command? |
| 11946 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 11947 | |
| 11948 | # Does compiler simultaneously support -c and -o options? |
| 11949 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 11950 | |
| 11951 | # Must we lock files when doing compilation ? |
| 11952 | need_locks=$lt_need_locks |
| 11953 | |
| 11954 | # Do we need the lib prefix for modules? |
| 11955 | need_lib_prefix=$need_lib_prefix |
| 11956 | |
| 11957 | # Do we need a version for libraries? |
| 11958 | need_version=$need_version |
| 11959 | |
| 11960 | # Whether dlopen is supported. |
| 11961 | dlopen_support=$enable_dlopen |
| 11962 | |
| 11963 | # Whether dlopen of programs is supported. |
| 11964 | dlopen_self=$enable_dlopen_self |
| 11965 | |
| 11966 | # Whether dlopen of statically linked programs is supported. |
| 11967 | dlopen_self_static=$enable_dlopen_self_static |
| 11968 | |
| 11969 | # Compiler flag to prevent dynamic linking. |
| 11970 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 11971 | |
| 11972 | # Compiler flag to turn off builtin functions. |
| 11973 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 11974 | |
| 11975 | # Compiler flag to allow reflexive dlopens. |
| 11976 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 11977 | |
| 11978 | # Compiler flag to generate shared objects directly from archives. |
| 11979 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 11980 | |
| 11981 | # Compiler flag to generate thread-safe objects. |
| 11982 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 11983 | |
| 11984 | # Library versioning type. |
| 11985 | version_type=$version_type |
| 11986 | |
| 11987 | # Format of library name prefix. |
| 11988 | libname_spec=$lt_libname_spec |
| 11989 | |
| 11990 | # List of archive names. First name is the real one, the rest are links. |
| 11991 | # The last name is the one that the linker finds with -lNAME. |
| 11992 | library_names_spec=$lt_library_names_spec |
| 11993 | |
| 11994 | # The coded name of the library, if different from the real name. |
| 11995 | soname_spec=$lt_soname_spec |
| 11996 | |
| 11997 | # Commands used to build and install an old-style archive. |
| 11998 | RANLIB=$lt_RANLIB |
| 11999 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12000 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12001 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12002 | |
| 12003 | # Create an old-style archive from a shared archive. |
| 12004 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12005 | |
| 12006 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12007 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12008 | |
| 12009 | # Commands used to build and install a shared archive. |
| 12010 | archive_cmds=$lt_archive_cmds_CXX |
| 12011 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12012 | postinstall_cmds=$lt_postinstall_cmds |
| 12013 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12014 | |
| 12015 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12016 | module_cmds=$lt_module_cmds_CXX |
| 12017 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12018 | |
| 12019 | # Commands to strip libraries. |
| 12020 | old_striplib=$lt_old_striplib |
| 12021 | striplib=$lt_striplib |
| 12022 | |
| 12023 | # Dependencies to place before the objects being linked to create a |
| 12024 | # shared library. |
| 12025 | predep_objects=$lt_predep_objects_CXX |
| 12026 | |
| 12027 | # Dependencies to place after the objects being linked to create a |
| 12028 | # shared library. |
| 12029 | postdep_objects=$lt_postdep_objects_CXX |
| 12030 | |
| 12031 | # Dependencies to place before the objects being linked to create a |
| 12032 | # shared library. |
| 12033 | predeps=$lt_predeps_CXX |
| 12034 | |
| 12035 | # Dependencies to place after the objects being linked to create a |
| 12036 | # shared library. |
| 12037 | postdeps=$lt_postdeps_CXX |
| 12038 | |
| 12039 | # The library search path used internally by the compiler when linking |
| 12040 | # a shared library. |
| 12041 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12042 | |
| 12043 | # Method to check whether dependent libraries are shared objects. |
| 12044 | deplibs_check_method=$lt_deplibs_check_method |
| 12045 | |
| 12046 | # Command to use when deplibs_check_method == file_magic. |
| 12047 | file_magic_cmd=$lt_file_magic_cmd |
| 12048 | |
| 12049 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12050 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12051 | |
| 12052 | # Flag that forces no undefined symbols. |
| 12053 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12054 | |
| 12055 | # Commands used to finish a libtool library installation in a directory. |
| 12056 | finish_cmds=$lt_finish_cmds |
| 12057 | |
| 12058 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12059 | finish_eval=$lt_finish_eval |
| 12060 | |
| 12061 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12062 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12063 | |
| 12064 | # Transform the output of nm in a proper C declaration |
| 12065 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12066 | |
| 12067 | # Transform the output of nm in a C name address pair |
| 12068 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12069 | |
| 12070 | # This is the shared library runtime path variable. |
| 12071 | runpath_var=$runpath_var |
| 12072 | |
| 12073 | # This is the shared library path variable. |
| 12074 | shlibpath_var=$shlibpath_var |
| 12075 | |
| 12076 | # Is shlibpath searched before the hard-coded library search path? |
| 12077 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12078 | |
| 12079 | # How to hardcode a shared library path into an executable. |
| 12080 | hardcode_action=$hardcode_action_CXX |
| 12081 | |
| 12082 | # Whether we should hardcode library paths into libraries. |
| 12083 | hardcode_into_libs=$hardcode_into_libs |
| 12084 | |
| 12085 | # Flag to hardcode \$libdir into a binary during linking. |
| 12086 | # This must work even if \$libdir does not exist. |
| 12087 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 12088 | |
| 12089 | # If ld is used when linking, flag to hardcode \$libdir into |
| 12090 | # a binary during linking. This must work even if \$libdir does |
| 12091 | # not exist. |
| 12092 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 12093 | |
| 12094 | # Whether we need a single -rpath flag with a separated argument. |
| 12095 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 12096 | |
| 12097 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 12098 | # resulting binary. |
| 12099 | hardcode_direct=$hardcode_direct_CXX |
| 12100 | |
| 12101 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 12102 | # resulting binary. |
| 12103 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 12104 | |
| 12105 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 12106 | # the resulting binary. |
| 12107 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 12108 | |
| 12109 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 12110 | # and all subsequent libraries and executables linked against it. |
| 12111 | hardcode_automatic=$hardcode_automatic_CXX |
| 12112 | |
| 12113 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12114 | # restored at relink time. |
| 12115 | variables_saved_for_relink="$variables_saved_for_relink" |
| 12116 | |
| 12117 | # Whether libtool must link a program against all its dependency libraries. |
| 12118 | link_all_deplibs=$link_all_deplibs_CXX |
| 12119 | |
| 12120 | # Compile-time system search path for libraries |
| 12121 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 12122 | |
| 12123 | # Run-time system search path for libraries |
| 12124 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 12125 | |
| 12126 | # Fix the shell variable \$srcfile for the compiler. |
| 12127 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 12128 | |
| 12129 | # Set to yes if exported symbols are required. |
| 12130 | always_export_symbols=$always_export_symbols_CXX |
| 12131 | |
| 12132 | # The commands to list exported symbols. |
| 12133 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 12134 | |
| 12135 | # The commands to extract the exported symbol list from a shared archive. |
| 12136 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 12137 | |
| 12138 | # Symbols that should not be listed in the preloaded symbols. |
| 12139 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 12140 | |
| 12141 | # Symbols that must always be exported. |
| 12142 | include_expsyms=$lt_include_expsyms_CXX |
| 12143 | |
| 12144 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 12145 | |
| 12146 | __EOF__ |
| 12147 | |
| 12148 | |
| 12149 | else |
| 12150 | # If there is no Makefile yet, we rely on a make rule to execute |
| 12151 | # `config.status --recheck' to rerun these tests and create the |
| 12152 | # libtool script then. |
| 12153 | test -f Makefile && make "$ltmain" |
| 12154 | fi |
| 12155 | |
| 12156 | |
| 12157 | ac_ext=c |
| 12158 | ac_cpp='$CPP $CPPFLAGS' |
| 12159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12162 | |
| 12163 | CC=$lt_save_CC |
| 12164 | LDCXX=$LD |
| 12165 | LD=$lt_save_LD |
| 12166 | GCC=$lt_save_GCC |
| 12167 | with_gnu_ldcxx=$with_gnu_ld |
| 12168 | with_gnu_ld=$lt_save_with_gnu_ld |
| 12169 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 12170 | lt_cv_path_LD=$lt_save_path_LD |
| 12171 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 12172 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 12173 | |
| 12174 | else |
| 12175 | tagname="" |
| 12176 | fi |
| 12177 | ;; |
| 12178 | |
| 12179 | F77) |
| 12180 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 12181 | |
| 12182 | ac_ext=f |
| 12183 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12184 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12185 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12186 | |
| 12187 | |
| 12188 | archive_cmds_need_lc_F77=no |
| 12189 | allow_undefined_flag_F77= |
| 12190 | always_export_symbols_F77=no |
| 12191 | archive_expsym_cmds_F77= |
| 12192 | export_dynamic_flag_spec_F77= |
| 12193 | hardcode_direct_F77=no |
| 12194 | hardcode_libdir_flag_spec_F77= |
| 12195 | hardcode_libdir_flag_spec_ld_F77= |
| 12196 | hardcode_libdir_separator_F77= |
| 12197 | hardcode_minus_L_F77=no |
| 12198 | hardcode_automatic_F77=no |
| 12199 | module_cmds_F77= |
| 12200 | module_expsym_cmds_F77= |
| 12201 | link_all_deplibs_F77=unknown |
| 12202 | old_archive_cmds_F77=$old_archive_cmds |
| 12203 | no_undefined_flag_F77= |
| 12204 | whole_archive_flag_spec_F77= |
| 12205 | enable_shared_with_static_runtimes_F77=no |
| 12206 | |
| 12207 | # Source file extension for f77 test sources. |
| 12208 | ac_ext=f |
| 12209 | |
| 12210 | # Object file extension for compiled f77 test sources. |
| 12211 | objext=o |
| 12212 | objext_F77=$objext |
| 12213 | |
| 12214 | # Code to be used in simple compile tests |
| 12215 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 12216 | |
| 12217 | # Code to be used in simple link tests |
| 12218 | lt_simple_link_test_code=" program t\n end\n" |
| 12219 | |
| 12220 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12221 | |
| 12222 | # If no C compiler was specified, use CC. |
| 12223 | LTCC=${LTCC-"$CC"} |
| 12224 | |
| 12225 | # Allow CC to be a program name with arguments. |
| 12226 | compiler=$CC |
| 12227 | |
| 12228 | |
| 12229 | # Allow CC to be a program name with arguments. |
| 12230 | lt_save_CC="$CC" |
| 12231 | CC=${F77-"f77"} |
| 12232 | compiler=$CC |
| 12233 | compiler_F77=$CC |
| 12234 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 12235 | |
| 12236 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 12237 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 12238 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 12239 | echo "${ECHO_T}$can_build_shared" >&6 |
| 12240 | |
| 12241 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 12242 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 12243 | test "$can_build_shared" = "no" && enable_shared=no |
| 12244 | |
| 12245 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12246 | # are all built from PIC. |
| 12247 | case "$host_os" in |
| 12248 | aix3*) |
| 12249 | test "$enable_shared" = yes && enable_static=no |
| 12250 | if test -n "$RANLIB"; then |
| 12251 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12252 | postinstall_cmds='$RANLIB $lib' |
| 12253 | fi |
| 12254 | ;; |
| 12255 | aix4*) |
| 12256 | test "$enable_shared" = yes && enable_static=no |
| 12257 | ;; |
| 12258 | esac |
| 12259 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 12260 | echo "${ECHO_T}$enable_shared" >&6 |
| 12261 | |
| 12262 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 12263 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 12264 | # Make sure either enable_shared or enable_static is yes. |
| 12265 | test "$enable_shared" = yes || enable_static=yes |
| 12266 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 12267 | echo "${ECHO_T}$enable_static" >&6 |
| 12268 | |
| 12269 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 12270 | |
| 12271 | GCC_F77="$G77" |
| 12272 | LD_F77="$LD" |
| 12273 | |
| 12274 | lt_prog_compiler_wl_F77= |
| 12275 | lt_prog_compiler_pic_F77= |
| 12276 | lt_prog_compiler_static_F77= |
| 12277 | |
| 12278 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12279 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 12280 | |
| 12281 | if test "$GCC" = yes; then |
| 12282 | lt_prog_compiler_wl_F77='-Wl,' |
| 12283 | lt_prog_compiler_static_F77='-static' |
| 12284 | |
| 12285 | case $host_os in |
| 12286 | aix*) |
| 12287 | # All AIX code is PIC. |
| 12288 | if test "$host_cpu" = ia64; then |
| 12289 | # AIX 5 now supports IA64 processor |
| 12290 | lt_prog_compiler_static_F77='-Bstatic' |
| 12291 | fi |
| 12292 | ;; |
| 12293 | |
| 12294 | amigaos*) |
| 12295 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12296 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12297 | # like `-m68040'. |
| 12298 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 12299 | ;; |
| 12300 | |
| 12301 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12302 | # PIC is the default for these OSes. |
| 12303 | ;; |
| 12304 | |
| 12305 | mingw* | pw32* | os2*) |
| 12306 | # This hack is so that the source file can tell whether it is being |
| 12307 | # built for inclusion in a dll (and should export symbols for example). |
| 12308 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12309 | ;; |
| 12310 | |
| 12311 | darwin* | rhapsody*) |
| 12312 | # PIC is the default on this platform |
| 12313 | # Common symbols not allowed in MH_DYLIB files |
| 12314 | lt_prog_compiler_pic_F77='-fno-common' |
| 12315 | ;; |
| 12316 | |
| 12317 | msdosdjgpp*) |
| 12318 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12319 | # on systems that don't support them. |
| 12320 | lt_prog_compiler_can_build_shared_F77=no |
| 12321 | enable_shared=no |
| 12322 | ;; |
| 12323 | |
| 12324 | sysv4*MP*) |
| 12325 | if test -d /usr/nec; then |
| 12326 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 12327 | fi |
| 12328 | ;; |
| 12329 | |
| 12330 | hpux*) |
| 12331 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12332 | # not for PA HP-UX. |
| 12333 | case "$host_cpu" in |
| 12334 | hppa*64*|ia64*) |
| 12335 | # +Z the default |
| 12336 | ;; |
| 12337 | *) |
| 12338 | lt_prog_compiler_pic_F77='-fPIC' |
| 12339 | ;; |
| 12340 | esac |
| 12341 | ;; |
| 12342 | |
| 12343 | *) |
| 12344 | lt_prog_compiler_pic_F77='-fPIC' |
| 12345 | ;; |
| 12346 | esac |
| 12347 | else |
| 12348 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 12349 | case $host_os in |
| 12350 | aix*) |
| 12351 | lt_prog_compiler_wl_F77='-Wl,' |
| 12352 | if test "$host_cpu" = ia64; then |
| 12353 | # AIX 5 now supports IA64 processor |
| 12354 | lt_prog_compiler_static_F77='-Bstatic' |
| 12355 | else |
| 12356 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 12357 | fi |
| 12358 | ;; |
| 12359 | |
| 12360 | mingw* | pw32* | os2*) |
| 12361 | # This hack is so that the source file can tell whether it is being |
| 12362 | # built for inclusion in a dll (and should export symbols for example). |
| 12363 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12364 | ;; |
| 12365 | |
| 12366 | hpux9* | hpux10* | hpux11*) |
| 12367 | lt_prog_compiler_wl_F77='-Wl,' |
| 12368 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12369 | # not for PA HP-UX. |
| 12370 | case "$host_cpu" in |
| 12371 | hppa*64*|ia64*) |
| 12372 | # +Z the default |
| 12373 | ;; |
| 12374 | *) |
| 12375 | lt_prog_compiler_pic_F77='+Z' |
| 12376 | ;; |
| 12377 | esac |
| 12378 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12379 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 12380 | ;; |
| 12381 | |
| 12382 | irix5* | irix6* | nonstopux*) |
| 12383 | lt_prog_compiler_wl_F77='-Wl,' |
| 12384 | # PIC (with -KPIC) is the default. |
| 12385 | lt_prog_compiler_static_F77='-non_shared' |
| 12386 | ;; |
| 12387 | |
| 12388 | newsos6) |
| 12389 | lt_prog_compiler_pic_F77='-KPIC' |
| 12390 | lt_prog_compiler_static_F77='-Bstatic' |
| 12391 | ;; |
| 12392 | |
| 12393 | linux*) |
| 12394 | case $CC in |
| 12395 | icc|ecc) |
| 12396 | lt_prog_compiler_wl_F77='-Wl,' |
| 12397 | lt_prog_compiler_pic_F77='-KPIC' |
| 12398 | lt_prog_compiler_static_F77='-static' |
| 12399 | ;; |
| 12400 | ccc) |
| 12401 | lt_prog_compiler_wl_F77='-Wl,' |
| 12402 | # All Alpha code is PIC. |
| 12403 | lt_prog_compiler_static_F77='-non_shared' |
| 12404 | ;; |
| 12405 | esac |
| 12406 | ;; |
| 12407 | |
| 12408 | osf3* | osf4* | osf5*) |
| 12409 | lt_prog_compiler_wl_F77='-Wl,' |
| 12410 | # All OSF/1 code is PIC. |
| 12411 | lt_prog_compiler_static_F77='-non_shared' |
| 12412 | ;; |
| 12413 | |
| 12414 | sco3.2v5*) |
| 12415 | lt_prog_compiler_pic_F77='-Kpic' |
| 12416 | lt_prog_compiler_static_F77='-dn' |
| 12417 | ;; |
| 12418 | |
| 12419 | solaris*) |
| 12420 | lt_prog_compiler_wl_F77='-Wl,' |
| 12421 | lt_prog_compiler_pic_F77='-KPIC' |
| 12422 | lt_prog_compiler_static_F77='-Bstatic' |
| 12423 | ;; |
| 12424 | |
| 12425 | sunos4*) |
| 12426 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 12427 | lt_prog_compiler_pic_F77='-PIC' |
| 12428 | lt_prog_compiler_static_F77='-Bstatic' |
| 12429 | ;; |
| 12430 | |
| 12431 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12432 | lt_prog_compiler_wl_F77='-Wl,' |
| 12433 | lt_prog_compiler_pic_F77='-KPIC' |
| 12434 | lt_prog_compiler_static_F77='-Bstatic' |
| 12435 | ;; |
| 12436 | |
| 12437 | sysv4*MP*) |
| 12438 | if test -d /usr/nec ;then |
| 12439 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 12440 | lt_prog_compiler_static_F77='-Bstatic' |
| 12441 | fi |
| 12442 | ;; |
| 12443 | |
| 12444 | uts4*) |
| 12445 | lt_prog_compiler_pic_F77='-pic' |
| 12446 | lt_prog_compiler_static_F77='-Bstatic' |
| 12447 | ;; |
| 12448 | |
| 12449 | *) |
| 12450 | lt_prog_compiler_can_build_shared_F77=no |
| 12451 | ;; |
| 12452 | esac |
| 12453 | fi |
| 12454 | |
| 12455 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 12456 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 12457 | |
| 12458 | # |
| 12459 | # Check to make sure the PIC flag actually works. |
| 12460 | # |
| 12461 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 12462 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 12463 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 12464 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 12465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12466 | else |
| 12467 | lt_prog_compiler_pic_works_F77=no |
| 12468 | ac_outfile=conftest.$ac_objext |
| 12469 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12470 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 12471 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12472 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12473 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12474 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12475 | # The option is referenced via a variable to avoid confusing sed. |
| 12476 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12477 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12478 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12479 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 12480 | (eval echo "\"\$as_me:12480: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12481 | (eval "$lt_compile" 2>conftest.err) |
| 12482 | ac_status=$? |
| 12483 | cat conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 12484 | echo "$as_me:12484: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12485 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12486 | # The compiler can only warn and ignore the option if not recognized |
| 12487 | # So say no if there are warnings |
| 12488 | if test ! -s conftest.err; then |
| 12489 | lt_prog_compiler_pic_works_F77=yes |
| 12490 | fi |
| 12491 | fi |
| 12492 | $rm conftest* |
| 12493 | |
| 12494 | fi |
| 12495 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 12496 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 12497 | |
| 12498 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 12499 | case $lt_prog_compiler_pic_F77 in |
| 12500 | "" | " "*) ;; |
| 12501 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 12502 | esac |
| 12503 | else |
| 12504 | lt_prog_compiler_pic_F77= |
| 12505 | lt_prog_compiler_can_build_shared_F77=no |
| 12506 | fi |
| 12507 | |
| 12508 | fi |
| 12509 | case "$host_os" in |
| 12510 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12511 | *djgpp*) |
| 12512 | lt_prog_compiler_pic_F77= |
| 12513 | ;; |
| 12514 | *) |
| 12515 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 12516 | ;; |
| 12517 | esac |
| 12518 | |
| 12519 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12520 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 12521 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 12522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12523 | else |
| 12524 | lt_cv_prog_compiler_c_o_F77=no |
| 12525 | $rm -r conftest 2>/dev/null |
| 12526 | mkdir conftest |
| 12527 | cd conftest |
| 12528 | mkdir out |
| 12529 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12530 | |
| 12531 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 12532 | # that will create temporary files in the current directory regardless of |
| 12533 | # the output directory. Thus, making CWD read-only will cause this test |
| 12534 | # to fail, enabling locking or at least warning the user not to do parallel |
| 12535 | # builds. |
| 12536 | chmod -w . |
| 12537 | |
| 12538 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12539 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12540 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12541 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12542 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12543 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12544 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12545 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12546 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 12547 | (eval echo "\"\$as_me:12547: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12548 | (eval "$lt_compile" 2>out/conftest.err) |
| 12549 | ac_status=$? |
| 12550 | cat out/conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 12551 | echo "$as_me:12551: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12552 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12553 | then |
| 12554 | # The compiler can only warn and ignore the option if not recognized |
| 12555 | # So say no if there are warnings |
| 12556 | if test ! -s out/conftest.err; then |
| 12557 | lt_cv_prog_compiler_c_o_F77=yes |
| 12558 | fi |
| 12559 | fi |
| 12560 | chmod u+w . |
| 12561 | $rm conftest* out/* |
| 12562 | rmdir out |
| 12563 | cd .. |
| 12564 | rmdir conftest |
| 12565 | $rm conftest* |
| 12566 | |
| 12567 | fi |
| 12568 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 12569 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 12570 | |
| 12571 | |
| 12572 | hard_links="nottested" |
| 12573 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 12574 | # do not overwrite the value of need_locks provided by the user |
| 12575 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12576 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 12577 | hard_links=yes |
| 12578 | $rm conftest* |
| 12579 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12580 | touch conftest.a |
| 12581 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12582 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12583 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12584 | echo "${ECHO_T}$hard_links" >&6 |
| 12585 | if test "$hard_links" = no; then |
| 12586 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12587 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12588 | need_locks=warn |
| 12589 | fi |
| 12590 | else |
| 12591 | need_locks=no |
| 12592 | fi |
| 12593 | |
| 12594 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12595 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12596 | |
| 12597 | runpath_var= |
| 12598 | allow_undefined_flag_F77= |
| 12599 | enable_shared_with_static_runtimes_F77=no |
| 12600 | archive_cmds_F77= |
| 12601 | archive_expsym_cmds_F77= |
| 12602 | old_archive_From_new_cmds_F77= |
| 12603 | old_archive_from_expsyms_cmds_F77= |
| 12604 | export_dynamic_flag_spec_F77= |
| 12605 | whole_archive_flag_spec_F77= |
| 12606 | thread_safe_flag_spec_F77= |
| 12607 | hardcode_libdir_flag_spec_F77= |
| 12608 | hardcode_libdir_flag_spec_ld_F77= |
| 12609 | hardcode_libdir_separator_F77= |
| 12610 | hardcode_direct_F77=no |
| 12611 | hardcode_minus_L_F77=no |
| 12612 | hardcode_shlibpath_var_F77=unsupported |
| 12613 | link_all_deplibs_F77=unknown |
| 12614 | hardcode_automatic_F77=no |
| 12615 | module_cmds_F77= |
| 12616 | module_expsym_cmds_F77= |
| 12617 | always_export_symbols_F77=no |
| 12618 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12619 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12620 | # included in the symbol list |
| 12621 | include_expsyms_F77= |
| 12622 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12623 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12624 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12625 | # as well as any symbol that contains `d'. |
| 12626 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 12627 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12628 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12629 | # the symbol is explicitly referenced. Since portable code cannot |
| 12630 | # rely on this symbol name, it's probably fine to never include it in |
| 12631 | # preloaded symbol tables. |
| 12632 | extract_expsyms_cmds= |
| 12633 | |
| 12634 | case $host_os in |
| 12635 | cygwin* | mingw* | pw32*) |
| 12636 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12637 | # When not using gcc, we currently assume that we are using |
| 12638 | # Microsoft Visual C++. |
| 12639 | if test "$GCC" != yes; then |
| 12640 | with_gnu_ld=no |
| 12641 | fi |
| 12642 | ;; |
| 12643 | openbsd*) |
| 12644 | with_gnu_ld=no |
| 12645 | ;; |
| 12646 | esac |
| 12647 | |
| 12648 | ld_shlibs_F77=yes |
| 12649 | if test "$with_gnu_ld" = yes; then |
| 12650 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12651 | wlarc='${wl}' |
| 12652 | |
| 12653 | # See if GNU ld supports shared libraries. |
| 12654 | case $host_os in |
| 12655 | aix3* | aix4* | aix5*) |
| 12656 | # On AIX/PPC, the GNU linker is very broken |
| 12657 | if test "$host_cpu" != ia64; then |
| 12658 | ld_shlibs_F77=no |
| 12659 | cat <<EOF 1>&2 |
| 12660 | |
| 12661 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12662 | *** to be unable to reliably create shared libraries on AIX. |
| 12663 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12664 | *** really care for shared libraries, you may want to modify your PATH |
| 12665 | *** so that a non-GNU linker is found, and then restart. |
| 12666 | |
| 12667 | EOF |
| 12668 | fi |
| 12669 | ;; |
| 12670 | |
| 12671 | amigaos*) |
| 12672 | 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)' |
| 12673 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12674 | hardcode_minus_L_F77=yes |
| 12675 | |
| 12676 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 12677 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 12678 | # to version 4, is to share data among multiple programs linked |
| 12679 | # with the same dynamic library. Since this doesn't match the |
| 12680 | # behavior of shared libraries on other platforms, we can't use |
| 12681 | # them. |
| 12682 | ld_shlibs_F77=no |
| 12683 | ;; |
| 12684 | |
| 12685 | beos*) |
| 12686 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12687 | allow_undefined_flag_F77=unsupported |
| 12688 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12689 | # support --undefined. This deserves some investigation. FIXME |
| 12690 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12691 | else |
| 12692 | ld_shlibs_F77=no |
| 12693 | fi |
| 12694 | ;; |
| 12695 | |
| 12696 | cygwin* | mingw* | pw32*) |
| 12697 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 12698 | # as there is no search path for DLLs. |
| 12699 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12700 | allow_undefined_flag_F77=unsupported |
| 12701 | always_export_symbols_F77=no |
| 12702 | enable_shared_with_static_runtimes_F77=yes |
| 12703 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12704 | |
| 12705 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12706 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12707 | # If the export-symbols file already is a .def file (1st line |
| 12708 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12709 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12710 | cp $export_symbols $output_objdir/$soname.def; |
| 12711 | else |
| 12712 | echo EXPORTS > $output_objdir/$soname.def; |
| 12713 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12714 | fi~ |
| 12715 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12716 | else |
| 12717 | ld_shlibs=no |
| 12718 | fi |
| 12719 | ;; |
| 12720 | |
| 12721 | netbsd*) |
| 12722 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12723 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12724 | wlarc= |
| 12725 | else |
| 12726 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12727 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12728 | fi |
| 12729 | ;; |
| 12730 | |
| 12731 | solaris* | sysv5*) |
| 12732 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 12733 | ld_shlibs_F77=no |
| 12734 | cat <<EOF 1>&2 |
| 12735 | |
| 12736 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12737 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12738 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12739 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12740 | *** your PATH or compiler configuration so that the native linker is |
| 12741 | *** used, and then restart. |
| 12742 | |
| 12743 | EOF |
| 12744 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12745 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12746 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12747 | else |
| 12748 | ld_shlibs_F77=no |
| 12749 | fi |
| 12750 | ;; |
| 12751 | |
| 12752 | sunos4*) |
| 12753 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12754 | wlarc= |
| 12755 | hardcode_direct_F77=yes |
| 12756 | hardcode_shlibpath_var_F77=no |
| 12757 | ;; |
| 12758 | |
| 12759 | *) |
| 12760 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12761 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12762 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12763 | else |
| 12764 | ld_shlibs_F77=no |
| 12765 | fi |
| 12766 | ;; |
| 12767 | esac |
| 12768 | |
| 12769 | if test "$ld_shlibs_F77" = yes; then |
| 12770 | runpath_var=LD_RUN_PATH |
| 12771 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 12772 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 12773 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12774 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 12775 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12776 | else |
| 12777 | whole_archive_flag_spec_F77= |
| 12778 | fi |
| 12779 | fi |
| 12780 | else |
| 12781 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12782 | case $host_os in |
| 12783 | aix3*) |
| 12784 | allow_undefined_flag_F77=unsupported |
| 12785 | always_export_symbols_F77=yes |
| 12786 | 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' |
| 12787 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12788 | # are no directories specified by -L. |
| 12789 | hardcode_minus_L_F77=yes |
| 12790 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 12791 | # Neither direct hardcoding nor static linking is supported with a |
| 12792 | # broken collect2. |
| 12793 | hardcode_direct_F77=unsupported |
| 12794 | fi |
| 12795 | ;; |
| 12796 | |
| 12797 | aix4* | aix5*) |
| 12798 | if test "$host_cpu" = ia64; then |
| 12799 | # On IA64, the linker does run time linking by default, so we don't |
| 12800 | # have to do anything special. |
| 12801 | aix_use_runtimelinking=no |
| 12802 | exp_sym_flag='-Bexport' |
| 12803 | no_entry_flag="" |
| 12804 | else |
| 12805 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12806 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12807 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12808 | 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' |
| 12809 | else |
| 12810 | 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' |
| 12811 | fi |
| 12812 | aix_use_runtimelinking=no |
| 12813 | |
| 12814 | # Test if we are trying to use run time linking or normal |
| 12815 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12816 | # need to do runtime linking. |
| 12817 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 12818 | for ld_flag in $LDFLAGS; do |
| 12819 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 12820 | aix_use_runtimelinking=yes |
| 12821 | break |
| 12822 | fi |
| 12823 | done |
| 12824 | esac |
| 12825 | |
| 12826 | exp_sym_flag='-bexport' |
| 12827 | no_entry_flag='-bnoentry' |
| 12828 | fi |
| 12829 | |
| 12830 | # When large executables or shared objects are built, AIX ld can |
| 12831 | # have problems creating the table of contents. If linking a library |
| 12832 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12833 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12834 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12835 | |
| 12836 | archive_cmds_F77='' |
| 12837 | hardcode_direct_F77=yes |
| 12838 | hardcode_libdir_separator_F77=':' |
| 12839 | link_all_deplibs_F77=yes |
| 12840 | |
| 12841 | if test "$GCC" = yes; then |
| 12842 | case $host_os in aix4.012|aix4.012.*) |
| 12843 | # We only want to do this on AIX 4.2 and lower, the check |
| 12844 | # below for broken collect2 doesn't work under 4.3+ |
| 12845 | collect2name=`${CC} -print-prog-name=collect2` |
| 12846 | if test -f "$collect2name" && \ |
| 12847 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 12848 | then |
| 12849 | # We have reworked collect2 |
| 12850 | hardcode_direct_F77=yes |
| 12851 | else |
| 12852 | # We have old collect2 |
| 12853 | hardcode_direct_F77=unsupported |
| 12854 | # It fails to find uninstalled libraries when the uninstalled |
| 12855 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12856 | # to unsupported forces relinking |
| 12857 | hardcode_minus_L_F77=yes |
| 12858 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12859 | hardcode_libdir_separator_F77= |
| 12860 | fi |
| 12861 | esac |
| 12862 | shared_flag='-shared' |
| 12863 | else |
| 12864 | # not using gcc |
| 12865 | if test "$host_cpu" = ia64; then |
| 12866 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12867 | # chokes on -Wl,-G. The following line is correct: |
| 12868 | shared_flag='-G' |
| 12869 | else |
| 12870 | if test "$aix_use_runtimelinking" = yes; then |
| 12871 | shared_flag='${wl}-G' |
| 12872 | else |
| 12873 | shared_flag='${wl}-bM:SRE' |
| 12874 | fi |
| 12875 | fi |
| 12876 | fi |
| 12877 | |
| 12878 | # It seems that -bexpall does not export symbols beginning with |
| 12879 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12880 | always_export_symbols_F77=yes |
| 12881 | if test "$aix_use_runtimelinking" = yes; then |
| 12882 | # Warning - without using the other runtime loading flags (-brtl), |
| 12883 | # -berok will link without error, but may produce a broken library. |
| 12884 | allow_undefined_flag_F77='-berok' |
| 12885 | # Determine the default libpath from the value encoded in an empty executable. |
| 12886 | cat >conftest.$ac_ext <<_ACEOF |
| 12887 | program main |
| 12888 | |
| 12889 | end |
| 12890 | _ACEOF |
| 12891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12893 | (eval $ac_link) 2>&5 |
| 12894 | ac_status=$? |
| 12895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12896 | (exit $ac_status); } && |
| 12897 | { ac_try='test -s conftest$ac_exeext' |
| 12898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12899 | (eval $ac_try) 2>&5 |
| 12900 | ac_status=$? |
| 12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12902 | (exit $ac_status); }; }; then |
| 12903 | |
| 12904 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12905 | }'` |
| 12906 | # Check for a 64-bit object if we didn't find anything. |
| 12907 | 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; } |
| 12908 | }'`; fi |
| 12909 | else |
| 12910 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 12911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12912 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12913 | fi |
| 12914 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12915 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12916 | |
| 12917 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12918 | 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" |
| 12919 | else |
| 12920 | if test "$host_cpu" = ia64; then |
| 12921 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 12922 | allow_undefined_flag_F77="-z nodefs" |
| 12923 | 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" |
| 12924 | else |
| 12925 | # Determine the default libpath from the value encoded in an empty executable. |
| 12926 | cat >conftest.$ac_ext <<_ACEOF |
| 12927 | program main |
| 12928 | |
| 12929 | end |
| 12930 | _ACEOF |
| 12931 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12933 | (eval $ac_link) 2>&5 |
| 12934 | ac_status=$? |
| 12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12936 | (exit $ac_status); } && |
| 12937 | { ac_try='test -s conftest$ac_exeext' |
| 12938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12939 | (eval $ac_try) 2>&5 |
| 12940 | ac_status=$? |
| 12941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12942 | (exit $ac_status); }; }; then |
| 12943 | |
| 12944 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12945 | }'` |
| 12946 | # Check for a 64-bit object if we didn't find anything. |
| 12947 | 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; } |
| 12948 | }'`; fi |
| 12949 | else |
| 12950 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 12951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12952 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12953 | fi |
| 12954 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12955 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12956 | |
| 12957 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12958 | # Warning - without using the other run time loading flags, |
| 12959 | # -berok will link without error, but may produce a broken library. |
| 12960 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 12961 | allow_undefined_flag_F77=' ${wl}-berok' |
| 12962 | # -bexpall does not export symbols beginning with underscore (_) |
| 12963 | always_export_symbols_F77=yes |
| 12964 | # Exported symbols can be pulled into shared objects from archives |
| 12965 | whole_archive_flag_spec_F77=' ' |
| 12966 | archive_cmds_need_lc_F77=yes |
| 12967 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 12968 | 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' |
| 12969 | fi |
| 12970 | fi |
| 12971 | ;; |
| 12972 | |
| 12973 | amigaos*) |
| 12974 | 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)' |
| 12975 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12976 | hardcode_minus_L_F77=yes |
| 12977 | # see comment about different semantics on the GNU ld section |
| 12978 | ld_shlibs_F77=no |
| 12979 | ;; |
| 12980 | |
| 12981 | bsdi4*) |
| 12982 | export_dynamic_flag_spec_F77=-rdynamic |
| 12983 | ;; |
| 12984 | |
| 12985 | cygwin* | mingw* | pw32*) |
| 12986 | # When not using gcc, we currently assume that we are using |
| 12987 | # Microsoft Visual C++. |
| 12988 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12989 | # no search path for DLLs. |
| 12990 | hardcode_libdir_flag_spec_F77=' ' |
| 12991 | allow_undefined_flag_F77=unsupported |
| 12992 | # Tell ltmain to make .lib files, not .a files. |
| 12993 | libext=lib |
| 12994 | # Tell ltmain to make .dll files, not .so files. |
| 12995 | shrext=".dll" |
| 12996 | # FIXME: Setting linknames here is a bad hack. |
| 12997 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 12998 | # The linker will automatically build a .lib file if we build a DLL. |
| 12999 | old_archive_From_new_cmds_F77='true' |
| 13000 | # FIXME: Should let the user specify the lib program. |
| 13001 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13002 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13003 | enable_shared_with_static_runtimes_F77=yes |
| 13004 | ;; |
| 13005 | |
| 13006 | darwin* | rhapsody*) |
| 13007 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 13008 | archive_cmds_need_lc_F77=no |
| 13009 | case "$host_os" in |
| 13010 | rhapsody* | darwin1.[012]) |
| 13011 | allow_undefined_flag_F77='-undefined suppress' |
| 13012 | ;; |
| 13013 | *) # Darwin 1.3 on |
| 13014 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13015 | ;; |
| 13016 | esac |
| 13017 | # FIXME: Relying on posixy $() will cause problems for |
| 13018 | # cross-compilation, but unfortunately the echo tests do not |
| 13019 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 13020 | # `"' quotes if we put them in here... so don't! |
| 13021 | lt_int_apple_cc_single_mod=no |
| 13022 | output_verbose_link_cmd='echo' |
| 13023 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 13024 | lt_int_apple_cc_single_mod=yes |
| 13025 | fi |
| 13026 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13027 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13028 | else |
| 13029 | 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' |
| 13030 | fi |
| 13031 | module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 13032 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 13033 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13034 | 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}' |
| 13035 | else |
| 13036 | 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}' |
| 13037 | fi |
| 13038 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13039 | hardcode_direct_F77=no |
| 13040 | hardcode_automatic_F77=yes |
| 13041 | hardcode_shlibpath_var_F77=unsupported |
| 13042 | whole_archive_flag_spec_F77='-all_load $convenience' |
| 13043 | link_all_deplibs_F77=yes |
| 13044 | fi |
| 13045 | ;; |
| 13046 | |
| 13047 | dgux*) |
| 13048 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13049 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13050 | hardcode_shlibpath_var_F77=no |
| 13051 | ;; |
| 13052 | |
| 13053 | freebsd1*) |
| 13054 | ld_shlibs_F77=no |
| 13055 | ;; |
| 13056 | |
| 13057 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13058 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13059 | # does not break anything, and helps significantly (at the cost of a little |
| 13060 | # extra space). |
| 13061 | freebsd2.2*) |
| 13062 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13063 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13064 | hardcode_direct_F77=yes |
| 13065 | hardcode_shlibpath_var_F77=no |
| 13066 | ;; |
| 13067 | |
| 13068 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13069 | freebsd2*) |
| 13070 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13071 | hardcode_direct_F77=yes |
| 13072 | hardcode_minus_L_F77=yes |
| 13073 | hardcode_shlibpath_var_F77=no |
| 13074 | ;; |
| 13075 | |
| 13076 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 13077 | freebsd*) |
| 13078 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 13079 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13080 | hardcode_direct_F77=yes |
| 13081 | hardcode_shlibpath_var_F77=no |
| 13082 | ;; |
| 13083 | |
| 13084 | hpux9*) |
| 13085 | if test "$GCC" = yes; then |
| 13086 | 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' |
| 13087 | else |
| 13088 | 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' |
| 13089 | fi |
| 13090 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13091 | hardcode_libdir_separator_F77=: |
| 13092 | hardcode_direct_F77=yes |
| 13093 | |
| 13094 | # hardcode_minus_L: Not really in the search PATH, |
| 13095 | # but as the default location of the library. |
| 13096 | hardcode_minus_L_F77=yes |
| 13097 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13098 | ;; |
| 13099 | |
| 13100 | hpux10* | hpux11*) |
| 13101 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13102 | case "$host_cpu" in |
| 13103 | hppa*64*|ia64*) |
| 13104 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13105 | ;; |
| 13106 | *) |
| 13107 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13108 | ;; |
| 13109 | esac |
| 13110 | else |
| 13111 | case "$host_cpu" in |
| 13112 | hppa*64*|ia64*) |
| 13113 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13114 | ;; |
| 13115 | *) |
| 13116 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13117 | ;; |
| 13118 | esac |
| 13119 | fi |
| 13120 | if test "$with_gnu_ld" = no; then |
| 13121 | case "$host_cpu" in |
| 13122 | hppa*64*) |
| 13123 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13124 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 13125 | hardcode_libdir_separator_F77=: |
| 13126 | hardcode_direct_F77=no |
| 13127 | hardcode_shlibpath_var_F77=no |
| 13128 | ;; |
| 13129 | ia64*) |
| 13130 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13131 | hardcode_direct_F77=no |
| 13132 | hardcode_shlibpath_var_F77=no |
| 13133 | |
| 13134 | # hardcode_minus_L: Not really in the search PATH, |
| 13135 | # but as the default location of the library. |
| 13136 | hardcode_minus_L_F77=yes |
| 13137 | ;; |
| 13138 | *) |
| 13139 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13140 | hardcode_libdir_separator_F77=: |
| 13141 | hardcode_direct_F77=yes |
| 13142 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13143 | |
| 13144 | # hardcode_minus_L: Not really in the search PATH, |
| 13145 | # but as the default location of the library. |
| 13146 | hardcode_minus_L_F77=yes |
| 13147 | ;; |
| 13148 | esac |
| 13149 | fi |
| 13150 | ;; |
| 13151 | |
| 13152 | irix5* | irix6* | nonstopux*) |
| 13153 | if test "$GCC" = yes; then |
| 13154 | 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' |
| 13155 | else |
| 13156 | 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' |
| 13157 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 13158 | fi |
| 13159 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13160 | hardcode_libdir_separator_F77=: |
| 13161 | link_all_deplibs_F77=yes |
| 13162 | ;; |
| 13163 | |
| 13164 | netbsd*) |
| 13165 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13166 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13167 | else |
| 13168 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13169 | fi |
| 13170 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13171 | hardcode_direct_F77=yes |
| 13172 | hardcode_shlibpath_var_F77=no |
| 13173 | ;; |
| 13174 | |
| 13175 | newsos6) |
| 13176 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13177 | hardcode_direct_F77=yes |
| 13178 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13179 | hardcode_libdir_separator_F77=: |
| 13180 | hardcode_shlibpath_var_F77=no |
| 13181 | ;; |
| 13182 | |
| 13183 | openbsd*) |
| 13184 | hardcode_direct_F77=yes |
| 13185 | hardcode_shlibpath_var_F77=no |
| 13186 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13187 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13188 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13189 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13190 | else |
| 13191 | case $host_os in |
| 13192 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13193 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13194 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13195 | ;; |
| 13196 | *) |
| 13197 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13198 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13199 | ;; |
| 13200 | esac |
| 13201 | fi |
| 13202 | ;; |
| 13203 | |
| 13204 | os2*) |
| 13205 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13206 | hardcode_minus_L_F77=yes |
| 13207 | allow_undefined_flag_F77=unsupported |
| 13208 | 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' |
| 13209 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 13210 | ;; |
| 13211 | |
| 13212 | osf3*) |
| 13213 | if test "$GCC" = yes; then |
| 13214 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13215 | 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' |
| 13216 | else |
| 13217 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13218 | 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' |
| 13219 | fi |
| 13220 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13221 | hardcode_libdir_separator_F77=: |
| 13222 | ;; |
| 13223 | |
| 13224 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13225 | if test "$GCC" = yes; then |
| 13226 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13227 | 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' |
| 13228 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13229 | else |
| 13230 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13231 | 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' |
| 13232 | 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~ |
| 13233 | $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' |
| 13234 | |
| 13235 | # Both c and cxx compiler support -rpath directly |
| 13236 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 13237 | fi |
| 13238 | hardcode_libdir_separator_F77=: |
| 13239 | ;; |
| 13240 | |
| 13241 | sco3.2v5*) |
| 13242 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13243 | hardcode_shlibpath_var_F77=no |
| 13244 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 13245 | runpath_var=LD_RUN_PATH |
| 13246 | hardcode_runpath_var=yes |
| 13247 | ;; |
| 13248 | |
| 13249 | solaris*) |
| 13250 | no_undefined_flag_F77=' -z text' |
| 13251 | if test "$GCC" = yes; then |
| 13252 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13253 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13254 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 13255 | else |
| 13256 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13257 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13258 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13259 | fi |
| 13260 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13261 | hardcode_shlibpath_var_F77=no |
| 13262 | case $host_os in |
| 13263 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13264 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13265 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 13266 | esac |
| 13267 | link_all_deplibs_F77=yes |
| 13268 | ;; |
| 13269 | |
| 13270 | sunos4*) |
| 13271 | if test "x$host_vendor" = xsequent; then |
| 13272 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13273 | # files that make .init and .fini sections work. |
| 13274 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13275 | else |
| 13276 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13277 | fi |
| 13278 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13279 | hardcode_direct_F77=yes |
| 13280 | hardcode_minus_L_F77=yes |
| 13281 | hardcode_shlibpath_var_F77=no |
| 13282 | ;; |
| 13283 | |
| 13284 | sysv4) |
| 13285 | case $host_vendor in |
| 13286 | sni) |
| 13287 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13288 | hardcode_direct_F77=yes # is this really true??? |
| 13289 | ;; |
| 13290 | siemens) |
| 13291 | ## LD is ld it makes a PLAMLIB |
| 13292 | ## CC just makes a GrossModule. |
| 13293 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13294 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 13295 | hardcode_direct_F77=no |
| 13296 | ;; |
| 13297 | motorola) |
| 13298 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13299 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 13300 | ;; |
| 13301 | esac |
| 13302 | runpath_var='LD_RUN_PATH' |
| 13303 | hardcode_shlibpath_var_F77=no |
| 13304 | ;; |
| 13305 | |
| 13306 | sysv4.3*) |
| 13307 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13308 | hardcode_shlibpath_var_F77=no |
| 13309 | export_dynamic_flag_spec_F77='-Bexport' |
| 13310 | ;; |
| 13311 | |
| 13312 | sysv4*MP*) |
| 13313 | if test -d /usr/nec; then |
| 13314 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13315 | hardcode_shlibpath_var_F77=no |
| 13316 | runpath_var=LD_RUN_PATH |
| 13317 | hardcode_runpath_var=yes |
| 13318 | ld_shlibs_F77=yes |
| 13319 | fi |
| 13320 | ;; |
| 13321 | |
| 13322 | sysv4.2uw2*) |
| 13323 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13324 | hardcode_direct_F77=yes |
| 13325 | hardcode_minus_L_F77=no |
| 13326 | hardcode_shlibpath_var_F77=no |
| 13327 | hardcode_runpath_var=yes |
| 13328 | runpath_var=LD_RUN_PATH |
| 13329 | ;; |
| 13330 | |
| 13331 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 13332 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 13333 | if test "$GCC" = yes; then |
| 13334 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13335 | else |
| 13336 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13337 | fi |
| 13338 | runpath_var='LD_RUN_PATH' |
| 13339 | hardcode_shlibpath_var_F77=no |
| 13340 | ;; |
| 13341 | |
| 13342 | sysv5*) |
| 13343 | no_undefined_flag_F77=' -z text' |
| 13344 | # $CC -shared without GNU ld will not create a library from C++ |
| 13345 | # object files and a static libstdc++, better avoid it by now |
| 13346 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13347 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13348 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13349 | hardcode_libdir_flag_spec_F77= |
| 13350 | hardcode_shlibpath_var_F77=no |
| 13351 | runpath_var='LD_RUN_PATH' |
| 13352 | ;; |
| 13353 | |
| 13354 | uts4*) |
| 13355 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13356 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13357 | hardcode_shlibpath_var_F77=no |
| 13358 | ;; |
| 13359 | |
| 13360 | *) |
| 13361 | ld_shlibs_F77=no |
| 13362 | ;; |
| 13363 | esac |
| 13364 | fi |
| 13365 | |
| 13366 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 13367 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 13368 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13369 | |
| 13370 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13371 | if test "$GCC" = yes; then |
| 13372 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13373 | fi |
| 13374 | |
| 13375 | # |
| 13376 | # Do we need to explicitly link libc? |
| 13377 | # |
| 13378 | case "x$archive_cmds_need_lc_F77" in |
| 13379 | x|xyes) |
| 13380 | # Assume -lc should be added |
| 13381 | archive_cmds_need_lc_F77=yes |
| 13382 | |
| 13383 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13384 | case $archive_cmds_F77 in |
| 13385 | *'~'*) |
| 13386 | # FIXME: we may have to deal with multi-command sequences. |
| 13387 | ;; |
| 13388 | '$CC '*) |
| 13389 | # Test whether the compiler implicitly links with -lc since on some |
| 13390 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13391 | # to ld, don't add -lc before -lgcc. |
| 13392 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13393 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13394 | $rm conftest* |
| 13395 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13396 | |
| 13397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13398 | (eval $ac_compile) 2>&5 |
| 13399 | ac_status=$? |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); } 2>conftest.err; then |
| 13402 | soname=conftest |
| 13403 | lib=conftest |
| 13404 | libobjs=conftest.$ac_objext |
| 13405 | deplibs= |
| 13406 | wl=$lt_prog_compiler_wl_F77 |
| 13407 | compiler_flags=-v |
| 13408 | linker_flags=-v |
| 13409 | verstring= |
| 13410 | output_objdir=. |
| 13411 | libname=conftest |
| 13412 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 13413 | allow_undefined_flag_F77= |
| 13414 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13415 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13416 | ac_status=$? |
| 13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13418 | (exit $ac_status); } |
| 13419 | then |
| 13420 | archive_cmds_need_lc_F77=no |
| 13421 | else |
| 13422 | archive_cmds_need_lc_F77=yes |
| 13423 | fi |
| 13424 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 13425 | else |
| 13426 | cat conftest.err 1>&5 |
| 13427 | fi |
| 13428 | $rm conftest* |
| 13429 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 13430 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 13431 | ;; |
| 13432 | esac |
| 13433 | fi |
| 13434 | ;; |
| 13435 | esac |
| 13436 | |
| 13437 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13438 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 13439 | hardcode_action_F77= |
| 13440 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 13441 | test -n "$runpath_var F77" || \ |
| 13442 | test "X$hardcode_automatic_F77"="Xyes" ; then |
| 13443 | |
| 13444 | # We can hardcode non-existant directories. |
| 13445 | if test "$hardcode_direct_F77" != no && |
| 13446 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13447 | # have to relink, otherwise we might link with an installed library |
| 13448 | # when we should be linking with a yet-to-be-installed one |
| 13449 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 13450 | test "$hardcode_minus_L_F77" != no; then |
| 13451 | # Linking always hardcodes the temporary library directory. |
| 13452 | hardcode_action_F77=relink |
| 13453 | else |
| 13454 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13455 | hardcode_action_F77=immediate |
| 13456 | fi |
| 13457 | else |
| 13458 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13459 | # directories. |
| 13460 | hardcode_action_F77=unsupported |
| 13461 | fi |
| 13462 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 13463 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 13464 | |
| 13465 | if test "$hardcode_action_F77" = relink; then |
| 13466 | # Fast installation is not supported |
| 13467 | enable_fast_install=no |
| 13468 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13469 | test "$enable_shared" = no; then |
| 13470 | # Fast installation is not necessary |
| 13471 | enable_fast_install=needless |
| 13472 | fi |
| 13473 | |
| 13474 | striplib= |
| 13475 | old_striplib= |
| 13476 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 13477 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 13478 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 13479 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 13480 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 13481 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13482 | echo "${ECHO_T}yes" >&6 |
| 13483 | else |
| 13484 | # FIXME - insert some real tests, host_os isn't really good enough |
| 13485 | case $host_os in |
| 13486 | darwin*) |
| 13487 | if test -n "$STRIP" ; then |
| 13488 | striplib="$STRIP -x" |
| 13489 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13490 | echo "${ECHO_T}yes" >&6 |
| 13491 | else |
| 13492 | echo "$as_me:$LINENO: result: no" >&5 |
| 13493 | echo "${ECHO_T}no" >&6 |
| 13494 | fi |
| 13495 | ;; |
| 13496 | *) |
| 13497 | echo "$as_me:$LINENO: result: no" >&5 |
| 13498 | echo "${ECHO_T}no" >&6 |
| 13499 | ;; |
| 13500 | esac |
| 13501 | fi |
| 13502 | |
| 13503 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13504 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13505 | library_names_spec= |
| 13506 | libname_spec='lib$name' |
| 13507 | soname_spec= |
| 13508 | shrext=".so" |
| 13509 | postinstall_cmds= |
| 13510 | postuninstall_cmds= |
| 13511 | finish_cmds= |
| 13512 | finish_eval= |
| 13513 | shlibpath_var= |
| 13514 | shlibpath_overrides_runpath=unknown |
| 13515 | version_type=none |
| 13516 | dynamic_linker="$host_os ld.so" |
| 13517 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13518 | if test "$GCC" = yes; then |
| 13519 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13520 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13521 | # if the path contains ";" then we assume it to be the separator |
| 13522 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13523 | # assumed that no part of a normal pathname contains ";" but that should |
| 13524 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13525 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13526 | else |
| 13527 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13528 | fi |
| 13529 | else |
| 13530 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13531 | fi |
| 13532 | need_lib_prefix=unknown |
| 13533 | hardcode_into_libs=no |
| 13534 | |
| 13535 | # when you set need_version to no, make sure it does not cause -set_version |
| 13536 | # flags to be left without arguments |
| 13537 | need_version=unknown |
| 13538 | |
| 13539 | case $host_os in |
| 13540 | aix3*) |
| 13541 | version_type=linux |
| 13542 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13543 | shlibpath_var=LIBPATH |
| 13544 | |
| 13545 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13546 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13547 | ;; |
| 13548 | |
| 13549 | aix4* | aix5*) |
| 13550 | version_type=linux |
| 13551 | need_lib_prefix=no |
| 13552 | need_version=no |
| 13553 | hardcode_into_libs=yes |
| 13554 | if test "$host_cpu" = ia64; then |
| 13555 | # AIX 5 supports IA64 |
| 13556 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13557 | shlibpath_var=LD_LIBRARY_PATH |
| 13558 | else |
| 13559 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13560 | # for dependence libraries. The import file would start with |
| 13561 | # the line `#! .'. This would cause the generated library to |
| 13562 | # depend on `.', always an invalid library. This was fixed in |
| 13563 | # development snapshots of GCC prior to 3.0. |
| 13564 | case $host_os in |
| 13565 | aix4 | aix4.[01] | aix4.[01].*) |
| 13566 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13567 | echo ' yes ' |
| 13568 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13569 | : |
| 13570 | else |
| 13571 | can_build_shared=no |
| 13572 | fi |
| 13573 | ;; |
| 13574 | esac |
| 13575 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13576 | # soname into executable. Probably we can add versioning support to |
| 13577 | # collect2, so additional links can be useful in future. |
| 13578 | if test "$aix_use_runtimelinking" = yes; then |
| 13579 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13580 | # instead of lib<name>.a to let people know that these are not |
| 13581 | # typical AIX shared libraries. |
| 13582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13583 | else |
| 13584 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13585 | # and later when we are not doing run time linking. |
| 13586 | library_names_spec='${libname}${release}.a $libname.a' |
| 13587 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13588 | fi |
| 13589 | shlibpath_var=LIBPATH |
| 13590 | fi |
| 13591 | ;; |
| 13592 | |
| 13593 | amigaos*) |
| 13594 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13595 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13596 | 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' |
| 13597 | ;; |
| 13598 | |
| 13599 | beos*) |
| 13600 | library_names_spec='${libname}${shared_ext}' |
| 13601 | dynamic_linker="$host_os ld.so" |
| 13602 | shlibpath_var=LIBRARY_PATH |
| 13603 | ;; |
| 13604 | |
| 13605 | bsdi4*) |
| 13606 | version_type=linux |
| 13607 | need_version=no |
| 13608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13609 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13610 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13611 | shlibpath_var=LD_LIBRARY_PATH |
| 13612 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13613 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13614 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13615 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13616 | # libtool to hard-code these into programs |
| 13617 | ;; |
| 13618 | |
| 13619 | cygwin* | mingw* | pw32*) |
| 13620 | version_type=windows |
| 13621 | shrext=".dll" |
| 13622 | need_version=no |
| 13623 | need_lib_prefix=no |
| 13624 | |
| 13625 | case $GCC,$host_os in |
| 13626 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 13627 | library_names_spec='$libname.dll.a' |
| 13628 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13629 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13630 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13631 | dldir=$destdir/`dirname \$dlpath`~ |
| 13632 | test -d \$dldir || mkdir -p \$dldir~ |
| 13633 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 13634 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13635 | dlpath=$dir/\$dldll~ |
| 13636 | $rm \$dlpath' |
| 13637 | shlibpath_overrides_runpath=yes |
| 13638 | |
| 13639 | case $host_os in |
| 13640 | cygwin*) |
| 13641 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13642 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13643 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 13644 | ;; |
| 13645 | mingw*) |
| 13646 | # MinGW DLLs use traditional 'lib' prefix |
| 13647 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13648 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13649 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13650 | # It is most probably a Windows format PATH printed by |
| 13651 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13652 | # path with ; separators, and with drive letters. We can handle the |
| 13653 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13654 | # especially as we might pass files found there to a mingw objdump, |
| 13655 | # which wouldn't understand a cygwinified path. Ahh. |
| 13656 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13657 | else |
| 13658 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13659 | fi |
| 13660 | ;; |
| 13661 | pw32*) |
| 13662 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13663 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 13664 | ;; |
| 13665 | esac |
| 13666 | ;; |
| 13667 | |
| 13668 | *) |
| 13669 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13670 | ;; |
| 13671 | esac |
| 13672 | dynamic_linker='Win32 ld.exe' |
| 13673 | # FIXME: first we should search . and the directory the executable is in |
| 13674 | shlibpath_var=PATH |
| 13675 | ;; |
| 13676 | |
| 13677 | darwin* | rhapsody*) |
| 13678 | dynamic_linker="$host_os dyld" |
| 13679 | version_type=darwin |
| 13680 | need_lib_prefix=no |
| 13681 | need_version=no |
| 13682 | # FIXME: Relying on posixy $() will cause problems for |
| 13683 | # cross-compilation, but unfortunately the echo tests do not |
| 13684 | # yet detect zsh echo's removal of \ escapes. |
| 13685 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13686 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13687 | shlibpath_overrides_runpath=yes |
| 13688 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13689 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 13690 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13691 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 13692 | 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"` |
| 13693 | fi |
| 13694 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13695 | ;; |
| 13696 | |
| 13697 | dgux*) |
| 13698 | version_type=linux |
| 13699 | need_lib_prefix=no |
| 13700 | need_version=no |
| 13701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13702 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13703 | shlibpath_var=LD_LIBRARY_PATH |
| 13704 | ;; |
| 13705 | |
| 13706 | freebsd1*) |
| 13707 | dynamic_linker=no |
| 13708 | ;; |
| 13709 | |
| 13710 | freebsd*) |
| 13711 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 13712 | version_type=freebsd-$objformat |
| 13713 | case $version_type in |
| 13714 | freebsd-elf*) |
| 13715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13716 | need_version=no |
| 13717 | need_lib_prefix=no |
| 13718 | ;; |
| 13719 | freebsd-*) |
| 13720 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13721 | need_version=yes |
| 13722 | ;; |
| 13723 | esac |
| 13724 | shlibpath_var=LD_LIBRARY_PATH |
| 13725 | case $host_os in |
| 13726 | freebsd2*) |
| 13727 | shlibpath_overrides_runpath=yes |
| 13728 | ;; |
| 13729 | freebsd3.01* | freebsdelf3.01*) |
| 13730 | shlibpath_overrides_runpath=yes |
| 13731 | hardcode_into_libs=yes |
| 13732 | ;; |
| 13733 | *) # from 3.2 on |
| 13734 | shlibpath_overrides_runpath=no |
| 13735 | hardcode_into_libs=yes |
| 13736 | ;; |
| 13737 | esac |
| 13738 | ;; |
| 13739 | |
| 13740 | gnu*) |
| 13741 | version_type=linux |
| 13742 | need_lib_prefix=no |
| 13743 | need_version=no |
| 13744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13745 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13746 | shlibpath_var=LD_LIBRARY_PATH |
| 13747 | hardcode_into_libs=yes |
| 13748 | ;; |
| 13749 | |
| 13750 | hpux9* | hpux10* | hpux11*) |
| 13751 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13752 | # link against other versions. |
| 13753 | version_type=sunos |
| 13754 | need_lib_prefix=no |
| 13755 | need_version=no |
| 13756 | case "$host_cpu" in |
| 13757 | ia64*) |
| 13758 | shrext='.so' |
| 13759 | hardcode_into_libs=yes |
| 13760 | dynamic_linker="$host_os dld.so" |
| 13761 | shlibpath_var=LD_LIBRARY_PATH |
| 13762 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13764 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13765 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13766 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13767 | else |
| 13768 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13769 | fi |
| 13770 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13771 | ;; |
| 13772 | hppa*64*) |
| 13773 | shrext='.sl' |
| 13774 | hardcode_into_libs=yes |
| 13775 | dynamic_linker="$host_os dld.sl" |
| 13776 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13777 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13779 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13780 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13781 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13782 | ;; |
| 13783 | *) |
| 13784 | shrext='.sl' |
| 13785 | dynamic_linker="$host_os dld.sl" |
| 13786 | shlibpath_var=SHLIB_PATH |
| 13787 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13789 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13790 | ;; |
| 13791 | esac |
| 13792 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13793 | postinstall_cmds='chmod 555 $lib' |
| 13794 | ;; |
| 13795 | |
| 13796 | irix5* | irix6* | nonstopux*) |
| 13797 | case $host_os in |
| 13798 | nonstopux*) version_type=nonstopux ;; |
| 13799 | *) |
| 13800 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13801 | version_type=linux |
| 13802 | else |
| 13803 | version_type=irix |
| 13804 | fi ;; |
| 13805 | esac |
| 13806 | need_lib_prefix=no |
| 13807 | need_version=no |
| 13808 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13810 | case $host_os in |
| 13811 | irix5* | nonstopux*) |
| 13812 | libsuff= shlibsuff= |
| 13813 | ;; |
| 13814 | *) |
| 13815 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13816 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13817 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13818 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13819 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13820 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13821 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13822 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13823 | esac |
| 13824 | ;; |
| 13825 | esac |
| 13826 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13827 | shlibpath_overrides_runpath=no |
| 13828 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13829 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13830 | hardcode_into_libs=yes |
| 13831 | ;; |
| 13832 | |
| 13833 | # No shared lib support for Linux oldld, aout, or coff. |
| 13834 | linux*oldld* | linux*aout* | linux*coff*) |
| 13835 | dynamic_linker=no |
| 13836 | ;; |
| 13837 | |
| 13838 | # This must be Linux ELF. |
| 13839 | linux*) |
| 13840 | version_type=linux |
| 13841 | need_lib_prefix=no |
| 13842 | need_version=no |
| 13843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13844 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13845 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13846 | shlibpath_var=LD_LIBRARY_PATH |
| 13847 | shlibpath_overrides_runpath=no |
| 13848 | # This implies no fast_install, which is unacceptable. |
| 13849 | # Some rework will be needed to allow for fast_install |
| 13850 | # before this can be enabled. |
| 13851 | hardcode_into_libs=yes |
| 13852 | |
| 13853 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13854 | # powerpc, because MkLinux only supported shared libraries with the |
| 13855 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13856 | # most powerpc-linux boxes support dynamic linking these days and |
| 13857 | # people can always --disable-shared, the test was removed, and we |
| 13858 | # assume the GNU/Linux dynamic linker is in use. |
| 13859 | dynamic_linker='GNU/Linux ld.so' |
| 13860 | ;; |
| 13861 | |
| 13862 | netbsd*) |
| 13863 | version_type=sunos |
| 13864 | need_lib_prefix=no |
| 13865 | need_version=no |
| 13866 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13869 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13870 | else |
| 13871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 13872 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13873 | dynamic_linker='NetBSD ld.elf_so' |
| 13874 | fi |
| 13875 | shlibpath_var=LD_LIBRARY_PATH |
| 13876 | shlibpath_overrides_runpath=yes |
| 13877 | hardcode_into_libs=yes |
| 13878 | ;; |
| 13879 | |
| 13880 | newsos6) |
| 13881 | version_type=linux |
| 13882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13883 | shlibpath_var=LD_LIBRARY_PATH |
| 13884 | shlibpath_overrides_runpath=yes |
| 13885 | ;; |
| 13886 | |
| 13887 | nto-qnx) |
| 13888 | version_type=linux |
| 13889 | need_lib_prefix=no |
| 13890 | need_version=no |
| 13891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13892 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13893 | shlibpath_var=LD_LIBRARY_PATH |
| 13894 | shlibpath_overrides_runpath=yes |
| 13895 | ;; |
| 13896 | |
| 13897 | openbsd*) |
| 13898 | version_type=sunos |
| 13899 | need_lib_prefix=no |
| 13900 | need_version=no |
| 13901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13902 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13903 | shlibpath_var=LD_LIBRARY_PATH |
| 13904 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13905 | case $host_os in |
| 13906 | openbsd2.[89] | openbsd2.[89].*) |
| 13907 | shlibpath_overrides_runpath=no |
| 13908 | ;; |
| 13909 | *) |
| 13910 | shlibpath_overrides_runpath=yes |
| 13911 | ;; |
| 13912 | esac |
| 13913 | else |
| 13914 | shlibpath_overrides_runpath=yes |
| 13915 | fi |
| 13916 | ;; |
| 13917 | |
| 13918 | os2*) |
| 13919 | libname_spec='$name' |
| 13920 | shrext=".dll" |
| 13921 | need_lib_prefix=no |
| 13922 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13923 | dynamic_linker='OS/2 ld.exe' |
| 13924 | shlibpath_var=LIBPATH |
| 13925 | ;; |
| 13926 | |
| 13927 | osf3* | osf4* | osf5*) |
| 13928 | version_type=osf |
| 13929 | need_lib_prefix=no |
| 13930 | need_version=no |
| 13931 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13933 | shlibpath_var=LD_LIBRARY_PATH |
| 13934 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13935 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13936 | ;; |
| 13937 | |
| 13938 | sco3.2v5*) |
| 13939 | version_type=osf |
| 13940 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13942 | shlibpath_var=LD_LIBRARY_PATH |
| 13943 | ;; |
| 13944 | |
| 13945 | solaris*) |
| 13946 | version_type=linux |
| 13947 | need_lib_prefix=no |
| 13948 | need_version=no |
| 13949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13950 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13951 | shlibpath_var=LD_LIBRARY_PATH |
| 13952 | shlibpath_overrides_runpath=yes |
| 13953 | hardcode_into_libs=yes |
| 13954 | # ldd complains unless libraries are executable |
| 13955 | postinstall_cmds='chmod +x $lib' |
| 13956 | ;; |
| 13957 | |
| 13958 | sunos4*) |
| 13959 | version_type=sunos |
| 13960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13961 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13962 | shlibpath_var=LD_LIBRARY_PATH |
| 13963 | shlibpath_overrides_runpath=yes |
| 13964 | if test "$with_gnu_ld" = yes; then |
| 13965 | need_lib_prefix=no |
| 13966 | fi |
| 13967 | need_version=yes |
| 13968 | ;; |
| 13969 | |
| 13970 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13971 | version_type=linux |
| 13972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13973 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13974 | shlibpath_var=LD_LIBRARY_PATH |
| 13975 | case $host_vendor in |
| 13976 | sni) |
| 13977 | shlibpath_overrides_runpath=no |
| 13978 | need_lib_prefix=no |
| 13979 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13980 | runpath_var=LD_RUN_PATH |
| 13981 | ;; |
| 13982 | siemens) |
| 13983 | need_lib_prefix=no |
| 13984 | ;; |
| 13985 | motorola) |
| 13986 | need_lib_prefix=no |
| 13987 | need_version=no |
| 13988 | shlibpath_overrides_runpath=no |
| 13989 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13990 | ;; |
| 13991 | esac |
| 13992 | ;; |
| 13993 | |
| 13994 | sysv4*MP*) |
| 13995 | if test -d /usr/nec ;then |
| 13996 | version_type=linux |
| 13997 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13998 | soname_spec='$libname${shared_ext}.$major' |
| 13999 | shlibpath_var=LD_LIBRARY_PATH |
| 14000 | fi |
| 14001 | ;; |
| 14002 | |
| 14003 | uts4*) |
| 14004 | version_type=linux |
| 14005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14006 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14007 | shlibpath_var=LD_LIBRARY_PATH |
| 14008 | ;; |
| 14009 | |
| 14010 | *) |
| 14011 | dynamic_linker=no |
| 14012 | ;; |
| 14013 | esac |
| 14014 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14015 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14016 | test "$dynamic_linker" = no && can_build_shared=no |
| 14017 | |
| 14018 | |
| 14019 | # The else clause should only fire when bootstrapping the |
| 14020 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14021 | # with your package, and you will get complaints that there are |
| 14022 | # no rules to generate ltmain.sh. |
| 14023 | if test -f "$ltmain"; then |
| 14024 | # See if we are running on zsh, and set the options which allow our commands through |
| 14025 | # without removal of \ escapes. |
| 14026 | if test -n "${ZSH_VERSION+set}" ; then |
| 14027 | setopt NO_GLOB_SUBST |
| 14028 | fi |
| 14029 | # Now quote all the things that may contain metacharacters while being |
| 14030 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14031 | # variables and quote the copies for generation of the libtool script. |
| 14032 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 14033 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14034 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14035 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14036 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14037 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14038 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 14039 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14040 | compiler_F77 \ |
| 14041 | CC_F77 \ |
| 14042 | LD_F77 \ |
| 14043 | lt_prog_compiler_wl_F77 \ |
| 14044 | lt_prog_compiler_pic_F77 \ |
| 14045 | lt_prog_compiler_static_F77 \ |
| 14046 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 14047 | export_dynamic_flag_spec_F77 \ |
| 14048 | thread_safe_flag_spec_F77 \ |
| 14049 | whole_archive_flag_spec_F77 \ |
| 14050 | enable_shared_with_static_runtimes_F77 \ |
| 14051 | old_archive_cmds_F77 \ |
| 14052 | old_archive_from_new_cmds_F77 \ |
| 14053 | predep_objects_F77 \ |
| 14054 | postdep_objects_F77 \ |
| 14055 | predeps_F77 \ |
| 14056 | postdeps_F77 \ |
| 14057 | compiler_lib_search_path_F77 \ |
| 14058 | archive_cmds_F77 \ |
| 14059 | archive_expsym_cmds_F77 \ |
| 14060 | postinstall_cmds_F77 \ |
| 14061 | postuninstall_cmds_F77 \ |
| 14062 | old_archive_from_expsyms_cmds_F77 \ |
| 14063 | allow_undefined_flag_F77 \ |
| 14064 | no_undefined_flag_F77 \ |
| 14065 | export_symbols_cmds_F77 \ |
| 14066 | hardcode_libdir_flag_spec_F77 \ |
| 14067 | hardcode_libdir_flag_spec_ld_F77 \ |
| 14068 | hardcode_libdir_separator_F77 \ |
| 14069 | hardcode_automatic_F77 \ |
| 14070 | module_cmds_F77 \ |
| 14071 | module_expsym_cmds_F77 \ |
| 14072 | lt_cv_prog_compiler_c_o_F77 \ |
| 14073 | exclude_expsyms_F77 \ |
| 14074 | include_expsyms_F77; do |
| 14075 | |
| 14076 | case $var in |
| 14077 | old_archive_cmds_F77 | \ |
| 14078 | old_archive_from_new_cmds_F77 | \ |
| 14079 | archive_cmds_F77 | \ |
| 14080 | archive_expsym_cmds_F77 | \ |
| 14081 | module_cmds_F77 | \ |
| 14082 | module_expsym_cmds_F77 | \ |
| 14083 | old_archive_from_expsyms_cmds_F77 | \ |
| 14084 | export_symbols_cmds_F77 | \ |
| 14085 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 14086 | postinstall_cmds | postuninstall_cmds | \ |
| 14087 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14088 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 14089 | # Double-quote double-evaled strings. |
| 14090 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 14091 | ;; |
| 14092 | *) |
| 14093 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14094 | ;; |
| 14095 | esac |
| 14096 | done |
| 14097 | |
| 14098 | case $lt_echo in |
| 14099 | *'\$0 --fallback-echo"') |
| 14100 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14101 | ;; |
| 14102 | esac |
| 14103 | |
| 14104 | cfgfile="$ofile" |
| 14105 | |
| 14106 | cat <<__EOF__ >> "$cfgfile" |
| 14107 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14108 | |
| 14109 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14110 | |
| 14111 | # Shell to use when invoking shell scripts. |
| 14112 | SHELL=$lt_SHELL |
| 14113 | |
| 14114 | # Whether or not to build shared libraries. |
| 14115 | build_libtool_libs=$enable_shared |
| 14116 | |
| 14117 | # Whether or not to build static libraries. |
| 14118 | build_old_libs=$enable_static |
| 14119 | |
| 14120 | # Whether or not to add -lc for building shared libraries. |
| 14121 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 14122 | |
| 14123 | # Whether or not to disallow shared libs when runtime libs are static |
| 14124 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 14125 | |
| 14126 | # Whether or not to optimize for fast installation. |
| 14127 | fast_install=$enable_fast_install |
| 14128 | |
| 14129 | # The host system. |
| 14130 | host_alias=$host_alias |
| 14131 | host=$host |
| 14132 | |
| 14133 | # An echo program that does not interpret backslashes. |
| 14134 | echo=$lt_echo |
| 14135 | |
| 14136 | # The archiver. |
| 14137 | AR=$lt_AR |
| 14138 | AR_FLAGS=$lt_AR_FLAGS |
| 14139 | |
| 14140 | # A C compiler. |
| 14141 | LTCC=$lt_LTCC |
| 14142 | |
| 14143 | # A language-specific compiler. |
| 14144 | CC=$lt_compiler_F77 |
| 14145 | |
| 14146 | # Is the compiler the GNU C compiler? |
| 14147 | with_gcc=$GCC_F77 |
| 14148 | |
| 14149 | # An ERE matcher. |
| 14150 | EGREP=$lt_EGREP |
| 14151 | |
| 14152 | # The linker used to build libraries. |
| 14153 | LD=$lt_LD_F77 |
| 14154 | |
| 14155 | # Whether we need hard or soft links. |
| 14156 | LN_S=$lt_LN_S |
| 14157 | |
| 14158 | # A BSD-compatible nm program. |
| 14159 | NM=$lt_NM |
| 14160 | |
| 14161 | # A symbol stripping program |
| 14162 | STRIP=$STRIP |
| 14163 | |
| 14164 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14165 | MAGIC_CMD=$MAGIC_CMD |
| 14166 | |
| 14167 | # Used on cygwin: DLL creation program. |
| 14168 | DLLTOOL="$DLLTOOL" |
| 14169 | |
| 14170 | # Used on cygwin: object dumper. |
| 14171 | OBJDUMP="$OBJDUMP" |
| 14172 | |
| 14173 | # Used on cygwin: assembler. |
| 14174 | AS="$AS" |
| 14175 | |
| 14176 | # The name of the directory that contains temporary libtool files. |
| 14177 | objdir=$objdir |
| 14178 | |
| 14179 | # How to create reloadable object files. |
| 14180 | reload_flag=$lt_reload_flag |
| 14181 | reload_cmds=$lt_reload_cmds |
| 14182 | |
| 14183 | # How to pass a linker flag through the compiler. |
| 14184 | wl=$lt_lt_prog_compiler_wl_F77 |
| 14185 | |
| 14186 | # Object file suffix (normally "o"). |
| 14187 | objext="$ac_objext" |
| 14188 | |
| 14189 | # Old archive suffix (normally "a"). |
| 14190 | libext="$libext" |
| 14191 | |
| 14192 | # Shared library suffix (normally ".so"). |
| 14193 | shrext='$shrext' |
| 14194 | |
| 14195 | # Executable file suffix (normally ""). |
| 14196 | exeext="$exeext" |
| 14197 | |
| 14198 | # Additional compiler flags for building library objects. |
| 14199 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 14200 | pic_mode=$pic_mode |
| 14201 | |
| 14202 | # What is the maximum length of a command? |
| 14203 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 14204 | |
| 14205 | # Does compiler simultaneously support -c and -o options? |
| 14206 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 14207 | |
| 14208 | # Must we lock files when doing compilation ? |
| 14209 | need_locks=$lt_need_locks |
| 14210 | |
| 14211 | # Do we need the lib prefix for modules? |
| 14212 | need_lib_prefix=$need_lib_prefix |
| 14213 | |
| 14214 | # Do we need a version for libraries? |
| 14215 | need_version=$need_version |
| 14216 | |
| 14217 | # Whether dlopen is supported. |
| 14218 | dlopen_support=$enable_dlopen |
| 14219 | |
| 14220 | # Whether dlopen of programs is supported. |
| 14221 | dlopen_self=$enable_dlopen_self |
| 14222 | |
| 14223 | # Whether dlopen of statically linked programs is supported. |
| 14224 | dlopen_self_static=$enable_dlopen_self_static |
| 14225 | |
| 14226 | # Compiler flag to prevent dynamic linking. |
| 14227 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 14228 | |
| 14229 | # Compiler flag to turn off builtin functions. |
| 14230 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 14231 | |
| 14232 | # Compiler flag to allow reflexive dlopens. |
| 14233 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 14234 | |
| 14235 | # Compiler flag to generate shared objects directly from archives. |
| 14236 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 14237 | |
| 14238 | # Compiler flag to generate thread-safe objects. |
| 14239 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 14240 | |
| 14241 | # Library versioning type. |
| 14242 | version_type=$version_type |
| 14243 | |
| 14244 | # Format of library name prefix. |
| 14245 | libname_spec=$lt_libname_spec |
| 14246 | |
| 14247 | # List of archive names. First name is the real one, the rest are links. |
| 14248 | # The last name is the one that the linker finds with -lNAME. |
| 14249 | library_names_spec=$lt_library_names_spec |
| 14250 | |
| 14251 | # The coded name of the library, if different from the real name. |
| 14252 | soname_spec=$lt_soname_spec |
| 14253 | |
| 14254 | # Commands used to build and install an old-style archive. |
| 14255 | RANLIB=$lt_RANLIB |
| 14256 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 14257 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14258 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14259 | |
| 14260 | # Create an old-style archive from a shared archive. |
| 14261 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 14262 | |
| 14263 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14264 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 14265 | |
| 14266 | # Commands used to build and install a shared archive. |
| 14267 | archive_cmds=$lt_archive_cmds_F77 |
| 14268 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 14269 | postinstall_cmds=$lt_postinstall_cmds |
| 14270 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14271 | |
| 14272 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14273 | module_cmds=$lt_module_cmds_F77 |
| 14274 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 14275 | |
| 14276 | # Commands to strip libraries. |
| 14277 | old_striplib=$lt_old_striplib |
| 14278 | striplib=$lt_striplib |
| 14279 | |
| 14280 | # Dependencies to place before the objects being linked to create a |
| 14281 | # shared library. |
| 14282 | predep_objects=$lt_predep_objects_F77 |
| 14283 | |
| 14284 | # Dependencies to place after the objects being linked to create a |
| 14285 | # shared library. |
| 14286 | postdep_objects=$lt_postdep_objects_F77 |
| 14287 | |
| 14288 | # Dependencies to place before the objects being linked to create a |
| 14289 | # shared library. |
| 14290 | predeps=$lt_predeps_F77 |
| 14291 | |
| 14292 | # Dependencies to place after the objects being linked to create a |
| 14293 | # shared library. |
| 14294 | postdeps=$lt_postdeps_F77 |
| 14295 | |
| 14296 | # The library search path used internally by the compiler when linking |
| 14297 | # a shared library. |
| 14298 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 14299 | |
| 14300 | # Method to check whether dependent libraries are shared objects. |
| 14301 | deplibs_check_method=$lt_deplibs_check_method |
| 14302 | |
| 14303 | # Command to use when deplibs_check_method == file_magic. |
| 14304 | file_magic_cmd=$lt_file_magic_cmd |
| 14305 | |
| 14306 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14307 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 14308 | |
| 14309 | # Flag that forces no undefined symbols. |
| 14310 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 14311 | |
| 14312 | # Commands used to finish a libtool library installation in a directory. |
| 14313 | finish_cmds=$lt_finish_cmds |
| 14314 | |
| 14315 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14316 | finish_eval=$lt_finish_eval |
| 14317 | |
| 14318 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 14319 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14320 | |
| 14321 | # Transform the output of nm in a proper C declaration |
| 14322 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14323 | |
| 14324 | # Transform the output of nm in a C name address pair |
| 14325 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14326 | |
| 14327 | # This is the shared library runtime path variable. |
| 14328 | runpath_var=$runpath_var |
| 14329 | |
| 14330 | # This is the shared library path variable. |
| 14331 | shlibpath_var=$shlibpath_var |
| 14332 | |
| 14333 | # Is shlibpath searched before the hard-coded library search path? |
| 14334 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14335 | |
| 14336 | # How to hardcode a shared library path into an executable. |
| 14337 | hardcode_action=$hardcode_action_F77 |
| 14338 | |
| 14339 | # Whether we should hardcode library paths into libraries. |
| 14340 | hardcode_into_libs=$hardcode_into_libs |
| 14341 | |
| 14342 | # Flag to hardcode \$libdir into a binary during linking. |
| 14343 | # This must work even if \$libdir does not exist. |
| 14344 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 14345 | |
| 14346 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14347 | # a binary during linking. This must work even if \$libdir does |
| 14348 | # not exist. |
| 14349 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 14350 | |
| 14351 | # Whether we need a single -rpath flag with a separated argument. |
| 14352 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 14353 | |
| 14354 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 14355 | # resulting binary. |
| 14356 | hardcode_direct=$hardcode_direct_F77 |
| 14357 | |
| 14358 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14359 | # resulting binary. |
| 14360 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 14361 | |
| 14362 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14363 | # the resulting binary. |
| 14364 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 14365 | |
| 14366 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14367 | # and all subsequent libraries and executables linked against it. |
| 14368 | hardcode_automatic=$hardcode_automatic_F77 |
| 14369 | |
| 14370 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14371 | # restored at relink time. |
| 14372 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14373 | |
| 14374 | # Whether libtool must link a program against all its dependency libraries. |
| 14375 | link_all_deplibs=$link_all_deplibs_F77 |
| 14376 | |
| 14377 | # Compile-time system search path for libraries |
| 14378 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14379 | |
| 14380 | # Run-time system search path for libraries |
| 14381 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14382 | |
| 14383 | # Fix the shell variable \$srcfile for the compiler. |
| 14384 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 14385 | |
| 14386 | # Set to yes if exported symbols are required. |
| 14387 | always_export_symbols=$always_export_symbols_F77 |
| 14388 | |
| 14389 | # The commands to list exported symbols. |
| 14390 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 14391 | |
| 14392 | # The commands to extract the exported symbol list from a shared archive. |
| 14393 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14394 | |
| 14395 | # Symbols that should not be listed in the preloaded symbols. |
| 14396 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 14397 | |
| 14398 | # Symbols that must always be exported. |
| 14399 | include_expsyms=$lt_include_expsyms_F77 |
| 14400 | |
| 14401 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 14402 | |
| 14403 | __EOF__ |
| 14404 | |
| 14405 | |
| 14406 | else |
| 14407 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14408 | # `config.status --recheck' to rerun these tests and create the |
| 14409 | # libtool script then. |
| 14410 | test -f Makefile && make "$ltmain" |
| 14411 | fi |
| 14412 | |
| 14413 | |
| 14414 | ac_ext=c |
| 14415 | ac_cpp='$CPP $CPPFLAGS' |
| 14416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14419 | |
| 14420 | CC="$lt_save_CC" |
| 14421 | |
| 14422 | else |
| 14423 | tagname="" |
| 14424 | fi |
| 14425 | ;; |
| 14426 | |
| 14427 | GCJ) |
| 14428 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 14429 | |
| 14430 | |
| 14431 | |
| 14432 | # Source file extension for Java test sources. |
| 14433 | ac_ext=java |
| 14434 | |
| 14435 | # Object file extension for compiled Java test sources. |
| 14436 | objext=o |
| 14437 | objext_GCJ=$objext |
| 14438 | |
| 14439 | # Code to be used in simple compile tests |
| 14440 | lt_simple_compile_test_code="class foo {}\n" |
| 14441 | |
| 14442 | # Code to be used in simple link tests |
| 14443 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 14444 | |
| 14445 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14446 | |
| 14447 | # If no C compiler was specified, use CC. |
| 14448 | LTCC=${LTCC-"$CC"} |
| 14449 | |
| 14450 | # Allow CC to be a program name with arguments. |
| 14451 | compiler=$CC |
| 14452 | |
| 14453 | |
| 14454 | # Allow CC to be a program name with arguments. |
| 14455 | lt_save_CC="$CC" |
| 14456 | CC=${GCJ-"gcj"} |
| 14457 | compiler=$CC |
| 14458 | compiler_GCJ=$CC |
| 14459 | |
| 14460 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 14461 | archive_cmds_need_lc_GCJ=no |
| 14462 | |
| 14463 | ## CAVEAT EMPTOR: |
| 14464 | ## There is no encapsulation within the following macros, do not change |
| 14465 | ## the running order or otherwise move them around unless you know exactly |
| 14466 | ## what you are doing... |
| 14467 | |
| 14468 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 14469 | |
| 14470 | if test "$GCC" = yes; then |
| 14471 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 14472 | |
| 14473 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14474 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 14475 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14477 | else |
| 14478 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14479 | ac_outfile=conftest.$ac_objext |
| 14480 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14481 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14482 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14483 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14484 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14485 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14486 | # The option is referenced via a variable to avoid confusing sed. |
| 14487 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14488 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14489 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14490 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 14491 | (eval echo "\"\$as_me:14491: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14492 | (eval "$lt_compile" 2>conftest.err) |
| 14493 | ac_status=$? |
| 14494 | cat conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 14495 | echo "$as_me:14495: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14496 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14497 | # The compiler can only warn and ignore the option if not recognized |
| 14498 | # So say no if there are warnings |
| 14499 | if test ! -s conftest.err; then |
| 14500 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14501 | fi |
| 14502 | fi |
| 14503 | $rm conftest* |
| 14504 | |
| 14505 | fi |
| 14506 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14507 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 14508 | |
| 14509 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14510 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 14511 | else |
| 14512 | : |
| 14513 | fi |
| 14514 | |
| 14515 | fi |
| 14516 | |
| 14517 | lt_prog_compiler_wl_GCJ= |
| 14518 | lt_prog_compiler_pic_GCJ= |
| 14519 | lt_prog_compiler_static_GCJ= |
| 14520 | |
| 14521 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14522 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 14523 | |
| 14524 | if test "$GCC" = yes; then |
| 14525 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14526 | lt_prog_compiler_static_GCJ='-static' |
| 14527 | |
| 14528 | case $host_os in |
| 14529 | aix*) |
| 14530 | # All AIX code is PIC. |
| 14531 | if test "$host_cpu" = ia64; then |
| 14532 | # AIX 5 now supports IA64 processor |
| 14533 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14534 | fi |
| 14535 | ;; |
| 14536 | |
| 14537 | amigaos*) |
| 14538 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14539 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14540 | # like `-m68040'. |
| 14541 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 14542 | ;; |
| 14543 | |
| 14544 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14545 | # PIC is the default for these OSes. |
| 14546 | ;; |
| 14547 | |
| 14548 | mingw* | pw32* | os2*) |
| 14549 | # This hack is so that the source file can tell whether it is being |
| 14550 | # built for inclusion in a dll (and should export symbols for example). |
| 14551 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 14552 | ;; |
| 14553 | |
| 14554 | darwin* | rhapsody*) |
| 14555 | # PIC is the default on this platform |
| 14556 | # Common symbols not allowed in MH_DYLIB files |
| 14557 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 14558 | ;; |
| 14559 | |
| 14560 | msdosdjgpp*) |
| 14561 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14562 | # on systems that don't support them. |
| 14563 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14564 | enable_shared=no |
| 14565 | ;; |
| 14566 | |
| 14567 | sysv4*MP*) |
| 14568 | if test -d /usr/nec; then |
| 14569 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 14570 | fi |
| 14571 | ;; |
| 14572 | |
| 14573 | hpux*) |
| 14574 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14575 | # not for PA HP-UX. |
| 14576 | case "$host_cpu" in |
| 14577 | hppa*64*|ia64*) |
| 14578 | # +Z the default |
| 14579 | ;; |
| 14580 | *) |
| 14581 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 14582 | ;; |
| 14583 | esac |
| 14584 | ;; |
| 14585 | |
| 14586 | *) |
| 14587 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 14588 | ;; |
| 14589 | esac |
| 14590 | else |
| 14591 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14592 | case $host_os in |
| 14593 | aix*) |
| 14594 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14595 | if test "$host_cpu" = ia64; then |
| 14596 | # AIX 5 now supports IA64 processor |
| 14597 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14598 | else |
| 14599 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 14600 | fi |
| 14601 | ;; |
| 14602 | |
| 14603 | mingw* | pw32* | os2*) |
| 14604 | # This hack is so that the source file can tell whether it is being |
| 14605 | # built for inclusion in a dll (and should export symbols for example). |
| 14606 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 14607 | ;; |
| 14608 | |
| 14609 | hpux9* | hpux10* | hpux11*) |
| 14610 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14611 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14612 | # not for PA HP-UX. |
| 14613 | case "$host_cpu" in |
| 14614 | hppa*64*|ia64*) |
| 14615 | # +Z the default |
| 14616 | ;; |
| 14617 | *) |
| 14618 | lt_prog_compiler_pic_GCJ='+Z' |
| 14619 | ;; |
| 14620 | esac |
| 14621 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14622 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 14623 | ;; |
| 14624 | |
| 14625 | irix5* | irix6* | nonstopux*) |
| 14626 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14627 | # PIC (with -KPIC) is the default. |
| 14628 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14629 | ;; |
| 14630 | |
| 14631 | newsos6) |
| 14632 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14633 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14634 | ;; |
| 14635 | |
| 14636 | linux*) |
| 14637 | case $CC in |
| 14638 | icc|ecc) |
| 14639 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14640 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14641 | lt_prog_compiler_static_GCJ='-static' |
| 14642 | ;; |
| 14643 | ccc) |
| 14644 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14645 | # All Alpha code is PIC. |
| 14646 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14647 | ;; |
| 14648 | esac |
| 14649 | ;; |
| 14650 | |
| 14651 | osf3* | osf4* | osf5*) |
| 14652 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14653 | # All OSF/1 code is PIC. |
| 14654 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14655 | ;; |
| 14656 | |
| 14657 | sco3.2v5*) |
| 14658 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 14659 | lt_prog_compiler_static_GCJ='-dn' |
| 14660 | ;; |
| 14661 | |
| 14662 | solaris*) |
| 14663 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14664 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14665 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14666 | ;; |
| 14667 | |
| 14668 | sunos4*) |
| 14669 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 14670 | lt_prog_compiler_pic_GCJ='-PIC' |
| 14671 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14672 | ;; |
| 14673 | |
| 14674 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14675 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14676 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14677 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14678 | ;; |
| 14679 | |
| 14680 | sysv4*MP*) |
| 14681 | if test -d /usr/nec ;then |
| 14682 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 14683 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14684 | fi |
| 14685 | ;; |
| 14686 | |
| 14687 | uts4*) |
| 14688 | lt_prog_compiler_pic_GCJ='-pic' |
| 14689 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14690 | ;; |
| 14691 | |
| 14692 | *) |
| 14693 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14694 | ;; |
| 14695 | esac |
| 14696 | fi |
| 14697 | |
| 14698 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 14699 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 14700 | |
| 14701 | # |
| 14702 | # Check to make sure the PIC flag actually works. |
| 14703 | # |
| 14704 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 14705 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 14706 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 14707 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 14708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14709 | else |
| 14710 | lt_prog_compiler_pic_works_GCJ=no |
| 14711 | ac_outfile=conftest.$ac_objext |
| 14712 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14713 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 14714 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14715 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14716 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14717 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14718 | # The option is referenced via a variable to avoid confusing sed. |
| 14719 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14720 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14721 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14722 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 14723 | (eval echo "\"\$as_me:14723: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14724 | (eval "$lt_compile" 2>conftest.err) |
| 14725 | ac_status=$? |
| 14726 | cat conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 14727 | echo "$as_me:14727: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14728 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14729 | # The compiler can only warn and ignore the option if not recognized |
| 14730 | # So say no if there are warnings |
| 14731 | if test ! -s conftest.err; then |
| 14732 | lt_prog_compiler_pic_works_GCJ=yes |
| 14733 | fi |
| 14734 | fi |
| 14735 | $rm conftest* |
| 14736 | |
| 14737 | fi |
| 14738 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 14739 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 14740 | |
| 14741 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 14742 | case $lt_prog_compiler_pic_GCJ in |
| 14743 | "" | " "*) ;; |
| 14744 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 14745 | esac |
| 14746 | else |
| 14747 | lt_prog_compiler_pic_GCJ= |
| 14748 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14749 | fi |
| 14750 | |
| 14751 | fi |
| 14752 | case "$host_os" in |
| 14753 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14754 | *djgpp*) |
| 14755 | lt_prog_compiler_pic_GCJ= |
| 14756 | ;; |
| 14757 | *) |
| 14758 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 14759 | ;; |
| 14760 | esac |
| 14761 | |
| 14762 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14763 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 14764 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 14765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14766 | else |
| 14767 | lt_cv_prog_compiler_c_o_GCJ=no |
| 14768 | $rm -r conftest 2>/dev/null |
| 14769 | mkdir conftest |
| 14770 | cd conftest |
| 14771 | mkdir out |
| 14772 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14773 | |
| 14774 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 14775 | # that will create temporary files in the current directory regardless of |
| 14776 | # the output directory. Thus, making CWD read-only will cause this test |
| 14777 | # to fail, enabling locking or at least warning the user not to do parallel |
| 14778 | # builds. |
| 14779 | chmod -w . |
| 14780 | |
| 14781 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14782 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14783 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14784 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14785 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14786 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14787 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14788 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14789 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 14790 | (eval echo "\"\$as_me:14790: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14791 | (eval "$lt_compile" 2>out/conftest.err) |
| 14792 | ac_status=$? |
| 14793 | cat out/conftest.err >&5 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 14794 | echo "$as_me:14794: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14795 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14796 | then |
| 14797 | # The compiler can only warn and ignore the option if not recognized |
| 14798 | # So say no if there are warnings |
| 14799 | if test ! -s out/conftest.err; then |
| 14800 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 14801 | fi |
| 14802 | fi |
| 14803 | chmod u+w . |
| 14804 | $rm conftest* out/* |
| 14805 | rmdir out |
| 14806 | cd .. |
| 14807 | rmdir conftest |
| 14808 | $rm conftest* |
| 14809 | |
| 14810 | fi |
| 14811 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 14812 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 14813 | |
| 14814 | |
| 14815 | hard_links="nottested" |
| 14816 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 14817 | # do not overwrite the value of need_locks provided by the user |
| 14818 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14819 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 14820 | hard_links=yes |
| 14821 | $rm conftest* |
| 14822 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14823 | touch conftest.a |
| 14824 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14825 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14826 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14827 | echo "${ECHO_T}$hard_links" >&6 |
| 14828 | if test "$hard_links" = no; then |
| 14829 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14830 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14831 | need_locks=warn |
| 14832 | fi |
| 14833 | else |
| 14834 | need_locks=no |
| 14835 | fi |
| 14836 | |
| 14837 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14838 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 14839 | |
| 14840 | runpath_var= |
| 14841 | allow_undefined_flag_GCJ= |
| 14842 | enable_shared_with_static_runtimes_GCJ=no |
| 14843 | archive_cmds_GCJ= |
| 14844 | archive_expsym_cmds_GCJ= |
| 14845 | old_archive_From_new_cmds_GCJ= |
| 14846 | old_archive_from_expsyms_cmds_GCJ= |
| 14847 | export_dynamic_flag_spec_GCJ= |
| 14848 | whole_archive_flag_spec_GCJ= |
| 14849 | thread_safe_flag_spec_GCJ= |
| 14850 | hardcode_libdir_flag_spec_GCJ= |
| 14851 | hardcode_libdir_flag_spec_ld_GCJ= |
| 14852 | hardcode_libdir_separator_GCJ= |
| 14853 | hardcode_direct_GCJ=no |
| 14854 | hardcode_minus_L_GCJ=no |
| 14855 | hardcode_shlibpath_var_GCJ=unsupported |
| 14856 | link_all_deplibs_GCJ=unknown |
| 14857 | hardcode_automatic_GCJ=no |
| 14858 | module_cmds_GCJ= |
| 14859 | module_expsym_cmds_GCJ= |
| 14860 | always_export_symbols_GCJ=no |
| 14861 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14862 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14863 | # included in the symbol list |
| 14864 | include_expsyms_GCJ= |
| 14865 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14866 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14867 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14868 | # as well as any symbol that contains `d'. |
| 14869 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 14870 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14871 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14872 | # the symbol is explicitly referenced. Since portable code cannot |
| 14873 | # rely on this symbol name, it's probably fine to never include it in |
| 14874 | # preloaded symbol tables. |
| 14875 | extract_expsyms_cmds= |
| 14876 | |
| 14877 | case $host_os in |
| 14878 | cygwin* | mingw* | pw32*) |
| 14879 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14880 | # When not using gcc, we currently assume that we are using |
| 14881 | # Microsoft Visual C++. |
| 14882 | if test "$GCC" != yes; then |
| 14883 | with_gnu_ld=no |
| 14884 | fi |
| 14885 | ;; |
| 14886 | openbsd*) |
| 14887 | with_gnu_ld=no |
| 14888 | ;; |
| 14889 | esac |
| 14890 | |
| 14891 | ld_shlibs_GCJ=yes |
| 14892 | if test "$with_gnu_ld" = yes; then |
| 14893 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14894 | wlarc='${wl}' |
| 14895 | |
| 14896 | # See if GNU ld supports shared libraries. |
| 14897 | case $host_os in |
| 14898 | aix3* | aix4* | aix5*) |
| 14899 | # On AIX/PPC, the GNU linker is very broken |
| 14900 | if test "$host_cpu" != ia64; then |
| 14901 | ld_shlibs_GCJ=no |
| 14902 | cat <<EOF 1>&2 |
| 14903 | |
| 14904 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14905 | *** to be unable to reliably create shared libraries on AIX. |
| 14906 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14907 | *** really care for shared libraries, you may want to modify your PATH |
| 14908 | *** so that a non-GNU linker is found, and then restart. |
| 14909 | |
| 14910 | EOF |
| 14911 | fi |
| 14912 | ;; |
| 14913 | |
| 14914 | amigaos*) |
| 14915 | 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)' |
| 14916 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 14917 | hardcode_minus_L_GCJ=yes |
| 14918 | |
| 14919 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14920 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14921 | # to version 4, is to share data among multiple programs linked |
| 14922 | # with the same dynamic library. Since this doesn't match the |
| 14923 | # behavior of shared libraries on other platforms, we can't use |
| 14924 | # them. |
| 14925 | ld_shlibs_GCJ=no |
| 14926 | ;; |
| 14927 | |
| 14928 | beos*) |
| 14929 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14930 | allow_undefined_flag_GCJ=unsupported |
| 14931 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14932 | # support --undefined. This deserves some investigation. FIXME |
| 14933 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14934 | else |
| 14935 | ld_shlibs_GCJ=no |
| 14936 | fi |
| 14937 | ;; |
| 14938 | |
| 14939 | cygwin* | mingw* | pw32*) |
| 14940 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 14941 | # as there is no search path for DLLs. |
| 14942 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 14943 | allow_undefined_flag_GCJ=unsupported |
| 14944 | always_export_symbols_GCJ=no |
| 14945 | enable_shared_with_static_runtimes_GCJ=yes |
| 14946 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 14947 | |
| 14948 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 14949 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 14950 | # If the export-symbols file already is a .def file (1st line |
| 14951 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14952 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14953 | cp $export_symbols $output_objdir/$soname.def; |
| 14954 | else |
| 14955 | echo EXPORTS > $output_objdir/$soname.def; |
| 14956 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14957 | fi~ |
| 14958 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 14959 | else |
| 14960 | ld_shlibs=no |
| 14961 | fi |
| 14962 | ;; |
| 14963 | |
| 14964 | netbsd*) |
| 14965 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14966 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14967 | wlarc= |
| 14968 | else |
| 14969 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14970 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14971 | fi |
| 14972 | ;; |
| 14973 | |
| 14974 | solaris* | sysv5*) |
| 14975 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14976 | ld_shlibs_GCJ=no |
| 14977 | cat <<EOF 1>&2 |
| 14978 | |
| 14979 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14980 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14981 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14982 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14983 | *** your PATH or compiler configuration so that the native linker is |
| 14984 | *** used, and then restart. |
| 14985 | |
| 14986 | EOF |
| 14987 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14988 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14989 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14990 | else |
| 14991 | ld_shlibs_GCJ=no |
| 14992 | fi |
| 14993 | ;; |
| 14994 | |
| 14995 | sunos4*) |
| 14996 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14997 | wlarc= |
| 14998 | hardcode_direct_GCJ=yes |
| 14999 | hardcode_shlibpath_var_GCJ=no |
| 15000 | ;; |
| 15001 | |
| 15002 | *) |
| 15003 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15004 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15005 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15006 | else |
| 15007 | ld_shlibs_GCJ=no |
| 15008 | fi |
| 15009 | ;; |
| 15010 | esac |
| 15011 | |
| 15012 | if test "$ld_shlibs_GCJ" = yes; then |
| 15013 | runpath_var=LD_RUN_PATH |
| 15014 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 15015 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 15016 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15017 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15018 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15019 | else |
| 15020 | whole_archive_flag_spec_GCJ= |
| 15021 | fi |
| 15022 | fi |
| 15023 | else |
| 15024 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15025 | case $host_os in |
| 15026 | aix3*) |
| 15027 | allow_undefined_flag_GCJ=unsupported |
| 15028 | always_export_symbols_GCJ=yes |
| 15029 | 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' |
| 15030 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15031 | # are no directories specified by -L. |
| 15032 | hardcode_minus_L_GCJ=yes |
| 15033 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 15034 | # Neither direct hardcoding nor static linking is supported with a |
| 15035 | # broken collect2. |
| 15036 | hardcode_direct_GCJ=unsupported |
| 15037 | fi |
| 15038 | ;; |
| 15039 | |
| 15040 | aix4* | aix5*) |
| 15041 | if test "$host_cpu" = ia64; then |
| 15042 | # On IA64, the linker does run time linking by default, so we don't |
| 15043 | # have to do anything special. |
| 15044 | aix_use_runtimelinking=no |
| 15045 | exp_sym_flag='-Bexport' |
| 15046 | no_entry_flag="" |
| 15047 | else |
| 15048 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15049 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15050 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15051 | 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' |
| 15052 | else |
| 15053 | 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' |
| 15054 | fi |
| 15055 | aix_use_runtimelinking=no |
| 15056 | |
| 15057 | # Test if we are trying to use run time linking or normal |
| 15058 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15059 | # need to do runtime linking. |
| 15060 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15061 | for ld_flag in $LDFLAGS; do |
| 15062 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15063 | aix_use_runtimelinking=yes |
| 15064 | break |
| 15065 | fi |
| 15066 | done |
| 15067 | esac |
| 15068 | |
| 15069 | exp_sym_flag='-bexport' |
| 15070 | no_entry_flag='-bnoentry' |
| 15071 | fi |
| 15072 | |
| 15073 | # When large executables or shared objects are built, AIX ld can |
| 15074 | # have problems creating the table of contents. If linking a library |
| 15075 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15076 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15077 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15078 | |
| 15079 | archive_cmds_GCJ='' |
| 15080 | hardcode_direct_GCJ=yes |
| 15081 | hardcode_libdir_separator_GCJ=':' |
| 15082 | link_all_deplibs_GCJ=yes |
| 15083 | |
| 15084 | if test "$GCC" = yes; then |
| 15085 | case $host_os in aix4.012|aix4.012.*) |
| 15086 | # We only want to do this on AIX 4.2 and lower, the check |
| 15087 | # below for broken collect2 doesn't work under 4.3+ |
| 15088 | collect2name=`${CC} -print-prog-name=collect2` |
| 15089 | if test -f "$collect2name" && \ |
| 15090 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15091 | then |
| 15092 | # We have reworked collect2 |
| 15093 | hardcode_direct_GCJ=yes |
| 15094 | else |
| 15095 | # We have old collect2 |
| 15096 | hardcode_direct_GCJ=unsupported |
| 15097 | # It fails to find uninstalled libraries when the uninstalled |
| 15098 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15099 | # to unsupported forces relinking |
| 15100 | hardcode_minus_L_GCJ=yes |
| 15101 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15102 | hardcode_libdir_separator_GCJ= |
| 15103 | fi |
| 15104 | esac |
| 15105 | shared_flag='-shared' |
| 15106 | else |
| 15107 | # not using gcc |
| 15108 | if test "$host_cpu" = ia64; then |
| 15109 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15110 | # chokes on -Wl,-G. The following line is correct: |
| 15111 | shared_flag='-G' |
| 15112 | else |
| 15113 | if test "$aix_use_runtimelinking" = yes; then |
| 15114 | shared_flag='${wl}-G' |
| 15115 | else |
| 15116 | shared_flag='${wl}-bM:SRE' |
| 15117 | fi |
| 15118 | fi |
| 15119 | fi |
| 15120 | |
| 15121 | # It seems that -bexpall does not export symbols beginning with |
| 15122 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15123 | always_export_symbols_GCJ=yes |
| 15124 | if test "$aix_use_runtimelinking" = yes; then |
| 15125 | # Warning - without using the other runtime loading flags (-brtl), |
| 15126 | # -berok will link without error, but may produce a broken library. |
| 15127 | allow_undefined_flag_GCJ='-berok' |
| 15128 | # Determine the default libpath from the value encoded in an empty executable. |
| 15129 | cat >conftest.$ac_ext <<_ACEOF |
| 15130 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 15131 | /* confdefs.h. */ |
| 15132 | _ACEOF |
| 15133 | cat confdefs.h >>conftest.$ac_ext |
| 15134 | cat >>conftest.$ac_ext <<_ACEOF |
| 15135 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15136 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15137 | int |
| 15138 | main () |
| 15139 | { |
| 15140 | |
| 15141 | ; |
| 15142 | return 0; |
| 15143 | } |
| 15144 | _ACEOF |
| 15145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15147 | (eval $ac_link) 2>&5 |
| 15148 | ac_status=$? |
| 15149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15150 | (exit $ac_status); } && |
| 15151 | { ac_try='test -s conftest$ac_exeext' |
| 15152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15153 | (eval $ac_try) 2>&5 |
| 15154 | ac_status=$? |
| 15155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15156 | (exit $ac_status); }; }; then |
| 15157 | |
| 15158 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15159 | }'` |
| 15160 | # Check for a 64-bit object if we didn't find anything. |
| 15161 | 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; } |
| 15162 | }'`; fi |
| 15163 | else |
| 15164 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 15165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15166 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15167 | fi |
| 15168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15169 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15170 | |
| 15171 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15172 | 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" |
| 15173 | else |
| 15174 | if test "$host_cpu" = ia64; then |
| 15175 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 15176 | allow_undefined_flag_GCJ="-z nodefs" |
| 15177 | 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" |
| 15178 | else |
| 15179 | # Determine the default libpath from the value encoded in an empty executable. |
| 15180 | cat >conftest.$ac_ext <<_ACEOF |
| 15181 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 15182 | /* confdefs.h. */ |
| 15183 | _ACEOF |
| 15184 | cat confdefs.h >>conftest.$ac_ext |
| 15185 | cat >>conftest.$ac_ext <<_ACEOF |
| 15186 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15187 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15188 | int |
| 15189 | main () |
| 15190 | { |
| 15191 | |
| 15192 | ; |
| 15193 | return 0; |
| 15194 | } |
| 15195 | _ACEOF |
| 15196 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15198 | (eval $ac_link) 2>&5 |
| 15199 | ac_status=$? |
| 15200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15201 | (exit $ac_status); } && |
| 15202 | { ac_try='test -s conftest$ac_exeext' |
| 15203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15204 | (eval $ac_try) 2>&5 |
| 15205 | ac_status=$? |
| 15206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15207 | (exit $ac_status); }; }; then |
| 15208 | |
| 15209 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15210 | }'` |
| 15211 | # Check for a 64-bit object if we didn't find anything. |
| 15212 | 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; } |
| 15213 | }'`; fi |
| 15214 | else |
| 15215 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 15216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15217 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15218 | fi |
| 15219 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15220 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15221 | |
| 15222 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15223 | # Warning - without using the other run time loading flags, |
| 15224 | # -berok will link without error, but may produce a broken library. |
| 15225 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 15226 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 15227 | # -bexpall does not export symbols beginning with underscore (_) |
| 15228 | always_export_symbols_GCJ=yes |
| 15229 | # Exported symbols can be pulled into shared objects from archives |
| 15230 | whole_archive_flag_spec_GCJ=' ' |
| 15231 | archive_cmds_need_lc_GCJ=yes |
| 15232 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 15233 | 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' |
| 15234 | fi |
| 15235 | fi |
| 15236 | ;; |
| 15237 | |
| 15238 | amigaos*) |
| 15239 | 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)' |
| 15240 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15241 | hardcode_minus_L_GCJ=yes |
| 15242 | # see comment about different semantics on the GNU ld section |
| 15243 | ld_shlibs_GCJ=no |
| 15244 | ;; |
| 15245 | |
| 15246 | bsdi4*) |
| 15247 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 15248 | ;; |
| 15249 | |
| 15250 | cygwin* | mingw* | pw32*) |
| 15251 | # When not using gcc, we currently assume that we are using |
| 15252 | # Microsoft Visual C++. |
| 15253 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15254 | # no search path for DLLs. |
| 15255 | hardcode_libdir_flag_spec_GCJ=' ' |
| 15256 | allow_undefined_flag_GCJ=unsupported |
| 15257 | # Tell ltmain to make .lib files, not .a files. |
| 15258 | libext=lib |
| 15259 | # Tell ltmain to make .dll files, not .so files. |
| 15260 | shrext=".dll" |
| 15261 | # FIXME: Setting linknames here is a bad hack. |
| 15262 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15263 | # The linker will automatically build a .lib file if we build a DLL. |
| 15264 | old_archive_From_new_cmds_GCJ='true' |
| 15265 | # FIXME: Should let the user specify the lib program. |
| 15266 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15267 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15268 | enable_shared_with_static_runtimes_GCJ=yes |
| 15269 | ;; |
| 15270 | |
| 15271 | darwin* | rhapsody*) |
| 15272 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 15273 | archive_cmds_need_lc_GCJ=no |
| 15274 | case "$host_os" in |
| 15275 | rhapsody* | darwin1.[012]) |
| 15276 | allow_undefined_flag_GCJ='-undefined suppress' |
| 15277 | ;; |
| 15278 | *) # Darwin 1.3 on |
| 15279 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 15280 | ;; |
| 15281 | esac |
| 15282 | # FIXME: Relying on posixy $() will cause problems for |
| 15283 | # cross-compilation, but unfortunately the echo tests do not |
| 15284 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 15285 | # `"' quotes if we put them in here... so don't! |
| 15286 | lt_int_apple_cc_single_mod=no |
| 15287 | output_verbose_link_cmd='echo' |
| 15288 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 15289 | lt_int_apple_cc_single_mod=yes |
| 15290 | fi |
| 15291 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15292 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15293 | else |
| 15294 | 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' |
| 15295 | fi |
| 15296 | module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 15297 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15298 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15299 | 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}' |
| 15300 | else |
| 15301 | 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}' |
| 15302 | fi |
| 15303 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15304 | hardcode_direct_GCJ=no |
| 15305 | hardcode_automatic_GCJ=yes |
| 15306 | hardcode_shlibpath_var_GCJ=unsupported |
| 15307 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 15308 | link_all_deplibs_GCJ=yes |
| 15309 | fi |
| 15310 | ;; |
| 15311 | |
| 15312 | dgux*) |
| 15313 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15314 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15315 | hardcode_shlibpath_var_GCJ=no |
| 15316 | ;; |
| 15317 | |
| 15318 | freebsd1*) |
| 15319 | ld_shlibs_GCJ=no |
| 15320 | ;; |
| 15321 | |
| 15322 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15323 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15324 | # does not break anything, and helps significantly (at the cost of a little |
| 15325 | # extra space). |
| 15326 | freebsd2.2*) |
| 15327 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15328 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15329 | hardcode_direct_GCJ=yes |
| 15330 | hardcode_shlibpath_var_GCJ=no |
| 15331 | ;; |
| 15332 | |
| 15333 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15334 | freebsd2*) |
| 15335 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15336 | hardcode_direct_GCJ=yes |
| 15337 | hardcode_minus_L_GCJ=yes |
| 15338 | hardcode_shlibpath_var_GCJ=no |
| 15339 | ;; |
| 15340 | |
| 15341 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15342 | freebsd*) |
| 15343 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15344 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15345 | hardcode_direct_GCJ=yes |
| 15346 | hardcode_shlibpath_var_GCJ=no |
| 15347 | ;; |
| 15348 | |
| 15349 | hpux9*) |
| 15350 | if test "$GCC" = yes; then |
| 15351 | 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' |
| 15352 | else |
| 15353 | 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' |
| 15354 | fi |
| 15355 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15356 | hardcode_libdir_separator_GCJ=: |
| 15357 | hardcode_direct_GCJ=yes |
| 15358 | |
| 15359 | # hardcode_minus_L: Not really in the search PATH, |
| 15360 | # but as the default location of the library. |
| 15361 | hardcode_minus_L_GCJ=yes |
| 15362 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15363 | ;; |
| 15364 | |
| 15365 | hpux10* | hpux11*) |
| 15366 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15367 | case "$host_cpu" in |
| 15368 | hppa*64*|ia64*) |
| 15369 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15370 | ;; |
| 15371 | *) |
| 15372 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15373 | ;; |
| 15374 | esac |
| 15375 | else |
| 15376 | case "$host_cpu" in |
| 15377 | hppa*64*|ia64*) |
| 15378 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15379 | ;; |
| 15380 | *) |
| 15381 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15382 | ;; |
| 15383 | esac |
| 15384 | fi |
| 15385 | if test "$with_gnu_ld" = no; then |
| 15386 | case "$host_cpu" in |
| 15387 | hppa*64*) |
| 15388 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15389 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 15390 | hardcode_libdir_separator_GCJ=: |
| 15391 | hardcode_direct_GCJ=no |
| 15392 | hardcode_shlibpath_var_GCJ=no |
| 15393 | ;; |
| 15394 | ia64*) |
| 15395 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15396 | hardcode_direct_GCJ=no |
| 15397 | hardcode_shlibpath_var_GCJ=no |
| 15398 | |
| 15399 | # hardcode_minus_L: Not really in the search PATH, |
| 15400 | # but as the default location of the library. |
| 15401 | hardcode_minus_L_GCJ=yes |
| 15402 | ;; |
| 15403 | *) |
| 15404 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15405 | hardcode_libdir_separator_GCJ=: |
| 15406 | hardcode_direct_GCJ=yes |
| 15407 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15408 | |
| 15409 | # hardcode_minus_L: Not really in the search PATH, |
| 15410 | # but as the default location of the library. |
| 15411 | hardcode_minus_L_GCJ=yes |
| 15412 | ;; |
| 15413 | esac |
| 15414 | fi |
| 15415 | ;; |
| 15416 | |
| 15417 | irix5* | irix6* | nonstopux*) |
| 15418 | if test "$GCC" = yes; then |
| 15419 | 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' |
| 15420 | else |
| 15421 | 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' |
| 15422 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 15423 | fi |
| 15424 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15425 | hardcode_libdir_separator_GCJ=: |
| 15426 | link_all_deplibs_GCJ=yes |
| 15427 | ;; |
| 15428 | |
| 15429 | netbsd*) |
| 15430 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15431 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15432 | else |
| 15433 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15434 | fi |
| 15435 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15436 | hardcode_direct_GCJ=yes |
| 15437 | hardcode_shlibpath_var_GCJ=no |
| 15438 | ;; |
| 15439 | |
| 15440 | newsos6) |
| 15441 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15442 | hardcode_direct_GCJ=yes |
| 15443 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15444 | hardcode_libdir_separator_GCJ=: |
| 15445 | hardcode_shlibpath_var_GCJ=no |
| 15446 | ;; |
| 15447 | |
| 15448 | openbsd*) |
| 15449 | hardcode_direct_GCJ=yes |
| 15450 | hardcode_shlibpath_var_GCJ=no |
| 15451 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15452 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15453 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15454 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15455 | else |
| 15456 | case $host_os in |
| 15457 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15458 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15459 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15460 | ;; |
| 15461 | *) |
| 15462 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15463 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15464 | ;; |
| 15465 | esac |
| 15466 | fi |
| 15467 | ;; |
| 15468 | |
| 15469 | os2*) |
| 15470 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15471 | hardcode_minus_L_GCJ=yes |
| 15472 | allow_undefined_flag_GCJ=unsupported |
| 15473 | 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' |
| 15474 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15475 | ;; |
| 15476 | |
| 15477 | osf3*) |
| 15478 | if test "$GCC" = yes; then |
| 15479 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 15480 | 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' |
| 15481 | else |
| 15482 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 15483 | 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' |
| 15484 | fi |
| 15485 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15486 | hardcode_libdir_separator_GCJ=: |
| 15487 | ;; |
| 15488 | |
| 15489 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15490 | if test "$GCC" = yes; then |
| 15491 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 15492 | 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' |
| 15493 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15494 | else |
| 15495 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 15496 | 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' |
| 15497 | 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~ |
| 15498 | $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' |
| 15499 | |
| 15500 | # Both c and cxx compiler support -rpath directly |
| 15501 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 15502 | fi |
| 15503 | hardcode_libdir_separator_GCJ=: |
| 15504 | ;; |
| 15505 | |
| 15506 | sco3.2v5*) |
| 15507 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15508 | hardcode_shlibpath_var_GCJ=no |
| 15509 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 15510 | runpath_var=LD_RUN_PATH |
| 15511 | hardcode_runpath_var=yes |
| 15512 | ;; |
| 15513 | |
| 15514 | solaris*) |
| 15515 | no_undefined_flag_GCJ=' -z text' |
| 15516 | if test "$GCC" = yes; then |
| 15517 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15518 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15519 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15520 | else |
| 15521 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15522 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15523 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15524 | fi |
| 15525 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15526 | hardcode_shlibpath_var_GCJ=no |
| 15527 | case $host_os in |
| 15528 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15529 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15530 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 15531 | esac |
| 15532 | link_all_deplibs_GCJ=yes |
| 15533 | ;; |
| 15534 | |
| 15535 | sunos4*) |
| 15536 | if test "x$host_vendor" = xsequent; then |
| 15537 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15538 | # files that make .init and .fini sections work. |
| 15539 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15540 | else |
| 15541 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15542 | fi |
| 15543 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15544 | hardcode_direct_GCJ=yes |
| 15545 | hardcode_minus_L_GCJ=yes |
| 15546 | hardcode_shlibpath_var_GCJ=no |
| 15547 | ;; |
| 15548 | |
| 15549 | sysv4) |
| 15550 | case $host_vendor in |
| 15551 | sni) |
| 15552 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15553 | hardcode_direct_GCJ=yes # is this really true??? |
| 15554 | ;; |
| 15555 | siemens) |
| 15556 | ## LD is ld it makes a PLAMLIB |
| 15557 | ## CC just makes a GrossModule. |
| 15558 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15559 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 15560 | hardcode_direct_GCJ=no |
| 15561 | ;; |
| 15562 | motorola) |
| 15563 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15564 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 15565 | ;; |
| 15566 | esac |
| 15567 | runpath_var='LD_RUN_PATH' |
| 15568 | hardcode_shlibpath_var_GCJ=no |
| 15569 | ;; |
| 15570 | |
| 15571 | sysv4.3*) |
| 15572 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15573 | hardcode_shlibpath_var_GCJ=no |
| 15574 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 15575 | ;; |
| 15576 | |
| 15577 | sysv4*MP*) |
| 15578 | if test -d /usr/nec; then |
| 15579 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15580 | hardcode_shlibpath_var_GCJ=no |
| 15581 | runpath_var=LD_RUN_PATH |
| 15582 | hardcode_runpath_var=yes |
| 15583 | ld_shlibs_GCJ=yes |
| 15584 | fi |
| 15585 | ;; |
| 15586 | |
| 15587 | sysv4.2uw2*) |
| 15588 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15589 | hardcode_direct_GCJ=yes |
| 15590 | hardcode_minus_L_GCJ=no |
| 15591 | hardcode_shlibpath_var_GCJ=no |
| 15592 | hardcode_runpath_var=yes |
| 15593 | runpath_var=LD_RUN_PATH |
| 15594 | ;; |
| 15595 | |
| 15596 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 15597 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 15598 | if test "$GCC" = yes; then |
| 15599 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15600 | else |
| 15601 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15602 | fi |
| 15603 | runpath_var='LD_RUN_PATH' |
| 15604 | hardcode_shlibpath_var_GCJ=no |
| 15605 | ;; |
| 15606 | |
| 15607 | sysv5*) |
| 15608 | no_undefined_flag_GCJ=' -z text' |
| 15609 | # $CC -shared without GNU ld will not create a library from C++ |
| 15610 | # object files and a static libstdc++, better avoid it by now |
| 15611 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15612 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15613 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15614 | hardcode_libdir_flag_spec_GCJ= |
| 15615 | hardcode_shlibpath_var_GCJ=no |
| 15616 | runpath_var='LD_RUN_PATH' |
| 15617 | ;; |
| 15618 | |
| 15619 | uts4*) |
| 15620 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15621 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15622 | hardcode_shlibpath_var_GCJ=no |
| 15623 | ;; |
| 15624 | |
| 15625 | *) |
| 15626 | ld_shlibs_GCJ=no |
| 15627 | ;; |
| 15628 | esac |
| 15629 | fi |
| 15630 | |
| 15631 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 15632 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 15633 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 15634 | |
| 15635 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15636 | if test "$GCC" = yes; then |
| 15637 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15638 | fi |
| 15639 | |
| 15640 | # |
| 15641 | # Do we need to explicitly link libc? |
| 15642 | # |
| 15643 | case "x$archive_cmds_need_lc_GCJ" in |
| 15644 | x|xyes) |
| 15645 | # Assume -lc should be added |
| 15646 | archive_cmds_need_lc_GCJ=yes |
| 15647 | |
| 15648 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15649 | case $archive_cmds_GCJ in |
| 15650 | *'~'*) |
| 15651 | # FIXME: we may have to deal with multi-command sequences. |
| 15652 | ;; |
| 15653 | '$CC '*) |
| 15654 | # Test whether the compiler implicitly links with -lc since on some |
| 15655 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15656 | # to ld, don't add -lc before -lgcc. |
| 15657 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15658 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 15659 | $rm conftest* |
| 15660 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15661 | |
| 15662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15663 | (eval $ac_compile) 2>&5 |
| 15664 | ac_status=$? |
| 15665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15666 | (exit $ac_status); } 2>conftest.err; then |
| 15667 | soname=conftest |
| 15668 | lib=conftest |
| 15669 | libobjs=conftest.$ac_objext |
| 15670 | deplibs= |
| 15671 | wl=$lt_prog_compiler_wl_GCJ |
| 15672 | compiler_flags=-v |
| 15673 | linker_flags=-v |
| 15674 | verstring= |
| 15675 | output_objdir=. |
| 15676 | libname=conftest |
| 15677 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 15678 | allow_undefined_flag_GCJ= |
| 15679 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15680 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15681 | ac_status=$? |
| 15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15683 | (exit $ac_status); } |
| 15684 | then |
| 15685 | archive_cmds_need_lc_GCJ=no |
| 15686 | else |
| 15687 | archive_cmds_need_lc_GCJ=yes |
| 15688 | fi |
| 15689 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 15690 | else |
| 15691 | cat conftest.err 1>&5 |
| 15692 | fi |
| 15693 | $rm conftest* |
| 15694 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 15695 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 15696 | ;; |
| 15697 | esac |
| 15698 | fi |
| 15699 | ;; |
| 15700 | esac |
| 15701 | |
| 15702 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 15703 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 15704 | hardcode_action_GCJ= |
| 15705 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 15706 | test -n "$runpath_var GCJ" || \ |
| 15707 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| 15708 | |
| 15709 | # We can hardcode non-existant directories. |
| 15710 | if test "$hardcode_direct_GCJ" != no && |
| 15711 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15712 | # have to relink, otherwise we might link with an installed library |
| 15713 | # when we should be linking with a yet-to-be-installed one |
| 15714 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 15715 | test "$hardcode_minus_L_GCJ" != no; then |
| 15716 | # Linking always hardcodes the temporary library directory. |
| 15717 | hardcode_action_GCJ=relink |
| 15718 | else |
| 15719 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15720 | hardcode_action_GCJ=immediate |
| 15721 | fi |
| 15722 | else |
| 15723 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15724 | # directories. |
| 15725 | hardcode_action_GCJ=unsupported |
| 15726 | fi |
| 15727 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 15728 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 15729 | |
| 15730 | if test "$hardcode_action_GCJ" = relink; then |
| 15731 | # Fast installation is not supported |
| 15732 | enable_fast_install=no |
| 15733 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15734 | test "$enable_shared" = no; then |
| 15735 | # Fast installation is not necessary |
| 15736 | enable_fast_install=needless |
| 15737 | fi |
| 15738 | |
| 15739 | striplib= |
| 15740 | old_striplib= |
| 15741 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 15742 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 15743 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 15744 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 15745 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 15746 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15747 | echo "${ECHO_T}yes" >&6 |
| 15748 | else |
| 15749 | # FIXME - insert some real tests, host_os isn't really good enough |
| 15750 | case $host_os in |
| 15751 | darwin*) |
| 15752 | if test -n "$STRIP" ; then |
| 15753 | striplib="$STRIP -x" |
| 15754 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15755 | echo "${ECHO_T}yes" >&6 |
| 15756 | else |
| 15757 | echo "$as_me:$LINENO: result: no" >&5 |
| 15758 | echo "${ECHO_T}no" >&6 |
| 15759 | fi |
| 15760 | ;; |
| 15761 | *) |
| 15762 | echo "$as_me:$LINENO: result: no" >&5 |
| 15763 | echo "${ECHO_T}no" >&6 |
| 15764 | ;; |
| 15765 | esac |
| 15766 | fi |
| 15767 | |
| 15768 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15769 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 15770 | library_names_spec= |
| 15771 | libname_spec='lib$name' |
| 15772 | soname_spec= |
| 15773 | shrext=".so" |
| 15774 | postinstall_cmds= |
| 15775 | postuninstall_cmds= |
| 15776 | finish_cmds= |
| 15777 | finish_eval= |
| 15778 | shlibpath_var= |
| 15779 | shlibpath_overrides_runpath=unknown |
| 15780 | version_type=none |
| 15781 | dynamic_linker="$host_os ld.so" |
| 15782 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15783 | if test "$GCC" = yes; then |
| 15784 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15785 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15786 | # if the path contains ";" then we assume it to be the separator |
| 15787 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15788 | # assumed that no part of a normal pathname contains ";" but that should |
| 15789 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15790 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15791 | else |
| 15792 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15793 | fi |
| 15794 | else |
| 15795 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15796 | fi |
| 15797 | need_lib_prefix=unknown |
| 15798 | hardcode_into_libs=no |
| 15799 | |
| 15800 | # when you set need_version to no, make sure it does not cause -set_version |
| 15801 | # flags to be left without arguments |
| 15802 | need_version=unknown |
| 15803 | |
| 15804 | case $host_os in |
| 15805 | aix3*) |
| 15806 | version_type=linux |
| 15807 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15808 | shlibpath_var=LIBPATH |
| 15809 | |
| 15810 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15811 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15812 | ;; |
| 15813 | |
| 15814 | aix4* | aix5*) |
| 15815 | version_type=linux |
| 15816 | need_lib_prefix=no |
| 15817 | need_version=no |
| 15818 | hardcode_into_libs=yes |
| 15819 | if test "$host_cpu" = ia64; then |
| 15820 | # AIX 5 supports IA64 |
| 15821 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15822 | shlibpath_var=LD_LIBRARY_PATH |
| 15823 | else |
| 15824 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15825 | # for dependence libraries. The import file would start with |
| 15826 | # the line `#! .'. This would cause the generated library to |
| 15827 | # depend on `.', always an invalid library. This was fixed in |
| 15828 | # development snapshots of GCC prior to 3.0. |
| 15829 | case $host_os in |
| 15830 | aix4 | aix4.[01] | aix4.[01].*) |
| 15831 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15832 | echo ' yes ' |
| 15833 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15834 | : |
| 15835 | else |
| 15836 | can_build_shared=no |
| 15837 | fi |
| 15838 | ;; |
| 15839 | esac |
| 15840 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15841 | # soname into executable. Probably we can add versioning support to |
| 15842 | # collect2, so additional links can be useful in future. |
| 15843 | if test "$aix_use_runtimelinking" = yes; then |
| 15844 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15845 | # instead of lib<name>.a to let people know that these are not |
| 15846 | # typical AIX shared libraries. |
| 15847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15848 | else |
| 15849 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15850 | # and later when we are not doing run time linking. |
| 15851 | library_names_spec='${libname}${release}.a $libname.a' |
| 15852 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15853 | fi |
| 15854 | shlibpath_var=LIBPATH |
| 15855 | fi |
| 15856 | ;; |
| 15857 | |
| 15858 | amigaos*) |
| 15859 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15860 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15861 | 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' |
| 15862 | ;; |
| 15863 | |
| 15864 | beos*) |
| 15865 | library_names_spec='${libname}${shared_ext}' |
| 15866 | dynamic_linker="$host_os ld.so" |
| 15867 | shlibpath_var=LIBRARY_PATH |
| 15868 | ;; |
| 15869 | |
| 15870 | bsdi4*) |
| 15871 | version_type=linux |
| 15872 | need_version=no |
| 15873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15874 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15875 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15876 | shlibpath_var=LD_LIBRARY_PATH |
| 15877 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15878 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15879 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15880 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15881 | # libtool to hard-code these into programs |
| 15882 | ;; |
| 15883 | |
| 15884 | cygwin* | mingw* | pw32*) |
| 15885 | version_type=windows |
| 15886 | shrext=".dll" |
| 15887 | need_version=no |
| 15888 | need_lib_prefix=no |
| 15889 | |
| 15890 | case $GCC,$host_os in |
| 15891 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15892 | library_names_spec='$libname.dll.a' |
| 15893 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15894 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15895 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15896 | dldir=$destdir/`dirname \$dlpath`~ |
| 15897 | test -d \$dldir || mkdir -p \$dldir~ |
| 15898 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 15899 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15900 | dlpath=$dir/\$dldll~ |
| 15901 | $rm \$dlpath' |
| 15902 | shlibpath_overrides_runpath=yes |
| 15903 | |
| 15904 | case $host_os in |
| 15905 | cygwin*) |
| 15906 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15907 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15908 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 15909 | ;; |
| 15910 | mingw*) |
| 15911 | # MinGW DLLs use traditional 'lib' prefix |
| 15912 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15913 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15914 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15915 | # It is most probably a Windows format PATH printed by |
| 15916 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15917 | # path with ; separators, and with drive letters. We can handle the |
| 15918 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15919 | # especially as we might pass files found there to a mingw objdump, |
| 15920 | # which wouldn't understand a cygwinified path. Ahh. |
| 15921 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15922 | else |
| 15923 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15924 | fi |
| 15925 | ;; |
| 15926 | pw32*) |
| 15927 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15928 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 15929 | ;; |
| 15930 | esac |
| 15931 | ;; |
| 15932 | |
| 15933 | *) |
| 15934 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15935 | ;; |
| 15936 | esac |
| 15937 | dynamic_linker='Win32 ld.exe' |
| 15938 | # FIXME: first we should search . and the directory the executable is in |
| 15939 | shlibpath_var=PATH |
| 15940 | ;; |
| 15941 | |
| 15942 | darwin* | rhapsody*) |
| 15943 | dynamic_linker="$host_os dyld" |
| 15944 | version_type=darwin |
| 15945 | need_lib_prefix=no |
| 15946 | need_version=no |
| 15947 | # FIXME: Relying on posixy $() will cause problems for |
| 15948 | # cross-compilation, but unfortunately the echo tests do not |
| 15949 | # yet detect zsh echo's removal of \ escapes. |
| 15950 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15951 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15952 | shlibpath_overrides_runpath=yes |
| 15953 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15954 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 15955 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15956 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 15957 | 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"` |
| 15958 | fi |
| 15959 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15960 | ;; |
| 15961 | |
| 15962 | dgux*) |
| 15963 | version_type=linux |
| 15964 | need_lib_prefix=no |
| 15965 | need_version=no |
| 15966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15967 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15968 | shlibpath_var=LD_LIBRARY_PATH |
| 15969 | ;; |
| 15970 | |
| 15971 | freebsd1*) |
| 15972 | dynamic_linker=no |
| 15973 | ;; |
| 15974 | |
| 15975 | freebsd*) |
| 15976 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 15977 | version_type=freebsd-$objformat |
| 15978 | case $version_type in |
| 15979 | freebsd-elf*) |
| 15980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15981 | need_version=no |
| 15982 | need_lib_prefix=no |
| 15983 | ;; |
| 15984 | freebsd-*) |
| 15985 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15986 | need_version=yes |
| 15987 | ;; |
| 15988 | esac |
| 15989 | shlibpath_var=LD_LIBRARY_PATH |
| 15990 | case $host_os in |
| 15991 | freebsd2*) |
| 15992 | shlibpath_overrides_runpath=yes |
| 15993 | ;; |
| 15994 | freebsd3.01* | freebsdelf3.01*) |
| 15995 | shlibpath_overrides_runpath=yes |
| 15996 | hardcode_into_libs=yes |
| 15997 | ;; |
| 15998 | *) # from 3.2 on |
| 15999 | shlibpath_overrides_runpath=no |
| 16000 | hardcode_into_libs=yes |
| 16001 | ;; |
| 16002 | esac |
| 16003 | ;; |
| 16004 | |
| 16005 | gnu*) |
| 16006 | version_type=linux |
| 16007 | need_lib_prefix=no |
| 16008 | need_version=no |
| 16009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16010 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16011 | shlibpath_var=LD_LIBRARY_PATH |
| 16012 | hardcode_into_libs=yes |
| 16013 | ;; |
| 16014 | |
| 16015 | hpux9* | hpux10* | hpux11*) |
| 16016 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16017 | # link against other versions. |
| 16018 | version_type=sunos |
| 16019 | need_lib_prefix=no |
| 16020 | need_version=no |
| 16021 | case "$host_cpu" in |
| 16022 | ia64*) |
| 16023 | shrext='.so' |
| 16024 | hardcode_into_libs=yes |
| 16025 | dynamic_linker="$host_os dld.so" |
| 16026 | shlibpath_var=LD_LIBRARY_PATH |
| 16027 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16030 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16031 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16032 | else |
| 16033 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16034 | fi |
| 16035 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16036 | ;; |
| 16037 | hppa*64*) |
| 16038 | shrext='.sl' |
| 16039 | hardcode_into_libs=yes |
| 16040 | dynamic_linker="$host_os dld.sl" |
| 16041 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16042 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16044 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16045 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16046 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16047 | ;; |
| 16048 | *) |
| 16049 | shrext='.sl' |
| 16050 | dynamic_linker="$host_os dld.sl" |
| 16051 | shlibpath_var=SHLIB_PATH |
| 16052 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16054 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16055 | ;; |
| 16056 | esac |
| 16057 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16058 | postinstall_cmds='chmod 555 $lib' |
| 16059 | ;; |
| 16060 | |
| 16061 | irix5* | irix6* | nonstopux*) |
| 16062 | case $host_os in |
| 16063 | nonstopux*) version_type=nonstopux ;; |
| 16064 | *) |
| 16065 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16066 | version_type=linux |
| 16067 | else |
| 16068 | version_type=irix |
| 16069 | fi ;; |
| 16070 | esac |
| 16071 | need_lib_prefix=no |
| 16072 | need_version=no |
| 16073 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16075 | case $host_os in |
| 16076 | irix5* | nonstopux*) |
| 16077 | libsuff= shlibsuff= |
| 16078 | ;; |
| 16079 | *) |
| 16080 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16081 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16082 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16083 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16084 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16085 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16086 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16087 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16088 | esac |
| 16089 | ;; |
| 16090 | esac |
| 16091 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16092 | shlibpath_overrides_runpath=no |
| 16093 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16094 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16095 | hardcode_into_libs=yes |
| 16096 | ;; |
| 16097 | |
| 16098 | # No shared lib support for Linux oldld, aout, or coff. |
| 16099 | linux*oldld* | linux*aout* | linux*coff*) |
| 16100 | dynamic_linker=no |
| 16101 | ;; |
| 16102 | |
| 16103 | # This must be Linux ELF. |
| 16104 | linux*) |
| 16105 | version_type=linux |
| 16106 | need_lib_prefix=no |
| 16107 | need_version=no |
| 16108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16109 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16110 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16111 | shlibpath_var=LD_LIBRARY_PATH |
| 16112 | shlibpath_overrides_runpath=no |
| 16113 | # This implies no fast_install, which is unacceptable. |
| 16114 | # Some rework will be needed to allow for fast_install |
| 16115 | # before this can be enabled. |
| 16116 | hardcode_into_libs=yes |
| 16117 | |
| 16118 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16119 | # powerpc, because MkLinux only supported shared libraries with the |
| 16120 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16121 | # most powerpc-linux boxes support dynamic linking these days and |
| 16122 | # people can always --disable-shared, the test was removed, and we |
| 16123 | # assume the GNU/Linux dynamic linker is in use. |
| 16124 | dynamic_linker='GNU/Linux ld.so' |
| 16125 | ;; |
| 16126 | |
| 16127 | netbsd*) |
| 16128 | version_type=sunos |
| 16129 | need_lib_prefix=no |
| 16130 | need_version=no |
| 16131 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16133 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16134 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16135 | else |
| 16136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 16137 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16138 | dynamic_linker='NetBSD ld.elf_so' |
| 16139 | fi |
| 16140 | shlibpath_var=LD_LIBRARY_PATH |
| 16141 | shlibpath_overrides_runpath=yes |
| 16142 | hardcode_into_libs=yes |
| 16143 | ;; |
| 16144 | |
| 16145 | newsos6) |
| 16146 | version_type=linux |
| 16147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16148 | shlibpath_var=LD_LIBRARY_PATH |
| 16149 | shlibpath_overrides_runpath=yes |
| 16150 | ;; |
| 16151 | |
| 16152 | nto-qnx) |
| 16153 | version_type=linux |
| 16154 | need_lib_prefix=no |
| 16155 | need_version=no |
| 16156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16157 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16158 | shlibpath_var=LD_LIBRARY_PATH |
| 16159 | shlibpath_overrides_runpath=yes |
| 16160 | ;; |
| 16161 | |
| 16162 | openbsd*) |
| 16163 | version_type=sunos |
| 16164 | need_lib_prefix=no |
| 16165 | need_version=no |
| 16166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16167 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16168 | shlibpath_var=LD_LIBRARY_PATH |
| 16169 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16170 | case $host_os in |
| 16171 | openbsd2.[89] | openbsd2.[89].*) |
| 16172 | shlibpath_overrides_runpath=no |
| 16173 | ;; |
| 16174 | *) |
| 16175 | shlibpath_overrides_runpath=yes |
| 16176 | ;; |
| 16177 | esac |
| 16178 | else |
| 16179 | shlibpath_overrides_runpath=yes |
| 16180 | fi |
| 16181 | ;; |
| 16182 | |
| 16183 | os2*) |
| 16184 | libname_spec='$name' |
| 16185 | shrext=".dll" |
| 16186 | need_lib_prefix=no |
| 16187 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16188 | dynamic_linker='OS/2 ld.exe' |
| 16189 | shlibpath_var=LIBPATH |
| 16190 | ;; |
| 16191 | |
| 16192 | osf3* | osf4* | osf5*) |
| 16193 | version_type=osf |
| 16194 | need_lib_prefix=no |
| 16195 | need_version=no |
| 16196 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16198 | shlibpath_var=LD_LIBRARY_PATH |
| 16199 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16200 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16201 | ;; |
| 16202 | |
| 16203 | sco3.2v5*) |
| 16204 | version_type=osf |
| 16205 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16207 | shlibpath_var=LD_LIBRARY_PATH |
| 16208 | ;; |
| 16209 | |
| 16210 | solaris*) |
| 16211 | version_type=linux |
| 16212 | need_lib_prefix=no |
| 16213 | need_version=no |
| 16214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16215 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16216 | shlibpath_var=LD_LIBRARY_PATH |
| 16217 | shlibpath_overrides_runpath=yes |
| 16218 | hardcode_into_libs=yes |
| 16219 | # ldd complains unless libraries are executable |
| 16220 | postinstall_cmds='chmod +x $lib' |
| 16221 | ;; |
| 16222 | |
| 16223 | sunos4*) |
| 16224 | version_type=sunos |
| 16225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16226 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16227 | shlibpath_var=LD_LIBRARY_PATH |
| 16228 | shlibpath_overrides_runpath=yes |
| 16229 | if test "$with_gnu_ld" = yes; then |
| 16230 | need_lib_prefix=no |
| 16231 | fi |
| 16232 | need_version=yes |
| 16233 | ;; |
| 16234 | |
| 16235 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16236 | version_type=linux |
| 16237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16238 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16239 | shlibpath_var=LD_LIBRARY_PATH |
| 16240 | case $host_vendor in |
| 16241 | sni) |
| 16242 | shlibpath_overrides_runpath=no |
| 16243 | need_lib_prefix=no |
| 16244 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16245 | runpath_var=LD_RUN_PATH |
| 16246 | ;; |
| 16247 | siemens) |
| 16248 | need_lib_prefix=no |
| 16249 | ;; |
| 16250 | motorola) |
| 16251 | need_lib_prefix=no |
| 16252 | need_version=no |
| 16253 | shlibpath_overrides_runpath=no |
| 16254 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16255 | ;; |
| 16256 | esac |
| 16257 | ;; |
| 16258 | |
| 16259 | sysv4*MP*) |
| 16260 | if test -d /usr/nec ;then |
| 16261 | version_type=linux |
| 16262 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16263 | soname_spec='$libname${shared_ext}.$major' |
| 16264 | shlibpath_var=LD_LIBRARY_PATH |
| 16265 | fi |
| 16266 | ;; |
| 16267 | |
| 16268 | uts4*) |
| 16269 | version_type=linux |
| 16270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16271 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16272 | shlibpath_var=LD_LIBRARY_PATH |
| 16273 | ;; |
| 16274 | |
| 16275 | *) |
| 16276 | dynamic_linker=no |
| 16277 | ;; |
| 16278 | esac |
| 16279 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16280 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 16281 | test "$dynamic_linker" = no && can_build_shared=no |
| 16282 | |
| 16283 | if test "x$enable_dlopen" != xyes; then |
| 16284 | enable_dlopen=unknown |
| 16285 | enable_dlopen_self=unknown |
| 16286 | enable_dlopen_self_static=unknown |
| 16287 | else |
| 16288 | lt_cv_dlopen=no |
| 16289 | lt_cv_dlopen_libs= |
| 16290 | |
| 16291 | case $host_os in |
| 16292 | beos*) |
| 16293 | lt_cv_dlopen="load_add_on" |
| 16294 | lt_cv_dlopen_libs= |
| 16295 | lt_cv_dlopen_self=yes |
| 16296 | ;; |
| 16297 | |
| 16298 | mingw* | pw32*) |
| 16299 | lt_cv_dlopen="LoadLibrary" |
| 16300 | lt_cv_dlopen_libs= |
| 16301 | ;; |
| 16302 | |
| 16303 | cygwin*) |
| 16304 | lt_cv_dlopen="dlopen" |
| 16305 | lt_cv_dlopen_libs= |
| 16306 | ;; |
| 16307 | |
| 16308 | darwin*) |
| 16309 | # if libdl is installed we need to link against it |
| 16310 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16311 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16312 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16314 | else |
| 16315 | ac_check_lib_save_LIBS=$LIBS |
| 16316 | LIBS="-ldl $LIBS" |
| 16317 | cat >conftest.$ac_ext <<_ACEOF |
| 16318 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16319 | /* confdefs.h. */ |
| 16320 | _ACEOF |
| 16321 | cat confdefs.h >>conftest.$ac_ext |
| 16322 | cat >>conftest.$ac_ext <<_ACEOF |
| 16323 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16324 | |
| 16325 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16326 | #ifdef __cplusplus |
| 16327 | extern "C" |
| 16328 | #endif |
| 16329 | /* We use char because int might match the return type of a gcc2 |
| 16330 | builtin and then its argument prototype would still apply. */ |
| 16331 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16332 | int |
| 16333 | main () |
| 16334 | { |
| 16335 | dlopen (); |
| 16336 | ; |
| 16337 | return 0; |
| 16338 | } |
| 16339 | _ACEOF |
| 16340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16342 | (eval $ac_link) 2>&5 |
| 16343 | ac_status=$? |
| 16344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16345 | (exit $ac_status); } && |
| 16346 | { ac_try='test -s conftest$ac_exeext' |
| 16347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16348 | (eval $ac_try) 2>&5 |
| 16349 | ac_status=$? |
| 16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16351 | (exit $ac_status); }; }; then |
| 16352 | ac_cv_lib_dl_dlopen=yes |
| 16353 | else |
| 16354 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16356 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16357 | ac_cv_lib_dl_dlopen=no |
| 16358 | fi |
| 16359 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16360 | LIBS=$ac_check_lib_save_LIBS |
| 16361 | fi |
| 16362 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16363 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 16364 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16365 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16366 | else |
| 16367 | |
| 16368 | lt_cv_dlopen="dyld" |
| 16369 | lt_cv_dlopen_libs= |
| 16370 | lt_cv_dlopen_self=yes |
| 16371 | |
| 16372 | fi |
| 16373 | |
| 16374 | ;; |
| 16375 | |
| 16376 | *) |
| 16377 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16378 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 16379 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16381 | else |
| 16382 | cat >conftest.$ac_ext <<_ACEOF |
| 16383 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16384 | /* confdefs.h. */ |
| 16385 | _ACEOF |
| 16386 | cat confdefs.h >>conftest.$ac_ext |
| 16387 | cat >>conftest.$ac_ext <<_ACEOF |
| 16388 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16389 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16390 | which can conflict with char shl_load (); below. |
| 16391 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16392 | <limits.h> exists even on freestanding compilers. */ |
| 16393 | #ifdef __STDC__ |
| 16394 | # include <limits.h> |
| 16395 | #else |
| 16396 | # include <assert.h> |
| 16397 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16398 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16399 | #ifdef __cplusplus |
| 16400 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16401 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16402 | #endif |
| 16403 | /* We use char because int might match the return type of a gcc2 |
| 16404 | builtin and then its argument prototype would still apply. */ |
| 16405 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16406 | /* The GNU C library defines this for functions which it implements |
| 16407 | to always fail with ENOSYS. Some functions are actually named |
| 16408 | something starting with __ and the normal name is an alias. */ |
| 16409 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 16410 | choke me |
| 16411 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16412 | char (*f) () = shl_load; |
| 16413 | #endif |
| 16414 | #ifdef __cplusplus |
| 16415 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16416 | #endif |
| 16417 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16418 | int |
| 16419 | main () |
| 16420 | { |
| 16421 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16422 | ; |
| 16423 | return 0; |
| 16424 | } |
| 16425 | _ACEOF |
| 16426 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16428 | (eval $ac_link) 2>&5 |
| 16429 | ac_status=$? |
| 16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16431 | (exit $ac_status); } && |
| 16432 | { ac_try='test -s conftest$ac_exeext' |
| 16433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16434 | (eval $ac_try) 2>&5 |
| 16435 | ac_status=$? |
| 16436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16437 | (exit $ac_status); }; }; then |
| 16438 | ac_cv_func_shl_load=yes |
| 16439 | else |
| 16440 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16442 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16443 | ac_cv_func_shl_load=no |
| 16444 | fi |
| 16445 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16446 | fi |
| 16447 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16448 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 16449 | if test $ac_cv_func_shl_load = yes; then |
| 16450 | lt_cv_dlopen="shl_load" |
| 16451 | else |
| 16452 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16453 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 16454 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16456 | else |
| 16457 | ac_check_lib_save_LIBS=$LIBS |
| 16458 | LIBS="-ldld $LIBS" |
| 16459 | cat >conftest.$ac_ext <<_ACEOF |
| 16460 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16461 | /* confdefs.h. */ |
| 16462 | _ACEOF |
| 16463 | cat confdefs.h >>conftest.$ac_ext |
| 16464 | cat >>conftest.$ac_ext <<_ACEOF |
| 16465 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16466 | |
| 16467 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16468 | #ifdef __cplusplus |
| 16469 | extern "C" |
| 16470 | #endif |
| 16471 | /* We use char because int might match the return type of a gcc2 |
| 16472 | builtin and then its argument prototype would still apply. */ |
| 16473 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16474 | int |
| 16475 | main () |
| 16476 | { |
| 16477 | shl_load (); |
| 16478 | ; |
| 16479 | return 0; |
| 16480 | } |
| 16481 | _ACEOF |
| 16482 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16484 | (eval $ac_link) 2>&5 |
| 16485 | ac_status=$? |
| 16486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16487 | (exit $ac_status); } && |
| 16488 | { ac_try='test -s conftest$ac_exeext' |
| 16489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16490 | (eval $ac_try) 2>&5 |
| 16491 | ac_status=$? |
| 16492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16493 | (exit $ac_status); }; }; then |
| 16494 | ac_cv_lib_dld_shl_load=yes |
| 16495 | else |
| 16496 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16498 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16499 | ac_cv_lib_dld_shl_load=no |
| 16500 | fi |
| 16501 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16502 | LIBS=$ac_check_lib_save_LIBS |
| 16503 | fi |
| 16504 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16505 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 16506 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16507 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16508 | else |
| 16509 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16510 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 16511 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16513 | else |
| 16514 | cat >conftest.$ac_ext <<_ACEOF |
| 16515 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16516 | /* confdefs.h. */ |
| 16517 | _ACEOF |
| 16518 | cat confdefs.h >>conftest.$ac_ext |
| 16519 | cat >>conftest.$ac_ext <<_ACEOF |
| 16520 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16521 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16522 | which can conflict with char dlopen (); below. |
| 16523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16524 | <limits.h> exists even on freestanding compilers. */ |
| 16525 | #ifdef __STDC__ |
| 16526 | # include <limits.h> |
| 16527 | #else |
| 16528 | # include <assert.h> |
| 16529 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16530 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16531 | #ifdef __cplusplus |
| 16532 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16533 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16534 | #endif |
| 16535 | /* We use char because int might match the return type of a gcc2 |
| 16536 | builtin and then its argument prototype would still apply. */ |
| 16537 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16538 | /* The GNU C library defines this for functions which it implements |
| 16539 | to always fail with ENOSYS. Some functions are actually named |
| 16540 | something starting with __ and the normal name is an alias. */ |
| 16541 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 16542 | choke me |
| 16543 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16544 | char (*f) () = dlopen; |
| 16545 | #endif |
| 16546 | #ifdef __cplusplus |
| 16547 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16548 | #endif |
| 16549 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16550 | int |
| 16551 | main () |
| 16552 | { |
| 16553 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16554 | ; |
| 16555 | return 0; |
| 16556 | } |
| 16557 | _ACEOF |
| 16558 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16560 | (eval $ac_link) 2>&5 |
| 16561 | ac_status=$? |
| 16562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16563 | (exit $ac_status); } && |
| 16564 | { ac_try='test -s conftest$ac_exeext' |
| 16565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16566 | (eval $ac_try) 2>&5 |
| 16567 | ac_status=$? |
| 16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16569 | (exit $ac_status); }; }; then |
| 16570 | ac_cv_func_dlopen=yes |
| 16571 | else |
| 16572 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16574 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16575 | ac_cv_func_dlopen=no |
| 16576 | fi |
| 16577 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16578 | fi |
| 16579 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16580 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 16581 | if test $ac_cv_func_dlopen = yes; then |
| 16582 | lt_cv_dlopen="dlopen" |
| 16583 | else |
| 16584 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16585 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16586 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16588 | else |
| 16589 | ac_check_lib_save_LIBS=$LIBS |
| 16590 | LIBS="-ldl $LIBS" |
| 16591 | cat >conftest.$ac_ext <<_ACEOF |
| 16592 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16593 | /* confdefs.h. */ |
| 16594 | _ACEOF |
| 16595 | cat confdefs.h >>conftest.$ac_ext |
| 16596 | cat >>conftest.$ac_ext <<_ACEOF |
| 16597 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16598 | |
| 16599 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16600 | #ifdef __cplusplus |
| 16601 | extern "C" |
| 16602 | #endif |
| 16603 | /* We use char because int might match the return type of a gcc2 |
| 16604 | builtin and then its argument prototype would still apply. */ |
| 16605 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16606 | int |
| 16607 | main () |
| 16608 | { |
| 16609 | dlopen (); |
| 16610 | ; |
| 16611 | return 0; |
| 16612 | } |
| 16613 | _ACEOF |
| 16614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16616 | (eval $ac_link) 2>&5 |
| 16617 | ac_status=$? |
| 16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16619 | (exit $ac_status); } && |
| 16620 | { ac_try='test -s conftest$ac_exeext' |
| 16621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16622 | (eval $ac_try) 2>&5 |
| 16623 | ac_status=$? |
| 16624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16625 | (exit $ac_status); }; }; then |
| 16626 | ac_cv_lib_dl_dlopen=yes |
| 16627 | else |
| 16628 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16630 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16631 | ac_cv_lib_dl_dlopen=no |
| 16632 | fi |
| 16633 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16634 | LIBS=$ac_check_lib_save_LIBS |
| 16635 | fi |
| 16636 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16637 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 16638 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16639 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16640 | else |
| 16641 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 16642 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 16643 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 16644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16645 | else |
| 16646 | ac_check_lib_save_LIBS=$LIBS |
| 16647 | LIBS="-lsvld $LIBS" |
| 16648 | cat >conftest.$ac_ext <<_ACEOF |
| 16649 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16650 | /* confdefs.h. */ |
| 16651 | _ACEOF |
| 16652 | cat confdefs.h >>conftest.$ac_ext |
| 16653 | cat >>conftest.$ac_ext <<_ACEOF |
| 16654 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16655 | |
| 16656 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16657 | #ifdef __cplusplus |
| 16658 | extern "C" |
| 16659 | #endif |
| 16660 | /* We use char because int might match the return type of a gcc2 |
| 16661 | builtin and then its argument prototype would still apply. */ |
| 16662 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16663 | int |
| 16664 | main () |
| 16665 | { |
| 16666 | dlopen (); |
| 16667 | ; |
| 16668 | return 0; |
| 16669 | } |
| 16670 | _ACEOF |
| 16671 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16673 | (eval $ac_link) 2>&5 |
| 16674 | ac_status=$? |
| 16675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16676 | (exit $ac_status); } && |
| 16677 | { ac_try='test -s conftest$ac_exeext' |
| 16678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16679 | (eval $ac_try) 2>&5 |
| 16680 | ac_status=$? |
| 16681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16682 | (exit $ac_status); }; }; then |
| 16683 | ac_cv_lib_svld_dlopen=yes |
| 16684 | else |
| 16685 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16687 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16688 | ac_cv_lib_svld_dlopen=no |
| 16689 | fi |
| 16690 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16691 | LIBS=$ac_check_lib_save_LIBS |
| 16692 | fi |
| 16693 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16694 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 16695 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 16696 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16697 | else |
| 16698 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 16699 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 16700 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 16701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16702 | else |
| 16703 | ac_check_lib_save_LIBS=$LIBS |
| 16704 | LIBS="-ldld $LIBS" |
| 16705 | cat >conftest.$ac_ext <<_ACEOF |
| 16706 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16707 | /* confdefs.h. */ |
| 16708 | _ACEOF |
| 16709 | cat confdefs.h >>conftest.$ac_ext |
| 16710 | cat >>conftest.$ac_ext <<_ACEOF |
| 16711 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16712 | |
| 16713 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16714 | #ifdef __cplusplus |
| 16715 | extern "C" |
| 16716 | #endif |
| 16717 | /* We use char because int might match the return type of a gcc2 |
| 16718 | builtin and then its argument prototype would still apply. */ |
| 16719 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16720 | int |
| 16721 | main () |
| 16722 | { |
| 16723 | dld_link (); |
| 16724 | ; |
| 16725 | return 0; |
| 16726 | } |
| 16727 | _ACEOF |
| 16728 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16730 | (eval $ac_link) 2>&5 |
| 16731 | ac_status=$? |
| 16732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16733 | (exit $ac_status); } && |
| 16734 | { ac_try='test -s conftest$ac_exeext' |
| 16735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16736 | (eval $ac_try) 2>&5 |
| 16737 | ac_status=$? |
| 16738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16739 | (exit $ac_status); }; }; then |
| 16740 | ac_cv_lib_dld_dld_link=yes |
| 16741 | else |
| 16742 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 16743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16744 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16745 | ac_cv_lib_dld_dld_link=no |
| 16746 | fi |
| 16747 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16748 | LIBS=$ac_check_lib_save_LIBS |
| 16749 | fi |
| 16750 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16751 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 16752 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 16753 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 16754 | fi |
| 16755 | |
| 16756 | |
| 16757 | fi |
| 16758 | |
| 16759 | |
| 16760 | fi |
| 16761 | |
| 16762 | |
| 16763 | fi |
| 16764 | |
| 16765 | |
| 16766 | fi |
| 16767 | |
| 16768 | |
| 16769 | fi |
| 16770 | |
| 16771 | ;; |
| 16772 | esac |
| 16773 | |
| 16774 | if test "x$lt_cv_dlopen" != xno; then |
| 16775 | enable_dlopen=yes |
| 16776 | else |
| 16777 | enable_dlopen=no |
| 16778 | fi |
| 16779 | |
| 16780 | case $lt_cv_dlopen in |
| 16781 | dlopen) |
| 16782 | save_CPPFLAGS="$CPPFLAGS" |
| 16783 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 16784 | |
| 16785 | save_LDFLAGS="$LDFLAGS" |
| 16786 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 16787 | |
| 16788 | save_LIBS="$LIBS" |
| 16789 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16790 | |
| 16791 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 16792 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 16793 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 16794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16795 | else |
| 16796 | if test "$cross_compiling" = yes; then : |
| 16797 | lt_cv_dlopen_self=cross |
| 16798 | else |
| 16799 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16800 | lt_status=$lt_dlunknown |
| 16801 | cat > conftest.$ac_ext <<EOF |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 16802 | #line 16802 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16803 | #include "confdefs.h" |
| 16804 | |
| 16805 | #if HAVE_DLFCN_H |
| 16806 | #include <dlfcn.h> |
| 16807 | #endif |
| 16808 | |
| 16809 | #include <stdio.h> |
| 16810 | |
| 16811 | #ifdef RTLD_GLOBAL |
| 16812 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16813 | #else |
| 16814 | # ifdef DL_GLOBAL |
| 16815 | # define LT_DLGLOBAL DL_GLOBAL |
| 16816 | # else |
| 16817 | # define LT_DLGLOBAL 0 |
| 16818 | # endif |
| 16819 | #endif |
| 16820 | |
| 16821 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16822 | find out it does not work in some platform. */ |
| 16823 | #ifndef LT_DLLAZY_OR_NOW |
| 16824 | # ifdef RTLD_LAZY |
| 16825 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16826 | # else |
| 16827 | # ifdef DL_LAZY |
| 16828 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16829 | # else |
| 16830 | # ifdef RTLD_NOW |
| 16831 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16832 | # else |
| 16833 | # ifdef DL_NOW |
| 16834 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16835 | # else |
| 16836 | # define LT_DLLAZY_OR_NOW 0 |
| 16837 | # endif |
| 16838 | # endif |
| 16839 | # endif |
| 16840 | # endif |
| 16841 | #endif |
| 16842 | |
| 16843 | #ifdef __cplusplus |
| 16844 | extern "C" void exit (int); |
| 16845 | #endif |
| 16846 | |
| 16847 | void fnord() { int i=42;} |
| 16848 | int main () |
| 16849 | { |
| 16850 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16851 | int status = $lt_dlunknown; |
| 16852 | |
| 16853 | if (self) |
| 16854 | { |
| 16855 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 16856 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16857 | /* dlclose (self); */ |
| 16858 | } |
| 16859 | |
| 16860 | exit (status); |
| 16861 | } |
| 16862 | EOF |
| 16863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16864 | (eval $ac_link) 2>&5 |
| 16865 | ac_status=$? |
| 16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16867 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 16868 | (./conftest; exit; ) 2>/dev/null |
| 16869 | lt_status=$? |
| 16870 | case x$lt_status in |
| 16871 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 16872 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 16873 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 16874 | esac |
| 16875 | else : |
| 16876 | # compilation failed |
| 16877 | lt_cv_dlopen_self=no |
| 16878 | fi |
| 16879 | fi |
| 16880 | rm -fr conftest* |
| 16881 | |
| 16882 | |
| 16883 | fi |
| 16884 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 16885 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 16886 | |
| 16887 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 16888 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 16889 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 16890 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 16891 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 16892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16893 | else |
| 16894 | if test "$cross_compiling" = yes; then : |
| 16895 | lt_cv_dlopen_self_static=cross |
| 16896 | else |
| 16897 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16898 | lt_status=$lt_dlunknown |
| 16899 | cat > conftest.$ac_ext <<EOF |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 16900 | #line 16900 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16901 | #include "confdefs.h" |
| 16902 | |
| 16903 | #if HAVE_DLFCN_H |
| 16904 | #include <dlfcn.h> |
| 16905 | #endif |
| 16906 | |
| 16907 | #include <stdio.h> |
| 16908 | |
| 16909 | #ifdef RTLD_GLOBAL |
| 16910 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16911 | #else |
| 16912 | # ifdef DL_GLOBAL |
| 16913 | # define LT_DLGLOBAL DL_GLOBAL |
| 16914 | # else |
| 16915 | # define LT_DLGLOBAL 0 |
| 16916 | # endif |
| 16917 | #endif |
| 16918 | |
| 16919 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16920 | find out it does not work in some platform. */ |
| 16921 | #ifndef LT_DLLAZY_OR_NOW |
| 16922 | # ifdef RTLD_LAZY |
| 16923 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16924 | # else |
| 16925 | # ifdef DL_LAZY |
| 16926 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16927 | # else |
| 16928 | # ifdef RTLD_NOW |
| 16929 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16930 | # else |
| 16931 | # ifdef DL_NOW |
| 16932 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16933 | # else |
| 16934 | # define LT_DLLAZY_OR_NOW 0 |
| 16935 | # endif |
| 16936 | # endif |
| 16937 | # endif |
| 16938 | # endif |
| 16939 | #endif |
| 16940 | |
| 16941 | #ifdef __cplusplus |
| 16942 | extern "C" void exit (int); |
| 16943 | #endif |
| 16944 | |
| 16945 | void fnord() { int i=42;} |
| 16946 | int main () |
| 16947 | { |
| 16948 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16949 | int status = $lt_dlunknown; |
| 16950 | |
| 16951 | if (self) |
| 16952 | { |
| 16953 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 16954 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16955 | /* dlclose (self); */ |
| 16956 | } |
| 16957 | |
| 16958 | exit (status); |
| 16959 | } |
| 16960 | EOF |
| 16961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16962 | (eval $ac_link) 2>&5 |
| 16963 | ac_status=$? |
| 16964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16965 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 16966 | (./conftest; exit; ) 2>/dev/null |
| 16967 | lt_status=$? |
| 16968 | case x$lt_status in |
| 16969 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16970 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16971 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 16972 | esac |
| 16973 | else : |
| 16974 | # compilation failed |
| 16975 | lt_cv_dlopen_self_static=no |
| 16976 | fi |
| 16977 | fi |
| 16978 | rm -fr conftest* |
| 16979 | |
| 16980 | |
| 16981 | fi |
| 16982 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 16983 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 16984 | fi |
| 16985 | |
| 16986 | CPPFLAGS="$save_CPPFLAGS" |
| 16987 | LDFLAGS="$save_LDFLAGS" |
| 16988 | LIBS="$save_LIBS" |
| 16989 | ;; |
| 16990 | esac |
| 16991 | |
| 16992 | case $lt_cv_dlopen_self in |
| 16993 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 16994 | *) enable_dlopen_self=unknown ;; |
| 16995 | esac |
| 16996 | |
| 16997 | case $lt_cv_dlopen_self_static in |
| 16998 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 16999 | *) enable_dlopen_self_static=unknown ;; |
| 17000 | esac |
| 17001 | fi |
| 17002 | |
| 17003 | |
| 17004 | # The else clause should only fire when bootstrapping the |
| 17005 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17006 | # with your package, and you will get complaints that there are |
| 17007 | # no rules to generate ltmain.sh. |
| 17008 | if test -f "$ltmain"; then |
| 17009 | # See if we are running on zsh, and set the options which allow our commands through |
| 17010 | # without removal of \ escapes. |
| 17011 | if test -n "${ZSH_VERSION+set}" ; then |
| 17012 | setopt NO_GLOB_SUBST |
| 17013 | fi |
| 17014 | # Now quote all the things that may contain metacharacters while being |
| 17015 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17016 | # variables and quote the copies for generation of the libtool script. |
| 17017 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 17018 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17019 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17020 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17021 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17022 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17023 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17024 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17025 | compiler_GCJ \ |
| 17026 | CC_GCJ \ |
| 17027 | LD_GCJ \ |
| 17028 | lt_prog_compiler_wl_GCJ \ |
| 17029 | lt_prog_compiler_pic_GCJ \ |
| 17030 | lt_prog_compiler_static_GCJ \ |
| 17031 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 17032 | export_dynamic_flag_spec_GCJ \ |
| 17033 | thread_safe_flag_spec_GCJ \ |
| 17034 | whole_archive_flag_spec_GCJ \ |
| 17035 | enable_shared_with_static_runtimes_GCJ \ |
| 17036 | old_archive_cmds_GCJ \ |
| 17037 | old_archive_from_new_cmds_GCJ \ |
| 17038 | predep_objects_GCJ \ |
| 17039 | postdep_objects_GCJ \ |
| 17040 | predeps_GCJ \ |
| 17041 | postdeps_GCJ \ |
| 17042 | compiler_lib_search_path_GCJ \ |
| 17043 | archive_cmds_GCJ \ |
| 17044 | archive_expsym_cmds_GCJ \ |
| 17045 | postinstall_cmds_GCJ \ |
| 17046 | postuninstall_cmds_GCJ \ |
| 17047 | old_archive_from_expsyms_cmds_GCJ \ |
| 17048 | allow_undefined_flag_GCJ \ |
| 17049 | no_undefined_flag_GCJ \ |
| 17050 | export_symbols_cmds_GCJ \ |
| 17051 | hardcode_libdir_flag_spec_GCJ \ |
| 17052 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 17053 | hardcode_libdir_separator_GCJ \ |
| 17054 | hardcode_automatic_GCJ \ |
| 17055 | module_cmds_GCJ \ |
| 17056 | module_expsym_cmds_GCJ \ |
| 17057 | lt_cv_prog_compiler_c_o_GCJ \ |
| 17058 | exclude_expsyms_GCJ \ |
| 17059 | include_expsyms_GCJ; do |
| 17060 | |
| 17061 | case $var in |
| 17062 | old_archive_cmds_GCJ | \ |
| 17063 | old_archive_from_new_cmds_GCJ | \ |
| 17064 | archive_cmds_GCJ | \ |
| 17065 | archive_expsym_cmds_GCJ | \ |
| 17066 | module_cmds_GCJ | \ |
| 17067 | module_expsym_cmds_GCJ | \ |
| 17068 | old_archive_from_expsyms_cmds_GCJ | \ |
| 17069 | export_symbols_cmds_GCJ | \ |
| 17070 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17071 | postinstall_cmds | postuninstall_cmds | \ |
| 17072 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17073 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17074 | # Double-quote double-evaled strings. |
| 17075 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17076 | ;; |
| 17077 | *) |
| 17078 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17079 | ;; |
| 17080 | esac |
| 17081 | done |
| 17082 | |
| 17083 | case $lt_echo in |
| 17084 | *'\$0 --fallback-echo"') |
| 17085 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17086 | ;; |
| 17087 | esac |
| 17088 | |
| 17089 | cfgfile="$ofile" |
| 17090 | |
| 17091 | cat <<__EOF__ >> "$cfgfile" |
| 17092 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17093 | |
| 17094 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17095 | |
| 17096 | # Shell to use when invoking shell scripts. |
| 17097 | SHELL=$lt_SHELL |
| 17098 | |
| 17099 | # Whether or not to build shared libraries. |
| 17100 | build_libtool_libs=$enable_shared |
| 17101 | |
| 17102 | # Whether or not to build static libraries. |
| 17103 | build_old_libs=$enable_static |
| 17104 | |
| 17105 | # Whether or not to add -lc for building shared libraries. |
| 17106 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 17107 | |
| 17108 | # Whether or not to disallow shared libs when runtime libs are static |
| 17109 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 17110 | |
| 17111 | # Whether or not to optimize for fast installation. |
| 17112 | fast_install=$enable_fast_install |
| 17113 | |
| 17114 | # The host system. |
| 17115 | host_alias=$host_alias |
| 17116 | host=$host |
| 17117 | |
| 17118 | # An echo program that does not interpret backslashes. |
| 17119 | echo=$lt_echo |
| 17120 | |
| 17121 | # The archiver. |
| 17122 | AR=$lt_AR |
| 17123 | AR_FLAGS=$lt_AR_FLAGS |
| 17124 | |
| 17125 | # A C compiler. |
| 17126 | LTCC=$lt_LTCC |
| 17127 | |
| 17128 | # A language-specific compiler. |
| 17129 | CC=$lt_compiler_GCJ |
| 17130 | |
| 17131 | # Is the compiler the GNU C compiler? |
| 17132 | with_gcc=$GCC_GCJ |
| 17133 | |
| 17134 | # An ERE matcher. |
| 17135 | EGREP=$lt_EGREP |
| 17136 | |
| 17137 | # The linker used to build libraries. |
| 17138 | LD=$lt_LD_GCJ |
| 17139 | |
| 17140 | # Whether we need hard or soft links. |
| 17141 | LN_S=$lt_LN_S |
| 17142 | |
| 17143 | # A BSD-compatible nm program. |
| 17144 | NM=$lt_NM |
| 17145 | |
| 17146 | # A symbol stripping program |
| 17147 | STRIP=$STRIP |
| 17148 | |
| 17149 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17150 | MAGIC_CMD=$MAGIC_CMD |
| 17151 | |
| 17152 | # Used on cygwin: DLL creation program. |
| 17153 | DLLTOOL="$DLLTOOL" |
| 17154 | |
| 17155 | # Used on cygwin: object dumper. |
| 17156 | OBJDUMP="$OBJDUMP" |
| 17157 | |
| 17158 | # Used on cygwin: assembler. |
| 17159 | AS="$AS" |
| 17160 | |
| 17161 | # The name of the directory that contains temporary libtool files. |
| 17162 | objdir=$objdir |
| 17163 | |
| 17164 | # How to create reloadable object files. |
| 17165 | reload_flag=$lt_reload_flag |
| 17166 | reload_cmds=$lt_reload_cmds |
| 17167 | |
| 17168 | # How to pass a linker flag through the compiler. |
| 17169 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 17170 | |
| 17171 | # Object file suffix (normally "o"). |
| 17172 | objext="$ac_objext" |
| 17173 | |
| 17174 | # Old archive suffix (normally "a"). |
| 17175 | libext="$libext" |
| 17176 | |
| 17177 | # Shared library suffix (normally ".so"). |
| 17178 | shrext='$shrext' |
| 17179 | |
| 17180 | # Executable file suffix (normally ""). |
| 17181 | exeext="$exeext" |
| 17182 | |
| 17183 | # Additional compiler flags for building library objects. |
| 17184 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 17185 | pic_mode=$pic_mode |
| 17186 | |
| 17187 | # What is the maximum length of a command? |
| 17188 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17189 | |
| 17190 | # Does compiler simultaneously support -c and -o options? |
| 17191 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 17192 | |
| 17193 | # Must we lock files when doing compilation ? |
| 17194 | need_locks=$lt_need_locks |
| 17195 | |
| 17196 | # Do we need the lib prefix for modules? |
| 17197 | need_lib_prefix=$need_lib_prefix |
| 17198 | |
| 17199 | # Do we need a version for libraries? |
| 17200 | need_version=$need_version |
| 17201 | |
| 17202 | # Whether dlopen is supported. |
| 17203 | dlopen_support=$enable_dlopen |
| 17204 | |
| 17205 | # Whether dlopen of programs is supported. |
| 17206 | dlopen_self=$enable_dlopen_self |
| 17207 | |
| 17208 | # Whether dlopen of statically linked programs is supported. |
| 17209 | dlopen_self_static=$enable_dlopen_self_static |
| 17210 | |
| 17211 | # Compiler flag to prevent dynamic linking. |
| 17212 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 17213 | |
| 17214 | # Compiler flag to turn off builtin functions. |
| 17215 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 17216 | |
| 17217 | # Compiler flag to allow reflexive dlopens. |
| 17218 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 17219 | |
| 17220 | # Compiler flag to generate shared objects directly from archives. |
| 17221 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 17222 | |
| 17223 | # Compiler flag to generate thread-safe objects. |
| 17224 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 17225 | |
| 17226 | # Library versioning type. |
| 17227 | version_type=$version_type |
| 17228 | |
| 17229 | # Format of library name prefix. |
| 17230 | libname_spec=$lt_libname_spec |
| 17231 | |
| 17232 | # List of archive names. First name is the real one, the rest are links. |
| 17233 | # The last name is the one that the linker finds with -lNAME. |
| 17234 | library_names_spec=$lt_library_names_spec |
| 17235 | |
| 17236 | # The coded name of the library, if different from the real name. |
| 17237 | soname_spec=$lt_soname_spec |
| 17238 | |
| 17239 | # Commands used to build and install an old-style archive. |
| 17240 | RANLIB=$lt_RANLIB |
| 17241 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 17242 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17243 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17244 | |
| 17245 | # Create an old-style archive from a shared archive. |
| 17246 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 17247 | |
| 17248 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17249 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 17250 | |
| 17251 | # Commands used to build and install a shared archive. |
| 17252 | archive_cmds=$lt_archive_cmds_GCJ |
| 17253 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 17254 | postinstall_cmds=$lt_postinstall_cmds |
| 17255 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17256 | |
| 17257 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17258 | module_cmds=$lt_module_cmds_GCJ |
| 17259 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 17260 | |
| 17261 | # Commands to strip libraries. |
| 17262 | old_striplib=$lt_old_striplib |
| 17263 | striplib=$lt_striplib |
| 17264 | |
| 17265 | # Dependencies to place before the objects being linked to create a |
| 17266 | # shared library. |
| 17267 | predep_objects=$lt_predep_objects_GCJ |
| 17268 | |
| 17269 | # Dependencies to place after the objects being linked to create a |
| 17270 | # shared library. |
| 17271 | postdep_objects=$lt_postdep_objects_GCJ |
| 17272 | |
| 17273 | # Dependencies to place before the objects being linked to create a |
| 17274 | # shared library. |
| 17275 | predeps=$lt_predeps_GCJ |
| 17276 | |
| 17277 | # Dependencies to place after the objects being linked to create a |
| 17278 | # shared library. |
| 17279 | postdeps=$lt_postdeps_GCJ |
| 17280 | |
| 17281 | # The library search path used internally by the compiler when linking |
| 17282 | # a shared library. |
| 17283 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 17284 | |
| 17285 | # Method to check whether dependent libraries are shared objects. |
| 17286 | deplibs_check_method=$lt_deplibs_check_method |
| 17287 | |
| 17288 | # Command to use when deplibs_check_method == file_magic. |
| 17289 | file_magic_cmd=$lt_file_magic_cmd |
| 17290 | |
| 17291 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17292 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 17293 | |
| 17294 | # Flag that forces no undefined symbols. |
| 17295 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 17296 | |
| 17297 | # Commands used to finish a libtool library installation in a directory. |
| 17298 | finish_cmds=$lt_finish_cmds |
| 17299 | |
| 17300 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17301 | finish_eval=$lt_finish_eval |
| 17302 | |
| 17303 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17304 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17305 | |
| 17306 | # Transform the output of nm in a proper C declaration |
| 17307 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17308 | |
| 17309 | # Transform the output of nm in a C name address pair |
| 17310 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17311 | |
| 17312 | # This is the shared library runtime path variable. |
| 17313 | runpath_var=$runpath_var |
| 17314 | |
| 17315 | # This is the shared library path variable. |
| 17316 | shlibpath_var=$shlibpath_var |
| 17317 | |
| 17318 | # Is shlibpath searched before the hard-coded library search path? |
| 17319 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17320 | |
| 17321 | # How to hardcode a shared library path into an executable. |
| 17322 | hardcode_action=$hardcode_action_GCJ |
| 17323 | |
| 17324 | # Whether we should hardcode library paths into libraries. |
| 17325 | hardcode_into_libs=$hardcode_into_libs |
| 17326 | |
| 17327 | # Flag to hardcode \$libdir into a binary during linking. |
| 17328 | # This must work even if \$libdir does not exist. |
| 17329 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 17330 | |
| 17331 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17332 | # a binary during linking. This must work even if \$libdir does |
| 17333 | # not exist. |
| 17334 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 17335 | |
| 17336 | # Whether we need a single -rpath flag with a separated argument. |
| 17337 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 17338 | |
| 17339 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17340 | # resulting binary. |
| 17341 | hardcode_direct=$hardcode_direct_GCJ |
| 17342 | |
| 17343 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17344 | # resulting binary. |
| 17345 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 17346 | |
| 17347 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17348 | # the resulting binary. |
| 17349 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 17350 | |
| 17351 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17352 | # and all subsequent libraries and executables linked against it. |
| 17353 | hardcode_automatic=$hardcode_automatic_GCJ |
| 17354 | |
| 17355 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17356 | # restored at relink time. |
| 17357 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17358 | |
| 17359 | # Whether libtool must link a program against all its dependency libraries. |
| 17360 | link_all_deplibs=$link_all_deplibs_GCJ |
| 17361 | |
| 17362 | # Compile-time system search path for libraries |
| 17363 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17364 | |
| 17365 | # Run-time system search path for libraries |
| 17366 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17367 | |
| 17368 | # Fix the shell variable \$srcfile for the compiler. |
| 17369 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 17370 | |
| 17371 | # Set to yes if exported symbols are required. |
| 17372 | always_export_symbols=$always_export_symbols_GCJ |
| 17373 | |
| 17374 | # The commands to list exported symbols. |
| 17375 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 17376 | |
| 17377 | # The commands to extract the exported symbol list from a shared archive. |
| 17378 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17379 | |
| 17380 | # Symbols that should not be listed in the preloaded symbols. |
| 17381 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 17382 | |
| 17383 | # Symbols that must always be exported. |
| 17384 | include_expsyms=$lt_include_expsyms_GCJ |
| 17385 | |
| 17386 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 17387 | |
| 17388 | __EOF__ |
| 17389 | |
| 17390 | |
| 17391 | else |
| 17392 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17393 | # `config.status --recheck' to rerun these tests and create the |
| 17394 | # libtool script then. |
| 17395 | test -f Makefile && make "$ltmain" |
| 17396 | fi |
| 17397 | |
| 17398 | |
| 17399 | ac_ext=c |
| 17400 | ac_cpp='$CPP $CPPFLAGS' |
| 17401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17404 | |
| 17405 | CC="$lt_save_CC" |
| 17406 | |
| 17407 | else |
| 17408 | tagname="" |
| 17409 | fi |
| 17410 | ;; |
| 17411 | |
| 17412 | RC) |
| 17413 | |
| 17414 | |
| 17415 | |
| 17416 | # Source file extension for RC test sources. |
| 17417 | ac_ext=rc |
| 17418 | |
| 17419 | # Object file extension for compiled RC test sources. |
| 17420 | objext=o |
| 17421 | objext_RC=$objext |
| 17422 | |
| 17423 | # Code to be used in simple compile tests |
| 17424 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 17425 | |
| 17426 | # Code to be used in simple link tests |
| 17427 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 17428 | |
| 17429 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17430 | |
| 17431 | # If no C compiler was specified, use CC. |
| 17432 | LTCC=${LTCC-"$CC"} |
| 17433 | |
| 17434 | # Allow CC to be a program name with arguments. |
| 17435 | compiler=$CC |
| 17436 | |
| 17437 | |
| 17438 | # Allow CC to be a program name with arguments. |
| 17439 | lt_save_CC="$CC" |
| 17440 | CC=${RC-"windres"} |
| 17441 | compiler=$CC |
| 17442 | compiler_RC=$CC |
| 17443 | lt_cv_prog_compiler_c_o_RC=yes |
| 17444 | |
| 17445 | # The else clause should only fire when bootstrapping the |
| 17446 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17447 | # with your package, and you will get complaints that there are |
| 17448 | # no rules to generate ltmain.sh. |
| 17449 | if test -f "$ltmain"; then |
| 17450 | # See if we are running on zsh, and set the options which allow our commands through |
| 17451 | # without removal of \ escapes. |
| 17452 | if test -n "${ZSH_VERSION+set}" ; then |
| 17453 | setopt NO_GLOB_SUBST |
| 17454 | fi |
| 17455 | # Now quote all the things that may contain metacharacters while being |
| 17456 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17457 | # variables and quote the copies for generation of the libtool script. |
| 17458 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 17459 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17460 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17461 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17462 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17463 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17464 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17465 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17466 | compiler_RC \ |
| 17467 | CC_RC \ |
| 17468 | LD_RC \ |
| 17469 | lt_prog_compiler_wl_RC \ |
| 17470 | lt_prog_compiler_pic_RC \ |
| 17471 | lt_prog_compiler_static_RC \ |
| 17472 | lt_prog_compiler_no_builtin_flag_RC \ |
| 17473 | export_dynamic_flag_spec_RC \ |
| 17474 | thread_safe_flag_spec_RC \ |
| 17475 | whole_archive_flag_spec_RC \ |
| 17476 | enable_shared_with_static_runtimes_RC \ |
| 17477 | old_archive_cmds_RC \ |
| 17478 | old_archive_from_new_cmds_RC \ |
| 17479 | predep_objects_RC \ |
| 17480 | postdep_objects_RC \ |
| 17481 | predeps_RC \ |
| 17482 | postdeps_RC \ |
| 17483 | compiler_lib_search_path_RC \ |
| 17484 | archive_cmds_RC \ |
| 17485 | archive_expsym_cmds_RC \ |
| 17486 | postinstall_cmds_RC \ |
| 17487 | postuninstall_cmds_RC \ |
| 17488 | old_archive_from_expsyms_cmds_RC \ |
| 17489 | allow_undefined_flag_RC \ |
| 17490 | no_undefined_flag_RC \ |
| 17491 | export_symbols_cmds_RC \ |
| 17492 | hardcode_libdir_flag_spec_RC \ |
| 17493 | hardcode_libdir_flag_spec_ld_RC \ |
| 17494 | hardcode_libdir_separator_RC \ |
| 17495 | hardcode_automatic_RC \ |
| 17496 | module_cmds_RC \ |
| 17497 | module_expsym_cmds_RC \ |
| 17498 | lt_cv_prog_compiler_c_o_RC \ |
| 17499 | exclude_expsyms_RC \ |
| 17500 | include_expsyms_RC; do |
| 17501 | |
| 17502 | case $var in |
| 17503 | old_archive_cmds_RC | \ |
| 17504 | old_archive_from_new_cmds_RC | \ |
| 17505 | archive_cmds_RC | \ |
| 17506 | archive_expsym_cmds_RC | \ |
| 17507 | module_cmds_RC | \ |
| 17508 | module_expsym_cmds_RC | \ |
| 17509 | old_archive_from_expsyms_cmds_RC | \ |
| 17510 | export_symbols_cmds_RC | \ |
| 17511 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17512 | postinstall_cmds | postuninstall_cmds | \ |
| 17513 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17514 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17515 | # Double-quote double-evaled strings. |
| 17516 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17517 | ;; |
| 17518 | *) |
| 17519 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17520 | ;; |
| 17521 | esac |
| 17522 | done |
| 17523 | |
| 17524 | case $lt_echo in |
| 17525 | *'\$0 --fallback-echo"') |
| 17526 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17527 | ;; |
| 17528 | esac |
| 17529 | |
| 17530 | cfgfile="$ofile" |
| 17531 | |
| 17532 | cat <<__EOF__ >> "$cfgfile" |
| 17533 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17534 | |
| 17535 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17536 | |
| 17537 | # Shell to use when invoking shell scripts. |
| 17538 | SHELL=$lt_SHELL |
| 17539 | |
| 17540 | # Whether or not to build shared libraries. |
| 17541 | build_libtool_libs=$enable_shared |
| 17542 | |
| 17543 | # Whether or not to build static libraries. |
| 17544 | build_old_libs=$enable_static |
| 17545 | |
| 17546 | # Whether or not to add -lc for building shared libraries. |
| 17547 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 17548 | |
| 17549 | # Whether or not to disallow shared libs when runtime libs are static |
| 17550 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 17551 | |
| 17552 | # Whether or not to optimize for fast installation. |
| 17553 | fast_install=$enable_fast_install |
| 17554 | |
| 17555 | # The host system. |
| 17556 | host_alias=$host_alias |
| 17557 | host=$host |
| 17558 | |
| 17559 | # An echo program that does not interpret backslashes. |
| 17560 | echo=$lt_echo |
| 17561 | |
| 17562 | # The archiver. |
| 17563 | AR=$lt_AR |
| 17564 | AR_FLAGS=$lt_AR_FLAGS |
| 17565 | |
| 17566 | # A C compiler. |
| 17567 | LTCC=$lt_LTCC |
| 17568 | |
| 17569 | # A language-specific compiler. |
| 17570 | CC=$lt_compiler_RC |
| 17571 | |
| 17572 | # Is the compiler the GNU C compiler? |
| 17573 | with_gcc=$GCC_RC |
| 17574 | |
| 17575 | # An ERE matcher. |
| 17576 | EGREP=$lt_EGREP |
| 17577 | |
| 17578 | # The linker used to build libraries. |
| 17579 | LD=$lt_LD_RC |
| 17580 | |
| 17581 | # Whether we need hard or soft links. |
| 17582 | LN_S=$lt_LN_S |
| 17583 | |
| 17584 | # A BSD-compatible nm program. |
| 17585 | NM=$lt_NM |
| 17586 | |
| 17587 | # A symbol stripping program |
| 17588 | STRIP=$STRIP |
| 17589 | |
| 17590 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17591 | MAGIC_CMD=$MAGIC_CMD |
| 17592 | |
| 17593 | # Used on cygwin: DLL creation program. |
| 17594 | DLLTOOL="$DLLTOOL" |
| 17595 | |
| 17596 | # Used on cygwin: object dumper. |
| 17597 | OBJDUMP="$OBJDUMP" |
| 17598 | |
| 17599 | # Used on cygwin: assembler. |
| 17600 | AS="$AS" |
| 17601 | |
| 17602 | # The name of the directory that contains temporary libtool files. |
| 17603 | objdir=$objdir |
| 17604 | |
| 17605 | # How to create reloadable object files. |
| 17606 | reload_flag=$lt_reload_flag |
| 17607 | reload_cmds=$lt_reload_cmds |
| 17608 | |
| 17609 | # How to pass a linker flag through the compiler. |
| 17610 | wl=$lt_lt_prog_compiler_wl_RC |
| 17611 | |
| 17612 | # Object file suffix (normally "o"). |
| 17613 | objext="$ac_objext" |
| 17614 | |
| 17615 | # Old archive suffix (normally "a"). |
| 17616 | libext="$libext" |
| 17617 | |
| 17618 | # Shared library suffix (normally ".so"). |
| 17619 | shrext='$shrext' |
| 17620 | |
| 17621 | # Executable file suffix (normally ""). |
| 17622 | exeext="$exeext" |
| 17623 | |
| 17624 | # Additional compiler flags for building library objects. |
| 17625 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 17626 | pic_mode=$pic_mode |
| 17627 | |
| 17628 | # What is the maximum length of a command? |
| 17629 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17630 | |
| 17631 | # Does compiler simultaneously support -c and -o options? |
| 17632 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 17633 | |
| 17634 | # Must we lock files when doing compilation ? |
| 17635 | need_locks=$lt_need_locks |
| 17636 | |
| 17637 | # Do we need the lib prefix for modules? |
| 17638 | need_lib_prefix=$need_lib_prefix |
| 17639 | |
| 17640 | # Do we need a version for libraries? |
| 17641 | need_version=$need_version |
| 17642 | |
| 17643 | # Whether dlopen is supported. |
| 17644 | dlopen_support=$enable_dlopen |
| 17645 | |
| 17646 | # Whether dlopen of programs is supported. |
| 17647 | dlopen_self=$enable_dlopen_self |
| 17648 | |
| 17649 | # Whether dlopen of statically linked programs is supported. |
| 17650 | dlopen_self_static=$enable_dlopen_self_static |
| 17651 | |
| 17652 | # Compiler flag to prevent dynamic linking. |
| 17653 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 17654 | |
| 17655 | # Compiler flag to turn off builtin functions. |
| 17656 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 17657 | |
| 17658 | # Compiler flag to allow reflexive dlopens. |
| 17659 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 17660 | |
| 17661 | # Compiler flag to generate shared objects directly from archives. |
| 17662 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 17663 | |
| 17664 | # Compiler flag to generate thread-safe objects. |
| 17665 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 17666 | |
| 17667 | # Library versioning type. |
| 17668 | version_type=$version_type |
| 17669 | |
| 17670 | # Format of library name prefix. |
| 17671 | libname_spec=$lt_libname_spec |
| 17672 | |
| 17673 | # List of archive names. First name is the real one, the rest are links. |
| 17674 | # The last name is the one that the linker finds with -lNAME. |
| 17675 | library_names_spec=$lt_library_names_spec |
| 17676 | |
| 17677 | # The coded name of the library, if different from the real name. |
| 17678 | soname_spec=$lt_soname_spec |
| 17679 | |
| 17680 | # Commands used to build and install an old-style archive. |
| 17681 | RANLIB=$lt_RANLIB |
| 17682 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 17683 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17684 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17685 | |
| 17686 | # Create an old-style archive from a shared archive. |
| 17687 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 17688 | |
| 17689 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17690 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 17691 | |
| 17692 | # Commands used to build and install a shared archive. |
| 17693 | archive_cmds=$lt_archive_cmds_RC |
| 17694 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 17695 | postinstall_cmds=$lt_postinstall_cmds |
| 17696 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17697 | |
| 17698 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17699 | module_cmds=$lt_module_cmds_RC |
| 17700 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 17701 | |
| 17702 | # Commands to strip libraries. |
| 17703 | old_striplib=$lt_old_striplib |
| 17704 | striplib=$lt_striplib |
| 17705 | |
| 17706 | # Dependencies to place before the objects being linked to create a |
| 17707 | # shared library. |
| 17708 | predep_objects=$lt_predep_objects_RC |
| 17709 | |
| 17710 | # Dependencies to place after the objects being linked to create a |
| 17711 | # shared library. |
| 17712 | postdep_objects=$lt_postdep_objects_RC |
| 17713 | |
| 17714 | # Dependencies to place before the objects being linked to create a |
| 17715 | # shared library. |
| 17716 | predeps=$lt_predeps_RC |
| 17717 | |
| 17718 | # Dependencies to place after the objects being linked to create a |
| 17719 | # shared library. |
| 17720 | postdeps=$lt_postdeps_RC |
| 17721 | |
| 17722 | # The library search path used internally by the compiler when linking |
| 17723 | # a shared library. |
| 17724 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 17725 | |
| 17726 | # Method to check whether dependent libraries are shared objects. |
| 17727 | deplibs_check_method=$lt_deplibs_check_method |
| 17728 | |
| 17729 | # Command to use when deplibs_check_method == file_magic. |
| 17730 | file_magic_cmd=$lt_file_magic_cmd |
| 17731 | |
| 17732 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17733 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 17734 | |
| 17735 | # Flag that forces no undefined symbols. |
| 17736 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 17737 | |
| 17738 | # Commands used to finish a libtool library installation in a directory. |
| 17739 | finish_cmds=$lt_finish_cmds |
| 17740 | |
| 17741 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17742 | finish_eval=$lt_finish_eval |
| 17743 | |
| 17744 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17745 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17746 | |
| 17747 | # Transform the output of nm in a proper C declaration |
| 17748 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17749 | |
| 17750 | # Transform the output of nm in a C name address pair |
| 17751 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17752 | |
| 17753 | # This is the shared library runtime path variable. |
| 17754 | runpath_var=$runpath_var |
| 17755 | |
| 17756 | # This is the shared library path variable. |
| 17757 | shlibpath_var=$shlibpath_var |
| 17758 | |
| 17759 | # Is shlibpath searched before the hard-coded library search path? |
| 17760 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17761 | |
| 17762 | # How to hardcode a shared library path into an executable. |
| 17763 | hardcode_action=$hardcode_action_RC |
| 17764 | |
| 17765 | # Whether we should hardcode library paths into libraries. |
| 17766 | hardcode_into_libs=$hardcode_into_libs |
| 17767 | |
| 17768 | # Flag to hardcode \$libdir into a binary during linking. |
| 17769 | # This must work even if \$libdir does not exist. |
| 17770 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 17771 | |
| 17772 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17773 | # a binary during linking. This must work even if \$libdir does |
| 17774 | # not exist. |
| 17775 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 17776 | |
| 17777 | # Whether we need a single -rpath flag with a separated argument. |
| 17778 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 17779 | |
| 17780 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17781 | # resulting binary. |
| 17782 | hardcode_direct=$hardcode_direct_RC |
| 17783 | |
| 17784 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17785 | # resulting binary. |
| 17786 | hardcode_minus_L=$hardcode_minus_L_RC |
| 17787 | |
| 17788 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17789 | # the resulting binary. |
| 17790 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 17791 | |
| 17792 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17793 | # and all subsequent libraries and executables linked against it. |
| 17794 | hardcode_automatic=$hardcode_automatic_RC |
| 17795 | |
| 17796 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17797 | # restored at relink time. |
| 17798 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17799 | |
| 17800 | # Whether libtool must link a program against all its dependency libraries. |
| 17801 | link_all_deplibs=$link_all_deplibs_RC |
| 17802 | |
| 17803 | # Compile-time system search path for libraries |
| 17804 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17805 | |
| 17806 | # Run-time system search path for libraries |
| 17807 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17808 | |
| 17809 | # Fix the shell variable \$srcfile for the compiler. |
| 17810 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 17811 | |
| 17812 | # Set to yes if exported symbols are required. |
| 17813 | always_export_symbols=$always_export_symbols_RC |
| 17814 | |
| 17815 | # The commands to list exported symbols. |
| 17816 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 17817 | |
| 17818 | # The commands to extract the exported symbol list from a shared archive. |
| 17819 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17820 | |
| 17821 | # Symbols that should not be listed in the preloaded symbols. |
| 17822 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 17823 | |
| 17824 | # Symbols that must always be exported. |
| 17825 | include_expsyms=$lt_include_expsyms_RC |
| 17826 | |
| 17827 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 17828 | |
| 17829 | __EOF__ |
| 17830 | |
| 17831 | |
| 17832 | else |
| 17833 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17834 | # `config.status --recheck' to rerun these tests and create the |
| 17835 | # libtool script then. |
| 17836 | test -f Makefile && make "$ltmain" |
| 17837 | fi |
| 17838 | |
| 17839 | |
| 17840 | ac_ext=c |
| 17841 | ac_cpp='$CPP $CPPFLAGS' |
| 17842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17845 | |
| 17846 | CC="$lt_save_CC" |
| 17847 | |
| 17848 | ;; |
| 17849 | |
| 17850 | *) |
| 17851 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 17852 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 17853 | { (exit 1); exit 1; }; } |
| 17854 | ;; |
| 17855 | esac |
| 17856 | |
| 17857 | # Append the new tag name to the list of available tags. |
| 17858 | if test -n "$tagname" ; then |
| 17859 | available_tags="$available_tags $tagname" |
| 17860 | fi |
| 17861 | fi |
| 17862 | done |
| 17863 | IFS="$lt_save_ifs" |
| 17864 | |
| 17865 | # Now substitute the updated list of available tags. |
| 17866 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 17867 | mv "${ofile}T" "$ofile" |
| 17868 | chmod +x "$ofile" |
| 17869 | else |
| 17870 | rm -f "${ofile}T" |
| 17871 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 17872 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 17873 | { (exit 1); exit 1; }; } |
| 17874 | fi |
| 17875 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17876 | |
| 17877 | |
| 17878 | |
| 17879 | # This can be used to rebuild libtool when needed |
| 17880 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 17881 | |
| 17882 | # Always use our own libtool. |
John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 17883 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17884 | |
| 17885 | # Prevent multiple expansion |
| 17886 | |
| 17887 | |
| 17888 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17889 | |
| 17890 | |
| 17891 | |
| 17892 | |
| 17893 | |
| 17894 | |
| 17895 | |
| 17896 | |
| 17897 | |
| 17898 | |
| 17899 | |
| 17900 | |
| 17901 | |
| 17902 | |
| 17903 | |
| 17904 | |
| 17905 | |
| 17906 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17907 | # Extract the first word of "ar", so it can be a program name with args. |
| 17908 | set dummy ar; ac_word=$2 |
| 17909 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 17911 | if test "${ac_cv_path_AR+set}" = set; then |
| 17912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17913 | else |
| 17914 | case $AR in |
| 17915 | [\\/]* | ?:[\\/]*) |
| 17916 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 17917 | ;; |
| 17918 | *) |
| 17919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17920 | for as_dir in $PATH |
| 17921 | do |
| 17922 | IFS=$as_save_IFS |
| 17923 | test -z "$as_dir" && as_dir=. |
| 17924 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17926 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
| 17927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17928 | break 2 |
| 17929 | fi |
| 17930 | done |
| 17931 | done |
| 17932 | |
| 17933 | ;; |
| 17934 | esac |
| 17935 | fi |
| 17936 | AR=$ac_cv_path_AR |
| 17937 | |
| 17938 | if test -n "$AR"; then |
| 17939 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 17940 | echo "${ECHO_T}$AR" >&6 |
| 17941 | else |
| 17942 | echo "$as_me:$LINENO: result: no" >&5 |
| 17943 | echo "${ECHO_T}no" >&6 |
| 17944 | fi |
| 17945 | |
| 17946 | # Extract the first word of "sed", so it can be a program name with args. |
| 17947 | set dummy sed; ac_word=$2 |
| 17948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 17950 | if test "${ac_cv_path_SED+set}" = set; then |
| 17951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17952 | else |
| 17953 | case $SED in |
| 17954 | [\\/]* | ?:[\\/]*) |
| 17955 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 17956 | ;; |
| 17957 | *) |
| 17958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17959 | for as_dir in $PATH |
| 17960 | do |
| 17961 | IFS=$as_save_IFS |
| 17962 | test -z "$as_dir" && as_dir=. |
| 17963 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17964 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17965 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 17966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17967 | break 2 |
| 17968 | fi |
| 17969 | done |
| 17970 | done |
| 17971 | |
| 17972 | ;; |
| 17973 | esac |
| 17974 | fi |
| 17975 | SED=$ac_cv_path_SED |
| 17976 | |
| 17977 | if test -n "$SED"; then |
| 17978 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 17979 | echo "${ECHO_T}$SED" >&6 |
| 17980 | else |
| 17981 | echo "$as_me:$LINENO: result: no" >&5 |
| 17982 | echo "${ECHO_T}no" >&6 |
| 17983 | fi |
| 17984 | |
| 17985 | # Extract the first word of "rm", so it can be a program name with args. |
| 17986 | set dummy rm; ac_word=$2 |
| 17987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 17989 | if test "${ac_cv_path_RM+set}" = set; then |
| 17990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17991 | else |
| 17992 | case $RM in |
| 17993 | [\\/]* | ?:[\\/]*) |
| 17994 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 17995 | ;; |
| 17996 | *) |
| 17997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17998 | for as_dir in $PATH |
| 17999 | do |
| 18000 | IFS=$as_save_IFS |
| 18001 | test -z "$as_dir" && as_dir=. |
| 18002 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18003 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18004 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 18005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18006 | break 2 |
| 18007 | fi |
| 18008 | done |
| 18009 | done |
| 18010 | |
| 18011 | ;; |
| 18012 | esac |
| 18013 | fi |
| 18014 | RM=$ac_cv_path_RM |
| 18015 | |
| 18016 | if test -n "$RM"; then |
| 18017 | echo "$as_me:$LINENO: result: $RM" >&5 |
| 18018 | echo "${ECHO_T}$RM" >&6 |
| 18019 | else |
| 18020 | echo "$as_me:$LINENO: result: no" >&5 |
| 18021 | echo "${ECHO_T}no" >&6 |
| 18022 | fi |
| 18023 | |
| 18024 | # Extract the first word of "echo", so it can be a program name with args. |
| 18025 | set dummy echo; ac_word=$2 |
| 18026 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18028 | if test "${ac_cv_path_ECHO+set}" = set; then |
| 18029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18030 | else |
| 18031 | case $ECHO in |
| 18032 | [\\/]* | ?:[\\/]*) |
| 18033 | ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. |
| 18034 | ;; |
| 18035 | *) |
| 18036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18037 | for as_dir in $PATH |
| 18038 | do |
| 18039 | IFS=$as_save_IFS |
| 18040 | test -z "$as_dir" && as_dir=. |
| 18041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18043 | ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" |
| 18044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18045 | break 2 |
| 18046 | fi |
| 18047 | done |
| 18048 | done |
| 18049 | |
| 18050 | ;; |
| 18051 | esac |
| 18052 | fi |
| 18053 | ECHO=$ac_cv_path_ECHO |
| 18054 | |
| 18055 | if test -n "$ECHO"; then |
| 18056 | echo "$as_me:$LINENO: result: $ECHO" >&5 |
| 18057 | echo "${ECHO_T}$ECHO" >&6 |
| 18058 | else |
| 18059 | echo "$as_me:$LINENO: result: no" >&5 |
| 18060 | echo "${ECHO_T}no" >&6 |
| 18061 | fi |
| 18062 | |
| 18063 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 18064 | set dummy mkdir; ac_word=$2 |
| 18065 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18067 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 18068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18069 | else |
| 18070 | case $MKDIR in |
| 18071 | [\\/]* | ?:[\\/]*) |
| 18072 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 18073 | ;; |
| 18074 | *) |
| 18075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18076 | for as_dir in $PATH |
| 18077 | do |
| 18078 | IFS=$as_save_IFS |
| 18079 | test -z "$as_dir" && as_dir=. |
| 18080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18082 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 18083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18084 | break 2 |
| 18085 | fi |
| 18086 | done |
| 18087 | done |
| 18088 | |
| 18089 | ;; |
| 18090 | esac |
| 18091 | fi |
| 18092 | MKDIR=$ac_cv_path_MKDIR |
| 18093 | |
| 18094 | if test -n "$MKDIR"; then |
| 18095 | echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 18096 | echo "${ECHO_T}$MKDIR" >&6 |
| 18097 | else |
| 18098 | echo "$as_me:$LINENO: result: no" >&5 |
| 18099 | echo "${ECHO_T}no" >&6 |
| 18100 | fi |
| 18101 | |
| 18102 | # Extract the first word of "date", so it can be a program name with args. |
| 18103 | set dummy date; ac_word=$2 |
| 18104 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18106 | if test "${ac_cv_path_DATE+set}" = set; then |
| 18107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18108 | else |
| 18109 | case $DATE in |
| 18110 | [\\/]* | ?:[\\/]*) |
| 18111 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 18112 | ;; |
| 18113 | *) |
| 18114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18115 | for as_dir in $PATH |
| 18116 | do |
| 18117 | IFS=$as_save_IFS |
| 18118 | test -z "$as_dir" && as_dir=. |
| 18119 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18120 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18121 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 18122 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18123 | break 2 |
| 18124 | fi |
| 18125 | done |
| 18126 | done |
| 18127 | |
| 18128 | ;; |
| 18129 | esac |
| 18130 | fi |
| 18131 | DATE=$ac_cv_path_DATE |
| 18132 | |
| 18133 | if test -n "$DATE"; then |
| 18134 | echo "$as_me:$LINENO: result: $DATE" >&5 |
| 18135 | echo "${ECHO_T}$DATE" >&6 |
| 18136 | else |
| 18137 | echo "$as_me:$LINENO: result: no" >&5 |
| 18138 | echo "${ECHO_T}no" >&6 |
| 18139 | fi |
| 18140 | |
| 18141 | # Extract the first word of "mv", so it can be a program name with args. |
| 18142 | set dummy mv; ac_word=$2 |
| 18143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18145 | if test "${ac_cv_path_MV+set}" = set; then |
| 18146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18147 | else |
| 18148 | case $MV in |
| 18149 | [\\/]* | ?:[\\/]*) |
| 18150 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 18151 | ;; |
| 18152 | *) |
| 18153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18154 | for as_dir in $PATH |
| 18155 | do |
| 18156 | IFS=$as_save_IFS |
| 18157 | test -z "$as_dir" && as_dir=. |
| 18158 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18160 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 18161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18162 | break 2 |
| 18163 | fi |
| 18164 | done |
| 18165 | done |
| 18166 | |
| 18167 | ;; |
| 18168 | esac |
| 18169 | fi |
| 18170 | MV=$ac_cv_path_MV |
| 18171 | |
| 18172 | if test -n "$MV"; then |
| 18173 | echo "$as_me:$LINENO: result: $MV" >&5 |
| 18174 | echo "${ECHO_T}$MV" >&6 |
| 18175 | else |
| 18176 | echo "$as_me:$LINENO: result: no" >&5 |
| 18177 | echo "${ECHO_T}no" >&6 |
| 18178 | fi |
| 18179 | |
| 18180 | # Extract the first word of "dot", so it can be a program name with args. |
| 18181 | set dummy dot; ac_word=$2 |
| 18182 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18184 | if test "${ac_cv_path_DOT+set}" = set; then |
| 18185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18186 | else |
| 18187 | case $DOT in |
| 18188 | [\\/]* | ?:[\\/]*) |
| 18189 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 18190 | ;; |
| 18191 | *) |
| 18192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18193 | for as_dir in $PATH |
| 18194 | do |
| 18195 | IFS=$as_save_IFS |
| 18196 | test -z "$as_dir" && as_dir=. |
| 18197 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18198 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18199 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 18200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18201 | break 2 |
| 18202 | fi |
| 18203 | done |
| 18204 | done |
| 18205 | |
| 18206 | ;; |
| 18207 | esac |
| 18208 | fi |
| 18209 | DOT=$ac_cv_path_DOT |
| 18210 | |
| 18211 | if test -n "$DOT"; then |
| 18212 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 18213 | echo "${ECHO_T}$DOT" >&6 |
| 18214 | else |
| 18215 | echo "$as_me:$LINENO: result: no" >&5 |
| 18216 | echo "${ECHO_T}no" >&6 |
| 18217 | fi |
| 18218 | |
| 18219 | # Extract the first word of "etags", so it can be a program name with args. |
| 18220 | set dummy etags; ac_word=$2 |
| 18221 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18223 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 18224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18225 | else |
| 18226 | case $ETAGS in |
| 18227 | [\\/]* | ?:[\\/]*) |
| 18228 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 18229 | ;; |
| 18230 | *) |
| 18231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18232 | for as_dir in $PATH |
| 18233 | do |
| 18234 | IFS=$as_save_IFS |
| 18235 | test -z "$as_dir" && as_dir=. |
| 18236 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18238 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 18239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18240 | break 2 |
| 18241 | fi |
| 18242 | done |
| 18243 | done |
| 18244 | |
| 18245 | ;; |
| 18246 | esac |
| 18247 | fi |
| 18248 | ETAGS=$ac_cv_path_ETAGS |
| 18249 | |
| 18250 | if test -n "$ETAGS"; then |
| 18251 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 18252 | echo "${ECHO_T}$ETAGS" >&6 |
| 18253 | else |
| 18254 | echo "$as_me:$LINENO: result: no" >&5 |
| 18255 | echo "${ECHO_T}no" >&6 |
| 18256 | fi |
| 18257 | |
| 18258 | # Extract the first word of "purify", so it can be a program name with args. |
| 18259 | set dummy purify; ac_word=$2 |
| 18260 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18262 | if test "${ac_cv_path_PURIFY+set}" = set; then |
| 18263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18264 | else |
| 18265 | case $PURIFY in |
| 18266 | [\\/]* | ?:[\\/]*) |
| 18267 | ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path. |
| 18268 | ;; |
| 18269 | *) |
| 18270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18271 | for as_dir in $PATH |
| 18272 | do |
| 18273 | IFS=$as_save_IFS |
| 18274 | test -z "$as_dir" && as_dir=. |
| 18275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18277 | ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext" |
| 18278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18279 | break 2 |
| 18280 | fi |
| 18281 | done |
| 18282 | done |
| 18283 | |
| 18284 | ;; |
| 18285 | esac |
| 18286 | fi |
| 18287 | PURIFY=$ac_cv_path_PURIFY |
| 18288 | |
| 18289 | if test -n "$PURIFY"; then |
| 18290 | echo "$as_me:$LINENO: result: $PURIFY" >&5 |
| 18291 | echo "${ECHO_T}$PURIFY" >&6 |
| 18292 | else |
| 18293 | echo "$as_me:$LINENO: result: no" >&5 |
| 18294 | echo "${ECHO_T}no" >&6 |
| 18295 | fi |
| 18296 | |
| 18297 | |
| 18298 | |
| 18299 | |
| 18300 | |
| 18301 | |
| 18302 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 18303 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 18304 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 18305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18306 | else |
| 18307 | ac_check_lib_save_LIBS=$LIBS |
| 18308 | LIBS="-lelf $LIBS" |
| 18309 | cat >conftest.$ac_ext <<_ACEOF |
| 18310 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18311 | /* confdefs.h. */ |
| 18312 | _ACEOF |
| 18313 | cat confdefs.h >>conftest.$ac_ext |
| 18314 | cat >>conftest.$ac_ext <<_ACEOF |
| 18315 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18316 | |
| 18317 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18318 | #ifdef __cplusplus |
| 18319 | extern "C" |
| 18320 | #endif |
| 18321 | /* We use char because int might match the return type of a gcc2 |
| 18322 | builtin and then its argument prototype would still apply. */ |
| 18323 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18324 | int |
| 18325 | main () |
| 18326 | { |
| 18327 | elf_begin (); |
| 18328 | ; |
| 18329 | return 0; |
| 18330 | } |
| 18331 | _ACEOF |
| 18332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18334 | (eval $ac_link) 2>&5 |
| 18335 | ac_status=$? |
| 18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18337 | (exit $ac_status); } && |
| 18338 | { ac_try='test -s conftest$ac_exeext' |
| 18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18340 | (eval $ac_try) 2>&5 |
| 18341 | ac_status=$? |
| 18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18343 | (exit $ac_status); }; }; then |
| 18344 | ac_cv_lib_elf_elf_begin=yes |
| 18345 | else |
| 18346 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18348 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18349 | ac_cv_lib_elf_elf_begin=no |
| 18350 | fi |
| 18351 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18352 | LIBS=$ac_check_lib_save_LIBS |
| 18353 | fi |
| 18354 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 18355 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 18356 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 18357 | cat >>confdefs.h <<_ACEOF |
| 18358 | #define HAVE_LIBELF 1 |
| 18359 | _ACEOF |
| 18360 | |
| 18361 | LIBS="-lelf $LIBS" |
| 18362 | |
| 18363 | fi |
| 18364 | |
| 18365 | |
| 18366 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 18367 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 18368 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 18369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18370 | else |
| 18371 | ac_func_search_save_LIBS=$LIBS |
| 18372 | ac_cv_search_dlopen=no |
| 18373 | cat >conftest.$ac_ext <<_ACEOF |
| 18374 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18375 | /* confdefs.h. */ |
| 18376 | _ACEOF |
| 18377 | cat confdefs.h >>conftest.$ac_ext |
| 18378 | cat >>conftest.$ac_ext <<_ACEOF |
| 18379 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18380 | |
| 18381 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18382 | #ifdef __cplusplus |
| 18383 | extern "C" |
| 18384 | #endif |
| 18385 | /* We use char because int might match the return type of a gcc2 |
| 18386 | builtin and then its argument prototype would still apply. */ |
| 18387 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18388 | int |
| 18389 | main () |
| 18390 | { |
| 18391 | dlopen (); |
| 18392 | ; |
| 18393 | return 0; |
| 18394 | } |
| 18395 | _ACEOF |
| 18396 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18398 | (eval $ac_link) 2>&5 |
| 18399 | ac_status=$? |
| 18400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18401 | (exit $ac_status); } && |
| 18402 | { ac_try='test -s conftest$ac_exeext' |
| 18403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18404 | (eval $ac_try) 2>&5 |
| 18405 | ac_status=$? |
| 18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18407 | (exit $ac_status); }; }; then |
| 18408 | ac_cv_search_dlopen="none required" |
| 18409 | else |
| 18410 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18412 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18413 | fi |
| 18414 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18415 | if test "$ac_cv_search_dlopen" = no; then |
| 18416 | for ac_lib in dl; do |
| 18417 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 18418 | cat >conftest.$ac_ext <<_ACEOF |
| 18419 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18420 | /* confdefs.h. */ |
| 18421 | _ACEOF |
| 18422 | cat confdefs.h >>conftest.$ac_ext |
| 18423 | cat >>conftest.$ac_ext <<_ACEOF |
| 18424 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18425 | |
| 18426 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18427 | #ifdef __cplusplus |
| 18428 | extern "C" |
| 18429 | #endif |
| 18430 | /* We use char because int might match the return type of a gcc2 |
| 18431 | builtin and then its argument prototype would still apply. */ |
| 18432 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18433 | int |
| 18434 | main () |
| 18435 | { |
| 18436 | dlopen (); |
| 18437 | ; |
| 18438 | return 0; |
| 18439 | } |
| 18440 | _ACEOF |
| 18441 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18443 | (eval $ac_link) 2>&5 |
| 18444 | ac_status=$? |
| 18445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18446 | (exit $ac_status); } && |
| 18447 | { ac_try='test -s conftest$ac_exeext' |
| 18448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18449 | (eval $ac_try) 2>&5 |
| 18450 | ac_status=$? |
| 18451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18452 | (exit $ac_status); }; }; then |
| 18453 | ac_cv_search_dlopen="-l$ac_lib" |
| 18454 | break |
| 18455 | else |
| 18456 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18458 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18459 | fi |
| 18460 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18461 | done |
| 18462 | fi |
| 18463 | LIBS=$ac_func_search_save_LIBS |
| 18464 | fi |
| 18465 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 18466 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 18467 | if test "$ac_cv_search_dlopen" != no; then |
| 18468 | test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" |
| 18469 | |
| 18470 | else |
| 18471 | { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5 |
| 18472 | echo "$as_me: error: dlopen() required but not found" >&2;} |
| 18473 | { (exit 1); exit 1; }; } |
| 18474 | fi |
| 18475 | |
| 18476 | |
| 18477 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 18478 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 18479 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 18480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18481 | else |
| 18482 | ac_func_search_save_LIBS=$LIBS |
| 18483 | ac_cv_search_mallinfo=no |
| 18484 | cat >conftest.$ac_ext <<_ACEOF |
| 18485 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18486 | /* confdefs.h. */ |
| 18487 | _ACEOF |
| 18488 | cat confdefs.h >>conftest.$ac_ext |
| 18489 | cat >>conftest.$ac_ext <<_ACEOF |
| 18490 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18491 | |
| 18492 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18493 | #ifdef __cplusplus |
| 18494 | extern "C" |
| 18495 | #endif |
| 18496 | /* We use char because int might match the return type of a gcc2 |
| 18497 | builtin and then its argument prototype would still apply. */ |
| 18498 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18499 | int |
| 18500 | main () |
| 18501 | { |
| 18502 | mallinfo (); |
| 18503 | ; |
| 18504 | return 0; |
| 18505 | } |
| 18506 | _ACEOF |
| 18507 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18509 | (eval $ac_link) 2>&5 |
| 18510 | ac_status=$? |
| 18511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18512 | (exit $ac_status); } && |
| 18513 | { ac_try='test -s conftest$ac_exeext' |
| 18514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18515 | (eval $ac_try) 2>&5 |
| 18516 | ac_status=$? |
| 18517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18518 | (exit $ac_status); }; }; then |
| 18519 | ac_cv_search_mallinfo="none required" |
| 18520 | else |
| 18521 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18523 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18524 | fi |
| 18525 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18526 | if test "$ac_cv_search_mallinfo" = no; then |
| 18527 | for ac_lib in malloc; do |
| 18528 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 18529 | cat >conftest.$ac_ext <<_ACEOF |
| 18530 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18531 | /* confdefs.h. */ |
| 18532 | _ACEOF |
| 18533 | cat confdefs.h >>conftest.$ac_ext |
| 18534 | cat >>conftest.$ac_ext <<_ACEOF |
| 18535 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18536 | |
| 18537 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18538 | #ifdef __cplusplus |
| 18539 | extern "C" |
| 18540 | #endif |
| 18541 | /* We use char because int might match the return type of a gcc2 |
| 18542 | builtin and then its argument prototype would still apply. */ |
| 18543 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18544 | int |
| 18545 | main () |
| 18546 | { |
| 18547 | mallinfo (); |
| 18548 | ; |
| 18549 | return 0; |
| 18550 | } |
| 18551 | _ACEOF |
| 18552 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18554 | (eval $ac_link) 2>&5 |
| 18555 | ac_status=$? |
| 18556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18557 | (exit $ac_status); } && |
| 18558 | { ac_try='test -s conftest$ac_exeext' |
| 18559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18560 | (eval $ac_try) 2>&5 |
| 18561 | ac_status=$? |
| 18562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18563 | (exit $ac_status); }; }; then |
| 18564 | ac_cv_search_mallinfo="-l$ac_lib" |
| 18565 | break |
| 18566 | else |
| 18567 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18569 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18570 | fi |
| 18571 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18572 | done |
| 18573 | fi |
| 18574 | LIBS=$ac_func_search_save_LIBS |
| 18575 | fi |
| 18576 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 18577 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 18578 | if test "$ac_cv_search_mallinfo" != no; then |
| 18579 | test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" |
| 18580 | cat >>confdefs.h <<\_ACEOF |
| 18581 | #define HAVE_MALLINFO 1 |
| 18582 | _ACEOF |
| 18583 | |
| 18584 | fi |
| 18585 | |
| 18586 | |
| 18587 | |
| 18588 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 18589 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 18590 | if test "${ac_cv_header_stdc+set}" = set; then |
| 18591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18592 | else |
| 18593 | cat >conftest.$ac_ext <<_ACEOF |
| 18594 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18595 | /* confdefs.h. */ |
| 18596 | _ACEOF |
| 18597 | cat confdefs.h >>conftest.$ac_ext |
| 18598 | cat >>conftest.$ac_ext <<_ACEOF |
| 18599 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18600 | #include <stdlib.h> |
| 18601 | #include <stdarg.h> |
| 18602 | #include <string.h> |
| 18603 | #include <float.h> |
| 18604 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18605 | int |
| 18606 | main () |
| 18607 | { |
| 18608 | |
| 18609 | ; |
| 18610 | return 0; |
| 18611 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18612 | _ACEOF |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18613 | rm -f conftest.$ac_objext |
| 18614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18615 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18616 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18618 | (exit $ac_status); } && |
| 18619 | { ac_try='test -s conftest.$ac_objext' |
| 18620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18621 | (eval $ac_try) 2>&5 |
| 18622 | ac_status=$? |
| 18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18624 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18625 | ac_cv_header_stdc=yes |
| 18626 | else |
| 18627 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18629 | |
| 18630 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18631 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18632 | rm -f conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18633 | |
| 18634 | if test $ac_cv_header_stdc = yes; then |
| 18635 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 18636 | cat >conftest.$ac_ext <<_ACEOF |
| 18637 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18638 | /* confdefs.h. */ |
| 18639 | _ACEOF |
| 18640 | cat confdefs.h >>conftest.$ac_ext |
| 18641 | cat >>conftest.$ac_ext <<_ACEOF |
| 18642 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18643 | #include <string.h> |
| 18644 | |
| 18645 | _ACEOF |
| 18646 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18647 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18648 | : |
| 18649 | else |
| 18650 | ac_cv_header_stdc=no |
| 18651 | fi |
| 18652 | rm -f conftest* |
| 18653 | |
| 18654 | fi |
| 18655 | |
| 18656 | if test $ac_cv_header_stdc = yes; then |
| 18657 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 18658 | cat >conftest.$ac_ext <<_ACEOF |
| 18659 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18660 | /* confdefs.h. */ |
| 18661 | _ACEOF |
| 18662 | cat confdefs.h >>conftest.$ac_ext |
| 18663 | cat >>conftest.$ac_ext <<_ACEOF |
| 18664 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18665 | #include <stdlib.h> |
| 18666 | |
| 18667 | _ACEOF |
| 18668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18669 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18670 | : |
| 18671 | else |
| 18672 | ac_cv_header_stdc=no |
| 18673 | fi |
| 18674 | rm -f conftest* |
| 18675 | |
| 18676 | fi |
| 18677 | |
| 18678 | if test $ac_cv_header_stdc = yes; then |
| 18679 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 18680 | if test "$cross_compiling" = yes; then |
| 18681 | : |
| 18682 | else |
| 18683 | cat >conftest.$ac_ext <<_ACEOF |
| 18684 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18685 | /* confdefs.h. */ |
| 18686 | _ACEOF |
| 18687 | cat confdefs.h >>conftest.$ac_ext |
| 18688 | cat >>conftest.$ac_ext <<_ACEOF |
| 18689 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18690 | #include <ctype.h> |
| 18691 | #if ((' ' & 0x0FF) == 0x020) |
| 18692 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 18693 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 18694 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18695 | # define ISLOWER(c) \ |
| 18696 | (('a' <= (c) && (c) <= 'i') \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18697 | || ('j' <= (c) && (c) <= 'r') \ |
| 18698 | || ('s' <= (c) && (c) <= 'z')) |
| 18699 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 18700 | #endif |
| 18701 | |
| 18702 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 18703 | int |
| 18704 | main () |
| 18705 | { |
| 18706 | int i; |
| 18707 | for (i = 0; i < 256; i++) |
| 18708 | if (XOR (islower (i), ISLOWER (i)) |
| 18709 | || toupper (i) != TOUPPER (i)) |
| 18710 | exit(2); |
| 18711 | exit (0); |
| 18712 | } |
| 18713 | _ACEOF |
| 18714 | rm -f conftest$ac_exeext |
| 18715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18716 | (eval $ac_link) 2>&5 |
| 18717 | ac_status=$? |
| 18718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18721 | (eval $ac_try) 2>&5 |
| 18722 | ac_status=$? |
| 18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18724 | (exit $ac_status); }; }; then |
| 18725 | : |
| 18726 | else |
| 18727 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18728 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18730 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18731 | ( exit $ac_status ) |
| 18732 | ac_cv_header_stdc=no |
| 18733 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18734 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18735 | fi |
| 18736 | fi |
| 18737 | fi |
| 18738 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 18739 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 18740 | if test $ac_cv_header_stdc = yes; then |
| 18741 | |
| 18742 | cat >>confdefs.h <<\_ACEOF |
| 18743 | #define STDC_HEADERS 1 |
| 18744 | _ACEOF |
| 18745 | |
| 18746 | fi |
| 18747 | |
| 18748 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 18749 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 18750 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 18751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18752 | else |
| 18753 | cat >conftest.$ac_ext <<_ACEOF |
| 18754 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18755 | /* confdefs.h. */ |
| 18756 | _ACEOF |
| 18757 | cat confdefs.h >>conftest.$ac_ext |
| 18758 | cat >>conftest.$ac_ext <<_ACEOF |
| 18759 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18760 | #include <sys/types.h> |
| 18761 | #include <sys/wait.h> |
| 18762 | #ifndef WEXITSTATUS |
| 18763 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 18764 | #endif |
| 18765 | #ifndef WIFEXITED |
| 18766 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 18767 | #endif |
| 18768 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18769 | int |
| 18770 | main () |
| 18771 | { |
| 18772 | int s; |
| 18773 | wait (&s); |
| 18774 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 18775 | ; |
| 18776 | return 0; |
| 18777 | } |
| 18778 | _ACEOF |
| 18779 | rm -f conftest.$ac_objext |
| 18780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18781 | (eval $ac_compile) 2>&5 |
| 18782 | ac_status=$? |
| 18783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18784 | (exit $ac_status); } && |
| 18785 | { ac_try='test -s conftest.$ac_objext' |
| 18786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18787 | (eval $ac_try) 2>&5 |
| 18788 | ac_status=$? |
| 18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18790 | (exit $ac_status); }; }; then |
| 18791 | ac_cv_header_sys_wait_h=yes |
| 18792 | else |
| 18793 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18795 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18796 | ac_cv_header_sys_wait_h=no |
| 18797 | fi |
| 18798 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18799 | fi |
| 18800 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 18801 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 18802 | if test $ac_cv_header_sys_wait_h = yes; then |
| 18803 | |
| 18804 | cat >>confdefs.h <<\_ACEOF |
| 18805 | #define HAVE_SYS_WAIT_H 1 |
| 18806 | _ACEOF |
| 18807 | |
| 18808 | fi |
| 18809 | |
| 18810 | |
| 18811 | |
| 18812 | |
| 18813 | |
| 18814 | |
| 18815 | |
| 18816 | |
| 18817 | |
| 18818 | |
| 18819 | for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h |
| 18820 | do |
| 18821 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 18823 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 18825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 18826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18827 | fi |
| 18828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 18829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 18830 | else |
| 18831 | # Is the header compilable? |
| 18832 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 18833 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 18834 | cat >conftest.$ac_ext <<_ACEOF |
| 18835 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18836 | /* confdefs.h. */ |
| 18837 | _ACEOF |
| 18838 | cat confdefs.h >>conftest.$ac_ext |
| 18839 | cat >>conftest.$ac_ext <<_ACEOF |
| 18840 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18841 | $ac_includes_default |
| 18842 | #include <$ac_header> |
| 18843 | _ACEOF |
| 18844 | rm -f conftest.$ac_objext |
| 18845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18846 | (eval $ac_compile) 2>&5 |
| 18847 | ac_status=$? |
| 18848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18849 | (exit $ac_status); } && |
| 18850 | { ac_try='test -s conftest.$ac_objext' |
| 18851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18852 | (eval $ac_try) 2>&5 |
| 18853 | ac_status=$? |
| 18854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18855 | (exit $ac_status); }; }; then |
| 18856 | ac_header_compiler=yes |
| 18857 | else |
| 18858 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18860 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18861 | ac_header_compiler=no |
| 18862 | fi |
| 18863 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18864 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18865 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18866 | |
| 18867 | # Is the header present? |
| 18868 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 18869 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 18870 | cat >conftest.$ac_ext <<_ACEOF |
| 18871 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18872 | /* confdefs.h. */ |
| 18873 | _ACEOF |
| 18874 | cat confdefs.h >>conftest.$ac_ext |
| 18875 | cat >>conftest.$ac_ext <<_ACEOF |
| 18876 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18877 | #include <$ac_header> |
| 18878 | _ACEOF |
| 18879 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18880 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18881 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18882 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18883 | rm -f conftest.er1 |
| 18884 | cat conftest.err >&5 |
| 18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18886 | (exit $ac_status); } >/dev/null; then |
| 18887 | if test -s conftest.err; then |
| 18888 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18889 | else |
| 18890 | ac_cpp_err= |
| 18891 | fi |
| 18892 | else |
| 18893 | ac_cpp_err=yes |
| 18894 | fi |
| 18895 | if test -z "$ac_cpp_err"; then |
| 18896 | ac_header_preproc=yes |
| 18897 | else |
| 18898 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18901 | ac_header_preproc=no |
| 18902 | fi |
| 18903 | rm -f conftest.err conftest.$ac_ext |
| 18904 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18905 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 18906 | |
| 18907 | # So? What about this header? |
| 18908 | case $ac_header_compiler:$ac_header_preproc in |
| 18909 | yes:no ) |
| 18910 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18911 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 18912 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18913 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 18914 | ( |
| 18915 | cat <<\_ASBOX |
| 18916 | ## ------------------------------------ ## |
| 18917 | ## Report this to bug-autoconf@gnu.org. ## |
| 18918 | ## ------------------------------------ ## |
| 18919 | _ASBOX |
| 18920 | ) | |
| 18921 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18922 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18923 | no:yes ) |
| 18924 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 18925 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 18926 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 18927 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 18928 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18929 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 18930 | ( |
| 18931 | cat <<\_ASBOX |
| 18932 | ## ------------------------------------ ## |
| 18933 | ## Report this to bug-autoconf@gnu.org. ## |
| 18934 | ## ------------------------------------ ## |
| 18935 | _ASBOX |
| 18936 | ) | |
| 18937 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18938 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18939 | esac |
| 18940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 18942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 18943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18944 | else |
| 18945 | eval "$as_ac_Header=$ac_header_preproc" |
| 18946 | fi |
| 18947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 18948 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 18949 | |
| 18950 | fi |
| 18951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 18952 | cat >>confdefs.h <<_ACEOF |
| 18953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 18954 | _ACEOF |
| 18955 | |
| 18956 | fi |
| 18957 | |
| 18958 | done |
| 18959 | |
| 18960 | |
| 18961 | |
| 18962 | |
| 18963 | |
| 18964 | |
| 18965 | for ac_header in malloc.h strings.h sys/mman.h sys/resource.h |
| 18966 | do |
| 18967 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 18969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 18971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 18972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18973 | fi |
| 18974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 18975 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 18976 | else |
| 18977 | # Is the header compilable? |
| 18978 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 18979 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 18980 | cat >conftest.$ac_ext <<_ACEOF |
| 18981 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 18982 | /* confdefs.h. */ |
| 18983 | _ACEOF |
| 18984 | cat confdefs.h >>conftest.$ac_ext |
| 18985 | cat >>conftest.$ac_ext <<_ACEOF |
| 18986 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18987 | $ac_includes_default |
| 18988 | #include <$ac_header> |
| 18989 | _ACEOF |
| 18990 | rm -f conftest.$ac_objext |
| 18991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18992 | (eval $ac_compile) 2>&5 |
| 18993 | ac_status=$? |
| 18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18995 | (exit $ac_status); } && |
| 18996 | { ac_try='test -s conftest.$ac_objext' |
| 18997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18998 | (eval $ac_try) 2>&5 |
| 18999 | ac_status=$? |
| 19000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19001 | (exit $ac_status); }; }; then |
| 19002 | ac_header_compiler=yes |
| 19003 | else |
| 19004 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19006 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19007 | ac_header_compiler=no |
| 19008 | fi |
| 19009 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19010 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19011 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19012 | |
| 19013 | # Is the header present? |
| 19014 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19015 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19016 | cat >conftest.$ac_ext <<_ACEOF |
| 19017 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19018 | /* confdefs.h. */ |
| 19019 | _ACEOF |
| 19020 | cat confdefs.h >>conftest.$ac_ext |
| 19021 | cat >>conftest.$ac_ext <<_ACEOF |
| 19022 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19023 | #include <$ac_header> |
| 19024 | _ACEOF |
| 19025 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19026 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19027 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19028 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19029 | rm -f conftest.er1 |
| 19030 | cat conftest.err >&5 |
| 19031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19032 | (exit $ac_status); } >/dev/null; then |
| 19033 | if test -s conftest.err; then |
| 19034 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19035 | else |
| 19036 | ac_cpp_err= |
| 19037 | fi |
| 19038 | else |
| 19039 | ac_cpp_err=yes |
| 19040 | fi |
| 19041 | if test -z "$ac_cpp_err"; then |
| 19042 | ac_header_preproc=yes |
| 19043 | else |
| 19044 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19046 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19047 | ac_header_preproc=no |
| 19048 | fi |
| 19049 | rm -f conftest.err conftest.$ac_ext |
| 19050 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19051 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19052 | |
| 19053 | # So? What about this header? |
| 19054 | case $ac_header_compiler:$ac_header_preproc in |
| 19055 | yes:no ) |
| 19056 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19057 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19059 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19060 | ( |
| 19061 | cat <<\_ASBOX |
| 19062 | ## ------------------------------------ ## |
| 19063 | ## Report this to bug-autoconf@gnu.org. ## |
| 19064 | ## ------------------------------------ ## |
| 19065 | _ASBOX |
| 19066 | ) | |
| 19067 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19068 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19069 | no:yes ) |
| 19070 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19071 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19072 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19073 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19074 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19075 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19076 | ( |
| 19077 | cat <<\_ASBOX |
| 19078 | ## ------------------------------------ ## |
| 19079 | ## Report this to bug-autoconf@gnu.org. ## |
| 19080 | ## ------------------------------------ ## |
| 19081 | _ASBOX |
| 19082 | ) | |
| 19083 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19084 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19085 | esac |
| 19086 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19090 | else |
| 19091 | eval "$as_ac_Header=$ac_header_preproc" |
| 19092 | fi |
| 19093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19094 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19095 | |
| 19096 | fi |
| 19097 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19098 | cat >>confdefs.h <<_ACEOF |
| 19099 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19100 | _ACEOF |
| 19101 | |
| 19102 | fi |
| 19103 | |
| 19104 | done |
| 19105 | |
| 19106 | |
| 19107 | |
| 19108 | |
| 19109 | for ac_header in dlfcn.h link.h |
| 19110 | do |
| 19111 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19113 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19114 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19115 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19117 | fi |
| 19118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19119 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19120 | else |
| 19121 | # Is the header compilable? |
| 19122 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19123 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19124 | cat >conftest.$ac_ext <<_ACEOF |
| 19125 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19126 | /* confdefs.h. */ |
| 19127 | _ACEOF |
| 19128 | cat confdefs.h >>conftest.$ac_ext |
| 19129 | cat >>conftest.$ac_ext <<_ACEOF |
| 19130 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19131 | $ac_includes_default |
| 19132 | #include <$ac_header> |
| 19133 | _ACEOF |
| 19134 | rm -f conftest.$ac_objext |
| 19135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19136 | (eval $ac_compile) 2>&5 |
| 19137 | ac_status=$? |
| 19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19139 | (exit $ac_status); } && |
| 19140 | { ac_try='test -s conftest.$ac_objext' |
| 19141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19142 | (eval $ac_try) 2>&5 |
| 19143 | ac_status=$? |
| 19144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19145 | (exit $ac_status); }; }; then |
| 19146 | ac_header_compiler=yes |
| 19147 | else |
| 19148 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19150 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19151 | ac_header_compiler=no |
| 19152 | fi |
| 19153 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19154 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19155 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19156 | |
| 19157 | # Is the header present? |
| 19158 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19159 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19160 | cat >conftest.$ac_ext <<_ACEOF |
| 19161 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19162 | /* confdefs.h. */ |
| 19163 | _ACEOF |
| 19164 | cat confdefs.h >>conftest.$ac_ext |
| 19165 | cat >>conftest.$ac_ext <<_ACEOF |
| 19166 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19167 | #include <$ac_header> |
| 19168 | _ACEOF |
| 19169 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19170 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19171 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19172 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19173 | rm -f conftest.er1 |
| 19174 | cat conftest.err >&5 |
| 19175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19176 | (exit $ac_status); } >/dev/null; then |
| 19177 | if test -s conftest.err; then |
| 19178 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19179 | else |
| 19180 | ac_cpp_err= |
| 19181 | fi |
| 19182 | else |
| 19183 | ac_cpp_err=yes |
| 19184 | fi |
| 19185 | if test -z "$ac_cpp_err"; then |
| 19186 | ac_header_preproc=yes |
| 19187 | else |
| 19188 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19190 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19191 | ac_header_preproc=no |
| 19192 | fi |
| 19193 | rm -f conftest.err conftest.$ac_ext |
| 19194 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19195 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19196 | |
| 19197 | # So? What about this header? |
| 19198 | case $ac_header_compiler:$ac_header_preproc in |
| 19199 | yes:no ) |
| 19200 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19201 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19202 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19203 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19204 | ( |
| 19205 | cat <<\_ASBOX |
| 19206 | ## ------------------------------------ ## |
| 19207 | ## Report this to bug-autoconf@gnu.org. ## |
| 19208 | ## ------------------------------------ ## |
| 19209 | _ASBOX |
| 19210 | ) | |
| 19211 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19212 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19213 | no:yes ) |
| 19214 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19215 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19216 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19217 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19218 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19219 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19220 | ( |
| 19221 | cat <<\_ASBOX |
| 19222 | ## ------------------------------------ ## |
| 19223 | ## Report this to bug-autoconf@gnu.org. ## |
| 19224 | ## ------------------------------------ ## |
| 19225 | _ASBOX |
| 19226 | ) | |
| 19227 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19228 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19229 | esac |
| 19230 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19234 | else |
| 19235 | eval "$as_ac_Header=$ac_header_preproc" |
| 19236 | fi |
| 19237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19239 | |
| 19240 | fi |
| 19241 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19242 | cat >>confdefs.h <<_ACEOF |
| 19243 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19244 | _ACEOF |
| 19245 | |
| 19246 | fi |
| 19247 | |
| 19248 | done |
| 19249 | |
| 19250 | |
| 19251 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19252 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 19253 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 19254 | if test "${ac_cv_c_const+set}" = set; then |
| 19255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19256 | else |
| 19257 | cat >conftest.$ac_ext <<_ACEOF |
| 19258 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19259 | /* confdefs.h. */ |
| 19260 | _ACEOF |
| 19261 | cat confdefs.h >>conftest.$ac_ext |
| 19262 | cat >>conftest.$ac_ext <<_ACEOF |
| 19263 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19264 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19265 | int |
| 19266 | main () |
| 19267 | { |
| 19268 | /* FIXME: Include the comments suggested by Paul. */ |
| 19269 | #ifndef __cplusplus |
| 19270 | /* Ultrix mips cc rejects this. */ |
| 19271 | typedef int charset[2]; |
| 19272 | const charset x; |
| 19273 | /* SunOS 4.1.1 cc rejects this. */ |
| 19274 | char const *const *ccp; |
| 19275 | char **p; |
| 19276 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19277 | struct point {int x, y;}; |
| 19278 | static struct point const zero = {0,0}; |
| 19279 | /* AIX XL C 1.02.0.0 rejects this. |
| 19280 | It does not let you subtract one const X* pointer from another in |
| 19281 | an arm of an if-expression whose if-part is not a constant |
| 19282 | expression */ |
| 19283 | const char *g = "string"; |
| 19284 | ccp = &g + (g ? g-g : 0); |
| 19285 | /* HPUX 7.0 cc rejects these. */ |
| 19286 | ++ccp; |
| 19287 | p = (char**) ccp; |
| 19288 | ccp = (char const *const *) p; |
| 19289 | { /* SCO 3.2v4 cc rejects this. */ |
| 19290 | char *t; |
| 19291 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 19292 | |
| 19293 | *t++ = 0; |
| 19294 | } |
| 19295 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19296 | int x[] = {25, 17}; |
| 19297 | const int *foo = &x[0]; |
| 19298 | ++foo; |
| 19299 | } |
| 19300 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19301 | typedef const int *iptr; |
| 19302 | iptr p = 0; |
| 19303 | ++p; |
| 19304 | } |
| 19305 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19306 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19307 | struct s { int j; const int *ap[3]; }; |
| 19308 | struct s *b; b->j = 5; |
| 19309 | } |
| 19310 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19311 | const int foo = 10; |
| 19312 | } |
| 19313 | #endif |
| 19314 | |
| 19315 | ; |
| 19316 | return 0; |
| 19317 | } |
| 19318 | _ACEOF |
| 19319 | rm -f conftest.$ac_objext |
| 19320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19321 | (eval $ac_compile) 2>&5 |
| 19322 | ac_status=$? |
| 19323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19324 | (exit $ac_status); } && |
| 19325 | { ac_try='test -s conftest.$ac_objext' |
| 19326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19327 | (eval $ac_try) 2>&5 |
| 19328 | ac_status=$? |
| 19329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19330 | (exit $ac_status); }; }; then |
| 19331 | ac_cv_c_const=yes |
| 19332 | else |
| 19333 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19335 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19336 | ac_cv_c_const=no |
| 19337 | fi |
| 19338 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19339 | fi |
| 19340 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 19341 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 19342 | if test $ac_cv_c_const = no; then |
| 19343 | |
| 19344 | cat >>confdefs.h <<\_ACEOF |
| 19345 | #define const |
| 19346 | _ACEOF |
| 19347 | |
| 19348 | fi |
| 19349 | |
| 19350 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 19351 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 19352 | if test "${ac_cv_c_inline+set}" = set; then |
| 19353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19354 | else |
| 19355 | ac_cv_c_inline=no |
| 19356 | for ac_kw in inline __inline__ __inline; do |
| 19357 | cat >conftest.$ac_ext <<_ACEOF |
| 19358 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19359 | /* confdefs.h. */ |
| 19360 | _ACEOF |
| 19361 | cat confdefs.h >>conftest.$ac_ext |
| 19362 | cat >>conftest.$ac_ext <<_ACEOF |
| 19363 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19364 | #ifndef __cplusplus |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19365 | typedef int foo_t; |
| 19366 | static $ac_kw foo_t static_foo () {return 0; } |
| 19367 | $ac_kw foo_t foo () {return 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19368 | #endif |
| 19369 | |
| 19370 | _ACEOF |
| 19371 | rm -f conftest.$ac_objext |
| 19372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19373 | (eval $ac_compile) 2>&5 |
| 19374 | ac_status=$? |
| 19375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19376 | (exit $ac_status); } && |
| 19377 | { ac_try='test -s conftest.$ac_objext' |
| 19378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19379 | (eval $ac_try) 2>&5 |
| 19380 | ac_status=$? |
| 19381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19382 | (exit $ac_status); }; }; then |
| 19383 | ac_cv_c_inline=$ac_kw; break |
| 19384 | else |
| 19385 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19387 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19388 | fi |
| 19389 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19390 | done |
| 19391 | |
| 19392 | fi |
| 19393 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 19394 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 19395 | case $ac_cv_c_inline in |
| 19396 | inline | yes) ;; |
| 19397 | no) |
| 19398 | cat >>confdefs.h <<\_ACEOF |
| 19399 | #define inline |
| 19400 | _ACEOF |
| 19401 | ;; |
| 19402 | *) cat >>confdefs.h <<_ACEOF |
| 19403 | #define inline $ac_cv_c_inline |
| 19404 | _ACEOF |
| 19405 | ;; |
| 19406 | esac |
| 19407 | |
| 19408 | |
| 19409 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 19410 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 19411 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 19412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19413 | else |
| 19414 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 19415 | cat >conftest.$ac_ext <<_ACEOF |
| 19416 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19417 | /* confdefs.h. */ |
| 19418 | _ACEOF |
| 19419 | cat confdefs.h >>conftest.$ac_ext |
| 19420 | cat >>conftest.$ac_ext <<_ACEOF |
| 19421 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19422 | #include <sys/types.h> |
| 19423 | #include <sys/param.h> |
| 19424 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19425 | int |
| 19426 | main () |
| 19427 | { |
| 19428 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 19429 | bogus endian macros |
| 19430 | #endif |
| 19431 | |
| 19432 | ; |
| 19433 | return 0; |
| 19434 | } |
| 19435 | _ACEOF |
| 19436 | rm -f conftest.$ac_objext |
| 19437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19438 | (eval $ac_compile) 2>&5 |
| 19439 | ac_status=$? |
| 19440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19441 | (exit $ac_status); } && |
| 19442 | { ac_try='test -s conftest.$ac_objext' |
| 19443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19444 | (eval $ac_try) 2>&5 |
| 19445 | ac_status=$? |
| 19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19447 | (exit $ac_status); }; }; then |
| 19448 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 19449 | cat >conftest.$ac_ext <<_ACEOF |
| 19450 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19451 | /* confdefs.h. */ |
| 19452 | _ACEOF |
| 19453 | cat confdefs.h >>conftest.$ac_ext |
| 19454 | cat >>conftest.$ac_ext <<_ACEOF |
| 19455 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19456 | #include <sys/types.h> |
| 19457 | #include <sys/param.h> |
| 19458 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19459 | int |
| 19460 | main () |
| 19461 | { |
| 19462 | #if BYTE_ORDER != BIG_ENDIAN |
| 19463 | not big endian |
| 19464 | #endif |
| 19465 | |
| 19466 | ; |
| 19467 | return 0; |
| 19468 | } |
| 19469 | _ACEOF |
| 19470 | rm -f conftest.$ac_objext |
| 19471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19472 | (eval $ac_compile) 2>&5 |
| 19473 | ac_status=$? |
| 19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19475 | (exit $ac_status); } && |
| 19476 | { ac_try='test -s conftest.$ac_objext' |
| 19477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19478 | (eval $ac_try) 2>&5 |
| 19479 | ac_status=$? |
| 19480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19481 | (exit $ac_status); }; }; then |
| 19482 | ac_cv_c_bigendian=yes |
| 19483 | else |
| 19484 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19486 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19487 | ac_cv_c_bigendian=no |
| 19488 | fi |
| 19489 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19490 | else |
| 19491 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19493 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19494 | # It does not; compile a test program. |
| 19495 | if test "$cross_compiling" = yes; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19496 | # try to guess the endianness by grepping values into an object file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19497 | ac_cv_c_bigendian=unknown |
| 19498 | cat >conftest.$ac_ext <<_ACEOF |
| 19499 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19500 | /* confdefs.h. */ |
| 19501 | _ACEOF |
| 19502 | cat confdefs.h >>conftest.$ac_ext |
| 19503 | cat >>conftest.$ac_ext <<_ACEOF |
| 19504 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19505 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19506 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19507 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 19508 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19509 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19510 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19511 | int |
| 19512 | main () |
| 19513 | { |
| 19514 | _ascii (); _ebcdic (); |
| 19515 | ; |
| 19516 | return 0; |
| 19517 | } |
| 19518 | _ACEOF |
| 19519 | rm -f conftest.$ac_objext |
| 19520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19521 | (eval $ac_compile) 2>&5 |
| 19522 | ac_status=$? |
| 19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19524 | (exit $ac_status); } && |
| 19525 | { ac_try='test -s conftest.$ac_objext' |
| 19526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19527 | (eval $ac_try) 2>&5 |
| 19528 | ac_status=$? |
| 19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19530 | (exit $ac_status); }; }; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19531 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19532 | ac_cv_c_bigendian=yes |
| 19533 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19534 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19535 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19536 | ac_cv_c_bigendian=no |
| 19537 | else |
| 19538 | # finding both strings is unlikely to happen, but who knows? |
| 19539 | ac_cv_c_bigendian=unknown |
| 19540 | fi |
| 19541 | fi |
| 19542 | else |
| 19543 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19545 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19546 | fi |
| 19547 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19548 | else |
| 19549 | cat >conftest.$ac_ext <<_ACEOF |
| 19550 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19551 | /* confdefs.h. */ |
| 19552 | _ACEOF |
| 19553 | cat confdefs.h >>conftest.$ac_ext |
| 19554 | cat >>conftest.$ac_ext <<_ACEOF |
| 19555 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19556 | int |
| 19557 | main () |
| 19558 | { |
| 19559 | /* Are we little or big endian? From Harbison&Steele. */ |
| 19560 | union |
| 19561 | { |
| 19562 | long l; |
| 19563 | char c[sizeof (long)]; |
| 19564 | } u; |
| 19565 | u.l = 1; |
| 19566 | exit (u.c[sizeof (long) - 1] == 1); |
| 19567 | } |
| 19568 | _ACEOF |
| 19569 | rm -f conftest$ac_exeext |
| 19570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19571 | (eval $ac_link) 2>&5 |
| 19572 | ac_status=$? |
| 19573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19574 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19576 | (eval $ac_try) 2>&5 |
| 19577 | ac_status=$? |
| 19578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19579 | (exit $ac_status); }; }; then |
| 19580 | ac_cv_c_bigendian=no |
| 19581 | else |
| 19582 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19583 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19585 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19586 | ( exit $ac_status ) |
| 19587 | ac_cv_c_bigendian=yes |
| 19588 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19589 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19590 | fi |
| 19591 | fi |
| 19592 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19593 | fi |
| 19594 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 19595 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 19596 | case $ac_cv_c_bigendian in |
| 19597 | yes) |
| 19598 | cat >>confdefs.h <<\_ACEOF |
| 19599 | #define ENDIAN_BIG 1 |
| 19600 | _ACEOF |
| 19601 | ;; |
| 19602 | no) |
| 19603 | cat >>confdefs.h <<\_ACEOF |
| 19604 | #define ENDIAN_LITTLE 1 |
| 19605 | _ACEOF |
| 19606 | ;; |
| 19607 | *) |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19608 | { { echo "$as_me:$LINENO: error: unknown endianness |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19609 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19610 | echo "$as_me: error: unknown endianness |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19611 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 19612 | { (exit 1); exit 1; }; } ;; |
| 19613 | esac |
| 19614 | |
| 19615 | |
| 19616 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 19617 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 19618 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 19619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19620 | else |
| 19621 | cat >conftest.$ac_ext <<_ACEOF |
| 19622 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19623 | /* confdefs.h. */ |
| 19624 | _ACEOF |
| 19625 | cat confdefs.h >>conftest.$ac_ext |
| 19626 | cat >>conftest.$ac_ext <<_ACEOF |
| 19627 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19628 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19629 | int |
| 19630 | main () |
| 19631 | { |
| 19632 | if ((pid_t *) 0) |
| 19633 | return 0; |
| 19634 | if (sizeof (pid_t)) |
| 19635 | return 0; |
| 19636 | ; |
| 19637 | return 0; |
| 19638 | } |
| 19639 | _ACEOF |
| 19640 | rm -f conftest.$ac_objext |
| 19641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19642 | (eval $ac_compile) 2>&5 |
| 19643 | ac_status=$? |
| 19644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19645 | (exit $ac_status); } && |
| 19646 | { ac_try='test -s conftest.$ac_objext' |
| 19647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19648 | (eval $ac_try) 2>&5 |
| 19649 | ac_status=$? |
| 19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19651 | (exit $ac_status); }; }; then |
| 19652 | ac_cv_type_pid_t=yes |
| 19653 | else |
| 19654 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19656 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19657 | ac_cv_type_pid_t=no |
| 19658 | fi |
| 19659 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19660 | fi |
| 19661 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 19662 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 19663 | if test $ac_cv_type_pid_t = yes; then |
| 19664 | : |
| 19665 | else |
| 19666 | |
| 19667 | cat >>confdefs.h <<_ACEOF |
| 19668 | #define pid_t int |
| 19669 | _ACEOF |
| 19670 | |
| 19671 | fi |
| 19672 | |
| 19673 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 19674 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 19675 | if test "${ac_cv_type_size_t+set}" = set; then |
| 19676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19677 | else |
| 19678 | cat >conftest.$ac_ext <<_ACEOF |
| 19679 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19680 | /* confdefs.h. */ |
| 19681 | _ACEOF |
| 19682 | cat confdefs.h >>conftest.$ac_ext |
| 19683 | cat >>conftest.$ac_ext <<_ACEOF |
| 19684 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19685 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19686 | int |
| 19687 | main () |
| 19688 | { |
| 19689 | if ((size_t *) 0) |
| 19690 | return 0; |
| 19691 | if (sizeof (size_t)) |
| 19692 | return 0; |
| 19693 | ; |
| 19694 | return 0; |
| 19695 | } |
| 19696 | _ACEOF |
| 19697 | rm -f conftest.$ac_objext |
| 19698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19699 | (eval $ac_compile) 2>&5 |
| 19700 | ac_status=$? |
| 19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19702 | (exit $ac_status); } && |
| 19703 | { ac_try='test -s conftest.$ac_objext' |
| 19704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19705 | (eval $ac_try) 2>&5 |
| 19706 | ac_status=$? |
| 19707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19708 | (exit $ac_status); }; }; then |
| 19709 | ac_cv_type_size_t=yes |
| 19710 | else |
| 19711 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19713 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19714 | ac_cv_type_size_t=no |
| 19715 | fi |
| 19716 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19717 | fi |
| 19718 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 19719 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 19720 | if test $ac_cv_type_size_t = yes; then |
| 19721 | : |
| 19722 | else |
| 19723 | |
| 19724 | cat >>confdefs.h <<_ACEOF |
| 19725 | #define size_t unsigned |
| 19726 | _ACEOF |
| 19727 | |
| 19728 | fi |
| 19729 | |
| 19730 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 19731 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 19732 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 19733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19734 | else |
| 19735 | cat >conftest.$ac_ext <<_ACEOF |
| 19736 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19737 | /* confdefs.h. */ |
| 19738 | _ACEOF |
| 19739 | cat confdefs.h >>conftest.$ac_ext |
| 19740 | cat >>conftest.$ac_ext <<_ACEOF |
| 19741 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19742 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19743 | int |
| 19744 | main () |
| 19745 | { |
| 19746 | if ((int64_t *) 0) |
| 19747 | return 0; |
| 19748 | if (sizeof (int64_t)) |
| 19749 | return 0; |
| 19750 | ; |
| 19751 | return 0; |
| 19752 | } |
| 19753 | _ACEOF |
| 19754 | rm -f conftest.$ac_objext |
| 19755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19756 | (eval $ac_compile) 2>&5 |
| 19757 | ac_status=$? |
| 19758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19759 | (exit $ac_status); } && |
| 19760 | { ac_try='test -s conftest.$ac_objext' |
| 19761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19762 | (eval $ac_try) 2>&5 |
| 19763 | ac_status=$? |
| 19764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19765 | (exit $ac_status); }; }; then |
| 19766 | ac_cv_type_int64_t=yes |
| 19767 | else |
| 19768 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19770 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19771 | ac_cv_type_int64_t=no |
| 19772 | fi |
| 19773 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19774 | fi |
| 19775 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 19776 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 19777 | if test $ac_cv_type_int64_t = yes; then |
| 19778 | |
| 19779 | cat >>confdefs.h <<_ACEOF |
| 19780 | #define HAVE_INT64_T 1 |
| 19781 | _ACEOF |
| 19782 | |
| 19783 | |
| 19784 | else |
| 19785 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 19786 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 19787 | { (exit 1); exit 1; }; } |
| 19788 | fi |
| 19789 | |
| 19790 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 19791 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 19792 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 19793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19794 | else |
| 19795 | cat >conftest.$ac_ext <<_ACEOF |
| 19796 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19797 | /* confdefs.h. */ |
| 19798 | _ACEOF |
| 19799 | cat confdefs.h >>conftest.$ac_ext |
| 19800 | cat >>conftest.$ac_ext <<_ACEOF |
| 19801 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19802 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19803 | int |
| 19804 | main () |
| 19805 | { |
| 19806 | if ((uint64_t *) 0) |
| 19807 | return 0; |
| 19808 | if (sizeof (uint64_t)) |
| 19809 | return 0; |
| 19810 | ; |
| 19811 | return 0; |
| 19812 | } |
| 19813 | _ACEOF |
| 19814 | rm -f conftest.$ac_objext |
| 19815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19816 | (eval $ac_compile) 2>&5 |
| 19817 | ac_status=$? |
| 19818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19819 | (exit $ac_status); } && |
| 19820 | { ac_try='test -s conftest.$ac_objext' |
| 19821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19822 | (eval $ac_try) 2>&5 |
| 19823 | ac_status=$? |
| 19824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19825 | (exit $ac_status); }; }; then |
| 19826 | ac_cv_type_uint64_t=yes |
| 19827 | else |
| 19828 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19830 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19831 | ac_cv_type_uint64_t=no |
| 19832 | fi |
| 19833 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19834 | fi |
| 19835 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 19836 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 19837 | if test $ac_cv_type_uint64_t = yes; then |
| 19838 | |
| 19839 | cat >>confdefs.h <<_ACEOF |
| 19840 | #define HAVE_UINT64_T 1 |
| 19841 | _ACEOF |
| 19842 | |
| 19843 | |
| 19844 | else |
| 19845 | { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5 |
| 19846 | echo "$as_me: error: Type uint64_t required but not found" >&2;} |
| 19847 | { (exit 1); exit 1; }; } |
| 19848 | fi |
| 19849 | |
| 19850 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 19851 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 19852 | if test "${ac_cv_header_time+set}" = set; then |
| 19853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19854 | else |
| 19855 | cat >conftest.$ac_ext <<_ACEOF |
| 19856 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19857 | /* confdefs.h. */ |
| 19858 | _ACEOF |
| 19859 | cat confdefs.h >>conftest.$ac_ext |
| 19860 | cat >>conftest.$ac_ext <<_ACEOF |
| 19861 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19862 | #include <sys/types.h> |
| 19863 | #include <sys/time.h> |
| 19864 | #include <time.h> |
| 19865 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19866 | int |
| 19867 | main () |
| 19868 | { |
| 19869 | if ((struct tm *) 0) |
| 19870 | return 0; |
| 19871 | ; |
| 19872 | return 0; |
| 19873 | } |
| 19874 | _ACEOF |
| 19875 | rm -f conftest.$ac_objext |
| 19876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19877 | (eval $ac_compile) 2>&5 |
| 19878 | ac_status=$? |
| 19879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19880 | (exit $ac_status); } && |
| 19881 | { ac_try='test -s conftest.$ac_objext' |
| 19882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19883 | (eval $ac_try) 2>&5 |
| 19884 | ac_status=$? |
| 19885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19886 | (exit $ac_status); }; }; then |
| 19887 | ac_cv_header_time=yes |
| 19888 | else |
| 19889 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19891 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19892 | ac_cv_header_time=no |
| 19893 | fi |
| 19894 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19895 | fi |
| 19896 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 19897 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 19898 | if test $ac_cv_header_time = yes; then |
| 19899 | |
| 19900 | cat >>confdefs.h <<\_ACEOF |
| 19901 | #define TIME_WITH_SYS_TIME 1 |
| 19902 | _ACEOF |
| 19903 | |
| 19904 | fi |
| 19905 | |
| 19906 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19907 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 19908 | if test "${ac_cv_struct_tm+set}" = set; then |
| 19909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19910 | else |
| 19911 | cat >conftest.$ac_ext <<_ACEOF |
| 19912 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19913 | /* confdefs.h. */ |
| 19914 | _ACEOF |
| 19915 | cat confdefs.h >>conftest.$ac_ext |
| 19916 | cat >>conftest.$ac_ext <<_ACEOF |
| 19917 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19918 | #include <sys/types.h> |
| 19919 | #include <time.h> |
| 19920 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19921 | int |
| 19922 | main () |
| 19923 | { |
| 19924 | struct tm *tp; tp->tm_sec; |
| 19925 | ; |
| 19926 | return 0; |
| 19927 | } |
| 19928 | _ACEOF |
| 19929 | rm -f conftest.$ac_objext |
| 19930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19931 | (eval $ac_compile) 2>&5 |
| 19932 | ac_status=$? |
| 19933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19934 | (exit $ac_status); } && |
| 19935 | { ac_try='test -s conftest.$ac_objext' |
| 19936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19937 | (eval $ac_try) 2>&5 |
| 19938 | ac_status=$? |
| 19939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19940 | (exit $ac_status); }; }; then |
| 19941 | ac_cv_struct_tm=time.h |
| 19942 | else |
| 19943 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19945 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19946 | ac_cv_struct_tm=sys/time.h |
| 19947 | fi |
| 19948 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19949 | fi |
| 19950 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 19951 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 19952 | if test $ac_cv_struct_tm = sys/time.h; then |
| 19953 | |
| 19954 | cat >>confdefs.h <<\_ACEOF |
| 19955 | #define TM_IN_SYS_TIME 1 |
| 19956 | _ACEOF |
| 19957 | |
| 19958 | fi |
| 19959 | |
| 19960 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19961 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 19962 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 19963 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 19964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19965 | else |
| 19966 | |
| 19967 | |
| 19968 | ac_ext=cc |
| 19969 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19973 | |
| 19974 | cat >conftest.$ac_ext <<_ACEOF |
| 19975 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 19976 | /* confdefs.h. */ |
| 19977 | _ACEOF |
| 19978 | cat confdefs.h >>conftest.$ac_ext |
| 19979 | cat >>conftest.$ac_ext <<_ACEOF |
| 19980 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19981 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19982 | int |
| 19983 | main () |
| 19984 | { |
| 19985 | using namespace Outer::Inner; return i; |
| 19986 | ; |
| 19987 | return 0; |
| 19988 | } |
| 19989 | _ACEOF |
| 19990 | rm -f conftest.$ac_objext |
| 19991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19992 | (eval $ac_compile) 2>&5 |
| 19993 | ac_status=$? |
| 19994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19995 | (exit $ac_status); } && |
| 19996 | { ac_try='test -s conftest.$ac_objext' |
| 19997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19998 | (eval $ac_try) 2>&5 |
| 19999 | ac_status=$? |
| 20000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20001 | (exit $ac_status); }; }; then |
| 20002 | ac_cv_cxx_namespaces=yes |
| 20003 | else |
| 20004 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20006 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20007 | ac_cv_cxx_namespaces=no |
| 20008 | fi |
| 20009 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20010 | ac_ext=c |
| 20011 | ac_cpp='$CPP $CPPFLAGS' |
| 20012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20015 | |
| 20016 | |
| 20017 | fi |
| 20018 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 20019 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 20020 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 20021 | |
| 20022 | cat >>confdefs.h <<\_ACEOF |
| 20023 | #define HAVE_NAMESPACES |
| 20024 | _ACEOF |
| 20025 | |
| 20026 | fi |
| 20027 | |
| 20028 | echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5 |
| 20029 | echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6 |
| 20030 | if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then |
| 20031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20032 | else |
| 20033 | |
| 20034 | |
| 20035 | |
| 20036 | ac_ext=cc |
| 20037 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20038 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20039 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20040 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20041 | |
| 20042 | cat >conftest.$ac_ext <<_ACEOF |
| 20043 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20044 | /* confdefs.h. */ |
| 20045 | _ACEOF |
| 20046 | cat confdefs.h >>conftest.$ac_ext |
| 20047 | cat >>conftest.$ac_ext <<_ACEOF |
| 20048 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20049 | #include <ext/hash_map> |
| 20050 | #ifdef HAVE_NAMESPACES |
| 20051 | using namespace std; |
| 20052 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20053 | int |
| 20054 | main () |
| 20055 | { |
| 20056 | hash_map<int, int> t; return 0; |
| 20057 | ; |
| 20058 | return 0; |
| 20059 | } |
| 20060 | _ACEOF |
| 20061 | rm -f conftest.$ac_objext |
| 20062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20063 | (eval $ac_compile) 2>&5 |
| 20064 | ac_status=$? |
| 20065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20066 | (exit $ac_status); } && |
| 20067 | { ac_try='test -s conftest.$ac_objext' |
| 20068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20069 | (eval $ac_try) 2>&5 |
| 20070 | ac_status=$? |
| 20071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20072 | (exit $ac_status); }; }; then |
| 20073 | ac_cv_cxx_have_ext_hash_map=std |
| 20074 | else |
| 20075 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20077 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20078 | ac_cv_cxx_have_ext_hash_map=no |
| 20079 | fi |
| 20080 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20081 | cat >conftest.$ac_ext <<_ACEOF |
| 20082 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20083 | /* confdefs.h. */ |
| 20084 | _ACEOF |
| 20085 | cat confdefs.h >>conftest.$ac_ext |
| 20086 | cat >>conftest.$ac_ext <<_ACEOF |
| 20087 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20088 | #include <ext/hash_map> |
| 20089 | #ifdef HAVE_NAMESPACES |
| 20090 | using namespace __gnu_cxx; |
| 20091 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20092 | int |
| 20093 | main () |
| 20094 | { |
| 20095 | hash_map<int, int> t; return 0; |
| 20096 | ; |
| 20097 | return 0; |
| 20098 | } |
| 20099 | _ACEOF |
| 20100 | rm -f conftest.$ac_objext |
| 20101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20102 | (eval $ac_compile) 2>&5 |
| 20103 | ac_status=$? |
| 20104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20105 | (exit $ac_status); } && |
| 20106 | { ac_try='test -s conftest.$ac_objext' |
| 20107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20108 | (eval $ac_try) 2>&5 |
| 20109 | ac_status=$? |
| 20110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20111 | (exit $ac_status); }; }; then |
| 20112 | ac_cv_cxx_have_ext_hash_map=gnu |
| 20113 | else |
| 20114 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20116 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20117 | ac_cv_cxx_have_ext_hash_map=no |
| 20118 | fi |
| 20119 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20120 | ac_ext=c |
| 20121 | ac_cpp='$CPP $CPPFLAGS' |
| 20122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20125 | |
| 20126 | |
| 20127 | fi |
| 20128 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5 |
| 20129 | echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6 |
| 20130 | if test "$ac_cv_cxx_have_ext_hash_map" = std; then |
| 20131 | |
| 20132 | cat >>confdefs.h <<\_ACEOF |
| 20133 | #define HAVE_STD_EXT_HASH_MAP |
| 20134 | _ACEOF |
| 20135 | |
| 20136 | fi |
| 20137 | if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then |
| 20138 | |
| 20139 | cat >>confdefs.h <<\_ACEOF |
| 20140 | #define HAVE_GNU_EXT_HASH_MAP |
| 20141 | _ACEOF |
| 20142 | |
| 20143 | fi |
| 20144 | |
| 20145 | echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5 |
| 20146 | echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6 |
| 20147 | if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then |
| 20148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20149 | else |
| 20150 | |
| 20151 | |
| 20152 | |
| 20153 | ac_ext=cc |
| 20154 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20155 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20156 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20157 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20158 | |
| 20159 | cat >conftest.$ac_ext <<_ACEOF |
| 20160 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20161 | /* confdefs.h. */ |
| 20162 | _ACEOF |
| 20163 | cat confdefs.h >>conftest.$ac_ext |
| 20164 | cat >>conftest.$ac_ext <<_ACEOF |
| 20165 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20166 | #include <ext/hash_set> |
| 20167 | #ifdef HAVE_NAMESPACES |
| 20168 | using namespace std; |
| 20169 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20170 | int |
| 20171 | main () |
| 20172 | { |
| 20173 | hash_set<int> t; return 0; |
| 20174 | ; |
| 20175 | return 0; |
| 20176 | } |
| 20177 | _ACEOF |
| 20178 | rm -f conftest.$ac_objext |
| 20179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20180 | (eval $ac_compile) 2>&5 |
| 20181 | ac_status=$? |
| 20182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20183 | (exit $ac_status); } && |
| 20184 | { ac_try='test -s conftest.$ac_objext' |
| 20185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20186 | (eval $ac_try) 2>&5 |
| 20187 | ac_status=$? |
| 20188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20189 | (exit $ac_status); }; }; then |
| 20190 | ac_cv_cxx_have_ext_hash_set=std |
| 20191 | else |
| 20192 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20194 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20195 | ac_cv_cxx_have_ext_hash_set=no |
| 20196 | fi |
| 20197 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20198 | cat >conftest.$ac_ext <<_ACEOF |
| 20199 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20200 | /* confdefs.h. */ |
| 20201 | _ACEOF |
| 20202 | cat confdefs.h >>conftest.$ac_ext |
| 20203 | cat >>conftest.$ac_ext <<_ACEOF |
| 20204 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20205 | #include <ext/hash_set> |
| 20206 | #ifdef HAVE_NAMESPACES |
| 20207 | using namespace __gnu_cxx; |
| 20208 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20209 | int |
| 20210 | main () |
| 20211 | { |
| 20212 | hash_set<int> t; return 0; |
| 20213 | ; |
| 20214 | return 0; |
| 20215 | } |
| 20216 | _ACEOF |
| 20217 | rm -f conftest.$ac_objext |
| 20218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20219 | (eval $ac_compile) 2>&5 |
| 20220 | ac_status=$? |
| 20221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20222 | (exit $ac_status); } && |
| 20223 | { ac_try='test -s conftest.$ac_objext' |
| 20224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20225 | (eval $ac_try) 2>&5 |
| 20226 | ac_status=$? |
| 20227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20228 | (exit $ac_status); }; }; then |
| 20229 | ac_cv_cxx_have_ext_hash_set=gnu |
| 20230 | else |
| 20231 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20233 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20234 | ac_cv_cxx_have_ext_hash_set=no |
| 20235 | fi |
| 20236 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20237 | ac_ext=c |
| 20238 | ac_cpp='$CPP $CPPFLAGS' |
| 20239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20242 | |
| 20243 | |
| 20244 | fi |
| 20245 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5 |
| 20246 | echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6 |
| 20247 | if test "$ac_cv_cxx_have_ext_hash_set" = std; then |
| 20248 | |
| 20249 | cat >>confdefs.h <<\_ACEOF |
| 20250 | #define HAVE_STD_EXT_HASH_SET |
| 20251 | _ACEOF |
| 20252 | |
| 20253 | fi |
| 20254 | if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then |
| 20255 | |
| 20256 | cat >>confdefs.h <<\_ACEOF |
| 20257 | #define HAVE_GNU_EXT_HASH_SET |
| 20258 | _ACEOF |
| 20259 | |
| 20260 | fi |
| 20261 | |
| 20262 | echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5 |
| 20263 | echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6 |
| 20264 | if test "${ac_cv_cxx_have_ext_slist+set}" = set; then |
| 20265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20266 | else |
| 20267 | |
| 20268 | |
| 20269 | |
| 20270 | ac_ext=cc |
| 20271 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20272 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20273 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20274 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20275 | |
| 20276 | cat >conftest.$ac_ext <<_ACEOF |
| 20277 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20278 | /* confdefs.h. */ |
| 20279 | _ACEOF |
| 20280 | cat confdefs.h >>conftest.$ac_ext |
| 20281 | cat >>conftest.$ac_ext <<_ACEOF |
| 20282 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20283 | #include <ext/slist> |
| 20284 | #ifdef HAVE_NAMESPACES |
| 20285 | using namespace std; |
| 20286 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20287 | int |
| 20288 | main () |
| 20289 | { |
| 20290 | slist<int> s; return 0; |
| 20291 | ; |
| 20292 | return 0; |
| 20293 | } |
| 20294 | _ACEOF |
| 20295 | rm -f conftest.$ac_objext |
| 20296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20297 | (eval $ac_compile) 2>&5 |
| 20298 | ac_status=$? |
| 20299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20300 | (exit $ac_status); } && |
| 20301 | { ac_try='test -s conftest.$ac_objext' |
| 20302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20303 | (eval $ac_try) 2>&5 |
| 20304 | ac_status=$? |
| 20305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20306 | (exit $ac_status); }; }; then |
| 20307 | ac_cv_cxx_have_ext_slist=std |
| 20308 | else |
| 20309 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20311 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20312 | ac_cv_cxx_have_ext_slist=no |
| 20313 | fi |
| 20314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20315 | cat >conftest.$ac_ext <<_ACEOF |
| 20316 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20317 | /* confdefs.h. */ |
| 20318 | _ACEOF |
| 20319 | cat confdefs.h >>conftest.$ac_ext |
| 20320 | cat >>conftest.$ac_ext <<_ACEOF |
| 20321 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20322 | #include <ext/slist> |
| 20323 | #ifdef HAVE_NAMESPACES |
| 20324 | using namespace __gnu_cxx; |
| 20325 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20326 | int |
| 20327 | main () |
| 20328 | { |
| 20329 | slist<int> s; return 0; |
| 20330 | ; |
| 20331 | return 0; |
| 20332 | } |
| 20333 | _ACEOF |
| 20334 | rm -f conftest.$ac_objext |
| 20335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20336 | (eval $ac_compile) 2>&5 |
| 20337 | ac_status=$? |
| 20338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20339 | (exit $ac_status); } && |
| 20340 | { ac_try='test -s conftest.$ac_objext' |
| 20341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20342 | (eval $ac_try) 2>&5 |
| 20343 | ac_status=$? |
| 20344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20345 | (exit $ac_status); }; }; then |
| 20346 | ac_cv_cxx_have_ext_slist=gnu |
| 20347 | else |
| 20348 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20350 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20351 | ac_cv_cxx_have_ext_slist=no |
| 20352 | fi |
| 20353 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20354 | |
| 20355 | ac_ext=c |
| 20356 | ac_cpp='$CPP $CPPFLAGS' |
| 20357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20360 | |
| 20361 | |
| 20362 | fi |
| 20363 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5 |
| 20364 | echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6 |
| 20365 | if test "$ac_cv_cxx_have_ext_slist" = std; then |
| 20366 | |
| 20367 | cat >>confdefs.h <<\_ACEOF |
| 20368 | #define HAVE_EXT_SLIST std |
| 20369 | _ACEOF |
| 20370 | |
| 20371 | fi |
| 20372 | if test "$ac_cv_cxx_have_ext_slist" = gnu; then |
| 20373 | |
| 20374 | cat >>confdefs.h <<\_ACEOF |
| 20375 | #define HAVE_EXT_SLIST gnu |
| 20376 | _ACEOF |
| 20377 | |
| 20378 | fi |
| 20379 | |
| 20380 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 20381 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 20382 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 20383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20384 | else |
| 20385 | |
| 20386 | |
| 20387 | |
| 20388 | ac_ext=cc |
| 20389 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20393 | |
| 20394 | cat >conftest.$ac_ext <<_ACEOF |
| 20395 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20396 | /* confdefs.h. */ |
| 20397 | _ACEOF |
| 20398 | cat confdefs.h >>conftest.$ac_ext |
| 20399 | cat >>conftest.$ac_ext <<_ACEOF |
| 20400 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20401 | #include <iterator> |
| 20402 | #ifdef HAVE_NAMESPACES |
| 20403 | using namespace std; |
| 20404 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20405 | int |
| 20406 | main () |
| 20407 | { |
| 20408 | iterator<int,int,int> t; return 0; |
| 20409 | ; |
| 20410 | return 0; |
| 20411 | } |
| 20412 | _ACEOF |
| 20413 | rm -f conftest.$ac_objext |
| 20414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20415 | (eval $ac_compile) 2>&5 |
| 20416 | ac_status=$? |
| 20417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20418 | (exit $ac_status); } && |
| 20419 | { ac_try='test -s conftest.$ac_objext' |
| 20420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20421 | (eval $ac_try) 2>&5 |
| 20422 | ac_status=$? |
| 20423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20424 | (exit $ac_status); }; }; then |
| 20425 | ac_cv_cxx_have_std_iterator=yes |
| 20426 | else |
| 20427 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20429 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20430 | ac_cv_cxx_have_std_iterator=no |
| 20431 | fi |
| 20432 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20433 | ac_ext=c |
| 20434 | ac_cpp='$CPP $CPPFLAGS' |
| 20435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20438 | |
| 20439 | |
| 20440 | fi |
| 20441 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 20442 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
| 20443 | if test "$ac_cv_cxx_have_std_iterator" = yes; then |
| 20444 | |
| 20445 | cat >>confdefs.h <<\_ACEOF |
| 20446 | #define HAVE_STD_ITERATOR |
| 20447 | _ACEOF |
| 20448 | |
| 20449 | fi |
| 20450 | |
| 20451 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 20452 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 20453 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 20454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20455 | else |
| 20456 | |
| 20457 | |
| 20458 | |
| 20459 | ac_ext=cc |
| 20460 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20461 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20462 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20463 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20464 | |
| 20465 | cat >conftest.$ac_ext <<_ACEOF |
| 20466 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20467 | /* confdefs.h. */ |
| 20468 | _ACEOF |
| 20469 | cat confdefs.h >>conftest.$ac_ext |
| 20470 | cat >>conftest.$ac_ext <<_ACEOF |
| 20471 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20472 | #include <iterator> |
| 20473 | #ifdef HAVE_NAMESPACES |
| 20474 | using namespace std; |
| 20475 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20476 | int |
| 20477 | main () |
| 20478 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 20479 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20480 | ; |
| 20481 | return 0; |
| 20482 | } |
| 20483 | _ACEOF |
| 20484 | rm -f conftest.$ac_objext |
| 20485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20486 | (eval $ac_compile) 2>&5 |
| 20487 | ac_status=$? |
| 20488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20489 | (exit $ac_status); } && |
| 20490 | { ac_try='test -s conftest.$ac_objext' |
| 20491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20492 | (eval $ac_try) 2>&5 |
| 20493 | ac_status=$? |
| 20494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20495 | (exit $ac_status); }; }; then |
| 20496 | ac_cv_cxx_have_bi_iterator=yes |
| 20497 | else |
| 20498 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20500 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20501 | ac_cv_cxx_have_bi_iterator=no |
| 20502 | fi |
| 20503 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20504 | ac_ext=c |
| 20505 | ac_cpp='$CPP $CPPFLAGS' |
| 20506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20509 | |
| 20510 | |
| 20511 | fi |
| 20512 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 20513 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
| 20514 | if test "$ac_cv_cxx_have_bi_iterator" = yes; then |
| 20515 | |
| 20516 | cat >>confdefs.h <<\_ACEOF |
| 20517 | #define HAVE_BI_ITERATOR |
| 20518 | _ACEOF |
| 20519 | |
| 20520 | fi |
| 20521 | |
| 20522 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 20523 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 20524 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 20525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20526 | else |
| 20527 | |
| 20528 | |
| 20529 | |
| 20530 | ac_ext=cc |
| 20531 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20535 | |
| 20536 | cat >conftest.$ac_ext <<_ACEOF |
| 20537 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20538 | /* confdefs.h. */ |
| 20539 | _ACEOF |
| 20540 | cat confdefs.h >>conftest.$ac_ext |
| 20541 | cat >>conftest.$ac_ext <<_ACEOF |
| 20542 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20543 | #include <iterator> |
| 20544 | #ifdef HAVE_NAMESPACES |
| 20545 | using namespace std; |
| 20546 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20547 | int |
| 20548 | main () |
| 20549 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 20550 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20551 | ; |
| 20552 | return 0; |
| 20553 | } |
| 20554 | _ACEOF |
| 20555 | rm -f conftest.$ac_objext |
| 20556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20557 | (eval $ac_compile) 2>&5 |
| 20558 | ac_status=$? |
| 20559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20560 | (exit $ac_status); } && |
| 20561 | { ac_try='test -s conftest.$ac_objext' |
| 20562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20563 | (eval $ac_try) 2>&5 |
| 20564 | ac_status=$? |
| 20565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20566 | (exit $ac_status); }; }; then |
| 20567 | ac_cv_cxx_have_fwd_iterator=yes |
| 20568 | else |
| 20569 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20571 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20572 | ac_cv_cxx_have_fwd_iterator=no |
| 20573 | fi |
| 20574 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20575 | ac_ext=c |
| 20576 | ac_cpp='$CPP $CPPFLAGS' |
| 20577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20580 | |
| 20581 | |
| 20582 | fi |
| 20583 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 20584 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
| 20585 | if test "$ac_cv_cxx_have_fwd_iterator" = yes; then |
| 20586 | |
| 20587 | cat >>confdefs.h <<\_ACEOF |
| 20588 | #define HAVE_FWD_ITERATOR |
| 20589 | _ACEOF |
| 20590 | |
| 20591 | fi |
| 20592 | |
| 20593 | |
| 20594 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 20595 | # for constant arguments. Useless! |
| 20596 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 20597 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 20598 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 20599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20600 | else |
| 20601 | cat >conftest.$ac_ext <<_ACEOF |
| 20602 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20603 | /* confdefs.h. */ |
| 20604 | _ACEOF |
| 20605 | cat confdefs.h >>conftest.$ac_ext |
| 20606 | cat >>conftest.$ac_ext <<_ACEOF |
| 20607 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20608 | #include <alloca.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20609 | int |
| 20610 | main () |
| 20611 | { |
| 20612 | char *p = (char *) alloca (2 * sizeof (int)); |
| 20613 | ; |
| 20614 | return 0; |
| 20615 | } |
| 20616 | _ACEOF |
| 20617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20619 | (eval $ac_link) 2>&5 |
| 20620 | ac_status=$? |
| 20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20622 | (exit $ac_status); } && |
| 20623 | { ac_try='test -s conftest$ac_exeext' |
| 20624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20625 | (eval $ac_try) 2>&5 |
| 20626 | ac_status=$? |
| 20627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20628 | (exit $ac_status); }; }; then |
| 20629 | ac_cv_working_alloca_h=yes |
| 20630 | else |
| 20631 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20633 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20634 | ac_cv_working_alloca_h=no |
| 20635 | fi |
| 20636 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 20637 | fi |
| 20638 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 20639 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 20640 | if test $ac_cv_working_alloca_h = yes; then |
| 20641 | |
| 20642 | cat >>confdefs.h <<\_ACEOF |
| 20643 | #define HAVE_ALLOCA_H 1 |
| 20644 | _ACEOF |
| 20645 | |
| 20646 | fi |
| 20647 | |
| 20648 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 20649 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 20650 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 20651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20652 | else |
| 20653 | cat >conftest.$ac_ext <<_ACEOF |
| 20654 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20655 | /* confdefs.h. */ |
| 20656 | _ACEOF |
| 20657 | cat confdefs.h >>conftest.$ac_ext |
| 20658 | cat >>conftest.$ac_ext <<_ACEOF |
| 20659 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20660 | #ifdef __GNUC__ |
| 20661 | # define alloca __builtin_alloca |
| 20662 | #else |
| 20663 | # ifdef _MSC_VER |
| 20664 | # include <malloc.h> |
| 20665 | # define alloca _alloca |
| 20666 | # else |
| 20667 | # if HAVE_ALLOCA_H |
| 20668 | # include <alloca.h> |
| 20669 | # else |
| 20670 | # ifdef _AIX |
| 20671 | #pragma alloca |
| 20672 | # else |
| 20673 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 20674 | char *alloca (); |
| 20675 | # endif |
| 20676 | # endif |
| 20677 | # endif |
| 20678 | # endif |
| 20679 | #endif |
| 20680 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20681 | int |
| 20682 | main () |
| 20683 | { |
| 20684 | char *p = (char *) alloca (1); |
| 20685 | ; |
| 20686 | return 0; |
| 20687 | } |
| 20688 | _ACEOF |
| 20689 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20691 | (eval $ac_link) 2>&5 |
| 20692 | ac_status=$? |
| 20693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20694 | (exit $ac_status); } && |
| 20695 | { ac_try='test -s conftest$ac_exeext' |
| 20696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20697 | (eval $ac_try) 2>&5 |
| 20698 | ac_status=$? |
| 20699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20700 | (exit $ac_status); }; }; then |
| 20701 | ac_cv_func_alloca_works=yes |
| 20702 | else |
| 20703 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20705 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20706 | ac_cv_func_alloca_works=no |
| 20707 | fi |
| 20708 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 20709 | fi |
| 20710 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 20711 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 20712 | |
| 20713 | if test $ac_cv_func_alloca_works = yes; then |
| 20714 | |
| 20715 | cat >>confdefs.h <<\_ACEOF |
| 20716 | #define HAVE_ALLOCA 1 |
| 20717 | _ACEOF |
| 20718 | |
| 20719 | else |
| 20720 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 20721 | # that cause trouble. Some versions do not even contain alloca or |
| 20722 | # contain a buggy version. If you still want to use their alloca, |
| 20723 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 20724 | |
| 20725 | ALLOCA=alloca.$ac_objext |
| 20726 | |
| 20727 | cat >>confdefs.h <<\_ACEOF |
| 20728 | #define C_ALLOCA 1 |
| 20729 | _ACEOF |
| 20730 | |
| 20731 | |
| 20732 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 20733 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 20734 | if test "${ac_cv_os_cray+set}" = set; then |
| 20735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20736 | else |
| 20737 | cat >conftest.$ac_ext <<_ACEOF |
| 20738 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20739 | /* confdefs.h. */ |
| 20740 | _ACEOF |
| 20741 | cat confdefs.h >>conftest.$ac_ext |
| 20742 | cat >>conftest.$ac_ext <<_ACEOF |
| 20743 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20744 | #if defined(CRAY) && ! defined(CRAY2) |
| 20745 | webecray |
| 20746 | #else |
| 20747 | wenotbecray |
| 20748 | #endif |
| 20749 | |
| 20750 | _ACEOF |
| 20751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20752 | $EGREP "webecray" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20753 | ac_cv_os_cray=yes |
| 20754 | else |
| 20755 | ac_cv_os_cray=no |
| 20756 | fi |
| 20757 | rm -f conftest* |
| 20758 | |
| 20759 | fi |
| 20760 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 20761 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 20762 | if test $ac_cv_os_cray = yes; then |
| 20763 | for ac_func in _getb67 GETB67 getb67; do |
| 20764 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20765 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 20767 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 20768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20769 | else |
| 20770 | cat >conftest.$ac_ext <<_ACEOF |
| 20771 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20772 | /* confdefs.h. */ |
| 20773 | _ACEOF |
| 20774 | cat confdefs.h >>conftest.$ac_ext |
| 20775 | cat >>conftest.$ac_ext <<_ACEOF |
| 20776 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20777 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20778 | which can conflict with char $ac_func (); below. |
| 20779 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20780 | <limits.h> exists even on freestanding compilers. */ |
| 20781 | #ifdef __STDC__ |
| 20782 | # include <limits.h> |
| 20783 | #else |
| 20784 | # include <assert.h> |
| 20785 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20786 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20787 | #ifdef __cplusplus |
| 20788 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20789 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20790 | #endif |
| 20791 | /* We use char because int might match the return type of a gcc2 |
| 20792 | builtin and then its argument prototype would still apply. */ |
| 20793 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20794 | /* The GNU C library defines this for functions which it implements |
| 20795 | to always fail with ENOSYS. Some functions are actually named |
| 20796 | something starting with __ and the normal name is an alias. */ |
| 20797 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 20798 | choke me |
| 20799 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20800 | char (*f) () = $ac_func; |
| 20801 | #endif |
| 20802 | #ifdef __cplusplus |
| 20803 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20804 | #endif |
| 20805 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20806 | int |
| 20807 | main () |
| 20808 | { |
| 20809 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20810 | ; |
| 20811 | return 0; |
| 20812 | } |
| 20813 | _ACEOF |
| 20814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20816 | (eval $ac_link) 2>&5 |
| 20817 | ac_status=$? |
| 20818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20819 | (exit $ac_status); } && |
| 20820 | { ac_try='test -s conftest$ac_exeext' |
| 20821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20822 | (eval $ac_try) 2>&5 |
| 20823 | ac_status=$? |
| 20824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20825 | (exit $ac_status); }; }; then |
| 20826 | eval "$as_ac_var=yes" |
| 20827 | else |
| 20828 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20830 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20831 | eval "$as_ac_var=no" |
| 20832 | fi |
| 20833 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 20834 | fi |
| 20835 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 20836 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 20837 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20838 | |
| 20839 | cat >>confdefs.h <<_ACEOF |
| 20840 | #define CRAY_STACKSEG_END $ac_func |
| 20841 | _ACEOF |
| 20842 | |
| 20843 | break |
| 20844 | fi |
| 20845 | |
| 20846 | done |
| 20847 | fi |
| 20848 | |
| 20849 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 20850 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 20851 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 20852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20853 | else |
| 20854 | if test "$cross_compiling" = yes; then |
| 20855 | ac_cv_c_stack_direction=0 |
| 20856 | else |
| 20857 | cat >conftest.$ac_ext <<_ACEOF |
| 20858 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20859 | /* confdefs.h. */ |
| 20860 | _ACEOF |
| 20861 | cat confdefs.h >>conftest.$ac_ext |
| 20862 | cat >>conftest.$ac_ext <<_ACEOF |
| 20863 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20864 | int |
| 20865 | find_stack_direction () |
| 20866 | { |
| 20867 | static char *addr = 0; |
| 20868 | auto char dummy; |
| 20869 | if (addr == 0) |
| 20870 | { |
| 20871 | addr = &dummy; |
| 20872 | return find_stack_direction (); |
| 20873 | } |
| 20874 | else |
| 20875 | return (&dummy > addr) ? 1 : -1; |
| 20876 | } |
| 20877 | |
| 20878 | int |
| 20879 | main () |
| 20880 | { |
| 20881 | exit (find_stack_direction () < 0); |
| 20882 | } |
| 20883 | _ACEOF |
| 20884 | rm -f conftest$ac_exeext |
| 20885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20886 | (eval $ac_link) 2>&5 |
| 20887 | ac_status=$? |
| 20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20891 | (eval $ac_try) 2>&5 |
| 20892 | ac_status=$? |
| 20893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20894 | (exit $ac_status); }; }; then |
| 20895 | ac_cv_c_stack_direction=1 |
| 20896 | else |
| 20897 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20898 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20901 | ( exit $ac_status ) |
| 20902 | ac_cv_c_stack_direction=-1 |
| 20903 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20904 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20905 | fi |
| 20906 | fi |
| 20907 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 20908 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 20909 | |
| 20910 | cat >>confdefs.h <<_ACEOF |
| 20911 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 20912 | _ACEOF |
| 20913 | |
| 20914 | |
| 20915 | fi |
| 20916 | |
| 20917 | if test $ac_cv_c_compiler_gnu = yes; then |
| 20918 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 20919 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 20920 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 20921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20922 | else |
| 20923 | ac_pattern="Autoconf.*'x'" |
| 20924 | cat >conftest.$ac_ext <<_ACEOF |
| 20925 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20926 | /* confdefs.h. */ |
| 20927 | _ACEOF |
| 20928 | cat confdefs.h >>conftest.$ac_ext |
| 20929 | cat >>conftest.$ac_ext <<_ACEOF |
| 20930 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20931 | #include <sgtty.h> |
| 20932 | Autoconf TIOCGETP |
| 20933 | _ACEOF |
| 20934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20935 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20936 | ac_cv_prog_gcc_traditional=yes |
| 20937 | else |
| 20938 | ac_cv_prog_gcc_traditional=no |
| 20939 | fi |
| 20940 | rm -f conftest* |
| 20941 | |
| 20942 | |
| 20943 | if test $ac_cv_prog_gcc_traditional = no; then |
| 20944 | cat >conftest.$ac_ext <<_ACEOF |
| 20945 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20946 | /* confdefs.h. */ |
| 20947 | _ACEOF |
| 20948 | cat confdefs.h >>conftest.$ac_ext |
| 20949 | cat >>conftest.$ac_ext <<_ACEOF |
| 20950 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20951 | #include <termio.h> |
| 20952 | Autoconf TCGETA |
| 20953 | _ACEOF |
| 20954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20955 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20956 | ac_cv_prog_gcc_traditional=yes |
| 20957 | fi |
| 20958 | rm -f conftest* |
| 20959 | |
| 20960 | fi |
| 20961 | fi |
| 20962 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 20963 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
| 20964 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 20965 | CC="$CC -traditional" |
| 20966 | fi |
| 20967 | fi |
| 20968 | |
| 20969 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 20970 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 20971 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 20972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20973 | else |
| 20974 | if test "$cross_compiling" = yes; then |
| 20975 | ac_cv_func_memcmp_working=no |
| 20976 | else |
| 20977 | cat >conftest.$ac_ext <<_ACEOF |
| 20978 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 20979 | /* confdefs.h. */ |
| 20980 | _ACEOF |
| 20981 | cat confdefs.h >>conftest.$ac_ext |
| 20982 | cat >>conftest.$ac_ext <<_ACEOF |
| 20983 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20984 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20985 | int |
| 20986 | main () |
| 20987 | { |
| 20988 | |
| 20989 | /* Some versions of memcmp are not 8-bit clean. */ |
| 20990 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 20991 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 20992 | exit (1); |
| 20993 | |
| 20994 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 20995 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 20996 | William Lewis provided this test program. */ |
| 20997 | { |
| 20998 | char foo[21]; |
| 20999 | char bar[21]; |
| 21000 | int i; |
| 21001 | for (i = 0; i < 4; i++) |
| 21002 | { |
| 21003 | char *a = foo + i; |
| 21004 | char *b = bar + i; |
| 21005 | strcpy (a, "--------01111111"); |
| 21006 | strcpy (b, "--------10000000"); |
| 21007 | if (memcmp (a, b, 16) >= 0) |
| 21008 | exit (1); |
| 21009 | } |
| 21010 | exit (0); |
| 21011 | } |
| 21012 | |
| 21013 | ; |
| 21014 | return 0; |
| 21015 | } |
| 21016 | _ACEOF |
| 21017 | rm -f conftest$ac_exeext |
| 21018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21019 | (eval $ac_link) 2>&5 |
| 21020 | ac_status=$? |
| 21021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21022 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21024 | (eval $ac_try) 2>&5 |
| 21025 | ac_status=$? |
| 21026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21027 | (exit $ac_status); }; }; then |
| 21028 | ac_cv_func_memcmp_working=yes |
| 21029 | else |
| 21030 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21031 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21033 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21034 | ( exit $ac_status ) |
| 21035 | ac_cv_func_memcmp_working=no |
| 21036 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21037 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21038 | fi |
| 21039 | fi |
| 21040 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 21041 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 21042 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 21043 | |
| 21044 | |
| 21045 | |
| 21046 | for ac_header in stdlib.h unistd.h |
| 21047 | do |
| 21048 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21050 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21054 | fi |
| 21055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21056 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21057 | else |
| 21058 | # Is the header compilable? |
| 21059 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21060 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21061 | cat >conftest.$ac_ext <<_ACEOF |
| 21062 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21063 | /* confdefs.h. */ |
| 21064 | _ACEOF |
| 21065 | cat confdefs.h >>conftest.$ac_ext |
| 21066 | cat >>conftest.$ac_ext <<_ACEOF |
| 21067 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21068 | $ac_includes_default |
| 21069 | #include <$ac_header> |
| 21070 | _ACEOF |
| 21071 | rm -f conftest.$ac_objext |
| 21072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21073 | (eval $ac_compile) 2>&5 |
| 21074 | ac_status=$? |
| 21075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21076 | (exit $ac_status); } && |
| 21077 | { ac_try='test -s conftest.$ac_objext' |
| 21078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21079 | (eval $ac_try) 2>&5 |
| 21080 | ac_status=$? |
| 21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21082 | (exit $ac_status); }; }; then |
| 21083 | ac_header_compiler=yes |
| 21084 | else |
| 21085 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21087 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21088 | ac_header_compiler=no |
| 21089 | fi |
| 21090 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21091 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21092 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21093 | |
| 21094 | # Is the header present? |
| 21095 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21096 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21097 | cat >conftest.$ac_ext <<_ACEOF |
| 21098 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21099 | /* confdefs.h. */ |
| 21100 | _ACEOF |
| 21101 | cat confdefs.h >>conftest.$ac_ext |
| 21102 | cat >>conftest.$ac_ext <<_ACEOF |
| 21103 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21104 | #include <$ac_header> |
| 21105 | _ACEOF |
| 21106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21108 | ac_status=$? |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21109 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21110 | rm -f conftest.er1 |
| 21111 | cat conftest.err >&5 |
| 21112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21113 | (exit $ac_status); } >/dev/null; then |
| 21114 | if test -s conftest.err; then |
| 21115 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21116 | else |
| 21117 | ac_cpp_err= |
| 21118 | fi |
| 21119 | else |
| 21120 | ac_cpp_err=yes |
| 21121 | fi |
| 21122 | if test -z "$ac_cpp_err"; then |
| 21123 | ac_header_preproc=yes |
| 21124 | else |
| 21125 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21127 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21128 | ac_header_preproc=no |
| 21129 | fi |
| 21130 | rm -f conftest.err conftest.$ac_ext |
| 21131 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21132 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21133 | |
| 21134 | # So? What about this header? |
| 21135 | case $ac_header_compiler:$ac_header_preproc in |
| 21136 | yes:no ) |
| 21137 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21138 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21139 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21140 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21141 | ( |
| 21142 | cat <<\_ASBOX |
| 21143 | ## ------------------------------------ ## |
| 21144 | ## Report this to bug-autoconf@gnu.org. ## |
| 21145 | ## ------------------------------------ ## |
| 21146 | _ASBOX |
| 21147 | ) | |
| 21148 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21149 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21150 | no:yes ) |
| 21151 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21152 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21153 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21154 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21155 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21156 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21157 | ( |
| 21158 | cat <<\_ASBOX |
| 21159 | ## ------------------------------------ ## |
| 21160 | ## Report this to bug-autoconf@gnu.org. ## |
| 21161 | ## ------------------------------------ ## |
| 21162 | _ASBOX |
| 21163 | ) | |
| 21164 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21165 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21166 | esac |
| 21167 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21171 | else |
| 21172 | eval "$as_ac_Header=$ac_header_preproc" |
| 21173 | fi |
| 21174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21176 | |
| 21177 | fi |
| 21178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21179 | cat >>confdefs.h <<_ACEOF |
| 21180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21181 | _ACEOF |
| 21182 | |
| 21183 | fi |
| 21184 | |
| 21185 | done |
| 21186 | |
| 21187 | |
| 21188 | for ac_func in getpagesize |
| 21189 | do |
| 21190 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21191 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21192 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 21193 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 21194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21195 | else |
| 21196 | cat >conftest.$ac_ext <<_ACEOF |
| 21197 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21198 | /* confdefs.h. */ |
| 21199 | _ACEOF |
| 21200 | cat confdefs.h >>conftest.$ac_ext |
| 21201 | cat >>conftest.$ac_ext <<_ACEOF |
| 21202 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21203 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21204 | which can conflict with char $ac_func (); below. |
| 21205 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21206 | <limits.h> exists even on freestanding compilers. */ |
| 21207 | #ifdef __STDC__ |
| 21208 | # include <limits.h> |
| 21209 | #else |
| 21210 | # include <assert.h> |
| 21211 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21212 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21213 | #ifdef __cplusplus |
| 21214 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21215 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21216 | #endif |
| 21217 | /* We use char because int might match the return type of a gcc2 |
| 21218 | builtin and then its argument prototype would still apply. */ |
| 21219 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21220 | /* The GNU C library defines this for functions which it implements |
| 21221 | to always fail with ENOSYS. Some functions are actually named |
| 21222 | something starting with __ and the normal name is an alias. */ |
| 21223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 21224 | choke me |
| 21225 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21226 | char (*f) () = $ac_func; |
| 21227 | #endif |
| 21228 | #ifdef __cplusplus |
| 21229 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21230 | #endif |
| 21231 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21232 | int |
| 21233 | main () |
| 21234 | { |
| 21235 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21236 | ; |
| 21237 | return 0; |
| 21238 | } |
| 21239 | _ACEOF |
| 21240 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21242 | (eval $ac_link) 2>&5 |
| 21243 | ac_status=$? |
| 21244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21245 | (exit $ac_status); } && |
| 21246 | { ac_try='test -s conftest$ac_exeext' |
| 21247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21248 | (eval $ac_try) 2>&5 |
| 21249 | ac_status=$? |
| 21250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21251 | (exit $ac_status); }; }; then |
| 21252 | eval "$as_ac_var=yes" |
| 21253 | else |
| 21254 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21256 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21257 | eval "$as_ac_var=no" |
| 21258 | fi |
| 21259 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21260 | fi |
| 21261 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 21262 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 21263 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21264 | cat >>confdefs.h <<_ACEOF |
| 21265 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21266 | _ACEOF |
| 21267 | |
| 21268 | fi |
| 21269 | done |
| 21270 | |
| 21271 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 21272 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 21273 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 21274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21275 | else |
| 21276 | if test "$cross_compiling" = yes; then |
| 21277 | ac_cv_func_mmap_fixed_mapped=no |
| 21278 | else |
| 21279 | cat >conftest.$ac_ext <<_ACEOF |
| 21280 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21281 | /* confdefs.h. */ |
| 21282 | _ACEOF |
| 21283 | cat confdefs.h >>conftest.$ac_ext |
| 21284 | cat >>conftest.$ac_ext <<_ACEOF |
| 21285 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21286 | $ac_includes_default |
| 21287 | /* malloc might have been renamed as rpl_malloc. */ |
| 21288 | #undef malloc |
| 21289 | |
| 21290 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 21291 | Here is a matrix of mmap possibilities: |
| 21292 | mmap private not fixed |
| 21293 | mmap private fixed at somewhere currently unmapped |
| 21294 | mmap private fixed at somewhere already mapped |
| 21295 | mmap shared not fixed |
| 21296 | mmap shared fixed at somewhere currently unmapped |
| 21297 | mmap shared fixed at somewhere already mapped |
| 21298 | For private mappings, we should verify that changes cannot be read() |
| 21299 | back from the file, nor mmap's back from the file at a different |
| 21300 | address. (There have been systems where private was not correctly |
| 21301 | implemented like the infamous i386 svr4.0, and systems where the |
| 21302 | VM page cache was not coherent with the file system buffer cache |
| 21303 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 21304 | For shared mappings, we should conversely verify that changes get |
| 21305 | propagated back to all the places they're supposed to be. |
| 21306 | |
| 21307 | Grep wants private fixed already mapped. |
| 21308 | The main things grep needs to know about mmap are: |
| 21309 | * does it exist and is it safe to write into the mmap'd area |
| 21310 | * how to use it (BSD variants) */ |
| 21311 | |
| 21312 | #include <fcntl.h> |
| 21313 | #include <sys/mman.h> |
| 21314 | |
| 21315 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 21316 | char *malloc (); |
| 21317 | #endif |
| 21318 | |
| 21319 | /* This mess was copied from the GNU getpagesize.h. */ |
| 21320 | #if !HAVE_GETPAGESIZE |
| 21321 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 21322 | # if !HAVE_SYS_PARAM_H |
| 21323 | # define HAVE_SYS_PARAM_H 1 |
| 21324 | # endif |
| 21325 | |
| 21326 | # ifdef _SC_PAGESIZE |
| 21327 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 21328 | # else /* no _SC_PAGESIZE */ |
| 21329 | # if HAVE_SYS_PARAM_H |
| 21330 | # include <sys/param.h> |
| 21331 | # ifdef EXEC_PAGESIZE |
| 21332 | # define getpagesize() EXEC_PAGESIZE |
| 21333 | # else /* no EXEC_PAGESIZE */ |
| 21334 | # ifdef NBPG |
| 21335 | # define getpagesize() NBPG * CLSIZE |
| 21336 | # ifndef CLSIZE |
| 21337 | # define CLSIZE 1 |
| 21338 | # endif /* no CLSIZE */ |
| 21339 | # else /* no NBPG */ |
| 21340 | # ifdef NBPC |
| 21341 | # define getpagesize() NBPC |
| 21342 | # else /* no NBPC */ |
| 21343 | # ifdef PAGESIZE |
| 21344 | # define getpagesize() PAGESIZE |
| 21345 | # endif /* PAGESIZE */ |
| 21346 | # endif /* no NBPC */ |
| 21347 | # endif /* no NBPG */ |
| 21348 | # endif /* no EXEC_PAGESIZE */ |
| 21349 | # else /* no HAVE_SYS_PARAM_H */ |
| 21350 | # define getpagesize() 8192 /* punt totally */ |
| 21351 | # endif /* no HAVE_SYS_PARAM_H */ |
| 21352 | # endif /* no _SC_PAGESIZE */ |
| 21353 | |
| 21354 | #endif /* no HAVE_GETPAGESIZE */ |
| 21355 | |
| 21356 | int |
| 21357 | main () |
| 21358 | { |
| 21359 | char *data, *data2, *data3; |
| 21360 | int i, pagesize; |
| 21361 | int fd; |
| 21362 | |
| 21363 | pagesize = getpagesize (); |
| 21364 | |
| 21365 | /* First, make a file with some known garbage in it. */ |
| 21366 | data = (char *) malloc (pagesize); |
| 21367 | if (!data) |
| 21368 | exit (1); |
| 21369 | for (i = 0; i < pagesize; ++i) |
| 21370 | *(data + i) = rand (); |
| 21371 | umask (0); |
| 21372 | fd = creat ("conftest.mmap", 0600); |
| 21373 | if (fd < 0) |
| 21374 | exit (1); |
| 21375 | if (write (fd, data, pagesize) != pagesize) |
| 21376 | exit (1); |
| 21377 | close (fd); |
| 21378 | |
| 21379 | /* Next, try to mmap the file at a fixed address which already has |
| 21380 | something else allocated at it. If we can, also make sure that |
| 21381 | we see the same garbage. */ |
| 21382 | fd = open ("conftest.mmap", O_RDWR); |
| 21383 | if (fd < 0) |
| 21384 | exit (1); |
| 21385 | data2 = (char *) malloc (2 * pagesize); |
| 21386 | if (!data2) |
| 21387 | exit (1); |
| 21388 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 21389 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 21390 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 21391 | exit (1); |
| 21392 | for (i = 0; i < pagesize; ++i) |
| 21393 | if (*(data + i) != *(data2 + i)) |
| 21394 | exit (1); |
| 21395 | |
| 21396 | /* Finally, make sure that changes to the mapped area do not |
| 21397 | percolate back to the file as seen by read(). (This is a bug on |
| 21398 | some variants of i386 svr4.0.) */ |
| 21399 | for (i = 0; i < pagesize; ++i) |
| 21400 | *(data2 + i) = *(data2 + i) + 1; |
| 21401 | data3 = (char *) malloc (pagesize); |
| 21402 | if (!data3) |
| 21403 | exit (1); |
| 21404 | if (read (fd, data3, pagesize) != pagesize) |
| 21405 | exit (1); |
| 21406 | for (i = 0; i < pagesize; ++i) |
| 21407 | if (*(data + i) != *(data3 + i)) |
| 21408 | exit (1); |
| 21409 | close (fd); |
| 21410 | exit (0); |
| 21411 | } |
| 21412 | _ACEOF |
| 21413 | rm -f conftest$ac_exeext |
| 21414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21415 | (eval $ac_link) 2>&5 |
| 21416 | ac_status=$? |
| 21417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21418 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21420 | (eval $ac_try) 2>&5 |
| 21421 | ac_status=$? |
| 21422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21423 | (exit $ac_status); }; }; then |
| 21424 | ac_cv_func_mmap_fixed_mapped=yes |
| 21425 | else |
| 21426 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21427 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21429 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21430 | ( exit $ac_status ) |
| 21431 | ac_cv_func_mmap_fixed_mapped=no |
| 21432 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21433 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21434 | fi |
| 21435 | fi |
| 21436 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 21437 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 21438 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 21439 | |
| 21440 | cat >>confdefs.h <<\_ACEOF |
| 21441 | #define HAVE_MMAP 1 |
| 21442 | _ACEOF |
| 21443 | |
| 21444 | fi |
| 21445 | rm -f conftest.mmap |
| 21446 | |
| 21447 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 21448 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 21449 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 21450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21451 | else |
| 21452 | |
| 21453 | |
| 21454 | ac_ext=c |
| 21455 | ac_cpp='$CPP $CPPFLAGS' |
| 21456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21459 | |
| 21460 | if test "$cross_compiling" = yes; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21461 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 21462 | See \`config.log' for more details." >&5 |
| 21463 | echo "$as_me: error: cannot run test program while cross compiling |
| 21464 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21465 | { (exit 1); exit 1; }; } |
| 21466 | else |
| 21467 | cat >conftest.$ac_ext <<_ACEOF |
| 21468 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21469 | /* confdefs.h. */ |
| 21470 | _ACEOF |
| 21471 | cat confdefs.h >>conftest.$ac_ext |
| 21472 | cat >>conftest.$ac_ext <<_ACEOF |
| 21473 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21474 | |
| 21475 | #ifdef HAVE_SYS_MMAN_H |
| 21476 | #include <sys/mman.h> |
| 21477 | #endif |
| 21478 | |
| 21479 | #ifdef HAVE_SYS_TYPES_H |
| 21480 | #include <sys/types.h> |
| 21481 | #endif |
| 21482 | |
| 21483 | #ifdef HAVE_FCNTL_H |
| 21484 | #include <fcntl.h> |
| 21485 | #endif |
| 21486 | |
| 21487 | int fd; |
| 21488 | int main () { |
| 21489 | fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);} |
| 21490 | _ACEOF |
| 21491 | rm -f conftest$ac_exeext |
| 21492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21493 | (eval $ac_link) 2>&5 |
| 21494 | ac_status=$? |
| 21495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21498 | (eval $ac_try) 2>&5 |
| 21499 | ac_status=$? |
| 21500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21501 | (exit $ac_status); }; }; then |
| 21502 | ac_cv_func_mmap_file=yes |
| 21503 | else |
| 21504 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21505 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21507 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21508 | ( exit $ac_status ) |
| 21509 | ac_cv_func_mmap_file=no |
| 21510 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21511 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21512 | fi |
| 21513 | ac_ext=c |
| 21514 | ac_cpp='$CPP $CPPFLAGS' |
| 21515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21518 | |
| 21519 | |
| 21520 | fi |
| 21521 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 21522 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 21523 | if test "$ac_cv_func_mmap_file" = yes; then |
| 21524 | cat >>confdefs.h <<\_ACEOF |
| 21525 | #define HAVE_MMAP_FILE 1 |
| 21526 | _ACEOF |
| 21527 | |
| 21528 | MMAP_FILE=yes |
| 21529 | |
| 21530 | fi |
| 21531 | |
| 21532 | if test ${ac_cv_func_mmap_file} = "no" |
| 21533 | then |
| 21534 | { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5 |
| 21535 | echo "$as_me: error: mmap() of files required but not found" >&2;} |
| 21536 | { (exit 1); exit 1; }; } |
| 21537 | fi |
| 21538 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 21539 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 21540 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 21541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21542 | else |
| 21543 | |
| 21544 | |
| 21545 | ac_ext=c |
| 21546 | ac_cpp='$CPP $CPPFLAGS' |
| 21547 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21548 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21549 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21550 | |
| 21551 | cat >conftest.$ac_ext <<_ACEOF |
| 21552 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21553 | /* confdefs.h. */ |
| 21554 | _ACEOF |
| 21555 | cat confdefs.h >>conftest.$ac_ext |
| 21556 | cat >>conftest.$ac_ext <<_ACEOF |
| 21557 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21558 | #include <sys/mman.h> |
| 21559 | #include <unistd.h> |
| 21560 | #include <fcntl.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21561 | int |
| 21562 | main () |
| 21563 | { |
| 21564 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 21565 | ; |
| 21566 | return 0; |
| 21567 | } |
| 21568 | _ACEOF |
| 21569 | rm -f conftest.$ac_objext |
| 21570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21571 | (eval $ac_compile) 2>&5 |
| 21572 | ac_status=$? |
| 21573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21574 | (exit $ac_status); } && |
| 21575 | { ac_try='test -s conftest.$ac_objext' |
| 21576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21577 | (eval $ac_try) 2>&5 |
| 21578 | ac_status=$? |
| 21579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21580 | (exit $ac_status); }; }; then |
| 21581 | ac_cv_header_mmap_anon=yes |
| 21582 | else |
| 21583 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21585 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21586 | ac_cv_header_mmap_anon=no |
| 21587 | fi |
| 21588 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21589 | ac_ext=c |
| 21590 | ac_cpp='$CPP $CPPFLAGS' |
| 21591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21594 | |
| 21595 | |
| 21596 | fi |
| 21597 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 21598 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 21599 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 21600 | cat >>confdefs.h <<\_ACEOF |
| 21601 | #define HAVE_MMAP_ANONYMOUS 1 |
| 21602 | _ACEOF |
| 21603 | |
| 21604 | fi |
| 21605 | |
| 21606 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 21607 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 21608 | if test "${ac_cv_type_signal+set}" = set; then |
| 21609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21610 | else |
| 21611 | cat >conftest.$ac_ext <<_ACEOF |
| 21612 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21613 | /* confdefs.h. */ |
| 21614 | _ACEOF |
| 21615 | cat confdefs.h >>conftest.$ac_ext |
| 21616 | cat >>conftest.$ac_ext <<_ACEOF |
| 21617 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21618 | #include <sys/types.h> |
| 21619 | #include <signal.h> |
| 21620 | #ifdef signal |
| 21621 | # undef signal |
| 21622 | #endif |
| 21623 | #ifdef __cplusplus |
| 21624 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 21625 | #else |
| 21626 | void (*signal ()) (); |
| 21627 | #endif |
| 21628 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21629 | int |
| 21630 | main () |
| 21631 | { |
| 21632 | int i; |
| 21633 | ; |
| 21634 | return 0; |
| 21635 | } |
| 21636 | _ACEOF |
| 21637 | rm -f conftest.$ac_objext |
| 21638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21639 | (eval $ac_compile) 2>&5 |
| 21640 | ac_status=$? |
| 21641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21642 | (exit $ac_status); } && |
| 21643 | { ac_try='test -s conftest.$ac_objext' |
| 21644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21645 | (eval $ac_try) 2>&5 |
| 21646 | ac_status=$? |
| 21647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21648 | (exit $ac_status); }; }; then |
| 21649 | ac_cv_type_signal=void |
| 21650 | else |
| 21651 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21653 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21654 | ac_cv_type_signal=int |
| 21655 | fi |
| 21656 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21657 | fi |
| 21658 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 21659 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 21660 | |
| 21661 | cat >>confdefs.h <<_ACEOF |
| 21662 | #define RETSIGTYPE $ac_cv_type_signal |
| 21663 | _ACEOF |
| 21664 | |
| 21665 | |
| 21666 | |
| 21667 | |
| 21668 | |
| 21669 | |
| 21670 | |
| 21671 | |
| 21672 | |
| 21673 | |
| 21674 | |
| 21675 | for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol |
| 21676 | do |
| 21677 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21678 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21679 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 21680 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 21681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21682 | else |
| 21683 | cat >conftest.$ac_ext <<_ACEOF |
| 21684 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21685 | /* confdefs.h. */ |
| 21686 | _ACEOF |
| 21687 | cat confdefs.h >>conftest.$ac_ext |
| 21688 | cat >>conftest.$ac_ext <<_ACEOF |
| 21689 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21690 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21691 | which can conflict with char $ac_func (); below. |
| 21692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21693 | <limits.h> exists even on freestanding compilers. */ |
| 21694 | #ifdef __STDC__ |
| 21695 | # include <limits.h> |
| 21696 | #else |
| 21697 | # include <assert.h> |
| 21698 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21699 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21700 | #ifdef __cplusplus |
| 21701 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21702 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21703 | #endif |
| 21704 | /* We use char because int might match the return type of a gcc2 |
| 21705 | builtin and then its argument prototype would still apply. */ |
| 21706 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21707 | /* The GNU C library defines this for functions which it implements |
| 21708 | to always fail with ENOSYS. Some functions are actually named |
| 21709 | something starting with __ and the normal name is an alias. */ |
| 21710 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 21711 | choke me |
| 21712 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21713 | char (*f) () = $ac_func; |
| 21714 | #endif |
| 21715 | #ifdef __cplusplus |
| 21716 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21717 | #endif |
| 21718 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21719 | int |
| 21720 | main () |
| 21721 | { |
| 21722 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21723 | ; |
| 21724 | return 0; |
| 21725 | } |
| 21726 | _ACEOF |
| 21727 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21729 | (eval $ac_link) 2>&5 |
| 21730 | ac_status=$? |
| 21731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21732 | (exit $ac_status); } && |
| 21733 | { ac_try='test -s conftest$ac_exeext' |
| 21734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21735 | (eval $ac_try) 2>&5 |
| 21736 | ac_status=$? |
| 21737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21738 | (exit $ac_status); }; }; then |
| 21739 | eval "$as_ac_var=yes" |
| 21740 | else |
| 21741 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21743 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21744 | eval "$as_ac_var=no" |
| 21745 | fi |
| 21746 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21747 | fi |
| 21748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 21749 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 21750 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21751 | cat >>confdefs.h <<_ACEOF |
| 21752 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21753 | _ACEOF |
| 21754 | |
| 21755 | fi |
| 21756 | done |
| 21757 | |
| 21758 | |
| 21759 | |
| 21760 | echo "$as_me:$LINENO: checking for mmap" >&5 |
| 21761 | echo $ECHO_N "checking for mmap... $ECHO_C" >&6 |
| 21762 | if test "${ac_cv_func_mmap+set}" = set; then |
| 21763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21764 | else |
| 21765 | cat >conftest.$ac_ext <<_ACEOF |
| 21766 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21767 | /* confdefs.h. */ |
| 21768 | _ACEOF |
| 21769 | cat confdefs.h >>conftest.$ac_ext |
| 21770 | cat >>conftest.$ac_ext <<_ACEOF |
| 21771 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21772 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21773 | which can conflict with char mmap (); below. |
| 21774 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21775 | <limits.h> exists even on freestanding compilers. */ |
| 21776 | #ifdef __STDC__ |
| 21777 | # include <limits.h> |
| 21778 | #else |
| 21779 | # include <assert.h> |
| 21780 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21781 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21782 | #ifdef __cplusplus |
| 21783 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21784 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21785 | #endif |
| 21786 | /* We use char because int might match the return type of a gcc2 |
| 21787 | builtin and then its argument prototype would still apply. */ |
| 21788 | char mmap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21789 | /* The GNU C library defines this for functions which it implements |
| 21790 | to always fail with ENOSYS. Some functions are actually named |
| 21791 | something starting with __ and the normal name is an alias. */ |
| 21792 | #if defined (__stub_mmap) || defined (__stub___mmap) |
| 21793 | choke me |
| 21794 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21795 | char (*f) () = mmap; |
| 21796 | #endif |
| 21797 | #ifdef __cplusplus |
| 21798 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21799 | #endif |
| 21800 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21801 | int |
| 21802 | main () |
| 21803 | { |
| 21804 | return f != mmap; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21805 | ; |
| 21806 | return 0; |
| 21807 | } |
| 21808 | _ACEOF |
| 21809 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21811 | (eval $ac_link) 2>&5 |
| 21812 | ac_status=$? |
| 21813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21814 | (exit $ac_status); } && |
| 21815 | { ac_try='test -s conftest$ac_exeext' |
| 21816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21817 | (eval $ac_try) 2>&5 |
| 21818 | ac_status=$? |
| 21819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21820 | (exit $ac_status); }; }; then |
| 21821 | ac_cv_func_mmap=yes |
| 21822 | else |
| 21823 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21825 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21826 | ac_cv_func_mmap=no |
| 21827 | fi |
| 21828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21829 | fi |
| 21830 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5 |
| 21831 | echo "${ECHO_T}$ac_cv_func_mmap" >&6 |
| 21832 | if test $ac_cv_func_mmap = yes; then |
| 21833 | : |
| 21834 | else |
| 21835 | { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5 |
| 21836 | echo "$as_me: error: Function mmap() required but not found" >&2;} |
| 21837 | { (exit 1); exit 1; }; } |
| 21838 | fi |
| 21839 | |
| 21840 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 21841 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 21842 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 21843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21844 | else |
| 21845 | cat >conftest.$ac_ext <<_ACEOF |
| 21846 | #line $LINENO "configure" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21847 | /* confdefs.h. */ |
| 21848 | _ACEOF |
| 21849 | cat confdefs.h >>conftest.$ac_ext |
| 21850 | cat >>conftest.$ac_ext <<_ACEOF |
| 21851 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21852 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21853 | which can conflict with char mprotect (); below. |
| 21854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21855 | <limits.h> exists even on freestanding compilers. */ |
| 21856 | #ifdef __STDC__ |
| 21857 | # include <limits.h> |
| 21858 | #else |
| 21859 | # include <assert.h> |
| 21860 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21861 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21862 | #ifdef __cplusplus |
| 21863 | extern "C" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21864 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21865 | #endif |
| 21866 | /* We use char because int might match the return type of a gcc2 |
| 21867 | builtin and then its argument prototype would still apply. */ |
| 21868 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21869 | /* The GNU C library defines this for functions which it implements |
| 21870 | to always fail with ENOSYS. Some functions are actually named |
| 21871 | something starting with __ and the normal name is an alias. */ |
| 21872 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 21873 | choke me |
| 21874 | #else |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21875 | char (*f) () = mprotect; |
| 21876 | #endif |
| 21877 | #ifdef __cplusplus |
| 21878 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21879 | #endif |
| 21880 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21881 | int |
| 21882 | main () |
| 21883 | { |
| 21884 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21885 | ; |
| 21886 | return 0; |
| 21887 | } |
| 21888 | _ACEOF |
| 21889 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21891 | (eval $ac_link) 2>&5 |
| 21892 | ac_status=$? |
| 21893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21894 | (exit $ac_status); } && |
| 21895 | { ac_try='test -s conftest$ac_exeext' |
| 21896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21897 | (eval $ac_try) 2>&5 |
| 21898 | ac_status=$? |
| 21899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21900 | (exit $ac_status); }; }; then |
| 21901 | ac_cv_func_mprotect=yes |
| 21902 | else |
| 21903 | echo "$as_me: failed program was:" >&5 |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 21904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21905 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21906 | ac_cv_func_mprotect=no |
| 21907 | fi |
| 21908 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21909 | fi |
| 21910 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 21911 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 21912 | if test $ac_cv_func_mprotect = yes; then |
| 21913 | : |
| 21914 | else |
| 21915 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 21916 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 21917 | { (exit 1); exit 1; }; } |
| 21918 | fi |
| 21919 | |
| 21920 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21921 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21922 | # Check whether --enable-purify or --disable-purify was given. |
| 21923 | if test "${enable_purify+set}" = set; then |
| 21924 | enableval="$enable_purify" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21925 | |
| 21926 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21927 | enableval="no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21928 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21929 | if test ${enableval} = "no" |
| 21930 | then |
| 21931 | ENABLE_PURIFY= |
| 21932 | |
| 21933 | else |
| 21934 | ENABLE_PURIFY=ENABLE_PURIFY=1 |
| 21935 | |
| 21936 | fi |
| 21937 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21938 | # Check whether --enable-optimized or --disable-optimized was given. |
| 21939 | if test "${enable_optimized+set}" = set; then |
| 21940 | enableval="$enable_optimized" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21941 | |
| 21942 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21943 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21944 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21945 | if test ${enableval} = "no" |
| 21946 | then |
| 21947 | ENABLE_OPTIMIZED= |
| 21948 | |
| 21949 | else |
| 21950 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 21951 | |
| 21952 | fi |
| 21953 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21954 | # Check whether --enable-spec or --disable-spec was given. |
| 21955 | if test "${enable_spec+set}" = set; then |
| 21956 | enableval="$enable_spec" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21957 | |
| 21958 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21959 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21960 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21961 | if test ${enableval} = "no" |
| 21962 | then |
| 21963 | USE_SPEC= |
| 21964 | |
| 21965 | else |
| 21966 | USE_SPEC=USE_SPEC=1 |
| 21967 | |
| 21968 | fi |
| 21969 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21970 | # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given. |
| 21971 | if test "${enable_precompiled_bytecode+set}" = set; then |
| 21972 | enableval="$enable_precompiled_bytecode" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21973 | |
| 21974 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21975 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21976 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21977 | if test ${enableval} = "no" |
| 21978 | then |
| 21979 | UPB= |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21980 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21981 | else |
| 21982 | UPB=USE_PRECOMPILED_BYTECODE=1 |
| 21983 | |
| 21984 | fi |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21985 | |
| 21986 | |
| 21987 | # Check whether --enable-llc_diffs or --disable-llc_diffs was given. |
| 21988 | if test "${enable_llc_diffs+set}" = set; then |
| 21989 | enableval="$enable_llc_diffs" |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21990 | |
| 21991 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21992 | enableval=yes |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21993 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21994 | if test ${enableval} = "no" |
| 21995 | then |
| 21996 | DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21997 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21998 | else |
| 21999 | DISABLE_LLC_DIFFS= |
| 22000 | |
| 22001 | fi |
| 22002 | |
| 22003 | # Check whether --enable-jit or --disable-jit was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22004 | if test "${enable_jit+set}" = set; then |
| 22005 | enableval="$enable_jit" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22006 | |
| 22007 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22008 | enableval=default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22009 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22010 | |
| 22011 | if test ${enableval} = "no" |
| 22012 | then |
| 22013 | JIT= |
| 22014 | |
| 22015 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22016 | case $target in |
| 22017 | *i*86*) |
| 22018 | JIT=TARGET_HAS_JIT=1 |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22019 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22020 | ;; |
| 22021 | *sparc*) |
| 22022 | JIT=TARGET_HAS_JIT=1 |
| 22023 | |
| 22024 | ;; |
| 22025 | *) |
| 22026 | JIT= |
| 22027 | |
| 22028 | ;; |
| 22029 | esac |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22030 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22031 | |
| 22032 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22033 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22034 | # Check whether --with-spec or --without-spec was given. |
| 22035 | if test "${with_spec+set}" = set; then |
| 22036 | withval="$with_spec" |
| 22037 | SPEC_ROOT=$withval |
| 22038 | |
| 22039 | else |
| 22040 | SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec |
| 22041 | |
| 22042 | fi; |
| 22043 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22044 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22045 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 22046 | if test "${with_llvmgccdir+set}" = set; then |
| 22047 | withval="$with_llvmgccdir" |
| 22048 | LLVMGCCDIR=$withval |
| 22049 | |
| 22050 | fi; |
| 22051 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22052 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22053 | # Check whether --with-bcrepos or --without-bcrepos was given. |
| 22054 | if test "${with_bcrepos+set}" = set; then |
| 22055 | withval="$with_bcrepos" |
| 22056 | BCR=$withval |
| 22057 | |
| 22058 | else |
| 22059 | BCR=/home/vadve/lattner/LLVMPrograms |
| 22060 | |
| 22061 | fi; |
| 22062 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22063 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22064 | # Check whether --with-papi or --without-papi was given. |
| 22065 | if test "${with_papi+set}" = set; then |
| 22066 | withval="$with_papi" |
| 22067 | PAPIDIR=$withval |
| 22068 | |
| 22069 | else |
| 22070 | PAPIDIR=/home/vadve/shared/papi-2.3.4.1 |
| 22071 | |
| 22072 | fi; |
| 22073 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22074 | |
| 22075 | # Check whether --with-purify or --without-purify was given. |
| 22076 | if test "${with_purify+set}" = set; then |
| 22077 | withval="$with_purify" |
| 22078 | PURIFY=$withval |
| 22079 | |
| 22080 | fi; |
| 22081 | |
John Criswell | 54ac8b1 | 2003-07-31 16:45:37 +0000 | [diff] [blame] | 22082 | if test ${USER} |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22083 | then |
John Criswell | 54ac8b1 | 2003-07-31 16:45:37 +0000 | [diff] [blame] | 22084 | if test -d /localhome/${USER} |
| 22085 | then |
| 22086 | OBJROOT=/localhome/${USER} |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22087 | |
John Criswell | 54ac8b1 | 2003-07-31 16:45:37 +0000 | [diff] [blame] | 22088 | else |
| 22089 | OBJROOT=. |
| 22090 | |
| 22091 | fi |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22092 | else |
| 22093 | OBJROOT=. |
| 22094 | |
| 22095 | fi |
| 22096 | |
| 22097 | |
| 22098 | # Check whether --with-objroot or --without-objroot was given. |
| 22099 | if test "${with_objroot+set}" = set; then |
| 22100 | withval="$with_objroot" |
| 22101 | OBJROOT=$withval |
| 22102 | |
| 22103 | fi; |
| 22104 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22105 | ac_config_files="$ac_config_files Makefile.config" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22106 | cat >confcache <<\_ACEOF |
| 22107 | # This file is a shell script that caches the results of configure |
| 22108 | # tests run on this system so they can be shared between configure |
| 22109 | # scripts and configure runs, see configure's option --config-cache. |
| 22110 | # It is not useful on other systems. If it contains results you don't |
| 22111 | # want to keep, you may remove or edit it. |
| 22112 | # |
| 22113 | # config.status only pays attention to the cache file if you give it |
| 22114 | # the --recheck option to rerun configure. |
| 22115 | # |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22116 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22117 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22118 | # following values. |
| 22119 | |
| 22120 | _ACEOF |
| 22121 | |
| 22122 | # The following way of writing the cache mishandles newlines in values, |
| 22123 | # but we know of no workaround that is simple, portable, and efficient. |
| 22124 | # So, don't put newlines in cache variables' values. |
| 22125 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22126 | # and sets the high bit in the cache file unless we assign to the vars. |
| 22127 | { |
| 22128 | (set) 2>&1 | |
| 22129 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 22130 | *ac_space=\ *) |
| 22131 | # `set' does not quote correctly, so add quotes (double-quote |
| 22132 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 22133 | sed -n \ |
| 22134 | "s/'/'\\\\''/g; |
| 22135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 22136 | ;; |
| 22137 | *) |
| 22138 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 22139 | sed -n \ |
| 22140 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 22141 | ;; |
| 22142 | esac; |
| 22143 | } | |
| 22144 | sed ' |
| 22145 | t clear |
| 22146 | : clear |
| 22147 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22148 | t end |
| 22149 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22150 | : end' >>confcache |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22151 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22152 | if test -w $cache_file; then |
| 22153 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 22154 | cat confcache >$cache_file |
| 22155 | else |
| 22156 | echo "not updating unwritable cache $cache_file" |
| 22157 | fi |
| 22158 | fi |
| 22159 | rm -f confcache |
| 22160 | |
| 22161 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22162 | # Let make expand exec_prefix. |
| 22163 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 22164 | |
| 22165 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22166 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22167 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22168 | # (actually we leave an empty line to preserve line numbers). |
| 22169 | if test "x$srcdir" = x.; then |
| 22170 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22171 | s/:*\$(srcdir):*/:/; |
| 22172 | s/:*\${srcdir}:*/:/; |
| 22173 | s/:*@srcdir@:*/:/; |
| 22174 | s/^\([^=]*=[ ]*\):*/\1/; |
| 22175 | s/:*$//; |
| 22176 | s/^[^=]*=[ ]*$//; |
| 22177 | }' |
| 22178 | fi |
| 22179 | |
| 22180 | DEFS=-DHAVE_CONFIG_H |
| 22181 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22182 | ac_libobjs= |
| 22183 | ac_ltlibobjs= |
| 22184 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22185 | # 1. Remove the extension, and $U if already installed. |
| 22186 | ac_i=`echo "$ac_i" | |
| 22187 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 22188 | # 2. Add them. |
| 22189 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 22190 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 22191 | done |
| 22192 | LIBOBJS=$ac_libobjs |
| 22193 | |
| 22194 | LTLIBOBJS=$ac_ltlibobjs |
| 22195 | |
| 22196 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22197 | |
| 22198 | : ${CONFIG_STATUS=./config.status} |
| 22199 | ac_clean_files_save=$ac_clean_files |
| 22200 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 22201 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22202 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22203 | cat >$CONFIG_STATUS <<_ACEOF |
| 22204 | #! $SHELL |
| 22205 | # Generated by $as_me. |
| 22206 | # Run this file to recreate the current configuration. |
| 22207 | # Compiler output produced by configure, useful for debugging |
| 22208 | # configure, is in config.log if it exists. |
| 22209 | |
| 22210 | debug=false |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22211 | ac_cs_recheck=false |
| 22212 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22213 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 22214 | _ACEOF |
| 22215 | |
| 22216 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22217 | ## --------------------- ## |
| 22218 | ## M4sh Initialization. ## |
| 22219 | ## --------------------- ## |
| 22220 | |
| 22221 | # Be Bourne compatible |
| 22222 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 22223 | emulate sh |
| 22224 | NULLCMD=: |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22225 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22226 | # is contrary to our usage. Disable this feature. |
| 22227 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22228 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22229 | set -o posix |
| 22230 | fi |
| 22231 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22232 | # Support unset when possible. |
| 22233 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 22234 | as_unset=unset |
| 22235 | else |
| 22236 | as_unset=false |
| 22237 | fi |
| 22238 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22239 | |
| 22240 | # Work around bugs in pre-3.0 UWIN ksh. |
| 22241 | $as_unset ENV MAIL MAILPATH |
| 22242 | PS1='$ ' |
| 22243 | PS2='> ' |
| 22244 | PS4='+ ' |
| 22245 | |
| 22246 | # NLS nuisances. |
| 22247 | for as_var in \ |
| 22248 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22249 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22250 | LC_TELEPHONE LC_TIME |
| 22251 | do |
| 22252 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 22253 | eval $as_var=C; export $as_var |
| 22254 | else |
| 22255 | $as_unset $as_var |
| 22256 | fi |
| 22257 | done |
| 22258 | |
| 22259 | # Required to use basename. |
| 22260 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22261 | as_expr=expr |
| 22262 | else |
| 22263 | as_expr=false |
| 22264 | fi |
| 22265 | |
| 22266 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 22267 | as_basename=basename |
| 22268 | else |
| 22269 | as_basename=false |
| 22270 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22271 | |
| 22272 | |
| 22273 | # Name of the executable. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22274 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22275 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22276 | X"$0" : 'X\(//\)$' \| \ |
| 22277 | X"$0" : 'X\(/\)$' \| \ |
| 22278 | . : '\(.\)' 2>/dev/null || |
| 22279 | echo X/"$0" | |
| 22280 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 22281 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 22282 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 22283 | s/.*/./; q'` |
| 22284 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22285 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22286 | # PATH needs CR, and LINENO needs CR and PATH. |
| 22287 | # Avoid depending upon Character Ranges. |
| 22288 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22289 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22290 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22291 | as_cr_digits='0123456789' |
| 22292 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22293 | |
| 22294 | # The user is always right. |
| 22295 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22296 | echo "#! /bin/sh" >conf$$.sh |
| 22297 | echo "exit 0" >>conf$$.sh |
| 22298 | chmod +x conf$$.sh |
| 22299 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22300 | PATH_SEPARATOR=';' |
| 22301 | else |
| 22302 | PATH_SEPARATOR=: |
| 22303 | fi |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22304 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22305 | fi |
| 22306 | |
| 22307 | |
| 22308 | as_lineno_1=$LINENO |
| 22309 | as_lineno_2=$LINENO |
| 22310 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22311 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22312 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 22313 | # Find who we are. Look in the path if we contain no path at all |
| 22314 | # relative or not. |
| 22315 | case $0 in |
| 22316 | *[\\/]* ) as_myself=$0 ;; |
| 22317 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22318 | for as_dir in $PATH |
| 22319 | do |
| 22320 | IFS=$as_save_IFS |
| 22321 | test -z "$as_dir" && as_dir=. |
| 22322 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22323 | done |
| 22324 | |
| 22325 | ;; |
| 22326 | esac |
| 22327 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22328 | # in which case we are not to be found in the path. |
| 22329 | if test "x$as_myself" = x; then |
| 22330 | as_myself=$0 |
| 22331 | fi |
| 22332 | if test ! -f "$as_myself"; then |
| 22333 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 22334 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 22335 | { (exit 1); exit 1; }; } |
| 22336 | fi |
| 22337 | case $CONFIG_SHELL in |
| 22338 | '') |
| 22339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22340 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 22341 | do |
| 22342 | IFS=$as_save_IFS |
| 22343 | test -z "$as_dir" && as_dir=. |
| 22344 | for as_base in sh bash ksh sh5; do |
| 22345 | case $as_dir in |
| 22346 | /*) |
| 22347 | if ("$as_dir/$as_base" -c ' |
| 22348 | as_lineno_1=$LINENO |
| 22349 | as_lineno_2=$LINENO |
| 22350 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22352 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22353 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 22354 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22355 | CONFIG_SHELL=$as_dir/$as_base |
| 22356 | export CONFIG_SHELL |
| 22357 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 22358 | fi;; |
| 22359 | esac |
| 22360 | done |
| 22361 | done |
| 22362 | ;; |
| 22363 | esac |
| 22364 | |
| 22365 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 22366 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 22367 | # line-number line before each line; the second 'sed' does the real |
| 22368 | # work. The second script uses 'N' to pair each line-number line |
| 22369 | # with the numbered line, and appends trailing '-' during |
| 22370 | # substitution so that $LINENO is not a special case at line end. |
| 22371 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 22372 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 22373 | sed '=' <$as_myself | |
| 22374 | sed ' |
| 22375 | N |
| 22376 | s,$,-, |
| 22377 | : loop |
| 22378 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 22379 | t loop |
| 22380 | s,-$,, |
| 22381 | s,^['$as_cr_digits']*\n,, |
| 22382 | ' >$as_me.lineno && |
| 22383 | chmod +x $as_me.lineno || |
| 22384 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 22385 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 22386 | { (exit 1); exit 1; }; } |
| 22387 | |
| 22388 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 22389 | # (the dirname of $[0] is not the place where we might find the |
| 22390 | # original and so on. Autoconf is especially sensible to this). |
| 22391 | . ./$as_me.lineno |
| 22392 | # Exit status is that of the last command. |
| 22393 | exit |
| 22394 | } |
| 22395 | |
| 22396 | |
| 22397 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 22398 | *c*,-n*) ECHO_N= ECHO_C=' |
| 22399 | ' ECHO_T=' ' ;; |
| 22400 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 22401 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 22402 | esac |
| 22403 | |
| 22404 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22405 | as_expr=expr |
| 22406 | else |
| 22407 | as_expr=false |
| 22408 | fi |
| 22409 | |
| 22410 | rm -f conf$$ conf$$.exe conf$$.file |
| 22411 | echo >conf$$.file |
| 22412 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22413 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 22414 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 22415 | if test -f conf$$.exe; then |
| 22416 | # Don't use ln at all; we don't have any links |
| 22417 | as_ln_s='cp -p' |
| 22418 | else |
| 22419 | as_ln_s='ln -s' |
| 22420 | fi |
| 22421 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 22422 | as_ln_s=ln |
| 22423 | else |
| 22424 | as_ln_s='cp -p' |
| 22425 | fi |
| 22426 | rm -f conf$$ conf$$.exe conf$$.file |
| 22427 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22428 | if mkdir -p . 2>/dev/null; then |
| 22429 | as_mkdir_p=: |
| 22430 | else |
| 22431 | as_mkdir_p=false |
| 22432 | fi |
| 22433 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22434 | as_executable_p="test -f" |
| 22435 | |
| 22436 | # Sed expression to map a string onto a valid CPP name. |
| 22437 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 22438 | |
| 22439 | # Sed expression to map a string onto a valid variable name. |
| 22440 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 22441 | |
| 22442 | |
| 22443 | # IFS |
| 22444 | # We need space, tab and new line, in precisely that order. |
| 22445 | as_nl=' |
| 22446 | ' |
| 22447 | IFS=" $as_nl" |
| 22448 | |
| 22449 | # CDPATH. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22450 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22451 | |
| 22452 | exec 6>&1 |
| 22453 | |
| 22454 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 22455 | # report actual input values of CONFIG_FILES etc. instead of their |
| 22456 | # values after options handling. Logging --version etc. is OK. |
| 22457 | exec 5>>config.log |
| 22458 | { |
| 22459 | echo |
| 22460 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 22461 | ## Running $as_me. ## |
| 22462 | _ASBOX |
| 22463 | } >&5 |
| 22464 | cat >&5 <<_CSEOF |
| 22465 | |
| 22466 | This file was extended by [LLVM] $as_me [1.0], which was |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22467 | generated by GNU Autoconf 2.57. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22468 | |
| 22469 | CONFIG_FILES = $CONFIG_FILES |
| 22470 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 22471 | CONFIG_LINKS = $CONFIG_LINKS |
| 22472 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 22473 | $ $0 $@ |
| 22474 | |
| 22475 | _CSEOF |
| 22476 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 22477 | echo >&5 |
| 22478 | _ACEOF |
| 22479 | |
| 22480 | # Files that config.status was made for. |
| 22481 | if test -n "$ac_config_files"; then |
| 22482 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 22483 | fi |
| 22484 | |
| 22485 | if test -n "$ac_config_headers"; then |
| 22486 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 22487 | fi |
| 22488 | |
| 22489 | if test -n "$ac_config_links"; then |
| 22490 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 22491 | fi |
| 22492 | |
| 22493 | if test -n "$ac_config_commands"; then |
| 22494 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 22495 | fi |
| 22496 | |
| 22497 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22498 | |
| 22499 | ac_cs_usage="\ |
| 22500 | \`$as_me' instantiates files from templates according to the |
| 22501 | current configuration. |
| 22502 | |
| 22503 | Usage: $0 [OPTIONS] [FILE]... |
| 22504 | |
| 22505 | -h, --help print this help, then exit |
| 22506 | -V, --version print version number, then exit |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22507 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22508 | -d, --debug don't remove temporary files |
| 22509 | --recheck update $as_me by reconfiguring in the same conditions |
| 22510 | --file=FILE[:TEMPLATE] |
| 22511 | instantiate the configuration file FILE |
| 22512 | --header=FILE[:TEMPLATE] |
| 22513 | instantiate the configuration header FILE |
| 22514 | |
| 22515 | Configuration files: |
| 22516 | $config_files |
| 22517 | |
| 22518 | Configuration headers: |
| 22519 | $config_headers |
| 22520 | |
| 22521 | Report bugs to <bug-autoconf@gnu.org>." |
| 22522 | _ACEOF |
| 22523 | |
| 22524 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22525 | ac_cs_version="\\ |
| 22526 | [LLVM] config.status [1.0] |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22527 | configured by $0, generated by GNU Autoconf 2.57, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22528 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 22529 | |
| 22530 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 22531 | Free Software Foundation, Inc. |
| 22532 | This config.status script is free software; the Free Software Foundation |
| 22533 | gives unlimited permission to copy, distribute and modify it." |
| 22534 | srcdir=$srcdir |
| 22535 | INSTALL="$INSTALL" |
| 22536 | _ACEOF |
| 22537 | |
| 22538 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22539 | # If no file are specified by the user, then we need to provide default |
| 22540 | # value. By we need to know if files were specified by the user. |
| 22541 | ac_need_defaults=: |
| 22542 | while test $# != 0 |
| 22543 | do |
| 22544 | case $1 in |
| 22545 | --*=*) |
| 22546 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 22547 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22548 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22549 | ;; |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22550 | -*) |
| 22551 | ac_option=$1 |
| 22552 | ac_optarg=$2 |
| 22553 | ac_shift=shift |
| 22554 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22555 | *) # This is not an option, so the user has probably given explicit |
| 22556 | # arguments. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22557 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22558 | ac_need_defaults=false;; |
| 22559 | esac |
| 22560 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22561 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22562 | # Handling of the options. |
| 22563 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22564 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22565 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 22566 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22567 | --version | --vers* | -V ) |
| 22568 | echo "$ac_cs_version"; exit 0 ;; |
| 22569 | --he | --h) |
| 22570 | # Conflict between --help and --header |
| 22571 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 22572 | Try \`$0 --help' for more information." >&5 |
| 22573 | echo "$as_me: error: ambiguous option: $1 |
| 22574 | Try \`$0 --help' for more information." >&2;} |
| 22575 | { (exit 1); exit 1; }; };; |
| 22576 | --help | --hel | -h ) |
| 22577 | echo "$ac_cs_usage"; exit 0 ;; |
| 22578 | --debug | --d* | -d ) |
| 22579 | debug=: ;; |
| 22580 | --file | --fil | --fi | --f ) |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22581 | $ac_shift |
| 22582 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22583 | ac_need_defaults=false;; |
| 22584 | --header | --heade | --head | --hea ) |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22585 | $ac_shift |
| 22586 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22587 | ac_need_defaults=false;; |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22588 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 22589 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 22590 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22591 | |
| 22592 | # This is an error. |
| 22593 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 22594 | Try \`$0 --help' for more information." >&5 |
| 22595 | echo "$as_me: error: unrecognized option: $1 |
| 22596 | Try \`$0 --help' for more information." >&2;} |
| 22597 | { (exit 1); exit 1; }; } ;; |
| 22598 | |
| 22599 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 22600 | |
| 22601 | esac |
| 22602 | shift |
| 22603 | done |
| 22604 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22605 | ac_configure_extra_args= |
| 22606 | |
| 22607 | if $ac_cs_silent; then |
| 22608 | exec 6>/dev/null |
| 22609 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 22610 | fi |
| 22611 | |
| 22612 | _ACEOF |
| 22613 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22614 | if \$ac_cs_recheck; then |
| 22615 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 22616 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 22617 | fi |
| 22618 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22619 | _ACEOF |
| 22620 | |
| 22621 | |
| 22622 | |
| 22623 | |
| 22624 | |
| 22625 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22626 | for ac_config_target in $ac_config_targets |
| 22627 | do |
| 22628 | case "$ac_config_target" in |
| 22629 | # Handling of arguments. |
| 22630 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
| 22631 | "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;; |
| 22632 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 22633 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 22634 | { (exit 1); exit 1; }; };; |
| 22635 | esac |
| 22636 | done |
| 22637 | |
| 22638 | # If the user did not use the arguments to specify the items to instantiate, |
| 22639 | # then the envvar interface is used. Set only those that are not. |
| 22640 | # We use the long form for the default assignment because of an extremely |
| 22641 | # bizarre bug on SunOS 4.1.3. |
| 22642 | if $ac_need_defaults; then |
| 22643 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 22644 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 22645 | fi |
| 22646 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22647 | # Have a temporary directory for convenience. Make it in the build tree |
| 22648 | # simply because there is no reason to put it here, and in addition, |
| 22649 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22650 | # Create a temporary directory, and hook for its removal unless debugging. |
| 22651 | $debug || |
| 22652 | { |
| 22653 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 22654 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 22655 | } |
| 22656 | |
| 22657 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22658 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22659 | { |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22660 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22661 | test -n "$tmp" && test -d "$tmp" |
| 22662 | } || |
| 22663 | { |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22664 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22665 | (umask 077 && mkdir $tmp) |
| 22666 | } || |
| 22667 | { |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22668 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22669 | { (exit 1); exit 1; } |
| 22670 | } |
| 22671 | |
| 22672 | _ACEOF |
| 22673 | |
| 22674 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22675 | |
| 22676 | # |
| 22677 | # CONFIG_FILES section. |
| 22678 | # |
| 22679 | |
| 22680 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 22681 | # This happens for instance when ./config.status config.h |
| 22682 | if test -n "\$CONFIG_FILES"; then |
| 22683 | # Protect against being on the right side of a sed subst in config.status. |
| 22684 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 22685 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 22686 | s,@SHELL@,$SHELL,;t t |
| 22687 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 22688 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 22689 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 22690 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 22691 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 22692 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 22693 | s,@exec_prefix@,$exec_prefix,;t t |
| 22694 | s,@prefix@,$prefix,;t t |
| 22695 | s,@program_transform_name@,$program_transform_name,;t t |
| 22696 | s,@bindir@,$bindir,;t t |
| 22697 | s,@sbindir@,$sbindir,;t t |
| 22698 | s,@libexecdir@,$libexecdir,;t t |
| 22699 | s,@datadir@,$datadir,;t t |
| 22700 | s,@sysconfdir@,$sysconfdir,;t t |
| 22701 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 22702 | s,@localstatedir@,$localstatedir,;t t |
| 22703 | s,@libdir@,$libdir,;t t |
| 22704 | s,@includedir@,$includedir,;t t |
| 22705 | s,@oldincludedir@,$oldincludedir,;t t |
| 22706 | s,@infodir@,$infodir,;t t |
| 22707 | s,@mandir@,$mandir,;t t |
| 22708 | s,@build_alias@,$build_alias,;t t |
| 22709 | s,@host_alias@,$host_alias,;t t |
| 22710 | s,@target_alias@,$target_alias,;t t |
| 22711 | s,@DEFS@,$DEFS,;t t |
| 22712 | s,@ECHO_C@,$ECHO_C,;t t |
| 22713 | s,@ECHO_N@,$ECHO_N,;t t |
| 22714 | s,@ECHO_T@,$ECHO_T,;t t |
| 22715 | s,@LIBS@,$LIBS,;t t |
| 22716 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 22717 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 22718 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 22719 | s,@build@,$build,;t t |
| 22720 | s,@build_cpu@,$build_cpu,;t t |
| 22721 | s,@build_vendor@,$build_vendor,;t t |
| 22722 | s,@build_os@,$build_os,;t t |
| 22723 | s,@host@,$host,;t t |
| 22724 | s,@host_cpu@,$host_cpu,;t t |
| 22725 | s,@host_vendor@,$host_vendor,;t t |
| 22726 | s,@host_os@,$host_os,;t t |
| 22727 | s,@target@,$target,;t t |
| 22728 | s,@target_cpu@,$target_cpu,;t t |
| 22729 | s,@target_vendor@,$target_vendor,;t t |
| 22730 | s,@target_os@,$target_os,;t t |
| 22731 | s,@OS@,$OS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22732 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 22733 | s,@ARCH@,$ARCH,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22734 | s,@CXX@,$CXX,;t t |
| 22735 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 22736 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 22737 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 22738 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 22739 | s,@EXEEXT@,$EXEEXT,;t t |
| 22740 | s,@OBJEXT@,$OBJEXT,;t t |
| 22741 | s,@CC@,$CC,;t t |
| 22742 | s,@CFLAGS@,$CFLAGS,;t t |
| 22743 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 22744 | s,@CPP@,$CPP,;t t |
| 22745 | s,@ifGNUmake@,$ifGNUmake,;t t |
| 22746 | s,@LEX@,$LEX,;t t |
| 22747 | s,@LEXLIB@,$LEXLIB,;t t |
| 22748 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 22749 | s,@YACC@,$YACC,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22750 | s,@EGREP@,$EGREP,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22751 | s,@LN_S@,$LN_S,;t t |
| 22752 | s,@ECHO@,$ECHO,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22753 | s,@AR@,$AR,;t t |
| 22754 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22755 | s,@RANLIB@,$RANLIB,;t t |
| 22756 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 22757 | s,@STRIP@,$STRIP,;t t |
| 22758 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22759 | s,@CXXCPP@,$CXXCPP,;t t |
| 22760 | s,@F77@,$F77,;t t |
| 22761 | s,@FFLAGS@,$FFLAGS,;t t |
| 22762 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22763 | s,@LIBTOOL@,$LIBTOOL,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22764 | s,@SED@,$SED,;t t |
| 22765 | s,@RM@,$RM,;t t |
| 22766 | s,@MKDIR@,$MKDIR,;t t |
| 22767 | s,@DATE@,$DATE,;t t |
| 22768 | s,@MV@,$MV,;t t |
| 22769 | s,@DOT@,$DOT,;t t |
| 22770 | s,@ETAGS@,$ETAGS,;t t |
| 22771 | s,@PURIFY@,$PURIFY,;t t |
| 22772 | s,@ALLOCA@,$ALLOCA,;t t |
| 22773 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 22774 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
| 22775 | s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22776 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
| 22777 | s,@USE_SPEC@,$USE_SPEC,;t t |
| 22778 | s,@UPB@,$UPB,;t t |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22779 | s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22780 | s,@JIT@,$JIT,;t t |
| 22781 | s,@SPEC_ROOT@,$SPEC_ROOT,;t t |
| 22782 | s,@BCR@,$BCR,;t t |
| 22783 | s,@PAPIDIR@,$PAPIDIR,;t t |
| 22784 | s,@OBJROOT@,$OBJROOT,;t t |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22785 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22786 | CEOF |
| 22787 | |
| 22788 | _ACEOF |
| 22789 | |
| 22790 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22791 | # Split the substitutions into bite-sized pieces for seds with |
| 22792 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 22793 | ac_max_sed_lines=48 |
| 22794 | ac_sed_frag=1 # Number of current file. |
| 22795 | ac_beg=1 # First line for current file. |
| 22796 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 22797 | ac_more_lines=: |
| 22798 | ac_sed_cmds= |
| 22799 | while $ac_more_lines; do |
| 22800 | if test $ac_beg -gt 1; then |
| 22801 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 22802 | else |
| 22803 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 22804 | fi |
| 22805 | if test ! -s $tmp/subs.frag; then |
| 22806 | ac_more_lines=false |
| 22807 | else |
| 22808 | # The purpose of the label and of the branching condition is to |
| 22809 | # speed up the sed processing (if there are no `@' at all, there |
| 22810 | # is no need to browse any of the substitutions). |
| 22811 | # These are the two extra sed commands mentioned above. |
| 22812 | (echo ':t |
| 22813 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 22814 | if test -z "$ac_sed_cmds"; then |
| 22815 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 22816 | else |
| 22817 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 22818 | fi |
| 22819 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 22820 | ac_beg=$ac_end |
| 22821 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 22822 | fi |
| 22823 | done |
| 22824 | if test -z "$ac_sed_cmds"; then |
| 22825 | ac_sed_cmds=cat |
| 22826 | fi |
| 22827 | fi # test -n "$CONFIG_FILES" |
| 22828 | |
| 22829 | _ACEOF |
| 22830 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22831 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 22832 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 22833 | case $ac_file in |
| 22834 | - | *:- | *:-:* ) # input from stdin |
| 22835 | cat >$tmp/stdin |
| 22836 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22837 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22838 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22839 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22840 | * ) ac_file_in=$ac_file.in ;; |
| 22841 | esac |
| 22842 | |
| 22843 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 22844 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 22845 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22846 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22847 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22848 | X"$ac_file" : 'X\(/\)' \| \ |
| 22849 | . : '\(.\)' 2>/dev/null || |
| 22850 | echo X"$ac_file" | |
| 22851 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22852 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22853 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22854 | /^X\(\/\).*/{ s//\1/; q; } |
| 22855 | s/.*/./; q'` |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22856 | { if $as_mkdir_p; then |
| 22857 | mkdir -p "$ac_dir" |
| 22858 | else |
| 22859 | as_dir="$ac_dir" |
| 22860 | as_dirs= |
| 22861 | while test ! -d "$as_dir"; do |
| 22862 | as_dirs="$as_dir $as_dirs" |
| 22863 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22864 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22865 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22866 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22867 | X"$as_dir" : 'X\(/\)' \| \ |
| 22868 | . : '\(.\)' 2>/dev/null || |
| 22869 | echo X"$as_dir" | |
| 22870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22872 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22873 | /^X\(\/\).*/{ s//\1/; q; } |
| 22874 | s/.*/./; q'` |
| 22875 | done |
| 22876 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22877 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22878 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22879 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22880 | |
| 22881 | ac_builddir=. |
| 22882 | |
| 22883 | if test "$ac_dir" != .; then |
| 22884 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 22885 | # A "../" for each directory in $ac_dir_suffix. |
| 22886 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 22887 | else |
| 22888 | ac_dir_suffix= ac_top_builddir= |
| 22889 | fi |
| 22890 | |
| 22891 | case $srcdir in |
| 22892 | .) # No --srcdir option. We are building in place. |
| 22893 | ac_srcdir=. |
| 22894 | if test -z "$ac_top_builddir"; then |
| 22895 | ac_top_srcdir=. |
| 22896 | else |
| 22897 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 22898 | fi ;; |
| 22899 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 22900 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 22901 | ac_top_srcdir=$srcdir ;; |
| 22902 | *) # Relative path. |
| 22903 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 22904 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 22905 | esac |
| 22906 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 22907 | # absolute. |
| 22908 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 22909 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22910 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 22911 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 22912 | |
| 22913 | |
| 22914 | case $INSTALL in |
| 22915 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 22916 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 22917 | esac |
| 22918 | |
| 22919 | if test x"$ac_file" != x-; then |
| 22920 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22921 | echo "$as_me: creating $ac_file" >&6;} |
| 22922 | rm -f "$ac_file" |
| 22923 | fi |
| 22924 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22925 | # use $as_me), people would be surprised to read: |
| 22926 | # /* config.h. Generated by config.status. */ |
| 22927 | if test x"$ac_file" = x-; then |
| 22928 | configure_input= |
| 22929 | else |
| 22930 | configure_input="$ac_file. " |
| 22931 | fi |
| 22932 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 22933 | sed 's,.*/,,'` by configure." |
| 22934 | |
| 22935 | # First look for the input files in the build tree, otherwise in the |
| 22936 | # src tree. |
| 22937 | ac_file_inputs=`IFS=: |
| 22938 | for f in $ac_file_in; do |
| 22939 | case $f in |
| 22940 | -) echo $tmp/stdin ;; |
| 22941 | [\\/$]*) |
| 22942 | # Absolute (can't be DOS-style, as IFS=:) |
| 22943 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22944 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22945 | { (exit 1); exit 1; }; } |
| 22946 | echo $f;; |
| 22947 | *) # Relative |
| 22948 | if test -f "$f"; then |
| 22949 | # Build tree |
| 22950 | echo $f |
| 22951 | elif test -f "$srcdir/$f"; then |
| 22952 | # Source tree |
| 22953 | echo $srcdir/$f |
| 22954 | else |
| 22955 | # /dev/null tree |
| 22956 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22957 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22958 | { (exit 1); exit 1; }; } |
| 22959 | fi;; |
| 22960 | esac |
| 22961 | done` || { (exit 1); exit 1; } |
| 22962 | _ACEOF |
| 22963 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22964 | sed "$ac_vpsub |
| 22965 | $extrasub |
| 22966 | _ACEOF |
| 22967 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22968 | :t |
| 22969 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 22970 | s,@configure_input@,$configure_input,;t t |
| 22971 | s,@srcdir@,$ac_srcdir,;t t |
| 22972 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 22973 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 22974 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 22975 | s,@builddir@,$ac_builddir,;t t |
| 22976 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 22977 | s,@top_builddir@,$ac_top_builddir,;t t |
| 22978 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 22979 | s,@INSTALL@,$ac_INSTALL,;t t |
| 22980 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 22981 | rm -f $tmp/stdin |
| 22982 | if test x"$ac_file" != x-; then |
| 22983 | mv $tmp/out $ac_file |
| 22984 | else |
| 22985 | cat $tmp/out |
| 22986 | rm -f $tmp/out |
| 22987 | fi |
| 22988 | |
| 22989 | done |
| 22990 | _ACEOF |
| 22991 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22992 | |
| 22993 | # |
| 22994 | # CONFIG_HEADER section. |
| 22995 | # |
| 22996 | |
| 22997 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 22998 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 22999 | # |
| 23000 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 23001 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 23002 | ac_dB='[ ].*$,\1#\2' |
| 23003 | ac_dC=' ' |
| 23004 | ac_dD=',;t' |
| 23005 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 23006 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 23007 | ac_uB='$,\1#\2define\3' |
| 23008 | ac_uC=' ' |
| 23009 | ac_uD=',;t' |
| 23010 | |
| 23011 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 23012 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23013 | case $ac_file in |
| 23014 | - | *:- | *:-:* ) # input from stdin |
| 23015 | cat >$tmp/stdin |
| 23016 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23017 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23018 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23019 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23020 | * ) ac_file_in=$ac_file.in ;; |
| 23021 | esac |
| 23022 | |
| 23023 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23024 | echo "$as_me: creating $ac_file" >&6;} |
| 23025 | |
| 23026 | # First look for the input files in the build tree, otherwise in the |
| 23027 | # src tree. |
| 23028 | ac_file_inputs=`IFS=: |
| 23029 | for f in $ac_file_in; do |
| 23030 | case $f in |
| 23031 | -) echo $tmp/stdin ;; |
| 23032 | [\\/$]*) |
| 23033 | # Absolute (can't be DOS-style, as IFS=:) |
| 23034 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23035 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23036 | { (exit 1); exit 1; }; } |
| 23037 | echo $f;; |
| 23038 | *) # Relative |
| 23039 | if test -f "$f"; then |
| 23040 | # Build tree |
| 23041 | echo $f |
| 23042 | elif test -f "$srcdir/$f"; then |
| 23043 | # Source tree |
| 23044 | echo $srcdir/$f |
| 23045 | else |
| 23046 | # /dev/null tree |
| 23047 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23048 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23049 | { (exit 1); exit 1; }; } |
| 23050 | fi;; |
| 23051 | esac |
| 23052 | done` || { (exit 1); exit 1; } |
| 23053 | # Remove the trailing spaces. |
| 23054 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 23055 | |
| 23056 | _ACEOF |
| 23057 | |
| 23058 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 23059 | # `conftest.undefs', that substitutes the proper values into |
| 23060 | # config.h.in to produce config.h. The first handles `#define' |
| 23061 | # templates, and the second `#undef' templates. |
| 23062 | # And first: Protect against being on the right side of a sed subst in |
| 23063 | # config.status. Protect against being in an unquoted here document |
| 23064 | # in config.status. |
| 23065 | rm -f conftest.defines conftest.undefs |
| 23066 | # Using a here document instead of a string reduces the quoting nightmare. |
| 23067 | # Putting comments in sed scripts is not portable. |
| 23068 | # |
| 23069 | # `end' is used to avoid that the second main sed command (meant for |
| 23070 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 23071 | # See the Autoconf documentation for `clear'. |
| 23072 | cat >confdef2sed.sed <<\_ACEOF |
| 23073 | s/[\\&,]/\\&/g |
| 23074 | s,[\\$`],\\&,g |
| 23075 | t clear |
| 23076 | : clear |
| 23077 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 23078 | t end |
| 23079 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 23080 | : end |
| 23081 | _ACEOF |
| 23082 | # If some macros were called several times there might be several times |
| 23083 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 23084 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 23085 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 23086 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 23087 | rm -f confdef2sed.sed |
| 23088 | |
| 23089 | # This sed command replaces #undef with comments. This is necessary, for |
| 23090 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 23091 | # on some systems where configure will not decide to define it. |
| 23092 | cat >>conftest.undefs <<\_ACEOF |
| 23093 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 23094 | _ACEOF |
| 23095 | |
| 23096 | # Break up conftest.defines because some shells have a limit on the size |
| 23097 | # of here documents, and old seds have small limits too (100 cmds). |
| 23098 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 23099 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23100 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 23101 | echo ' :' >>$CONFIG_STATUS |
| 23102 | rm -f conftest.tail |
| 23103 | while grep . conftest.defines >/dev/null |
| 23104 | do |
| 23105 | # Write a limited-size here document to $tmp/defines.sed. |
| 23106 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 23107 | # Speed up: don't consider the non `#define' lines. |
| 23108 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 23109 | # Work around the forget-to-reset-the-flag bug. |
| 23110 | echo 't clr' >>$CONFIG_STATUS |
| 23111 | echo ': clr' >>$CONFIG_STATUS |
| 23112 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 23113 | echo 'CEOF |
| 23114 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 23115 | rm -f $tmp/in |
| 23116 | mv $tmp/out $tmp/in |
| 23117 | ' >>$CONFIG_STATUS |
| 23118 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 23119 | rm -f conftest.defines |
| 23120 | mv conftest.tail conftest.defines |
| 23121 | done |
| 23122 | rm -f conftest.defines |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 23123 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23124 | echo >>$CONFIG_STATUS |
| 23125 | |
| 23126 | # Break up conftest.undefs because some shells have a limit on the size |
| 23127 | # of here documents, and old seds have small limits too (100 cmds). |
| 23128 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 23129 | rm -f conftest.tail |
| 23130 | while grep . conftest.undefs >/dev/null |
| 23131 | do |
| 23132 | # Write a limited-size here document to $tmp/undefs.sed. |
| 23133 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 23134 | # Speed up: don't consider the non `#undef' |
| 23135 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 23136 | # Work around the forget-to-reset-the-flag bug. |
| 23137 | echo 't clr' >>$CONFIG_STATUS |
| 23138 | echo ': clr' >>$CONFIG_STATUS |
| 23139 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 23140 | echo 'CEOF |
| 23141 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 23142 | rm -f $tmp/in |
| 23143 | mv $tmp/out $tmp/in |
| 23144 | ' >>$CONFIG_STATUS |
| 23145 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 23146 | rm -f conftest.undefs |
| 23147 | mv conftest.tail conftest.undefs |
| 23148 | done |
| 23149 | rm -f conftest.undefs |
| 23150 | |
| 23151 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23152 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23153 | # use $as_me), people would be surprised to read: |
| 23154 | # /* config.h. Generated by config.status. */ |
| 23155 | if test x"$ac_file" = x-; then |
| 23156 | echo "/* Generated by configure. */" >$tmp/config.h |
| 23157 | else |
| 23158 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 23159 | fi |
| 23160 | cat $tmp/in >>$tmp/config.h |
| 23161 | rm -f $tmp/in |
| 23162 | if test x"$ac_file" != x-; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 23163 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23164 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 23165 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 23166 | else |
| 23167 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23168 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23169 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23170 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23171 | X"$ac_file" : 'X\(/\)' \| \ |
| 23172 | . : '\(.\)' 2>/dev/null || |
| 23173 | echo X"$ac_file" | |
| 23174 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23175 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23176 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23177 | /^X\(\/\).*/{ s//\1/; q; } |
| 23178 | s/.*/./; q'` |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 23179 | { if $as_mkdir_p; then |
| 23180 | mkdir -p "$ac_dir" |
| 23181 | else |
| 23182 | as_dir="$ac_dir" |
| 23183 | as_dirs= |
| 23184 | while test ! -d "$as_dir"; do |
| 23185 | as_dirs="$as_dir $as_dirs" |
| 23186 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23187 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23188 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23189 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23190 | X"$as_dir" : 'X\(/\)' \| \ |
| 23191 | . : '\(.\)' 2>/dev/null || |
| 23192 | echo X"$as_dir" | |
| 23193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23194 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23195 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23196 | /^X\(\/\).*/{ s//\1/; q; } |
| 23197 | s/.*/./; q'` |
| 23198 | done |
| 23199 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23200 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23201 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23202 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23203 | |
| 23204 | rm -f $ac_file |
| 23205 | mv $tmp/config.h $ac_file |
| 23206 | fi |
| 23207 | else |
| 23208 | cat $tmp/config.h |
| 23209 | rm -f $tmp/config.h |
| 23210 | fi |
| 23211 | done |
| 23212 | _ACEOF |
| 23213 | |
| 23214 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23215 | |
| 23216 | { (exit 0); exit 0; } |
| 23217 | _ACEOF |
| 23218 | chmod +x $CONFIG_STATUS |
| 23219 | ac_clean_files=$ac_clean_files_save |
| 23220 | |
| 23221 | |
| 23222 | # configure is writing to config.log, and then calls config.status. |
| 23223 | # config.status does its own redirection, appending to config.log. |
| 23224 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 23225 | # by configure, so config.status won't be able to write to it; its |
| 23226 | # output is simply discarded. So we exec the FD to /dev/null, |
| 23227 | # effectively closing config.log, so it can be properly (re)opened and |
| 23228 | # appended to by config.status. When coming back to configure, we |
| 23229 | # need to make the FD available again. |
| 23230 | if test "$no_create" != yes; then |
| 23231 | ac_cs_success=: |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 23232 | ac_config_status_args= |
| 23233 | test "$silent" = yes && |
| 23234 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23235 | exec 5>/dev/null |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 23236 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23237 | exec 5>>config.log |
| 23238 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23239 | # would make configure fail if this is the last instruction. |
| 23240 | $ac_cs_success || { (exit 1); exit 1; } |
| 23241 | fi |
| 23242 | |